Sunday, July 28, 2013

Windows 7 – Edit the Hosts File

Need to figure out how to edit the Hosts file in Windows 7? For the most part, it’s pretty much the same as Windows XP and Vista, but with a few extra hiccups!
Just if case you don’t know, the Hosts file is where you can manually enter a hostname and an IP address pair, thereby bypassing the DNS server. This can be pretty useful in certain situation, especially for anyone in IT.
The path to the Hosts file in Windows 7 is the same as usual:
where %systemroot% is usually c:\windows unless you installed Windows on a different partition. By default, you cannot see these hidden folders since they are system folders.
To show hidden folders in Windows 7, press the ALT key while in Explorer to bring up the File menu. Click on Tools and thenFolder Options.
hosts file windows 7
Click on the View tab and then click on the Show hidden files, folders, and drives radio button under Hidden files and folders.
show hidden files windows 7
Now navigate to the directory above and open the hosts file and make your changes.
edit hosts file
Note that this method for editing the Hosts file will not work. You will get a message saying you do not have permission to save in this location.
windows 7 hosts file
In order to edit it, you have to click on Start, type in Notepad and then right-click on Notepad and choose Run as Administrator.
run as administrator
Now navigate to the drivers/etc folder again and make sure to choose All files for File Types otherwise you won’t see the Hosts file.
view all files
Make your changes to the Hosts file and click File and Save to save all changes. Now you will not get the error about not being able to modify the Hosts file. Enjoy!

Multiple Segmented Connections - Getting the Fastest Speed out of FTP

Getting it

You can find other version on their "Official site"


I skipped the install part, if you can't install it please press alt+f4 now! Once you have it installed you should see the following screen.
Go to Options->Settings
Proceed to Downloads->Network and copy the settings below
Now move over to Download->New Download
These settings might need some tweaking depending on how large the files are you normally download. The larger the files the larger your sections should be. As baseline you can use the settings below.
That should be it, setting wise.


Press the little >> signs here
Now copy your details in the following format: . Now make sure you edit in the appropriate details.
Now press enter or "go" and you should be ready to rock!
It pays to play with the settings a bit, if you don't max out your connection make sure you are using 20 segments.

Have fun!

Magic the Gathering 2014 Sealed Deck Edit / Hack

Want to edit your sealed card decks in Magic the Gathering 2014?
Make sure the game is closed while you edit stuff.
Backup the .profile file

First of all, you need any HEX editor.

To list all the cards use this tool.

Use the Gibbed.Duels.Unpack.exe to unpack DATA_DECKS_D14.WAD
which contains sealed cards id's.

This gives you unpacked xml 
D:\Games\Steam\SteamApps\common\Magic 2014\DATA_DECKS_D14_unpacked\DATA_DECKS_D14\DATA_ALL_PLATFORMS\DECKS\D14_SEALED_POOL.XML 

Okay, here we go.Open DECKSD14_SEALED_POOL.XML with a text editor, you can see some deckOrder id's here.

Open the .profile file in the directory C:\Program Files (x86)\Steam\userdata\RANDOMNUMBER\213850\remote in a HEX Editor.
Backup the .profile file
Scroll down and you can see your sealed decks names between header and ending of the profile. 


1D 01 21 01 05 01 7B 01 19 01 05 01 1D 01 4F 01 44 01 3F 01 04 01 03 01 20 01 00 01 07 01 07 01 50 01 55 01 01 01 71 01 7D 01 51 01 51 01 3C 01 3C 01 94 02 31 02 36 02 08 02 2E 02 16 02 34 02 25 02 32 02 42 02 54 02 15 02 39 02 37 02 2D 02 33 02 02 02 3A 02 68 02 4A 02 73 02 0A 02 33 02 36 02 11 02 18 02 37 02 6C 02 5D 02 87 02 29 02 0D 02 0F 02 37 02 31 02 12 02 36 02 09 02 02 02 5D 02 6C 02 0F 02 38 02 25 02 2F 02 31 02 46 02 66 02 3E 02 38 02 2F 02 0A 02 17 02 15 02 36 02 02 02 33 02 5A 02 87 02 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00
These are blocks with your cards. You can change hex values with any sealed pool's ids. Of course you should convert these ids to hexadecimal form first. There is also 01 and 02 values, these says if your card is in deck 01 or pool 02. Every two blocks = 1 card. Saved pools can have maximum of 126 cards.

There is some empty FF 00 slots as you can see. It should work well if you just fill these with card ids and 02 values like [35 02] and so on.

Take deckOrder id's from
 DECKSD14_SEALED_POOL.XML and convert the decimal number  to hex and then edit the deck hex table for that card.

So in the XML you see:

<CARD name="PRIZED_UNICORN_345320" deckOrderId="100" />

Take "100" convert to HEX. HEX of 100 = 64
Replace a HEX entry for a card. If you wanted the card in your hand you would make the pair:
[ 64 01 ]

Save the hex
Also, it should be possible to create more deck slots by just copying existing ones and editing some values.

Now take your .profile file and run it  through this program:
Extract that archive to this directory (look up your random number)
C:\Program Files (x86)\Steam\userdata\RANDOMNUMBER\213850\remote

Use command line and CD to
C:\Program Files (x86)\Steam\userdata\RANDOMNUMBER\213850\remote

run the command (number of profile is unique to user)
D13Hash NUMBEROFPROFILE.profile hash.file

you will get an output like:
* Duels of the Planeswalkers 2013 profile hash generator *
Opening file 150497.profile... OK
Length: 0x5436
WARNING: non-standard file length (expected 0x10c4).
Hash: 0xda54cef3
Writing hash to file hash.file... OK

The warning is OK - IT STILL WORKS

This is called creating a HASH or hashing the .profile file.
Every time you change the .profile file in a HEX editor you need to generate a new HASH.
Now your deck should load in the Game.

Image of what you should edit.


Have fun and enjoy.

Wednesday, July 17, 2013

Wordpress : Disable featured excerpt and display full post in homepage

Used a template that used an excerpt from the latest post on the homepage. I want it to pull the full post - How do I accomplish that? Here is the code

<?php echo bm_better_excerpt(105, ' ... '); ?> with <?php the_content(); ?

Tuesday, July 2, 2013

Dreamhost- How to manage Account Privileges of other Users

Account Privileges has been created to allow you to give another person or group access to your Web Panel so they can edit settings.
You can choose which services you would like to provide access to. For example if you have 4 Websites in your account and you want someone else to be able to make changes to one of them but you don't want them to see your other 3 domains. All you have to do is select which domain, emails, and databases you want to provide access to.
To Setup Account Privileges for some one all you have to do is click on the Account Privileges link under your Users section as pictured below:
AccountPrivileges 01.png

You will just need to enter the email address and name of somebody you want to give privileges to; as well as what they can see on your account when they log in to the panel. You will get to choose which Users, Domains, Databases, Groups, Billing, etc. The email address which was entered for the user will receive an email informing them that they have been granted these privileges along with the password, the password won't be revealed to you when assigning the privileges.

AccountPrivileges 04.png

After adding privileges, you'll see a full listing of what you've allowed this person to access on your account. It'll look something like this:
AccountPrivileges 05.png

In the picture below you will see the difference from what you can see in your account and what the Privileged user account you just setup can see when they login. They will only see the domains you allowed them to see and also if you notice the Billing button is grayed out so they can't click on it. (these are meant to show you that the Privileged user sees less domains than the owner so don't mind the low detail of the images)

AccountPrivileges 06.png AccountPrivileges 07.png



Privilege Explanations


Modify billing details.


Modify existing and possibly future domains. Does not allow new domain hosting.


Modify existing users and potentially future users. This privilege does not allow user creation.


Modify existing databases. This does not allow creation of new databases.
Please Note: They will not be able to access the MySQL section of the panel unless they have access to at least one domain.

Hosting Plans

You may have multiple hosting plans under one account, this would allow the user to add or remove features to all or some of these hosting plans.
Please Note: They will not be able to add/access any additional features if they do not have access to at least one domain.

Old Knowledge base information

