LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > dr_agon
User Name
Password

Notices

Uncategorized Entries with no category
Old

Avoiding wxPython PrintPreview segmentation fault or double free error

Posted 11-28-2008 at 08:23 PM by dr_agon

applies to: Python, wxPython (v.2.8), wxWidgets, wx.PrintPreview, wx.Printout

When creating wx.PrintPreview class, you must pass 2 parameters of wxPrintout class (see doc)
If someone (like me) gets a silly idea of passing the same instance of wxPrintout class as both parameters, on closing the preview frame he will get segmentation fault or double free error.
Example (don't do this!):
Code:
class MyPrintout(wx.Printout):
  
  #rest of code
...
Member
Posted in Uncategorized
Views 1888 Comments 0 dr_agon is offline
Old

Setting udev permission for raw host disk access by virtualbox machine.

Posted 10-14-2008 at 09:02 AM by dr_agon

applies to: linux, udev, permissions, device node, virtualbox


To allow raw host disk access by guest machine on VirtualBox the user must have read-write permission to all partitions which are to be accessed. You can do this by something like
Code:
sudo chmod a+rw /dev/sda7
but executing it every time you need to boot virtual machine is annoying. You may want to set the permissions at boot time.
In modern kernels (since 2.6) you can use the udev rules for setting default...
Member
Posted in Uncategorized
Views 4474 Comments 0 dr_agon is offline
Old

How to remove selected messages left on the POP3 server.

Posted 10-13-2008 at 04:46 PM by dr_agon

applies to: KMail, Evolution, Perl, POP3, mail client

Unfortunatelly my favourite mail client (Kmail) cannot leave messages on the POP3 server while retrieving them and delete them later, eg. when they are moved to 'Trash" folder (like Thunderbird). The same applies to Evolution. Of course I know there are IMAP servers, but that's not the solution I like most. I also did not want to periodically erase all messages left on POP3 server. I did not find any reasonable solution, so...
Member
Posted in Uncategorized
Views 1408 Comments 0 dr_agon is offline
Old

CVS diff default behavior

Posted 10-13-2008 at 03:55 PM by dr_agon

applies to: linux, cvs, diff

I spent some time wondering why cvs diff does not show the local files which differ from the most recent revision. It turned out that this is simply the default behavior, as described in man page:
Quote:
The default action is to compare your working files with the revisions they were based on
To see differences with other revision, you must use -D or -r option.
For example to compare with newest revisions:
Code:
cvs diff --brief -D now
...
Member
Posted in Uncategorized
Views 1083 Comments 0 dr_agon is offline
Old

How to allow ordinary (not root) users to mount/unmount everything.

Posted 10-06-2008 at 01:50 PM by dr_agon

applies to: linux, debian based (Mepis), mount, sudo

While testing many things often I have to mount/unmount resources, and I became tired of using 'su' and supplying password.

The easy but not very secure solution is to allow some (or all) users to execute mount/unmount as root without being prompted for password by adding them to /etc/sudoers file like this:
Code:
%users  ALL=NOPASSWD: /bin/mount, /bin/umount
'users' is a group name.
Now I can use...
Member
Posted in Uncategorized
Views 690 Comments 0 dr_agon is offline

  



All times are GMT -5. The time now is 08:03 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration