« first day (1420 days earlier)      last day (3530 days later) » 

1:00 PM
how can something be called like this? bananarobotics.com
bananarobotics????
+1 for the creativity, but cmon!
 
I don't see the problem
 
@NickDugger banana+robotics
 
So?
 
OH MY GOD, someone mashed together two unrelated words to create something nonsensical and somewhat amusing
 
I own SassyMammoth.com, though it recently expired... debating whether or not I want to renew it.
 
1:02 PM
Call the internet police
 
@Zirak I'm fine with that, but they can't make something serious out of those 2 words
 
@towc You're right. "Banana Republic" seems to be doing badly, as do "Pull and Bear"
 
Micro + Soft
 
Penny Mustard
 
@Wall_Dough 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.
 
1:07 PM
Would you somehow feel better if they replaced "banana" with a different fruit? "Apple" perhaps?
 
@NickDugger I'd feel that lawsuit coming from miles away
 
lol
 
it could be "Ban an arobotics"?
 
@NickDugger those mean something
 
You hardly hear about this "book face", and "google" is totally not a typo
 
1:12 PM
@towc And banana does not mean anything? :P
 
@Magikaas micro and soft go well toghether, they can be used in the same context, but not banana and robotics, unless you're trying to make a banana robot
 
Ah yes, this "beagle board" they're selling...not to mention the "Raspberry Pi"
 
@towc Then are going to have to peel our bananas manually forever? D:
 
"Drop + Box" "You + Tube" "Face + book" "Google + null"
 
Stack Overflow...
 
1:15 PM
@Zirak beagle board actually makes sense, but I agree on the raspberry pi
 
Holla! Can I detect if function was executed?
 
yes, put code in it
 
Can you guys imagine a pregnant unicorn? -> pix.echtlustig.com/1301/…
 
@VeeeneX add the line console.log("EXECUTED") in the function and if it would be executed, the word would go sit in your console.
 
o/ 17
 
1:16 PM
@AwalGarg a box in which you drop stuff? your stream of videos going through a tube? A book with faces? many possibilities on google?
 
@KendallFrey I'm talking about something like this ´do while if localStorage.setItem then´
 
@towc I have heard that young entrepreneurs in SF kinda love those mashup names... It is going on and on like a tradition.
 
Question: what is the hardest thing to do in JS
Answer: Getting height of a hidden element
 
But it could be just a rumour
 
@AwalGarg those names totally makes sense
 
1:17 PM
@AwalGarg anthropomorphism much?
 
!!define anthropomorphism
 
@AwalGarg My pocket dictionary just isn't good enough for you.
 
@AwalGarg I'cant change function localStorage can I use annonymous function in it?
 
@CustomizedName Answer: solve the halting problem
 
@AwalGarg anthropomorphism The attribution of human characteristics or behavior to that which isn't human. [from the mid-18th c.]
 
1:18 PM
@KendallFrey Impoosible
 
@KendallFrey eh?
@VeeeneX wrap it in another function then.
 
MGE
Hello, when I try to validate my json, it seems valid, but when I use var jsonObj = JSON.parse(jsondata); it show me Unexpected token
 
@MGE Show us pastie or
 
@MGE I bet it is a problem of quotes.
 
@MGE what does console.log(jsonData) show?
 
1:19 PM
@CustomizedName how so?
 
And console.log(typeof jsonData)
 
@AwalGarg I can't
 
@VeeeneX jsonlint is imperfect, it validates json that isn't actually valid in all contexts.
 
@FlorianMargaine So deepin just looks like a cotton candy wrapper. Their console is pretty cool (because python-vte is cool), but they default the package sources to their own servers...to which I'm getting ~50Kbps.
 
1:20 PM
@ziGi I don't want to clone the elment and then make it visible using z-index, I need a simple clean solution
 
All in all, no.
 
@Sippy And what's better to use then?
 
@CustomizedName I am talking about the hight of a hidden element
 
Took 10 minutes just to retrieve package lists, I'm not waiting the 10 minutes to download emacs24
 
@VeeeneX any special reason? You are just debugging, right?
 
1:21 PM
@AwalGarg I'm trying to achieve localstorage in php
 
They've got tons of eye candy though, they have good design ideas
 
