Posts

Showing posts from 2017

Dell XPS 13 9360 - Late 2017 8th Gen CPU (in Progress)

[General warning, this isn't a newbie or step-by-step instruction on how to do this. If you follow this blindly or don't know what a command does you might wipe something value on your system] Background I love my Sager monster laptop but with a current draw of 130W, I can't plug into a car or air plane electrical outlet. And only 1 hour per battery makes long flights a real chore as shutting down mid-operation is a pain. So I decided to get a new very portable laptop for coding and perhaps a little light gaming, but most importantly chargeable on a plane or in a car. I looked around and read a lot and ended up deciding to go with the Dell XPS 13. The reviews helped but more importantly Dell supported Linux out of the box. I started monitoring the prices and watching for any kind of deal on an XPS 13 Developer Edition. Then Dell threw me a curve, Dell updated the 9360 to use the (oddly?) named 8th generation CPU with more cores buy lower base clock. Co

Working through the golang tour

Exercise: rot13Reader https://tour.golang.org/methods/23 This was was tougher than I thought,  Mainly because you really have to understand the implied pieces that are needed.  I ended up solving this with a map rather than the github answer key I found. package main import ( "io" "os" "strings" ) type rot13Reader struct { r io.Reader } func main() { s := strings.NewReader("Lbh penpxrq gur pbqr!") r := rot13Reader{s} io.Copy(os.Stdout, &r) } func (rot13 rot13Reader) Read(b []byte) (n int, err error) { n,err = rot13.r.Read(b) for i:=0;i<n;i++ { b[i] = m[b[i]] } return n,err } var m = map[byte]byte{ 'A': 'N', 'B': 'O', 'C': 'P', 'D': 'Q', 'E': 'R', 'F': 'S', 'G': 'T', 'H': 'U', 'I': 'V', 'J': 'W', 'K': 'X', 'L': &#

Restoring a file backed up through dump from an encrypted home directory

https://help.ubuntu.com/community/EncryptedPrivateDirectory#Recovering_Your_Mount_Passphrase sudo mkdir /mnt/restore sudo chown yourid /mnt/restore sudo ecryptfs-add-passphrase --fnek # record output sudo mount -t ecryptfs /tmp/restore/home/.ecryptfs/yourid/.Private /mnt/restore aes 16 n (passthrough) y (encrypt filenames) (enter 2nd key from fnek above)

My first stab at: Unreal Engine 4 and Linux Gaming

I have almost no time these days but I am desperately interested in learning UE4 and especially excited to see how far I can get writing and playing a game in Linux. I have poked at a few books through Safari but finally settled on buying a course from udemy to help jump start my learning. So far I have a working UE4 Editor and have done some playing with blueprint.  The next step with be trying to something in C++ to work. Starting here:  https://wiki.unrealengine.com/Building_On_Linux#First_Time_Setup I have  working UE4 Editor.  It is going to be interesting adapting the course work which is on Microsoft to work under my Xubuntu desktop. I'll try to record the more memorable steps in this blog. Codelite looks like a  good IDE for use with UE4.  I installed it (sudo apt-get install codelite codelite-plugins).  Next using https://wiki.unrealengine.com/Running_On_Linux as a reference I'm editing Engine/Config/Linux/LinuxEngine.ini and setting PreferredAccessor=CodeLite

p4v logging, why are you so hard to figure out

I have tried in vain to find out how to get p4v to log the entire command so I can better understand p4. I think people call it google-foo, and normally I'm pretty good at getting the search right, but this has eluded me. My p4 log file was lttered with  "{ 2 additional argument(s) suppressed}"  But man I need that info. Finally got the search right which led me to this page: http://forums.perforce.com/index.php?/topic/3368-having-the-actual-p4v-log-on-my-harddrive/ So simple, just change debug level to :1 in the log.config for p4v. Alleluia!