« first day (598 days earlier)      last day (4575 days later) » 

00:03
Core/Base (aka micro solutions) Utility Parts
- jQuery
-.-
What is with people claiming jQuery is a core / micro / utility library
00:17
If you wrap shit around shit, shit's still the core?
Ugh, I had to author a jQueryUI widget. $.widget is the biggest sack of crap I've seen in my life.
 
4 hours later…
04:27
0
Q: how can i check all ul of nested checkboxes

MikeQuestion: I have a category listing which some categories have children, I am trying to create a ALL category that when clicked, will check all sibling checkboxes in that same category. e.g; clicking ALL underneath the MUSIC category would check blues, jazz, rock n roll Code: HTML: <ul na...

04:39
good stuffs
04:50
his answer ?
05:48
RT @pornelski: E4H: @Hixie calls for implementations: http://www.hixie.ch/specs/e4h/strawman /cc @kuvos
06:01
1
Q: Tinymce dynamically generated icon list

guitarlassi'm trying to create dynamically generated icon list for tiny mce. I have written all related php functions i call the function through following code. $.post(url_file, { content_name: $class_name, page_url: filePath, app_code: app_code }, function(data){ var...

06:42
@rlemon I think django > ror :p
@rlemon looks like you'd like openatrium openatrium.com too
heh, I'm thinking of a new language in the browser parsed by javascript itself, it'd be damn slow :D
07:23
:P
hello @Esailija :-)
ohai
when I think that the most upvoted answers are the simplest ones -_-
though I maintain that hash table is a low level implementation of associative array
because wikipedia says so
yes, but associative arrays are not available everywhere
man, the comments... -_-
there is no way to get the reference of an object, right?
what do you mean
you can have "weakmap shim" where you just use 2 arrays
O(n²) everything and extremely prone to memory leaks
I have never needed anything like that in javascript
neither have I
08:16
oh, didn't know the oninvalid event
what is that
How is the finished string/value passed to the server is it an array or a csv? — Lawrence Cherone 7 mins ago
08:55
haha
I haz censored :(
Hello again.. Is there some way to refresh the UI of the entire content of a div with data-role field contain in jquerymobile? i tried trigger('create') but it gives me a strange error loading the content..
saw this image on some porter stemming post however. teddziuba.com/2008/07/porter-stemming-makes-me-rage.html
@BeNdErR elem.className = elem.className will trigger a reflow
like $(div).fieldcontain()?
oh
learn the dom...
let me try
thanks
08:58
or elem.className += '' for the matter
0
Q: How do you keep code with continuations/callbacks readable?

HeinziSummary: Are there some well-established best-practice patterns that I can follow to keep my code readable in spite of using asynchronous code and callbacks? I'm using a JavaScript library that does a lot of stuff asynchronously and heavily relies on callbacks. It seems that writing a simple ...

it's not working :(
var a = document.getElementById('endSessionForm');
alert(a.className);
a.className += '';
09:19
@FlorianMargaine guess what im wasting time on :D
var a = new Lexer(".div.class#id[type=lol][name|='value'][name*='value'][name~='value'][name$='value'][name='value'][name='value'][name!='value'][name^='value'][name]");
var b = [], token;
while( token = a.nextToken() ) {
b.push( token.text );
}
["div", "class", "id", "type", "=", "lo", "]", "name", "|=", "value", "]", "name", "*=", "value", "]", "name", "~=", "value", "]", "name", "$=", "value", "]", "name", "=", "value", "]", "name", "=", "value", "]", "name", "!=", "value", "]", "name", "^=", "value", "]", "name", "]"]
3 hours ago, by Florian Margaine
heh, I'm thinking of a new language in the browser parsed by javascript itself, it'd be damn slow :D
this? :D
nah just writing a selector engine
oh :(
looks like you're rewriting sizzle
sizzle is just using some ad hoc regexes
but yea it's good enough so this is wasting time
it's fun though
RT @mozhacks: Using window.matchMedia to do media queries in JavaScript: https://hacks.mozilla.org/2012/06/using-window-matchmedia-to-do-media-queries-in-javascript/
09:36
Hi guys
anyone here had experience with using SignalR?
o/
hey, how are you?
@AndyE o/
dammit, i'm feeling sick :/
09:47
hi, I'm fine, contrarily to you
so, I win!
/o/
guys i need a little help here, this i what i was doing

foreach ($query as $queryval) {

echo $catid = $queryval['id'];
$secondqry = mysql_query("select * from table where id='$catid'");
while($secondqueryval = mysql_fetch_array($secondqry)) {
<div class="pic" >
<ul style="list-style-type:none; display:block; margin:0px; padding:0px;">
<li><img src="gallery/thumb_<?=$secondqueryval['image_url']?>" class ="getimagestack" border="0"/></li>

</ul>
</div>

} }

so i have a .click() function on getimagestack but somehow i need to pass $catid for that image, since i have declared some variable
indeed ;)
j/k, take some medic if needed.
@AndyE o/
it sucks because i'm going to a big festival in two days
@Sibu you're doing it wrong
09:48
hope that i'll get fine until then
doing a query in a foreach is always wrong, no matter what you're doing
@GNi33 take some big medics.
@FlorianMargaine can you help??
@FlorianMargaine i needed to display some images based on the categories
@Sibu add data-category="<?php echo $catid; ?>" to your img element
@FlorianMargaine can be explain ?? i did not understand
have a look at data-attributes and what they are used for
.getAttribute will help you
10:00
how to flag "no research has been made on this question" questions?
-2
Q: Javascript acces array element inside an array of arrays

Gobliinsvar outer = new Array(); var inner = new Array(); inner[0] = "target"; outer[0]=inner; So in Javascript whats the correct syntax to access the string target? var target = outer[0][0]; or sth. like var target = outer[0].[0];

meh, accepting answers without upvoting them is so....
hey, got an easy one
0
Q: how to check multiple radio button, radio buttons having same name?

user1437053I want to check multiple radio-button, all radio buttons having same name but different ids... here is my html code.... <span style="float:left;margin:0 0 0 10px">Proactivity</span> <label for="q11" style="width:auto;margin:0 60px 0 0;padding:0;"><input type="radio"...

the html is fucked up big time :/
rofl at the user name
@FlorianMargaine i tried what u said..but if there are multiple images i need to get the id of the image that is clicked..
$(e.target).attr('id')
10:17
@FlorianMargaine <img src="img1.png" class="getimagestack" data-category="12" >
<img src="img2.png" class="getimagestack" data-category="13" > so i need to get data-category of the image that being clicked
but always i get a constant value???
without code, not much help can be provided
@FlorianMargaine this is what i was trying foreach ($query as $queryval) {
echo $catid = $queryval['id'];
$secondqry = mysql_query("select * from table where id='$catid'");
while($secondqueryval = mysql_fetch_array($secondqry)) {
<div class="pic" >
<ul style="list-style-type:none; display:block; margin:0px; padding:0px;">
<li><img src="gallery/thumb_<?=$secondqueryval['image_url']?>" class ="getimagestack" border="0"/></li>

</ul>
there is no javascript code there
@FlorianMargaine sorry my mistake $('.getimagestack').click(function(){alert($('img').attr("data-category")); }
$('.getimagestack').click(function(e) {
    alert($(e.target).data("category"));
});
10:32
@FlorianMargaine thanks man..its working now :-) you were very helpful..thanks
down vote, just code-answer

:P
code-answers can be good
jk, was referring to your meta - question ;)
I know :p
I was referring to the meta answer :D
10:45
:D
does it deserve a close vote?
0
Q: Running REST with cxf-jax rs

mSick CodesJun 05, 2012 3:59:12 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.7.0_04/jre/lib/i386/server:/usr/java/jdk1.7.0_04/jre/lib/i...

he's just pasting his error and says "what's wrong guys?"
yay, got 4k rep /o/
11:26
Hi everyone..I have got a jquery question-Which is faster ? $("#parentDiv #deeperChildDiv") or $("#parentDiv").find("#deeperChildDiv").I feel $("#parentDiv #deeperChildDiv") should be faster because #parentDiv #deeperChildDiv is available as a CSS selector.Is my observation correct?
@user700284 Run it on jsperf and check. Also you should be able to simplify this to just $("#deeperChildDiv") because your ids should be unique.
12:01
That was a typo.. I meant .deeperChildDiv
@rlemon took a look at openatrium?
looking now :)
looks nice - this is just a Drupal distro?
hey look, the guys who made openPublic.
it's a drupal distro yeah
looking openpublic :p
looks nice too
> I was in a pub the other night and saw two large girls by the bar. They both had strange accents so I said "Hello, are you two girls from Scotland?" One of them screamed "Its WALES you idiot!" So I immediately apologized and said "Sorry are you two whales from Scotland?"
12:22
Recently a routine police patrol was parked outside a bar in Donegal Town. After last call, the officer noticed a man leaving the bar so apparently intoxicated that he could barely walk. The man stumbled around the parking lot for a few minutes, with the officer quietly observing.

After what seemed an eternity, in which he tried his keys on five different vehicles, the man managed to find his car and fall into it. He sat there for a few minutes as a number of other patrons left the bar and drove off.
longer, but still effing funny joke.
sorry got my friday funnies late.
hahaha
wait, it's friday?
no, it isn't
fu :(
12:35
rebecca black?
everytime i read friday, i have to think about this song :( FML
anybody seen @OctavianDamiean lately?
not really
anybody got experience with js data-visualization - libraries?
not sure what i should use for an upcoming project
had a look at d3.js, sigma.js and processing, but i have no idea what the pros and cons of each of these are
what do you mean with data-visualization? something like google chart api or highlight.js?
not really charts
cloud / network for one application
pretty much something like this
12:43
and, for another part of the application, something like that -> bost.ocks.org/mike/sankey
but i'd like to use one lib only after all
look at D3
did you do anything with D3 already?
@rlemon look at this
3 mins ago, by GNi33
had a look at d3.js, sigma.js and processing, but i have no idea what the pros and cons of each of these are
:D
12:43
ohh
lol
missed that :P
had a look at it, it looks nice, but i guess I should dig into it a little
no I have not, just peeked at the api
looks nice.
it's pure SVG, right?
cause that sigma - example i posted uses canvas and I really like how it performs
i guess i'll just have to grab either d3 or sigma tonight and play a little :)
12:47
idk, never used sigma or even looked at it
> Uncaught TypeError: Cannot read property 'positionFixed' of undefined drupal.js:382
thougts about processing.js?
@FlorianMargaine I googled the crap outta this and nothing
other than resig made it :D
well if JR made it, chi ching! it's gotta be gold
<--- also known as JR in some circles
;-)
12:50
@rlemon uh, where did you get this?
on the install page
does it install?
nope
@RyanKinal John Reagan?
12:51
@FlorianMargaine "Just Ryan" or (more jokingly) "JavaScript Ryan"
tried disabling js?
In the state of California i'm known as "Sex offender #465"
rofl
I mean... SEX CRIMES ARE HORRIBLE AND SERIOUS DON'T JOKE ABOUT THAT
Long story, but ends with the pickup line "Hey, my name is Rob, but you probably know me better as 'Hey you in the bushes!'...."
@rlemon are you sure you didn't fuck up the file install?
12:57
i'll unpack it again
@rlemon using ubuntu 12.04 ?
yup
ffs same error
I wanted to use it but ... it fails with my awesome soundcard
@rlemon is jQuery gettng loaded ?
13:03
wtf it uses 1.2.6
IRC room is unresponsive
I ARGH SEA! Where Pirates Live!
Thats my new best pirate joke
Eye Argh Sea, where Pirates go to talk
@rlemon openatrium isn't on d7 yet?
/me goes back to cave
@Loktar :-( I didnt understood it
@Abhishek pirates say ARGHH
13:09
1.2.6 is d6 version of jquery
and sail the sea
and
they say yaarr too :D
@FlorianMargaine looks to be so
Hello again, i need to pass an array into a string that has to be appended inside a web page, like:

var array = ["abc","def"];
var aaa = "<a href='#' onclick=\"func("+array+")\">CLICK ME</a>";
$(div).append(aaa);

function func(array){alert(array[0]+" - "+array[1]);}

how can I pass that array as an object to the function?
don't use onclick
13:12
what I should use?
Seriously Linux is more productive then WindoZ
@rlemon did you try to disable javascript for the install?
i thought windows was designed for productivity :-(
@Abhishek did you yum install vim-nox?
13:12
no, windows was designed for masses
sudo yum install vim-nox
var arr = ["abc","def"];
var aaa = $("<a></a>");
aaa.attr('href', '#');
aaa.on('click', function(e) {
     func(arr);
});
anybody knows this noob C++ question ,

how to convert a char* buffer to int values ?
var arr = new Array( 'abc', 'def' ),
    $( '<a></a>' )
        .prop( 'href', '#' )
        .on( 'click', function( e ) {
            func( arr );
        } );
mmmm so I should manually add a click listener to each <a> tag
13:14
when i try
int  a = char_buffer[0];
v8 throws me errors :-( with segmentation
@rlemon beat that short-readable code!
@Abhishek isn't it int a = (int) char_buffer[0]; ?
still same
@FlorianMargaine good call
hehe no error bug just hangs on the same page
@Abhishek int a = atoi( char_buffer[0] );
@rlemon @FlorianMargaine it's valid even if I need to create more than one links, with a for cycle, where every link has his own array passed to the function?
13:17
@BeNdErR what is the purpose? what are you trying to achieve
sounds like your making a mountain of a mole hill
i'll try to explain:
i have an array of strings, like array=["abc","def","ghi"]
i need to do something like this:
hm, wait, atoi is deprecated, go for something like (int)strtol(nptr, NULL, 10) @Abhishek
(o_O)
okay
better error management from what I read.
for (i = 0; i<array.length; i++){
$(div).append("<a onclick="function(array[i])"></a>
}
but array[i] has to be an array
not the string
13:19
but strtol returns a double and can cast to a lot of bases (from 2 to 36, it's the third parameter)
Why do people suck at explaining everything :P

@BeNdErR I don't want to know what your code is; I want to know what you want the page to do...
@rlemon has to display different links, each one calling the function with a different parameter value
like "Yo so I have this table right, and I have an action button for each row, and on click I need it to pass three values to a function for processing"
how are you generating the array values? server side?
@Abhishek otherwise, look here for what suits you best cplusplus.com/forum/articles/9645/#msg44710
@rlemon database
13:21
then don't do this with JS
pure and simple
eh.. all the application is based on jquerymobile
eh... if you know the element needs to exist pre render, and you know the values you need to attach to it... why are you passing that as JS then rendering client side.
you are not taking any work away from the server
so instead of echo "var array = [...];" just generate the HTML with something like this
-2
Q: How set value of text field using javascript?

yatinI have one select combo box and it has four fields and beside that there is one text box now I want set value of that text field on the basis of value selected in select combo box. if I select first option then textfield value should be first if I select second option then text field value shoul...

15 questions, 6 answered, not a single one accepted
<a class="something" data-val1="val1" data-val2="val2" data-val3="val3">something</a>
$(".something").on("click", function() {
      func( $(this).data('val1'), $(this).data('val2'), $(this).data('val3') );
});
something like this i think would be better
maybe not exactly this
<a class=".something" ? Reaaaaally?
13:25
lulz
w/e i was typing quick
..something { font-weight: bold; }
@rlemon you're contaminated by jQuery. JR will come in your dreams.
JR makes me think of Tolkien btw ._.
Resig kinda looks like a hobbit
it's not the same as to add onclick event to $(something) client side (as you told me before)?
13:27
@RyanKinal does that even work? hm... no, html attributes don't accept this kind of string
@BeNdErR render the element with the data attached to it, not as separate arrays of data. you will need JS to attach the click even to it, but not to store the data.
see
hobbit
just in case anyone is doubting jsfiddle.net/Ralt/CVXwZ
@rlemon where is the ring?
Sam has no ring
Sam has gay love for Frodo
totally :/
13:29
not that there is anything wrong with that...
is JR gay?
@rlemon dunno where you got that picture, but he totally looks like a hobbit there indeed :D
Dude. I typed "Frodo, Samwise" into Google, and the first suggestion that came up was "Frodo Samwise gay"
@rlemon i could use your 2nd advice, but I NEED to use something like 1st one you gave me :( (use JS for building everithing up)
Is that really the most popular thing that people search for?
WTF
13:31
btw let me try
@rlemon tl;dw
13:57
0
Q: boolean with separate "setters"

jamessonI need to design a global boolean with 2 conditions a and b such that if A is ever true, the boolean is true until b is true, at which point the boolean is false. In other words, if A becomes false the boolean remains true. Preferrably javascript, but pseudocode would be almost as helpful. Man...

Anyone feel like providing me some insight.
0
Q: Backbone.js templating requiring invalid html in Phonegap?

James P. Wrighttl;dr : In my template file, if I don't have invalid html, the template won't display in Phonegap. The HTML for my index looks like this: <body onload="onBodyLoad()"> <div data-role="page"> <a href="#login" id="clickme">Click to go to Login</a> </div...

this is a weird one. I'm sure it's something wrong with my code, but I have no clue what.
14:34
@JamesPWright you're welcome :p
@FlorianMargaine : not sure if you remember my templating problems from yesterday but I figured out that the use of $.get() on Phonegap wasn't working. Something to do with async. So I switched to $.ajax() and set async=false. That allowed me to load the files from the local filesystem for my templates.
This problem is giving me the same error as yesterday
this.template = _.template(temp);
That line of code is returning {"message":"'undefined' is not a function"}
I guess that's because _.template() is asynchronous
but _.template() is working with a variable that is a string
and why would it work every single time if I have invalid html?
That's the part that is blowing my mind. Works flawlessly across all platforms (Chrome, PhoneGap and Mobile Safari) if I have a single, invalid html tag. ??????
I suppose that means the templating system (tpl) is not actually loading the template when the html is valid.
Anyone wanna do some image editing for me :P :P :P
only if it involves opening in Paint and typing in red text.
that's the extent of my abilities anyway
14:46
I like this logo, but I need it to obviously have new text
I cannot seem to produce that in Gimp
(probably could in PS if I had it on this PC)
@rlemon i challenge you to do that with CSS3
@Abhishek you can! then take a screenshot of it and send it to me (high res please)
its simple
use the text-mask
what font?
14:47
in webkit
and put it on a gradient
idk (XD)
@rlemon just use typesetting.js :D
anyone? anyone? All fonts look the same to me :P
thats your headache :3
same
that looks like tahoma (kidding)
typesetting.js does not do this type of thing :P
pure css3 does
and lol at corporate clean, that must be the most used drupal theme ^^
according to whatfontis.com, the font is...........any one of a hundred fonts that look nothing like it.......so that site is useless
i love desk
outch at the code
4
Q: Can I run this nested functions in a better way?

RolandI was just wondering if I could run this functions in a better way, I mean I don't like the collection of functions in there : setTimeout(function() { $(self.header_buttons_classes[0]).addClass(self.animations[15]); setTimeout(function() { $(self.header_buttons_classe...

14:51
@FlorianMargaine bahahaha wow!!
Myriad Pro
I actually think that's 2 different fonts rlemon
@FlorianMargaine it looks nice
and it's not a public facing site
so I just grabbed the first thing that didn't look all drupally
and that logo is slick :P just too bad they don't provide you with the source
14:52
for the administration theme, keep with the default theme however
you may encounter bugs with contrib themes <<
o rly
i haven't seen them yet but good tip
@rlemon this is just a stab in the dark but it looks like Calibri
well the content uses Myriad Pro
Calibri Bold (not bolded)
it's a nice font - but too rounded to be what they use :)
yup
myrad pro it is
14:55
@rlemon Hi all ^_^
hmmm still have that rlemon issue, funn :-P
@Neal still making you auto-ping me eh?
:)
yea. it is quite annoying
it is whenever I open this chat up in a new tab
imagine how I feel
"ohhh haaay, neals online"
haha sorry
tis ok
want the fix for it?
14:56
Well it wants me to wake u up all the time it seems lol
@rlemon what is the fix?
... writing it
oook
I threw my hat into the Mod Election ring
w00t

« first day (598 days earlier)      last day (4575 days later) »