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 , , , , , , , | 4 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 , , , , , | 158 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 , , , , | 1 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 , , , , , , , | 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