My contemplations and diurnal novelties are publicized here

Archive for the ‘General’ Category

Things to remember before buying a Smart Phone


Recently had a chance to buy a new Smart Phone, this time I have thoroughly research and concluded several thing to identify before going for a new phone. Sharing the list over here as it can be helpful for anyone buying a new smart phone.

  1. Comparison:-
    1. Compare the mobile you intend to buy using the link http://www.gsmarena.com/compare.php3. This will help you get line by line comparison.
    2. http://www.phonemore.com/
  2. Connectivity:-
    • This is the most important thing for a Smart Phone. Without (Wi-Fi or 2g/3g/4g connectivity) your phone is just a useless brick.
  3. RAM:-
    • Ram will help you out with memory intensive application like games etc. As of this writing phone with 6GB RAM are available in market
  4. Storage:-
    • Primary storage is the mandatory location for several applications. The more primary storage you have more applications you can install
  5. Provisioning of Memory Card Slot:-
    • Some mobile phone don’t allow you to add an additional memory card, so you have to stick with what storage they offer. Evaluate this as per your needs
  6. Battery:-
  7. Screen Size
    • 5 inches screen are easily portable so you can adjust as per your specific need. Screen-to-body ratio is another important factor go for bigger ratio.
  8. Screen Type
    • There are two major player Amoled Screen and IPS screen. IPS is more real life images and Amoled is good for viewing Video and so. You have a thorough research to identify your needs
  9. Screen Resolution
    • Go for a higher screen resolution 1080 x 1920 or higher also you need to go for higher ppi (Pixel per Inch) to have high definition images
  10. Mobile Chipset
    • Go for a high end and latest chipset. https://www.qualcomm.com/products/snapdragon
    • Latest is snapdragon 835
    • 4K video
      1. To support 4k video you have to have at least Qualcomm Snapdragon 800 Chipset
      2. Want to know what 4k is, try recording a video in your phone and it will switch to a low resolution video, if your phone doesn’t support 4k processing.
    • High end chipset will have high end GPU
  11. Camera Resolution
    • Primary:- This is to take the pictures of your surrounding
    • Secondary:- This is for your Selfies
    • Now you to decide what you opt for (Secondary camera with 5 MP or more will help you take great selfies
    • Dual Front Camera:- There is another option in certain mobile phones have 2 front camera one for focusing on yourself and other to help capture the background
  12. Available Sensors
    1. Finger Print Recognition/Security:
      1. You wouldn’t find it in many phones but I feel it a great feature as you don’t have to type anything to unlock your phone
  13. NFC
    1. If you are plan to use some Tap & Service
  14. OS (Up gradable to which latest version) 
    1. Mobile Vendors other than Google plan for their OS upgrades with a delay whereas google phone get immediate roll-out of new version.
    2. If you want have always update android go for Google Nexus
    3. You can have a Android version comparison here 
  15. GPS
    1. Identify which type of GPS features are present in the mobile for precise location
    2. A-GPS
    3. GLONASS

There are lot more to add to this list but let me conclude it here.

Kindly share your comments and suggestion to improve this list.

Moving from SVN to Git with Branches and history


This article assume that you have familiar with SVN and Git both on a basic level.

  1. Install following component on your PC
    1. (Git Client like SVN) https://download.tortoisegit.org/tgit/1.8.16.0/TortoiseGit-1.8.16.0-64bit.msi
    2. https://github.com/git-for-windows/git/releases/download/v2.6.4.windows.1/Git-2.6.4-64-bit.exe
  2. Create a repository similar to you root work folder like
    1. Source Code Git” for a repository like “Source Code
  3. Choose “Git Clone” option


  4. Provide your SVN url and local directory


  5. You will be prompted for you SVN repository password, enter you SVN repo password.
  6. Create a remote repository from your control panel like
    1. http://yourGITrepositoryUrl/yourproject.git
  7. Right Click on the local folder which you have created using SVN repository and select


  8. Type “Git Status” to check the status of your repository


  9. Also check the branches using following command
    1. Git branch -a
  10. Type $ “git remote add origin http://youGitRepositoryUrl” This will add a origin for your local repository where the changes will be pushed
  11. Type “git push –u origin master” to push trunk into the remote master branch. You will be prompted to enter username/password
  12. Now switch to other branches you want to push to the remote repository
  13. Type “git checkout yourbranchnamePresentinSVNRepository
  14. Once you branch is switched you can push it to the remote Git Repository by typing “git push –u origin yourBranchName“.
  15. Repeat the same for all your local branches until all are pushed to remote Git Repository.


To automatically save the Git UserName and Password (For Push and Pull)

  1. Goto git setting by right clicking on your project foldergit settings
  2. Select Advanced option and project url and username
  3. git settings panel

How to get Executing Jar Name and Modified Date in Java


Following is the piece of code to get your executing Jar name and its modified date. You can use these info for logging purpose:-

// Get File Jar File

String jarFileName = new java.io.File(Main.class.getProtectionDomain().getCodeSource().getLocation().getPath()).getName();

JarFile jf = new JarFile(jarFileName);

// Get Manifest

ZipEntry manifest = jf.getEntry(“META-INF/MANIFEST.MF”);

// Get Manifest date time

long manifestTime = manifest.getTime();

Date date = new Date(manifestTime );

DateFormat formatter = new SimpleDateFormat(“YYYY-MM-dd HH:mm:ss:SSS”);

String dateFormatted = formatter.format(date);            

log.info(“Executing Jar :” + jarFileName + ” with modified date: “ + dateFormatted);

Should Software Architects Write Code?


Random Acts of Architecture

Much has been written and debated on whether software architects should write code. Many argue the more architects understand the language, tools and environment they are designing for, the more effective they are and this is best achieved by implementing some or all of the design. Non-coding architects, sometimes called “PowerPoint architects”, “astronaut architects” or “ivory tower architects”, may use archibabble and talkitecture to convince non-technical stakeholders of their expertise while delegating the unsolved, real problems to developers, so much so that it has become an organizational pattern (“Architect Also Implements“) and corresponding anti-pattern (“Architects Don’t Code“). Others argue that architects responsible for implementing their architectures lose focus on the bigger issues and longer term vision. Understanding does not necessarily require knowledge of the minutiae and, as systems scale up and diversify, implementing it requires too much time or spreads the architect too thin. Therefore, should software architects write code?

As with…

View original post 1,430 more words

A Software Developer’s Reading List


Steve Wedig's Notes

“An investment in knowledge always pays the best interest.” – Benjamin Franklin

Many of the best software developers have T-Shaped Skills: Deep expertise in programming and software development, and broad knowledge of diverse areas including testing, DevOps, UX design, team organization, customer interaction, and their domain areas. While there is unfortunately no substitute for experience, reading is probably the next best thing. Over the past 10 years I’ve read a lot in an effort to deepen and broaden my knowledge as a software developer. Along the way I’ve been organizing books and concepts into the reading list I share below. I have been trying to design a core curriculum for “modern” software development by asking myself:

  • What core concepts are required to be a world class software developer?
  • What is the best book for introducing and teaching each concept?

The result is a…

View original post 9,785 more words

Daily working Cheat Sheet for DotNet


  • How to Gets or sets the fully qualified path of the current working directory.
    • Environment.CurrentDirectory:-
  • How to get Application Data folder:-
    • Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
  • How to get current application name:-
    • System.Reflection.Assembly.GetExecutingAssembly().GetName().Name
  • How to download a file (zip) from a url/web service (php) using c#
  • How to extract zip file using c#.net (till Framework 4.0)
  • How to replace a string in an string array in c#
    • var values = line.Split(‘,’);
    • var sanatizedValues = values.Select(x => x == “” ? x : “Null”).ToArray(); OR
    • string[] items2 = items.Select(x => x.Replace(“one”, “zero”)).ToArray();

       

Q-Mobile hardly completes it warranty Period


Despite the currently most selling brand in Pakistan. Q- Mobile is very low in quality and hardly completes its warranty period. You will be lucky if it dies sooner so you can claim your warranty.

I have used Nokia and there is a marginal difference between the quality of Nokia products and Q-Mobile. Recently my Q-mobile A9 losses it touch sensitivity making it a complete dump. I can’t even retrieve any data within the phone.

Beware before buying Q-mobile specially touch screen. It’s better if you try out a low specification HTC mobile. It will be more durable as compared to your so called brand new Q-mobile.

I have even used Q-mobile with key pad they aren’t even comparable to Nokia mobile. They do provide a bit more features but the quality of Camera, Keypad and Mic is very low. So you have to change your mobile within very short span of time.

 

%d bloggers like this: