Trophical Riders

Sunday, 22 March 2015

How to change/edit your system welcome message?

1) Launch Notepad
2) Copy/Paste the following code

Dim speaks, speech
speaks="Welcome to your PC"
Set speech=CreateObject("sapi.spvoice")
speech.Speak speaks


3) Change “Welcome to your PC ” with anything you want for example Welcome Ivan Blazevic
4) Save as welcome.vbs


5) Go to the Startup folder and Paste the file there:

Win 7/Vista Go to:
C:\Users\UserName\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup


Windows XP Go to: C:\Documents and Settings\All Users\StartMenu\Programs\Startup

command prompt keywords everyone should know this

Basic Run Command Information

It is accessible in one of two ways: through the start menu (Figure 1) and through the Shortcut keyWin+R. The dialog itself looks very unassuming, and quite user unfriendly if you ask me (Figure 2). Its main purpose, as you can see from the dialog information, is to open a program, folder, document, or Internet resource which Windows will then open.


Common Tasks with Run

Below are a list of commands you can type into the Run dialog:
Run Calculatorcalc
Run Command Promptcmd
Run Firefox (if installed)firefox
Run Internet Exploreriexplore
Run Microsoft Word (if installed)winword
Run Microsoft Excel (if installed)excel
Run Microsoft Outlook (if installed)outlook
Run Notepadnotepad
Run Wordpadwordpad
Open Control Panelcontrol panel
Open Program Files folder%programfiles%
Shutdown Windowsshutdown
Restart Windowsshutdown -r
Log Off Windowslogoff
Registry Editorregedit
Task Managertaskmgr
Windows Update Launcheswupdmgr

Creating Your Own Run Commands

If you are like me, you will use a few programs very frequently. One way to make them start faster is to give them their own Run command:
  1. Win+R to open the Run dialog
  2. Enter %windir% to open the Windows directory
  3. Alt+F W S to open the File menu, choose the New menu item, then the Shortcut menu item
  4. Go through the wizard to create a shortcut to the desired program
  5. The name you give the shortcut is what you type in the Run dialog to start the program

Infrequently Used Run Commands

Below are a list of commands you can type into the Run dialog, split into several categories: programs, control panels, computer administration tools, and special folders.

Programs

Character Mapcharmap
Check Disk Utilitychkdsk
Clipboard Viewerclipbrd
Free Cellfreecell
Hearts Cardmshearts
Microsoft Chatwinchat
Minesweeperwinmine
On Screen Keyboardosk
Remote Desktopmstsc
Spider Solitarespider
Telnet Clienttelnet
Windows Magnifiermagnify

Control Panels

Accessibility Controlsaccess.cpl
Add Hardware Wizardhdwwiz.cpl
Add/Remove Programsappwiz.cpl
Administrative Toolscontrol admintools
Automatic Updateswuaucpl.cpl
Date and Timetimedate.cpl
Display Propertiesdesk.cpl
Folders Propertiescontrol folders
Fontscontrol fonts
Fonts Folderfonts
Game Controllersjoy.cpl
Internet Propertiesinetcpl.cpl
Keyboard Propertiescontrol keyboard
Mouse Propertiescontrol mouse
Network Connectionscontrol netconnections
Network Setup Wizardnetsetup.cpl
ODBC Data Source Administratorodbccp32.cpl
Password Propertiespassword.cpl
Phone and Modem Optionstelephon.cpl
Power Configurationpowercfg.cpl
Printers and Faxescontrol printers
Printers Folderprinters
Regional Settingsintl.cpl
Scanners and Camerassticpl.cpl
Security Centerwscui.cpl
Sounds and Audiommsys.cpl
User Account Managementnusrmgr.cpl
Windows Firewallfirewall.cpl

Computer Administration Tools

Computer Managementcompmgmt.msc
Device Managerdevmgmt.msc
Disk Cleanup Utilitycleanmgr
Disk Defragmentdfrg.msc
Disk Managementdiskmgmt.msc
Disk Partition Managerdiskpart
Dr. Watson System Troubleshootingdrwtsn32
Driver Verifier Utilityverifier
Event Viewereventvwr.msc
Group Policy Editor (XP Prof)gpedit.msc
Local Security Settingssecpol.msc
Local Users and Groupslusrmgr.msc
Performance Monitorperfmon
Resultant Set of Policyrsop.msc
Scheduled Taskscontrol schedtasks
Servicesservices.msc
Shared Foldersfsmgmt.msc
System Configuration Editorsysedit
System Configuration Utilitymsconfig
Utility Managerutilman
Windows System Security Toolsyskey

Computer Administration Tools

