Linux Ubuntu – User not in the sudoers file

Posted in category Unix/Linux

If your user is not in the sudoers file you won’t be able to do any root tasks.

To fix this:

1. Boot into the recovery mode and load the root console. (Hold left shift on boot to show the Grub loader)

2. To make the file system writable execute: mount -o remount,rw /

3. Add user to the group admin by executing: adduser username admin (additionally you can add the user in the sudoers file, command: visudo)

4. To finalize the changes execute: sync ; mount -o remount,ro / ; reboot -f

WordPress Custom post type and pagination problem – Error 404

Posted in category Wordpress

1.5hour of pure frustration.

After registering a custom post type, slug “news”, and creating a page “news” to display the latest posts the pagination just wouldn’t work. I was always getting a 404 error. Setting the permalinks to default and back to the old setting solved the problem.

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$wp_query = new WP_Query("post_type=news&paged=$paged&posts_per_page=1");

if (have_posts()) :


WordPress 3.1 supports archive pages for custom post types. Add “has_archive” => true when creating the custom post type. No custom page required any more. Name the archive page: archive-customPostTypeName.php

Paging still has problems. Setting the default wordpress posts per page value lower or same as the custom wp_query(“posts_per_page”) value solves this somehow. Weird.

Internet Explorer Application Compatibility VPC Image – Windows XP Username and Password

Posted in category Operating Systems

Microsoft provides Windows Virtual PC images for download. The virtual images are preinstalled with Internet Explorer 6 and IE7 which web developers can use to test their web sites.

Windows XP may request the login username which is not stated on Microsoft’s website.

Windows XP
username: IE User
password: Password1

Ipconfig /all missing ethernet adapters. Limited connection. Solved

Posted in category Operating Systems

After a Windows 7  restart I had no network adapters showing after executing the ” ipconfig /all ” command but they showed up in the device manager, so the netowork was not working at all.
After few hours researching the internet and thinking of a system reinstall I accidentaly found the solution.

Other solutions:

1. Disable IPv6 protocolls for the network adapters

2. Reset TCP/IP stack, Winsock

3. Remove all Toredo and Isatap ethernet tunnels inside the device manager. (Device manager > Show hidden devices > Network adapters)

4. Uninstall the network adapters inside the device manager. Install again with latest drivers

None of these worked for me.

What coused the problem for was a failed installation. That is a software that does AP simulation. The installation failed and crashed the system but it had messed up the network settings.

5. For all network adapters click on Properties and disable “Connectify LightWeight Filter”.

Email Ports

Posted in category Unix/Linux, Web

Email ports

  • POP3 – port 110
  • IMAP – port 143
  • SMTP – port 25
  • HTTP – port 80
  • Secure SMTP (SSMTP) – port 465
  • Secure IMAP (IMAP4-SSL) – port 585
  • IMAP4 over SSL (IMAPS) – port 993
  • Secure POP3 (SSL-POP) – port 995

The Rasterbator

Posted in category Graphics

The Rasterbator is an application which creates rasterized versions of images. The rasterized images can be printed and assembled into enormous (or smaller, if you prefer) posters.

Upload/Download files with SFTP

Posted in category Unix/Linux

Uploading/Downloading files through your *nix console.


$ sftp

Available commands:

ls list files
pwd show which directory you are in on the server side
lpwd show which directory you are in on the client side
cd DIRECTORY change current location to DIRECTORY on the server side
lcd DIRECTORY change current location to DIRECTORY on the client side
get FILE download a file (accepts wildcards like “*”)
put FILE upload a file (accepts wildcards like “*”)

Redmine Drafts Plugin

Posted in category Web

Jean Barth wrote a nice plugin for Redmine that saves drafts while you are writing issues. Many times people write some long text and then hit the wrong button, the browser crashes and they loose the data. The Drafts plugin saves the data periodically and it can be retrieved if the worst happens.

Redmine Discussion Forum

Download plugin here

Original Installation instructions:

* clone this repository in your vendor/plugins directory ; if you have a doubt you put it at the good level, you can check you have a vendor/plugins/redmine_drafts/init.rb file
* run the migrations from your redmine root directory with command : @RAILS_ENV=production rake db:migrate_plugins@
* restart your Redmine instance (depends on how you host it)

How to install Redmine on Bluehost

Posted in category Unix/Linux, Web

How to install Redmine on BlueHost under a subdomain.  Redmine is a popular project management software based on RubyOnRails.

BlueHost is a shared hosting provider but allows you to use SSH access to your account. To enable SSH open a support ticket and send them a scan of your ID.

I will give you rough steps of how to set up everything.

Read the rest of this entry »

WordPress running on IIS and ugly permalinks starting with index.php

Posted in category Web, Wordpress

You may have experienced when running WordPress on IIS that the permalinks have that ugly index.php included.

Pretty way:
IIS way:

By tweaking the .htaccess and using some rewrite rules this can be fixed. (ISAPI_Rewrite required) Read the rest of this entry »