« first day (833 days earlier)      last day (4114 days later) » 

5:02 PM
that's pretty ugly, too
 
wow ... i am not sure "ugly" covers it
 
Still better than WordPress
 
!!s/WordPress/phpbb/
 
@ThiefMaster Still better than phpbb (source)
 
5:18 PM
the bot should totally get one item of bullshit from that site from time to time and post it in here!
 
0
Q: JavaScript Social API

Ismael GhalimiI am looking for an open source JavaScript API to multiple social networking sites (Facebook, LinkedIn, Twitter) similar to what AddIn Social does. The server-side component should be able to run on Node.js. Any suggestions?

 
Wow. I decided to give SO main another try. 60 seconds in, I'm already disgusted.
 
@FlorianMargaine I can totally imagine myself doing that
It'd be convenient
 
5:30 PM
I need an idea for a logo
 
How about a large white B on a blue background?
Wait, let me whip something up real quick
 
@SomeKittens you need some help with that logo
 
5:35 PM
 
@AmaanCheval still my favorite dog photo
 
I love this kind of joke
 
m59
@FlorianMargaine lol
when passing arguments to functions and the arguments are also part of a larger array, is it best to pass the array or individual items?
the array is less cluttered and makes it easy to add more functionality if you decide to use more items
but it is less clear why you are passing it and the need for myArray.argument
 
5:42 PM
user image
3
so true ^
 
Your lack of humor is disturbing
 
m59
@FlorianMargaine Great, a funny gif on my screen. Now how I am going to get any work done?
 
@copy My lack of something else would disturb you too.
 
Faith in Jesus ?
 
give me a logo to redesign or something, I wanna do something
 
5:51 PM
I need a big white B on a square with a blue background, please
 
@benlevywebdesign Relying on strangers on the internet for that is like asking Hitler what you should do with your Jewish friend.
 
haha
I'm in a logo creating kinda mood but I need a topic or something
 
I've been keeping track of image tags in 1 column: IMG 1 - [funny,dog,cat,laugh,duck] - but I recently made a new table for tags with rows: funny - IMG1 | dog - IMG1. Should I delete the old column that keeps track of all the tags in blob?
 
Hi, someone can help me to add a code to this script tabs? jsfiddle.net/uVNFp/95
$(function() {
var $tabs = $( "#tabs" );
$tabs.tabs();
var offst = 0;
$('#tabs > div').each(function(index, elem) {
if ($(elem).html().trim() === '') {
$tabs.tabs( "remove" , index - offst);
offst++;
}
});
});
 
@copy That's... not what I expected.
would that disturb you?!
 
6:03 PM
Jesus is our saviour. How can you be so foolish, fool ? You will go to HELL
brb, abortion
2
 
looking for hire if is necesary
 
what r u trying to do?
add the above code?
 
i try hide tab when content is empty
 
Im trying to find what emptys the content..
 
@FlorianMargaine hey you there?
is anyone here knowledgable on css drop down menus? want to know how to put a background image on a link which has children
 
6:11 PM
i want to add in wp theme,, the first tab is a dynamic content and try to hide this tab
when are empty
 
in PHP, 1 min ago, by cab
ok back to jquery oriented programming
 
@Gustavo My fee is $100/hr and a gallon of your finest whiskey
 
im a spanish poor
 
@KirstyHarris JSFiddle
 
6:13 PM
i can't figure out what you're trying to do with it :|
 
ok I created something I think is cool
 
@bushdiver i try hide tab when contetn is empty
 
I call this "seahorse"
 
@SomeKittens you cab do it for less money, someone with skills not take more than 10 minutes
 
So $10 and a half-gallon of "whiskey"
 
6:16 PM
 
haha
 
cool
 
very funny
 
hehe
 
6:17 PM
anyone else clear to help? Im wanting to add an indicator image to show that it has a child in my fiddle... any ideas? jsfiddle.net/rusticblonde/pPCWt/1
 
@KirstyHarris has to be done with js or server-side
or...
 
i read recently that jquery's adoption rate has been increasing through 2012 while other framework adoption rates have decreased....does anyone know of any stats / link that can back this up? Is this a viable question to ask on SO?
 
not viable for SO that's for sure :)
 
@FlorianMargaine ... lol js side? any ideas where i can find the code lol
 
6:23 PM
right...kinda thought that where's a good place to ask?
 
HI all, I want to learn php, dunno where to start tho -_-
 
php room would be a start
 
@FlorianMargaine - you are awesome in this place sir
thank you!
 
Seriously, if anyone with skills can help me and wants to earn € 20 for 10 minutes of your time would appreciate
 
6:25 PM
@KirstyHarris don't think there's some available
but it's just checking whether there are children and do something if so
 
0_o.... hmm need to google that one :S
 
someone know why my duplicated field is override by the new one inside wordress?
 
$('.parents').each(function() {
    if (this.hasChildNodes()) {
        $(this).addClass('indicator');
    }
}
 
every row will get an unique id attribute
 
@KirstyHarris something like this ^
 
6:29 PM
but solution don't work
 
awww your a star
does the .parents refer to class of the menu?
 
@KirstyHarris yeah, and haschildnodes might not be the thing to use
find it out yourself :P
 
slaps head :P
 
@benlevywebdesign I like the original more
 
6:34 PM
why?
in a square shape
 
> I am trying to make a simple game using HTML 5, CSS, and JQuery
0
Q: HTML5 game - Imported JQuery file will not work

Giovann WahI am trying to make a simple game using HTML 5, CSS, and JQuery. However, the imported .js file that I used as a test, "game.js" does not have any effect on the layout of the game (the css code makes the pong paddles blue, but the jquery code is supposed to overwrite and make the paddles red). In...

Seriously?
 
"(the css code makes the pong paddles blue, but the jquery code is supposed to overwrite and make the paddles red)"
 
@benlevywebdesign I don't know. I don't like the yellow with the black
 
m59
@Gustavo what's your issue?
 
The darker yellow starts to look more like an ugly brown
More noticeable because of the contrasting white
 
6:36 PM
@AmaanCheval it goes from yellow to brown. so you got that right
 
no yellow to other yellow
 
@benlevywebdesign Yeah, yeah, I know. The jump from the yellow on the white background to the brown on the black makes it look weird to me
It's objective, though
 
@m59 the solution don't work in wp when first tab is empty, read last coment
 
i did add a middle section so it goes yellow - brown - darker brown
 
6:38 PM
@Kirsty make this look better.jsfiddle.net/rlemon/GfNvp/6/show
Don't worry about responsiveness
 
lol gogogogogogo
 
m59
@Gustavo The solution there makes a lot of sense. Just try to debug it and see what else might be causing a problem.
 
> 59 downloads in the last day //My node package
Holy toast! I'm popular!
 
@m59 if you try to empty fist tab the next tab don't select
 
6:40 PM
Oh, I'm in hoarders.js now!
...along with 21135 other packages
 
@m59 this code work better but i don't know add to mine jsfiddle.net/LpsLK/1
 
@AmaanCheval maybe not a circle background but this:
 
@benlevywebdesign The ellipse does improve it slightly to me
 
m59
@Gustavo I don't see what you mean. You have the code right there that does exactly what you want. Why can't you use that?
 
its more oval/ellipse, correct
 
6:43 PM
@SomeKittens hehe. ever tried installing it? :D
 
Nope. No need to download ALL THE PACKAGES
 
@m59 this code don't work fine when you hide first tab
 
Ron
'$.each(data, function(key, val)
{
rcItemsLi.eq(index++).append('<div class="rc-item-content clear hidden"><p class="rc-item-context">' + val[0] + '</p>' + val[1] + '</div>');
});
rcItemsContent = $('.rc-item-content');'


how can I turn this into something faster, for example:
'$.each(data, function(key, val)
{
rcItemsContent.add($('<div class="rc-item-content clear hidden"><p class="rc-item-context">' + val[0] + '</p>' + val[1] + '</div>').appendTo(rcItemsLi.eq(index++)));
});'
^ it doesnt work ofc.. thats why I ask here
 
okies, leave it with moi
 
