Latest Event Updates

What is the end goal? Musings on programming.

Posted on

I a doing FreeCodeCamp’s Build a Weather app for the 2nd time. (maybe 3rd? who knows)

This time I thought I would get fancy, try to get the location from HTML5 first, then if an error, get the location from a IP geolocation service.

Well, I am finding that some functions don’t wait for the return of data from another, and rather than having an orchastrator function I would need to chain the functions together.

example:

Original:  master() call geoHTML5; if error master() call geoIP;

now: master() call geoHTML5 call geoIP() call….

Now I could just forgo HTML5 geolocation since IP geolocation works and actually has better data than HTML5 gelocation.

What is my end goal? To finish the project? Then ip geolocation would be the right choice, dont waster time on other things.

But what is my REAL end goal? TO get better at programming and learn the ins and outs of javascropt. That means I need to deal with my original plan and found out how to implement it..

What is the end goal? I’ve already done a weather app. The goal is to get better at programming.

Advertisements

paper.js hue problems

Posted on Updated on

Had this code:

var animatedCircle = new Path.Circle(new Point(300,300), 100).fillColor=”green”;
function onFrame(event){ animatedCircle.fillColor.hue += 1 ;}

was getting and error  :  Cannot read property ‘hue’ of undefined

solution was to add fillColor to animatedCircle AFTER initialization on a new line.

animatedCircle.fillColor=”green”;

 

 

 

Download patch definition queued in recent tasks

Posted on Updated on

In my VIclient I saw Download patch definitions queued since yesterday.

Looks like a restart of the VUM service took care of it.

the service is VMware vCenter Update Manager Service

 

 

Ruby : Force Sublime Text 2 to indent two spaces per tab

Posted on Updated on

To limit this configuration to Ruby files, first open up a Ruby file in the editor, and then go to Preferences -> Settings -> More -> Syntax Specific -> User. This should open a settings window named Ruby.sublime-settings

Save these settings:

{
  "tab_size": 2,
  "translate_tabs_to_spaces": true
}


from:
http://stackoverflow.com/questions/9474090/how-do-i-force-sublime-text-2-to-indent-two-spaces-per-tab

Event ID 16644 — RID Pool Request

Posted on Updated on

So you get the message “The maximum domain account identifier value has been reached. No further account-identifier pools can be allocated to domain controllers in this domain.”

 

What can you do?

 

Guess you have to make a new domain….

 

https://technet.microsoft.com/en-us/library/cc756621

VMWARE ESXi host – Best Practice – Hardrive or SD card ?

Posted on Updated on

Good post on reddit from /r/kcbnac:

 

As with many things in IT – It Depends.

SD card is identified by ESXi/vSphere as being flash-based media, so it won’t log to it – you’d need another volume somewhere for logs and dumps to go (not a bad idea anyway; but then if THAT goes down you have no logs – which isn’t helpful when the Vendor Blame Game begins)

SD is cheaper in a large cluster, provided you can meet the above logging requirement. (Saved ~$10k on 8 blade hosts buying SD cards instead of a RAID-1 mirror’d pair of drives for each; and nothing big/fancy either – would’ve been 300GB 10K SAS in Gen8 HP blades)

HDD/SSD gives you room on not-shared-storage to put some critical VMs in a pinch, or just ones that can’t live on the SAN. (I’m picturing the VMs that assist the SAN that shouldn’t live on the arrays they support; or extra space in a shuffle)

HDD uses more power, generating more heat. Another moving part.

Its a choice of tradeoffs, as usual.

https://www.reddit.com/r/sysadmin/comments/3ynv6h/vmware_best_practice_hardrive_or_sd/cyf06hc

Good advice on learning programming from scratch

Posted on Updated on

 

 

I see similar advice over and over, learn one core language, C++ or Java; Learn one scripting language, python, etc; Learn Linux; Build Code; Get job: Im reposting this here because out it’s well layed out

 

 

I am 100% sure that if you are intelligent you can do this, and that it will likely be financially worth it.

I will teach you how to obtain the skills to get a job at an amazon or google type company (at LEAST 90k starting salary):

  1. You must be a competent programmer in a main stream lower level language (say c++ or java) as well as a scripting language (python, bash, etc.).

    -Learn C++ from C for dummies follow by something like “accelerated c++” or Stanley Lippman, Essential C++, or Absolute C++ -Learn python similarly and by simply reading the python docs online. -You must also practise using these languages which you will do by doing your own simple projects as well as programming solutions to contest problems as I outline in further steps.

  2. You must understand the unix operating system. -Install linux (say ubuntu) and use it as your primary operating system. Start using the command line as often as possible. -Read a basic book about unix “teach yourself unix in 24 hours” and “unix in a nutshell” should get you going. Make sure you know about grep and chmod
  3. Data structures. Understand and be able to describe: -binary search trees (including self balancing such as red-black and AVL) -hash tables -stack, queue, array, priority queue.

    -Read the relevant sections in Sedgwick’s “Algorithms in C” or any data structures in C book. (Internet reviews should help).

  4. You must be able to solve ‘difficult’ algorithmic problems using techniques such as: -dynamic programming -divide and conquer

Buy Algorithm Design Manual and Introduction to Algorithms by Cormen, et al (CLRS). Work through these books slowly. You will have to take time to master everything in them and ask questions as necessary. They are not simply understood.

  1. Understand basic networking (how the internet works). Key concept examples: DNS, tcp/ip

There’s probably an article on how stuff works or just get a book about this stuff if you have to.

  1. Understand how a program is built. What an assembler, compiler and linker are. Just google this stuff. To truly understand this fully you should disassemble a program. Ollydbg is a program that can do this. A good place to try out your skills is osix.net . They have a series of ‘reverser’ challenges that will teach you about this (passing even the first level or 2 is good enough).
  2. Object oriented Design and design patterns:
  3. You should have some sense of OOP (object oriented programming) from learning C++ through the books above. Learn more if necessary by finding an OOP specific book. -Read ‘head first design patterns’ (CRUCIAL BOOK)
  4. Other tidbits: SQL helps (a language used to query a database) sqlzoo.net should get you started. Functional programming (a language like Scheme or Haskell) is usually helpful in learning how to program well. Structure and interpretation of programs is a good book.

Projects I’d implement: -A simple mysql backed website. Just make it so you can click a button and that will initiate a python script which will insert something into your db as an example. Simple, but shows you how everything works together. -Work through the ‘geek’ challenges on osix.net as well as the ‘reverser’ challenges. -Try to work through about 1/5 or 1/10 of the challenges in ‘algorithm design manual’ -Enter a few programming contests online the ‘google ai challenge’ was really good. -Try to make a simple version of anything you are interested or anything you have ever wondered how it could/would work.

Remember practise, practise, practise. Everyday read and implement.

https://www.reddit.com/r/learnprogramming/comments/13mo6u/im_30_with_a_liberal_arts_degree_and_no_coding/c75kw2d