August 22, 2015

UDPCast, udp sender and udp receiver Sharing files over LAN/Wi-Fi

Hi admins,

Have you ever thought of sending files/folders to all your systems which are connected over LAN?
Have you ever thought of copying the entire partitions including OS to all your systems with same configuration which are connected over LAN in your lab?

You might be using some proprietary tools.

Let me share my knowledge of open source tools in Ubuntu to perform the job.

It is UDP Case with following operations
  1. udp-sender
  2. udp-receiver

Simple usage can be seen in References 2

References

https://www.udpcast.linux.lu/cmd.html
https://www.udpcast.linux.lu/cmdlinedoc.html

Please send your comments and feedback to psrdotcom@gmail.com

Ubuntu Windows dual boot order changes GRUB

Hi friends,

From long time, I was thinking of modifying my default boot option to Windows instead of Ubuntu. Finally today, I've done those changes in my laptop.

My system has Windows 10 and Ubuntu 14.04 dualboot and Ubuntu OS is my default boot option with 10 seconds timeout.

I thought of sharing the information with everyone.

Please open the terminal and run the followin commands in sequence 
  1. sudo add-apt-repository ppa:danielrichter2007/grub-customizer
  2. sudo apt-get update
  3. sudo apt-get install grub-customizer
By now, grub-customizer will be successfully installed in your PC.

Please follow the below step to do the necessary changes in boot order

  • Open the grub-customizer
 

  • Grub customizer lists the installed OS with versions
 

  • Rename the OS entry by right clicking and selecting "Rename" option [Optional]
 

  • Choose the default boot option by navigating to "General Settings"
  • Select options from "predefined" entry


  • Click on "Save" option to save all the changes.
  • You can revert the changes by clicking the "Revert" option, if you feel like going back to original/initial options

Hope it would help you in changing the default boot order

Please send your comments and feedback to psrdotcom@gmail.com

May 12, 2015

Bulk import of csv, text file data into MS SQLServer 2012

Hi friends,

Today we have done bulk import of data using csv/txt format into MS SQLServer 2012.

Procedure

  1. Right click on your database and select “Tasks -> Import Data”
  2. Click the “Next>” button
  3. For the Data Source, select “Flat File Source”.
  4. Browse and select the CSV/TXT file
  5. For the Destination, select the correct database provider (e.g. for SQL Server 2012, you can use SQL Server Native Client 11.0).  Enter the Server name; check Use SQL Server Authentication, enter the User name, Password, and Database before clicking on the Next > button. 
  6. Change the options like delimiter, carriage return(new line), First row as header
  7. Spend some time configuring how you want the data to be imported before clicking on the Next > button.
  8. Change the table name
  9. Change the columns datatype
  10. Preview your table
  11. On the Select Source Tables and Views window, you can Edit Mappings before clicking on the Next > button
  12. Check Run immediately and click on the Next > button. 
  13. Click on the "Finish" button to run the package
  14. You data with the table will be selected
Enjoy the simple and useful bulk data import.

Please send your feedback and comments to psrdotcom@gmail.com

Blogger Labels: Bulk,text,data,SQLServer,Procedure,database,Tasks,Import,Click,Source,Flat,File,Browse,Change,options,carriage,header,Spend,columns,Preview,Finish,Enjoy

January 19, 2015

Windows: Copy all file names in a folder

Hi friends,

I’ve got a requirement like, I want to copy all the file names from a folder in Windows.

After searching from Google, I’ve got one of the quick solution which is being described below

Procedure:

Navigate to the folder where you want to copy all the file name in “Windows Explorer”

Select all the files (Key Board (KB) Shortcut: Ctrl + a)

Press and hold the “Shift” key on your keyboard

Right click your mouse by pointing to any one of the selected file

From the context menu, select the option “Copy as path”

Now, open “Notepad”

Paste the content (KB Shortcut: Ctrl + v)

Now, you will be able to see all the file name with full path

You can remove the folder path, if you don’t want the full path

Enjoy guys Smile

Send your comments and feedback to psrdotcom@gmail.com

