« first day (1621 days earlier)      last day (3326 days later) » 

5:00 PM
@SomeKittens I know someone who did that.
 
@Jhawins got that, and we feel for you... but don't swear like this in a public room
 
Most of what you do with Redis is a single operation like setting and getting stuff. It's perfectly fine to use bluebird with redis.
 
@BenjaminGruenbaum I did that!
 
@JanDvorak no it should not, that's chain and also monads are usually useless in JS for most of what you'd use them in other languages for anyway because there is no pattern matching and there is mutable state.
@SomeKittens nice :)
 
@BenjaminGruenbaum I meant that I shouldn't have to translate your sentences
 
5:00 PM
@FlorianMargaine I know :P
Also, I'm cool with the language @Jhawins is using for what it's worth, Shog uses that sort of language all the time - if you want to make Jhawins stop saying "shit" by all means make Shog stop first :P
Victimless crimes that are really victimless aren't really crimes at all.
 
Tx3
@BenjaminGruenbaum @BenFortune Okay, I understand what you mean. I made a wrapper around Redis client that returns clean promisified versions of the API, but I guess I should either stick with the native one or write my own promise
 
if @Shog uses that sort of language, then yes, I'll kick him
 
@BenjaminGruenbaum not three times per sentence
 
this rule has never been discussed because it's so obvious:
4 mins ago, by Retsam
> Swearing is tolerated so long as 1) you are not using it to insult another user. 2) you are not throwing around curse words like a 10 year old at summer camp. We understand emphasis and frustration can result in a fuck or two, but just try not to get out of hand.
 
^ from the rules page
 
5:03 PM
@Tx3 bluebird promises are like 100 times faster than native promises, have a much richer API and are much much more debuggable - definitely keep using them, you just can't use automatic promisification for things that are not "obviously" promisifiable. Feel free to ask this as a question on the main site (be sure to tag it as promise and bluebird) - you can count on my upvote if you do.
 
Just as an aside, I really like the wording of "like a 10 year old at summer camp", whoever wrote that.
 
We discussed this last meeting too I believe right?
 
@Retsam o/
it's some of my nicer work
 
All he said is:
> And no worth shit experience to show for my next job because working as only dev in shitty 3 person business doesn't mean jack shit.
 
@BenjaminGruenbaum How is it possible that promises implemented by a library can be faster than a native implementation? Isn't that like saying jQuery is faster than vanilla js?
 
5:04 PM
all I can think of is the will smith movie where he is a super hero and the kid doesn't know how to swear proper (re: kid at summer camp)
 
@Neil no, because jQuery uses the DOM API internally and bluebird doesn't use native promises internally. It's more like saying React is faster than the native DOM - which by the way it is.
 
@BenjaminGruenbaum not saying a kick but I can totally understand a warning
 
user1596138
@FlorianMargaine Thanks. Or am I interpreting this wrong? I feel like I followed the rule decent enough lol but it's loose
 
@JanDvorak I can't, and I don't think anyone other than @Jhawins would have gotten that warning in the first place. I think Zirak could get away saying that with a "lol".
 
Tx3
5:05 PM
@BenjaminGruenbaum Thanks, I highly appreciate your help
 
@BenjaminGruenbaum React achieves that a bit differently though
 
Unpopular opinion maybe.. but I think its a lets jump on @Jhawins personally
 
@Jhawins yeah it's loose... but when 3 people tell you to stop swearing, it's that they think it's too much
 
@BenjaminGruenbaum I don't think he would
 
5:05 PM
3 shits in one sentence = 1 prayer
 
user1596138
lol wait actually I went offline for 3-4 minutes right after it was brought up. What is this warning of which you speak? Did he kick me while I was afk?
 
@NickDugger and 2 respects.
 
@Loktar yea I didn't see him being excessive. it was 2-3 messages he was venting in
 
anyway off I go...
 
o/ @FlorianMargaine
 
5:06 PM
Speed of promises doesn't matter anyway though, because it is usually bound to an IO operation and the speed of the latter dominates the speed of the former
 
@FlorianMargaine WE LOVE YOU
 
@Tx3 sure and feel free to ask more questions any time, there's are also IRC channels (#promises and #bluebird) - generally I guarantee questions never stand over a day without some response on the site - you can also ping me here. Enjoy.
@Jhawins no, he did not.
 
yay.... 30 pages of paperwork just got emailed to me
:(
 
user1596138
Well cool then. Everybody be cool, I'm gonna go look at jobs.
 
@Jhawins damn man :/
sorry to hear that
We are looking for a UI dev here
 
5:07 PM
@copy it obviously does on the server though, if you have a server that makes 5 promises for every request (redis + chain + etc) and you want 10K clients to be connected the speed of GC and such introduced by native promises or a slow userland implementation will be a limiting factor - for real.
 
since I'm the only one currently, they want another dedicated UI/frontend dev
 
user1596138
Yeah I honestly feel really uncomfortable with the fact that I'm going to just walk out. I feel like my reference is likely shot from here
 
I'm not hot. I never was hot.
 
which will be awesome.. if only we could find one :/
 
user1596138
@Loktar oh yeah? Still looking for that?
 
5:08 PM
@JanDvorak don't speak so quickly. I think you're rather dashing.
 
@Jhawins eh I wouldnt walk cant you line something up first?
do a proper 2 weeks notice?
@Jhawins yea
 
user1596138
@Loktar Walk when I line something up I mean.
 
@Jhawins you should not stick at the same job for too much time regardless of anything unless you're in a position you're constantly doing new stuff.
 
ahh ok
 
user1596138
I won't bring it up at all until there's an offer.
 
5:08 PM
It's true, the only thing keeping me at my job for now is the java experience im getting
 
if they don't give you a good ref due to that they are POS's imo
 
user1596138
And I'll give good notice. But yeah he's screwed. I can't possibly devote the time it will take to finish this project it just doesn't make any sense for me.
 
notice and walking are two different things
if you walk, they are of no obligation to speak highly about you
 
@BenjaminGruenbaum Meh
 
@SterlingArcher Why is getting Java experience a good thing
 
5:09 PM
if you give notice, well then yea, they are douches if they don't
 
@SecondRikudo $$$$$$$$$$$
 
@copy you can meh all day it literally saved me the cost of having another server. Well, the company.
 
@SecondRikudo it sells
 
@SterlingArcher Eh.
 
@BenjaminGruenbaum You still need to serve 10k database queries and 10k requests in the first place
 
5:09 PM
@ssube Eh.
 
user1596138
@rlemon I call it walking because I've very clearly promised to be here and see this through. But I'm not contractually bound to anything
 
also thats an open invitation to anyone who wants to live in the great plain state of NE, front end position open, looking for at least mid level front end devs.
 
It sells today, don't think it will in not that long into the future.
 
@copy which is reasonable, if you don't have that sort of traffic you really should consider another server-side technology anyway. no, you just need 10K redis requests it doesn't open a new connection for each one.
 
Java is going to be around for a VERY long time.
 
user1596138
5:10 PM
I mean I could say if you can match this offer I'll stay lol?
 
Regardless, knowing another language is never a bad thing so...
 
@Bergi I saw you pinged me here but didn't see what you pinged me about. Also really nice discussion on esdiscuss.
 
@rlemon because it's so slow to shut down?
 
@JanDvorak because 9/10 of your embedded devices run Java
:/
I'm not happy about it, but it is the scenario
 
@rlemon also: Android.
 
5:11 PM
yup :/
 
Frankly, I'd just pick an ARM for a microcontroller
 
:>()
 
@rlemon the 1/10 remaining is nodejs?
 
or AVR
 
Usually they run C
 
5:12 PM
@FlorianMargaine XP Embedded
;)
 
You usually can't use C++, it's either C or Java
At least in my experience
@rlemon probably has a lot more
 
c/java are all i've seen.
 
@BenjaminGruenbaum You do 10k database queries, the cost of 10k closures or whatever barely matters
 
and embedded xp
 
dependening on the scale I wouldn't mind assembly either.
 
5:12 PM
!!xkcd embedded java
 
user1596138
@loktar facebooked you bro
 
@copy do you agree that 10K concurrent redis queries is a perfectly reasonable workload for nodejs and that people serve that many queries all the time?
 
Absolutely
 
@copy now, if you create 10K slow promises, you get an "out of memory error".
If you create 100K native promises - which is a reasonable amount for the given workload - you get an our of memory error, and if you don't because you have a higher memory limit you still get really unexpected performance because of GC
Not to mention that it'd push 100K microtasks which alone is 100K things that need to be allocated and GCd.
 
5:15 PM
Do you?
 
Sigh.. I wish mobile chrome didn't throw my recent tabs right out there.
 
user1596138
@rlemon lol
 
@copy fun fact: promises were a part of node 0.2, they were removed because they were too slow.
 
@Jhawins title is bad enough. but a thumbnail?!
are you trying to get me in shit?!
 
flagged for shit
 
5:16 PM
do i want to know..
 
^ Canadian Riot
 
@NickDugger totes flagging that
@rlemon canadian not-hockey riot?
 
Your being offended offends me.
 
5:17 PM
I taketh offense
 
.. when hockey is concerned it isn't a "riot" per say.. it is patriotism
 
*you
 
@NickDugger Is that James Spader?
 
user1596138
@rlemon yeah... I've had bad experiences come up. "Lemme use your phone to check the price of these parts" -> "Duuuuuuuddddeeee what the fuck?!"
 
yea no one uses my phone
 
5:19 PM
^ ... ._.
 
it goes to the bathroom with me
it's red flagged
 
What sort of person doesn't go incognito
Like, that's somebody you can't trust
 
I can honestly say I have only once incognito'd and it was not for porn
I have my own place, my own pc, and my own phone.
I got nothing to hide from myself.
 
I incognito at work but that's for session clearing tests on applications
 
Hello fellow developers
 
5:21 PM
@HackMaster Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I just kill the session on the server :P refresh the client
 
@rlemon's browser history is dirtier than @Jhawins truck
 
probably
 
user1596138
lol
 
@rlemon Sometimes you need to be logged in as two users at once
 
5:21 PM
> hot maple syrup hockey porn xxx
@SomeKittens multiple browsers / pcs
 
user1596138
I only use incognito for logging in as someone else
 
Please google that one day lemon
 
lol
 
We all have needs; be they short, tall, brown, or intoxicated
 
I just have knees :(
 
5:22 PM
i want to change the background of the textbox when the focus is on it but my textbox is played under the headerrow??
 
@HackMaster make a jsfiddle
 
textarea:focus { background:yellow; }
 
headerrow?
 
heath ledger?
 
I miss heath
 
5:23 PM
I'm really glad Heath Ledger didn't jump off a building.. the irony would have been astounding.
 
samesies
 
show header is enabled on my gridview
 
Ohh, I always use incognito for porn. It's not that I need to hide that I look at porn, but I don't want my search auto-complete coming up with strange things.
 
loved him in the Patriot
 
@HackMaster asp.net?
 
5:24 PM
yup asp gridview
 

C#

General discussions about the c# language, Squirrels | gist.gi...
try this room
not many of us ASP in here
 
I ASPed once in college. I didn't like it.
 
I asp'd in college but i didn't pay attention much
 
I remember when I first learned about browser history. I used to sneak down into my father's home office and play runescape. He looked at the history, and I got in trouble
 
but the background color change can only be done via javascrip
 
5:25 PM
elm.style.backgroundColor = color
done and done
 
why?
 
the rest of your issue is asp control related
also that article is misleading
you can change the background color with css
maybe even the (ohh so wrong and non standard) bgcolor attribute
not sure if that still works
 
input[type="text"]:focus { background-color: purple; }
 
@rlemon I thought it was standardised?
 
5:27 PM
Does anyone else use Incognito when they search for almost anything?
 
0
Q: How to set focus on textbox inside gridview and depending on where the focus is located change colors

HackMasterI have an gridview with header row and textboxes under that and an insert command that inserts the records into the database: The User Requirement: 1) Set the focus on the first textbox in the headerrow 2) turn the background value of the text box to light grey depending on where the focus is...

 
@JanDvorak I thought it wasn't??? TO MDN!!
 
Anything I don't think "I'm probably going to want to search for this again in the future", I incognito so chrome won't always be suggesting it for the next forever.
 
so this is an asp issue eh??
 
I use it when i search for (usually ABOUT) illegal things. Not because it'll protect me from anything other than entries in my search autp-complete.
@HackMaster Find out a couple things for us: Does the <table> created by the grid control have a class="". Also, does it use <thead>? If so, we can easily style it with css.
 
5:29 PM
@BenjaminGruenbaum I did ping you about stackoverflow.com/q/29239890/1048572, but it seems to be settled (op deleted question)
 
lol, I was really surprised :D
 
I just got electrocuted by the microwave am I a superhero now?
 
A superhero with bad grammar.
 
@SterlingArcher I think you're electro-cute now.
 
ohstopityou.jpg
 
5:34 PM
how do you guys iterative over json api datastructures?
 
depends on what you want to do with them
 
var data = JSON.parse(jsonString);
for (var i = 0; i < data.someArray.length; i++) { ... }
 
I know it has the potential for evil... but I love git push -f.
 
I use -f all the time. I live on the edge.
 
data.someArray.forEach(function(el){...})
 
5:36 PM
The project I normally work on has it disabled; but I'm on a different project right now that allows it.
In my normal project, I do "ghetto" push -f, where I delete the remote copy of the branch and then push.
 
Why you forcing? Want to rewrite history?
 
@SuperUberDuper Depends. What do you want to do with it?
 
@Luggage i check it does not have a class="". Also, does it use <thead>? If so, we can easily style it with css.
 
Do you want to map the collection into another kind of collection (array of strings to array of numbers?) Use .map().
 
Then how is it styled now? inline attributes?
 
5:37 PM
Do you want to filter things out of the collection? Use .filter().
 
Various reasons; wanting to fix commit messages, wanting to fix small mistakes within commits that don't deserve their own commits, etc.
 
Do you want to perform an action for each item? Use .forEach().
 
@Retsam git commit--amend
 
mmm i made some amazing chicken last night and its just as good for lunch
 
@Bergi ah ok thanks :)
 
5:38 PM
@JanDvorak Right, but if you've already pushed, I'm fairly certain you need to -f push after amending.
 
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
    AllowSorting="True" AutoGenerateColumns="False"
    DataKeyNames="Unit_UPC_Base_Item,Production_Line" DataSourceID="SqlDataSource1"
    EmptyDataText="There are no data records to display." BackColor="White"
    PageSize="25" onrowcommand="GridView1_RowCommand"
    onrowediting="GridView1_RowEditing">
    <PagerSettings PageButtonCount="40" />
    <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
    <Columns>
 
@JanDvorak That requires git push -f though if you've already pushed.
 
@HackMaster We need the resulting html to help. We don't do asp.
the html in the browser.
Could you take the html fromt he browser and paste it somewhere (pastbin, gist, etc)? I can help you with some basic css.
 
The 2001 Clear Channel memorandum is a document distributed by Clear Channel Communications shortly after the terrorist attacks of September 11, 2001, to the more than 1,200 radio stations they owned. The memo contained a long list of what the memo termed "lyrically questionable" songs. During the time immediately after the attacks, many television and radio stations altered normal programming in response to the events, and the rumor spread that Clear Channel and its subsidiaries had established a list of songs with lyrics Clear Channel deemed "questionable". The list was not a demand not to play...
Neat
 
@SomeKittens You're telling me "Great Balls of Fire" might not be the most appropriate thing to play in the aftermath of a terrorist attack? Nonsense.
 
5:42 PM
@SomeKittens yay to giving me yet another reason to hate clear channel
 
@Luggage yea got it
 
@Retsam Not to mention everything every by RATM
 
Why's Walk Like an Egyptian on the list?
 
Ooh, Alanis Morissette's Ironic is on there. Probably because it has lyrics about a plane crashing.
(Which is, pretty much the only ironic lyric in the song)
 
@SomeKittens RATM.. so dangerous
 
5:44 PM
Speaking of that song...
 
@Retsam love that bit
> you really need a fork to stab the bastard who gave you all the spoons!
 
he he, I just bought tickets to see My Byrne!!
 
@Retsam not quite
 
Can some one help please. The following code executes both the if and else in the same time!! What have I done wrong?
this.showCharactersUsed = function(textBox, element, button, limit) {
        var charLeft = Number(limit - textBox.value.length);
        element.innerHTML = String(charLeft);

        if (charLeft >= 0) {
            button.className = button.className.replace("hidden", ""); //executes
        }else{
            button.className = button.className + " hidden"; // executes
        }
    };
 
formatting, please
 
5:46 PM
@HackMaster ok. It needs a class so we can style it without styling something else. I think CssClass="mySpecialTable" on the GridView will add a class in html
 
@Dave it doesn't execute the if and the else at the same time - that's a safe assumption.
 
@Dave I don't think it does. Why would it?
 
then: table.mySpecialTable th input:focus { background-color: purple; }
 
@Dave It's possible that you're calling it twice.
 
if I'm calling it twice then I would see that surely from the debugger
 
5:47 PM
nice, I'm sitting in front of 800gb of sd cards
 
put an alert inside and see
 
the break point would be hit twice?
 
Maybe the browser is rearranging the classes for some reason?
 
@ircmaxell Oh?
 
it literally jumps from button.className = button.className.replace("hidden", ""); //executes straight to button.className = button.className + " hidden"; // executes
as if there was no if else, and it was just 2 lines of code
Will quickly test with Chrome
 
5:47 PM
@Retsam the majority of the cases are ironic...
 
@ircmaxell Like...?
 
@Dave I'm pretty sure it doesn't. Perhaps you have a breakpoint in the else branch and you hit run instead of step?
 
Thank you all - seems like a bug only in Firefox Dev edition (is any one else finding this browser buggy?)?
 
Yeah, I was already reading that article... and yeah, I don't agree.
Even with the weaker definition of irony "something unexpected", there's nothing "unexpected" about bad weather, no smoking signs, or traffic jams.
 
5:49 PM
I know @JanDvorak and I would agree - if else, seems like the most basic princial in programming but it truely is doing both
 
It surely isn't
 
@Retsam think about it - all of the examples in a song titled "Ironic", aren't. Isn't that ironic?!?
 
@SomeKittens Yeah, that's Ed Byrne's take: "The only thing ironic about the song is that it's called 'Ironic', and it's written by a woman who doesn't know what irony is"
 
But that's not ironic either..
 
@JanDvorak, it isn't but it is - the code is actually doing what it should be (obeying the if else), it's just the console showing it's hitting both lines ... oh well, I'm off to struggle some more
 
5:52 PM
I'm unpacking sd cards.... I don't think it is wrong for me to watch some youtube videos while doing so.
 
I really really really really really really tom hanks
 
@Dave Now a crappy debugger is more plausible. A line desync? Use Chrome :-D
 
s/unpacking sd cards/driving a busload of orphans/
 
@Luggage i create an css class, where do i add this code table.mySpecialTable th input:focus { background-color: purple; }
 
in a .css file. Make your own, if the one you are using (carmel.css) is not yours.
you got the html table to have a "class=..." on it?
 
5:59 PM
yay, back to italy... I forgot I hated it
now I can confirm: I hate it
 

« first day (1621 days earlier)      last day (3326 days later) »