Journaling on estrip is free and easy. get started today

Last Visit n/a |Start Date 2013-08-27 00:03:27 |Comments 327 |Entries 1,023 |Images 5,125 |Sounds 5 |Videos 56 |Mobl 442 |Theme |

Category: programming

12/09/16 10:47 - ID#60728

Arduino again

Out of boredom I decided to pull the Arduino out of its box and start playing with it again. It's much easier to get up and running sitting up on a desk instead of on the ground, next to the fireplace. Plus Fedora even has the Arduino IDE in its repository now.
What should I make?

image

image
print addComment

Permalink: Arduino_again.html
Words: 58
Last Modified: 12/09/16 02:25


Category: programming

11/30/16 11:57 - ID#60723

Refactoring e:strip

The past week or so when I have the time, I've been going through the source of (e:strip) and cleaning it up.

So far I've:
  • Moved a lot of the concatted PHP views into more HTML-y templates
  • Cleaned up some of the registration process and updated the confirmation process
  • Removed dead code
  • Given a controller to most of the views

I still want to pull out all of the inline styles and refactor the CSS into something useable, maybe with flexbox.

I also want to try out multimedia websockets for the Talkbox. And maybe add Schema.org descriptions for users and posts, so we can get structured data to crawlers.

Not that anyone is really posting - but there's something satisfying about cleaning up retro code. It's almost Zen, seeing how much code you can condense into the simplest few lines.

print addComment

Permalink: Refactoring_e_strip.html
Words: 145
Last Modified: 12/01/16 01:06


Category: programming

10/13/15 01:23 - ID#60277

Sorting music

I ran into this video on reddit of the sounds of different sorting algorithms make as they process random data. It's pretty mesmerizing to watch.


Some actually sound pretty cool. My favorite one is the bogo sort, even though it's basically impossible to actually sort data with it (bogo sort is randomly shuffling data and hoping it's suddenly sorted).

It's cool to see the processed visualized like this. Something makes me think I would have like data structures much better in school if we got to do things like this, considering no one ever needs to implement any sorting themselves.



This video is a much better comparison of different sorts. You can't hear the sounds they make, but you can see the differences in memory usage vs compute time (faster sorts take less time, while the more memory efficient algorithms have less colored elements selected at a time) They start with different arrangements of starting data.

On a different note, I found out today you can get a real computer science masters online for only $7,000 from Georgia Institute of Technology . After PEF reimbursements it would be almost $0 for me. You can also take the same classes for no credit for free. I am never giving a school money, but if you need a piece of paper kind of cool. Most subjects could be self taught and practiced/reviweed with Reddit and StackExchange, but having all a subject's info in one place and getting standard feedback on your projects is also useful.
print addComment

Permalink: Sorting_music.html
Words: 274
Last Modified: 10/13/15 11:18


Category: programming

02/06/15 04:33 - ID#59822

A brogrammer is born

(e:terry) is learning programming.

image

He had an issue converting files for import into Quickbooks - he had a qif file, from the personal version of quickbooks, and needed it to become an IIF file, for the accountant one. professor (e:paul) and I walked Terry through translating his logic into programming. There were a lot of small catches but after a few hours, (e:terry) had it down pretty good.

I think he could be an awesome programmer and I want him to learn more - I feel like it'd speed up a lot of his work and we could all work together.

print add/read comments

Permalink: A_brogrammer_is_born.html
Words: 107
Last Modified: 02/10/15 02:30


Category: programming

05/16/14 12:58 - ID#58984

Programming x in y

I found a really good resource for learning new languages, and getting a quick rundown on syntax, operands, logic etc with an example of each. I used it yesterday when I needed to write a Perl script for AutoCAD, but I found it really useful for getting a better hand on javascript.

Learn X in Y Minutes

The weirdest language I've ever seen is on there. It's called brainfuck . Everything in brainfuck with only 8 commands is done by manipulating a pointer over a 30,000 cell array. The compiler for it can be only 200 bytes. Why does it exist? Keine Ahnung.

This, for example, will print out the letter A:
++++++ [ > ++++++++++ < - ] > +++++ .

print add/read comments

Permalink: Programming_x_in_y.html
Words: 114
Last Modified: 05/16/14 01:16


Category: programming

04/21/14 12:31 - ID#58928

CSV Writer

Friday night (e:paul) and I finished a quick PHP script for Meredith and one of her clients. Basically she wanted to call a script that took a specific SQL query and have the results placed in a CSV file, with a log of successes and failures.

Writing the initial version of the script was straight forward logic-wise, although I did have some trouble connecting to a Azure MSSQL server. After the database was changed to a MySQL database, it worked perfectly.

