Sunday, October 28, 2018

Why i love what i do

# Project Name: MultiPager

Well i like to treat my projects/code/scripts/ideas as some thing a little bit more than just simple text lines.
Every bit of thinking energy i spent on even a typical [HELLO WORLD] hides something behind it way more than 34 chars. System.out.println("Hello World");

Hence why i'm writing this , while i was making a backup of my files i came across a source file (created 8 years ago) with the following code and all of a sudden , memories , feelings and a weird smile were fulfilling me. That source code had something more than just lines. Something deeper than a spaghetti code. It was a sum-up of an old idea with all of its pros & cons , expectations and memories of the whole process.
That is why i love what i do , and that is why everyday in my continuous learning journey i'm enjoying every part of it.
Every bit and byte.

That is the interpretation of a small project i've always had in mind since high-school which i've decided to post online as a blog rather than a repo. on github to preserve it as a memory.
Some KEY variables:
My high-school time dates back to 2009 => So if we put it in an equation:
NOW - THEN = 9 years ago.
Since then lots of things obv. have changed in matter of RAM , processing power , multiple monitor setups so basically the idea behind it applied to today standards doesn't really have any use.
BUT back then we were rocking (at least me) one VGA monitor and between 128-512mb of ram. So that basically sums up when and why the idea was born.

To be able to access multiple websites and being able to view/access them at the same time in one window. No tabs , no other windows. All the webpages inside one ~ (1024X768 was the most used monitor resolution)
Thats really what got me in to looking on how to create via javascript dynamically objects (in this scenario iframes and buttons in order to load the desired url destination in a small defined iframe inside my parent page).

Why the ship had sunk before it was ever created:

Well creating dynamically objects was very interesting as a task but then i came across the Cross-Origin policy which basically made me lose any interest into bringing-to-life the whole idea. I had the whole structure and some of the core functions implemented but in the end the journey was a great experience even though i didn't reach the destination.

Last but not least , it made me smile. An abandoned idea, 8 years after , gave me a moment , a flash back , and that's the value of it. It cannot be defined. A worth-less , priceless moment of joy.

