Oskar Gewalli's blog articles

0
comment
on 10/2/2011 12:04 PM
Inspired by the minimalists I tried this out on the arduino: int speakerPin = 11; void outp(byte value) {     analogWrite(speakerPin, value); delayMicroseconds(200); } void setup() {     pinMode(speakerPin, OUTPUT);     // Set up Timer 2 to do pulse width modulation on the speaker     // pin.     // Use internal clock (datasheet p.160)     ASSR &= ~(_BV(EXCLK) | _BV(AS2));     // Set fast PWM mode  (p.157)     TCCR2A |= _BV(WGM21) | _BV(WGM20);     TCCR2B &= ~_BV(WGM22);     // Do non-inverting PWM on pin [...]
>> Read the full article
.
0
comment
on 9/26/2011 11:58 AM
The question has an answer: knockout js vs backbone js But the obvious question has not been answered. Why are they comparing apples and oranges? It’s like comparing ext to jQuery.
>> Read the full article
.
0
comment
on 9/25/2011 12:30 PM
Dispose In order to release unmanaged resources you need to use or implement the dispose method. Unmanaged resource So what is an unmanaged resource? It is simply resources that the CLR does not manage for you. For example: File streams, database connections, P/Invoked api:s. How to implement Dispose? Msdn gives a rather clear answer. You need to implement the IDisposable interface. If you have implemented a finalizer as well then you need to add a call to GC.SuppressFinalize inside the dispose [...]
>> Read the full article
.
0
comment
on 9/25/2011 12:30 PM
Dispose In order to release unmanaged resources you need to use or implement the dispose method. Unmanaged resource So what is an unmanaged resource? It is simply resources that the CLR does not manage for you. For example: File streams, database connections, P/Invoked api:s. How to implement Dispose? Msdn gives a rather clear answer. You need to implement the IDisposable interface. If you have implemented a finalizer as well then you need to add a call to GC.SuppressFinalize inside the dispose [...]
>> Read the full article
.
0
comment
on 9/22/2011 1:16 PM
I’ve not had a need for any good date library until now. There seems to be one that most commonly used: datejs. The problem with this library is that it extends the native Date object. There is a relatively unknown repository on github (only a few watch and forks).
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper