14 December 2012

How to change the Windows 8 product key

Start the Command Promt in Administrator mode by pressing [WinLogo]+X,
then execute
slmgr.vbs -ipk ABCDE-VH26C-733KW-K6F98-J8CK4
To activate windows after changing the key:
slmgr.vbs -ato

07 December 2012

How to fix broken packages

To fix broken packages in Ubuntu,

Go to System > Administration > Synaptic Package Manager and click Edit > Fix Broken Packages.

or in a terminal (Applications > Accessories > Terminal)
 

sudo apt-get -f install

23 November 2012

Fixing VirtualBox on Ubuntu 12.10

I installed VirtuaBox (4.1.18) on Ubuntu 12.10 (host os) so I can install Windows 8 (guest os) and use Microsoft office products as they are way superior to LibreOffice. Anyway, as soon as I opened Virtualbox, it came up with the error message, "Kernel driver not installed (rc=-1908)"


Well, after browsing for hours, I found a way to fix the issue. I just had to use the following commands.

        sudo apt-get install linux-headers-$(uname -r)

        sudo apt-get remove virtualbox-dkms

        sudo apt-get install virtualbox-dkms

Furthermore, after installing Windows 8 as a guest os and after installing guest additions, I wasn't able to enable "Switch to seamless mode", so I wasn't able to set the resolution to 1366x768 and I had to stick with 1024x768. Finally I found a workaround for that problem too. I had to use the command,

         sudo vboxmanage setextradata global GUI/MaxGuestResolution any

Hope this information will be useful for other Ubuntu users.

from xchamitha blog: Fixing VirtualBox on Ubuntu 12.10

19 October 2012

Definitive Android SDCard folder structure


In the root of the external storage (SDCard) save your shared files in one of the following directories:

Music - Media scanner classifies all media found here as user music.
Podcasts - Media scanner classifies all media found here as a podcast.
Ringtones - Media scanner classifies all media found here as a ringtone.
Alarms - Media scanner classifies all media found here as an alarm sound.
Notifications - Media scanner classifies all media found here as a notification sound.
Pictures - All photos (excluding those taken with the camera).
Movies - All movies (excluding those taken with the camcorder).
Download - Miscellaneous downloads.

from : http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

18 October 2012

ClockworkMod Recovery Custom ROM procedure


Everytime I install a new Rom, I double check to make sure it has a boot.img, then upon using CWM to install it, I first do the following(some of them are redundant, but I do so for good measure):


  • wipe data/factory reset
  • wipe cache partition
  • advanced > Wipe Dalvik Cache
  • advanced > Wipe Battery Stats
  • mounts and storage > unmount cache
  • mounts and storage > format /boot (If the rom had a boot.img)
  • mounts and storage > format /cache
  • mounts and storage > format /data
  • mounts and storage > format /system


Then I install the ROM zip, and if I want GAPPS, I flash those afterward.
Then reboot.

This ensures that ALL data is gone, and it will not allow for unique bugs caused by remaining data from a previous rom.

from: http://forum.xda-developers.com/showpost.php?p=32947067&postcount=11

12 October 2012

Cyanogenmod Partitioning SD Card

Partition the SD card
- Scroll down, and select “Advanced”
- Select “Partition SD Card
- Choose your Ext Size (I recommend choosing half of the storage space that your card is.
   - For a 256mb card, select 128M
   - For a 512mb card, select 256M
   - For a 1gb card, select 512M
   - For a 2gb card, select 1024M
   - For a 4gb card, select 2048M
   - For a 8gb card, select 4096M
- any memory card higher than this will not be partitioned, the phone will not be able to read it properly, but I would recommend an 8gb card, and if you have any smaller than 1gb, I wouldn’t even bother wasting your time – but go ahead if you wish.
- Now it will ask you what Swap size you want:
   - If you have a 256mb or a 512mb card, select 0M.
   - If you have a 1gb or a 2gb card, select 32M.
   - If you have a 4gb or a 8gb card, select 64M.
- If it asks to confirm, select yes, now wait for a few minutes, and reboot

13 September 2012

Install VLC in OpenSuse 12.2


In Terminal mode type :

sudo zypper ar http://download.videolan.org/pub/vlc/SuSE/12.2 VLC
sudo zypper mr -r VLC
sudo zypper in vlc

11 September 2012

How to install Lazarus in OpenSuse 12.2


To install fresh packages from Lazarus Daily Snapshots (http://freepascal.dfmk.hu/test/lazarus/)
type in Terminal (Super User mode):

rpm -Uvh fpc-2.6.0-0.laz.i686.rpm
rpm -Uvh fpc-src-2.6.0-0.laz.i686.rpm

zypper in lazarus-1.1.38611-20120911.laz.i686.rpm
(instead of rpm -Uvh lazarus-1.1.38611-20120911.laz.i686.rpm)

How to install Google Chrome in openSUSE

Don’t be confused about Chrome and Chromium. Both are browsers and using the same engines, then what’s the difference?, the difference is one is actively developed by open source community[Chromium] and the other is maintained and developed by Google[Chrome]. Google Chrome can say provide stable version, while Chromium is dev build version[unstable] which is stable though but have new features which then go to Google Chrome stable version later. Chromium is already provided in openSUSE default repositories. But for Google Chrome we need to add new repository. Which will have three versions, stable, beta, unstable. If you want to have different versions of this browser, install both Chromium and Chrome. Currently i’m running both versions, stable version from Google[Chrome] repository and dev build[Chromium] from openSUSE repositories. 1st of all open terminal and become root by su - , and then type, choose your system architecture:

64bit version


         zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome

32bit version


         zypper ar http://dl.google.com/linux/chrome/rpm/stable/i386 Google-Chrome

Now type:

         zypper ref


And install Google Chrome:

        zypper in google-chrome-stable

Now you will have two versions of Chrome/Chromium browser.

taken from :
http://anl4u.com/blog/how-to-install-google-chrome-in-opensuse

08 September 2012

MS Windows 32bit vs. 64bit

"The key consideration is RAM: 32-bit Windows can address only 3.5GB, while 64-bit Windows can address 4GB or more. Because so many new PCs come with at least 4GB, that's why you're seeing Windows x64 as the default OS."

from: http://www.pcworld.com/article/205885/windows_32bit_vs_64bit_personalize_your_os.html

P.S.: But, I must report that this my HP 2730p with 4Gb RAM work faster with 64bit versions of MS Windows and OpenSuse.

30 August 2012

Lazarus 1.0 release available for download

The Lazarus team is glad to announce the release of:

Lazarus 1.0

At this important stage the current team would like to thank all the past and current people who were involved in getting us here.

* Thanks also go to the FPC team for providing the compiler that makes it all possible.

* Special thanks go to the founders of the project who started Lazarus more than a decade ago in 1999: Cliff Baeseman, Shane Miller and Michael A. Hess.

* A history of developers involved can be found at http://wiki.lazarus.freepascal.org/History. And a list of the many contributors comes with the distribution.

The release is available for download at the SourceForge download page:

http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 1.0" directory.

Minimum requirements:

Windows: 98, 2k, XP, Vista, 7, 32 or 64bit

FreeBSD/Linux: gtk 2.8 or qt4.5, 32 or 64bit

Mac OS X: 10.4, LCL only 32bit, non LCL apps can be 64bit

This release has been built with fpc 2.6.0 (the former release 0.9.30.4 was built with that too).

The svn tag is

http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_0

The list of changes:

http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes

For people who are blocked by SF, the Lazarus releases from sourceforge are mirrored at:

ftp://freepascal.dfmk.hu/pub/lazarus/releases/

and later at (after some time for synchronization)

http://michael-ep3.physik.uni-halle.de/Lazarus/releases/

and

http://mirrors.iwi.me/lazarus/

22 August 2012

Lazarus : idemake.cfg is missing

If you try to rebuild lazarus and get compiler message for not finding file idemake.cfg, you should find it on "C:\User\AppData\Local\Lazarus\idemake.cfg" and copy to lazarus installation folder...

23 July 2012

Google Drive does nothing (Grayed "not signed in")

Problem : 


Google Drive Icon appears in task bar, but right clicking it reveals gray "sign in" and "not signed in" messages.


Solution :


Terminate Google Drive service via. Task Manager. 
Now in Windows 7 Control Panel - Region and Language option, you have to change only a Format (on first tab) in English-US. Everything else you can change in English-US format (Time format (12 to 24h), Us to Metric, date format....etc.). Now start Google Drive and it should work...

11 June 2012

Post-install procedure in Lazarus


This is post-install procedure for fresh lazarus build :

1. Install Fortes report package
    from http://fortes4lazarus.svn.sourceforge.net/viewvc/fortes4lazarus/?view=tar
    and copy file rlreportshared.dll to c:\lazarus folder
2. Install ZeosDBO database package
    from http://sourceforge.net/projects/zeoslib/files/Zeos%20Database%20Objects/
3. Install ZVDateTimeControls package
    from http://sourceforge.net/projects/lazarus-ccr/files/Time%20and%20Date/ZVDateTimeControls%20Pack/
4. Install zeddbtreeview package
    from http://code.google.com/p/zeddbtreeview/
5. Install uniqueinstance package
    from http://code.google.com/p/luipack/downloads/detail?name=uniqueinstance-1.0.zip
6. Install Lazarus Data Dictionary package
    from c:\lazarus\components\datadict\lazdatadict.lpk
7. Install PowerPDF package
    from http://sourceforge.net/projects/lazarus-ccr/files/PowerPDF
8. Install UNIDAC packages, in this order:
    C:\lazarus\components\UniDAC\Source\Lazarus1\dclunidac10.lpk
    C:\lazarus\components\UniDAC\Source\Lazarus1\accessprovider10.lpk
    C:\lazarus\components\UniDAC\Source\Lazarus1\msprovider10.lpk
    C:\lazarus\components\UniDAC\Source\Lazarus1\myprovider10.lpk
    C:\lazarus\components\UniDAC\Source\Lazarus1\pgprovider10.lpk

 

9. Build the project Lazarus Data Desktop
    from c:\lazarus\tools\lazdatadesktop\lazdatadesktop.lpr

10. Activate sqlite3laz package throw menu Package option Install/Uninstall
    (if you are in Linux, add packages : sqlite3, sqlite3devel, before,
     or on Windows download dll from https://sqlite.org/download.html and
     put in lazarus folder)
11. Activate lazreport package throw menu Package option Install/Uninstall
12. Activate lazreportpdfexport package throw menu Package option Install/Uninstall

13. Copy sqliteadmin folder to c:\lazarus\tools\
      from http://sqliteadmin.orbmu2k.de/
      and register it in Tools/Configure External Tools menu item

14. Install Help in Lazarus IDE :
    * Install CHM Help package
       from c:\lazarus\components\chmhelp\packages\idehelp\chmhelppkg.lpk
    * Build the project lazarus/components/chmhelp/lhelp/lhelp.lpi
    * Download the latest stable Lazarus CHM help files
       from http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/
       and copy all CHM files to c:\lazarus\docs\chm
    * Go to the Environment Options, tab "Help Options' and select the "CHM Help Viewer".
       "HelpExe" should be the lhelp you just built - lhelp.exe.
       "HelpFilesPath" should be, where you put the CHM files - c:\lazarus\docs\chm
     Now context sensitive help using F1 should work.

24 May 2012

Delphi XE2 : Compile error : Invalid PLATFORM variable "HPD"

Problem :

I just install a new Delphi XE2.
I create a new classical VCL project and I try to compile it.
I obtain this message :

'[Error Erreur] Invalid PLATFORM variable "HPD". PLATFORM must be one of the following: "Win32", "Win64", or "OSX32". If PLATFORM is defined by your system's environment, it must be overridden in the RAD Studio IDE or passed explicitly on the command line to MSBuild; e.g., /p:Platform=Win32.'

Reason :

It's a battle between Microsoft and Hewlett Packard over
the use of the PLATFORM environment variable.

"HP Easy Setup" uses it for it's own purposes.
MSBUILD uses it for another purpose.

Solution :

Right click on "My Computer" and select Properties. In the Advanced tab,
you will find a button for "Environment Variables". Click on it, and in
the list that follows, delete the PLATFORM variable from the list of
System variables.
Close the dialog, restart XE2, you should now be able to recompile
without further problems

Source :

https://forums.embarcadero.com/thread.jspa?threadID=59930

16 April 2012

Installing ClockworkMod Recovery


This is the same ClockworkMod Recovery 4.0.1.5 as in this post, just with the kernel patched to run on phones upgraded to Android 2.3.4.

    Windows users should download and install One Touch Upgrade Q (it includes the needed Windows drivers). Linux and Mac OS X users should download and install the Android SDK starter package, then use the Android SDK and AVD Manager to install at least the Android SDK Platform-tools component. Linux users should also configure the system as described in the Google Android development documentation.
    Download the attached file: recovery-clockwork-4.0.1.5-ot990-kernel-v53B-0-anyboot.zip, unpack it.
    Switch the phone into fastboot mode:
        disconnect the USB cable, turn off the phone;
        press and hold the Volume Down button;
        while holding the Volume Down button, press the Power button;
        when the phone vibrates, release the Power button, but keep holding the Volume Down button;
        keeping the Volume Down button pressed, connect the phone to your computer with the USB cable;
        wait 3 seconds after connecting the USB cable, then release the Volume Down button.
    If using Windows, just run the install.bat file included in the archive. For other systems you need to run the commands manually:
    Code:

    fastboot erase recovery
    fastboot flash recovery recovery.img
    fastboot reboot

Entering ClockworkMod Recovery

    Disconnect the USB cable, turn off the phone.
    Press and hold the Volume Up button.
    While holding the Volume Up button, press the Power button.
    When the phone vibrates, keep holding the Volume Up button, release the Power button, and immediately press and hold the Home button.
    Continue holding both the Volume Up and the Home buttons until the Android logo disappears, and you see a black screen with the keypad light turned on, then release both buttons.
    Wait while CWM recovery boot completes; you should see the menu as shown here.

WARNING: If you forget to press the Home button, or release it too early, a hardreset will be performed instead of entering the recovery — it will wipe all user data from the phone memory (but files on the microSD card will not be affected).

When working with the CWM recovery, use the Volume Up and Volume Down buttons to move between menu items, and the Home button to activate the selected item. Use the "reboot system now" item to exit the recovery.

Rooting the phone with ClockworkMod Recovery

    Download Superuser-3.0.7-efghi-signed.zip (or maybe a newer version from the Superuser home page).
    Place the downloaded file on the microSD card.
    Enter CWM recovery on the phone as described above.
    Select "install zip from sdcard" in the menu, then select the Superuser-3.0.7-efghi-signed.zip file.
    Select "reboot system now" to exit from recovery.

(from forum.xda-developers.com)

15 April 2012

Alcatel OT-990 (Telenor OneTouch) on Gingerbread 2.3 from XDA


BOOTLOADER SUCCESSFULLY UPGRADED WITHOUT OTU!!!!!!!!! GINGERBREAD 2.3 BOOTED ON TELENOR ONE TOUCH SERBIA

WE HAVE A WORKING GINGERBREAD ON A TELENOR ONE TOUCH SERBIA!!! THANK YOU EVERYONE FOR YOUR HELP, ESPECIALLY qltsar, sigprof, gulyuk.s !!!!
***-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------***

This is how I did it, step by step. I CHECKED THESE STEPS SEVERAL TIMES BUT THERE IS A POSSIBILITY THAT I FORGOT SOMETHING!!!!!!!!!

IF YOU DONT KNOW WHAT ARE YOU DOING PLEASE DONT FOLLOW THIS MANUAL. I'M NOT RESPONSIBLE FOR BRICKED PHONES OR ANY DAMAGE CAUSED BY YOUR OWN ACTIONS. IT WORKED FOR ME AND IT'S DONE ONLY ON TELENOR ONE TOUCH SERBIA. ITS FUNCTIONALITY IS NOT FULLY TESTED YET, THERE COULD BE BUGS*!! YOU ARE DOING IT AT YOUR OWN RISK!!!
* currently known bugs: cant update google apps, gmail,search,youtube..
THESE STEPS WERE TESTED ON TELENOR BRANDED OT-990 WITH v53R-0 BUILD NUMBER. THE PHONE WAS PREVIOUSLY UPDATED FROM v53H-0 to v53R-0 WITH OTU(ONE TOUCH UPGRADE) APPLICATION

BACKUP EVERYTHING BEFORE YOU PROCEED!!

DO NOT PROCEED WITH STEPS IF ANYTHING DIFFERS FROM THIS MANUAL!!

THESE ARE INSTRUCTIONS FOR WINDOWS 7, i did it on Win7 64bit

1. You need to install Alcatel Android Manager and One Touch Upgrade from THIS LINK.Find it in Download tab. All the drivers are here.
Also download and install Android SDK Tools. I have installed all this things so maybe you should too.
2. Download CWM recovery image, Recovery Manager apk, FOTA update.zip. Unpack the RecoveryManager_v0.34b.zip. Put those recovery-clockwork-4.0.1.5-ot990.img, RecoveryManager_v0.34b.apk and update.zip (dont unpack this archive) files in the root of SD card.
3. Download the Hungarian rom dump 2.2.2. Unpack the archive, you'll see two folders - dump and firmware. Copy boot.img, custpack.img, recovery.img, system.img files from 'firmware' folder and FOTA.img, FOTAFLAG.img files from 'dump' folder to a new folder with name 'gingerbread' (for example).
4. Download fotaflag_modem_upgrade.zip and unpack the fotaflag_modem_upgrade.mbn file to a 'gingerbread' folder.
5. Download the Telenor Gingerbread rom dump Unpack it, and copy(dont move, just copy) adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll, fastboot.exe,install.bat files to the 'gingerbread' folder. (REMEMBER WHERE YOU EXTRACTED THIS ARCHIVE, WE WILL NEED THIS FOLDER IN STEP 17!!!)
6. Right click on install.bat in 'gingerbread' folder and choose Edit. Replace the whole content of file with following commands:


adb.exe reboot-bootloader
ping 1.1.1.1 -n 1 -w 10000
fastboot.exe -w
fastboot.exe erase boot
fastboot.exe erase recovery
fastboot.exe erase system
fastboot.exe erase custpack
fastboot.exe flash boot boot.img
fastboot.exe flash recovery recovery.img
fastboot.exe flash system system.img
fastboot.exe flash custpack custpack.img
fastboot.exe flash FOTA FOTA.img
fastboot.exe flash FOTAFLAG FOTAFLAG.img
fastboot.exe flash FOTAFLAG fotaflag_modem_upgrade.mbn
fastboot.exe reboot

Save it and exit.

7. Shutdown the phone and then when its off enter the fastboot mode by holding the Volume Down and Power button. When you feel the vibration, release the Power button but hold the Volume Down a few seconds longer, dont let the android logo appear. Release the Volume Down button. The screen will be black, and you'll see the light from Options, Search, Back buttons of the phone.
8. Connect your phone with usb cable.
9. Double click on the install.bat in a 'gingerbread' folder and wait for process to finish. If everything is ok, the DOS prompt window will close and phone will reboot. He'll still be off, showing Battery charging.
10. Disconnect the usb cable and power on the phone. When you walk through the Setup process of the phone (Language, Google account etc.) you'll have a rooted 2.2 ROM on your phone.
11. Allow non-market applications to be installed by checking 'Unknown sources' in Setting/Applications, then go to File Manager and click on RecoveryManager_v0.34b.apk to install it.
12. When Recovery Manager is installed open it and go to Recovery tab, choose install recovery and when he shows you a recovery-clockwork-4.0.1.5-ot990.img select it. After he is done select the Reboot into Recovery option. Phone will reboot.
13. When phone enters a Recovery mode you will see something like this. (You are moving through the menu with Volume Up and Volume Down buttons and select with Home button.) Choose a second option apply sdcard:update.zip. Confirm this decision when he ask you are you sure. Wait him to finish. When he is done choose reboot, i think its a first option.
14. Have patience, booting will be slow. At this point Gingerbread should be installed and offer you to choose a language. But after that when you try to select a keyboard he will probably give an error, something like 'android.process... blah blah..' and give you a force quit option. SHUT DOWN THE PHONE!
15. When the phone is off we are doing the step 7 again. Enter the fastboot mode!
16. Connect the usb cable!
17. Find the folder from step 5 where we extracted the Telenor Gingerbread romdump archive (folder name will be 'original_telenor_GB_v5GY-0' - DONT USE THE 'gingerbread' folder we previously used) and execute install.bat. Wait him to finish, when its done phone will reboot and start charging battery.
18. Disconnect the usb cable.
19. Power on the phone and go through the setup.

YOU ARE DONE!


Telenor Hungary 2.2 and 2.3 ROMS, FOTA Update.zip are provided by qltsar,
FOTAFLAG modem upgrade is provided by sigprof.

ONE MORE TIME, IF YOU DONT KNOW WHAT THESE THINGS ARE THEN YOU SHOULD PROBABLY NOT DOING THIS!!

(from forum.xda-developers.com)

13 February 2012

Ubutnu 11.10 install additional things

Type in terminal window :

sudo apt-get install ubuntu-restricted-extras

sudo apt-get install vlc

sudo apt-get install gimp

sudo apt-get install gnome-panel
sudo apt-get install gnome-shell
sudo apt-get install kde-standard


sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer



Install PostgreSQL on Ubuntu 11.10

Just type in terminal window :

sudo apt-get install postgresql
sudo apt-get install postgresql-contrib
sudo apt-get install pgadmin3