adhocgeek.com
alchemy « Ad hoc Geek
http://www.adhocgeek.com/tag/alchemy
Approaching geekery in an ad hoc and improvisational manner. Binomial Option Pricing with Alchemy. Yet another version of the binomial option pricing algorithm (sorry), but this time I’m using Alchemy. I have to admit to not entirely understanding how Alchemy works, but I understand enough C to write a simple pricer in it. Here’s the relevant C-code (which is, in part, copied from Mike Chambers’. Stringecho.c sample) :. Header file for AS3 interop APIs. AS3 Val getPrice (. AS3 Val args ). AS3 Number (.
adhocgeek.com
covariance « Ad hoc Geek
http://www.adhocgeek.com/tag/covariance
Approaching geekery in an ad hoc and improvisational manner. VAR, COVAR and COREL in Actionscript. Is a little daunting if you’ve never really thought about what these functions entail (or have forgotten), but essentially it boils down to this :. Correlation coeff between two random variables X and Y is defined as :. Correlation(X,Y) = covar(X,Y)/(sqrt(Var(X) * sqrt(Var(Y) ). Var(X) = covar(X,X);. Covar(X,Y) = E( X-xm)(Y-ym) ; where xm, ym are the population means. X = Y ). Xm : average (. Total = (.
adhocgeek.com
batch script « Ad hoc Geek
http://www.adhocgeek.com/tag/batch-script
Approaching geekery in an ad hoc and improvisational manner. Dtutil : Importing SSIS packages via batch scripting. Just a quick and simple task here. I got fed up of manually importing dtsx files into our SSIS file store so I looked into a scripting solution. This relies entirely on dtutil. Which is installed with SSIS. Written by admin in: Geek. Windows command shell fun. Only for slightly bizarre/masochistic senses of fun). I had discovered over the last few months that bits of my collection disappeare...
adhocgeek.com
Geek « Ad hoc Geek
http://www.adhocgeek.com/category/geek
Approaching geekery in an ad hoc and improvisational manner. Useful to run something like this before you drop columns or update with better named default constraints. Set @table = 'MyTableName'. WHILE EXISTS(select * from sys.default constraints where parent object id = OBJECT ID(@table). Select @sql = 'ALTER TABLE ' @table ' DROP CONSTRAINT ' name. From sys.default constraints. Where parent object id = OBJECT ID(@table). Exec sp executesql @sql. Written by admin in: Geek. The reason for this becomes cl...
adhocgeek.com
cmd « Ad hoc Geek
http://www.adhocgeek.com/tag/cmd
Approaching geekery in an ad hoc and improvisational manner. Windows command shell fun. Only for slightly bizarre/masochistic senses of fun). I’ve been out on a client site for a month or two and haven’t had time to update a lot. Now that I’m back in the office I decided to ease myself into things slowly by going through my usual backup routine and incidentally tidying up my music collection. S /b *.ogg. You can issue these as separate commands if you want, all that changes is the “% a” becom...Assuming ...
adhocgeek.com
Ad hoc Geek
http://www.adhocgeek.com/page/2
Approaching geekery in an ad hoc and improvisational manner. Rolling back a ClickOnce application. So, very simply, let’s say you have a publish folder with these files :. Example contents of the ClickOnce deployment folder. The *application file is the application manifest, which defines, among other things, the current version of the application and where its downloadable files are within the Application Files folder. If you drill down into that folder you might see a list of folders as in figure 2.
adhocgeek.com
dates « Ad hoc Geek
http://www.adhocgeek.com/tag/dates
Approaching geekery in an ad hoc and improvisational manner. Hate the Actionscript Date class. Mostly because of the way it deals with local time offsets. When I create a new date instance, I generally don’t care about the local time zone settings. I’ll care about them when I have to combine it with other dates, sure, but at the time I set that value I want it to. That value. The AS date class thinks otherwise. To do that, you have to take this approach :. There’s no need for a superfluous DateForm...
adhocgeek.com
algorithms « Ad hoc Geek
http://www.adhocgeek.com/tag/algorithms
Approaching geekery in an ad hoc and improvisational manner. Binomial Option Pricing with Alchemy. Yet another version of the binomial option pricing algorithm (sorry), but this time I’m using Alchemy. I have to admit to not entirely understanding how Alchemy works, but I understand enough C to write a simple pricer in it. Here’s the relevant C-code (which is, in part, copied from Mike Chambers’. Stringecho.c sample) :. Header file for AS3 interop APIs. AS3 Val getPrice (. AS3 Val args ). AS3 Number (.
adhocgeek.com
February « 2014 « Ad hoc Geek
http://www.adhocgeek.com/2014/02
Approaching geekery in an ad hoc and improvisational manner. Useful to run something like this before you drop columns or update with better named default constraints. Set @table = 'MyTableName'. WHILE EXISTS(select * from sys.default constraints where parent object id = OBJECT ID(@table). Select @sql = 'ALTER TABLE ' @table ' DROP CONSTRAINT ' name. From sys.default constraints. Where parent object id = OBJECT ID(@table). Exec sp executesql @sql. Written by admin in: Geek. All entries, chronologically.
aiglemedia.com
Christmas 3D
http://aiglemedia.com/blog/flash/christmas-3d
A man of ingenuity and superior talent, a genius. December 22, 2011. Animation created for Christmas in PV3D. Very simple and clean with some cool particle text effect. Text is dynamically loaded from xml. Add unlimited text messages in XML. Credits and thanks to. PV3D Project : PV3D Website. BetweenAS3 Tween Project : BetweenAS3 Website. For any kind of issues please contact me through my profile page or email me at support@aiglemedia.com. Contact admin to purchase this script. March 3, 2012 at 9:57 PM.