| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « May | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
Posted on May 27th, 2012 by thiswayup.
Categories: dev.
I use MAMP for my OSX dev, the regular edition doesn't include the easy way to add to the host file (so that you can have a dev domain eg mylocal.dev) and virtualhost to the apache.conf, you need to do it manually. But luckily it is very easy, this is for my future self to save finding it on google.
sudo cp /etc/hosts /etc/hosts.bak sudo nano /private/etc/hosts
location: Applications/MAMP/conf/apache/httpd.conf Add a virtual host example entry: <VirtualHost 127.0.0.1> ServerName hib.local DocumentRoot "/Users/joelee/Sites/hub.local/web" DirectoryIndex index.php </VirtualHost>
Posted on October 9th, 2011 by thiswayup.
Categories: dev.
I had the pleasure to attend the conference this year. It's essentially a free conference over a couple of days where there are speakers during the day who talk about things relating to mobile during the day time and a hackathon during the evening/overnight. In previous years it has been held in universities in London but thy managed to secure , home of the code breakers that broke the .
This was my first year and I couldnt attend the beginning sessions on Friday but managed to swing by in the Friday late evening to attempt to partake in the Hackathon. Unfortunately big fail on my part when I gave up around midnight after trying to hack around the last.fm api to create a silly app idea. Note to self, must not do a full day worth of work followed by drinks before attempting to start a Hackathon! I ended up hanging out with some cool geeks chatting away till the early hours of the morning before realising that the gates was CLOSED! Bad news for me as I had booked a B&B and everyone else was sleeping in bean bags/sofas in Bletechly Park mansion. So I jumped the gate
The Saturday was alot more successful for me as I managed to go to some rather good talks and had a good old geek out with both developers and non-developers. Some of my highlights:
All in all pretty damn awesome!!!
Posted on April 22nd, 2011 by thiswayup.
Categories: dev.
Took me a lot longer then it should have done to find this setting! Putting it down here for future reference to myself!
Settings > Reading > Blog pages show at most
Posted on March 21st, 2011 by thiswayup.
Categories: dev.
It seems that Excel on the Mac generates line breaks different to every other software out there and stop the very useful fgetcsv from working! THIS IS BLOODY ANNOYING!!!!!! Took me ages before I realised the difference between two files, thankfully helped with that!
There's a fix for it and you need to enable auto_detect_line_endings (more info ).
For future reference any poor soul stuck with this then you can do this in your php code :
ini_set('auto_detect_line_endings',TRUE);
Posted on January 22nd, 2011 by thiswayup.
Categories: dev.
I just read a very interesting blog entry about the dev operations are in facebook .
There was some really interesting points highlighted which I would not have guessed, stuck out and a few things that just surprised me! Some of these include :
Definitely a very interesting .
Posted on December 27th, 2010 by thiswayup.
Categories: dev.
This year has been for me learning not only how to improve my site build technical skills but more importantly understanding the best approach to building sites. As part of this I enjoy learning about things such as design patterns and I have a better appreciation of things such as MVC after being on a few projects using different PHP frameworks. What makes it more fun for myself is when I get to see something I have familiar with in a different light, in this case MVC in JS!
I think its definitely important to approach bigger site builds with a bit more structure and I agree with other that site builds are becoming such big buggers, they're becoming apps themselves. This requires the discipline of building in a way that not only do they work and meet the brief (blah blah), but they are also readily maintainable/scalable. This in contrast to the dark past of copying bits of code and hacking it together.
Anyways, I digress a little. I've heard of MVC in JS but I haven't really put too much time into it and just read a great on it.
Some of the things that grabbed my attention reading it :
So do check out the article, it's very well written and no doubt I'll be using it as a reference if I get the chance to build any bigger apps!
Posted on December 21st, 2010 by thiswayup.
Categories: dev.
I attended a where someone introduced his small library/technique that essentially had the effect of loading js files in parallel *without* blocking, leading to the effect of faster loading page. I then decided to look around for other examples he mentioned and I discovered head.js.
Head.js does many things, one of the really cool things is the ability to load a bunch of js files in a parallel non-blocking manner which leads to incredibly faster performance gains on load up and rendering. To see this in action, check out the head.js testing page of versus AMAZING! On google chrome, my results running it 3 times in a row and emptying the cache each time was :
Without head.js :
WIth head.js
Can we say "hell yes!" ?
Along with that it also has some handy features :
Posted on December 5th, 2010 by thiswayup.
Categories: dev.
I read this !
To add to this I think everyone should use easy to recognise naming conventions for the primary key and foreign key fields.
So rather then :
phoneModel.id //primary key
phoneModel.id2 //foriegn key
Use :
phoneModel.PK_phoneModel
phoneModel.FK_manufacturer
The reason as you can see is to make the code self documenting! Plus when you go to do mega complex sql queries, it's a lot more easier to see what types of fields you are joining!
Posted on September 26th, 2010 by thiswayup.
Categories: dev.
I've recently discovered a great video from the Google Tech Talk channel on youtube calledpresented by . I love the fact it covers some of the real interesting and quirky parts of Javascript, highlighting some of the elements which make Js so unique as well as some of the damn annoying parts!
I'm not sure when the video was made, but I'm guessing it was before IE8 came out. IMHO IE8 is great for Js debugging over Firebug. The reason I say is purely due to the fact that Firebug has become so unstable and sometimes you aren't sure if your JS is broken...or if Firebug is playing up again! That reminds me, I should really do another post on js debugging.
The coverage of the DOM is a bit thin but you can always check out other videos such as for a good top of your DOM knowledge.
Enjoy!
Ps another great video is the
Posted on August 22nd, 2010 by thiswayup.
Categories: dev.
As I've started to learn more about javascript this year , I've been really enjoy digesting some interesting resources on the internet to learn more about the innards that make this rather great lanaguage. One that I have found is a great google tech talk and he highlighted a rather quiky thing in javascript.
function good(){
return true
}
alert( good() );
//alert is true
function bad(){
return
true
}
alert( bad() );
//alert is "undefined";
One would think that if you run both function you would get the same return (ie true) but there's one thing I learnt from Doug's talk is that Javascript was built with a interesting quirk, if it runs into a compilation error, it actually backs up and puts in a semi colon in for you! This was originally designed to help people first picking up the language but as a consequence has caused this weird business. So the moral is to always add semi colons.