Showing posts from 2018

Bootstrap: Mobile Integer Input

Its comes to my attention that handling integers suck and probably as much for me as it does the users. Who's got time to plug in a number? In a lot of cases I've default to an text input instead of a integer type because I hate the way browsers display it. That side toggle doesn't work on mobile and isn't very intuitive. So instead I'm using these displays, a slider and a "input spinner"(not the name I would have given it but I'm going with it). I harolsve use cases for both styles of these inputs. The slider works great on mobile and in cases where the integer is small works to speed up input. The second is more of a fall back and works on almost everything.


Unity Editor freezing After Initial Start

For about three month now I've been working on a little project in unity3d. The project is simple I have a udp socket in c++ and I want to communicate with it in my game. Currently it works great going out to my server. I can see all the requests and the speed is awesome! However here comes the big issue, unity after its first run freezes. Hard nothing is responding and the editor is completely useless until I close it and open it back up. For two weeks I stopped programming because of this, it was a stopping point for me until I figured out what was happening. At first I thought it was the game and after doing some reading messed around with the settings. With my issue it had nothing to do with rending/lighting.
    It just happening to come to me last week after reading an article on threading. It was the last bit of code they gave as an example about proper closing a thread. Which got me thinking about my issue, I think unity is holding on to the upd connection and cause …

Not Autocomplete but Autofill

After a long process of rebuilding a login page and since the first time I rebuilt a login page which was way back in 20012 or so. I've learned that a great deal of things but one change still comes to mind. I ran into an issue with ios/ie/chrome browsers "auotfilling" user & passwords. This auto-fill doesn't happening with the autocomplete function but its a new features. One that I've seen but ignored at that point because I haven't mess around with it. After all is said and done I choice to now use any of the solutions in my notes. I have yet to find a solution that I like meaning one that isn't a workaround. With autocomplete its simple to just disable but until this features has a html equivalent I will not be fixing it. As the behavior is built in and based on the browser. Meaning the user has more control over it then I do.


Disabling Safari autofill on usernames and passwordsDisable auto correct in Safari text input…

Indeepth: Inheritance with the prototype chain

These notes are for none else but me, because I need them for a bigger project. No time to explain...C# and javascript are completely different worlds.

let f =function(){this.a =1;this.b =2;}let o =newf();// {a: 1, b: 2}
- you need the 'let' beause f.a will not exist.


Host ASP.NET Core on Linux with Nginx (Additional Notes)

I could submit this to the repo but like the half blood prince, I'm keeping all the good stuff for myself. Plus it would have to go through the proper channels and who's got time for that. Instead I'm just want to get back to working on my applications and handling multiple applications is time consuming.

Framework Issues
ran into issue where the frameworks were not the same on the linux box as my machine. However the errors were not helpful to figure this out.

Exporting Issues - I just keep forgetting the command and you can ignore all the linux based ones.
dotnet publish --configuration Release

Is there really any difference with builds for OS versions? From what I can tell no... They probably will or should just remove it. Make the build detect the os and if its going to be cross platform just work every anyway.

Aspnet 2.1 changing the port
using the environment variable…

Linux CLI: Tab Autocomplete broken

If your finding your command terminal acting weird like mine did, and can't seem to find out whats happening. Don't panic! Remember this wonder snippet.

set show-all-if-ambiguous on set show-all-if-unmodified on
Notes: Tab does not auto-complete in terminal

PostGreSql and EFcore: Cheatsheet

Postfix Cheatsheet

Updated As of 7/23/18

I'm still working on my own systems and postfix isn't easy to handle. So this article will go through multiple changes in the next year. Hopefully I will have a little more personal experience to add.

Working Dotnet 2.0 with Ubuntu 16.04

One of the bugs I ran into on my journey was not using the published version of my aspnet application but moving from 1.x to 2.0 of dotnet. I was already setup to use https but I don't think my nginx configs were the issue but instead the app not building a published build of the app. just use the publish command and everything worked as planned.

I'm very happy with my solution, I haven't found a lot of issue except the some of the issue that were related to version differences with 1.x/2.0. I believe I've found a way to simplify the tutorial provided in the Microsoft by using docker. Running docker no whatever port you need and then from there write the configs to nginx.

Updating to ParticleSystems In Unity3D

This article loosely based on a service I want created and hopefully will soon be published. I just thought it would be beneficial for some to know. Since I like to keep on top of things this is one of the many issue I run into when adapting other people's code. This is a huge jump from 2016 to the 2017 version of unity3d.


Using the correct enable property

Max and Min Particles
Seems to be gone

I believe the fields move to MinMaxCurve

Instead of this field on the particle system it is on the main module, so use someth…

Research on Certbot for IIS

If you don't know the days of paying for security is over! Certbot solves the age old program for being SSL compatible for all your sites. Since I've move out of the cloud, things haven't gotten easier but for securing my websites its a snap so I couldn't recommend certbot enough. However for my personal work with employers IIS is a must and that's where things get tricky.  Since I don't have the time I wanted to bring anyone wondering about this topic up to speed. Here's the forms and ticket issues related that I'm aware of, and hopefully get finish.


Theory & Practice of Data Cleaning

This is a topic that I found very interesting, however I find the industry's best practices to counterintuitive and in opposition of this very idea. In the near future I am making plans to attend multiple online classes pertaining in or around the subject, however I believe very little of it will be put into use professionally. Instead this is more for my own systems and business model. Since I'm limited by my hardware and the services I've created. Data backups need to be precise without question.

    An Example of this very issue, on a project sometime ago I built an application where the clients could upload image to update their profile. Simple enough however the system had no way of knowing if it was the same image or did any kind of file system clean up for images unattached to the profile. This part was left up to another developer, and wasn't a concern for the developer in regards to the sever's hard-drive space. The previous images in the system were u…

Mongodb Cheatsheet

This cheat sheet is based on the latest version of mongodb, which initial had setup and didn't encounter any problems. However that all changed when I was working remote and forgot I disabled the port no my network, rather than with the server. So I went pointing around where I didn't need to and ended up messing things up. The Best tutorial out there is of course on digital ocean for my setup on ubuntu 16.04, this articles isn't so much about getting setup. I just wanted to include it because I found myself looking back at it to see if I missed a step.

Now comes all the messed up things I found and had to deal with.
firewall - Port seems to be open, but connection refusedtry using in the bin_ip for the /etc/mongo.conftry sudo ufw disable and check to see if it works without the firewall (probably still wont but worth a shot), then just sudo ufw enable. Make sure port 27017 is open.Then check this linux - Connection refused to MongoDB errno 111
If you …