m59
6:47 PM
@Gustavo I'm sorry I don't understand :( In the jsFiddle you sent, I removed the content from the first tab and it doesn't show up. Instead, the 2nd tab displays by itself. That is my understanding of what you are asking for.
 
m59 look this jsfiddle.net/tdf22/4 any tab is seleced when first tab is empty
 
And the app just forced quit on me
 
@SomeKittens I did it once. npm hung.
 
@FlorianMargaine Just added myself to hoarder's blacklist
 
m59
@Gustavo $('#tabs:first-child a').attr('id', 'current');
can you just put that somewhere in the code so that it will set the first one to current by default?
Kind of cheap, but i don't have much time right now.
@gustavo oops just a sec. I think I can make this work just fine
 
7:03 PM
⊙▃⊙
 
@m59 thanks, don't worry, i try today to apply a dynamic system tab that work with my theme, because this don't work, I try yesterday with query-ui and work fine, but in this case i have a issue with scrolling anchor div tab...stories to not sleep
 
@florian, u know when i hover over a menu, how to i do it so that the option stays highlighted?
 
Any reason why this isn't working? pastebin.com/UEW5C8iQ
 
anyone ever have jshint tell them that define is not defined when using require? it happens in some of my files but not others
 
@lawm for (i=0; 0<splitted.length; i++){
._.
@KirstyHarris no idea what you mean
 
7:07 PM
@FlorianMargaine Ah I'm stupid.
 
for example, say when i highlight an option and it displays a child, when i roll over that child the background colour changes back to default on the option, but i want it to stay the background color?
 
hm dunno
 
something like this...
.mainmenuwrap ul ul li a:hover > ul li a:active{background-color: #000;}
but it isnt working :S
its like when i hover over a ul ul li, i want the ul li background to stay white
 
Drop-down menus suck
 
@copy dont i know it
im not sure how else to recreate this, hence trying to do it in CSS
and a bit of js
 
7:11 PM
Holy shit that is a long selector chain
 
do you get what i want to do thou @RyanKinal
basically when i roll over the ul ul li i want the background of the hightlight selection to stay the background colour when on hover,... if that makes sence
sense*
 
Looks like you wan't to change the background color of the active link
Yeah, it makes sense
 
but it doesnt seem to be working :S
 
It's tough to determine precedence with that many selectors.
 
i know... im just not sure how else i can do it :S
is it the css thats having a fit?
 
7:15 PM
What does the other selector (non-hover) look like? And where is it located in reference to this one?
I'm not sure
 
basically this is the css
.mainmenuwrap ul li a:hover {background-color: #fff;  border-top-left-radius: 10px;
border-top-right-radius: 10px; }
 
the thing is
she wants a parent selector
something like submenu.li:hover < li.menu { background: something; }
 
so i got the arrow the wrong way?
 
m59
@Gustavo I put my solution as an answer to your posted question.
 
i put < in and it came up with an error
 
7:18 PM
@KirstyHarris The parent selector doesn't exist
 
.mainmenuwrap ul ul li a:hover < ul li a:active{background-color: #000;}
 
m59
@Gustavo I must emphasize that it could be done much better. I just used jQuery to fix it rather than making it work properly to begin with. I have a lot to do at work today. I hope that helps you for now.
 
im lost sorry @RyanKinal
 
I think I am too
Any chance of a working example?
 
@m59 sure, thank you very much, i try now
 
7:21 PM
lol.. yh one sec
 
m59
@Gustavo please let me know how it goes.
 
@KirstyHarris Switch it up so that it uses li:hover instead of a:hover
I think that should solve it.
 
nope :(
 
ggrr. I can't make this posting thing work
 
7:29 PM
@KirstyHarris Not sure what to tell you. Use JS?
 
@SomeKittens o/
 
yh think im going to :)
 
> ProTip™ Feline cephalopod adhesives are great for decorating portable computation devices.
haha, awesome
 
@SomeKittens mongo-helper should not open / close the db on every operation
 
7:32 PM
@Raynos I figured, but wasn't (didn't spend much time searching) able to find an alternative
I assume your mongo package does that?
 
I just memoize the result of mongoclient
then call db.collection(name) each time you want to work with a collection
 
Constantly getting a 302 to /error?aspxerrorpath=/chats/17/messages/new
 
@RyanKinal favor functions over initializer pattern >_>
 
Content Type!
 
@Raynos Why?
 
7:35 PM
because objects and OO are messy
functions + values is cleaner
because there is a very strict seperation between state and pure functions
instead of lumps of complected functions which are stateful
 
I think as long as the state is managed well, it can be very clean.
 
(sent from node)
 
Of course, I haven't explored a functional style completely eaither
 
YES! YES YES YES!
@OctavianDamiean, @AmaanCheval, ^
 
@RyanKinal hidden state is a right pain in the ass
ive recently been very aggressive about minimizing state
have yet to be aggressive about minimizing side effects (it's hard)
of course state exists and that's cool
but I'd rather have one lump of state and have the rest of my code be transformations
instead of lots of little lumps of state and transparent passing of state all over the plalce
 
7:39 PM
@Zirak Awesome! :D
 
if your state is in one place instead of everywhere it's way easier to reason about it
 
I think there's some value in managing specific parts of state in specific places, though. Certain parts of an application just don't care about the state of other parts.
It's not "hidden" - it's abstracted
 
Now, just need to track changing cookies and figure out how to do input...
 
If you have one lump of state, I think it will be harder to manage from a maintainability standpoint. It will be harder to read, and harder on naming conventions.
 
@Zirak :O <3u
 
7:44 PM
Dayum this is neat
 
@RyanKinal agreed
@RyanKinal but I prefer to say that certain parts of the application FILTER the state to the subset it gives a shit abouot
 
@Zirak Dude! Just looked up Parsons, WV. That's literally in the middle of nowhere!
 
Glad I don't live there
 
22
Q: Replace accept rate with citizenship level

Jeff AtwoodI see that accept rate has now been removed from display on questions. I think this is a poor "solution" for reasons that waffles explained well. Take it away waffles! On one hand accept rate bothers me a lot, it is a one-dimensional metric that does not really give me enough information about...

 
7:48 PM
@RyanKinal one lump of state is really nice to maintain, at any moment in time you can actually inspect the entire state of the system and not have to dance around private variables
@RyanKinal as for naming conventions you have the same problem as you have in databases.
 
I guess so. If you're properly organizing everything, it shouldn't matter.
 
The nice thing about stateless is refactoring
It's trivial to change because you can't have side-effects
 
hey @RyanKinal i managed to find a jquery snipit that apparently works with WP... how comes it says unexpected end thou...
jQuery(function($){
$('.menu li:has(".sub-menu")').addClass('has-sub-menu');
});
 
shrug Not sure
@Raynos Well, yeah, but at some level (for most interesting applications) you just need state.
 
Of course you need state
I'm just saying state and logic should be seperate
and not complected
 
7:54 PM
i give up tonight lol! converting this PSD is doing my noggin in!
 
The things that operate on state should be functions that take state as arguments
 
@Raynos In a functional style, sure
 
I'm basically saying fuck OOP.
 
Well, it's easy to see how this (or self or whatever) can be viewed as an argument
 
But viewing each object in an OO style as its own system, especially in JS, you do have a separation of state and things that operate on state.
 
7:56 PM
@Zirak but your mutating this ;)
 
Yes, fragmented state is horrible (especially when it's not accessible). But OO does have the advantage of naming groups - especially in a pure(r) OO language like js
 
@RyanKinal but then your state is spread out everywhere, and every method can have a sideeffect
 
And state functions don't mutate the state?
 
and you cant change any method without understanding who can touch it and who depends on the side effect that method has
@Zirak state functions transform state
@Zirak I will give you that objects are nice for semantically grouping functions together by means of "they are related"
 
So your aversion is to side-effects
 
7:57 PM
I think I want to use packages instead of objects to do so
 
@Raynos As long as the interface, preconditions, and post-conditions are well-defined, it shouldn't matter
It's all about discipline
Just like lack of side-effects when using JS in a functional style
 
@Zirak yes. More importantly my aversion is to other people causing side-effects on me
 
And you have my interest on this - what's the nuance between transforming state and mutating state?
 
@Zirak .slice and .map transform, .splice and .push mutate
transformations can also be lazy
 
ah, k
 
7:59 PM
but fundamentally
 

« first day (833 days earlier)      last day (4114 days later) »