• What are you working on? v7
    7,420 replies, posted
function penis($timetaken) { $jizz = timetaken - 12; return $jizz; } Not joking my friend actually wants it written like this :/ Bu tyeah it dont work, i know i made some sort of novice mistake...
[QUOTE=blackfire88;35048509]function penis($timetaken) { $jizz = timetaken - 12; return $jizz; } Not joking my friend actually wants it written like this :/ Bu tyeah it dont work, i know i made some sort of novice mistake...[/QUOTE] [php] function penis($timetaken){ $jizz = $timetaken - 12; return $jizz; } [/php] You forgot a $ on line 2 before timetaken. I hate it when people set a variable they're only going to use once, I would do it like this: [php] function penis($timetaken){ return $timetaken - 12; } [/php] [editline]a[/editline] [url=http://facepunch.com/threads/1152061]Wrong thread[/url] and that's not funny.
[QUOTE=swift and shift;35030642]I use [url=http://modrails.com]phusion passenger[/url] which makes deploying any rack based app as easy as deploying php.[/QUOTE] I'm either blind or this is not available for Windows? If so, any similar alternative?
[url]http://brandsumo.com/[/url] What y'all think?
[QUOTE=SCopE5000;35050225][url]http://brandsumo.com/[/url] What y'all think?[/QUOTE] I have a bit of a trouble reading the text: [img]http://puu.sh/jWa9[/img] Using Google Chrome latest build. ( Normal )
Fixed! It was the slider on the page being silly. [url]http://rottenappleclothing.co.uk/[/url] Our first client's store as well, what do you make of the design, etc? It's got a full in-house PHP backend for managing products and so on.
[QUOTE=SCopE5000;35052073]Fixed! It was the slider on the page being silly. [url]http://rottenappleclothing.co.uk/[/url] Our first client's store as well, what do you make of the design, etc? It's got a full in-house PHP backend for managing products and so on.[/QUOTE] jesus christ, those models :v:
[QUOTE=Crhem van der B;35050116]I'm either blind or this is not available for Windows? If so, any similar alternative?[/QUOTE] why would you deploy ruby on windows
[QUOTE=swift and shift;35054621]why would you deploy ruby on windows[/QUOTE] For testing on a development machine?
You don't need Passenger for that, just use the built-in dev server.
[QUOTE=Dotmister;35054699]For testing on a development machine?[/QUOTE] Worst case scenario, you fire up a linux VM.
[IMG]http://i.imgur.com/iZgMY.png[/IMG] cleaned up the thing... made some comments How I have a job in web development... I don't even know [editline]8th March 2012[/editline] [IMG]http://i.imgur.com/8Jlyi.png[/IMG] Forgot something pretty important. [editline]8th March 2012[/editline] oh wait. i can change this code to make it more betterer
What a bunch of useless comments. Name your classes, methods, and variables well enough that you don't need to comment everything. Comments should be used to explain why something is done a certain way, your code should be clean enough that you don't need comments to explain what the code is doing.
oh... those were just for the prntscreen.... i agree. lol. huge bulking comments oh golly Think of it as comments replacing code that's not there yet.
[QUOTE=-Kesil-;35055829]oh... those were just for the prntscreen.... i agree. lol. huge bulking comments oh golly Think of it as comments replacing code that's not there yet.[/QUOTE] Are you 8 or something?
[QUOTE=-Kesil-;35055829]oh... those were just for the prntscreen.... i agree. lol. huge bulking comments oh golly Think of it as comments replacing code that's not there yet.[/QUOTE] Write the code instead of the comments then? lol..
[QUOTE=KmartSqrl;35057013]Write the code instead of the comments then? lol..[/QUOTE] Sure thing, teehee edit: posted here because I knew I forgot something (in hopes of you guys catching my fall) [code]var method; // GET or POST[/code]
Writing a memcache class to sit on top of mysql; very much based around no-sql/key=>value setup. Setup each table and identify the keys which are unique, and they'll be stored/updated in memcache using the keys. While also allowing all the lovely order by, where, etc etc which comes with sql when needed :)
-snip-
Ok, this is going to sound like a really dumb question, but I'll ask it anyways. How would one go about making a site design like this: [url]http://martinkool.com/[/url] I don't care about any of the tumblr stuff, just the whole castle tower leading to the ground.
I've been working on a simple web application as a technical challenge for a work placement next year. The topic was pretty vague (Make something cool using twitter) so I decided to collate a number of different web APIs in order to make researching twitter trending topics easier. You can choose a country to view the trending topics for, and then click on one in order to research it. When you choose one, you will be presented with - A summary page from Wikipedia (if one exists). Some images from Flickr News articles relating to the search term from Google News API, Tweets from Twitter Search API You can view the WIP site at [url]http://aarong11.x10.bz/[/url]. I know the layout is pretty basic, but i'm more bothered about functionality. Any feedback for stuff to add / change is welcome.
Website has been up and running for a month or two now and so far has been flawless. I have learnt an entire fuckton through tweaking and experimenting with different bits and pieces. :dance: [url]http://www.gametechdeals.co.uk[/url]
[QUOTE=Cow Muffins;35060091]Ok, this is going to sound like a really dumb question, but I'll ask it anyways. How would one go about making a site design like this: [url]http://martinkool.com/[/url] I don't care about any of the tumblr stuff, just the whole castle tower leading to the ground.[/QUOTE] Well you can probably acheive it with the likes of height:100% and height:auto stuff, but to be frank its a pain in the ass to achieve most things that way. I would have the top of the castle in the 'banner of your website' have your content nested in a div with the div that holds the content set to the castle mid-section, then I would have your footer with the bottom of the castle [code] <div id="banner"></div> <div id="content-castle"> <div id="content-right"> </div> <div id="footer"></div> [/code] In that example, banner would hold the top of the castle, content-castle would hold the castle tower (with the background set to the left of the div, height:auto, overflow:auto), then I would have the footer in the bottom. Should result in fixed top and bottom with a fluid mid section.
[QUOTE=AaRoNg11;35060325]I've been working on a simple web application as a technical challenge for a work placement next year. The topic was pretty vague (Make something cool using twitter) so I decided to collate a number of different web APIs in order to make researching twitter trending topics easier. You can choose a country to view the trending topics for, and then click on one in order to research it. When you choose one, you will be presented with - A summary page from Wikipedia (if one exists). Some images from Flickr News articles relating to the search term from Google News API, Tweets from Twitter Search API You can view the WIP site at [url]http://aarong11.x10.bz/[/url]. I know the layout is pretty basic, but i'm more bothered about functionality. Any feedback for stuff to add / change is welcome.[/QUOTE] my school banned your website as Phishing
[QUOTE=jung3o;35063528]my school banned your website as Phishing[/QUOTE] Probably because it's on a free host. I have literally no money at the moment otherwise i'd buy a VPS or something.
[QUOTE=AaRoNg11;35063727]Probably because it's on a free host. I have literally no money at the moment otherwise i'd buy a VPS or something.[/QUOTE] Lithium's simple hosting is $1 a month, you could look into that
[QUOTE=orcywoo6;35062095]Website has been up and running for a month or two now and so far has been flawless. I have learnt an entire fuckton through tweaking and experimenting with different bits and pieces. :dance: [url]http://www.gametechdeals.co.uk[/url][/QUOTE] Consider using background colours in addition to background images. The navigation bar was fully white (hiding the text) until the image finished loading.
And done, a memcache class on top of mysql (which uses keys rather than simply caching sql queries): [url]http://pastie.org/3558893[/url] [php] $test = new mod_memcache( $mod_db ); $test->set( 'mod_user_reads', array( array( 'user_id' => 50, 'article_id' => 3 ), array( 'user_id' => 3, 'article_id' => 30 ) ) ); print_r( $test->get( 'mod_user_reads', array( array( 'user_id' => 50, 'article_id' => 3 ), array( 'user_id' => 3, 'article_id' => 30 ) ) ) ); [/php]
[QUOTE=Cow Muffins;35060091]Ok, this is going to sound like a really dumb question, but I'll ask it anyways. How would one go about making a site design like this: [url]http://martinkool.com/[/url] I don't care about any of the tumblr stuff, just the whole castle tower leading to the ground.[/QUOTE] Those illustrations are beautiful.... If only
Typical tumblr theme designed in a few hours. [B]Features:[/B] • Generic noisy background • Pointy circles • Your favourite 3D ribbons [t]http://i.imgur.com/QDkqs.png[/t]
Sorry, you need to Log In to post a reply to this thread.