Jump to content

dimaj

Active Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by dimaj

  1. Hey guys, So, earlier I've asked a question about mod_rewrite to get rid of the annoying port number from the url. Sparda recommended that I should switch my router configuration to forward port 80 to port 80 of my web server. I did just that. Later I have discovered that with mod_proxy I can tunnel all of my other web applications from other web servers through my main web server. So, I've set up something like this: ProxyRequests Off ProxyPreserveHost On SSLProxyEngine On # These work just fine. I just have to put a '/' at the end of my url ProxyPass /blah http://localhost/blah ProxyPassReverse /blah http://localhost/blah ProxyPass /blah2 http://other_server:1234/app ProxyPassReverse /blah2 http://other_server:1234/app # Displays page's source code as opposed to rendering the page ProxyPass /ssl https://other_server:8080/app2 ProxyPassReverse /ssl https://other_server:8080/app2 # Changes URL in my browser to http://www.google.com ProxyPass /external http://google.com ProxyPassReverse /external http://google.com Here are some problems that I'm experiencing and cannot find an answer to: 1) Why do I have to put a trailing / at the end of my url? (e.g. http://mydomain.com/blah/'>http://mydomain.com/blah/ as opposed to http://mydomain.com/blah) 2) When I try to access http://mydomain.com/ssl/, I get to the requested page, but I see its source as opposed to the rendered site. (Just noticed that it works fine in IE, but not on Chrome ) 3) When I try to access http://mydomain.com/external/, my URL changes to http://google.com. How come? I thought that I'm tunneling it through my web server. Also, somewhat related question... How can I setup an http proxy such that I could access a web page on my web server, pass in the url of the web site I want to visit and have that web site displayed on my computer (which is behind a corporate proxy)? P.S. I'm running an apache2 web server on Ubuntu. Thanks for the help. dimaj
  2. Got it! Thanks for the help! dimaj
  3. True... I guess that's the best solution. Can I still rewrite the url from domain.com/app to app.domain.com? Thanks! dimaj
  4. Thanks for your replies guys! I'm actually inclined to agree with Sparda right now since I have a router between my web server and the internet. Basically, in order for me to make it work, my router will have to be running apache or Nginx and rewriting rules there or just setup a port forwarding for port 80 instead of port 1234. Does that sound correct?
  5. Thanks for the fast reply! Mod_rewrite can rewrite any part of the url, or at least that's my understanding from reading this: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html As far as DNS concerned, I have the following setup: A-record: mydomainname.com <my external ip address> WebHop: blog.mydomainname.com mydomainname.com:1234/blog and a whole bunch of CNAME records. To tell you the truth, I'm not that knowledgeable of DNS as a whole. What exactly will an A-Record help me accomplish? EDIT: Web server that I'm trying to access, hosts several applications: forum, wiki, blog, etc. So, I can access those different apps by using the following format: http://mydomain.com:1234/appName and I want to change it http://appName.mydomain.com EDIT 2: As I just found out, WebHop is some sort of an A record. Thanks again. dimaj
  6. Hey guys! I've got a question for you about using mod_rewrite with apache2 A router that forwards port 1234 to port 80 on an internal IP. I have setup a web redirect (via dyndns) to forward subdomain.domain.com to domain.com:1234/subdomain. Every time I navigate to subdomain.domain.com, it automatically changes my url (in the browser) to domain.com:1234/subodmain which looks very ugly and unprofessional. I was wondering if I could user mod_rewrite to forcefully overwrite the url to subdomain.domain.com at all times. Any help is appreciated. dimaj
  7. Use the CD for one purpose only.... To get the manual. Pretty much everyone started to place a soft copy of the manual on the driver cd...
  8. I would assume that if you will create an autorun file that will execute a batch file, you're job is done... This might not work since U3 sticks are partitioned into 2 partitions: CD-ROM, which "unlocks" your data partition... Still worth a shot though. dimaj
  9. I'm running Moto Droid with CM6.0 and p3designs kernel. What other ROMs have you tried? which did you like the most? dimaj
  10. Hey guys! Thanks for your replies. well... I guess the naming conventions is hard to test for. However, you can still test if a function or a variable starts with an upper case or a lower case letter. I guess, I'm looking for something like this: Codestyle Checker... I'll see if I can read that code and maybe change it up a bit to work with JScript. Thanks! dimaj
  11. You can look at DaDaBIK (which is a front end for a MySQL DB). I haven't played much with it to see if it will allow you pick something from a combo box. yet. Another approach would be to write your own website. Something to think about: - if you are familiar with C#, you can write it using Visual Studio (ASP.NET) - If you are familiar with Java, you can write a Java applet - You can also write a page in a PHP that would refresh as soon as you will choose something from a combo box. dimaj
  12. dimaj

    Vm Server

    There's also an option of VMWare Server. You'll have a huge overhead of your host OS though. The beauty of Server is that: a) it's free B) it's running as a service on your machine (aka, you can set it up to start specific VMs on Host boot) c) it has a decent web management interface It's ok if you have a beefy machine and you are not looking to run a lot of VMs. If you are trying to run a lot of VMs that take a lot of RAM, I'd go with ESXi like 3TeK suggested. dimaj
  13. Hey guys! I was wondering if anyone know of a quick way to check if a code file conform with some coding guidelines. Those guidelines will include: - variable and method naming style - function length (column-wise and row-wise) - spacing for indentation For example, if I have a function that is name: myfirstfunction, style checker would give an error because proper name should be MyFirstFunction. If I indented my code 5 spaces, it would give me an error because indentation should be 4 spaces, etc. Any ideas are welcomed :) Thanks. dimaj
  14. Hey guys! I have a huge problem which I desperately need help with... Me, being as stupid as I am, never backed up my HDD, which is encrypted with GuardianEdge. (It's my work computer). Last night I though it would be a great idea to install Ubuntu 10.04 on SDHC card, so that I could plug it in into any computer and get my linux environment. What I didn't realize is that during installation my MBR got overwritten and grub was installed. This morning, I came to work (all happy that I have linux on SD card) and was greeted with a happy grub prompt. At that point, I thought it would be a good idea to restore my NTLDR. So, I ran ms-sys -m /dev/sda from Ubuntu LiveCD. After reboot I was greeted with even happier message "Error loading operating system." I suspect that my MBR was also encrypted and after MBR has been overwritten, I can no longer decrypt my main partition for booting purposes. So, here comes the question... is there any way to recover some data from that hard drive? I've worked for 3 weeks on a project (no backups and not checked in) and I really don't want to do it over again. Any help and ideas are appreciated. dimaj
  15. Anytime man! look at Hitachi... They have a line of automotive HDDs which are supposedly handle vibrations better. I have an AVIC-Z2 Navi that has a Hitachi HDD and haven't had any problems with it yet. It's been 3 years... Cheers! dimaj
  16. Check this out some products on this site: http://pico-psu.net/
  17. I believe there's a software called unattended which allows you to have a network installation of windows. Here's the link: http://unattended.sourceforge.net/ hope this helps. dimaj
  18. I don't know much about these things, but this should be generally correct... It all boils down to your upload connection speeds and what is the size of several seconds of your stream. If you have a slow upload connection, you would not be able to upload data fast enough to keep up with your video stream. Thus you will have constant stutter. This is where transcoding comes into play. You can decrease the quality of the video you are trying to stream and therefore you don't have to upload as much data to show the same several seconds of your stream as with the original file. Again, I don't know much about these things (yet), but I hope my answer somewhat makes sense and somewhat correct. dimaj
  19. Thanks a lot for your reply! I'll try it out when I get home tonight. I'll post back with my results. dimaj
  20. Hey guys! So, I'm back with more questions... I've recently purchased a netbook and immediately swapped Windows that came with it to Ubuntu 10.04 Desktop. The problem that I'm facing right now is that I cannot authenticate via LDAP after computer boots. I have to log in as a local user, wait until WiFi connection is established (it happens automatically within a few seconds), log out or switch user and then I can type in my credentials for a user stored in LDAP. I saw some posts on google saying that one can specify the connection settings in /etc/network/interfaces, but I'm not sure I want to hard code my connection settings. What if I am trying to login from a location that doesn't have my network settings? Well, granted I won't be able to do LDAP authentication, but are there any other surprises that might arise? Lastly, Ive noticed that when I try to login via local user or LDAP user, it asks me for my password twice. That happens both in a shell and in the UI. I'm not sure why and not sure what I've done to get that behavior. Any help is appreciated! dimaj
  21. Check out subsonic (http://www.subsonic.org)
  22. on high speeds E-Brakes are more dangerous than not having breaks at all! If you don't know what you're doing, you'll spin out and the best case walk out with a few scratches... Why can't we go back to the stone age and have fully mechanical cars, where driver decides what to do?
  23. If I understand you correctly, you are streaming music from your desktop/laptop to your android phone, right? I'm doing this as well by using 2 programs: Server-side: Subsonic (available for Windows, Linux, etc) Client-side: Subsonic Music Streamer (available from the market) Both are free! dimaj
  24. dimaj

    Regex With Sed

    THANK YOU!!! That was just what I needed :) In case somebody else is interested, here's my final code of the split: for i in *; do i=`echo $i | sed 's/\ AnDrOiD//g'` version=`echo $i | sed -e 's/[[:digit:][:space:]]*$/|&amp;/g' | cut -d \| -f 2 | sed -e 's/^ //g' | sed 's/ /./g'` title=`echo $i | sed -e 's/[[:digit:][:space:]]*$/|&amp;/g' | cut -d \| -f 1 | sed -e 's/ v$//g'` echo "Original: $i Version: $version title: $title" done dimaj
  25. dimaj

    Regex With Sed

    Thanks for your reply, Psychosis! Unfortunately, that snippet won't work for me since 'v' could be present in the Name portion. I was able to use sed to get the version aspect by doing something like this: echo "something 3D (something else) v1 2 3" | sed -e 's/[[:digit:][:space:]]*$/(&amp;)/g' This basically puts '()' around found string, but it doesn't return it. I was thinking that if I could extract the version info, I could remove it from the original string. thanks again. dimaj
×
×
  • Create New...