Feb 23, 2014

new steam library must be on a file system mounted with execute permissions

I have Ubuntu 13.10 and I wanted to install Dota 2.

After installing Steam I wanted to use another partition for the steam library.
I already have a windows (NTFS) partition with some free space.

When I wanted to choose the installing directory to that partition... surprise: "new steam library must be on a file system mounted with execute permissions"

I found a nice tutorial that allowed me to get rid of this error.

(1) Collect basic information needed. First, find the UUID for your storage partition. Run this command and copy the value from the UUID column for the storage partition:

sudo blkid -o list

Next, find out the uid and gid for your user account (assuming that is the account you want to have full permissions on this storage partition):

id

Copy the number after uid= and after gid=. Both are probably 1000, if this is the user account created during installation of Linux Mint.

(2) Now you have to create a directory that will serve as the mount point for your storage partition. You can do that anywhere you like, so let's do it in your home folder for now (replace `username` in below with your username).

mkdir /home/username/Storage

(3) Now you are ready to set up /etc/fstab. So edit the file as root:

sudo nano /etc/fstab

At the end of the file, add a line such as the following:

UUID=uuid-value /home/username/Storage ntfs-3g uid=1000,gid=1000,fmask=0022,dmask=0022,windows_names 0 0

Replace `uuid-value` with the value copied in step (1). Replace `/home/username/Storage` with the full path to the mount point created in step (2). Replace the value on `uid=1000` and `gid=1000` with the values copied in step (1). Reboot to activate.

You can read it here:
http://forums.linuxmint.com/viewtopic.php?t=150757

Jan 26, 2014

Accessing a Windows 8 NTFS partition from Ubuntu

Yesterday I installed Ubuntu (again) and I just wanted to access my D: drive (all my files were there). I was surprised to see an interesting error:

Error mounting /dev/sda3 at /media/kashan/zombie check:
Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,
dmask=0077,fmask=0177" "/dev/sda3"
"/media/kashan/zombie check"' exited with non-zero exit status 14:
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda3': Operation not permitted
The NTFS partition is in an unsafe state.
Please resume and shutdownWindows fully (no hibernation or fast restarting),
or mount the volumeread-only with the 'ro' mount option.
First you have to find out the partition where you have the windows installed:

sudo fdisk -l

sda3 is my windows partiotion so executing the

sudo ntfsfix /dev/sda3 

command saved me!

If you don't have ntfsfix you can install it with the following command:

sudo apt-get install ntfsprogs

Oct 6, 2013

OsCommerce - Ultimate SEO URLs - Redirect Loop

I just installed OsCommerce and tried to make the URLs a bit more friendly. I guess all of us want that, I really don't know why the OsCommerce guys doesn't make this as a built in option...

So, I installed the latest Ultimate SEO URLs add-on which is v22d_12 right now.
Very useful and easy... but when I tried to click a link... OUPS...not working - "This webpage has a redirect loop" (Chrome) or "The page isn't redirecting properly" (FireFox)

U G L Y ... right?!

I searched a bit the web... but nothing. There were a lot of people asking for direction about this issue but I could't find anything helpful.

The solution is actually very easy.
Open your config.php file (it is under /catalog/includes/configure.php). Well, you will find some variables defined as empty strings.
The HTTP_COOKIE_DOMAIN, HTTP_COOKIE_PATH and HTTP_SERVER were also empty.

Now, you know what you have to do, right?

define('HTTP_SERVER', 'http://put-your-domain-here.com');

...aaaand add some slashes here:

define('HTTP_COOKIE_DOMAIN', '/');
define('HTTP_COOKIE_PATH', '/');

Now test it!

It's working? YaY!

It's not working?! well... I'm sorry :(

Nov 18, 2012

Samsung Galaxy FIT to 2.3.6 Gingerbread

I have just upgraded my Galaxy Fit to Android 2.3.6 Gingerbread. It works very good, everything works perfectly - wi-fi, , usb, camera and so on.... Anyway I see no big difference. Just one changed icon and a blue gradient while scrolling at the top or the bottom of the list.

Here is the video of how to do it: http://www.youtube.com/watch?v=QetKoSDBIpA
Enjoy!

-----------------


The data transfer mode didn't work by default. I live in Romania and I use the Cosmote Network so here are the internet settings for data transfer mode.

Go to Settings -> Wireless and network settings -> Mobile Network Settings -> Access Point Names. Press the menu button and then press New APN.
Name: broadband
APN: broadband

Save it! and that's it!

Nov 4, 2012

jQuery TipTip

Have you ever used this jQuery plugin? It is very useful to display info text about your inputs, texts, images, etc. and it has a very nice layout. However there was a little bug in the plugin - it appears in the wrong place if you use css margins. The plugin use the outerWidth() function to show the tiptip in the right place. 
For more details visit this link: http://api.jquery.com/outerWidth/