<script language="JavaScript" type="text/javascript">
    var id = 0;
        <!-- Zoom Function-->
        function sliderChange(val)
            var zoomlvl = val;
            if (val<80)
                zoomlvl = 80;

            // Use Ajax post to send the adjusted value to PHP or MySQL storage
            document.getElementById('sliderStatus').innerHTML = val + "%";
   = zoomlvl + "%";
    function frameremove()
        var elem2 = document.getElementById('id');
        var elem3 = document.getElementById('id');
    function makeFrame()
    {   //////////////////////////////////////////////////////////
        //Get the value from txtbox
        var webinput = document.getElementById('inputurl').value;
        //Create the iframe element
        ifrm = document.createElement("IFRAME");
        //Error page that shows up on blank searches
        if (!webinput)
            webinput = "test.html";
        else //Normal Search Function
            //PROXY SERVER
            //ifrm.setAttribute("src","" + webinput);
        // IFRAME WIDTH & HEIGHT //
        ///////////////////////////////////// = 600+"px"; = 480+"px";
        var counter = 0;

        var beforeitem = document.getElementById('social');
        var main = document.getElementById('main');
        main.insertBefore(ifrm, main.beforeitem);
        //Creation of the remove button
     btnremove = document.createElement("INPUT");
        id = id+1;
        main.insertBefore(btnremove, main.beforeitem);
        document.getElementById('inputurl').value = ""
    function erase(html_id)
        var elem = document.getElementById('btnadd');
        var main = document.getElementById('main');

Saturday, July 14, 2018

[Tutorial]Linux x64 on Baytrail 32bit EFI(Lenovo Ideapad100s-11iby)

In this tutorial after some pretty "tough" trial&error series i'll show you step-by-step how i managed to get my Lenovo Ideapad 100S -11IBY laptop to successfully boot and install Linux Mint 19 XFCE.

The story behind it:
First thing first , low spec laptop + Windows 10 (Bloatware party) = Slowness.
Also this laptop comes up with pre-installed 32bit Windows10 version and with a 32bit UEFI bios making it a real pain to install an x64 bit os and take advantage of the x64 support of the cpu.

Laptop Specs:

      CPU: 1.33 GHz quad-core Intel Atom Z3735F (64bit support - hence the x64bit OS)  
      Graphics: Intel HD Graphics (Bay Trail)  
       RAM: 2GB  
       Storage: 32GB eMMC  
       Screen: 11.6-inch, 1,366 x 768 matte TN LED display  
      Connectivity: 802.11n Wi-Fi, Bluetooth 4.0 (Low Energy)  
      Weight: 2.2 pounds  Size: 11.5 x 7.95 x 0.69 inches (W X H X D)
  • What we will need:
    1) USB Stick
    2) Rufus
    3) x64 Linux Distro
    4) bootia32.efi

    Lets start:
    1) Burn the image to your usb stick using Rufus , copy-paste the bootia32.efi file inside your usb in the "/EFI/BOOT" directory.
    2) Disable Secure-Boot from your bios.
    3) Boot from your usb , (in Lenovo IDEAPAD 100S you have to press FN+F12)
    4) Select the first option to boot live distro 
    5) From the live linux desktop select the icon to install the OS to your harddrive.
    6) At the last step it will fail showing the following message
    7) Press okay , the installation will exit , find and open your terminal from the desktop environment.   Type: blkid and right down your partition name of ext4.
    8) After that restart your system.

    9) Boot again from live usb , on the first option instead of pressing enter press the "C" of your keyboard to launch the grub command.
    10) From there we need to jumpstart and point to our installation partition.

    set root=(hd?,?)              HINT: The TAB KEY IS YOUR FRIEND FOR AUTOCOMPLETION 

     Now we need to find the vmlinuz.efi file. Try with the tab to see where your file is ill give you the common locations below to search for it. (Could also be vmlinuz.efi instead of vmlinuz)

    linux /casper/vmlinuz root=/dev/YOURPARTITIONNAME 
    linux /boot/vmlinuz root=/dev/YOURPARTITIONNAME 
    linux /vmlinuz root=/dev/YOURPARTITIONNAME 

    Now lets locate initrd:
    initrd /casper/initrd.lz 
    initrd /boot/initrd.lz

    And after that type "boot"

    So on your screen you should have these 4 instructions
    set root=(hd1,2)  
    linux /casper/vmlinuz root=/dev/mmcblk1p2
    initrd /casper/initrd.lz

    Your linux distro will boot-up and now we need to configure our 32bit grub loader and we are done.

    11)Open up your terminal and type the following:
    sudo apt-get update
    sudo apt-get install grub-efi-ia32
    sudo update-grub2
12)Thats all folks.The OS is now ready , time to sort-out some issues/bugs.

