If Eclipse with installed Perforce (P4) plugin hangs on start trying to load a workspace and in WORKSPACE/.metadata/.log you see something like this repeating again and again:
============
!ENTRY com.perforce.team.core 4 0 2013-07-12 17:17:31.375
!MESSAGE Perforce password (P4PASSWD) invalid or unset.
============
This simple action may help - just remove if exists ".p4tickets".
On Linux:
rm ~/.p4tickets
On Windows:
del C:\Documents and Settings\<username>\p4tickets.txt
Solution was found here: http://osdir.com/ml/version-control.perforce/2005-12/msg00125.html
Marginalia
Friday, July 12, 2013
Tuesday, August 21, 2012
Recursively remove all .svn directories
find . -name .svn -print0 | xargs -0 rm -rf
Courtesy of http://codesnippets.joyent.com/posts/show/104
Courtesy of http://codesnippets.joyent.com/posts/show/104
Apply multiple patches at once
cd /path/to/source
for i in /path/to/patches/*.patch; do patch -p1 < $i; done
Courtesy of http://serverfault.com/questions/102324/apply-multiple-patch-files/102328#102328
Tuesday, July 3, 2012
Open "*.docx" files as MS Word files by MS IE 8.0
Users of Microsoft Internet Explorer may face this weird issue - try to download or open any "*.docx" or "*.xmlx" file from any site in Internet and you'll see it opens as zip archive!
Well, and this is because MS employees involved in different projects have no idea about other projects within MS MS IE has this nice feature "Open files based on CONTENT, not FILE EXTENSION". So just guess where to disable this USEFUL feature and you're good to go.
If you're not that smart (as I am for example) you may read through this step-by-step guidance:
If using IE8, you need to disable Opening files based on content rather than extension. Instructions -
1. In the upper-right corner of IE8, click on Tools to open the drop down menu;
2. At the bottom of the Tools menu, click Internet Options;
3. In the Internet Options dialog box, select the Security tab;
4. On the Security tab, select the Internet zone, then click the Custom Level button;
5. Scroll about 2/3 down the list to the option “Open file based on content, not file extension” and change the setting to Disable;
6. Click OK;
7. Repeat steps 4-6 for the Local Intranet zone and Trusted Sites zone;
8. Click OK;
9. Close all instances of IE8;
10. Reopen IE8 and it should now recognize Office 2007 and 2010 file extensions when saving email attachments.
2. At the bottom of the Tools menu, click Internet Options;
3. In the Internet Options dialog box, select the Security tab;
4. On the Security tab, select the Internet zone, then click the Custom Level button;
5. Scroll about 2/3 down the list to the option “Open file based on content, not file extension” and change the setting to Disable;
6. Click OK;
7. Repeat steps 4-6 for the Local Intranet zone and Trusted Sites zone;
8. Click OK;
9. Close all instances of IE8;
10. Reopen IE8 and it should now recognize Office 2007 and 2010 file extensions when saving email attachments.
The most funny part is any other browser on Earth opens files in question in proper application (MS Word or Libre/OpenOffice Writer) by default.
This issue has been known for years now and still MS ignores it. Well, it's their decision.
Friday, June 8, 2012
mount sshfs with access for all users
sudo sshfs user@host:/path mount_path -o allow_other
Add user in "vboxsf" group to access VirtualBox shared folder in Ubuntu guest
On Debian (Ubuntu and a like):
sudo adduser <username> vboxsf
On RedHat (CentOS):
sudo usermod -a -G vboxsf <username>
sudo adduser <username> vboxsf
On RedHat (CentOS):
sudo usermod -a -G vboxsf <username>
Monday, January 16, 2012
Slow boot of Ubuntu into Unity 3D with proprietary nVidia drivers
I have Ubuntu Oneiric Oncelot 11.10 with proprietary nVidia (nvidia-current: 290.10-0ubuntu1~oneiric~xup1) drivers.
And there're 2 things I'm tired of:
- Slow boot. Mostly a black screen after nVidia drivers are already loaded.
It turned out it lasts more then a minute (73 seconds for example, compared to booting into Unity 2D - 38 seconds). - Slow wake-up from suspend. Don't have precise numbers but Unity 2D wakes just immediately while Unity 3D shows me a black screen more then a minute.
So I decided to try "bootchart".
Installed it with: sudo apt-get install bootchart
And booted into:
Unity 3D - got 1:12.98 min
Unity 2D - got 0:38.66 min
Then looked if some processes related to nVidia differ in both boot logs.
And indeed I found out that "nvidia-settings" process was mentioned proc_ps.log in such proportion:
- 66 times for Unity 3D and
- 21 times for Unity 2D.
That lead me to conclusion that disabling "nvidia-settings" may improve boot performance.
So I did "sudo chmod a-x /usr/bin/nvidia-settings" and the next boot in Unity 3D took the same 37 seconds (0:37.76) as with Unity 2D.
For sure it is not the solution, but at least a direction to look.
Moreover this unfortunately has nothing to do with wake-up delay, so keep looking into it.
Anyway, hope this helps.
P.S. Make sure you know what are you doing while dealing with system files.
Subscribe to:
Posts (Atom)