Posts

Showing posts with the label Cheatsheet

Bootstrap Cheatsheet

There are many things I wouldn't call myself a master of but bootstrap is one of them. I never seem to have difficultly with css but do forget a few things cause they aren't really all that important ! Haha css joke... https://stackoverflow.com/questions/11425115/css-media-queries-for-pixel-density-moz-min-device-pixel-ratio-vs-min-moz-de https://stackoverflow.com/questions/23700941/bootstrap-full-responsive-navbar-with-logo-or-brand-name-text https://stackoverflow.com/questions/8805208/css-min-width-and-max-width-and-flexible-layout Positions Learn CSS Positioning in Ten Steps: position static relative absolute float CSS z-index property CSS Positioning Free responsive html5 CSS website templates, create your own free website How to Center Anything with CSS 50+ Nice Clean CSS Tab-Based Navigation Scripts Table centering using CSS or HTML: theodorakis.net HTML5 Simplequiz 6: Zeldman’s fat footer | HTML5 Doctor CSSTidy https://css-tricks.com/multi

CSharp Cheatsheet

Owin & Katana An Overview of Project Katana | Microsoft Docs Understanding OWIN and Katana - CodeProject Data Access ASP.NET Data Access - Recommended Resources | Microsoft Docs async and parallel programming with .NET 4+ (TPL) String Modifying http://stackoverflow.com/questions/444798/case-insensitive-containsstring Entity Framework c# - Dynamic filtering and sorting with Entity Framework entity framework - Code-first vs Model/Database-first Entity Framework Code-Based Configuration (EF6 onwards) Performance Improving http://stackoverflow.com/questions/30816496/why-do-local-variables-require-initialization-but-fields-do-not c# - Will using 'var' affect performance? http://blog.slaks.net/2015-01-12/linq-count-considered-occasionally-harmful Miscellaneous: (will clean up later) https://msdn.microsoft.com/en-us/library/bb964711.aspx?f=255&MSPPError=-2147217396 concepts https://stackoverflow.com/questions/2220134/displaying-a-pdf-file-from-winf

Windows via Command-Line Cheatsheet

I think if you use a server it should be with minimal graphical environments, this protects you and the clients from simple mistakes in my experience. Commands are easier to repeat. Programming and process power are limited to what matters. A developer's focus can't be any clearer. So let's stop using windows like a desktop please... Initial Goals disable all processes using the UI disable remote connections if it use a terminal. look into security bridge the gap into windows vs. linux basic commands. Notes: Coming soon

Docker Cheatsheet

More coming soon... trying to get ahead but starting off creating all my cheatsheets so I don't have work at creating multiple notes for specific problems I run into. Notes: https://stackoverflow.com/questions/42365336/how-to-stop-docker http://blog.baudson.de/blog/stop-and-remove-all-docker-containers-and-images https://mtarnawa.org/2017/11/10/running-secured-private-docker-registry-nginx-proxy-letsencrypt/

PostGreSql and EFcore: Cheatsheet

Rather then writing a separate article on Postgresql and another one with Efcore, I'll place my notes here. I currently only seem myself using it with EFcore and instead using mongodb with nodejs. Redis is still on my list of things to use more extensively in the future. https://wiki.postgresql.org/wiki/First_steps https://stackoverflow.com/questions/10845998/i-forgot-the-password-i-entered-during-postgres-installation https://stackoverflow.com/questions/40614466/postgresql-9-5-allow-remote-connections-without-editing-pg-hba-conf-file https://www.thegeekstuff.com/2014/02/enable-remote-postgresql-connection/ https://stackoverflow.com/questions/18664074/getting-error-peer-authentication-failed-for-user-postgres-when-trying-to-ge http://www.postgresqltutorial.com/postgresql-insert/ https://stackoverflow.com/questions/10335561/use-database-name-command-in-postgresql https://dba.stackexchange.com/questions/1285/how-do-i-list-all-databases-and-tables-using-psql https://stacko

Android Cheatsheet

The best part about android now days is how easy firebase makes things. I could probably just get rid of all my notes and just list off all the firebase examples I used in the past but I think in the future I will have a few projects non-firebase. http://www.gradle.org/ http://stackoverflow.com/questions/16718026/how-to-build-an-android-library-with-android-studio-and-gradle http://stackoverflow.com/questions/26554996/change-toolbar-color-in-appcompat-21 http://stackoverflow.com/questions/5861661/actionbar-text-color http://stackoverflow.com/questions/13724007/how-to-send-notifications-from-a-website-to-an-android-app https://github.com/jreyes/UdacityXYZReader http://www.recursiverobot.com/post/60331340133/very-simple-example-of-a-loader-and-loadermanager http://stackoverflow.com/questions/22821139/how-should-i-track-fragments-in-google-analytics-v4 http://stackoverflow.com/questions/25381435/unconditional-layout-inflation-from-view-adapter-should-use-view-holder-patter ht

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 Controller Microsoft Workers Worry Most About Re-Org - Dice News Use View Models instead of FormCollection - Jaco Pretorius Assign Model property value from JavaScript value MVC 3 form post and persisting model data Setting property on the model object? (javascript) Controller without a form? Sending JSON to an ASP.NET MVC Action Method Argument JSON.stringify not converting array.object correctly (javascript) associative array to JSON (javascri

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.html http://www.cyberciti.biz/faq/linux-viewing-drive-partitions-with-fdisk-parted/ X11 Forwarding using Putty on Windows - YouTube Storage http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/checking-storage-space.html https://www.cyberciti.biz/faq/linux-check-memory-usage https://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port Commands fdisk -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-automatical

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 practices 19+ JavaScript Shorthand Coding Techniques Best way to find an item in a JavaScript array? - Stack Overflow Replace multiple whitespaces with single whitespace in JavaScript string - Stack Overflow javascript - How can I disable highlighting in html or JS? - Stack Overflow javascript - drag and drop, prevent awkward highlighting? - Stack Overflow Basic Json Request Using 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-code Fun Example  function DisplayQuestions() { var Questions = new Array(20); Questions[

EF6 Cheatsheet

Image
When I was first learning EF I tried using model first however migrations and the setup to handle it was too buggy. I'm sure I could have gotten it in time but I've learned right way the importance of being a good dba. Performance Considerations for EF 4, 5, and 6 Entity Framework - Entity Framework 6: The Ninja Edition Best practices to improve Entity Framework performance | InfoWorld Tips to improve Entity Framework Performance EntityFramework Performance and AutoDetectChanges RoleEntryPoint Class (Microsoft.WindowsAzure.ServiceRuntime) <sessionState> Element using Statement (C# Reference) More coming soon

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 Error ASP.NET IIS Registration Tool (Aspnet_regiis.exe) How to Configure HTTP Access to SQL Server 2008 Analysis Services on IIS7 Reverse Proxy with URL Rewrite v2 and Application Request Routing Security & Users What are all the user accounts for IIS/ASP.NET and how do they differ? Solution iis 7 - IIS7 Permissions Overview - ApplicationPoolIdentity http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.80).aspx ssl - IIS process cannot access file in use - Stack Overflow Side note Installing and Running node.js applications within IIS on Windows Run IIS + ASP.NET on Windows 10 with

C++/C Cheatsheet

I really should have more notes on this but I haven't touched c++ this year. Last year I had more projects to help this but I've put them off until I finish a few projects using python. Beep your PC speaker in linux » LinuxPlayer | LinuxPlayer UNIX programming examples The GNU C Library Beep for Linux and Windows Linux Signals – Example C Program to Catch Signals (SIGINT, SIGKILL, SIGSTOP, etc.) The GNU C Library - Table of Contents system - C++ Reference https://stackoverflow.com/questions/3878303/c-udp-socket-port-multiplexing Other Notes SLIDE Pipeline Assignment 5 OpenGL Mathematics Generalized linear model Data Type (GLSL) - OpenGL.org opengl - Rotate an object given only by its points? http://www.boost.org/doc/libs/1_39_0/libs/smart_ptr/scoped_ptr.htm

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 Overflow HOW TO: Return Errors and Warnings from a SQL Server Stored Procedure in ADO.NET RAISERROR (Transact-SQL) SQL server management studio local database connection error in windows 7 Visual Studio Database Guide - Home How to: Use Source Control with SQL Server Management Studio mysql - Sending multiple data parameters with jQuery AJAX sql server - Inserting multiple rows in a single SQL query? LuaSQL: Database connectivity for the Lua programming language DECLARE @local_variable (Transact-SQL) Pa

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 order lightbox for images, videos, YouTube, iframes, ajax deferred.always() | jQuery API Documentation .trigger() | jQuery API Documentation jQuery advantages/differences in .trigger() vs .click() - Stack Overflow jQuery BlockUI Plugin How to detect pressing enter on keyboard using jquery? - Stack Overflow jquery - Last element in .each() set - Stack Overflow jQuery event.preventDefault() not working in Firefox (JSFiddle included) jquery - Checking to see if AJAX response is empty and other problems javascript - jQuery's $(form).submit() not firing for IE only (MVC3 app) javascript - How can I refresh a page with

Powershell Cheatsheet

   One of the things that I have been getting use to is powershell, I'm not a server administrator.  Or at least if I'm going to be one I prefer linux. Most of my server are and I'm going to have a update here once I get my lab setup. For now this is how I manage my job and correct the systems that have gone wild. http://www.anotherchris.net/misc/starting-and-stopping-all-iis-sites-in-powershell/ http://stackoverflow.com/a/21674873/1265036 https://social.technet.microsoft.com/Forums/windows/en-US/be3afe83-4a7e-48a0-b2e7-95fd081a7571/login-to-website-using-powershell?forum=winserverpowershell http://stackoverflow.com/a/25035181/1265036 http://stackoverflow.com/questions/15528492/display-all-sites-and-bindings-in-powershell https://stackoverflow.com/questions/12789516/powershell-download-files-from-url-that-does-not-include-file-name-in-the-ur https://stackoverflow.com/questions/6204003/kill-a-process-by-looking-up-the-port-being-used-by-it-from-a-bat https://sta

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 command How 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.name Change Email git config user.email Caching Password on Windows. git config --global credential.helper wincred More coming soon...

Popular posts from this blog

UI-Bootstrap Collapsible Sticky Footer

Installing Windows on Acer chromebook 15 cb3-532

Aspetcore: NLog with Postgresql