Archive for the ‘Programming’ Category
Datalex Web Work In Progress
Saturday, May 15th, 2010iPhone App For Smalls Food And Drinks
Thursday, April 22nd, 2010I’m currently working hard to deliver a fully advanced Ajax application for a Norwegian company, which I will post a video about. This is a new project that I´m working on for a friend of mine. He wanted a simple iPhone app for his new opened sandwich store. The purpose of this application is to let users view his menu and store information.
The user interface is very simple, which I will eventually change in the future but for now you get the point. No database used here I’m currently learning to use Core Data with SQL lite but the application is pulling data from a simple array in the application code for testing purposes only.
I’m going to use SQLite tutorials to build a simple DB and get saved product information.
Unit Testing Is Cool
Thursday, February 25th, 2010The Agile and TDD ( Test Driven Development ) have come upon us, and have encouraged many programmers to write automated unit tests. More are joining their ranks every day. I`m one of them, and these are my notes from my own experience and other sources like the Internet and books.
IE7 Ajax Bug
Wednesday, January 13th, 2010I had problems with IE7, when you do a Ajax call after a data update, IE7 will not make that call, he just throws old data. To fix the “problem” you need to change the url you are sending to force it to send every time!
ASP.NET MVC JsonResult
Thursday, January 7th, 2010Quick note on creating and returning JSON via a controler, without using JayRock, which allows clients, typically JavaScript in web pages, to be able to call into server-side methods using JSON as the wire format and JSON-RPC as the procedure invocation protocol. The methods can be called synchronously or asynchronously !
Regular-Expression Notes From Everywhere
Tuesday, January 5th, 2010Knowing how to use regular expressions is important. Regular expressions help me solve problems both large and small.
There nothing magic about Regular expression. Just like a magician, there is nothing magic about magic. The magician understands something simple which does not appear to be simple or natural to the untrained audience.
ASP.NET MVC Quick Notes
Monday, December 21st, 2009I have been working with ASP.NET MVC since it`s first public release for MSDN developers. I would like to write down some quick notes that can be helpful.
InvalidOperationException LINQ
Saturday, December 12th, 2009Quick note on “Sequence contains no elements” error message or by getting “InvalidOperationException” when calling Single from a LINQ query.
(more…)
Relay Race Game In Java With Threads
Thursday, November 26th, 2009
Make a relay race in Java with animated visuals. The original task was a school task that only needed to print team status and results in the Eclipse console. I liked it allot and made a really simple visual relay race. You have 5 teams with 4 contester running. Every contester is a thread working together as a team.
Chained Exceptions
Tuesday, November 24th, 2009Quick notes about chained exceptions, and exception handling in general. I’m going to run a simple client program which will throw exceptions forcing the chain to throw exceptions and these exceptions will be caught by the next callers catch block. Then I’m going to print out the exception stack trace to see the chain.
Data Structures
Thursday, November 5th, 2009
In this post, I would like to write down some notes on dynamic data structures that grow and shrink at execution time. Linked lists, queues, stacks and binary trees will follow in this post.
(more…)
Java Subtyping & Wildcards
Sunday, October 11th, 2009
Arrays like Integer[] is a subtype of Number[] but List< Integer > is not a subtype of List< Number >. We would like lists to behave more like arrays, in that we want to accept not only a list with elements of a given type, but also a list with elements of any subtype of a given type. We then have to use wildcards.
