Apologies

Oct 16
2009

IPhone online course, lesson 2

Sep 17
2009
continuing  lesson one is Lesson 2 :) Picture 1
lesson 2 is mostly about Objective C , object oriented programing , language syntax , and memory management.

this episode has 8 min intro

then minute 10 to  17-43 is basic oop and cocoa

where they talk about the cocoa framework , in summary Objective C is loos type language with dynamic type id.

afterwared they talked about 2.0 Syntax addition (dot notation synthesis etc’) and naming conventions

43-47 dynamic typing

47-49 nil (null object)

49-50 bool (yes/no instead of true)

50-52 selector - this one is interesting – it’s a way to hold the name or promise of a function as an object , you can check if it exists on an instance invoke in etc’ .

52-53 introspection – objective c name for reflection

53-57 working with oject

57-end overview of the cocoa framework data types.

I’m attaching my assignments as reference.

Is Google the next Apple killer ?

Sep 03
2009

apple-iie-2Apple is known for its innovation.  At the late 70’s and 80’s it ruled the world of microcomputers with the Apple pc. but somewhere things went wrong.

It began with Microsoft striking a deal with IBM. Then with a bit of luck, greed, reverse engineering, and legal sorcery, Compaq made the first IBM PC clone. Then the road was open to ever cheaper clones, and Microsoft’s hardware support strategy opened the gate to versatile configurations. It was what we call today (and maybe even then, but I was too young to know) a disruptive technology. Microsoft changed the way the computer business worked. Up until that time, software was sold as part of the hardware itself and not separately. Microsoft technology broke through.   Respect.

As a side note, until now Apple holds ground regarding selling hardware and software combined , which might be a limitation in the PC business but surely comes to its advantage on the mobile world.

Back to our story, for years Apple wandered in darkness , until the big break through in the form of the IPod and its successor the IPhone. It may be that it all went the wrong way since Steve Jobs left Apple, and things got back on track upon his return. Major parts of Apple’s new business are based on NeXT technology (Jobs’s company that was eventually acquired by Apple), and his involvement in product development is infamous.

If it is so then Apple is truly a one man show.

This time the battle is about services (or SaaS) .The IPhone and IPod are clients to the ITunes SaaS.  But with Apple’s restrictions on application runtimes (in effort to control the store) and banning of innovative applications it is heading the wrong path again.

Like it was in the 70’s Apple defined the market but will Google with its  mobile computing and mobile communication take over it ?

Don’t get me wrong I LOVE my IPhone, but I’m starting to feel that it would be my Ivory tower. Like a 90’s Mac.

wordpress silverlight plugin – suggestion

Aug 16
2009

Tim Heuer released a silverlight plugin for wordpress.

In the never ending process of setting up my blog I added his plug-in.

When playing with it and trying to write a post I had a problem adding multiple embeds, so I took the liberty to poke through the code.

I was quite impressed with simplicity of the plug in management in Word Press.

WP has an easy to change and quick to deploy development story , that interpreter based languages has – It’s a joy.

But back to SL plug in , i tinkered with it and found out that Tim already had 99.9% of the way.

what basically the plug in does is parse the post code and replace a some special markers with silverlight embed code.

the function that does the work has a stop condition on line 4, and to enable multiple embeds I changed the return value to be recursive (line 29)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function silverlight_the_content($content)
{
	$found_pos = strpos($content, SILVERLIGHT_META_START);
	if(!$found_pos) return ($content);
 
	$embedded = substr($content, 0, $found_pos);
	$meta = explode(",", trim(substr($content, $found_pos+strlen(SILVERLIGHT_META_START), (strpos($content, SILVERLIGHT_META_END, $found_pos) - ($found_pos+strlen(SILVERLIGHT_META_START))))));
 
	$output = $embedded . SILVERLIGHT_TARGET;
	$paramHolder = SILVERLIGHT_INITPARAMS;
	$url = trim($meta[0]);
	$width = trim($meta[1]);
	$height = trim($meta[2]);
	$initparams = trim($meta[3]);
  $minver = trim($meta[4]);
	if(!strpos($url, "http://")) $url = get_option('silverlight_standard_location') . $url;
	if(strlen($width) <= 0) $width = get_option('silverlight_standard_width');
	if(strlen($height) <= 0) $height = get_option('silverlight_standard_height');
  if(strlen($minver) <= 0) $minver = get_option('silverlight_standard_version'); 	$output = str_replace("###URL###",  $url, $output); 	$output = str_replace("###WIDTH###", $width, $output); 	$output = str_replace("###HEIGHT###", $height, $output);   $output = str_replace("###MINVER###", $minver, $output); 	if(strlen($initparams) > 0) {
    $initparams_parsed = str_replace("#", ",", $initparams);
    $paramHolder = str_replace("###INITPARAMS###", $initparams_parsed, $paramHolder);
    $output = str_replace("###PARAMHOLDER###", $paramHolder, $output);
  }
  else {
    $output = str_replace("###PARAMHOLDER###", "", $output);
  }
	$output .= "
" . substr($content, strpos($content, SILVERLIGHT_META_END, $found_pos)+1);
  return silverlight_the_content($output);
//return ($output);
}

musix

Aug 09
2009

MUSIX a project I’m involved in, was launched on TV and online campaign.

it’s so cool to see my work on TV.

virtual remote plugin update

Jul 30
2009

Virtual Remote 1.1 update released.

now you can edit the event code sent from the remote by pressing and holding the desired key for one second.

a dialog will pop and you will be able to edit the event code.

Get Adobe Flash player

Virtual Remote Plug-In for Firefox

Jul 12
2009

Download Virtual RemoteVirtual Remote integrates with Firefox to assist IPTV UI developemnt. Now you can run and debug web based IPTV applications on the PC.

The plgu-in is in development ,use the comments facilities in this post to send bug reports ,comments , remarks and thoughts .


Virtual Remote emulates remote controls key press events and sends them to the browser,

helping you develop & debug a web based IPTV solution on your PC.

The installation is quite simple go to the  Download page ,  install, restart , and open the plugin from the

tools menu and you are ready to go.

enjoy,

d.

remote and tools menu

HaaHa show @ DotNetRocks

Jun 30
2009

The most hilarious DotNetRocks ever,  my colleagues didn’t understand why i burst in lough while coding .

pure fun

download page

hello world

Jun 17
2009

Hi, my name is Daniel Cohen.I’m a technologist at heart, a curious person and a sharp developer.

I work as an independent consultant and architect working with Hi-Tech companies to build solid and efficient software system.My first love was javascript back in the day when html was practically domless, that was until he came across C# and the .net framework. you can see some of my works @ www.dnastudio.co.il and read my Hebrew ramblings @ http://blogs.microsoft.co.il/blogs/danielisimo