Quantcast
Channel: Anatoly Spektor – My Programming Blog
Browsing all 21 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Java Helper Class: BMI calculator, lb to kg converter, kg to lb 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...

View Article


Image may be NSFW.
Clik here to view.

Recognition from Seneca College

Today I have received congratulatory letter from Seneca College President for participating in 2 projects sponsored by Ontario Center Of Excellence. I will tell you more about both projects in the...

View Article


Image may be NSFW.
Clik here to view.

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

View Article

Image may be NSFW.
Clik here to view.

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

View Article

Image may be NSFW.
Clik here to view.

Why MongoDB does not start in Fedora ? [SOLVED]

Hello guys, Today I want to share with you how to easily make MongoDB work in Fedora. Recently, while moving to F19 I have faced the issue when my Mongo does not start. What I mean by does not start ?...

View Article


Image may be NSFW.
Clik here to view.

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

View Article

Image may be NSFW.
Clik here to view.

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

View Article

Image may be NSFW.
Clik here to view.

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

View Article


Image may be NSFW.
Clik here to view.

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

View Article


Image may be NSFW.
Clik here to view.

How to make a contact form with Bootstrap 3 ?...

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

View Article

Image may be NSFW.
Clik here to view.

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

View Article

Image may be NSFW.
Clik here to view.

How to scaffold JavaScript Web Application in seconds using YEOMAN ? (example...

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

View Article

Image may be NSFW.
Clik here to view.

How to stub an IP in Ruby on Rails, RSpec Version 3 ?

Often when you are writing unit tests, you want to mock your IP address. Some of the uses cases could be – you are checking if IP is within the certain range. For RSpec 2.x  mocking  IP would look like...

View Article


Image may be NSFW.
Clik here to view.

How to stub File.read in RSpec 3 [RAILS, TDD]?

  Recently, I have been doing whole bunch of spec rewriting from RSpec 2 to Rspec 3. As a result I have found that documentation is not that straightforward, and some cases you need to really spend...

View Article

Image may be NSFW.
Clik here to view.

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

View Article


Image may be NSFW.
Clik here to view.

How to ensure that filename is always unique ? [Ruby]

Hey guys! Happy New Year! I am glad to be back this year with some interesting news. Thank you for blasting my mailbox with your questions and suggestions! I will do my best to answer all of them as...

View Article

Image may be NSFW.
Clik here to view.

Tutorial: How to get data from external API ? PART 1: Getting API Key,...

I have gotten numerous emails with this question. I have decided to build a small app, that is based on the external API. Why do you need to get data from external API ? If you are asking this...

View Article


Image may be NSFW.
Clik here to view.

Tutorial: How to get data from external API ? PART 2: Sending Request,...

Here we are with Part 2 of our tutorial. Who missed the first part – it’s here. Also if you missed it please take a look at the Github Movies-CLI app, which I am taking my examples from. In this part...

View Article

Image may be NSFW.
Clik here to view.

How to reverse a String not using built-in reverse method ? How to reverse...

Hello again! I am continuing answering to your questions, this one came from marthab86_. marthab86_ asks: “I know Ruby has .reverse! , but can you show me how to actually reverse a word or a sentence...

View Article

Image may be NSFW.
Clik here to view.

How to measure your Ruby method performance ? [Ruby, Benchmark]

Hey Guys, Today, we will use our reverse methods that we have built in the previous post and measure how good they are comparing to the Ruby built in reverse method. For this purpose we will use Ruby...

View Article
Browsing all 21 articles
Browse latest View live


Latest Images