Personal Web Space

Blog

WordPress plugin update Connection Information

WordPress plugin update Connection Information

on 13 October, 2015 in Blog | 18 comments

A common error that you can come across while updating your WordPress plugins is the one in the screenshot where WordPress is requesting to provide the Connection Credentials in order to be able to update. For me personally this happened when I moved my websites to a new server and the permissions of the files changed. WordPress is checking the ownership of the files while updating and they must match some specific criteria described in various posts in the web. There is no need to go into much detail on what is causing the problem since there is a very simple solution which worked on all my websites. Just add below line at the bottom of wp-config.php and you are done!...

Read More
Fix for Boot Camp x64 is unsupported on this computer model

Fix for Boot Camp x64 is unsupported on this computer model

on 15 September, 2013 in Blog | 64 comments

Recently I tried to install Boot Camp 5.0.5033 on my MacBook Pro (13-inch, Mid 2009) having previously installed Windows 7 64-bit. Guess what? Apple decided to make our life difficult again by popping up “Boot Camp x64 is unsupported on this computer model” error. I am guessing that this problem  happening to many of you out there that have different models of Macs so here is how to solve: 1 Download Boot Camp 5.0.5033 (or a newer version) from apple’s website. 2 Extract all contents but do not run *BootCamp5.0.5033\BootCamp\setup.exe as this will produce the error displayed above. 3 Instead we need to run *BootCamp5.0.5033\BootCamp\Drivers\Apple\BootCamp.msi but if we try to do it the old fashioned way, yet another error pops up “this installation requires elevated privileges. launch the installer through setup.exe”. Unfortunately in my case there was no option to run the msi as Administrator. 4 To overcome the administrator issue, navigate to C:\Windows\System32 and locate cmd.exe. Right click the icon and select Run as administrator option. Hold on! Right click is not available without boot camp; well here is a secret, Shift+F10 does exactly the same! Navigate again to  *BootCamp5.0.5033\BootCamp\Drivers\Apple and execute BootCamp.msi from the command prompt by typing BootCamp.msi. If that does not work try “BootCamp.msi”. Voila! Restart your Mac and you are good to go. 5 (Bonus) Follow this link Windows BootCamp reverse scrolling to make scrolling in Windows have similar feeling as in Mac OS...

Read More
Windows Folder Lock

Windows Folder Lock

on 16 March, 2013 in Blog | 0 comments

Have you ever needed to lock your personal folder so that no one can access is unless they know the secret password? I have personally searched for such applications many times but all solutions seem to be complex such creating partitions with encryption and so on. Finally I had some free time and decided to create my own application to do just that; lock a folder! Below you can find some information on how to use it. This simple application is by no means considered secure and can be easily reverse engineered. Thus no explanation on how it works will be given. The application is written in C. It should run on all versions of Windows but is only tested on Windows XP and Windows 7. How to use: Place windirlock.exe in any directory you wish to create the new locked folder. First time it runs it will create a folder called “Personal” and will also request the password to be used for unlocking it. Note that this password can be set only once and can never be changed for the current working directory. Once execution finishes you will notice a new folder called Personal in the current directory. You can place in there any sensitive information you want. At this point, each time windirlock.exe runs it will either lock or unlock Personal folder depending in its current state. Simple, isn’t it?   Download:   Disclaimer: The author of the application is not responsible for any data loss or any other issues caused by the use of this application.   Update 21/03/2013: Version 1.1 uploaded. Offers better...

Read More
PuTTY SSH Tunneling

PuTTY SSH Tunneling

on 7 December, 2012 in Blog | 0 comments

This post explains how PuTTy SSH Tunneling can be easily used to bypass firewall rules blocking ports. Let’s say that we have the following setup where only communication via port 22 is allowed between two hosts: Step 1: Open profile and load server’s profile Step 2: Navigate to Connection->SSH->Tunnels and add new port as the screenshot below, then click Add Step 3: Navigate back to Session and click Save. Then Open an SSH connection and log in the server as usual; as long as the putty window is open and connected, the client can connect to the server’s port 9098 via port 22 using settings (IP 127.0.0.1 and port 9098). Hope this was...

Read More
Linux – set any program to start as daemon/service

Linux – set any program to start as daemon/service

on 3 December, 2012 in Blog | 0 comments

