« first day (1649 days earlier)      last day (3301 days later) » 

1:00 PM
@KendallFrey On Project Euler?
 
or just use jquery
 
May 19 '11 at 18:56, by Zirak
@RyanKinal How do you know it's good? Did you try alternatives?
 
unless you're doing currency in JS, in which case fuck you
 
Unless you're actually fooling around with stuff that needs big numbers
 
@SomeGuy project euler generally tends to work with integers, no?
 
1:00 PM
Great...first discussion was about jquery. Are you happy @RyanKinal?
 
@KendallFrey You can get floating point errors with integers too if they're big enough
 
@ivarni that's not floating-point rounding at fault, it's the lack of precision
 
@KendallFrey Oh, right, you only mentioned floating point errors
Their numbers can go quite high
 
I use strings for those
:D
 
@KendallFrey Yes, that's correct
root problem is still floating point though
 
THE
1:02 PM
please tell me some good sorting plugin ?
 
that FP problem is caused by the machine ... it's called machine precision
 
I just realized I'm so lazy I don't type spaces between words in Google search terms
 
@THE .sort()
 
@THE Array.prototype.sort or something
@KarelG no, it's in the IEEE standard
 
!!tell :22851937 xkcd stacksort
 
1:04 PM
 
See the hover text
 
that's why i have xkcd app on my mobile
 
@THE jquery
 
@KendallFrey the error is dependent on the hardware.
 
THE
am lost
am trying this but its shit
doesn't renders properly
 
1:06 PM
@CapricaSix Hahahaha
 
@KarelG it shouldn't be, IIRC
 
it still happens, but it's very minimal
 
@THE just remember, "Gratitude is the best attitude"
 
@NickDugger : why if i may ask that ?
 
@KarelG It's his avatar
 
1:09 PM
it's so little, had to click that .... ok @THE : can you answer that ?
 
according to Google I'm a Honey Badger
I can live with that
 
@rlemon I got that too, made my day
 
@rlemon It said I was a squid
 
I'm a shrimp madafaka mantis
 
hi in my jqgrid in need the search to be displayed on each column and not in the footer (magnifier) , how can i achieve that ?
please
 
1:17 PM
mantis shrimp *
 
@Zirak Quite. Thanks :-)
 
