Posts

Not just Open Source, but Something a little more

For the most difficult parts of my career I have pushed for open source among my peers. The number one benfit being standardized code, a benefit for everyone involved. I've even drawn  a fine line for everyone I'm come across with to make it simple. If a user can see your code they can take it, so why not improve it with the help of others. Let others improve upon it or poke holes in it. I've also pointed out to nay sayers that it is a good idea not to make your code specific to an application's needs. Aboid sensitive information that can get tangled inside your logic. Separate it, mask and encrypt it do whatever you got to do. As for frontend code in the modern world, its like writting a book. Your core will be read by someone. If it's good enough people will repeat it. Which is what you should want, Just like books some of the pages are unnecessary or fill up the book with more context which can tie it down. Its on that idea why I adopted other people's code…

Aspnet MVC Cheatsheet

Probably the best place to start with this cheatsheet is with this blog itself. I have tons of articles under my tags "aspnet" and "aspnet-mvc" on this blog. Since aspnet is where I started in my career its probably the most important cheatsheet I should have ready. This article will always be on going...

Assigning and Setting Bound models
some of my notes here include javascript because so much of my code is, but you need to be aware how it ties in with the backend. Accessing Your Model's Data from a ControllerMicrosoft Workers Worry Most About Re-Org - Dice NewsUse View Models instead of FormCollection - Jaco PretoriusAssign Model property value from JavaScript valueMVC 3 form post and persisting model dataSetting property on the model object? (javascript)Controller without a form?Sending JSON to an ASP.NET MVC Action Method ArgumentJSON.stringify not converting array.object correctly (javascript)associative array to JSON (javascript)Working on JSON objects in…

Linux Cheatsheet

With everything going on with logicoma, I will be frequently updating this page so I can just jump back into whatever system tasks at hand. I should add this I'm going to keep this focused on ubuntu/debian. http://www.yolinux.com/TUTORIALS/LinuxTutorialAdditionalHardDrive.htmlhttp://www.cyberciti.biz/faq/linux-viewing-drive-partitions-with-fdisk-parted/X11 Forwarding using Putty on Windows - YouTubeStoragehttp://tldp.org/LDP/lame/LAME/linux-admin-made-easy/checking-storage-space.htmlhttps://www.cyberciti.biz/faq/linux-check-memory-usage Commandsfdisk -l mkdir ← a directoy of where to mount the disk mount ← mount a disk using /dev/[disk]
ln ← creates a link file from another
name ← use 'a' to get all the information on the server
rm /path/to/directory/*

https://askubuntu.com/questions/402589/the-following-packages-were-automatically-installed-and-are-no-longer-requiredhttps://serverfault.com/questions/413397/how-to-set-environment-variable-in-systemd-servicehttp://nginx.org/en/doc…

Javascript Cheatsheet

At times I do still just use pure javascript and nothing else because how small I want the project to be. As always more coming soon...
JavaScript best practices19+ JavaScript Shorthand Coding TechniquesBest way to find an item in a JavaScript array? - Stack OverflowReplace multiple whitespaces with single whitespace in JavaScript string - Stack Overflowjavascript - How can I disable highlighting in html or JS? - Stack Overflowjavascript - drag and drop, prevent awkward highlighting? - Stack OverflowBasic Json RequestUsing XMLHttpRequest Performance
   There is a lot of talking about how to test the real performance of javascript and for the most part I have no clue where to start as I write this. Hopefully that will change be the end, skip to it if you dont want to learn the process as well.
http://stackoverflow.com/questions/1003855/howto-benchmark-javascript-codeFun Example 
function DisplayQuestions() { var Questions = new Array(20); Questions[0] = "Question #1"; Qu…

EF6 Cheatsheet

Image

IIS Cheatsheet

Setting up a website in iis is pretty easy and its where I'm most comfortable doing my professionally work. However with newer frameworks I'm look outside of iis because of the non-window based servers. So this cheatsheet is even better because I'm sure it will be a long time before convince my peers to use linux.
Server Error: HTTP Error 500.19 - Internal Server ErrorASP.NET IIS Registration Tool (Aspnet_regiis.exe)How to Configure HTTP Access to SQL Server 2008 Analysis Services on IIS7Reverse Proxy with URL Rewrite v2 and Application Request RoutingSecurity & UsersWhat are all the user accounts for IIS/ASP.NET and how do they differ?Solutioniis 7 - IIS7 Permissions Overview - ApplicationPoolIdentityhttp://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.80).aspx IIS with Node (side note)
Installing and Running node.js applications within IIS on Windows



C++/C Cheatsheet