This is where you can grant other people Web Panel access to your account. For example, you might want to let one of your Users have access to your domains, but not let them have access to your billing information. You can do that here!
There are seven types of Privileges that you can grant to others:
BILLING Billing refers to the Billing tab of your web panel. If you grant someone Billing privileges for your account, then they will be able to access the Billing tab to sign up for new services, make payments, edit your payment methods, view your billing history, etc. Be very careful about to whom you choose to grant this privilege!
PRIVILEGE ADMINISTRATION Privilege Administration refers to the ability to change privileges. This is the most dangerous of all privileges! If you grant someone the privilege of Privilege Administration, then not only will they be able to edit their own privileges, but they'll also be able to edit the privileges of any other person you may have granted account access to. Essentially, someone with the privilege of Privilege Administration has the same power over an account that the account owner does.
PLANS You may select any of your plans to give another web ID access to. You may also allow access to all of your plans if you'd like. Having access to a plan basically means that you can add services such as users, domains, databases, and mailing lists to that plan, up to the amount that plan provides. It does not allow ending, upgrading, or downgrading the plan. You'd need to have billing privileges to do that. Basically, if you want to allow somebody to add their own new services through our web panel, you need to give them access to a plan!
DOMAINS You can choose to give a web ID access to any specific domains of yours, or access to all domains you have. Domain access allows a web ID to change the web directory for that domain as well as modify all email addresses, auto-responders, mailing lists, and discussion lists at that domain. They can even remove the domain, though they won't be able to add another one unless they have PLAN access.
USERS You can choose to give a web ID access to any specific user (or mailbox) of yours, or access to all users you have. User access allows a web ID to change the shell, password, homedir, and name for a user or mailbox. They can even remove the user, but they won't be able to add another one unless they have PLAN access.
DATABASES You can choose to give a web ID access to any specific database of yours, or access to all databases you have. Database access allows a web ID to manage database users and hostnames. Of course, anybody who has a database username/password can actually access a database. The privileges is more for setting up those database usernames and being a database "administrator". Database privilege allows you to delete a database but you won't be able to add one unless you have PLAN access.
MAILING LISTS You can choose to give a web ID access to any specific mailing list of yours, or access to all mailing lists you have. Mailing list access allows a web ID to modify the properties/subscribers to a mailing list as well as to post to the mailing list from the web panel. They can also delete the mailing list but won't be able to add one unless they have DOMAIN access to the domain they want to add it to. In a way, mailing list access is a sub-set of DOMAIN access.

How do I grant another person administrative privileges for my account?

Go to the Users > Account Privileges section of our web panel and click the link to Grant Privileges to a new person.
From there, you'll get to enter the email address of the person you'd like to grant access to your account to.
Under that you can check off all the privileges you'd like to grant this person.
When you submit the form, both you and the new user will get an email message from Dreamhost. The copy of the message sent to the newly added person will include a randomly generated password they can use to access the features you've granted them access to as well as the URL of the control panel.

Can I give access to only ONE domain of mine?

Yes you can!
When you add a new privileged user, just check the box next to the domain you want to allow access to!

How do I revoke a Web ID's privileges to my account?

From the Users > Access Privileges area of our web panel, just click on the Revoke All Privileges link for the Web ID in question. You'll get a pop-up confirmation box, and when you ok it, you're done!

How can I let another Web ID add services to my account?

You have to give them access to a PLAN of yours from the Users > Account Privileges of our web panel. They will then be able to add (and then manage) whatever services that plan allows. You can also let them add the services by granting them billing access, but this can be dangerous.

How to sync your iPad with Linux

Even if you are not a technology buff, it’s hard not to notice how the iPad has taken over the world of gadgets. Before its launch, the iPhone and the iPod touch had a similar impact and they are visible just about everywhere you go. All of Apple’s portable devices use iTunes to synchronise their information with a computer, and iTunes is only available on Windows and Mac systems. So where does that leave Linux users like you and me? Thankfully it’s not a lost cause – let’s take a look at how you can get the maximum out of your fruit branded mobile device on an Ubuntu desktop setup. You’ll also be pleased to hear that all the solutions that we look at here will work on your Apple mobile device without the device requiring to be jailbroken.
You’ll have to forgive the obligitory disclaimer however – all the software and syncing solutions discussed in this article are not built or approved by Apple, and therefore cannot be guaranteed to work as intended. Now, on with the guide…
Required resources
libimobiledevice The project that allows you to sync your iPod, iPad, or iPhone to your Linux machine
Handbrake For converting videos from one format to another
Fuse File system This allows read-write access to your Apple devices


1. Getting libimobiledevice
Both Ubuntu 10.04 and 10.1 support the iPhone, iPod touch and iPad out of the box. This is using the libimobiledevice project, which is hosted here. You can visit the project’s website and download the source code, along with that of the supporting packages. Ready-made binaries for several popular distributions are also available from this website. However, the easiest way to get hold of the libimobiledevice packages is by using your distribution’s package management system. For example, Ubuntu Linux and openSUSE have the software in their official repositories. Ubuntu 10.04 and 10.1 users can skip the next step.
2. Installing on Ubuntu 9.10
Although Ubuntu 9.10 does not ship with support for the Apple devices, you can set things up reasonably easily. Launch the package source manager by going toSystem>Administration>Software Sources. Click on the Other Software tab and then on the Add button. Now add the line ‘ppa:pmcenery/ppa’ as the source. Save it and hit the Reload button to reload the repository information. Now launch the Synaptic Package Manager and install the package ‘libimobiledevice0’. Note that you will need to restart your computer for the installation process to complete correctly.
3. Installing libimobiledevice for everyone else
If you have landed on a computer which does not have libimobiledevice pre-installed and you can’t find it in your distribution’s binary repositories, you can always download the source release of libimobiledevice and compile it yourself. First, make sure that you have the development tools required for compiling packages installed. Download the source package from the libimobiledevice project website and extract it to a temporary location. Get into the source directory and execute the following commands:
How to sync your iPad with Linux
./configure make sudo make install
4. Plug and play
When you have set things up, you should plug your iPad, iPod or iPhone into your Ubuntu computer. Connect it with the USB cable that you got with your device. When you plug it in, you should see two windows pop up, like the ones shown in the screenshot below, and your device’s icon appear on the Desktop. The two window panes will ask you which applications you want to use to view and manage the photos and the music on your device. The list that will appear depends upon what applications you have installed on your computer. If you see this screen, you should be in business. Let’s proceed and see how you can manage the music, photos, video and other data on your Apple device.

How to sync your iPad with Linux
An Apple iPad being detected and mounted in Linux

Working with Music

One of the pop-up windows that appeared when you connected your Apple device to your Ubuntu computer will ask you which application you want to use to manage the music on your device. Two players that have great support for these devices are Rhythmbox and Amarok.
5. Rhythmbox
Rhythmbox is the music player that ships by default with Ubuntu Linux, and is arguably one of the most popular music players on the Linux platform. When you connect your iDevice to you Ubuntu computer and Rhythmbox is running, the device should automatically show up in the Devices list on the left sidebar of the application’s main window. Drag and drop any music you want added to your iPod, iPad or iPhone. One of the missing features in Rhythmbox is that it only allows you to add music to your iDevice and not remove stuff. If you want to be able to remove stuff, you will need to use Amarok.
How to sync your iPad with Linux
Rhythmbox displaying the list of music on an Apple iPad
6. Amarok
Amarok is a KDE project and is not included in the default list of packages that gets installed with Ubuntu Linux. You can, however, install it using the command ‘# sudo apt-get install amarok’. Once Amarok is installed, connect your iDevice to your computer. The device should show up under the Local Music sections. To remove a song from your iPod or iPhone, expand the device’s music listing from the Local Music section, right-click on the song and click on the ‘delete’ option in the menu. Wait for a short while as the device syncs with Amarok. Hit OK when asked if you want to proceed with the sync. The selected track should then be deleted.


gtkpod is yet another application for syncing your iPod, iPad or iPhone with Linux. It’s a bit trickier to get going, but considering the fact that the team is working on features such as calendar and contacts syncing, it might just trump all the other tools to become a one-stop shop for all your syncing needs.
7. Get Fuse
Before you can get going with gtkpod, you will need to install the package Fuse and its dependencies on your computer. Ubuntu Linux users can install it by searching for the term ‘fuse’ in the Synaptic Package Manager’s list of available packages. Once Fuse is installed, you will need to edit the file ‘/etc/fuse.conf’. Open the file in your favourite text editor (with sudo privileges) and change the last line from ‘#user_allow_other’ to ‘user_allow_other’ (ie remove the hash sign). Save the file and exit the text editor.
How to sync your iPad with Linux
Edit the /etc/fuse.conf to look like this
8. Complete Fuse installation
Now launch the ‘Users and Groups’ manager from the System>Administration menu. Click on the Manage Groups button, find the group ‘fuse’ in the list and hit the Properties button. Check the box with your username on it in the pane that pops up. Click OK and close the windows. You should now have access to Fuse. For all the settings changes you made to kick in, you will need to log out and get back into your account.
9. Install gtkpod
Install gtkpod from Synaptic or by using the command ‘# sudo apt-get install gtkpod’. The application should appear under ‘Applications>Sound and Video>gtkpod iPod Manager’. Now add your iPhone, iPad or iPod to the gtkpod setup by launching on Edit>
Repository/iPod Options item in the menu. Give the repository a name such as ‘My iPad’.
10. Set up gtkpod
Make sure your Apple device is connected to your computer before proceeding. Under your home directory you will see a hidden folder called .gvfs/. Your Apple device will be mounted under this directory with the device’s name. Enter that as the repository mount point in gtkpod. For example, on our computer this path was ‘/home/sukritd/.gvfs/Phoebus iPhone’. Select your Apple device’s model under the list of the models available. Hit Add and OK to complete the setup. On the main window of gtkpod, click on the Load iPod(s) button to have gtkpod fetch all the information from your Apple device. Make the changes you want to make and then hit the Save Changes button to apply the changes to your Apple device.
How to sync your iPad with Linux
Enter the path of the location where your Apple device has been mounted, and the model, correctly

