Luna : Web Dev and Tech Support

Web Development and Technical Support

Fixing Sublime Text 3’s CSS Comments — March 2, 2016

Fixing Sublime Text 3’s CSS Comments

I’ve been doing a lot of web design work lately, and I’ve noticed that Sublime Text 3 has this really weird quirk with CSS comments.  When you press Ctrl+/ you get a strange your comment comes out like this /*This is a Comment*/ instead of like this /* This is a Comment */

Since it’s Sublime Text, I knew it had to be possible to reconfigure this. After asking a friend or two (special thanks to Kara McNair), and doing some digging, here’s the solution, using Package Control & Package Resource Viewer: Continue reading

Advertisements
Organizing Chaos — February 27, 2016

Organizing Chaos

I have an Addictive Personality: I love Reading, I love Learning & I love Interesting Discussions.  I also love Problem Solving, Coding & Designing.  Lately the first 3 have been getting in the way of the last 2 – this is a problem since I have projects, jobs & applications that need to get done.  So I’m iterating on how to organize the chaos that is my mind.


Current Rules:

  1. No Facebook or Tumblr in the morning.  Read Medium instead.
  2. Tumblr & Facebook are blocked on StayFocusd.  Time Limit: 90 min.
  3. Use Facebook & Tumblr one-directionally whenever possible (Post – Don’t Read)
  4. Keep a maximum of 3 Sublime Text Projects open at any given time.
  5. Use Asana to account for the possibility of forgetting ideas/projects
  6. Daily Email Schedule – Only check email during those times
  7. Filter & unsubscribe from all unnecessary & recurring emails
  8. Turned off Badge Notifications for Facebook & Email

Continue reading

Current Coding Projects (February 2016) — February 15, 2016

Current Coding Projects (February 2016)

Current Coding Projects:
1.  Working on a Code Test
2.  Learning jQuery (and javascript) so I can do my best to get into that internship
3.  Working on building VLC Media Player on my computer so I can contribute & apply to Outreachy

Status:
1.  I’m stuck & have been considering jumping over to the front-end test (this aligns well with #2 – as long as I finish one of them soon.)
2.  I’m really enjoying learning a new language … boy do I have to keep up the pace tho!!
3.  Damn am I in over my head, but VLC’s Wiki is fairly wonderful (I’d give it an 8/10) & I’m learning a ton!   Continue reading

WordPress: Customizing the Admin Menu — February 13, 2016

WordPress: Customizing the Admin Menu

There’s lots of great reasons great reasons to customize the Admin Menu in WordPress. Here’s a couple of methods to do that:
1.  Use a plugin like:
2.  Modify your functions.php file (usually located in wp-content/themes/theme_name/):
3.  Make a Plugin to do this:

Continue reading

Python: Dispatching Functions From A Dictionary — February 8, 2016

Python: Dispatching Functions From A Dictionary

I was updating the Readme files for some of my python projects and started looking through my Mood Tracker code.  While reading over it, I couldn’t help wondering: “Could you cut out the If/Else statements in the menu, and call the functions from a dictionary instead?”

Turn’s out the answer’s Yes!!

Here’s how you Dispatch A Function From A Dictionary In Python

Continue reading

Python: Inheriting Methods From A Parent Class — February 6, 2016

Python: Inheriting Methods From A Parent Class

Recently I’ve been working on a refactor of my PyPet Game.  I wrote the original code a long time ago, and didn’t understand Sub-classing* super well.  I understand the mechanics a lot better now.  Except I got stumped on trying to take the Method from the parent class.

Stack Overflow – Call a Parent Class Method from Child Class in Python


*To get the gyst of subclassing:  In my PyPet game I have 5 different pet types (Cat, Rat, Mouse, Bunny, Turtle).  Those Pets all have some common attributes (name, hungry, starved, bored, upset, violent, sleepy, awake/asleep) & common methods**  to output messages (like “I’m hungry” or “Pay attention to me”).

Continue reading

Programming Is Not Math – by Sarah Mei — February 4, 2016
%d bloggers like this: