Notes by voodoo

Displaying keyword search results 1 - 10
Created by voodoo on May 22, 2012 12:26:41    Last update: May 22, 2012 12:26:41
My program core dumped but there was no core file. The problem was that the core file size was 0: $ ulimit -a core file size (blocks, -c... Use ulimit to enable it: $ sudo bash # ulimit -c unlimited
Created by voodoo on February 17, 2012 10:46:47    Last update: February 17, 2012 10:46:47
To open the Windows 7 certificate manager: press the Windows icon, then enter " certmgr.msc " in the "Search programs and files" box.
Created by voodoo on August 14, 2011 15:42:43    Last update: August 14, 2011 15:42:43
When I ran this code snippet with strace : f = fopen("TZ", "rb"); fseek(f, 0, SEEK_END); ... I saw ENOTTY error with uClibc : open("TZ", O_RDONLY|O_LARGEFILE) = 3 ioc... With the normal gnu libc , there's no such error: open("TZ", O_RDONLY) = 3 fstat64... There was no error running the program. But for some reason, uClibc did a ioctl call when it opened a file, and handled it appropriately.
Created by voodoo on August 12, 2011 14:44:45    Last update: August 12, 2011 14:44:45
#include <fstream> #include <iostream> i...
Created by voodoo on August 12, 2011 12:47:50    Last update: August 12, 2011 13:03:00
Use fstream and seekg : #include <iostream> #include <fstream> i... With stat : #include <iostream> #include <sys/stat.h> ...
Created by voodoo on April 13, 2011 13:47:34    Last update: April 13, 2011 13:49:20
You get "permission denied" error from Apache HTTPD for a page. And you checked file/directory permissions (the whole directory path, not just the file) and everything in httpd.conf . If everything seemed right, then SELinux may be blocking the access. Open /var/log/httpd/error_log , you may see a line like this: [Wed Apr 13 15:50:35 2011] [notice] SELinux poli... These are the steps to fix: If the directory resides in a user home directory: # setsebool -P httpd_read_user_content 1 Create a policy package from the audit log: # grep httpd /var/log/audit/audit.log | audit2allo... Apply the policy package just created # semodule -i mypol.pp Restart apache httpd: # apachectl restart
Created by voodoo on March 23, 2011 15:21:21    Last update: March 23, 2011 15:21:57
Open IIS Manager, select the server in the left panel. Double click "Server Certificates" in the right panel. In the server certificates dialog, right click and select "Create Self-Signed Certificate". Enter a name for the certificate and click OK. The certificate is valid for a year. Looks like MS doesn't offer you much option in creating a new certificate.
Created by voodoo on February 08, 2010 04:57:49    Last update: February 08, 2010 04:57:49
If you don't want to open an extra port for VNC or want extra security with SSH, you can setup an SSH tunnel for VNC. On Windows, you can do this with Putty or openssh . Open a command window, and enter (using Putty as example): C:\local\bin\plink.exe -ssh -2 -L localhost:5901:r... When connecting with vncviewer , use localhost:5901 as server instead of remote_host:5901 . If you use the setup frequently, it is more convenient to setup the tunnel as a Windows service . Assuming the name of the service is vnc_tunnel , the registry entry would look like: Windows Registry Editor Version 5.00 [HKEY_...
Created by voodoo on February 07, 2010 23:33:23    Last update: February 08, 2010 03:04:47
I installed vncserver on my Fedora box and tried to connect to it with vncviewer from Windows XP. I got this error: What could be the problem? These were the steps I took to diagnose it. I just list them here as a reminder. Is Windows firewall blocking the connection? No. It turned out that, unlike ZoneAlarm , the Windows firewall does not block outgoing traffic. It only blocks incoming requests. Is vncserver listening on the right IP address? Yes. netstat showed it's listening on all NICs. netstat -a | grep 5901 tcp 0 0 *:59... Is VNC port open on the local Fedora box on that IP address? Yes, telnet successfully connected: [jim@fedora ~] telnet 172.30.33.9 5901 Trying 1... What does telnet say from...
Created by voodoo on January 24, 2010 06:29:11    Last update: January 24, 2010 19:31:22
SIKULI is Jython. AutoPy is Python. Both use bitmaps to find areas of interest. It seems that SIKULI comes with an IDE but AutoPy doesn't. A sample SIKULI script captured from the project site: A sample AutoPy script from the project site: import autopy def where_is_the_monkey_i_say(): ...