Category Archives: Java

How to find if a number is power 2 ? (Bitwise and Iterative) [Python Script]

As I have promised, I continue answering your questions. One of the readers of myprogrammingblog.com wrote me an email asking How to find if a number is power 2 ? He also asked me to write a bitwise solution as … Continue reading

Posted in open-source, Programming Languages, Python, Useful Functions | Tagged , , , , | Leave a comment

How to check if a number is ODD or Even ? [PHP function]

Hey guys! Long time no seen! Today I had a pleasure of going over myprogrammingblog emails, where many users have asked me to show solutions to different problems. Sorry for not being able to respond earlier, as I had whole … Continue reading

Posted in GitHub, open-source, PHP, Programming Languages, Useful Functions | Tagged , , , , , , , , | 5 Comments

How to test Applications using Eclipse ? (Introducing my new book)

Application testing plays very important role in any development process.  After spending numerous hours on it, I have decided to put what I felt was important in to a short book, which is intended to help developers  to get  started … Continue reading

Posted in Eclipse Development, Java, open-source, Personal | Tagged , , , , , , | Leave a comment

Java Helper Class: BMI calculator, lb to kg converter, kg to lb converter, feet to cm converter, cm to feet converter

Hey Guy’s, Long time no seen. Today I want to share with you Java helper class that I have designed for one  of the projects I am working on. This class will be useful for you, if your application works … Continue reading

Posted in Helper Class, Java, open-source, Programming Languages, Useful Functions | Tagged , , , , , , , , , , , , , , , , , , , , | 31 Comments

SWT migration to GTK+ 3.x: Use Cairo Instead GDK : First Patch – Tracker Widget

I am continuing series of posts about   SWT migration to GTK+ 3.x . Today, I will  write about patch for SWT Tracker Widget, that omits some of GTK+ 3.x deprecated methods. When I started working on patch for Tracker, it … Continue reading

Posted in Cairo Graphics Library, Eclipse Development, Fedora, Java, open-source, Red Hat, SWT | Tagged , , , , , , , , , , , , , , | 1 Comment

What is Standard Widget Toolkit for Eclipse (SWT) ?

Here I am at my new workplace. Next 8 months I will be working in Eclipse team, on migration of SWT  from GTK2 to GTK3. If these words does not tell you much, don’t worry, I am pretty much in … Continue reading

Posted in Eclipse Development, Fedora, Java, open-source, Programming Languages, Scripts, SWT, Tutorials | Tagged , , , , , , , , , , , | Leave a comment

Java – How to format string using SampleDateFormat ?

One of the blog readers asked me this question, how to format string using SampleDateFormat to mm/dd/yyy. Here is a small piece of code, I hope some of you will find it useful. a. Frist – import 2 libraries: b. … Continue reading

Posted in Java, open-source, Useful Functions | Tagged , , , , , , , , , , | 1 Comment