I am using CakePHP which already contains an .htaccess file that looks like:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
I want to force www. (unless it is a subdomain) to avoid duplicate content penalties.
It needs to retain http or…
I'm searching within Java files for some occurrence of a phrase:
find . -name '*.java' | xargs grep -l 'string'
How do I change this command to print to the shell all of the lines which contain a match?
Thanks!
I am looking for a wireless usb print server that will work with my netbook running ubuntu and my main pc running windows.
There seems to be little information on anything that works with both reliability.
Dose anyone know of anything that will work?
thanks
I'm running IIS v7 on a Win7 development machine. I have PHP code that saves session variables and calls them back later. This has been working on this machine for some time.
For some reason now, the session variables dissapear immediatly after saving. Code that used to work fine on http://localhost/, suddenly now does not.
I have tested…
Hi,
I am working on creating some firewall rules to stop some of the SSH brute-force attacks that we have seen recently on our ESX server hosts. I have tried the following rules from the CLI to first block all SSH traffic and then allow the two ranges that I am interested in:
esxcfg-firewall --ipruleAdd 0.0.0.0/0,22,tcp,REJECT,"Block_SSH"…
I have a new Dell laptop running Win7 64 with 8 meg of ram. If I leave the system running overnight I start getting low memory errors the next day. Looking at task manager it shows 6.27 gig used but looking at the processes list the totals don't show nearly that much. I am showing all processes from all users.
I have also looked at the…
I am running VMWare Workatation 8.0 on a Windows7 host, hosting a Windows7 VM. It's working fine except that the host cannot see the files on the VM when it's running. The VM is running locally on the host, not on the network.
I found a page saying I simply need to share the folders on either side and the other can see them, but this…
I have cable, and the modem only has 1 network plug-in. They said I could buy my own router if I wanted to hook up two computers to it. I have an IBM Turbo 16/4 Token-Ring PC Card 2, which was in the laptop when I bought it, and the laptop also has the typical network plug (not a PC Card). Is there a way I could run the laptop as a…
I've been able to use this linux command to connect Netcat to a serial port:
nc -l 80 <> /dev/ttyS0
I would like to be able to log this transaction. My backup plan is to use Wireshark to monitor the netcat stream, but ideally I'd like to do something like this:
cat /dev/ttyS0 | tee upstream.bin | nc -l 80| tee…
In 2003 I found a little utility which allowed me to select a control (like a listview) on any application, and it would copy it's contents into the clipboard.
For example, you could select the list in Windows Explorer, and all the filenames, sizes, dates, etc. would be copied for you to paste into Notepad.
I don't…
I have just installed ColdFusion 9 Developer Edition on My Windows Vista machine for development purposes. Unfortunately I have yet to locate any documentation or tutorials as to where I place my files and how to view them in a browser. A point in the right direction would be appreciated.
FYI, I also have WAMP…
I have a USB Hard disk that I am using as a secondary drive just for extra storage.
When this is attached and I start my PC the second screen says searching for mass storage dives for about 5 minutes before continuing on.
The same happens when I have a USB pen disk attached upon boot. If I attach the device…
I'm looking for a computer monitor or computer research being done into having computers not use a backlight, and instead just work off what light is reflected of things in the environment.
This would have great outdoor application, since all computer displays are pretty much useless in the sun for instance.
I recently had to change the name of my computer to log onto a public wi-fi spot, because a computer with my name was already logged on. (I asked a guy there what to do after it said there was already a computer named "(omitted)" logged on.) I've never been at a wifi spot you had to log into before. I didn't…
I recently had to change the name of my computer to log onto a public wi-fi spot, because a computer with my name was already logged on. (I asked a guy there what to do after it said there was already a computer named "(omitted)" logged on.) I've never been at a wifi spot you had to log into before. I didn't…
I have setup Django to run on a windows 2003 server following the steps on the django wiki. Everything works fine and there are no errors. Only one instance of Django is setup on the server at the moment. However whenever the first page is requested it takes about 10 seconds to load the page. After this every…
I am using Ubuntu server. I ran:
chmod -R 700 /
when I was logged in as root. Now when I try to login as my normal user I immediately get kicked out. Is there anyway to log back in to the server whether it is root or whoever so that I can change the permissions? or am I totally screwed? I dont think I…
Someone I talk to on Skype a lot has a very persistent issue, where after a few minutes their voice goes very 'robotic'... still understandable but annoying. We can restart the call and it's fine, but fairly consistently after a few minutes it returns.
He experiences this with other people too, not just me…
I have been using Mercurial inside NetBeans for a while now.
For the past few weeks now Windows Explorer has been crashing for various reasons, including every time I right click.
Finally someone suggested I try uninstalling TourtoiseSVN and TortoiseHG since they affect Windows Explorer directly. I…
Anyone know of an open-source system for sending out 'what tasks did you to today' type status report reminders in email, then collecting them in an internal website?
I checked on freshmeat but didn't see anything.
Thanks!
What effect, if any, does the number of icons on a user's Windows XP desktop have on system performance? Can a large number of desktop icons slow down a system?
Hi there.
I'm running a mysql-server a long with apache and tomcat on a Gentoo box. To administer mysql I'm using phpMyAdmin. A couple of hours ago I received a call -- a user was unable to login to phpmyadmin. I logged on to phpmyadmin with the root user, and reset the password. The user was still…
Disclaimer: I use Linux for some jobs but I am not a Linux admin.
I have a Centos 5.4 machine which performs some server duties and doubles as a web site development machine. PHP 5.3.3 was installed from RPM with the --without-pear option. I now wish to use PearDB but can't figure out how to…