This post explains how to add any program to start a service/daemon on linux (as long as the program supports this). It was created while attempting to start TeamViewer as a daemon while my home server was booting up. To start any program as a daemon, a link to the daemon script should be placed in /etc/rc*.d/ where * is the number of the boot mode the machine is set to start. In order to find what is your current default mode, please check in file /etc/inittab. Usually these types of daemon scripts are placed in /etc/init.d/ directory. The below script is a generic script that will start any application/service defined by the user. Simply copy the code below into a file, e.g. /etc/init.d/newdaemon and then create a symbolic link to it from within the directory your machine is booting e.g. # ln -s /etc/init.d/newdaemon /etc/rc3.d/S90daemon Note that this script was only tested using bash shell. Feel free to use and modify as you like. To test the script is working you can use it like this: # /etc/rc3.d/S90daemon start # /etc/rc3.d/S90daemon status # /etc/rc3.d/S90daemon stop # /etc/rc3.d/S90daemon status   #!/bin/bash # #Generic daemon script # # source function library . /etc/rc.d/init.d/functions RETVAL=0 USER=root PROG=sshd # MODIFY THIS PATHPROG=/usr/sbin/$PROG # MODIFY THIS start () { echo -n $PROG" starting up " $PATHPROG & > /dev/null 2> /dev/null sleep 5 if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then success $"" else failure $"" fi echo "" } status() { if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then echo -n $PROG" is running..." echo "" else echo -n $PROG" is stopped" echo "" fi } stop () { echo -n $PROG" shutting down" > /tmp/pid chmod 777 /tmp/pid > /dev/null 2> /dev/null ps -ef | awk '!/bash/' | awk '/'$PROG'/ {system("echo " $2 " >> /tmp/pid")}' cat /tmp/pid | awk '{system("kill -9 " $1 " > /dev/null 2> /dev/null") }' sleep 5 if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then...

Read More
Flash Galaxy Nexus to latest Android

Flash Galaxy Nexus to latest Android

on 16 November, 2012 in Blog | 0 comments

Before we start Warning 1: This procedure is taken at your own risk as it may result in a bricked phone. Warning 2: After unlocking the bootloader of your device, ALL data will be wiped. This procedure may also work for other Nexus devices. I personally tried it on my Galaxy Nexus GSM 4.1.1 yakjuxw using MacOSX and it was successfully updated to 4.2 takju.    Things you need For Windows: Android SDK Platform-tools, Google USB Driver and Fastboot, Nexus images For Mac/Linux: Fastboot, Nexus images If using Windows, install Android SDK Platform-tools and Google USB Driver before connecting your device to the pc. Make sure to download the CORRECT version of images for your device from Google’s website.   Flash/Install Procedure  Extract Fastboot and Nexus images in the same directory. Move sure that all .img files are located in the same directory (may need to replace boot.img of Fastboot with boot.img of Nexus image) Turn USB Debugging ON from “Settings” -> “Developer options” and connect the device with the computer. Turn device off. Turn it on in bootloader mode by keeping pressed up+down volume buttons and power button.  Using command line navigate to the directory where Fastboot and Nexus Images are placed on your computer. Unlock bootloader using Fastboot. Note that there are different versions for Windows (fastboot), Mac (fastboot-mac) and Linux (fastboot-linux). Use the correct one! # ./fastboot-mac oem unlock Choose Yes using up/down buttons. To select press the power button. When the bootloader is unlocked you will see something like this: Reboot in bootloader # ./fastboot-mac reboot-bootloader Flash bootloader image # ./fastboot-mac flash bootloader bootloader-maguro-primelc03.img Reboot in bootloader # ./fastboot-mac reboot-bootloader Flash radio image # ./fastboot-mac flash radio radio-maguro-i9250xxlf1.img Reboot in bootloader # ./fastboot-mac reboot-bootloader Flash system image # ./fastboot-mac flash system system.img Flash userdata image # ./fastboot-mac flash userdata userdata.img Flash boot image # ./fastboot-mac flash boot boot.img Flash recovery image # ./fastboot-mac flash recovery recovery.img Erase cache # ./fastboot-mac erase cache Reboot # ./fastboot-mac reboot Ready to go with your Galaxy Nexus & latest Android...

Read More
Page 2 of 512345