Skip to content

Instantly share code, notes, and snippets.

View shevtiawan's full-sized avatar

andrisetiawan shevtiawan

View GitHub Profile
- The future of electronic currency
http://blog.cryptographyengineering.com/2012/05/future-of-electronic-currency.html?m=1
- e-cash
http://www.anderson.ucla.edu/faculty/jason.frand/teacher/technologies/goshtigian/index.htm
- VarietyCash: a Multi-purpose Electronic Payment System
http://cseweb.ucsd.edu/~mihir/papers/vc.pdf
- E-Money (That's What I Want)
@shevtiawan
shevtiawan / appconfig.xml
Created May 27, 2013 09:46
Konfigurasi wcf client
<system.serviceModel>
<services>
<service name="Service">
<endpoint
address=""
binding="webHttpBinding" bindingConfiguration="FileTransferServicesBinding"
contract="IService"/>
</service>
</services>
<bindings>
@shevtiawan
shevtiawan / instal_IIS_component.txt
Created May 14, 2013 10:14
Installing IIS Component
aspnet_regiis.exe is located in <WINDIR>\Microsoft.NET\Framework\v4.0.30319\
e.g.: c:\Windows\Microsoft.NET\Framework\v4.0.30319\
In a standard command prompt, cd to that folder and run "aspnet_regiis.exe -i"
@shevtiawan
shevtiawan / jumlah_minutiae.txt
Created May 9, 2013 04:45
Biological Foundations for Forensic Identifications Based on Fingerprints
Biological Foundations for Forensic Identifications Based on Fingerprints
by J Dankmeijer ; J M Waltman ; A G DeWilde
The results of an investigation of the biological minutiae necessary to identify fingerprints are presented. The formerly assumed average minutiae count is questioned and accompanying factors recognized.
The fingerprint patterns of 100 Dutch males were investigated. Prints were lifted from all 10 fingers of the subjects, and minutiae were counted within the cells of a superimposed 20 x 20 millimeter grid. Few fingers were found to have a total of more than 100 minutiae the traditionally assumed average. The average minutiae found on right hands ranged between 65 and 69; average minutiae on the left hand ranged between 75, and 79. In many cases, however, the total number of minutiae per finger was below 75 and the range of this count was between 35 and 129. The number of minutiae varied by the type of fingerprint pattern -- loops, arches, and whorls. The number of minutiae present was also de
@shevtiawan
shevtiawan / string_to_byte_vice_versa.cs
Created April 17, 2013 10:33
String to byte. Vice versa.
static byte[] GetBytes(string str)
{
byte[] bytes = new byte[str.Length * sizeof(char)];
System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length);
return bytes;
}
static string GetString(byte[] bytes)
{
char[] chars = new char[bytes.Length / sizeof(char)];
@shevtiawan
shevtiawan / md5.cs
Created April 16, 2013 07:44
MD5 encryption C# implementation
using System;
using System.Security.Cryptography;
using System.Text;
namespace MD5Sample
{
class Program
{
static void Main(string[] args)
{
@shevtiawan
shevtiawan / webclient.cs
Created April 14, 2013 12:19
download web content
WebClient client = new WebClient();
string downloadString = client.DownloadString("http://www.google.com");
@shevtiawan
shevtiawan / datetime.cs
Created March 21, 2013 04:52
Datetime to string. String to datetime.
// String to DateTime
String MyString;
MyString = "1999-09-01 21:34 PM";
//MyString = "1999-09-01 21:34 p.m."; //Depends on your regional settings
DateTime MyDateTime;
MyDateTime = new DateTime();
MyDateTime = DateTime.ParseExact(MyString, "yyyy-MM-dd HH:mm tt",null);
//DateTime to String
@shevtiawan
shevtiawan / number_of_tweets_of_links.txt
Created March 16, 2013 12:43
How can I get the number of Tweets a link has using the Twitter API?
@shevtiawan
shevtiawan / Converter.cs
Created March 14, 2013 06:58
Image to byte converter. Vice versa.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Drawing;
using System.ComponentModel;
namespace SmartNucleus
{
public class Converter