« first day (842 days earlier)      last day (3474 days later) » 

15:00
How many GB is that?
150MiB.
How many DOM elements?
~50
How may lines of Javascript you need to modify it?
~30.
15:03
Try the profiling tool
Probably the elements have some heavy CSS styles
Keep an eye on reflow
If you are changing an HTML element that already has styles, you should stop
This is great. You can't use $('#MainContent_txtSearch').is(':focus') for what I want.
Use a documentFragment
Because as soon as you hit the enter key it loses focus.
Attach a submit handler
Check which input has content and submit accordingly
But inputs have content.
I need to submit based on which one the user was in.
15:08
Is it for old IE versions?
It doesn't work in Chrome either.
Hum
You can follow this bad idea:
When the user hits enter, you can call a function and pass this as the input field.
Let me make a basic example
<input id="a">
<input id="b">

<script>
	function handleSubmit(){
		alert(this.id);
	}

	function handleEnter(e){
		if(e.which)
		{
			handleSubmit.call(this);
		}
	}

	$('input').keyup(handleEnter);
</script>
Something like that uglyness
@EBrown what are you trying to do
this sounds XY to me
Wait...
Why don't you create 2 different forms?
Off-topic question:
I'm voting to close this question as off-topic because belongs on codereview — Joshua 51 secs ago
15:15
How do you handle a client that thinks that you are stupid and dumb?
@IsmaelMiguel get the work done for them and never work for them again
@DanPantry That ^^
you can't change their opinion of you so you might as well walk away or finish the job ASAP
@Joshua That question is off-topic on Code Review because it is asking explanations about the code. Code Review has as a goal to review and improve code you wrote, own or maintain. — Ismael Miguel 12 secs ago
The problem is that the work is continuous
15:17
anything else will present you as unprofessional
@DanPantry If the user is in any Qty input box, submit the addItemsToCart function. If the user is in the Search box, submit the performSearch function.
I have to maintain the website
@EBrown Use two forms. Those are two different actions, they dserve two different forms. If you're doing any kind of hacking (like you are now), you're going to break any kind of accessibility tools because you're doing weird.
Add articles and contents
When they press Enter that is.
@DanPantry Can't, ASP.NET.
15:17
I'll just ask it on the right place.
@EBrown you can create two forms in ASP.Net. There's nothing stopping you.
@IsmaelMiguel well, you aren't going to change their opinion
Either you walk away or begrudgingly take the easy money
@DanPantry I know, but I won't bother you with things you aren't interested.
@IsmaelMiguel It's not that I'm not interested.. I'm giving you the real POV.
Take the money, easy
If a person has already decided you're stupid then you probably aren't going to change that.
15:19
I just wanted them to show a little respect and improved their poor grammar
@DanPantry Can't, because the entire thing is already in a form from the Master Page.
@EBrown you can create more than one form.. its just a HTML tag.
@DanPantry You can't have a form in a form, though.
They are teachers and write in butchered Portuguese
@IsmaelMiguel They won't do that for someone they are hiring.
15:20
@IsmaelMiguel You can't.
You are there to impress them
Not the other way around
They keep sending emails saying things like:
"Please, publish on our website this PDF with **the folowing text**:"
They aren't going to take out of their schedule because the person they are paying thinks they're unprofessional
And then they highlight it all
@EBrown hm, true. I don't know what to say then
@IsmaelMiguel .....so?
15:21
Indeed, so?
What's the problem here?
It's unprofessional and seems that they think I'm too stupid to understand where is the text
@IsmaelMiguel It's also unprofessional to try and change their habits.
Their problems are their problems, not yours.
@Mast It started to be an "habit" on the last 5 messages
@DanPantry Somehow, I need to lock it down so that if you press Enter in the Qty fields, it submits the addItemsToCart function, but if you press it in the Search field, it submits the performSearch function.
right.. The Workplace anyone?
15:23
5 mins ago, by Ismael Miguel
I'll just ask it on the right place.
@EBrown you could listen to the key down event
I could obviously do it with a global variable set/unset when the Search Box is focused/unfocused, but that seems wrong.
You're late
@IsmaelMiguel yes... then again you're still tallking about it...
@IsmaelMiguel You got a project manager? You could talk with him about it, it's kind of his job to fix problems in the workflow.
15:24
@Mast I'm the project manager. I'm the HR. It's just me and my boss.
@IsmaelMiguel In that case, you're screwed.
@Vogel612 Because I'm being asked about it.
@IsmaelMiguel @Mast separate chat room please? or the workplace
@Mast Yeah, I arrived to that conclusion
@DanPantry No need to.
@DanPantry No need, that was my final statement. I'm done.
15:25
Conclusions have been taken
2
See?
There's just one question:
Why when it is 1 hour and 100 messages about C#, no one complains
@DanPantry Is there a way to set the default button for the form to a specific button? I can then do something with document.getElementById('<%:txtSearch.ClientID%>').onkeypress.
okay great, now I only have to implement the saving logic and remove the stuff from the old form...
@IsmaelMiguel y u no complain?
When it is a quick question and a quick exchange of ideas, everybody complains?
because c# is on topic and workplace stuff is not
@EBrown Ismael has a point...
15:27
(although I have noticed this with javascript as well. 100 comments of c#? fine, 100 comments of js? nope, javascript libraries chat room pls)
this is devolving into a 1 on 1 debug session...
0
Q: Process PowerPoint xml in python

JoeI run a tiny open source project to help create speech aids for disabled people (the github is here). One of the things that is useful is for people to design speech setups in Powerpoint, and then have the PowerPoint file processed to extract the images and the other information. The script be...

I am going to butt in here, I haven't been following chat at all
@DanPantry Not everything C# is on-topic here.
@Malachi Welcome back ^^
@Vogel612 I asked kindly to move the messages to another chatroom so we all could talk about it. And what happened? I was almost pitch-forked to death
15:27
Review Queue Notifier no longer counts reviews that you cannot currently review
@Mast thank you
Greetings
@Vogel612 Notice the keywords: "kindly" and "we"
I was interested in the conversation
if you are missing me in the 2nd Monitor, check Javascript Libraries I might be posting updates on Memer or Review Queue Notifier
Everybody threw his stone saying it was fine because there was no site business
no use to obsess over it now.
but you're right
Sadly, I am right
I hate being always right
15:31
can we now stop being passive-aggressive and go do something (more or less) productive?
Sure
1
Q: Process PowerPoint xml in python

JoeI run a tiny open source project to help create speech aids for disabled people (the github is here). One of the things that is useful is for people to design speech setups in Powerpoint, and then have the PowerPoint file processed to extract the images and the other information. The script be...

Free edit: removing the language from the title
@IsmaelMiguel And xml -> XML
@Mast And the XML tag is missing
just for the record.. that was 4 messages about editing how much? 30 characters?
Yes, around that.
15:34
you both have insta-edit privileges
go forth and use them
I wanted to offer a free edit
@Vogel612 I fixed the title.
15:35
@IsmaelMiguel is there a point in that? What do you gain from making the edit here in chat for somebody else (who most probably has insta-edit anyways)?...
@EBrown right.. can you get a room if you want to have a 1 on 1 debug, please right now?
I wanted to offer it to someone. If someone who doesn't have insta-editpicks it up, they get +2
@Vogel612 He was trying to be nice.
@Vogel612 It's not a debug session, I found what I needed. Conversation complete.
there is no such user active here right now
I don't know
EBrown could want to edit it
He has lower rep than me, I think
15:37
@IsmaelMiguel I have instant edit.
I had no idea
I don't track users
Besides, I was trying to change the chat into on-topic stuff
It was a win-win-win-win situation that ended in a lose-win-null-null
Anyone who doesn't have Strunk & White yet?
@Mast strunk and white? wot
@DanPantry Badge for edit 80 posts.
15:39
probably me, then
I don't edit often
But I won't get rep from edits, so, I leave to those who get
neither do I... still got 200 edit over time..
@IsmaelMiguel no point in that. low-rep users often don't edit because nobody shows them how it's done
> I don't edit often
high-rep users (like you) can lead by example
2
> low-rep users often don't edi
:-(
15:41
@Vogel612 I'm still in the "low" category
no you aren't...
But I'm not on high
@IsmaelMiguel Only when the new permission levels go into effect.
But I'm not on mid-range either
@IsmaelMiguel 2k translates to mod-tools
that's upper mid range
15:42
If you're on page 4 of 1858, you are a high-rep user.
I will only consider myself high-reputation when I get over 5k
well then, nobody's stopping you :)
Which will translate in a few months
I know no-one is stopping me
15:43
Github is being difficult, check this out
Share it
Anyone have any SO answers needing upvotes (while I'm on SO)?
@EBrown You're free to check my profile
@EBrown if you want you can scroll through my profile as well
You won't find many decent answers
Or decent questions
15:44
@IsmaelMiguel @Malachi No time for that, just figured I'd ask before I signed out of SO for the day.
cool
Then I'll show some bizarre stuff
If you have any (on hand) I'll upvote.
Probably.
4
A: How/why is “ *[attribute^="string" ” a valid querySelector? (JS bug?)

Ismael MiguelThis is primarly opinion based and is nowhere close to a definitive answer. Browsers are EXTREMELY complex. Done! Nothing is predictible on them. First, let's analize a list of faulty selectors: a[onclick^="ajaxLoad(" (missing ]) a[onclick^="ajaxLoad(]" (missing ]) a[onclick="" (missing ]) a[...

4
A: MySQL OPTIMIZE all tables?

Ismael MiguelI made this 'simple' code: set @a=null,@c=null,@b=concat("show tables where",ifnull(concat(" `Tables_in_",database(),"` like '",@c,"' and"),'')," (@a:=concat_ws(',',@a,`Tables_in_",database(),"`))"); Prepare `bd` from @b; EXECUTE `bd`; DEALLOCATE PREPARE `bd`; set @a:=concat('optimize table ',...

^ next Code Review question!
@Malachi do you have any suggestion? — bloom berg Jul 29 at 16:05
@bloomberg, yes, the one I have given — Malachi Jul 29 at 18:52
@rolfl I had my draft lying there for like 30 minutes!
Snooze you lose..... ;-)
@Mat'sMug and... are you a robot or not?
15:48
some people actually work you know :)
3
@Vogel612 nope
yeah yeah
Thanks, Santa!
@Mat'sMug Some people also have a strange issue where the count returned is 34, but the data-set is 68 elements.
good to see you again in The 2nd Monitor @rolfl - feels like it's been forever!
15:49
my colleague recently told me his scala code takes up to an hour to compile
@Mat'sMug I have been crazy busy, and still am. Today is an exception.
I was dead sure he'd be joking..
@EBrown If you want to learn all about Javascript comments: stackoverflow.com/a/28412991/2729937 (You can use to other languages)
@rolfl good. make sure you rethrow it so tomorrow is another exception ;-)
Yeah, the 2nd monitor is the
15:52
@IsmaelMiguel I do that comment pseudo-programming for testing all the time.
@Mat'sMug throw new MonkingException()
@IntensifierDescriptorMan It's the easiest way. 1-char change to run a whole different block of code.
wait.
i screwedu p
@IsmaelMiguel For a beta, you're in mid range
@Mat'sMug function MonkingException() {}
15:54
@Mat'sMug For the record, the past couple of months has been "planned" absence. It is in large part why I "resigned" when I did. I expect to be busy in my "free time" for another month at least.
@Mast If that's so, when it gets out of beta I will be in mid range as well
Yea.
@rolfl how's the publishing work going?
I am breaking promises with JDOM answers.... ;-) The publishing business is also taking second-seat by the way.
15:57
I have to run..... meetings.... in 2 minutes.
enjoy?!
@rolfl Break a leg Have fun!
For some values of "fun" :-)
Oh, yeah
Some types of fun aren't appropriate for such environment
Like playing with balls
Soccer balls, tennis balls, ping-pong balls
@Mat'sMug Did that bounty I got yesterday get awarded automagically, or did you manually do it?
16:02
I was wondering, too
I think I just wrote the biggest test in terms of LoC and method name length
I only noticed because I thought it had a couple more days to go.
I assume that answer was helpful, @Vogel612?
@EBrown well you mostly reiterated stuff I had already fixed after leaving the code alone for 3 weeks
@Vogel612 Ah.
16:03
but yes, it was helpful :)
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comD Stanley 47 secs ago
@EBrown Bounties are awarded automatically after 7 days. Or manually.
Manual, you earned it ;-)
@Mat'sMug Aha, thanks! :)
If the bounty isn't awarded and the question has no answers, it will have 1 more extra day to be awarded
16:04
@JeroenVannevel If this were the java room, I would instantly move that message
can we please stop pasting significant amounts of code in here?
It still had like, two days, I thought?
Hi, @AsimAbbas. I had left for the night.
I don't know the question in question
Comme tu veux
But I had awarded a bounty once
And it was left to waste
16:05
@JeroenVannevel arigatou gozaimassu
So, I promised that I won't give any more bounties
Author added the code, please cast a reopen vote (if the code seems ok, I can't judge)
-1
Q: An attempt at implementing Maybe in C++11

Vite FalconI gave a shot at implementing Maybe for C++ and a slight twist in my implementation is that it uses thread_local static instance of Just and Nothing + placement new operator to minimize the number of (de)allocations. This is the first time I'm using thread_local and placement new operator, so I ...

@Heslacher Seems to be a bit much for an hpp file.
I have absolutly know clue about c++
Can you award/reward a bounty to yourself?
16:07
I guess no
I guess there is no need for me to say "no" too.
I think this would be better on codereview.stackexchange.com — WookieCoder 11 secs ago
@SirPython Why would you do that?
16:09
@IsmaelMiguel I wouldn't want to do that, but I just noticed a bounty previously put on a question by a user that has already answered that question.
As @huu mentions, you should post your code, but probably the most important would be to migrate the question to codereview.stackexchange.com where your code will be imporved. — Aleksandar 48 secs ago
@SirPython Maybe he knows that there's more to say about it, but his knowledge about the language doesn't allow him to go any deeper than that.
I would assume that.
Like me on C# and Java answers
Oh I messed up bad.
Pretty sure Transparentmucosal is not a word.
16:11
Share with us
Yeah, it isn't
It's supposed to be TRANSMUCOSAL.
@Aleksandar I'm not sure code review is the best place for a code fragment, since they like complete projects over there. — jaggedSpire 9 secs ago
At least I know that when I called this method a heuristic method, I was not mistaken. :)
That doesn't make it any better :/
I mean, the meaning is the same
@BryanOlesky Check kl1p.com/03kW for a code review — jaimetotal 10 secs ago
@jaggedSpire This would be considered a snippet and closed. The full code would be welcome at Code Review. Fix first, migrate later. — Mast 59 secs ago
16:21
Off-topic question:
Have you ever felt that weird anxiety that "tells you" that something bad is going to happen?
Sometimes, but it never happens.
Usually just before I get the grade for my final in a course I'm not sure I did very well in.
I'm feeling it
0
Q: CSS3 Flexbox: Creating my own "framework"

UltraSonjaCurrently I have an application that is relying on Bootstrap's Grid layout. I originally chose it because it was easy to learn and looked good. However, it didn't handle nesting as well as I thought it would. After investigating and finding out that it used float for all the grid classes, I do...

1
Q: SPOJ solution of GRAVITY

noob123I am solving problem GRAVITY on SPOJ. I am using normal BFS but I am getting TLE. The time limit is 2 sec and my code should easily run within this limit. #include <bits/stdc++.h> using namespace std; #define ll long long typedef pair <int , int > pii; #define INF (1000000000) #define ull unsig...

But it has never been this strong to me
> 583 results found
16:23
I really feel that something really bad will happen
> taking a minute in Chrome to adjust DOM
Wonder why I have performance issues...lol
Don't worry about it.
Yeah, I'm trying to
@EBrown Why's that?
Lets try searching for all these items again...
16:33
0
A: 10 Million Questions - Let's Share Some Stories That the Number Doesn't Convey

MalachiConvert Date from yyyymmdd to mm/dd/yyyy Excel Dealing with date data can get really messy, any programmer or database admin can tell you that much, so when I came across an instance where I needed to extract information from a SQL Server table and then insert it all into another table (short ve...

please help me out so I don't go negative....lol
I'm surprised this answer there has DV's.
It has 2
I know.
No need to report data I can click a number to get.
16:47
no more votes on Meta.SO
I voted too much already in there
another 150 rep on SO and I will Repmax! lol
I promised myself not to participare there, and I'm breaking that promise
lol
3
I have an accepted answer with 0 votes --> stackoverflow.com/a/18752129/1214743
I'm scared to upvote it
Once, someone did a pretty awesome edit with a question I had
And it was smashed down and closed by Community ♦
It just had 1 downvote
on another note, --> stackoverflow.com/a/14696681/1214743 a third accepted answer with no votes
I want to upvote them, but I don't want the same to happen to your answers
16:51
I usually delete questions I don't profit from. never had one community closed
@IsmaelMiguel lol
3
Well, to this day I have no idea why it was deleted
Since it was Community ♦ who deleted it, I'll never know
I could re-ask it
But the project I needed it for was abandoned
OP Accepted and didn't upvote --> GREAT ANSWER --> stackoverflow.com/a/11040427/1214743
@Malachi Not a great answer, in my opinion. Misses a bit of meat.
But it isn't bad
I wasn't going to write PHP code for him....
An edit to fix a few mistakes on your text and you're done
I got it
16:55
<s>I barely</s>I don't write PHP code for myself
I write PHP
I write JS
I make JS code run in PHP
I make PHP code run in JS
You did write PHP in JS and JS in PHP in that PPCG answer of yours.
And on
That one is my best classified answer on all the network.
I'm specially proud of the ingenuity of if("\0"=='\0'){ [php functions here] }

« first day (842 days earlier)      last day (3474 days later) »