Category Archives: Programming Languages

Choose your programming language right here.

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 , , , , , , , | 2 Comments

RAILS, HAML : How to put Checkbox and label on the same line, with translations

Hey guys! Today I have decided to share with you little secret, that can save you quite some time, while writing templates with HAML. While creating a form for one of the projects, I needed to put a checkbox within … Continue reading

Posted in Programming Languages, Rails | Tagged , , , , , | Leave a comment

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 , , , , , | 86 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 , , , , , , , , | 3 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

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 , , , , , , , , , , , , , , , , , , , , | 10 Comments

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

Just received my RHCSA certificate

RHCSA Anatoly Spektor

Anatoly Spektor Red Hat Certified System Administrator

Continue reading

Image | Posted on by | 2 Comments

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 , , , , | 7 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

SWT migration from GTK+ 2.x to GTK+ 3.x : Introduction

In the earlier post I was exploring Standard Widget Toolkit. I have created simple application to see how SWT works. In this post I want to show couple of reasons, why SWT cannot be easily migrated from GTK+ 2.x to … Continue reading

Posted in Bash (Unix Shell), Eclipse Development, open-source, Programming Languages, Red Hat, SWT | Tagged , , , , , , , , , , | Leave a 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

How to setup TinyMCE using ASP.NET (C#) ? How to customize TinyMCE buttons ?

Today we are going to take a look at one of the most customizable Rich Text Editors for Asp.Net – TinyMCE. In this post I will give you couple of tricks how to easily set  it up, customize and avoid … Continue reading

Posted in ASP.NET, C Sharp, Programming Languages | Tagged , , , , , , , , , | 6 Comments

Java: How to split Java String with delimeter comma, space, new line, tab ? [SOLVED]

Sometimes it is very important to split a string on a comma \n \t etc. This piece of code will help you with it. Check out more posts on “Useful Java Functions and Tutorials”

Posted in Java, open-source, Useful Functions | Tagged , , , , , , , , , , , , | 6 Comments

Java: How to find Longest String in ArrayList ? [FUNCTION]

While I was playing with Java code, I have coded a class that has method that finds longest String in the ArrayList. Method is very simple, but I am sure that some of you will find it useful. So here … Continue reading

Posted in Java, open-source, Useful Functions | Tagged , , , , , , , , , , | 3 Comments

GitHub: How to clone GitHub repo ? How to push to Github? How to get files from GitHub ? (Ubuntu)

GitHub is an online repository. Many people find it very confusing to use GitHub, so I’ve decided to share my experience of using it on Linux Ubuntu. So in this post we will discuss: 1. How to set up and … Continue reading

Posted in GitHub, open-source, Programming Languages, Project BBB, Tutorials, Ubuntu | Tagged , , , , , , , , | 20 Comments

Java : How to swap two objects [Problem Solved]

As you might knowJava does not support pointers, thus swapping things around could create problems.  In this post I will show an example of swapping two objects. We have Employee class that holds information about Employees and SwapDemo3 class that … Continue reading

Posted in Java, open-source, Useful Functions | 7 Comments