Jūs esateprogramming

programming


My Expierence With Emulator of Android Development Tools 11

Yesterday I installed the latest version (currently - 11th) of Android Development Tools into my ASUS X53Ka (AMD Athlon X2 64 TK-57 1.9 GHz, 4 GB of RAM). But the emulator loads very slowly - I've waited for about 5 minutes but the emulator haven't started (the title "Android..." was still blinking).

So, what I did? I pressed on Window->Android SDK and AVD Manager and changed some options a bit:

Integration testing

I have to make a small speach about Integration testing on Wednesday. So, I wrote down some main points I would like to discuss. I think they might be interesting for the readers of my blog. Here are they.

 

ActivityNotFoundException on Android?

I am creating a small Android client for my Master's theses. Unfortunately, I've encountered a problem: I get ActivityNotFoundException during runtime process. I just need to change the activity of my program (to show the help box). Maybe someone could give me a hint what I'm doing wrong?

My main file/activity looks like that:

C++ List

I was looking for analogue of ArrayList (or List) datatype in C++ and I found today: STL List :)

Take a look over here: http://www.cplusplus.com/reference/stl/list/

PHP. Simple SOAP client & server

Today we're going to create a simple Simple Object Access Protocol (SOAP) client and server.

First of all you must ensure that your php.ini file have PHP SOAP and XML RPC extensions enabled:

 

extension=php_soap.dll

extension=php_xmlrpc.dll

 

Notes about Drupal 7. hook_theme() changed a bit

Today I was programming with Drupal 7. And I expierenced a problem with hook_theme() hook.

In Drupal 6 I did like that:

My first JavaME program aka Hello, World on Mobile phone

I wanted to try the JavaME framework. And I tried it. The first program I made was a simple program which shows an alert box with the text you entered. Interesting point is that the menu buttons look different then in my "Sony Ericsson K550i". In the emulator - the "Exit" is on the right, but in my mobile phone it's on the left. At the moment I don't have any idea why, but...

Required software for development

I thought it might be interesting to post something about development for the Symbian OS. So, at start we need some software. We'll need two things: a development environment (IDE) & SDK for Symbian OS. Lets start with IDE. Symbian OS has a wonderful page about development: http://developer.symbian.com/main/index.jsp.

C#. Int array vs. ArrayList vs. Dictionary

private static void TestIntArray() { int [] array = new int[1000]; for (int i = 0; i < 1000; i++) array[i] = i; } private static void TestArrayList() { ArrayList array = new ArrayList(); for (int i = 0; i < 1000; i++) array.Add(i); } // Code.... long start = DateTime.Now.Ticks; TestIntArray(); long end = DateTime.Now.Ticks; Console.WriteLine("Time with int array: {0}", end - start); long start2 = DateTime.Now.Ticks; TestArrayList(); long end2 = DateTime.Now.Ticks; Console.WriteLine("Time with ArrayList array: {0}", end2 - start2);
The

XNA. Change resolution & set full screen

I am creating a game with the XNA framework and I needed to change the resolution for XNA game. So, that's how it's done: public class MyCoolGame : Microsoft.Xna.Framework.Game // Code... // GraphicsDeviceManager graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = Width; graphics.PreferredBackBufferHeight = Height; graphics.ApplyChanges(); Another very useful property is IsFullScreen - boolean variable, which sets game to full screen or not (do not forget to call graphics.ApplyChanges().).

Įrašų įterpimas į surikiuotą masyvą

private static void insertEntryIntoArray(int insertationIndex, int entry, int [] array) { for (int i = array.length - 1; i > insertationIndex; i--) array[i] = array[i - 1]; array[insertationIndex] = entry; } // Kodas.... int [] array = new int[5]; int numberToInsert = 7; int entriesFilled = 3; array[0] = 1; array[1] = 5; array[2] = 10; for (int i = 0; i < entriesFilled; i++) if (array[i] > numberToInsert) { insertEntryIntoArray(i, numberToInsert, array); entriesFilled++; break; } Gal kam pravers :)