All Posts By

Israel

A Nicer Custom FISH Shell Prompt

Over the past couple years Fish has really become my favorite go to shell. At the end of the day I think most people fall into either the bash, fish, or zsh shell camps. The truth is that while many of the zsh fans argue that any interesting feature eventually makes it into the shell, the honest truth is that all that extensibility actually works against it. Most definitely bash is fine for most things, but fish is clearly superior when it comes to just having an “out-of-the-box” experience. This especially includes the advanced type of completion it offers. Yes you can get anything you want in zsh, just keep it updated and modify it, but that just gets out of hand at times.

As for fish, it suffers from this problem as well when you “want to go off the reservation”. However, thankfully, that’s largely unnecessary for the basic “goodies”. However, one thing I do like is how you can basically “trade” functionality (which even aliases fall into this category). The prompt for the shell is no different and so you can just copypasta this into a file and drop into your ~/.config/fish/functions/ directory.

Add Functionality to Button or Call Function with Button in Unity 5

With all of the changes to how Unity operates with even basics like Buttons, its easy to read deprecated information that just won’t work in your new Unity 5 (5.5 or 5.6+) projects. It really seems like the major wave of changes started occurring around 4.7, and what happened to how we used to make “buttons” with OnClick() functions or whatever.

However, even now, I still see a lot of misinformation that does actually work, but its the wrong way to do it, and can only lead to confusion or problematic behavior down the road. It is surprisingly easy to do button functionality, and I’ll try to explain each part as I go so you understand the mechanics behind what’s going on.

So we’ll roll with a simple and easy example, doing a step-by-step on how to make make a proper quit button.

1. We’ll be creating a script to attach the button.

2. Then we’ll be adding a call to a function in this script, using the built-in OnClick() list in the inspector.

UI Image Wont Stretch Problem in Unity 5

There’s a common problem that those new to the basic UI system in Unity have when it comes to properly stretching Images or Raw Images across the screen inside the Canvas. This can also happen even with other UI objects like the Panels. While the stretch functionality under Rect Transform in the Inspector is one the absolute greatest things in the UI toolset, it does unfortunately suffer from some un-intuitiveness.

The reason that probably led you here is that you’ve used the stretch mechanism before, perhaps many times before, but for some reason its just not working this time and its driving you crazy, right? Never fear!

Implementing Multiple Canvas Groups in Unity 5

 

There is often confusion about how to implement canvas groups in Unity 5. The documentation makes it fairly plain what canvas groups are, but doesn’t help so much on just how to use them. This confusion leads to people asking about creating multiple canvases (which is actually possible to do in Unity 5+).

The multiple canvas solution is simply the wrong way to go about implementing multiple canvas groups however. It shows a lack of understanding on how you can use this UI feature. Now, I do want to make it clear that I’ve noted others (including myself) managing to use multiple canvases (lightly) in a scene, without any seemingly majot detriment to performance. This is keeping in mind that performance is basically the primary reason touted as to why its best sticking to a single Canvas in a scene (the other reason being organization).

So, there are reasons (not relating to Canvas Groups) as to why you’d want to use multiple canvases, but I won’t be covering that here this time.

Distorted or Skewed Screen During Linux Install from Grub

I came across a strange problem when recently installing Linux to an older Laptop model that I hadn’t seen in many, many years. While the installation media would boot up fine into the actual GRUB2 menu, any decision to install the Linux distribution (text or graphical) after that would result in the screen skewing/distorting itself in a way so that I could tell there was text or a window up on the screen, but I couldn’t really see much more than that, with the resolution appearing to be out of control and everything shifted at a severe slant.

DeVry Online vs Penn State World Campus

Having taken online courses for both Universities, I’ve come to have a greater appreciation for “online learning”. While having only taken undergraduate courses at DeVry, and graduate classes at Penn State, the same systems are used regardless of the program or level of degree being pursued.

DeVry recently overhauled their online system, making it more mobile friendly around the late 2015 to early 2016 semesters.

Disable Middle Click Scrolling in Windows or Chrome

What actually brought you here is likely a recent update or you’ve switched over to a different machine.

Then when you’ve tried to middle-click on a link (to open up that link in a separate and new tab) you are instead met with the curiously frustrating scroll icon, to your utter dismay.

Never fear!

0day Exploit – Red Pill Enterprise Linux Release 2 Sheeva Update 4

It looks like the security patch department for Red Pill is unable to keep up with the bleeding edge cracker groups producing 0day exploits for their elite Enterprise edition. This operating system is the favored goto OS for large umbrella corporations like the Orochi Group.

An anonymous hacker group has posted up the exploit onto pastebin, and can be easily accessed and executed remotely through a guest login.

To properly execute this latest hack you’ll want to first telnet to the server

NPM Install not Working with Ubuntu or Kubuntu 16.04 Xenial Xerus LTS

There are many projects that now utilize grunt or npm or node or some combination thereof. In particular I was having problems with installing Brackets on Xenial Xerus and needed to just start with the source code. I found to my dismay that it wasn’t going to be a simple ./configure;automake;make all;make install situation and instead I was going to have fun doing the grunt build and the npm install and so on. I’m not going to say this is necessarily a bad thing, and certainly much good has come from these projects. Its simply that with greater sophistication comes greater chance for complication.

Perhaps you are getting warning messages like: