« first day (2025 days earlier)      last day (2920 days later) » 

12:00 PM
... so I got to bed a good five hours before usually. can't sleep anymore now. expressing thoughts is hard
 
> sleep is for the weak
 
So I've seen people use yield quite a bit lately, but I have yet to grasp the concept/need for it. Does anyone know a good document/explanation/tutorial on when and how to correctly use yield?
 
'tis the new hipster thing
use it whenever you feel you'd be happy in a hispter coffee place
 
I don't shave much, so I guess i can use it then.
That being said. Hipster coders are way too 2015. These days we go with the lumberjack look.
 
does someone have a good link to respond to this with? I'd like to get across how absolutely backward the mentality is, but everything I write keeps coming up meaner than'd be useful
 
12:05 PM
Just say "ok" ;)
But imho the guy only wants some confirmation that he is on the right track.
 
@DamienOvereem more seriously, I ain't no expert, but it can have an impact on memory consumption, when looping over many db rows for instance
 
A positive impact I hope?:)
 
yeah, +x% memory used
 
where is is a negative integer
 
Is it wrong to use 2 conditions in while?

while ($row = mysql_fetch_array($result) && $i <= $limit) {
 
12:07 PM
@DamienOvereem and you get the answer by testing it... what the shit
 
Also @DamienOvereem github.com/amphp
 
Or ist it safer to write

while ($row = mysql_fetch_array($result) ) {
if($i <= $limit){...}
}
 
@TechTreeDev Well, it's wrong to use a mysql_ function anywhere in code you're currently writing. But other than that it's OK.
 
@TechTreeDev It is still 1 condition. Even if you check 2 things with it.
 
@TechTreeDev Why do you have the limit on the application level?
Just add a LIMIT clause to your query, and the database will return only so many rows.
 
12:09 PM
nice way to find multiple strings between two delimiters please ??
 
@MadaraUchiha It's a crawler. Don't want it to get stuck.
 
select * from `table` limit 5; -- Returns only 5 rows
 
awww, @Madara stole the ball, but I was going to something along the lines of "the confidence you need is given to you right now by the advice of somewhat experienced developpers, who tell you that the right course of action is to test it!" @Paul
 
Gotta run, talk to you guys later.
 
12:10 PM
@Oldskool lataa
 
@MadaraUchiha Hm, that will work, too
 
@FélixGagnon-Grenier :P
 
But why shouldnt I use mysql functions (always worked with pgSQL, so I'm not familar with this one)
 
notsureifserious.mfw
 
!!docs mysql_query
 
12:11 PM
Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
!!canon mysql_*
 
@TechTreeDev They're dead
 
Cannot find the canon for you... :-( Use !!canon list to list all supported canonicals.
 
!!canon list
 
The following canonicals are currently supported: errors - headers - globals - utf8 - parse html - sqli
 
12:12 PM
And have been removed in PHP 7.0
 
Okay, wasn't aware of that. Thank you
Damn, PDO looks nice
 
Ekn
uhm... what would you think if you enter a site and see a lemon on the menu?
(really, not trolling)
 
!!urban rlemon
 
[ rlemon ] The most incredible guy in the universe, end of story. He’s sweet, caring, and truly amazing. He isn’t concerned with himself at all, but instead he’s concerned with other people. He always knows the perfect thing to say and the right time to say it. He takes your breath away and leaves you speechless. And he has a way of making your heart melt like no one else ever will. Robert is so wonderful, it’s almost impossible to find the words to match.
6
 
That it's a fruit shop?
 
12:13 PM
@Jeeves wtf...
 
Lemon is a fruit now?
 
What? It's true cc @rlemon
 
@Saitama It's true
 
@littlepootis Don't know.
 
Ekn
when life gives you lemons... is the context :p
 
12:14 PM
@Ekn lol
 
Ekn
one, single, true lemon to rule ... right on your favorite site's menu.
 
@Ekn You don't make lemonade, you make life TAKE THE LEMONS BACK
 
You make lemonade, or lemon pie.
 
just say fuck the lemons and bail.
 
when life gives you lemons, you write your own urbandictionary entry
 
12:15 PM
@Ekn I would think "ohh, this is the site for me! where do I put my CC info"
 
!!urban Madara Uchiha
 
whatchoo talkin bout willis
 
@PaulCrovella did you even look at it
 
clearly written by "not_rlemon"
 
Ekn
12:15 PM
no way...
 
sheesh
 
Ekn
:D
 
!!urban madara
!!version
 
Ekn
12:16 PM
ok... I think there'll be a lemon...
it might sound ridiculos and stupid
but I won't be mad to myself, at all
 
lemons never sound stupid
well..
nvm
 
@rlemon yeah, but r lemons…
 
Do votes get reset on urban @rlemon ?
 
@bwoebi in the middle of r street.
@PeeHaa no clue
 
@rlemon ?
 
12:18 PM
!!youtube our house
does your bot youtube?
 
@rlemon nope
 
when life gives you rlemons, you learn the value of contraception?
 
@rlemon feel free to add that instead of complaining :-P
 
ueh ueh ueh
 
12:20 PM
@bwoebi but then I have to write php.. ugh. can you make a js => php interpreter and then I can just use caps youtube command :D
I've avoided php for so long I'm still used to <5
 
@rlemon Then it's time to learn 7
 
not knocking php, but I have no reason to learn it (aside from making bot commands?)
 
@rlemon IIRC @Andrea was already working on it
 
s/working on/toying with/
 
12:22 PM
Isn't that the same thing for her :P
Before you know it it's in vote :P
 
in fact, I'm suffering (and I know you will all agree) converting some CI site I made like 5 years ago to node
has CI got any better?
 
Of course not
 
because it was terrible ...
 
@rlemon That sounds like I would quit my job
 
that it is five years old is no excuse for CI
 
12:23 PM
@rlemon ...
 
Why are we talking about lemons ?
 
@HamZa Nope it didn't work
 
@DamienOvereem because, one lemon to rule them all....
 
!!google lemon
 
as good a subject as any I'd say, but in this particular case it's @Ekn's fault
 
12:24 PM
!!google lemonparty
 
Lemon - Wikipedia, the free encyclopedia The lemon (Citrus × limon) is a species of small evergr… | SportLemon.tv - Sport Lemon - From Sport - Watch Live Sports Online | Health Benefits of Lemon | Organic Facts Health benefits of lemon include treatment of throat in… | Search Url
Urban Dictionary: lemonparty One of the unholy trinity of internet pictures which al… | Lemon Party | Know Your Meme About Lemon Party (domain: lemonparty.org) is a shock s… | Lemon Party - Video | eBaum's World Wayback WHENsday: This is for everyone who has fell vic… | Search Url
 
\o/
 
that was fast @PeeHaa
 
So instead of doing it on localhost
 
12:24 PM
@PeeHaa gj
 
Now I am accessing the api on the server
So its working now
 
I hereby request that all residents of #11 look up said internet picture of "lemonparty"
 
!!urban lemonparty
 
[ lemonparty ] One of the unholy trinity of internet pictures which all must witness to be 'jaded internet users' (tubgirl, goatse, and lemonparty), lemonparty is probably the tamest of the three by just being hardcore old man gay orgy sex. Believe me, the other two are worse.
 
(nsfw warning would be rather mandatory here)
 
12:26 PM
@KshitijPandey no idea what you're talking about. Like I said, it's probably a config issue
 
Uf. Seeing an image popup rather scared me.
 
holy crap, let it die already
 
Earlier the api token generated was on my localhost prestashop
 
hehe
 
12:26 PM
@KshitijPandey (facepalm)
 
s/(facepalm)/
 
yep. that worked.
 
I even have prestashop on the server
so generated an api token from there
and it worked
 
@Saitama
 
how do you make that tag white?
 
12:28 PM
 
[meta-tag:wuddup] @Saitama
 
code igniter is the coolest php framework of all time . give me one good reason to hate it . im still having a hard time letting it go.
11
 
@rlemon ah, thnx!
 
@Hisham You're serious?
 
@KshitijPandey config issue :_)
 
12:29 PM
sure
 
@HamZa Can you please help me one other thing puppy eyes
 
@Hisham really?
 
@Hisham $this->CI = & get_instance()
 
yeah I guess
 
@KshitijPandey I think I might get summoned by my boss. So I might not reply...
 
12:29 PM
Warning: troll detected.
 
No problem
 
TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL TROLL
 
@HamZa You don't get off that easily buddy!
 
... is it the time of the day or is this place getting as derailed as the js room?
 
Guys, he was serious when he said that
 
12:31 PM
@tereško I think I just threw up a little in my mouth
I need some water...
 
@HamZa Issue solved
 
@FélixGagnon-Grenier This is that time of day where the afternoon feels like friday afternoon, but you realize you still have 4.5 days of work left this week.
 
Ekn
I am sorry x_x but I will really need to remind this later on... :)
 
@Ekn For?
 
@littlepootis WHAT?!
 
12:32 PM
heh. oh well let's lemoncoffee my life
 
@tereško shivers
 
Ekn
@MadaraUchiha for lemonizing the room... or whatever :p it is sour, but who doesn't like lemons
 
I hope you've learned your lesson
 
Ekn
I did
 
@Ekn if life gives you lemons, make lemonade from it
 
12:36 PM
stahp
 
Ekn
:)
 
@Gordon Does life also supply a bag of sugar? Or do you just make really bitter lemonade?
 
Salt, lemon and coffee
 
@Danack nothing wrong with bitter lemon. ask schweppes
 
Ekn
12:38 PM
damn, it's been ages since I've heard schweppes
 
> Schweppes Bitter Lemon. Water, sugar, lemon juice 2.6%, carbon dioxide, acidifier: citric acid, flavors: quinine max 85 MG/L, preservative: potassium sorbate, stabilizers: glycerol ester of wood resin, antioxidant: ascorbic acid, colorant Beta-Carotene.
 
@Gordon urghs.
 
still more sugar than lemon ;-)
 
@Gordon No, you make life take the lemons BACK!
Get mad! I don't want you damn lemons, what am I going to do with these?!
Demand to see life's manager!
 
I hate you people.
 
12:39 PM
@MadaraUchiha well, lemonade
 
I'm gonna have my engineers invent a combustible lemon, that BURNS YOUR HOUSE DOWN!
 
Is there a better name for a "test double" that is more generic, and less 'coupled' to testing?
 
@PaulCrovella what's up?
 
@Danack Mock?
 
12:39 PM
@MadaraUchiha Moderate damnit! Moderate!
#tooManyLemons
 
@PaulCrovella tell that to Updog!
 