Awesome, chrome devtools (42+) also autocompletes braces now, so arr[ will suggest indices and such.
 
Nice!
 
THE
0
Q: Showing a hidden datatable with Jquery breaks CSS

ChaneyEDIT: SOLVED. When the page originally loads the datatable is formed using the css files as laid out. However when it was calling the javscript it was rebuilding the datatable and ignoring any CSS files I had referenced. As such it was automatically shrinking the table to match the size of the t...

answer with 3 votes so far....

the CSS is broken because jQuery's .show() and .hide() functions just switches between display: none and display: block(or display: inline), but the default value of display property of <table> element is display: table and not display: block, so instead of using $(".datatable").show(); and $(".datatable").hide(); use the following:

$(".datatable").css({'display': 'none'}); // to hide the table, here you can
// still use jQuery's .hide()
$(".datatable").css({'display': 'table'}); // to show the table
$(".datatable").css({'display': 'table'});

child elements are still getting display 'block'
any idea what I could do to make thead display as anything but not block
 
I'm an animal that I've never heard of... "pangolin"
 
1:27 PM
dude, pangolins kick ass
 
THE
@NickDugger you are nomkiya :P
 
@rlemon there is a question "what do you search in your partner" ... idk what these choices means.
 
looks like a dragon body, with the head of a weirdo
 
Wow, it's like an armored honeybadger
 
1:28 PM
@KarelG neither did I so I chose the picture that looked like spaghetti
 
and what if that doesn't represent the reality ? :p
 
but it does
 
@rlemon looks like a pokemon
 
sandslash !
 
@rlemon is Mother of Dragons
 
1:31 PM
 
correction; i'm honey bee
wait
 
I'm coral.
@THE I really don't think there is anything for thead
 
Oh no, pangolins are really, really endangered!
 
why are you using tables to begin with
Yeah, pangolins are super rare, hence why Pokemon made them cute
 
@Zirak It's not possible to run SO-ChatBot from the terminal, correct?
 
1:36 PM
They make good soup.
 
> illegal, international trade in pangolin skin, scales and meat
:(
 
@GabrielTomitsuka correct
 
@GabrielTomitsuka Bananas
 
Pikas are also very rare creatures, hence Pikachu
 
1:37 PM
(ignore me, brain turned terminals to js consoles)
 
@Zirak he probably means gnome-terminal or something
 
@FlorianMargaine You do realize that nobody uses QR codes, right?
 
SO-Chatbot only runs on a TI-89
 
@NickDugger well now I do
 
@ShotgunNinja What do you have against tables?
 
1:38 PM
@NickDugger it's still used frequently
 
@KarelG No it isn't. They're put out by marketing teams that don't understand marketing.
 
@Luggage I maintain 10+ year old web pages. I hate tables with a seething passion when they're used for layout.
Tables for making tables is fine, though.
 
I thought they were asking about "dataTables" which aren't layout
yea
Just checking. Some people take that table hatred too far. :)
 
tables for layout and spacer - gifs is the way to go nowadays with all the freaking mess that CSS and FlexBox is
 
I have to make html for emails. It's tables all the way down. :(
 
1:41 PM
Nobody ever gave seven shits about QR codes
 
@SomeKittens eh fuck it I'll do it anyway
 
By barcode scanners, do they mean standalone devices?
 
Will find a way
 
keh, i never scanned in these QR codes
 
^ my broken sentence corrected
 
1:42 PM
@Luggage I dunno, I just happened to find a chart that supported my claim, so I didn;t ask any questions
 
ahh :)
I was going to say, the trend in smartphones means no NEED for standalone scanners.
 
<select name="country" class="country field">
    <option value="" data-translate-text="COUNTRY">Country</option>
</select>
Grooveshark, you are quite internationalised
 
I can't imagine many people scan QR codes on advertizements and in magazines. That shit was dead on the vine. But it's still a decent barcode format when you need one.
 
I've never scanned a QR code -- a fact that I'm proud of
 
Though, when I made a 'fax in documentation' system for my last place, I used PDF417.
qr codes were tested. I don't remember why we went with pdf417
 
1:45 PM
still a wonder, that companies is using faxing
 
@Zirak I can't stand the new UI
 
i remember these machines at my parents. had fun sending my copied back on the school fax to the last 10 senders.
 
for us it was hosptials. they used our software to respond to inquiries from insurance companies and we needed a way to upload documentation that was universal
 
they shouldn't have left the door open
 
we allowed direct upload in a web app, too. Fax as fallback
 
1:47 PM
@GNi33 nah, dude. Divs.
 
we use fax
not often, but we do use it still
 
Fax is so gross
 
it is
 
@ShotgunNinja no, way too complicated and they get very hard to maintain so quickly
 
I dunno how companies ever operated around it
 
1:48 PM
it's a constant pain
 
tables are much more straight forward when it comes to layout
 
@GNi33 Meh, the same can be argued about styled tables
It depends on the complexity of the page layout
 
and they had so many shitty fax machines that would put big lines on the page, which would, of course, fuck up the barcode.
 
and they are supported by every browser
 
and the use of divs.
@GNi33 Not identically, though.
 
1:49 PM
div-based layout can be used, for the most part, back to IE6
 
divs are still cutting edge technology, that a lot of browsers can't handle correctly
 
@GNi33 I haven't read beyond this in the history. but are you suggesting tables for a layout?
 
yes
 
are we being sarcastic?
 
God, I hope I'm not being trolled
 
1:49 PM
not sure, are we?
:D
 
oh fuck me
 
haha
 
tables for layout is bad. gif spacer is bad. pink ice cream is delicious but apparently makes you full retard.
 
goddamnit
 
at least that last sentence was a dead giveaway
 
1:50 PM
I don't thnk so. There are still some layout-based tasks that a table work well for. (when you have to support older IEs)
 
It is far too early and I have had far too little coffee to deal with a troll.
 
They are last-resort, though
 
@Luggage yea, tabular data
 
@GNi33 : ya know what happens if you do that during these web techniques course that i got when studying CS ? You get a 0 / 20 score. Tables are for data, not design
 
@Luggage Emails.
 
1:50 PM
otherwise you are doing it wrong.
 
Fucking email layouts require tables.
 
@ShotgunNinja emails don't count.
email clients like to fuck with you
 
@KarelG really?
 
@rlemon They do when you have to write 8 email layouts that work across all clients
 
above and beyond tabular data which tables are the RIGHT choice for.
 
1:51 PM
@ShotgunNinja nope, just email them a link to a real page
design rich emails are a joke
no one ever sold me on a pretty email
 
I wish we could, but the company president likes his design-rich emails
 
@rlemon full retard? even having a discussion about ever using tables for anything else than tabular data is full retard in the year 2015
 
We have to email schedules out to hosptials once a week and it needs to be right int he email.
tables tables tables.
 
@GNi33 the way you were describing it? yes.
 
We email out new product announcements, and it essentially requires pictures due to the nature of what we sell.
 
1:52 PM
@Luggage are you not allowed to use attachments ?
 
@rlemon yep, that was pretty much the point
 
Using tables because you don't know other options? Bad. Using a table or two because it's the only way to support the old-ass browsers you need to: Pragmatic.
 
and of course, the creative department here gives us an image that they want to send out, and we have to recreate it in HTML so the fucking hyperlinks work.
 
@KarelG Yes, and I'm making a pdf attachment that's pretty, but we need the info right int he email also because that's what they are used to
 
@Luggage what browser / design do you need tables for? seriously.
 
1:53 PM
^ I was about to ask the same
 
at present, i don't know of any. But i remember havind a table or two in previous projects for things like "span the rest of the page"
which css can't do very easliy
at least not when you need some columns to auto-size
 
flex layout
 
display: table is CSS level 2
 
rmember i was supporting IE6
hah, flex
 
We scrapped support for IE6 a little while ago
 
1:55 PM
I love flex. I use it in my current app.
 
I think we scrapped IE7 too
 
you think we chose ie6? our clients chose the browser for us
 
We're about to scrap IE9 :)
 
ie6 is best
 
I don't officially support IE :D
 
1:55 PM
I love how when you say "we need to support ie6" people assume it's by choice
 
@Luggage well, they are not wrong, you choose to work there.
 
My boss said that if it functions in IE8, move on. Made me really happy
 
i wish that i have a boss like yours
 
my boss loathes IE
so we don't support it
 
the webdevs have to support all major browsers. For IE, it's after version 7
 
1:56 PM
he also hates apple, so I don't have to support any apple products either
 
my current project was intended to be internal only. I was going to get away with modern browsers only
 
I still make sure it works, but yea. no pressure at least :D
 
but.. now it looks liek i have to support at least as far back as IE9. maybe 8
 
@KarelG " all major browsers " generally refers to all current versions and 1 previous version
so IE10+
 
fortunately ie9 wasn't too bad. i got ti fully functional yesterday. a few visual artifact, but 'good enough'.
ie8 might be a challenge.
 
1:57 PM
there is a meeting in the summer to review the version support. Maybe we will move the minimum IE version to 8 and add Spartan
but heck, i'm a silly QA'er
 
@rlemon it's the latest 3 versions for us
 
apple is fairly easy to support. chrome and safari are fairly
 
apple is easy if you aren't doing much
 
and of course usage stats get considered for every project, no way around that
 
do the people who decide on browser support in your company do any metrics? I really find it hard to believe that there is enough clients using such old browsers to warrant the need to double your development time / money
 
1:59 PM
all safari's bugs are hidden away in useful stuff
 
but usually you're doing pretty well with the latest 3 versions
 
I chose browser support and yes, i did metrics
 
@rlemon depends on your field. Something like 40% of our consumers use IE 9 or worse.
 

« first day (1649 days earlier)      last day (3301 days later) »