FeatureUp News
Loading...

Recent Post

5 Command Prompt Hacks You Probably Don’t Know

5 Command Prompt Hacks You Probably Don’t Know

5 Command Prompt Hacks You Probably Don’t Know_FeatureUp

I love the Windows Command prompt because I often get things done faster by typing a command rather than hunting down an icon or nested menu setting.
I’ve discovered that as I’ve used the command prompt, I’ve adopted my own shortcuts, I’ll call them hacks, that have really boosted my productivity.
Here are my top five:

Windows 8.1 won’t sleep

Windows 8.1 won’t sleep

Windows 8.1 won’t sleep_FeatureUp

So you’ve taken the plunge.  You’ve done the unthinkable and updated your perfectly working computer to Windows 8.1 and now some of the stuff that used to work, no longer works.
And now you find yourself in a real quagmire: you’re wondering why Windows 8.1 wants to stay awake all the time.
No matter what you do, it categorically refuses to sleep when idle.  In this article, I’m going to show you how to make your intractable PC sleep when it’s just sitting around doing nothing.  For some reason, Windows 8.1 doesn’t know when to take a break and it’ll inexorably munch on the battery until it drains the thing.  Windows 8 slept fine when idle – but in Windows 8.1, it’s like the stupid computer needs the digital equivalent of an ambien before it enters sleep mode.
(i.e. taking an ambien is tantamount to manually forcing the computer to sleep)

~~TOP 5 BEST MOVIES BY NOLAN~~

~~TOP 5 BEST MOVIES BY NOLAN~~

Hollywood is full of most amazing show-men, directors who had created some greatest master-pieces of art ever. One of them is Christopher Nolan or just 'Nolan' as his all fans say. He had directed very few films still he had some finest movies under his name. Top 5 best ever movies directed by this magician are:
.
.
5. The Prestige
the_prestige_2006.jpg
The rivalry between two magicians becomes more exacerbated by their attempt to perform the ultimate illusion. I've said it before, but I'll say it again. Christopher Nolan can do no wrong. Teaming up again with his Batman Begins cast of Christian Bale and Michael Caine, and joined with the Scoop team consisting of X-Men's Wolverinie Hugh Jackman and Scarlett Johansson, the stellar (eye candy) cast already set tongues wagging as to whether they'll be able to live up to the hype of Nolan's long awaited movie directly challenging the other picture about Victorian magicians, The Illusionist.

no image

Introduction to Modding: Rooting and Custom ROMs


su
Also referred to as substitute user - a command for changing the account in the current terminal (usually black screen with blinking cursor). Default account is root account. So if you insert into terminal 'su' and hit enter, you will become root user.

root
Root alias superuser or poweruser is special user account for system administration. Similar to windows having its administrator account, unix-like systems have a root account. With this, you can do anything and if you run a command to delete the whole system, unix will just do it! No asking, no confirming. So, watch your steps!

rooting
Rooting is just enabling power of root for applications and other purposes.

Superuser app
After rooting is done, you will see a new app called superuser in app drawer. This app can delegate applications to use su (root) feature. When an app asks this from first use, a popup window will appear asking if the application should be allowed to use root permission.

sh, bash
is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and for Unix-like systems. So simply, it is some interface, which can execute command(s), which you have entered. Many shells exist, but in scope of android you can (as far as I know) use only sh (standard - Bourne-shell) or bash (compiled in BusyBox or separately on XDA). Both are basically same, but bash has much more features and it is more comfortable.

user/root shell
How do I know if I'm root or normal user? It's simple. Root's shell is ended with # (usually it's shell looks like "bash-3.2# _") and user's ends with $ (usually bash-3.2$ _). In terminal emulator you also can have only [path]($|#) (for root for example "/etc # _")

BusyBox
also called "The Swiss Army Knife of Embedded Linux" is a tool which brings into Android basic tools known from unix system, but is much more smaller than standard tools is. But this "packing" has limited functions in comparison to standard tools in unix-system (missing special modes of tool, color output and so on). Many application use this. For example busybox grep (filtering of text) is needed for application called Market enabler.

BusyBox commands
list of commands is really wide, so it's not possible explain all, so I pickup only top few. (hint: if you want what some command do, just search on google for "man <command_name>" for example man mv or enter command here

1. cd - change directory - same like in windows. You can switch directory. example: cd /sdcard

2. ls - list of files in actual directory (have few switches like for example: ls -l /sdcard/*.png (detailed listing)

3. cat - print file into standard output (like more in windows) Example: cat /sdcard/data.txt

4. vi - editing of file. But on limited phone keyboard (no keyboard) it is little harder Read more about vi

5. cp - copy of one or more file. Example: cp /sdcard/bike.jpg /sdcard/media/bike-wallpaper.jpg

6. mv - moving/rename files, Example: mv /sdcard/bike.jpg /sdcard/media/renamed-moved-bike.jpg

7. rm - delete file (rm -R for recursive, or for delete whole folder), Example: rm -R /sdcard/wallpaper-bad/*

8. find - search for files, Example find / -name "best-chopper-ever.avi"

9. mkdir - make directory - creates directory, Example: mkdir mynewdir

10. chmod - changes access of files

11. less - similar like cat, but you can scroll in it and it doesn't produce any output. Example: less /sdcard/funnytext.txt

Please, take due note that main pages are documentation of unix tools. For BusyBox's tool help, just enter BusyBox <command_name> -h.

2. Android platform and its specifics



  • adb shell
  • Android SDK
  • Tools for Android adb shell - Terminal Emulator, ADB shell from Android SDK and how to use it

  • ADB (shell)
    ADB - Android Debug Bridge is a versatile tool that lets you manage the state of an emulator instance or Android-powered device. It is a client-server program that includes three components:


  • A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.

  • Generally, it can be compared with standard cmd prompt in windows (you can write commands which will be executed locally, for example in Terminal Emulator) or it can be just like SSH in unix-like system (you connect to terminal through adb client (in Android SDK) and commands will be run remotely.

    Android SDK
    Android software development kit is a complex set of tools for developing apps on Android. It includes a fully usable emulator of Android OS on your PC, where you can do everything. You can install/delete apps, browse web page in embedded web browser, play games or make your own application in Eclipse (widely used IDE for development). Of course, with emulator you can use also GPS or camera.

    Android SDK tools
    • Fully emulated Android device
    • Android Development Tools Plugin (Eclipse IDE)
    • Android Virtual Devices (AVDs)
    • Hierarchy Viewer
    • layoutopt
    • Draw 9-patch
    • Dalvik Debug Monitor Service (ddms)
    • Android Debug Bridge (adb)
    • Android Asset Packaging Tool (aapt)
    • Android Interface Description Language (aidl)
    • sqlite3
    • Traceview
    • mksdcard
    • dx
    • UI/Application Exerciser Monkey
    • monkeyrunner
    • Android
    • zipalign

    Tools for work with Android adb shell
    You have two ways to connect into ADB service - locally and remotely.
    Locally - for local access you will need some application which can connect to local adb shell.

    Terminal Emulator (free) - probably most commonly used app from market, which works and looks like standard unix shell.
    ConnectBot (free) - same as Terminal Emulator, but it can be also used for connecting via SSH or telnet

    Remotely- For remote connection you need phone configuration adjustment:
    Home desktop -> [menu button] -> Settings -> Applications -> Development -> USB debugging [ON].
    Also you need connect your phone via USB (or finds on market some widget/app, witch enable using ADB also via wi-fi)

    adb tool from Android SDK
    After downloading Android SDK, extract the archive anywhere (in example I extracted it in c:/AndroidSDK). Then follow instructions on developer.android.com for installation of SDK Platform-tools (contains adb). After installation click on start menu and in Run... (in Windows7 in search bar) enter 'cmd' and press Ok or [enter]. Then write in cmd line:

    cd c:\AndroidSDK\android-sdk-windows\tools [enter]

    now you can enter following command to connect to phone's adb shell if you don't have more connected device (virtual or real-one)
    adb shell

    If you have more then one, you need explicitly say which one should be used for connection. So list connected devices with
    adb devices

    which shows you serial number of connected devices. Than use
    adb -s <serial-number> shell

    3. Custom recovery

  • What is custom recovery
  • Tools which custom recovery provide - NAND backup/restore, formatting of SDcard, partitioning (ext1,ext2, ext3), wiping, flashing of Custom ROM, ...
  • Is it safe to install? - potential problems, backup/restore of original recovery
  • How this whole thing works - installation description (not how-to install, just explanation of what is done during installation)

  • What is custom recovery
    Recovery is an image (binary data) stored in internal memory. This image contains something like a "program" or "tool", which can boot-up independently from the Android system. This tool is part of phone system, and in PC terminology recovery can by compared to BIOS with some added features. This recovery state can be reached on all phones, but if you don't have a custom recovery, it will do a so-called HW reset and automatically restart itself into standard boot mode.

    Tools which custom recovery provides

  • USB-MS Toggle :mounts sdcard as mass storage
  • It just mounts your phone as USB-mass storage (USB disk) so you can access it through your PC


  • Backup/Restore:
  • Absolutely GREAT feature. With NAND you can copy an image of your actual system (phone's memory). It means that you can backup the whole system with all configuration, customization, wallpapers, system's tweaks... just everything. This image will be written to your SD card which you are then free to copy around and back up on your computer


  • Flash Zip From Sdcard
  • This tool is designed for installation of custom ROMs or tweaks. If you are instructed to install via custom recovery, then you should use this menu. Never unzip the file because it contains meta-information about itself with some validate-checks so if you edit it, or unpack and pack back, it won't work. And remember to place the file in the root (main folder) of your sdcard.


  • Wipe Menu:

  • Wipe data/factory reset: wipes data & cache
    - wipes user data (contacts, apps, configuration, ...) and cache (caches of applications)

    Wipe cache
    - wipes cache only

    Wipe Dalvik cache : Wipes Dalvik cache in all possible locations if moved by apps2sd
    - wipes Dalvik cache

    Wipe SD:ext : Wipes Apps2sd ext partition
    - if you used Partition SDcard option, you can wipe it here

    Wipe Battery Stats (remember to fully charge your phone before doing this)
    - If you think, that your battery life is too short, you can try delete battery stats. Than let phone fully charge. (more)

    Wipe rotate settings
    - wipe sensor settings (acceleration, ...)

    Wipe .android secure : Wipes froyo native .android_secure on sdcard
    - wipe information about moved apps

  • Partition Sdcard:
  • Partition SD: Partitions sdcard for apps2sd (this formats card so all data will be lost)

    - will create ext2 partition (you will be asked for size of ext2 and cache)
    Repair Sd:ext

    SD:ext2 to ext3 : converts apps2sd ext2 partition to ext3 (requires kernel support for ext3)
    SD:ext3 to ext4 : same as above but ext3 to ext4 (requires kernel support for ext4)

    ext2 - file system for the Linux kernel (no journal, fast but not recovery of I/O error)
     
    ext3 - file system for the Linux kernel (journal, slower than ext2 because of journal, but provides recovery on I/O error)
     
    ext4 - file system for the Linux kernel (journal, enhanced version of ext3)


  • Mounts:
  • Gui automatically mounts folders

    4. Custom ROM (generally)


  • What is a Custom ROM?
  • Is it safe to install custom ROMs? - potential problems
  • What do I need to install?
  • What can custom ROM provide - kernel, update, performance, customization, theme, ....
  • what is ...
  • o deodexed, zipaglined, png-optimized
    o JIT, HW:acceleration, VM.Heap Size, stagefright
    o apps2sd + dalvik2sd
    o custom kernel (recompiled, ...)

    What is a Custom ROM?
    Custom ROM is a modification of the manufacturer's ROM or ROM compiled from Android sources. "Change/s" ranges from adding/removing default applications up to including kernels, cpu over/under-clocking, enable/disable features (ROOT, HW acceleration, ...), themes (frameworks, color, ...), keyboards and many other features.

    A Custom ROM is usually distributed as a signed ZIP package that includes an installation script for custom recovery. This ZIP is flashed via custom recovery tool.

    Is it safe to install a custom ROM?
    Yes, it is. If you are not satisfied, you can just restore your old ROM using a NAND backup. And yes, you can also use backup tools like Astro or Titanium Backup to backup your apps and restore these in your new ROM (NOTE: In this case it's strongly recommended that both ROM should have same or very similar source/base ROM).

    What do I need to install one?
    1) Rooted phone
    2) Installed custom recovery
    3) Signed .ZIP file of ROM compatible with recovery

    #) RECOMMENDED: NAND backup of your actual ROM

    What does custom ROM bring
    Custom ROM brings almost every feature you can imagine.

    ex:
    OS optimization for games, long battery life, calling, texting, playing videos,...
    awesome look - changed icons, colors, animations, wallpapers, menu, ....
    reconstructed framework - restart button, reorganized menu, shorts, gestures, etc
    allow tweaking - overclok/underclok your device, ROOT, ....
    It's really not possible describe here every possibility what you can do/get with custom ROM.

    what is ...
    png-optimized -
    png files takes less memory, are loads faster

    JIT -
    just-in-time compilation also known as dynamic translation, is a method to improve the runtime performance of computer programs, but it takes some time to convert into it on start.

    HW:acceleration -
    using of HW acceleration for rendering GUI. Increases battery consumption.

    VM.Heap Size -
    maximum memory an application can consume

    stagefright -
    In Android 2.2 new media framework that supports local file playback and HTTP progressive streaming
    Getting start with PHP

    Getting start with PHP

    1) Software that you might need

        a. XAMPP
            -you can easily download XAMPP through this link.
            -choose installer file.

        b. Notepad++ (optional)
            -you can download notepad++ through this link

    2) Start the XAMPP control panel
        a. start the apache


    Getting start with PHP_FeatureUp

    Quick Message
    Press Esc to close
    Copyright © 2013 FeatureUp All Right Reserved. The content is copyrighted to FeatureUp and may not be reproduced on other websites without permission or credit.