Sudden Freezing bug:This is a power management bug on baytrail cpus , there has been a patch which i havent really tried out yet (Google

Instead of the patch ive used the following:

We will need to pass the parameter "intel_idle_max=1" to grub , for that go to /etc/default and edit the file called grub. Find the parameter GRUB_CMDLINE_LINUX_DEFAULT and paste inside the quotes with 1 space at the end of the current value the next parameter which is "intel_idle_max=1" e.g: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle_max=1" Save your file and then on terminal update the grub "sudo update-grub"

Disable HDMI sound (Known to cause issues):

Go to /etc/modprobe.d/ create a conf called "blacklist_snd_hdmi_lpe_audio.conf"
and inside it paste the following line without quotes "blacklist snd_hdmi_lpe_audio"

Drivers for Audio Built-In Speakers & Mic:

Find your sound card version by opening terminal and typing aplay-l
Go to and download the appropriate drivers , copy the whole folder to usr/share/alsa/ucm

Note: If your driver folder contains a file called asound.state copy it to /var/lib/alsa

Keyboard/Trackpad Session Freeze Bug:

This bug occured per session , and with some restarts or shutdowns everything worked until you shutdown your laptop again. The steps below completely fixed the issue for me and now the keyboard always work. Open terminal -> type sudo apt-get install libinput*

Power Management / Charging Issue / (Overheating):
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

If you have a thinkpad you will also need the following line:
sudo apt-get install tp-smapi-dkms acpi-call-dkms

2 Network Icons showing up on taskbar:
From the main menu select Preferences > Default applications for LXSession. In the window that then appears, click on the Autostart tab, then find the network uncheck it , log off , log in , and then recheck it.

Some small tweaks for swap:

Tweaks for 2gb<= ram laptops
a. First check your current swappiness value.
Type in the terminal: cat /proc/sys/vm/swappiness P
ress Enter. The result will probably be 60.
b. To change the swappiness into a more sensible setting,
type in the terminal xed admin:///etc/sysctl.conf
Press Enter. Note that you'll be asked twice for your password.
Now a text file opens.
Scroll to the bottom of that text file and add your swappiness parameter to override the default
# Decrease swap usage to a more reasonable level vm.swappiness=10
c. Save and close the text file. Then reboot your computer.
d. After the reboot, check the new swappiness setting: Launch a terminal window.
Type: cat /proc/sys/vm/swappiness Press Enter. Now it should be 10.

                                                    HAPPY LINUX-ING

Friday, July 6, 2018

[Tutorial] Debloat - Safe android services to disable or remove.

Once again a self explanatory title so ill get directly the point.
Here's my safe to remove list , all self-tested.

To disable the following packages you can do it directly from your phone or download and install the Debloater by Gatesjunior with the adb drivers of course.

Samsung Galaxy Alpha G850F on Rooted Stock 5.0.1 Lollipop:
  1. AccuweatherPhone2014_S_LMR_HD.apk (
  2. Books.apk                                                     (
  3. Drive.apk                                                      (
  4. Dropbox.apk                                                 (
  5. Flipboard.apk                                                (
  6. GalaxyApps_3xh.apk                                   (
  7. Hangouts.apk                                                (
  8. Magicshot_HD_A5.apk                                (com.arcsoft.magicshotstudio)
  9. Music2.apk                                                   (
  10. Newsstand.apk                                              (
  11. PhotoStudio_HD_K.apk                               (
  12. PlusOne.apk                                                  (
  13. SStudio_HD_K.apk                                      (
  14. Talkback.apk                                                 (
  15. Velvet.apk                                                     (
  16. VideoEditor_Lite_S.apk                               (
  17. Videos.apk                                                    (
  18. WeatherDaemon2014_LMR.apk                 (
  19. Youtube.apk                                                 (

Monday, April 2, 2018


This is a repost from a forum ive found online , if your ELM327 stopped working here's a quick fix if the legs of your tool are shorting.

Thursday, February 1, 2018

[Tutorial]PS2LuaPlayer Simple XMB Menu

Well-well since i got my hands on my old ps2 console and all of the required accessories ill try to contribute as much as i can.

From a small search i was doing on the forums i saw that a ps2 xmb styled menu got a lot of you excited , hence im creating this small tutorial on how to create a really simple menu in Lua.
Im using PS2 Lua Player v0.20(R3)

Heres how your program will look:


-- images used for navigation/menuicons
while true do
--How Controls react on left/right
if pad:right() and oldpad:right() ~= pad:right() then
selected = selected+1
if pad:left() and oldpad:left() ~= pad:left() then
selected = selected-1
if selected > maxselected then
elseif selected <=0 then
if selected==1 then
if selected==2 then
if selected==3 then
if selected==4 then
if selected==5 then
if selected==6 then
if selected==7 then
if selected==8 then
--Actions for each icon selection
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==1 then
dofile("Enter Here your next lua file")
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==2 then
dofile("Enter Here your next lua file")
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==3 then
dofile("Enter Here your next lua file")
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==4 then
dofile("Enter Here your next lua file")
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==5 then
dofile("Enter Here your next lua file")
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==6 then
dofile("Enter Here your next lua file")
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==7 then
dofile("Enter Here your next lua file")
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==8 then
dofile("Enter Here your next lua file")
oldpad = pad
Happy coding. 

Thursday, January 25, 2018

[Tutorial] PS2SDK on Windows10

      How to get the ps2sdk to work on your windows10 system

 What you will need: 

Step 1: (Prepare MinGW)
Install MinGW in C

Extract the mingw-lackages-ps2dev-1.0 and paste them inside MinGW directory C:/MinGW
If it asks to replace any files select NO.


Step 2: (Prepare msys)
Install msys in C
Go to msys/1.0/etc/profile , edit it and add the following:
export PS2DEV=/usr/local/ps2dev
export PATH=$PATH:$PS2DEV/bin
export PATH=$PATH:$PS2DEV/ee/bin
export PATH=$PATH:$PS2DEV/iop/bin
export PATH=$PATH:$PS2DEV/dvp/bin
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2SDK/bin
export PS2SDKSRC=$PS2DEV/ps2sdksrc
export PS2LIB=$PS2DEV/ps2lib
export PS2ETH=$PS2DEV/ps2eth
export GSKITSRC=$PS2DEV/gsKit
export C_INCLUDE_PATH=$PS2DEV/ee/ee/include
cd "/C/msys/1.0/"

Then navigate to msys/1.0/bin rename the rxvt.exe to something else (rxvtbak.exe)


Navigate to  msys/1.0/local , extract and copy the ps2dev folder and its contents


Step 3: (Policy Editor)                             

Step 4: (Environment Path)

Step 5: (Install GIT)

Open your msis , and type git to check if it works
if you type now git , svn or wget if the installation was made succesfully will show you as a result the correct syntax to use the command. If not try restarting your system.

Step 6: (Make ELF)
Navigate to the folder where you have your example files (youll need to have a .c file and a makefile) and type make.You should see the same massage and now in the same directory you will have an .elf file.

Thursday, December 7, 2017 on Linux Mint

Description: I finally figured out how to properly install on my Linux disto {Mint} using POL [PlayOnLinux]
After some trial&error i got the whole thing to work just fine.
What you'll need:
dotNetFx40_Full_x86_x64 or follow the * to install it via POL Components Tested Wine Version: 2.21(Staging)

Here are the steps:

Step 1:
Create your virtual driver & configure it
Install -> Install a nonlisted program -> Install a program in new virtual drive -> Give it a name - > Select Configure Wine -> Select WindowsXP -> Apply & Okay -> 32bits windows installation Select Browse and select the dotNetFx40_Full_x86_x64.exe program.

* or you can close it and install dotNet40 through POL ->Configure -> Install Components ->dotNet40 but before installing it make sure you run this on your terminal first
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
Step 2:
After that either select the PaintDotNetPortable_3.5.6.0_English.paf.exe file and install it. When it will ask you where to install the programs just navigate through program files and install it where you have all your other vds'.
Step 3:
Select the PaintDotNet so it will create the icon and thats it.
Everytime it opens the tools are a bit bugged so you can press two times the F5 , F6 , F7 , F8 and they will load-up normally.
Step 4:
After that , enjoy.

To install version 3.5.11 follow the below instructions:

1) Install Wine. (get it from your distro's s/w repository)

sudo nano /etc/apt/sources.list


sudo apt-key add Release.key

sudo apt-add-repository 'deb bionic main

sudo apt-get update

sudo apt-add-repository

sudo apt-get update

sudo apt-get install --install-recommends winehq-stable -y


2) Install playon linux. (get it from your distro's s/w repository)

3) Run Playon Linux and create a 32-bit XP or Windows10 virtual drive.
4) Use Playon Linux to install “dotnet40” (DotNet 4.0) on that virtual drive.
5) Use Playon Linux to install “gdiplus” on that virtual drive.  
6) Use Playon Linux to install PDN 3.5.11 (It's the latest PDN version I can get running) on that virtual drive.