@ziGi I am lost :(
 
I'm trying to program lib for php
 
@VeeeneX lol that's a very bad idea.
 
:D
 
1:22 PM
@VeeeneX To do exactly what?
 
@VeeeneX Your brain. I haven't found a 'working' JSON validator yet.
 
Localstorage is clientside. php is serverside. "Localstorage in php" is impossible.
 
@CustomizedName because you don't look at the reference....
> Question: what is the hardest thing to do in JS
> Answer: Getting height of a hidden element
 
@Cerbrus I'm think it is possible
 
Why is it the hardest thing?
 
1:23 PM
@Sippy I've just wanted advice ;)
 
You're free to think it's possible, but that doesn't make it possible.
 
@VeeeneX Not in PHP :P
 
@VeeeneX You'm think wrong.
 
@VeeeneX That's my advice :D
 
@ziGi let me rephrase, I am lost on how to find height of a hidden div
 
1:24 PM
@CustomizedName div.style.height?
 
@AwalGarg On every localstorage.setItem get that data to object
 
$('.myHiddenDiv').height();?
 
@VeeeneX first, are you sober right now?
 
Give Fedora another go? meh...
 
@CustomizedName what does hidden have to do with anything related to the height
 
1:25 PM
@VeeeneX What exactly, do you think localstorage is?
 
@ziGi If he defines hidden as display:none then he will be having issues.
 
@VeeeneX And do you know where php is run?
 
@Magikaas storage not of good quality... "local". :P
 
@AwalGarg Yes I'm, I think so
 
Ehm, lol
 
1:26 PM
@Sippy yup that's whats happening
 
@AwalGarg Are you saying local products are bad quality?
 
Q: "Are you sober?"
A: "I think so."
Fact: "Nope"
 
@Magikaas nope.
 
@Zirak no need
 
1:26 PM
@CustomizedName display:none means the div does not get rendered, so it has no height.
 
You should probably just install windows.
 
display:hidden is different to display:none.
 
@Zirak ah damn
 
@Magikaas Localstorage is Client side "thing", which isn't stored in headers
 
@VeeeneX You are not, that's why you are saying so.
 
1:26 PM
:D
Yes
 
@VeeeneX So, how would you get that 'clientside' data to be stored locally, when you are running php on a server?
 
@Sippy there is nothing like display: hidden
 
@SecondRikudo not a good day for the mutt
 
@BenjaminGruenbaum Yeah, you're right. I'm tired of fun.
 
@BenjaminGruenbaum Owner should go fill the lottery XD
 
1:27 PM
@Zirak Kernel panic fun all day long.
 
@AwalGarg What am I thinking of then? You can hide stuff and render it.
 
@SecondRikudo Should what? Sue the baseball team for millions?
 
visbility:hidden
 
@Sippy visibility: hidden
 
That's what I'm thinking of.
@CustomizedName display:none != visibility:hidden
 
1:28 PM
What the hell, let's try mageia
 
@BenjaminGruenbaum you'd rather BSOD fun all day long?
 
@SecondRikudo Wow, that's pretty good aim
 
If you use vis then you can still get the height of the div but it will also mess with your layout
 
@Zirak oooh I actually heard good things about it
 
yeah... I was once trying to set the display of an element to hidden and it wasn't working and I was like WHAT THE HELL. CHROME IS FULL OF BUGS!!!!
 
1:28 PM
@Magikaas great question set cookie in Browser
 
@FlorianMargaine haven't had one in years
 
@AwalGarg Hahahaha
 
@AwalGarg Use Canary :D
 
I can imagine that :D
 
@BenjaminGruenbaum I never had a kernel panic. What does that say?
 
1:29 PM
@AwalGarg I once saw display: null
 
@SecondRikudo lol
 
@VeeeneX Then it's not really locally stored, you are storing it on the server and keeping a reference to it locally. That's called a database with optional login
 
And display: false
 
@SecondRikudo wat
@SecondRikudo wat
 
user2620028
@FlorianMargaine My computer just BSOD :(
 
1:29 PM
@AaronSiciliano n00b
You got ddos
 
@SecondRikudo display: !1 golfing :P
 
user2620028
Lol nooo i didnt get ddos
 
@FlorianMargaine you never had linux crash?
 
@AwalGarg Wut O_o
 
user2620028
the hard drive is bad in it and i cant replace it cause its my work machine lol
 
1:30 PM
@Sippy going to try this,
 
@Magikaas But that's what i want to achieve
 
@Sippy he can still get the height property from the style
 
If anyone familiar with CentOS and Transmission, would love some an answer here: unix.stackexchange.com/questions/153837/…
 
@Magikaas !1 == false
 
I'm dumbfounded.
 
1:31 PM
@ziGi Only if predetermined.
 
@VeeeneX Then you've already found the way to do it, I reckon? Since you know you need cookies and will store the data on the server, linked with an identifier you set in the cookie. Right?
 
Or reference error.
 
@CustomizedName That will work
 
@AwalGarg Still doesn't work, though, does it? ._.
 
@Magikaas Who wants it to work?
 
1:31 PM
@AwalGarg Whoever wrote it? :P
 
@BenjaminGruenbaum I never had a kernel panic, no
 
@Magikaas xD
 
@FlorianMargaine that's not what I asked
 
I was just comparing apples to apples
 
@AwalGarg Desparately hoping, praying for it to work and hide the element xD
 
1:32 PM
@Magikaas Not at all, problem is with localstorage I need to listen to it somehow
 
if you just mean crashes, then yes I had crashes on linux. Same on windows.
 
@Magikaas If it doesn't hide, I will just hammer the screen at the part where it is appearing. Problem solved! :D
 
@VeeeneX Listen to it? Not sure I understand what you mean
 
I've had several computers where I just had to shutdown windows everyday or it would crash the next day
 
@AwalGarg Good idea
@AwalGarg Typex works as well
 
user2620028
1:34 PM
@FlorianMargaine my work pc bluescreens any time it goes to a sleep mode D:
 
anyone used woocommerce?
 
@FlorianMargaine I've never had that happen to me, strange
 
my current linux pc... I reboot it every month or so
 
@Magikaas if function localstorage.setItem is triggered then do this
 
same for linux@home
 
1:35 PM
@VeeeneX So if you change the 'local' storage with javascript, you need to call the server with an xhr and update it serverside, you mean?
 
@VeeeneX Why do you even want to put localstorage in between then? Why not straight to the server? Are you trying to have a cache in localStorage?
 
@AwalGarg It will be set in headers using cookie lib in js
 
Shit what's the js notation to get the value of an element..
 
element.value
what
 
1:38 PM
@VeeeneX You know what, people keep thinking of such crazy things, keep trying to make them, some result in things like jQuery, and some in a nuclear bomb.
 
Why the fuck is that not working.
var hosting = document.getElementById("ddlHostingType").value;
 
@AwalGarg and @Magikaas pastie.org/9529493
 
@Sippy what is the type of the element?
 
If I type .. HostingType"). then the only autocomplete option near value is valueOf
 
1:40 PM
@AwalGarg Ehm, yes :D
 
Uhhh
It's a dropdownlist control in ASP.NET
 
@VeeeneX So you fetch something from the server and then set a cookie to tell the server that you set it locally, only to then lose whatever data you set locally when you refresh the page or go to another page, and send the cookies to the server?
 
@AwalGarg It shouldn't be a nuclear bomb for client side but maybe serverside :D
 
@Magikaas lol, I think he is not sure what he wants to do.
 
Do you have a use example for this?
 
1:42 PM
posted on September 05, 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) {} Exclusive bonus comic at The Nib!

 
@AwalGarg I'm getting that hunch too, but I dunno, maybe he has it all thought out
 
@Sippy Are you sure that's the actual ID? ASP.NET tends to mangle ids.
 
@Magikaas Ehm, basically yes but you saw example of setting data
 
@RyanKinal I think I just found that out.. fucking web forms.
 
Yep. They suck.
 
1:43 PM
@Feeds p*rn?
 
I've been working with them for 4.5 years -_-
 
@VeeeneX Yeah, so you set the data and set a cookie, but why set the cookie, only to then lose the data when you change to another page, what's the point in telling the server you have the data, when you don't anymore upon changing to another page?
 
@VeeeneX ... SMBC is not porn
 
@RyanKinal You might be able to give me a quick insight then, I have a dropdownlist and I want to change the display attribute of some elements based upon what's selected in the dropdownlist. Is Javascript a good way to go about this or would you use a postback instead?
 
@Magikaas What about comparing data from server and client side?
 
1:44 PM
@Sippy if not you could use the wrapping element height which is not hidden
and just inherit it's height
 
@Sippy Oh heeeeelll no. Don't use a postback for that. JS should do fine.
 
@RyanKinal Ok, take a look on last image of comics
 
@RyanKinal Aight. Thanks dude. I come from MVC, this is like going backwards in time for me lol
 
@VeeeneX If you can give an example for why you would do this, sure
 
lol
@VeeeneX ... last image of comics? The one where the dad is yelling at the kid?
 
1:46 PM
I've told you
:D
Yes
 
@VeeeneX You said you wanted to make localstorage possible in php, or did I miss something?
 
@Magikaas Maybe for someone in rare case
Nope you din't miss anything
 
Mkay, so you have no usecase, but want advice on a vague functionality?
 
@ziGi Wrapping element will resize if child element isn't rendered won't it? Unless that also has a predetermined height.
 
@Sippy depends what you want to do
 
1:48 PM
@Magikaas ofc
 
Guess I'm not the right person to help you, then :P
 
localStorage... PHP... wtf?
 
I give up
 
@ziGi ?
 
You've stopped giving rational answers
 
1:49 PM
if you want to do such stuff why would you need the height without knowing it?
 
user2620028
Local storage as in like text file storage veeeenex?
 
:DDD
Yes
 
@VeeeneX is u trollz?
 
That's not what you told me, lol
 
No :D
 
1:50 PM
You wanted to save it serverside and set a cookie locally, is what you said earlier
 
@ziGi I don't know, ask the guy who asked the original question xD
 
@Magikaas I answed to localStorage... PHP... wtf?
 
I'm just saying if you set it as display:none there's no way to get the height of it.
Cos there is no height.
Unless you predetermine it.
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
 
@VeeeneX Then use the reply function, so people know what you are replying to
 
1:50 PM
but the container may have a minHeight or a presetHeight
 
(My apologies to PHP regulars)
 
Which is predetermined!
xD
 
@RyanKinal I can program it in php
Problem is in js
 
@RyanKinal He's already in that room, hehe
 
@VeeeneX You can code localStorage in PHP? Are you a wizard?
 
user2620028
1:52 PM
What problem are we talking about here lol
 
Okay, yeah, we need a use case... pseudocode example... something more than "enable localStorage in PHP"
 
I have caught a bug in chat, a serious one!
 
@AwalGarg This best be impressive. :D
 
@AwalGarg Mosquito? Fly?
 
user2620028
@AwalGarg Petri dish and ship it to Zirak lol
 
1:52 PM
@Sippy Yes I'm
:D
 
Yeah. I don't think this is going to go anywhere, lol
 
Why is "serious bug" not already a meme image?
 
Try pasting a link to any chat room, then type some txt. ..anythng. And oneboxing would happen and the text won't show.
 
Have fun with Veeenex :P I'm going home!
 
1:53 PM
@RyanKinal ... what hath thou stumbled upon
 
Come to sandbox and see yourself.
 
@Magikaas Bye ;)
 
Always nice when SQL server profiler tells you to fuck off.
 
I will do this in php var_dump($_COOKIE)
:D
 
What are you even going on about
No one knows what you're asking lol
 
user2620028
1:55 PM
@VeeeneX What do you mean can you use an anon function in local storage?
 
user2620028
You cant store a function in localstorage, only string data
 
@AaronSiciliano He's a wizard, don't question it.
 
xDDDDDDDDDDDDD
 
user2620028
sigh it's too early in the morning for this shit
 
@AaronSiciliano I just want to know if object like localstorage was triggered
 
1:58 PM
Object... triggered... wtf?
 
user2620028
@VeeeneX Waits for sentence to be finished
 
document.getElementById("internalHosting").style.display = "block";
Can I do that or will Javascript flip out?
 
lol I am thinking whether to ignore him or not... but he is funny too :P
 
@Sippy did you try it?
 
@Sippy You can.
 
1:59 PM
@FlorianMargaine Nope, but for the sake of a yes or no answer I thought I'd ask first.
 
@AwalGarg Are you talking about me ?
:D
@AaronSiciliano So it is impossible?
 
@VeeeneX When did you last write code?
 
Boring Fridays
 

« first day (1420 days earlier)      last day (3530 days later) »