Blogger Labels: Windows,Copy,folder,requirement,Google,solution,Procedure,Navigate,Explorer,Select,Board,Shortcut,Ctrl,Shift,From,context,menu,option,path,Notepad,Paste,Enjoy,Send,feedback

December 24, 2014

Android Application Upload to Google Play Store Minimum Requirements

Hi Friends,
Today, I have prepared a simple document which required once your signed application is ready (.apk file)

Pre-requisites

Google Play Developer Console account

Procedure

The following sections will explain the procedure of requirements

APK

In this section, you can upload the .apk for testing and production
We will have following tabs/sections for the following
1)   Production
2)   Beta Testing
3)   Alpha Testing 

Note:
For Beta and Alpha testing, tester e-mail ids shall be given to access the app)

  • Click on “Upload new APK” to upload the .apk file

Store Listing

App Info

1)   Title (max 30 characters)
2)   Short description (max 80 characters)
3)   Full description (max 4000 characters)

Graphic Assets for Android App Upload

  1. Screenshots
    • Default – English (United States) – en-US
    • JPEG or 24-bit PNG (no alpha). Min length for any side: 320px. Max length for any side: 3840px.
    • At least 2 screenshots are required overall. Max 8 screenshots per type. Drag to reorder or to move between types.
  2. Hi-res icon 
    • Default – English (United States) – en-US
    • 512 px x 512 px 32-bit PNG (with alpha)
  3. Feature Graphic 
    • Default – English (United States) – en-US
    • 1024 w x 500 h JPG or 24-bit PNG (no alpha)

Categorization

1)   Application type
2)   Category
3)   Content rating

Contact Details

1)   Website (Optional)
2)   Email

Privacy Policy

If you wish to provide a privacy policy URL for this application, please enter the privacy policy URL in the specified text box.

Note:
If we don’t have the privacy policy currently, we can skip by selecting “ Not submitting a privacy policy URL at this time” option.

Services and APIs

Licensing and In-app billing

Licensing allows you to prevent unauthorized distribution of your app. It can also be used to verify in-app billing purchases. Learn more about licensing.

Your license key for this application

We will be able to see a Base64-encoded RSA public key to include in your binary. Please remove any spaces. Add it to the, licensing source code of your program for verification with Google Play Store.

Please send your feedback and comments to psrdotcom@gmail.com

December 19, 2014

Reverse Engineering .apk file (or) Getting Java source code from .apk by extracting

Hi friends,

Today we are going to see how the .apk can be reverse engineered to see the original source code

Procedure

  1. Get the .apk file (Here I'm taking example apk called psr.apk)
  2. Rename the extention from psr.apk to psr.zip file
  3. Extract the psr.zip file
  4. It will create folder named "psr" and contents will be inside that
  5. Download the tool "dex2jar" from the official link
  6. Extract the downloaded "dex2jar" zip
  7. Navigate to the "dex2jar" extracted directory
  8. Execute the following command
    • ./d2j-dex2jar.sh psr/classes.dex
  9. Now it will generate classes-dex2jar.jar file
  10. Extract the jar file, it will create "classes-dex2jar" folder
  11. Now, open you "intelliJ IDEA"
    • Install "Java Decompiler IntelliJ Plugin" in "intelliJ IDEA"
    • In IDE, click "File->Open"
    • Select the "classes-dex2jar" folder path
  12. Now, click on any of the .class file, then you should be able to see the original java source code of it

Isn't it awesome guys :)

Keep enjoying the coding :)

Please send your feedback and comments to psrdotcom@gmail.com

Android Screencast Configuration Install in Ubuntu

Hi all,

Today, I am going to show you how to show the android screen on your Ubuntu.

Procedure

  • Download the androidscreencast from the official link
  • Just by running the jnlp, you won't be able to see the screen
  • Java has security restictions
  • Now we have to manually add Android screencast url to be allowed in Java Security in Ubuntu
  • Go to jre folder
    • Example: /usr/lib/jvm/oracle-(8/7)-java/jre/bin/
  • Run the following command
    • $ ./ControlPanel
  • Select "Security Tab"
  • Click on "Add" button
  • Enter the following http address
    • http://androidscreencast.googlecode.com

References

https://code.google.com/p/androidscreencast

Please send your comments and feedback to psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com