Then I sat down with Paul and we worked on making it object oriented, fully commented and documented, completely abstracted and reusable. It was really satisfying to take something simple like that and flesh it out fully. The auto-PHPdocs are really cool. I've gotten paid for programming jobs before but that was probably the cleanest job I've worked on.

I really want to work on more freelance type scripting jobs now that I have a better idea of how to setup a good workflow.

print add/read comments

Permalink: CSV_Writer.html
Words: 167
Last Modified: 04/21/14 12:32


Category: programming

02/26/14 02:00 - ID#58736

Programming and bitterness

Tonight I was on a roll, so after I worked out I headed over to Spot to program. I've been looking at (e:Paul)'s cycles project and its helped me a lot in working on (e:terry)'s form making project, especially in terms of setting up things the right way with MVC and how I want to handle user input. When he was writing it I didn't always understand the code, but now I can sit down and step through it line by line it's a lot clearer.

Anyway I actually got coffee at spot. Lately I've liked the taste of coffee. I used to hate all bitter things like dry wines, hoppy beers and dark chocolate but for some reason in the past year or two it has been different. I guess I've either adjusted to them as I've had it more or my tastes have changed? Definitely had more of all these things with Paul and Terry. The sweet tooth has not gone away though.

Agave is now open where Blue Fin was. I really want to try it especially since its supposed to have a different menu than Don Tequila.

image

image

print add/read comments

Permalink: Programming_and_bitterness.html
Words: 199
Last Modified: 02/26/14 10:21


Category: programming

02/14/14 01:07 - ID#58681

Programming dirt

A while back I wanted a smartphone, and Microsoft was handing out Windows Phones to anyone developed an app for them. So I banged out an app called Soil Sort that classifies soils based on sieve test particle size. It tells you some general properties of the soil like strength, cohesion blah blah. My roommate Sarah always called me a dirt nerd because of it.

Anyway, it had been downloaded 448 times, but I never got any feedback. The other day I got an email from some Nigerian engineer thanking me for writing it.

Thanks a lot for this wonderful program I love it GOD bless you for taken out time calculations easy for designers let us have more of unified systems and way of alternating the % retained method
Regards
Abiakam Chidi Steven
Civil and Environmental Engineer @ GEOFINITE CONSTRUCTION


It's an awesome feeling to hear that someone actually used something I made. It motivates me to want to program more. I'm still learning tons about web development and PHP from (e:paul), so hopefully I can produce useful tools soon.




print addComment

Permalink: Programming_dirt.html
Words: 181
Last Modified: 02/14/14 03:24


Category: programming

01/15/14 11:50 - ID#58578

PHP meetup and Teen Wolf

After work I headed over to Synacor for the PHP meetup. The Synacor developer who runs the meetup, Shawn, is pretty awesome. They have a sweet office down near the marina. We over PSRs and composer, both of which I was aware of, but didn't really know how they functioned or how to use them. I know I could always learn about anything PHP from (e:paul) but it's good that I don't always have to bother him, lol. One thing Shawn mentioned he found was good practice, especially for javascript, was trying to create a snake game as quickly as you can. I think that might be a good exercise if I ever finish this thermostat.


I started watching Teen Wolf today. Really behind considering it is now in it's third season, but I have to catch up to watch with (e:paul) and (e:terry).
It's amazing, it makes me want to be a werewolf minus people hunting me. Not to mention all the guys in it are ridic attractive. The best part is I've found all the episodes either dubbed auf Deutsch or in English with German subtitles, so hopefully it'll be a good way to practice.
(e:xandra) thinks it sucks but I say she just isn't in the target teen girl/gay man demographic.



print add/read comments

Permalink: PHP_meetup_and_Teen_Wolf.html
Words: 219
Last Modified: 01/17/14 09:56


Category: programming

12/26/13 12:58 - ID#58496

Arduino and WS2801 LEDs

The other day, (e:paul) and I spent an hour trying to get the WS2801 LEDs working with the Arduino. They kept glowing on one LED, either full brightness or red and green. We thought it might have been library we used or the LEDs being defective, but it turns out there is an input and output side of the strand and we had it reversed. I seriously can't believe we missed that. Now they're working, fully addressable and ridiculously bright. For future reference - make sure you're always inputting into the right hole.

Side note these LEDs outgas so bad they make me sick.

image

image






print add/read comments

Permalink: Arduino_and_WS2801_LEDs.html
Words: 112
Last Modified: 12/26/13 10:03


Search

Chatter

New Site Wide Comments

sina said to sina
yes thank you!
Well, since 2018 I am living in France, I have finished my second master of science,...

paul said to sina
Nice to hear from you!! Hope everything is going great....

paul said to twisted
Hello from the east coast! It took me so long to see this, it might as well have arrived in a lette...

joe said to Ronqualityglas
I really don't think people should worry about how their eyelids work. Don't you?...