Leave a comment

Batch files

Using batch files ::
Batch files are used to make things less boring and bit faster.
It works on the principle of using the cmd for various tasks.
cmd uses the folder as directories.

To begin with
Batch files work with Windows only.There are scripts that work like batch files
on Linux but they known as bash.

What it does ::
It creates a custom user set on-click application.
The application can do the autonomous task like creating a folder, opening list of folders

Starting ::
A application to create folder/s and opening them

1)create a text file with .bat extension.
2)on creating it there would be a icon on the subsequent screen where the .bat file
was created.
3)right click on the icon and select the edit mode.
4)enter the following command in the file.

@echo off <—starts the cmd and executes the command
md folder1 <—creates a folder named "folder1"
start folder1 md foldername as required.

Batch files are great tools to work around as they have many advance features, along with creating and starting a folder.
The commands that are used are highly sensitive if used carelessly it might create unwanted results.

Leave a comment

Sqlite database from cmd.

Android apps or sdk comes in with a database built right into it, known commonly as sqlite.Being most widely used database for a wide range of mobile devices, its quite a task when it comes to integrating it correctly to the app.
With the apps built up for testing its quite a pinch, when one has to know weather the given data has been updated into the database.

The method for checking or updating the sqlite database from command prompt can be done with few guided steps as mentioned below.

Checking the working of database in the eclipse environment.

1)go in the ddms mode from the main menu bar.
2)from the left hand side select the required package
3)go to file explorer from the subtitle bar ::adjacent to ddms mode in the same line .
4)select data folder then sub folder named data.
5)seect the package from the subsequent layout.
6)select database

To check through command shell and do the required editing

1)cd and reach to sdk source.
2)cd and reach to sdk
3) cd and reach to platform-tools.
4)enter command ::adb shell (press enter)
5)enter command ::cd data (press enter)
6)enter command ::cd data (press enter) *2nd time
7)enter command :: ls
lists the required package.
8)enter command ::cd and <required package>.
9)enter command :: ls
10)enter command ::cd databases
11)enter command :: ls
12)enter command ::sqlite3

to exit from sqlite shell :: .exit

Leave a comment

Packages in java

As the name goes it quite obvious that, Packages are collection of set or collection of something that are of same type. They are invoked in the first line of code.

There are basically two types of packages.

Type 1: Built in type or system defined.
Type 2: User defined or customized version.

What can be done with packages in JAVA.

1.It can be used to categorize and maintain the classes that are used frequently.
2.It helps in providing ACCESS protection and removes NAMING collision.

HOW TO USE packages:
Packages can be considered as a per-structured frame layout which contains many classes that  a user can invoke by calling in the initial lines of the code.There is basically two ways in which a package can be imported.

1.By using –import java.util.Arrays; –  this line imports the necessary settings needed for creating arrays, while this line of code imports ONLY the settings that are required to build array.

2.By using — import java.util.*; — imports the complete package.

The optimized way of using packages are  by importing only the the required class i.e., by using the 1st method, as it makes the program lightweight and fast.

Leave a comment

Adobe source code breach; it’s bad, real bad

Originally posted on Gigaom:

The theft of source code for Adobe(s adbe) Acrobat, Cold Fusion and other products poses a wide-spread threat given the installed base of these products, particularly Acrobat, security specialists said. Adobe disclosed the issue in a blog post on Thursday.

In the post, Adobe Chief Security Officer Brad Arkin wrote:

“Our investigation currently indicates that the attackers accessed Adobe customer IDs and encrypted passwords on our systems. We also believe the attackers removed from our systems certain information relating to 2.9 million Adobe customers, including customer names, encrypted credit or debit card numbers, expiration dates, and other information relating to customer orders. At this time, we do not believe the attackers removed decrypted credit or debit card numbers from our systems.”

Not good at all. This may be the biggest compromise of a software vendor’s security since the RSA Security(s emc) stolen token meltdown two years ago.  While that was extremely…

View original 393 more words

Leave a comment

Apple adds new iPhone tips and tricks guides to its site

Originally posted on Gigaom:

If you poke around the iPhone section on Apple’s(s aapl) site, you might notice a few new pages. MacRumors has spotted three new guides add by Apple to share tips and tricks for the iPhone 4s, the iPhone 5c and the iPhone 5s.

Long a blogging staple (I’ve admittedly been working on a guide of my own), these are Apple’s first guides for phones running its new iOS 7. Though not nearly as in-depth as its much longer iPhone user guide, these pages have useful tips about better ways to use AirPlay and wireless, your calendar, compass, FaceTime, Find My iPhone, mail, Maps, music, photography, settings, Siri and swipe gestures.

You can find the new pages at the bottom of iPhone marketing pages on Apple’s site. Though these tips aren’t detailed enough to stop countless bloggers from compiling their own, they’re not a bad place to start…

View original 10 more words

Leave a comment

Galaxy Note 3 review: To ink or not to ink? That is the question.

Originally posted on Gigaom:

Samsung’s Galaxy Note 3 arrives in stores this Friday, where customers can decide if the large handset with digital inking is worth the purchase. Now in its third iteration, the Galaxy Note line has defined the category of a stylus-enabled phone. Based on using a Note 3 for the past week, it’s surely better than its predecessors, but will it and its $299 (with contract) price appeal to a widespread audience?

Hardware: A potent package

Make no mistake about it: The 5.7-inch display makes the Note 3 a large phone, measuring in at 151.2 x 79.2 x 8.3 millimeters (5.95 x 3.12 x 0.33 inches). Here’s a size comparison of the Note 3 with a Galaxy S 4, Moto X and iPhone(s aapl) 5.

galaxy note 3 size

Like the Galaxy S4, however, Samsung has done a great job fitting a big screen into as little a phone as possible; there’s very little bezel around…

View original 1,538 more words

Leave a comment

Picking Up The Crumbs


Simply awesome…

Originally posted on JAWS:

A few days ago a new feature landed in Firefox Nightly that makes closing multiple tabs easier than it was before.

I often find myself in situations where I have multiple tabs that I opened only to look at for short periods of time. Sometimes I reach this state while reading articles on Hacker News or looking at funny pictures on Reddit. At the end of looking at the tabs, it would be nice if Firefox had a way to close these ephemeral tabs so you can get back to your previous work quicker.

Close Tabs to The Right

Well, Firefox now does! If you open lots of tabs from Reddit and then want to close all of the tabs to the right of Reddit, just right-click on the Reddit tab and choose “Close Tabs to the Right”. It’s easy and quick!

Why “close tabs to the right” and not “close tabs to the left”?…

View original 111 more words


Get every new post delivered to your Inbox.

Join 393 other followers