« first day (536 days earlier)      last day (4410 days later) » 

9:00 PM
upload class (with commenting) is over 5000 lines of code. FFS I never looked at that
 
@rlemon xd
5000 lines that opens a TCP server
reads your entire C
 
and sends it to "ilikedogs.com:2042"
 
anyways 5 o'clock
bb soon
 
you realize 99% of it is image manipulation and comments
dunno what all that image manipulation code is doing in an upload class though
 
9:04 PM
It feels more like 99% is comments >.>
 
yes at the start but scroll deeper, it feels like the image manipulation code never ends :D
 
totally
 
The code actually starts at line 2593
 
100 properties that have the text "image" in them lol
 
the code after that is horrible
full of nested if else if else if else...
 
9:06 PM
lol it even includes translations embedded in a constructor
Copyright (c) Colin Verot 2003-2010. All rights reserved
 
seven years to write it?
 
7 years old code?
lol
 
not surprising :D
 
1
Q: cv-pls Helper Chrome Extension

RepWhoringPeeHaa Screenshots Formatted cv request Settings About cv-pls Helper makes the process of closing questions easier on Stack Overflow. There are a lot of 'bad' questions being asked and to help reduce the noise these questions should be closed as fast as possible. This extension in no way au...

 
and it's still version 0.31
wonder what version 1.00 will look like
in 2054
maybe it will reinvent several php extensions inside the upload class
 
What's ironic in the code is that it starts with so many comments and after boom ... no comment at all.
 
it really is a master piece evolved over 7 years
 
user1385191
gEBI uses a hash map
 
user1385191
as I've suspected for months
 
9:24 PM
yes but its a CSS method
I mean what exactly is a "CSS method"
and what's wrong with it
 
user1385191
it just bothers me that an API like QS(A) was added as a façade for the CSS parsing engine
 
but why wouldnt it facade to the CSS parsing engine
what is a better alternative?
 
user1385191
it's implemented fine
 
user1385191
I don't like the concept of having the API
 
9:40 PM
Ah
is there an intermediate between gEBTN and QSA that's acceptable?
would you find elem.getElementsByAttribute(attrName, attrValue) any good?
 
this kind of API would allow to get by dataset too
 
user1385191
attribute? what am I missing?
 
@Esailija lol serves me right for checking out his demos and thinking "you know, this isn't that bad"
 
what demos =D
 
he has a site. lol, or rather, I found the class on a site that provided demos
regardless, I wrote my own in like 10 lines of code in 3 minutes.
I was just being lazy before and looking for the CP solution.
:/
 
9:53 PM
most php frameworks have good upload handling built in though?
 
user1385191
I forgot how much I loved wrapper elements
 
@Esailija that is assuming one is using a framework.
"how do I get an element by it's ID in Javascript"
"$(#id);"
:D
 
ah I see it's for pi.rlemon.com
love the unmodified bootstrap css =D
 
heck yes.
:<
is there a tool to strip out unused css rules? or to at least tell me which are not ever being referenced?
 
I mean unmodified in the stylistic point of view - the blue primary button etc
 
9:57 PM
ohh lol yea
whatevs, bootstrap is sexy
:P
 
user1385191
you monster
 
yea it is
 
cept the text-rendering ;)
 
user1385191
look; no JavaScript!
 
9:58 PM
@MattMcDonald technically i'm a fruit.. but thanks for the recognition.
 
rlemon where can I browse the pastes and uploads
 
you can't
paste.ubuntu.com/ you can't browse the pastes...
 
oh I see it's like pastebin
 
yup
 
with imageshack
genius
 
10:00 PM
but I may change that.. you're not the first to instantly ask "ok, where do I view what i and other have uploaded"
maybe add a small "public" flag to the upload?
I also need to figure out how in the heck i'm supposed to control caching.. never really concerned myself with it before (always worked with others who knew what in the heck they were doing in regards to cache control)
 
the most annoying thing right now is the load times
 
yea thats my host.
i battle with them daily on it.
 
oh
 
they claim "the pages load in under 2 seconds" and ping is like 10ms.
BS
I ping at like 60ms and page load times are 10-30 seconds (for db heavy pages)
wordpress is unusable.
 
well firstly do you have APC installed
a framework would be great here as well.. codeigniter abstracts 4 different caching engines to the same interface
so it's easy to jump between them
 
yes if you install it your php won't reparse files everytime a request comes
it also comes with a key/value cache
 
no i don't think you understand... loading a single row, single column from a table with one record, and one column takes like 5 seconds.
it's the hosting service.
it's just slow. I don't think code can make up for it
took me 2 seconds to load a 116 byte static page.
 
jesus
 
that kinda stuff should be faster than I can blink
 
:D
 
10:08 PM
and they say "well maybe it's your end, try a different computer/network"
i'm all like "Dudes! WTF do you think the reports from these five speed test websites are?!"
they offer a anytime money back guarantee
 
2 seconds for 116 bytes is pretty unacceptable even for a semi-free shared hosting
 
