« first day (478 days earlier)      last day (4471 days later) » 

5:10 PM
0
Q: Getting a 'slide down' js panel implemented within WP

LouieLouieI'm trying to implement a very simple vertical slide down panel in Wordpress, I've tried jbar (http://tympanus.net/codrops/2009/10/29/jbar-a-jquery-notification-plugin/) and an easy JS method I found in http://jsfiddle.net/ahr3U/ But I still cannot get this implemented, I've tried inserting the ...

 
user1385191
5:23 PM
5
A: Why JS function name conflicts with element ID?

PointedEarsThis is a legacy scope chain issue originating from JavaScript 1.0 to 1.3 when there was no distinction between the programming language and what we now call a DOM API ("Dynamic HTML" back then). If your form control (here: a select element) is part of a form (descendant of a form element), then...

 
user1385191
(upvote this as much as possible s'il vous plait)
 
upvoted.
 
@DieVarDump I can ask a question?
 
@WalériaDavid U just did
:-D
 
5:25 PM
posted on February 06, 2012

I always enjoy watching JS1k, which, if you haven’t heard of it, is a JavaScript competition to make the best demo in under 1KB of code.  It has been running for a few years now, and every time, it gets better and better with cooler demos, more judges and of course better prizes.  This time, the theme of the contest is about love given that Valentines day is coming up soon, and we’ve already go

 
user1385191
india's government needs to be dissolved
 
user1385191
so corrupt
 
@DieVarDump this link, when temperature or luminosity astro.unl.edu/naap/hr/animations/hrExplorer.html
@DieVarDump moves a pointer on the x axis and y
@DieVarDump how can I look on the internet that shows how something can make it
@DieVarDump and the Options: show luminosity classes, show instability strip ...
 
user1385191
4 messages moved to bin
 
user1385191
5:29 PM
forgive me; their url system is busted
 
It seems.
 
user1385191
I try to strip tracking information from URLs
 
@WalériaDavid llo
 
this link, when temperature or luminosity astro.unl.edu/naap/hr/animations/hrExplorer.html
moves a pointer on the x axis and y
 
5:33 PM
U are in repeat mode now arent you?
 
how can I look on the internet that shows how something can make it
and the Options: show luminosity classes, show instability strip ...
 
Im muting u now.
p00f, gone ^_^
 
understand my question?
 
@MattMcDonald ^_^
 
user1385191
...?
 
5:36 PM
idk
back to work for me
 
5:48 PM
What's the name of that small modular js library?
I think it starts with a Z, I may be wrong.
Zepto?
 
Zepto is a weird jQuery clone
 
Not that I've ever seen it before.
 
I'm looking for the library that was modular
ie, you can replace the ajax section with something else.
 
makes me think its going to steal my js
should make cleptojs
 
5:52 PM
I like it.
It can be like mustaches.
Except it injects the hamburgerler into every photo.
 
lol
 
user1385191
6:05 PM
discovery of the week: Mozilla is hiring web devs and they have an office in Vancouver
 
user1385191
I've given up on even arguing about it
 
user1385191
your best bet it to let the ignorant continue to revel in ignorance
 
user1385191
I'm giggling at the person who mentioned "ender"
 
user1385191
that pile of junk fizzled out months ago
 
6:59 PM
Hey all my checkbix issue is getting weirder...
I added this in the console:
$('input:checkbox').click(function(){
     console.log($(this).prop('checked'));
});
and it always returns true, and the checkbox never gets checked....
Idk what is going on...
Why can't i check some checkboxes... this is getting very weird
ahhhh
:-(
rrrg now i added <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> to the top and the css is not working at all!
 
7:24 PM
@MattMcDonald "Prefered skills : Python and Django"
It drastically reduce the developers number who will apply. no ?
 
GGG
@DieVarDump it should
hope you're ready for the culture shock
unless that's your culture
 
Never practiced one of them
 
GGG
i've built stuff in python+django but i wouldn't apply to a job
 
Smarty... i really don't like it. But i used to try
 
GGG
i'd assume the work env would be full of python+django ppl and probably want to kill myself after 2 days
hahah
at one point i was going to do a php thing like django based on this excellent orm - redbeanphp.com
but it fizzled out
well actually i got it far along enough to help for stuff with work and then kinda rolled it into work stuf
 
7:30 PM
php framework ?
 
GGG
yeah, jut a django-alike thing based on redbean
 
Don't know Django :s
neither redbean
 
GGG
django's kinda neat. Redbean is the best ORM for PHP, hands down, don't care what anyone else says
 
I Like Doctrine 2, but i don't use it because i never get threw the code
 
GGG
redbean is everything doctrine is not
create scemas on the fly, no external configuration
things that need to use sql use regular sql, not some proprietary OO dialect
very slim api
etc etc
 
7:37 PM
wel... proprietary OO dialect is transformed to SQL. I made a little ORM for my company, because we don't have big case like Doctrine or others "very big" ORM can handle.
OO dialect can be good and easy to use if you know how it works
 
GGG
i mean rebean has a normal oo api for doing normal stuff
but if you want to do complex queries you just write them in sql
 
You're in Canada ?
 
GGG
nah that's incognegro
 
GGG
redbean also has a facade class named R with static methods for just about everything
so if you feel like being lazy you can do almost everything with R::foo
 
7:39 PM
i'm just reading the doc
 
GGG
like you could do this:
$person = R::dispense('person');
$person->name="bob"; $person->height=7.5;
R::store($person);
that will actually create a table 'person' if it wasn't present, adding any columns that weren't present, and store this record
later on you can lock it down so the schema can't be altered but during develpment this is priceless
 
@GGG You already forgot we're the same person? :(
 
GGG
@Incognito hahah i thought about that when he asked
somethings def. up
 
Conspiracy.
 
This flexibility can be good, but also can cost time and effort to debug when you are not alone to develop an app
 
7:47 PM
0
Q: How do you automagically minify your JS and CSS on OS X or in Webstorm?

Chase FlorellI use two different IDE's based on what I'm doing. My primary IDE is Visual Studio, whereby I use Chirpy to mash and minify my code. It works flawlessly and I love it. Problem is that when I'm not on my Windows box, I don't have access to it. When not using Visual Studio, I'm usually writing Jav...

 
Is there any javascript framework which uses constructors and prototypes instead of object literals..
ie.var myFrameWork = new myFrame() ;
function myFrame(){
this.a = 1;this.myFn = function()
{
}}
instead of
var myFrameWork = {a:1,myFn:function fn(){}}
 
@Zirak I fixed it, it was a position: absolute issue.
 
user1385191
@Neal simple: stop using jQuery
 
http://jsperf.com/modern-js-vs-jquery-append
In FF 10.0 > jQuery win... 5,250 Ops/sec against 3,456
In chrome 16.0 > modern JS win ... 98,280 Ops/sec against 23,421

How is it possible ?
 
@MattMcDonald I wasnt a jQuery issue. it was a css issue.
 
7:51 PM
stop using css then jeeze :P
 
lol
 
user1385191
all 3 bits in your code are unnecessary
 
@Neal What frameworks uses the second synthaxe ?
 
user1385191
the selector, the "click" handler, and "prop"
 
@DieVarDump huh?
 
user1385191
7:52 PM
1 message moved to bin
 
GGG
@DieVarDump why do you think this would be more difficult to debug?
 
user1385191
spamspamspamspamspam
 
GGG
you mean if someone mistypes a property name or something
 
not spam
 
GGG
it will be pretty obvious because you'll have an extra column in one of your databases that's a misspelled real column
 
user1385191
7:53 PM
is spam
 
why ...is it spam?
 
@MattMcDonald why was that spam?
 
user1385191
you copy + pasted the exact same message
 
user1385191
...not more than a minute apart
 
ok..just because nobody noticed it..
 
7:54 PM
lol i ddnt notice that
 
GGG
actually i didn't notice it either
 
user1385191
oh, we noticed it
 
GGG
but still, don't paste it twice
 
user1385191
we just ignored it
 
GGG
yeah i automatically filter stuff like that out
 
7:55 PM
nice play
 
GGG
apparently twice if necessary
@JinuJD i'm pretty sure dojo is set up like that
 
ok..you people carry on
 
GGG
not that i'd endorse using it
 
Sorry Neal it was for Jinu J D
 
ahhhh haaaa
 
7:56 PM
@JinuJD What frameworks uses the second syntax ?
 
i just needed to know what is the advantage of object literals over constructors with prototypes..
 
GGG
synth axe
 
:)
 
syntaxe*
I really need to practice...
 
GGG
lol
all good just reminded me of this
 
7:59 PM
0
Q: My first jQuery plugin -- Hefybox

Kyle MaceyI'm getting started with my first official jQuery plugin, and I'm just turning now looking for input. I want to know what I'm doing wrong or right so far and if everything is being developed in a manner that won't cause issue down the road. With no further adieu: $.fn.heftyBox = function(args) {...

 
user1385191
constructor => function => object
 
user1385191
ta-da!
 
var ul = $('#tmpul')[0];
for (var i = 0; i < attributes.length; i++) {
$(ul).attr(attributes[i].name, attributes[i].value);
}
->
i don't think it is very optimized...
 
GGG
ok wtf
can anyone explain why ff and chrome use two different fonts for the suits - jsfiddle.net/wE8te/37
look at the hearts... they look totally different in ff
 
jsfiddle really does not respond or very very slowly today in France
 
GGG
8:07 PM
much wider in ff and doesn't taper to a point as dramatically as chrome
@DieVarDump reload it a few times, it's shitting the bed right now
 
It almost looks the same here
 
GGG
do the ff hearts not look a lot fatter?
 
Just chrome seems to " scale " the chess
 
GGG
they ff hearts on mine are definitely a different glyph
they are fat enough that they run into each other on the high number cards
 
Not here
do you want a screen ?
 
GGG
8:12 PM
if you clould that would be awesome
with chrome and ff hearts side by side :3
 
user1385191
the Chrome hearts are much "fatter" here on OS X
 
GGG
i guess i will have to do js magic to see how wide the characters are and scale them
@MattMcDonald do they also taper at the bottom in a totally different way than the other browsers
like definitely a different glyph
 
user1385191
both Chrome and Opera, actually
 
GGG
fuck js magic it is
i'll have to get the computed width :(
 
user1385191
Opera also doesn't do the glyph flipping
 
8:14 PM
ahaha my computer don't want to screen O_o
 
GGG
@DieVarDump what os are you on?
 
xp
But he never did that... when alt+screen it works
 
GGG
hahah so it works on xp
aren't you screening both windows anyway?
so just prtsc?
@MattMcDonald I didn't put the -o- thingies in yet
i wish everyone would just drop the -browser- prefixes for crap like transform
makes the css like 4 times bigger
 
arf quality is shitty
reboot time, maybe it'll fix it
 
GGG
@DieVarDump thanks... this is good
they all taper like my chrome ones
 
8:24 PM
Those are completely different characters
 
GGG
i think whatever font i used might have it's own suits glyphs, and my firefox finds them, while other browsers seem to fall back to the hears in your screenshot
@Zirak in the screenshot or live?
 
Screenshot
 
GGG
i don't see the difference in the screenshot
at least it's much more pronounced live for me
the heart is very clearly a different glyph
oh wait
the queens
totally different
 
The horses are completely different, and so are the queens and kings. It's not even subtle
 
GGG
yeah so wtf is going on
 
8:26 PM
The right horse has a giant white stripe, has eyes and mouth, and is gigantic
 
GGG
some of these browsers are finding the glyphs in the specified font and some are falling back to another font i guess
i wonder how to fix that
 
Font rendering. Sucks.
 
GGG
the weird thing is the face cards are the same for me between ff/chrome but the hearts are different
argh
 
guys, I have tiny problem with Tiny Scrollbar plugin for jquery. please help (( stackoverflow.com/questions/9166720/…
 
GGG
i'm just gonna have to get computed width and scale things dynamically
fuuuuck
 
8:29 PM
uhhhh
 
GGG
better idea?
 
why is Foo.arguments !== Foo['arguments']
 
0
Q: Tiny Scrollbar doesn't work for twice in web page

JohnI want to use Tiny Scrollbar (http://baijs.nl/tinyscrollbar) for more than one box in my web-page, but it works only for one box. Here is my example: http://johnus.hostzi.com/example/ As you see the scrollbar works only in first box, it doesn't work in second one. So, how can I solve this proble...

 
stupid magic
oh yeah... sure now it's working
 
GGG
lol what are you doing
 
8:30 PM
@GGG If it makes you feel better, I'm trying to find a regex that matches "what's a squid?", "what is a squid?", "what squid is" and their plural forms.
 
GGG
@Zirak /what.*squid/
 
So far, it looks like this: what(?:\'s)?\s(?:(?:is|are)\s)?(?:(?:an|a)\s)?([\w\s\-]+)(?:\s(?:are|is))?\?? And it doesn't work for "what squid is" (and the plural version of it)
 
@GGG Now do that for every possible word value of squid, including multiple words
 
GGG
i think what you want is to throw out stopwords
 
8:32 PM
Also, stuff like "what did I eat for breakfest? oh yeah, a squid!" Shouldn't pass..
 
Isn't there anyone can help me ? ((( stackoverflow.com/questions/9166720/…
 
GGG
first scan it for a question... who, what, when, etc
then remove stopwords like is, are, at, etc
maybe just cheat and remove 3 letter words or smaller
 
@John If we wanted to or were interested, we'd say so
 
GGG
the rest of the words are important
 
"what's is" is also possible
 
GGG
8:33 PM
no it's not
 
Since is is a word
 
GGG
define is
separate command
 
!!/tell GGG define is
@Zirak is: i's definition: equal. (source)
 
GGG
i's definition?
 
uuuhhh, that shouldn't have done that, but here: dictionary.reference.com/browse/is?r=75&src=ref&ch=dic
 
8:34 PM
@IvoWetzel anyone talking about that reddit iama that a former zynga employee wrote
 
user1385191
2 messages moved to bin
 
user1385191
>> "foo's bar is a baz when bing  boom bang".split(/\s+/);
Array ["foo's", "bar", "is", "a", "baz", "when", "bing", "boom", "bang"]
 
GGG
@Zirak i wouldn't try to write a natural language parser with regex
yeah splitting it into tokens and iterating might be good
but in your case i think "what is" might be a single token
 
user1385191
you can use /\W/ as well, but it will split on apostrophes
 
It doesn't have to make sense. At all, really. As far as the bot is concerned, what's are an banana is is a valid thing
 
GGG
8:37 PM
yeah i'd still go with find the question token (what's) and the subject (banana) by throwing out stopwords
 
hhmm, parsing through words could work...another problem is that I want it to be able to be a part of a sentence, like tell me what's a banana or what's a banana? Tell me in the name of the Lord!
 
interesting read
 
GGG
you could throw out stopwords one by one and if only a stopword is left, treat it as the subject
for "what is an is"
 
user1385191
yeah, that AMA makes Zynga seem like a really greedy, evil Google
 
8:38 PM
@Loktar Seen that, obviously can't comment on it.
 
@GGG That's an idea
 
GGG
because of evil NDAS? bwahahah
 
ah sorry @IvoWetzel I didnt know if you could or not, just figured thered be talk around the office for sure
I had no idea Bryan Reynolds worked for Zynga until I read that
 
user1385191
the problem is companies mine the internet now when looking for candidates/inspecting employees
 
yeah
Thats not really a problem with them, you just need to learn to keep questionable things private
 
GGG
8:41 PM
yeah where else would they look =/
 
not you but people in general @MattMcDonald
 
0
Q: Tiny Scrollbar doesn't work for twice in web page

JohnI want to use Tiny Scrollbar (http://baijs.nl/tinyscrollbar) for more than one box in my web-page, but it works only for one box. Here is my example: http://johnus.hostzi.com/example/ As you see the scrollbar works only in first box, it doesn't work in second one. So, how can I solve this proble...

 
GGG
buh buh buh... bin it
 

« first day (478 days earlier)      last day (4471 days later) »