Month: February 2013

What most schools don’t teach

2013-02-26 Uncategorized No comments


Learn about a new “superpower” that isn’t being taught in in 90% of US schools. I suppose, that it can be applied to Polish and most of the other European schools as well.

Starring: Bill Gates, Mark Zuckerberg, will.i.am, Chris Bosh, Jack Dorsey, Tony Hsieh, Drew Houston, Gabe Newell, Ruchi Sanghvi, Elena Silenok, Vanessa Hurst, and Hadi Partovi. Directed by Lesley Chilcott.

Google shows off Google Glass UI

2013-02-20 Google No comments

google_glass_01

On the official Google Glass website we can find how it feels to use it, preview UI and read what it does. Finally, we can also get to know how to get one! It’s a good option for creative individuals, but this cannot be achieved without any effort. Unfortunately, this option is available only for U.S. citizens right now.

google_glass_02

This project can be interesting not only for the users, but especially for developers. It could be a great fulfillment for mobile devices and laptops extending everyday technological experience. I don’t know exact details about the platform, programming languages and SDK used in Google Glass, so we have to stay tuned, because this project is becoming more solid and interesting.

Now, we can just take a look at the website of the project: www.google.com/glass/.

google_glass_03

Promotional movie is also quite nice.

google_glass_04

How to design pixel perfect assets for mobile applications

2013-02-20 Design, Mobile No comments

How to design pixel perfect assets for mobile applications

Good resource for designers of the mobile applications UI.

pixel-perfect-assets-post

Distributed Inter-Process Communication

2013-02-15 C, Linux No comments

Project overview

Some time ago, I created presentation for my university connected with Distributed Inter-Process Communication.
It is a piece of software dedicated for Linux OS, created by Kamran Karimi, which allows to distribute software operations inside computer cluster. In addition, we can test it on a single machine during development process and run on a several machines in the production phase.
I tested this solution on Ubuntu Linux. Short description of this system is presented below.

DIPC (Distributd Inter-Process Communication) is a software-only solution for distributed data exchange on a network on Linux computers. It operates at the kernel level, and allows the programmer to use System V semaphores, message queues, and shared memory segments over the network with minimal change at the source code level.

Presentation

References

Endless ListView in Android

2013-02-14 Android 14 comments

Update: This article is pretty old. Check out newer article about Infinite scroll for RecyclerView in Android.

Some time ago, I had to implement Endless ListView in Android application. I checked different solutions, but some of them were overprogrammed or did not work well.
Fortunately, I found simple solution, which solves the problem. Code snippet presenting mentioned approach, is placed below.

hint: if you cannot see the code below, please disable AdBlock on this site (I don’t have advertisements, but I’m using Gist)

In this solution, I simply implement OnScrollListener interface inside the activity, which is responsible for displaying the ListView (class presented above can be nested class in the proper activity class). In this case listView attribute represents ListView and downloadRecordsTask in an examplary AsyncTask. Of course, AsyncTask class should also have setPage method used for pagination. Records are loaded asynchronously to the listView, when user is not scrolling the list (SCROLL_STATE_IDLE). In my opinion, this solution is the simplest, the easiest to implement and works as we expect it to work. I have tested it in my project for over 1000 records and I have not encountered any problems during the testing process.

Animate your HTML5!

2013-02-10 Canvas, CSS3, Google, HTML5 No comments

animate-your-html5

Interesting resource concerning HTML5, CSS3, Canvas, graphics & animation inside the web browser: http://animateyourhtml5.appspot.com/

Don’t forget to check out the presentation! http://animateyourhtml5.appspot.com/pres/#1

Toolbar.js – A jQuery plugin that creates stylish tooltip toolbars

2013-02-03 JavaScript, jQuery No comments

toolbar-js-jquery

Toolbar allows you to quickly create tooltip style toolbars for use in web applications and websites. The toolbar is easily customisable using the twitter bootstrap icons and provides flexability around the toolbars display and number of icons.

Check this out at: http://paulkinzett.github.com/toolbar/

Moment.js – A 5kb JavaScript date library for parsing, validating, manipulating and formatting dates

2013-02-02 JavaScript No comments

moment-js

Moment.js is new, fresh, easy to use and very useful library written in JavaScript, which solves problems with date & time manipulation, parsing and validation. Check this out at http://momentjs.com/. You can also read post at the noupe website and see GitHub page of this project. Moment.js supports many languagues and is freely distributable under the terms of the MIT license.

Place it by Brezi – generating screenshots of mobile and web apps in realistic environment

2013-02-02 Design, Mobile, Tools No comments

placeit-by-brezi

Some time ago I discovered nice tool, which allows you to create screenshots of mobile and web apps in realistic environment. It’s quite useful. Especially for promotional purposes and in the case, when our graphic design skills are not good enough.

Check this out! http://placeit.breezi.com/

Custom background for ActionBar & SherlockActionBar

2013-02-01 Android No comments

custom_bg_for_actionbar

When you want to set custom background for Android ActionBar or SherlockActionBar instead of playing with your styles or views, you can use the following simple code snippet.

hint: if you cannot see the code below, please disable AdBlock on this site (I don’t have advertisements, but I’m using Gist)

In this case, Drawable object is injected using RoboGuice library and set as a background for the ActionBar. In particular cases, you can use also getActionBar() method.
In Drawable object you can store an image of 1 px width and it will be stretched for 100% of width of the ActionBar.
I have tested the code snippet presented above for SherlockActionBar and it worked fine.