so as soon as i setup a replacement i'm done with them. i've opened 18 support tickets.
it's not even free.. it's shared.. but i'm paying.
 
by semi-free I just mean very cheap
like 6 bucks a month
 
ok, then yes... very semi-free :D
try <$4 a month.
$3.92/month includes the domain
 
lol
 
10:10 PM
I suppose I shouldn't complain. you get what you pay for
 
I think a .fi domain alone costs more than that
30€ a year
that's like 40-50$
I guess no caching will help.. you can't polish a turd
 
well you can.
but it's not worth it
hoookay
@Esailija do you mind taking a look at liddle.rlemon.com
I cannot figure out where the extra 16 pixels (line break) to force the horizontal overflow is coming from?
 
10:29 PM
you mean it's not supposed to have a scrollbar?
 
nope
something to do with the sidebar is the best I can get at
 
you could just set overflow of body
to hidden
that's what jsfiddle does as well
 
that feels like cheating
:S
 
no that's what causing it
if you set it to hidden the extra pixels disappear
 
yea i just killed the sidebar and it's still there
 
10:37 PM
not for me
I just set body overflow hidden and can't scroll at all
as in there is nothing to scroll beyond full screen
document.body.scrollHeight
995
document.body.offsetHeight
995
with overflow visible
document.body.scrollHeight
1013
document.body.offsetHeight
995
so overflow: hidden is not a hack here
since overflow visible is causing the extra pixels
 
it's a fallback if I can't get it working otherwise in say.. the next 8 minutes
:P
 
a hack would be setting height to 99% or something
are you really gonna compete with jsfiddle - with exactly the same layout :D
 
the layout is a basis. it will evolve over time
the main idea is to take what jsFiddle is and improve upon it.
or at least try
 
did 8 minutes pass already
 
yea hard refresh. ;)
 
10:49 PM
;D
 
are 'splitters' really important? or would a few different increments of view + the option to remove the panel completely be more useful.
coding a splitter to function properly is such a pain in the ass
like, < and > buttons and you click them and it slides in like 100px.
 
probably plugins there for it anyway
 
there are some jQuery ones... but i'm already irked that i'm using jQuery to do the twitter bootstrap plugins :P
 
yeah but they are well done
 
i'm not hating, I just don't like dependencies
 
10:52 PM
they are using classes with jQuery method just being a mediator
 
and that is why i'm accepting it :P
 
instead of the jquery method being some kind of god method of 1000 lines
 
yes, and I can and will (already talked to @OctavianDamian about it) remove that dependency.
him and I already wanna remove jQuery from bootstrap.
but i see that as a whole new endeavour
 
meh
 
do you happen to know of any good jQuery splitters then?
 
10:54 PM
the standard ui components are ok
it's like using input element for example
 
some jQuery tools crap has one. it's nice too... but it's like 30kb in itself.
 
I don't know and it's probably hard to find a good one
but I must say the bootstrap jquery plugins are very well made
 
jsfiddle uses some moo tools splitter i think
they are..
but for the limited amount of jQuery they actually use.... i mean, the twitter guys could have taken the extra week or so and done it without the library they aren't using a whole heck of a lot of.
I think the thought process was, "Well they're likely using jQuery if they are thinking about using a css framework... so why not save ourselves a few days and make it dependant"
 
yea exactly
pretty sure 99% of the target audience will use jquery anyway
 
but it's such a well put together css framework.
 
10:57 PM
yeah I love the grid system
 
few mods here and there.
 
and it got me to use LESS
 
ohh it's wonderful. and the responsive layout
 
and jquery dependency isn't really that shocking or hard to overcome
if it must have a dependency I prefer it to be jQuery core than anything else
 
well... i would prefer a shim over anything.
looking at the code a lot of what is being used is to ensure cross compat
but ohh well... now to conquer my splitter issues.
 
11:25 PM
function dispatchEvent(elem, type, event) {
    var ev
    if (event) {
        ev = event
    } else if (document.createEvent) {
        ev = document.createEvent("Event")
        ev.initEvent(type, true, true)
    } else if (document.createEventObject) {
        ev = document.createEventObject()
    } else {
        ev = {}
    }

    if (elem.dispatchEvent) {
        return elem.dispatchEvent(ev)
    } else if (elem.fireEvent) {
        return elem.fireEvent('on' + type, ev)
    } else if (typeof elem["on" + type] === "function") {
Did I miss anything?
 
0
Q: How can I tweak this A* search pathfinding algorithm to handle different terrain movement values?

user422318I'm creating a 2D map-based action game with similar interaction design as Diablo II. In other words, the player clicks around a map to move their player. I just finished player movement and am moving on to pathfinding. In the game, enemies should charge the player's character. There are also fi...

 
11:43 PM
lol anyone wanna finish this? jsfiddle.net/rlemon/uvATV
i'm sick of looking at it already
 

« first day (536 days earlier)      last day (4410 days later) »