Category Archives: open-source

How to mock file upload with RSpec 3.0 ? [SOLVED]

One more note on RSpec 3.0, this time one useful function that mocks File Upload , saves file/archive content to memory so after it you can do whatever your soul wants with it. Test file/archive should exist in the file … Continue reading

Posted in open-source, Programming Languages, Rails, Rspec, Ruby | Tagged , , , , , , | Leave a comment

How to scaffold JavaScript Web Application in seconds using YEOMAN ? (example with Backbone Marionette)

Hey guys, Today I want to discuss an issue that I have been recently facing, and how to solve it. The issue is: How to set up a new JavaScript web app as quickly as possible and start developing, instead … Continue reading

Posted in Backbone.JS, Handlebars.JS, JavaScript, Marionette.JS, open-source, Programming Languages | Tagged , , , , , , , | 3 Comments

How to make a contact form with Bootstrap 3 ? (JQuery/PHP/HTML5/JqBootstrapValidation)

Hey guys! Today we will talk about such essential feature for any website as contact form. Recently, while working on one of the projects, I had a pleasure combining couple of very nice tools (Bootstrap 3 + JQuery + jqBootstrapValidation), … Continue reading

Posted in Bootstrap, HTML5, JavaScript, Jquery, open-source, Programming Languages | Tagged , , , , , | 97 Comments

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

Eclipse SWT drops GTK support of versions less than 2.10

Hey guys, I have some very exciting news on the GTK-SWT front. Finally, SWT drops support for GTK versions older than 2.10, which means that we will have cleaner code. I have started cleaning SWT from old GTK code, if … Continue reading

Posted in Eclipse Development, Fedora, My Work, open-source, OS, Red Hat, RHEL, SWT | Tagged , , , , , , , | 2 Comments

SWT: Datetime Widget on top of Spinner [ Progress Report]

What is the problem with DateTime widget ? Datetime is an SWT widget that shows DATE/TIME/CALENDAR, so overall very useful widget! In current version of SWT  it looks like this: So as you might have guessed DateTime  is a Composite … Continue reading

Posted in Eclipse Development, Fedora, My Work, open-source, OS, Programming Languages, Red Hat, SWT | Tagged , , , , , , | 1 Comment

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

WeightTracker Android App Prototype Demo Video

Here is one of the applications I was talking about in the last post. This app prototype was created by our team specifically for Ontario Center of Excellence contest. It took us around 3 weeks to develop it. No more … Continue reading

Posted in Android, open-source, Personal, Video | 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 , , , , , , , , , , , , , , , , , , , , | 17 Comments

How to setup ADT (Android Development Tools) on 64bit Fedora 17 ?

Quick Intro Yesterday I was excited to receive a task to install ADT for Eclipse and Android SDK on my machine , I thought it would be a “piece of cake”, so with a high level of excitement I have … Continue reading

Posted in Android, Eclipse Development, Fedora, open-source, OS | Tagged , , , , , , , , | 4 Comments

Eclipse Platform: Eclipse runs and is usable on GTK+ 3 [STATUS REPORT 20 NOVEMBER]

If you are passionate about SWT as development tool, you will be very excited to know that SWT runs on GTK+ 3 and it is usable! You have probably seen post, couple of weeks ago, that Eclipse starts successfully.  Today … Continue reading

Posted in Eclipse Development, open-source, Red Hat, SWT | Tagged , , , , | 2 Comments

Eclipse SWT builds against GTK+ 3 (Status Report 30 October 2012). First look at ControlExample on GTK+ 3

As I have promised before, I’ll be making status reports on migration of SWT to GTK+ 3 more often from now. Couple of weeks passed, since I’v posted that we are moving with a good speed towards the goal of … Continue reading

Posted in Eclipse Development, open-source, Red Hat, SWT | Tagged , , , , , , , , , , | 1 Comment

Eclipse SWT migration to GTK + 3.0 status report: August 2012 – October 2012

Finally, I have decided to give a brief update on where are we standing with migration of SWT from GTK+ 2.0 to GTK+ 3.0.  The reason why I didn’t do  “status report”  earlier is pretty simple – huge amount of … Continue reading

Posted in Eclipse Development, open-source, Programming Languages, Red Hat, SWT | Tagged , , , , , , | 1 Comment

How to reset root password in Linux (RHEL,FEDORA) ? What to do if you forgot root password ?

Today I want to give you some very useful tips on what to do if you have forgotten your root password. ATTENTION: This trick will only work if didn’t  setup GRUB password yet.    (if you did – sucks to be … Continue reading

Posted in Fedora, open-source, Programming Languages, Red Hat, RHEL | Tagged , , , , | 6 Comments

SWT: GTK_INCLUDE_INFERIORS worst enemy (Sash Widget)

Good day my fellow Developers and Engineers,  In my previous post I’ve written about INCLUDE_INFERIORS in Tracker Widget.  Today I’ve started working on  Sash Widget’s drawBand() method, and guess what I have found there ? ….”Exactly, my old “friend” OS.GTK_INCLUDE_INFERIORS.” … Continue reading

Posted in Cairo Graphics Library, Eclipse Development, open-source, Red Hat, SWT | Tagged , , , , , , , , , | Leave a comment

SWT migration to GTK+ 3.x : Tracker Dilliemma

Couple of weeks I was trying to solve interesting dilemma, so I decided to share it with you.  I have submitted patch regarding Tracker widget, where I implement Cairo instead of GDK deprecated methods, more about it here . However, … Continue reading

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

SWT migration To GTK+3.x : 6 SWT – Cairo Patches (Eclipse Bugzilla)

I am glad that you guys showed big interest to the project I am currently working on.  I have received couple of emails from blog readers asking to share patches they I have pushed upstream. First of all, I want … Continue reading

Posted in Cairo Graphics Library, Eclipse Development, Fedora, open-source, Red Hat, SWT | Tagged , , , , , , , , , | Leave a comment

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

SWT migration to GTK+ 3.x : What is GDK ? What is GIMP ?

This is third post related to my new project – migration of SWT from GTK+ 2.x to GTK+ 3.x . In order to successfully build SWT with GTK+ 3.x all deprecations must be resolved. Big chunk of deprecated methods are … Continue reading

Posted in Eclipse Development, open-source, Red Hat, SWT | Tagged , , , , , , , , , | Leave a comment