• What are you working on? v7
    7,420 replies, posted
If we're talking in the context of Garry's Mod Lua, it would be a cool idea to have a web interface for Admin plugins for ease of management. I suggested to garry to ship a web framework within gmod to allow addon coders to create web UIs for their plugins.
[QUOTE=JohnD;39042591]If we're talking in the context of Garry's Mod Lua, it would be a cool idea to have a web interface for Admin plugins for ease of management. I suggested to garry to ship a web framework within gmod to allow addon coders to create web UIs for their plugins.[/QUOTE] Uh, how did you come to the conclusion that he was talking about Garry's Mod? He said web server. O.o
[QUOTE=Lexic;39041404]Well it doesn't [i]prove[/i] anything, but generally the only reason you would care about the special character content of a string would be if you were storing it somewhere and didn't know how to escape it.[/QUOTE] yeah I was thinking that they're just checking the strings before they get hashed, which seems very silly
[QUOTE=JohnD;39042591]If we're talking in the context of Garry's Mod Lua, it would be a cool idea to have a web interface for Admin plugins for ease of management. I suggested to garry to ship a web framework within gmod to allow addon coders to create web UIs for their plugins.[/QUOTE] -snip- It'd be interesting to find out.
[QUOTE=P1raten;39042929]Uh, how did you come to the conclusion that he was talking about Garry's Mod? He said web server. O.o[/QUOTE] So? His Lua web server could possibly fit that idea.
I fucking hate magento... [php] $usingCase = isset($data['use_for_shipping']) ? (int)$data['use_for_shipping'] : 0; switch($usingCase) { case 0: $shipping = $this->getQuote()->getShippingAddress(); $shipping->setSameAsBilling(0); break; case 1: $billing = clone $address; $billing->unsAddressId()->unsAddressType(); $shipping = $this->getQuote()->getShippingAddress(); $shippingMethod = $shipping->getShippingMethod(); // don't reset original shipping data, if it was not changed by customer foreach ($shipping->getData() as $shippingKey => $shippingValue) { if (!is_null($shippingValue) && !is_null($billing->getData($shippingKey)) && !isset($data[$shippingKey])) { $billing->unsetData($shippingKey); } } $shipping->addData($billing->getData()) ->setSameAsBilling(1) ->setSaveInAddressBook(0) ->setShippingMethod($shippingMethod) ->setCollectShippingRates(true); $this->getCheckout()->setStepData('shipping', 'complete', true); break; } [/php] Yeah of course you really needed to use a switch statement there...
[QUOTE=KmartSqrl;39043400]I fucking hate magento... Yeah of course you really needed to use a switch statement there...[/QUOTE] So what happens when [b]$usingCase[/b] isn't 1 or 0? Does it just break horribly?
[QUOTE=JohnD;39043474]So what happens when [b]$usingCase[/b] isn't 1 or 0? Does it just break horribly?[/QUOTE] it can't be not 1 or 0 though.
[QUOTE=jung3o;39043527]it can't be not 1 or 0 though.[/QUOTE] It's getting cast to an int from what I assume is a string originating from user input. If $data is sanitized before tat code I wouldn't know. If it's originally a bool then this is on a whole new level of stupid.
[QUOTE=JohnD;39043567]It's getting cast to an int from what I assume is a string originating from user input. If $data is sanitized before tat code I wouldn't know. If it's originally a bool then this is on a whole new level of stupid.[/QUOTE] actually. I was wrong in a way. It checks for integer or it's 0, but it doesnt check if it's 1 or 0.
It's a value coming from a checkbox so it is always going to be 1 or 0 unless the user is trying to do something funny.
[QUOTE=KmartSqrl;39043400] Yeah of course you really needed to use a switch statement there...[/QUOTE] They're just leaving room for future fixes in case they ever add a third value to boolean logic.
It is a checkbox to use the billing address as the shipping address during the checkout process. I'm not sure how many other forms that could possibly take.
[QUOTE=KmartSqrl;39044038]It is a checkbox to use the billing address as the shipping address during the checkout process. I'm not sure how many other forms that could possibly take.[/QUOTE] [QUOTE=Filipe;39043983]third value to boolean logic[/QUOTE] Is joke :v:
[QUOTE=StinkyJoe;39044160]Is joke :v:[/QUOTE] Yeah I guess that should have been more obvious haha. I mean MAYBE they could use it if they were adding a multiple shipping addresses kind of deal and you wanted "this is one of my shipping addresses" to be an option, but the magento way would be to over-ride that in the multishipping module not support it in place like that.
[QUOTE=KmartSqrl;39043770]It's a value coming from a checkbox so it is always going to be 1 or 0 unless the user is trying to do something funny.[/QUOTE] So if the user does set it to 3, does it crash because $shipping isn't set?
[QUOTE=Lexic;39044430]So if the user does set it to 3, does it crash because $shipping isn't set?[/QUOTE] This is what I was getting at
It just doesn't do anything if it's not set to 1 or 0. No crash or anything.
[QUOTE=Jelly;39042092]What's the advantage of having a web server written in lua or is this just an exercise?[/QUOTE] One of the advantages can be speed, as seen with [url=http://luvit.io/]Luvit[/url]
[QUOTE=Filipe;39043983]They're just leaving room for future fixes in case they ever add a third value to boolean logic.[/QUOTE] [QUOTE=StinkyJoe;39044160]Is joke :v:[/QUOTE] Should I be confused by the names?
I'm just doing a couple of lines at the moment... [IMG]http://newspaper.li/static/4c35460895eff3f2e3cc76e561081847.jpg[/IMG] Of code. EDIT: Oh, lighten up! lol!
[QUOTE=Jelly;39042092]What's the advantage of having a web server written in lua or is this just an exercise?[/QUOTE] s/lua/javascript/
I got my proof-of-concept version 0.0.1 of [url=http://war.nikomo.fi/graphs.php]this[/url] working. At least now I have some clue what it might look like, if I ever bother to finish it. And it only has the most basic functionality in place right now (aka one graph about one single thing), but meh.
[QUOTE=Atomiku;39047927]I'm just doing a couple of lines at the moment... [IMG]http://newspaper.li/static/4c35460895eff3f2e3cc76e561081847.jpg[/IMG] Of code.[/QUOTE] idiotic
`
[QUOTE=nikomo;39049229]I got my proof-of-concept version 0.0.1 of [url=http://war.nikomo.fi/graphs.php]this[/url] working. At least now I have some clue what it might look like, if I ever bother to finish it. And it only has the most basic functionality in place right now (aka one graph about one single thing), but meh.[/QUOTE] Bootstrap is slowly getting more and more overused, in my opinion. [editline]1st January 2013[/editline] [CODE]<!-- Le styles -->[/CODE] :saddowns: [editline]1st January 2013[/editline] Well, apparently we've lost :saddowns: since I was last around.
[QUOTE=T3hGamerDK;39044642]One of the advantages can be speed, as seen with [URL="http://luvit.io/"]Luvit[/URL][/QUOTE] That website flat out lies, I only get 5.6k/rps with Luvit and 10k/rps with Node.
[QUOTE=T3hGamerDK;39044642]One of the advantages can be speed, as seen with [url=http://luvit.io/]Luvit[/url][/QUOTE] Do they have the benchmarking stats anywhere? [editline]1st January 2013[/editline] [QUOTE=Jelly;39052960]That website flat out lies, I only get 5.6k/rps with Luvit and 10k/rps with Node.[/QUOTE] Well then.
[QUOTE=Qombat;39052655]Bootstrap is slowly getting more and more overused, in my opinion.[/QUOTE] Bootstrap has some genuinely useful boilerplate, I use [i]some[/i] of its components everyday, much for the same reason I use third-party libraries in my code instead of re-writing everything from scratch. However, using Bootstrap without layering your own style & work over it is analogous to installing Rails and deploying your website with the Rails welcome page. It's a framework over which to work. Obvious exception applies to super-rough prototypes that shouldn't see the light of day.
[t]http://i.imgur.com/s0G05.png[/t] Peak analytics when we posted Amuzor to HN. [editline]2nd January 2013[/editline] We totalled 13k page views and 6.3k visitors in around 4-6 hours. [editline]2nd January 2013[/editline] [QUOTE=Qombat;39052971]Do they have the benchmarking stats anywhere? [editline]1st January 2013[/editline] Well then.[/QUOTE] Compare [url]http://elliotspeck.com/[/url] to [url]http://charlie.bz/[/url]
Sorry, you need to Log In to post a reply to this thread.