Working with photos & video

11. F-Spot
F-Spot is the default photo management program that ships with Ubuntu up to 9.10, and it’s a great application for this task. Apple’s devices, particularly the iPhone 4, have been known to make great cameras. Using F-Spot you can import your pictures from your iPhone or iPod touch. When you plug in the device, you will be asked which photo management software you want to use to manage your pictures. Pick F‑Spot. When F-Sport opens, it will offer to import all the pictures from your device – it really is that easy!


One of the funnest features of Apple’s mobile devices is their video playback capabilities. However, it’s not always easy to get video on these devices unless you have purchased the movie directly from Apple. Let’s look at how it’s done…
12. Install Handbrake
The first step to get video on your Apple device is to convert the video at hand to a format that’s compatible with the devices. We’ll use the program Handbrake for this. Handbrake can convert video from pretty much any format to the iPod format. Download your distribution’s binary from Handbrake’s website. Install the binary for your distribution. Currently Handbrake only comes with a command-line version on Linux.
How to sync your iPad with Linux
Get Handbrake from the project’s website
13. Convert the video
Once you have the tool HandBrakeCLI installed, try accessing it from the command line to make sure it works. Once that’s done, you can begin converting your first video. Use a command like the following to make the conversion:
# HandBrakeCLI -i /media/dvd -o mymovie.mp4 --preset=”iPhone / iPod Touch”
In this example, the input file is a video DVD. Once the conversion is complete, you can use Rhythmbox to drag and drop the video into your Apple mobile device.
14. Video streaming
Getting video onto these devices can be quite time-consuming. What we recommend instead is to stream a movie to the device using a wireless network with Air Video. You can do this too. Install the Wine package on your Linux machine. Download the latest release of Java and install it in Wine using a command like ‘# wine ./java-winxp.exe’. Download the Air Video Server from the website with ‘# wget’. Install it with Wine – ‘# wine ./Setup225.exe’. Once the installation is complete, you will be able to find Air Video in the menu under Applications>Wine> Programs>Air Video Server>Air Video Server. Launch the application and start sharing some movies from your computer.
15. Watch a streaming movie
Download and install the Air Video client app on your iPad, iPod or iPhone. There’s a free limited version available from the App Store as well as a paid one that has full functionality. Launch the app and you should be able to see your desktop or laptop listed under the available servers. You can browse through the list of movies and watch one by streaming it. If you face any issues, take a look at the firewall settings on your computer and make sure that the port 45631 is allowed traffic.
How to sync your iPad with Linux
A list of movies available for you to play from your Apple mobile device

Sync your contacts via Ubuntu One

Ubuntu One is a cloud-hosted storage and streaming platform from Canonical. It is available as a limited free version as well as a paid service with more space and features. You can use it to synchronise your iPhone or iPad contacts and other information with your Ubuntu computer.
16. Working with Ubuntu One
Head over to and create an account for yourself. Then you will be instructed to add a repository to your installer setup. After this you can install the Ubuntu One client with the command ‘# sudo apt-get install ubuntuone-client’. Once the installation is complete, you should find the Ubuntu One application installed under Applications> Internet>Ubuntu One. Follow the steps shown in the application in order to add your computer to your account.
17. Set up your device
Head over to and set up your device with your account. Note that the mobile version of this service comes at a price, which is mentioned on the website. You will require a username and password for this account. Take note of this information as you will need it later.
18. Install Ubuntu One Contact
On your Apple mobile device, search for and install the Ubuntu One Contact app from the App Store. Launch it and enter your username and password along with the server address as ‘’. Once you have done all this, like magic, your contacts will be synced with your account. Go to the Contacts tab in the Ubuntu One Dashboard to view them. You can set the details of how you want the sync to your account on the app on your mobile device.

19. Integration with Nautilus

If you are an Ubuntu 10.04 or 10.1 user, one thing you might notice is how well your Apple device integrates with the Nautilus file manager. You can not only browse through the contents of your device, but Nautilus also gives you a link to view and manage your photos and music with the applications available for these tasks.
20. Unmount
When you are done with using your iPad, iPod or iPhone with Linux, make sure you unmount the device before you unplug it from the computer. Right-click on the Desktop icon and select the Unmount option. When the icon disappears, it’s safe to unplug the device.
How to sync your iPad with Linux
Right-click to unmount your device before unplugging it