remove the file “homedir/.git/index.lock”
remove the file “homedir/.git/index.lock”
You’ve developed your desktop application with a web browser control. When you run it on a desktop an error prompt occurs “Internet Explorer Script Error”, “An error has occurred in the script on this page”, “Do you want to continue running scripts on this page?”
It’s annoying to see this prompt every time you use your desktop application w/ web browser control.
If you are using sysinternals desktops with your windows 7 environment, then you have experienced that running another firefox in your virtual desktop is not possible because it will pop up a message that says “Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.”
sometimes you may just wanted to run IE, Safari, Opera, Chrome at your virtual desktops. That’s not a good solution if you really wanted to just use Firefox.
Here’s a work around
1. right click on the desktop->new and create a shortcut link.
2. Browse firefox exe location usually at c:\program files\mozila firefox
3. click on the firefox.exe
4. on the location of the selected item w/c is “C:\Program Files\Mozilla Firefox\firefox.exe” or any other if you’ve installed it at different location, add (w/o the quotes) “-p -no-remote” to the location w/c makes it “C:\Program Files\Mozilla Firefox\firefox.exe” -p -no-remote
5. click next button and name your shortcut.
6. double click your newly created shortcut and create 4 different profiles or as many as you may need. I made Desktop 1, Desktop 2, Desktop 3, and Desktop 4 for my 4 virtual desktops.
you can now double click your newly created shortcut and choose the appropriate firefox profile for your virtual desktops
If the above fails, try FriendFX’s solution that can be found at
FriendFX suggested to create four different shortcuts for the different Desktops
“C:\Program Files (x86)\Mozilla Firefox\firefox.exe” -p “default”
“C:\Program Files (x86)\Mozilla Firefox\firefox.exe” -no-remote -p “Desktop 2”
“C:\Program Files (x86)\Mozilla Firefox\firefox.exe” -no-remote -p “Desktop 3”
“C:\Program Files (x86)\Mozilla Firefox\firefox.exe” -no-remote -p “Desktop 4”
It worked on my new Firefox Version 19.0.2
happy coding! 😉
Just install samba from the synaptic package manager and you can access your ubuntu webserver through its hostname.
To access Windows Machines from your ubuntu through its hostnames, just install winbind from the synaptic package manager.
the script below will disable the auto rotate printing option in PDF and print it directly to your default printer
var prn_param = this.getPrintParams();
prn_param.interactive = prn_param.constants.interactionLevel.silent;
var flag_val = prn_param.constants.flagValues;
prn_param.flags |= flag_val.setPageSize;
prn_param.flags |= (flag_val.suppressCenter | flag_val.suppressRotate);
Make sure you have root access.
1. create a directory /usr/share/fonts/TTF
2. copy all TTF file (*.TTF) to your newly created directory.
3. run the command
/sbin/service xfs reload
happy coding! 😉
If you have 2 or more laptops at home and you have an internet connection w/ your mobile USB, you can easily share it through your WiFi connection. Here are the steps in sharing your USB internet connection (Windows 7). More or less the steps are just the same if you are using Vista. There might be a slight different w/ the options and buttons in XP but the idea is just the same.
1. Open Control Panel
2. click on “Manage wireless networks” menu
3. At the manage networks window, click the “Add” button
5. At the setup ad hoc window, click next button
6. Create network by naming and setting its security and save it.
7. you have now successfully created your ad hoc network. close the next window
8. You’ve done creating the ad hoc network, now let’s share your internet connection. Back to the control panel and click again the “Network and sharing center”. At the Network and sharing center window choose “Adapter Settings”
if you are using Vista choose “Manage Nework Connections”
9. connect your wifi card from its newly setup ad hoc connection first…
10. go to “sharing” tab and check mark “allow other network users to connect through this computer’s internet connection”, name your connection and choose your wifi network card at the “Home networking connection” option.
click “OK” button to close and restart your internet connection.
CONFIGURING YOUR LAPTOP THAT WILL CONNECT TO THE INTERNET THROUGH YOUR CONFIGURED INTERNET CONNECTION
1. Open control panel and choose “Open network and sharing center”. At the window choose “Change adapter settings”
If you are using Vista, choose “Manage network connections”
2. At the adapter settings, right click your wifi adapter and choose “properties’
3. At the properties window, choose networking tab and click “Internet protocol version 4 (TCP/IP4)” . Make sure the checkbox is checked. while selecting the TCP/IP4 click “Properties” button.
4. Choose Obtain and IP address automatically and Obtain DNS automatically. click OK button and reconnect to the wifi connection that we have setup from your first laptop.
it doesn’t support HTTP/1.1, persistent connections, a connection pool or other standard Java EE features. Its use as a replacement for a Java EE application server is therefore not recommended in production environments.
So after several testing, we plan to move to Zend Server with built in Java Bridge.
Java bridge in the Zend Server is easier to configure than with running the javabridge.jar.
Here’s how to configure the java bridge w/in Zend Server
*Run Zend Controller and turn on “java bridge”
* Open zend server web based management and click ‘zend java bridge” directives
Choose the port number in which java bridge will listen. Save and restart PHP and apache services
The advantage of using Zend server java bridge:
* you don’t need to launch a separate servelet like the “javabridge.jar”
* you don’t need to include (“Java.inc”)
* you don’t need to define “JAVA_HOST”
*use the Java() function directly w/in your application.
If your controller/action could not be located w/ your server but you are sure that Zend Framework is completely running, you can edit the httpd.conf of the apache configuration file.
Zend Server and WAMP Server are using the well known Apache web server. You can easily locate the configuration file under apache’s folder.
To get your controller/action working, change “AllowOverride None” to “AllowOverride All” in the httpd.conf file and restart apache web service.
After moving from WAMP Server 2 to Zend Server CE , I get this warning “It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting”, every time I use this PHP Date function.
If you get the same warning too, you can resolve it by adding
to your index.php file.