« first day (447 days earlier)      last day (3341 days later) » 

2:09 AM
I have a mysql database table with 2000 rows in it and within each row there is a cell called catName which contains the category name. Each category has around 10 rows which match it. I want to construct a query that calls around 10 categories, which would be around 100 rows, what is the most efficient way of doing this?

Should I use myqsl WHERE catName IN (category1, category2, category3, etc) or is it more efficient to just grab all the rows and sort with php? Or is there a better option that I am missing?
 
should probably ping someone that knows SQL well or else it might go unnoticed. You're unlikely to get a response for a few hours
 
Who do you recommend? I would try the mysql room except no one has posted there in a day
 
From what I've seen Wes knows a good bit about SQL. Not sure who else knows it well
 
I'll go with option 1 for the moment and then get @ObiWanWesabi to look over it when he wakes up, thanks Wes :D
Assuming he is sleeping. What part of the world is Wes from?
 
Italia!
^^ One of the few Italian words I know, haha
 
2:17 AM
lol! I've wanted to go to Italy ever since I watched Italian job as a kid, especially Venice. 4:17 am there apparently so probably sleeping
 
knowing Wes he'll be up soon. Doesn't sleep much at all
 
 
2 hours later…
4:01 AM
 
user652649
4:44 AM
@ZachSaucier indeed
 
user652649
 
user652649
questi giorni quando viene il bel sole
 
user652649
@joshhunt you should use a join if possible
 
user652649
and also selecting by the category name will be very slow, you should use numeric IDs
 
user652649
4:49 AM
buongiorno!
 
@ICanHasKittenz very good morning
 
user652649
someone using a custom theme for chrome? trying to understand if there are themes that cover also the style of popups (which seem to use always the default theme, but maybe it's bad luck)
 
I didn't even know we had themes for chrome lol
by popup u mean the alert box?
 
user652649
i mean actual popup windows (those opened via window.open())
 
5:04 AM
let me switch to a theme and give it a try
 
user652649
:D thanks
 
morning
 
user652649
ola
 
whats cooking
 
user652649
css soup
 
5:16 AM
make sure it tastes good
still downloading :/
 
user652649
starcraft?
 
Good Morning
 
@ObiWanWesabi tried most no luck :/, the issue seems to have been reported already but no fix yet
 
@ObiWanWesabi yes
 
user652649
Status: WontFix
 
user652649
5:24 AM
dammit
 
they don't see it as a bug lol
even though some switched to FF coz of this
 
user652649
@ICanHasKittenz well, that's silly
 
user652649
but since they are firefox users, everything's normal :D
 
white red or blue?
 
@Mr.Alien whatchu downloading?
 
5:30 AM
posted on July 21, 2014

Previous First thing monday morning I found myself underneath the desk of an employee. Me: You’ve a lot of stuff plugged in under here. My face was inches away from three power strips all daisy chained together. Every port was filled with various chargers, printers and screens. I wriggled myself out from under the desk and quickly snatched up my Monday morning coffee. The employee loo

 
nvm, jus read
anyone tried gzip on server for php?
 
not for girls ^^
 
@Mr.Alien are u provoking me? ~.~
gameplay looks mess though lol, not my type
 
user652649
@ICanHasKittenz how about this? youtube.com/watch?v=e3Ki6rs7JCk :D
 
@ICanHasKittenz nice reason to avoid
 
5:35 AM
@ObiWanWesabi I'm cool with aoe, used to play when I was a kid
@Mr.Alien I like teamwork games though, is that an online version?
 
@ICanHasKittenz yes
@ObiWanWesabi she is still a kid
 
@Mr.Alien what's the size of it? let me know if you find the game interesting, I'll join
 
@ICanHasKittenz it is, and hence I bought, I would suggest you to check out game play on youtube, it is 90% similar to Age of empires, the only difference is you can fight human vs alien or alien vs alien, or human vs human
 
@Mr.Alien oh it's paid, price?
 
user652649
it is not similar to age of empires at all. it is for mad people :D it has too many options to be fun, imho. in age of empires you just use raw strategy, learning curve is way easier
 
5:44 AM
those good old days, but it all got ruined when they released cheats
 
@ObiWanWesabi I will buy AOE once I get it under 20k and ohh please, this is fun and is similar to aoe, extract minerals, gases, build units etc
 
the blue ferrari car?
 
@ICanHasKittenz 20$
@ICanHasKittenz haha yes, flapping their doors and throwing tiny missiles ...
finally downloaded..
 
6:11 AM
<h1>
<a href="./"><img alt="Outsourced" src="./images/logos/outsourced_logo.png"/></a>
</h1>
the h1 pushes <a> to down
what is the reason?
 
user652649
<img style="display:block" @JanakaRRajapaksha
 
user652649
or vertical-align:top
 
@ObiWanWesabi thanks, it fixes, but then <a> is not covering the area. but link works.
 
user652649
a{display:inline-block}
 
wow, great, thanks a lot
 
6:32 AM
posted on July 21, 2014 by nlecointre

/* by unvector */

 
6:48 AM
and I lost the first online game
 
@Mr.Alien gratz newbie
 
@ICanHasKittenz was so much fun, game lasted for 5 mins :P
 
@Mr.Alien u must have been hiding all the time
 
I was busy digging minerals :/
and he came with 15 aliens and destroyed everything, all I had was 5 units with useless guns
 
6:59 AM
What game?
 
ohh I see, today, I got a yearling badge so 2nd aniv of me on this site :D
@SecondRikudo sc2
and why did you uncommitted the proposal?
 
Ah
Because I had a more pressing one to commit to first
(And I already had 3 commits)
The commitment should free up in about 2 weeks, then I'll re-commit
 
yea they are limiting, but we have 5
 
Huh?
You can commit to 5 proposals?
It limits me to 3 only
 
5 for me
 
7:04 AM
No it isn't, you're currently committed to 3...
You're saying you can commit to 2 more?
 
posted on July 21, 2014

New Cyanide and Happiness Comic.

 
@SecondRikudo yup wait
oops, just 3, you are right
but this is weird, when I first committed to moderators, it showed me, 4 commitments left
 
8:03 AM
posted on July 21, 2014 by nlecointre

/* by Vacrial */

 
@SomeGuy yep, what did you think to it?
 
@Loktar you online?
 
8:19 AM
@ICanHasKittenz there?
 
@Justcode yea
 
free for tribo?
 
sure :3
 
hello there, guys!
 
o/
 
8:25 AM
Em, can somebody help me. I trying to make work some progress bar, but without succes : |
I saw this example http://stackoverflow.com/questions/6475238/multiple-response-ajax-request and I was trying to make it like there but soething is wrong.
Here's mine question http://stackoverflow.com/questions/24857346/progress-bar-wont-working-right-way
 
9:12 AM
@DanilGholtsman +1 for visibility
Not got time to solve though
 
user652649
guys is there a way to create repeating image sprites as background-image? with some new beta syntax. maybe i just dreamed of it
 
user652649
like background:rect(0, 10px, 0, 10px, url('blah.png')) repeat-x;
 
user652649
no webkit :(
 
9:31 AM
o/
 
user652649
morning
 
9:53 AM
@Will well, thanks but it actually not help to move it upper i guess he
 
user652649
sum(percentages) / noOfProgressBars
 
Speed: 1024 Kbps/256 Kbps < parents connection brb slitting wrists
 
user652649
nvm read the question @DanilGholtsman sorry for saying the obvious xD
 
user652649
can't help though
 
@ObiWanWesabi lol np dude :3
@ObiWanWesabi +1 just for lulz
 
user652649
10:03 AM
does this work alone?
 
user652649
success: function (data) {
            if (data.done) {
                alert('Done!');
            } else {
                alert('Progress at ' + data.percent + '%');
                console.log(data.percent);
                setTimeout(checkProgress, 100 );
            }
        },
 
user652649
@DanilGholtsman
 
user652649
ah, ok got it, basically you have a second ajax request that asks the server the progress status, right?
 
user652649
do you need to monitor the request progress or the response progress? the download or the upload?
 
Sorry to interrupt, but he could use .notify() ?
 
10:14 AM
@well, none of that - it generates pdf file
so generating progress
 
user652649
no idea how it works with jquery @mikedidthis but
 
user652649
@DanilGholtsman try this pastebin.com/RjtJxnAF
 
user652649
one ajax request only
 
user652649
you need two handlers anyway, one is:
xhr.onprogress = function(){}; (before the pdf generation)
the other is
xhr.upload.onprogress = function(){}; (download of the pdf)
 
user652649
you can add them both
 
user652649
10:16 AM
or perhaps mike has something better to suggest
 
@ObiWanWesabi oh well thank you! I try it right now
 
Men, its a ball ache to explain. Seems like you have it covered.
 
user652649
@DanilGholtsman you won't need the server notify the client with that, since calculation is done on the client side
 
user652649
you only need to be sure to have sent the correct Content-Length response headers
 
user652649
otherwise it wouldn't work
 
user652649
10:19 AM
calculation is based on that
 
user652649
header("Content-Length: " . filesize("pdfjustgenerated.pdf"));
 
user652649
if generation is streamed (you don't save the file locally but you send it directly to the client) it will not work. in this case you will need to get your code working
 
user652649
but i can't help on that
 
well, first I save file locally
 
user652649
so you are fine with that :D
 
user652649
10:24 AM
@mikedidthis how's the life? did you learn some new javascript? :D
 
Bed ridden, I have tonsillitis / quincy.
No new JavaScript, just learned $.deferreds :)
 
user652649
:D sorry for the tonsillitis
 
user652649
how about css? did you make Mario eventually?
 
user652649
:D
 
Thanks man. No CSS can just stay as it is.
 
10:28 AM
How to look smart in meetings medium.com/comedy-corner/…
4
 
user652649
@mikedidthis :o
 
user652649
is that actually you? wtf?
 
@ObiWanWesabi well, way with the xdr didn't worked :P
xhr*
 
user652649
did you check the console?
 
user652649
10:35 AM
empty?
 
user652649
how big are those pdfs? if they are small you won't see much "progress"
 
user652649
but just the success
 
oh actually on final there are object apperas
progress object
but not when I genereate if step by step
well, pdfs can be from 1mb to let say 50mb
there 9 steps or smth like that
 
user652649
try with a bigger one to see if you get the progess event fired
 
user652649
10:37 AM
8. Ask the presenter to go back a slide @Will lol
 
^^
 
10:52 AM
@ObiWanWesabi well, same sht
 
:17819098 Format your code
Paste, CTRL+K, enter
 
public JsonResult Generate(){
                    //init stuff
                    //there are somtheing like that
                    ProgressInfo progress = new ProgressInfo();
                    progress.Percent = 0;
                    progress.Done = false;
                    if (tabs > 0)
                    {
                        FirstPage();
                        progress.Percent++;
                        Session["reportProgress"] = progress;
                        if (tabs > 1)
oh thank you
@SecondRikudo thx!
 
@DanilGholtsman That doesn't look like HTML, CSS or Web Design...
 
@SecondRikudo well the question was about the progress bar and ajax :P
 
@DanilGholtsman That looks pretty horrible TBH. What are you trying to do?
2
Q: Progress bar won't working right way

Danil GholtsmanOh, hai! I was trying to make progress bar. On server side I created controller, which is can get progress stage and I store stage in Session. On the client side I created two ajax requests. One is starts the functon, which I want to monitoring and the other one just checking progress stage. I m...

this?
 
11:01 AM
yep
 
@DanilGholtsman I'm pretty sure jQuery won't parse a JSON response by default
 
@SecondRikudo it's not a problem. and actually it outpus json object in console
when it's done :P not during the progress
 
@DanilGholtsman How does it output anything to console? You're using alerts
The only console.log I see if in the progress.
 
but it suppose to be there, isn't it?
yeah sorry alert when its done, but I still can call object from console
 
@DanilGholtsman I don't see it in your code...
 
11:05 AM
whatever
@SecondRikudo oh I mean that console log suppose to be in that part you said
 
@DanilGholtsman I don't know, it's up to you. But you aren't using it now, so how can you see anything
 
@SecondRikudo sorry for my english, mabe I said smth wrong. but well, as I think if it would work it was outputing percents in log during some time and it always would be like incrementing
@SecondRikudo but it outputs only once
when its done
 
@DanilGholtsman To console?
 
Can you please remove all alerts from your code?
 
11:10 AM
ofc!
 
And use only console, and then tell me what's outputting to console?
 
@SecondRikudo well, just the same.
"Done!" but in console
 
@DanilGholtsman Please post your new code. In fact, do you have a live sample?
 
how is hearthstone
 
@SecondRikudo updated the question. no I haven't yet :c
 
11:31 AM
is this strange?
 
Ummm, yes?
 
it genereates kinda long time and getprogress should fire every second
but it's just not : |
if I understand it right
i mean it runs only onct
 
Try to make a live version of your code somewhere
 
@SecondRikudo oh well I try but idk when i can do that and how lol
 
11:49 AM
@SecondRikudo hmm you know wha I found out? when I call the generate() function
 
it starts function checkProgress only when generate() function getting the succes
 
12:09 PM
I have a png with a transparent background which render fine for my (on every browser). However at the client the transparent part renders a black in chrome?
I already tried resaving the thing to PNG-24 with no luck. Anybody else hit this before?
 
have they tried a second browser? just curious
 
@PeeHaa transfer mode of your ftp?
 
@ZachSaucier yes same issue
 
@PeeHaa link to png?
 
It's behind firewall of client :(
 
user652649
12:19 PM
@PeeHaa have you tried resaving it with any other program?
 
user652649
also as alien suggested, did you transfer it in binary mode?
 
paint?
:P
 
user652649
i don't think paint supports png
 
user652649
paint.net ?
 
mspaint sure does
 
user652649
12:20 PM
inkscape, gimp
 
<3 me some paint
 
@PeeHaa paint does not support transparency
 
user652649
32 bit png @rlemon ?
 
user652649
:D #fail
 
supports PNGs, yes, but if you edit a transparent photo the transparency is ruined
 
12:21 PM
@ObiWanWesabi you were not specific
 
user652649
it's just because you don't look at old messages
 
sure don't
 
user652649
@PeeHaa upload the img on imgur
 
@ObiWanWesabi imgur.com/MKVorwx
 
@ZachSaucier I don't see you in the friend list yet
 
12:24 PM
lemme get on real quick
 
needed more gif
 
@rlemon lol so 90's
 
@ZachSaucier lost 1st one this morning with some random player :p
game lasted 5 mins
 
expect cheese vs random players
 
12:25 PM
cheese means early pressure - they attack you really quickly
 
see if this is better
 
user652649
 
document.body.style.background = 'url(i.stack.imgur.com/DhsGm.png)';
works for me
 
user652649
it was fine already, but i resaved it
 
I already did that above
1 min ago, by rlemon
user image
get with the program!
READ OLD MESSAGES!
:P
 
user652649
12:27 PM
@rlemon having your period today? :D
 
haven't had my coffee yet
 
Still same issue. Maybe pngcrush can fix me up
 
@PeeHaa I got the issue
 
@Mr.Alien You also get black background?
 
yup, when pasted on a transparent layer in photoshop
 
12:33 PM
huh that is strange. WHat are you diong that I am not? :P
 
use this and see
just a test
 
@Mr.Alien Still no friend request on Americas server
 
@ZachSaucier I will try again wait, I think I sent you on Asia server...
@ZachSaucier what now?
 
nothing
what's your email?
 
wait again
firekillz [at] gmail
 
12:38 PM
:D
sent
 
@Mr.Alien That one works (but is fugly as hell) :P
 
user652649
@Mr.Alien that happens with any png
 
user652649
@PeeHaa what browser is using the client?
 
@ObiWanWesabi no it doesn't
@PeeHaa I know :P give me some time to fix
@ZachSaucier done
 
@PeeHaa your image need made me think of something 'fun'
selects a random image from imgur every 60 seconds and sets it as your background
 
12:50 PM
@ObiWanWesabi same as I am on chrome 36.0.1985.125 m
@rlemon :)
 
code needs cleanup still :P
possibly NSFW?
so far no 'OHH SHIT' moments, i've seen like 4 backgrounds
 
should work now
try it
 
1:09 PM
@rlemon When trying to run the scripts like you said Friday I get this error "Resource interpreted as Script but transferred with MIME type text/plain"
Only difference is I'm looping through and appending to an element with ID, not the body
DynamicPage.prototype.loadScripts = function(container) {
	var scripts = container.getElementsByTagName("script"),
		scriptsLength = scripts.length;
	for(var i = 0; i < scriptsLength; i++) {
		var elm = document.createElement('script');
		elm.src = URL.createObjectURL((new Blob([scripts[i].textContent])));
		container.appendChild(elm);
	}
}
 
pass the mime into createObjectURL
otherwise it defaults to text/plain
 
createObjectURL(blob, mimetype)
 
"Multi-purpose Internet Mail Extensions" - didn't know that
createURLObject doesn't seem to have create support developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL Is the alternative the other method you sent?
 
shit sory
you pass it in when you make the blob
this background switcher is annoying :P
 
1:15 PM
ya, I realized :)
 
I love it
 
user652649
@rlemon honey need some help again xD does it exist a complete visual guide to winapi/wpf components? screenshots of buttons, selectboxes, listviews and so on?
 
and I lose the second game, I really suck when I play aliens
 
For adding webkit prefix to createURLObject, do I format it like this?

elm.src = URL.createObjectURL((new Blob([scripts[i].textContent], { type: "text/javascript" }))) || webkitURL.createObjectURL((new Blob([scripts[i].textContent], { type: "text/javascript" })));
@Mr.Alien I'm glad you're so enthusiastic to play :) I'll have to get on to coach sometime soon
 
user652649
webkit supports URL.createObjectURL unprefixed
 
user652649
1:27 PM
iirc?
 
@ObiWanWesabi In all versions? I'm looking to support as much as possible
 
user652649
elm.src = window[URL || webkitURL].createObjectURL((new Blob([scripts[i].textContent], { type: "text/javascript" })));
 
user652649
seems fine xD
 
Hello all
Simple question
 
1:31 PM
The JS room helped me for once! :D
 
@ZachSaucier enthusiast cuz am done with my work today way early ;)
 
tutorials online are good coaches for the very basics
 
@ZachSaucier Depends
Not for PHP :D
 
Is it possible to improve mark of form which will separate all simillar inputs, i mean i have 2 rows with inputs name="s_name" and then i'm posting i got only one, last replace all. Ok, i change ending of all name attribute with [], but now data consume array for that name, like "test" => array(0=>"hello",1=>"world"), but i want something like array(0=>array("test"=>"hello"),1=>array("test"=>"world"))
 
I am able to play with terrans, but am not getting the alien part
@SecondRikudo ahaha
 
1:34 PM
In another words, is any separator in form ?
for form
 
@Abyss You'll have to change the structure server side
 
So, it's impossibru to change markup ?
 
It's the only sane way.
 
Aw shit
 
You can with [0][test], [1][test] and so on
But that would suck.
And it doesn't scale well
 
1:36 PM
Ye, i want something like <formrow name="test"><input type="text" name="buggie" value="supdude"></formrow> which will provide array("text"=>array("buggie"=>"supdude"))
Seems nothing like that
 
@Abyss That's not how form works
 
@SecondRikudo But it can be implemented, nothing serious
I found fieldset, but it's only for girls
 
@Abyss ...What?
 
Awww.. another js wrappin for form
 
@SecondRikudo I meant for SC
 
1:54 PM
hi
 
hi
 
posted on July 21, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Have you submitted for BAHFest yet?

 
i am new to HTML canvas. I would like to make a nested loop from 0 to image.width and 0 to Image.Height
pseudo code:
for(var i = 0; i < image.width; i+)
{
for(var j = 0; j < image.height; j+)
{
if(image.rgb(i,j)>threshold){image.rgb=1;}
}
}
 

« first day (447 days earlier)      last day (3341 days later) »