Posts

Showing posts from 2017

Removing the Cloud

Image
Can't remember if I've talked about with this before in my blog, it's been a while. Mainly because I've been working towards this idea. Rather than building a social network I've instead moved on to doing the whole cloud myself. Removing Google, Amazon, and Microsoft from my life, I would encourage others but that's wishful thinking. Instead I'm just doing my own thing. Got myself a server and moved all my applications out of the cloud. Of course some of the stuff I use are hard to move like this blog but for everything else I'm completely independent.



   For a lot of people this might seem a strange time to do this, with cloud computing becoming cheaper and easier. I see the writing on the wall. Obvious reason, my competitive business model, with the big three companies. Its becoming more important for me to move out of the cloud. So even if I wasn't already worried or paranoid as some might call it about my code. I'm already competing at some…

Accessibility Designing

One of the standards that I'm adapting on my own with real interest is handling accessibility for all my major applications. I like to think of printing last as a concern. I think the best practice that I've come up with helping me get in the habit is during the initial color design. Since I may or may not be slight color blind and hear way to often my colors are too light or don't match. I think matching part just comes from the fact I don't understand fashion. Which is why I was the same outfit, you can't mess up with khakis. In other words getting the habit is much the same with my applications with a little variety here and there. I'm not going for anything bold just modern, so here are the tools I use.

Tools
Contrast Ratio: Easily calculate color contrast ratios. Passing WCAG was never this easy!Accessibility Developer Tools - Chrome Web Storejust a bit of caution don't solely depend on this, just like the mobile view in chrome

Bugging Out About Code

Its one battle after another battle and not one you can always win. I've watched good ideas die before they even had a chance but even worse bad ideas take over development. Its a difficult thing to watch. I think the most important things on how to approaching this issue comes down to these points.
Encouraging & passinate work environment.people who don't understand will try and want to here.Strong co-worker relationshipworking alone is nice but teams should come together on certain projects or piceces of code.Clear Objective goalsIf you can't get support from your team/manager then use deadlines to beat the competition. It gets harder at this point to not just complain about things or talk about my experience. Whic think could give some insight. Instead I'll just follow my last point and and the article with this. Passion is never a negative and there's always another problem to be solve so don't burn yourself out.

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…

Android Cheatsheet

Angular Cheatsheet

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

C++/C Cheatsheet

Sql Cheatsheet

After my first job I realized the importance of learning a bit about it all. None should be in the dark when it comes to their website. I might not be a master of relational databases but give me a mongodb or reddis and even a firebase database any day. Still some projects are dependent on mysql and etc so I have enough info to help me move forward. Nothing I had more than a dba or team who locks me out. Throw exception from SQL Server function to stored procedure - Stack OverflowHOW TO: Return Errors and Warnings from a SQL Server Stored Procedure in ADO.NETRAISERROR (Transact-SQL)SQL server management studio local database connection error in windows 7Visual Studio Database Guide - HomeHow to: Use Source Control with SQL Server Management Studiomysql - Sending multiple data parameters with jQuery AJAXsql server - Inserting multiple rows in a single SQL query?LuaSQL: Database connectivity for the Lua programming languageDECLARE @local_variable (Transact-SQL)Package/Publish SQL Tab, P…

Certificate Providers & ISPs

Jquery Cheatsheet

Time to time I still use jquery and honestly don't have too many complaints about using jquery over more modern frameworks. Either way keep coming back to this page for reminders or small bugs in my code that I forget to add. I think the best approach for anyone is to create plugins for their needs and just keep expending around that.
Javascript - Event orderlightbox for images, videos, YouTube, iframes, ajaxdeferred.always() | jQuery API Documentation.trigger() | jQuery API DocumentationjQuery advantages/differences in .trigger() vs .click() - Stack OverflowjQuery BlockUI PluginHow to detect pressing enter on keyboard using jquery? - Stack Overflowjquery - Last element in .each() set - Stack OverflowjQuery event.preventDefault() not working in Firefox (JSFiddle included)jquery - Checking to see if AJAX response is empty and other problemsjavascript - jQuery's $(form).submit() not firing for IE only (MVC3 app)javascript - How can I refresh a page with jQuery?http://jsfiddle.ne…

Travis-Ci & Saucelabs Environment Variables

Firebase's example on how to auto deploy with Travis shows us a more secure way rather than how I did. fassetar/jquery-maskmoney if I can create a similar approach with this project I would feel better about the security.

https://github.com/fassetar/site/blob/master/.travis.ymlhttps://github.com/fassetar/jquery-maskmoney/blob/master/.travis.ymlhttps://docs.travis-ci.com/user/environment-variables/https://docs.travis-ci.com/user/encryption-keys/https://saucelabs.com/platformsMore coming soon...

Presteps to Making My Own CMS Part II

Before I try to create my own cms I looked recreating  some middlware for blogger. To be clear I didn't create my own database layer simple used Oauth and the blogger api's with a re-skinned UI/UX using Material Angular. I also created some tools for myself awhile I'm using the app and started creating a backup on github process like I talked about a few years back.


http://stackoverflow.com/questions/31915099/how-do-i-get-an-instance-of-iappbuilder-elsewhere-in-my-asp-net-mvc-5-2-3-applic 
http://stackoverflow.com/questions/32501238/how-exactly-iappbuilder-createperowincontextt-should-be-used/36044219#36044219 
http://stackoverflow.com/questions/19669125/send-receive-email-with-google-oauth-2-and-asp-net-mvc
https://www.asp.net/downloads/starter-kits/blog-engine

Powershell Cheatsheet

Make Promises to Your Work Not Your Employer

Image
I've learned a lot in the past x amount years or whatever I'm not keeping track anymore. For the most part I've learned that I've been doing works. On that part I think I've made some good decisions. For the things I've got wrong I believe its just a matter of how I approached them. Mostly so I believe it was a lack of confident that played into other people's favor. Recently I've no longer allowed this to be an acceptable approach for people to take as my decisions are final. It is just as easy for me to move on rather than work around something in a project because of another developer's difficultly to agree with me.  Regardless how people see me or if they understand my method I only have one bit of wisdom to pass on to next generation. Which is lazy people will lie and will continue to lie to you regardless if you have evidence of better way. For years its confused me on why lazy people sell themselves better and its because its a simpler ap…

Git Cheatsheet

I'm always handling the code wherever I go so maybe its time I shared my notes. I'm really surprised but I should with my experience how many developers don't know git.
msysgit - git: 'credential-cache' is not a git commandHow do I update the password for Git?How do you attach a new pull request to an existing issue on github Squash commits!
I'm always forgetting this and its really simple to do if you remember both commands.

git rebase -i xxxxxxxxxxxxxxxx
git push --force origin master "where xxxxxxxxxx is the SHA of the commit upto which I've to squash"


Get username

git config user.nameChange Email
git config user.emailCaching Password on Windows.

git config --global credential.helper wincred

More coming soon...