by Bar Zohan
15. December 2011 19:04
Problem Definition:
If anyhow you'd like to access google web services (like Geocoding, Directions api etc.) inside a Silverlight browser application, when you use a webclient do the http request to the service you are going to get a security exception.
This is caused by the cross-domain-pol...
[More]
by Bar Zohan
16. June 2011 20:06
Using nolock select queries with entity framework
[More]
by Bar Zohan
1. June 2011 23:55
rooting android, unclosable android application, deactivate home key
[More]
by Bar Zohan
20. April 2011 17:49
Hashing algorithms in java
[More]
by Bar Zohan
16. March 2011 02:42
Uploading a file from an android device to a web page.
[More]
by Bar Zohan
15. February 2011 23:37
[code:c#]
AssemblyName assemblyName = new AssemblyName();
assemblyName.Name = "newAssemblyname";
AssemblyBuilder assemblyBui...
[More]
by Bar Zohan
11. November 2010 23:04
package com.loodos.Outrun;
import java.io.InputStream;
public abstract class HttpEventListener {
public abstract void OnHttpRequestFinished(InputStream is);
public abstract void OnHttpRequestError();
}
HttpRequest.java
[code:c#...
[More]
by Bar Zohan
2. November 2010 02:36
Step 1 - Getting your MD5 Fingerprint
Use the "Keytool.exe" that can be located inside "C:\Program Files\Java\<YOUR INSTALLED JDK DIR>\bin"
Use the following command on "Keytool.exe";
keytool.exe -list -alias androiddebugkey -keystore "C:\Users\<your windows user>\.android\debug.keyst...
[More]
by Bar Zohan
29. October 2010 02:25
Some pointers and unsafe code should be used (sorry there is no other way for processing pixels). Function takes file path as parameter "path" and returns a Bitmap instance of the raw formatted image.
As raw image format does not provide height and width info of the image contained, you shoul...
[More]
by Bar Zohan
26. October 2010 22:41
Beside parsing all other object types, DateTime parsing from JSON had been a great headache. As I did not need it for the current project I've just ignored DateTime typed attributes of JSON [pi.PropertyType != typeof(DateTime) :)]
[code:c#]
using System;using System.Net;using System.Windows;using ...
[More]
by Bar Zohan
26. October 2010 02:37
The following code gives you the ability to use images and different colored text together inside a textblock-like control.
XAML:
[code:xml]
<StackPanel x:Class="SilverlightUI.ChatText" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  ...
[More]
by Bar Zohan
26. October 2010 02:31
[code:c#]
public static double MeasureString(string s, FontFamily fontFamily, int fontSize) { TextBlock t = new TextBlock(); ...
[More]
by Bar Zohan
10. June 2010 01:28
Huffman Coding - C++
[More]
by Bar Zohan
21. April 2010 23:07
Compressing strings using c#
[More]
by Bar Zohan
16. April 2010 23:55
Here you can download the OpenNETCF Desktop Communication Library which includes all necessary classes to use activesync to connect and transfer files to/from a mobile device.
Add the project to your solution. Add a reference to the OpenNETCF Project you've just added inside the project you want t...
[More]
by Bar Zohan
16. April 2010 23:32
If you have a mobile device that has an entegrated gps and uses windows mobile as operating system you can access the gps data very simply using a wrapper library that handles gps operations.
First download this wrapper library.
Microsoft.WindowsMobile.Samples.Location.rar (7.19 kb)
Add a referen...
[More]
by Bar Zohan
6. April 2010 00:48
Writing an asp.net web service function which handles file upload.
[More]
by Bar Zohan
5. April 2010 23:46
Storing An Object In Sequential File, C++
[More]
by Bar Zohan
5. April 2010 23:34
A dynamic sized array class in c++
[More]
by Bar Zohan
5. April 2010 23:20
Writing a linked list in c++
[More]