Application Data Folder%appdata%
Home Directory Drive%homedrive%
Home Directory%homepath%
Shared Home Directory%homeshare%
Temporary Folder%temp%
Windows Root Drive%systemdrive%
Windows Root Directory%windir%

Using Run as a Command Prompt


One of the strengths of the Run command is its ability to do almost everything the command line can do. You should note, however, that if you're running a program that outputs something and exits, that the output will only show up for a few seconds and then disappear.

Take the ipconfig command for example. If you were to type that into Run, it would open a command prompt, run the ipconfig command, and then close because the command finished running! To fix this, type cmd into the Run dialog, and then type ipconfig into the command prompt.

Saturday, 21 March 2015

How to open command prompt in a specific folder wherever you want?

Open Command Prompt in a Folder

When you open the command prompt, it opens up in either User or System folder depending upon whether you ran it as administrator or not. Now the thing is, if you want to execute a file in any particular folder, you would have to use the change directory(cd) command to navigate to the folder which can be a problem if the directory is nested way too deep.
OPEN COMMAND PROMPT HERE
To ease things you can open the folder in your Windows Explorer, hold Shift key when you right-click in the folder and select Run command window here  to directly open the CMD prompt with the path to that folder directly.

Stack overflow account tricks

 Disclaimer: I have shared my personal ideas in this article, i do not encourage or ask  anyone to misuse, game Stack Overflow reputation system just to earn points. You are expected to be helpful to others and get help when you need it..
.
Stack Overflow is moving fast to becoming the de facto standard to assess your programming skills and knowledge. It has a system of awarding reputation points that you get by providing correct answers to others or asking questions that are voted up. If you have earned a good reputation figure, you can show that on your site, blog or your resume; this will throw a positive impact on anyone who visits your site, blog or an employer who sees your resume. Also if you have earned good reputation, chances are that you might be selected as moderator on the stack overflow.
For me, it has been great experience with this magnificent site. Undoubtedly, i have learned a loooooot from it and like most others, i have also become addicted to this site because of the wealth of knowledge and benefits it offers. Here i share the tips and tricks that i have utilized on this site and have earned me good reputation in a very short time but before that let’s be clear about the fact that there is no magic to getting reputation points; you do have to provide the correct answers to the questions posed by others or ask most logical questions that stimulate others to vote up your questions. Nobody cares about your reputation besides you. You are not here to enlarge your reputation, you are here to give answers to people asking questions.
1. Get 100 Reputation Points Free
If you have earned at least 200 reputation points on SO (Stack Overflow), you can get 100 more by associating other sister accounts of SO. Click your username on top to go to your profile and then click on the accounts tab as shown in the picture below:
There you see other sister sites of SO:
  • Server Fault
  • Super User
  • Meta Stack Overflow
Authenticate these sites by pressing corresponding authenticate button. This should give you 100 reputation points. Now that you have earned 100 reputation points and signed up on these sites, you are expected to help others on these sites too or get help for yourself. If you think you can involve yourself in any of these three sites, go for them.
2. Add “Interesting” & “Ignored” Tags
To be able to earn reputation points, you should be able to provide correct answers to the questions posed by others. In order to know that a question relevant to your expertise has been posted, you need to add Interesting tags. To do so, go to your profile (by clicking your username on top) and then  click on the prefs tab present just before the accounts tab. There you can add your interesting and ignored tags; for example the interesting tags are those you are good at like it can be php, mysql, java, etc. Add as many as you think. Similarly, you also need to add Ignored tags; doing this will remove all questions from SO homepage that are not as per your expertise and this will also increase your chances of answering a question before anyone else does. I will expand on this in the next tip below.
3. Install Greasemonkey Script
You need to install the “StackOverflow Interesting Tags First” script. When you install it and visit SO homepage, then all your interesting tags will be pushed up there by greatly increasing your chances of answering a question before anyone else and I am sure most SO users are not aware of this great piece of script. Note that Greasemonkey works in Firefox and Chrome currently.
4. Be the First to Answer a Question
If there is question you think you know the answer of, jump to it instantly and answer it. If you have answered it correctly and are the first to answer then if anyone else visits that question, he may vote you up rather than providing his own correct answer that you have already provided. By default, all answers are ordered by number of votes, so if you manage to get some votes, your answer will be on top of all there by having more chances of getting votes and finally chosen as the final correct answer something for which you earn 15 additional points. Getting your answer (correct one) to be first just makes it more likely to get quick votes but remember this is not the rule of thumb, an answer posted after even half an hour can be voted up and chosen as the final correct answer.
Another important thing is that once you have posted your answer, you can revise it, add more details such as lists, images, etc. This shows how comprehensive answer you have given with examples/demos and makes your answer best in the queue.
5. Markdown
SO employs what is known as “MarkDown” for adding style to your text. Familiarize yourself with it, this will help you quickly add indentations, lists and more to your answers. You will mostly be indenting your code which can be done by selecting some text and pressing theCntr+K keys combination.
6. Don’t Over-Style Your Answers
This has happened to me, if i add styles such as bold, colors, etc to most of the text of my answers, i get down votes even if my answer is correct. Other users don’t like this because it makes them feel that this guy is trying to get more attention than our answers (which are not necessarily styled). And of course you are supposed to provide correct answers rather than providing styled answers. Avoid this as much as possible and also note that styling can take more time something decreasing your chances of answering a question first.
7. Add Pictures
To reinforce your answers, you can add pictures to them by copy pasting a picture url you know or searching on google. This makes your answer best of all. But remember, only add images when they help the answer – not just to make it shiny.
8. Use Google Effectively
There are many questions posted which make you search on the google for their answers. If you think there is an answer on a certain site but you don’t remember page’s url, you can put google to use. For example, there was a question posted about “long vertical dropdown menu” and i knew that there was a solution for that on the css-tricks.com site but i did not remember page’s url, so i committed the search like this on google:
1
site:css-tricks.com [SPACE] mysearch keywords
And guess what i was the first to answer this question and my answer was chosen as final for that question. But if you don’t have any idea of it, you can simply search that on google without specifying any specific site.
9. Use JS Bin
The JS Bin is the tool you can use to create and preview your html, javascript, css files online instantly. This turns out to be extremely handy when it comes to question about javascript, jquery, html or css. What is more you can instantly create your pages and create a public link  for them and show that link in your answers as demo. You could also you Pastebin if you are looking for more language options. Once you provide the demo, your answer looks most authoritative.
10. Edit Your Answers Cleverly
If you have already answered a question, you can make that question jump back on top of SO homepage. The trick is that you should edit your answer after 5 minutes period of time. Once the question is pushed on top of the SO homepage, there are higher chances of other users visiting that question and voting you up. Having said that, don’t edit your answers too much otherwise it will be turned into “Community Wiki” answer by SO and then you won’t be scored even if your answer is voted up.
11. Keep Your References Open
You should always keep your reference code or cheat sheets open so as to quickly locate the syntax or any details relevant to the question. For example, I always keep PHP official reference and JQuery cheat sheet open and this helps me greatly.
12. Involve Yourself to Earn Badges
Other than reputation points, you would also like to earn Badges. There are a number of factors involved in earning these badges:
  • Your answers gets a lot of votes.
  • Your question gets a lot of votes.
  • You revise others’ questions.
  • You provide feedback to the comments.
  • etc….
I hope that you guys have a better time at Stack Overflow…

how to get source code from android apk file?

Following steps are the best way to get source code from apk file.    
                                              

Procedure for decoding .apk files, step-by-step method:

Step 1:

  1. Make a new folder and copy over the .apk file that you want to decode.
  2. Now rename the extension of this .apk file to .zip (e.g. rename from filename.apk to filename.zip) and save it. Now you can access the classes.dex files, etc. At this stage you are able to see drawables but not xml and java files, so continue.

Step 2:

  1. Now extract this .zip file in the same folder (or NEW FOLDER).
  2. Download dex2jar and extract it to the same folder (or NEW FOLDER).
  3. Move the classes.dex file into the dex2jar folder.
  4. Now open command prompt and change directory to that folder (or NEW FOLDER). Then write d2j-dex2jar classes.dex (for mac terminal write ./d2j-dex2jar.sh classes.dex) and press enter. You now have the classes.dex.dex2jar file in the same folder.
  5. Download java decompiler, double click on jd-gui, click on open file, and open classes.dex.dex2jar file from that folder: now you get class files.
  6. Save all of these class files (In jd-gui, click File -> Save All Sources) by src name. At this stage you get the java source but the .xml files are still unreadable, so continue.

Step 3:

Now open another new folder
  1. Put in the .apk file which you want to decode
  2. Download the latest version of apktool AND apktool install window (both can be downloaded from the same link) and place them in the same folder
  3. Download framework-res.apk and put it in the same folder (Not all apk file need this file, but it doesn't hurt)
  4. Open a command window
  5. Navigate to the root directory of APKtool and type the following command: apktool if framework-res.apk
  6. apktool d myApp.apk (where myApp.apk denotes the filename that you want to decode)
now you get a file folder in that folder and can easily read the apk's xml files.

Step 4:

It's not any step just copy contents of both folder(in this case both new folder)to the single one
and enjoy the source code...