@MadaraUchiha I want to imply that it's a real alternative implementation ....not something that isn't real. "test double" and "mock" both kind of imply "this is not a real implementation".
 
@Saitama hah, so @MadaraUchiha blatantly plagiarized without attribution. and that from a mod
 
12:41 PM
@Gordon Wait
 
@Gordon yes...
 
You seriously don't know where that's from?
 
@MadaraUchiha from Updog?
 
I much prefer this.
 
12:42 PM
@Gordon Stop what you're doing, go home, and play Portal 2 (after Portal 1, if you haven't) right now
 
@MadaraUchiha i've finished both portals. portal 2 even in coop mode. cannot remember that
 
RIGHT NOW
 
@Gordon wut
 
Did we reach JS room niveau?
 
12:43 PM
!!youtube cave johnson lemon rant
 
I must admit I totally missed that aswell.
 
Could we at least try to minimize the number of gfis please
 
@bwoebi Please.... save... us....
 
@Gordon @DamienOvereem
 
E_TOO_LONG_AGO
 
12:44 PM
@DamienOvereem Need room owner power to kick people for like one min…
 
@MadaraUchiha I need to play that part with the white goo again
 
I am disappointed no one fell for my Updog traps
 
Better ask @PeeHaa
 
@Ocramius That's what.... she said?
 
@Ocramius spare us from your second life stories
 
12:45 PM
LOL
 
Ekn
... the conversion gel?
 
Hey guys, I hope i meet you well.
I'm trying to calculate an influence score on scale 0 - 10.
Of posts in a group of posts.
Each posts has like, comments and shares.
I have the total weighted score as (0.5 * share_count ) + (0.15 * like_count) + (0.35 * comment_count)
and the total score as share_count + like_count + comment_count
This is for one post.

Now I do the same for all the posts in a group to get both the group weighted total score and group total score. Now my question is: with all these parameters, how do I find the influence of a post in the group?
 
@DamienOvereem hahaha
@KshitijPandey cool
Well it was about my "intern evaluation". It went well!
 

« first day (2025 days earlier)      last day (2920 days later) »