« first day (1823 days earlier)      last day (3123 days later) » 

11:00 AM
@crl I'm just giving you a very bare bones idea
 
I done require('promise-polyfill')
but Promise is undefined in ie8
 
MGE
hello
I'm trying to add an element into a js object
Uncaught TypeError: eventcategories.push is not a function
push is not a funtion?
eventcategories.push(eventcategory+':'+categorystring);
 
@crl what I am using is something like this: pastebin.com/xnc5xLkT
But the saveProductName(), saveProductType() and saveProductCategory() are all ajax calls to a REST API using $resource
 
crl
if you want to exec ajax3 after ajax1 and ajax2, you might want to use promises (less ugly than callbacks)
Promise.all([ajax1, ajax2]).then(function (results) { ajax3(results) })
let me make a jsbin
 
@crl Will this work even if the actual api calls are made in functions in which are in another service called by the first function?
 
11:08 AM
@MGE push is an array function
Not an object's.
 
eventcategories[eventcategory] = categorystring;
 
where ProductName is a service
 
MGE
nice working, ty
 
user3119231
Is it only me or does jquery make code larger then javascript?
 
crl
11:14 AM
@shyam I don't know, but this jsbin.com/kefuxu/edit?html,js,console can wait for 2 ajax call and gives the array of the 2 results
 
Can anyone see what is wrong with this (react 0.14.0, react-router 1.0.0-rc3):
import {Component, render} from 'react';
import {Router, Route} from 'react-router'

class TestComponent extends Component {
  render() {
    return <div>Test Component</div>;
  }
}

class App extends Component {
  public render() {
    return (
      <div>
        The children!!
        {this.props.children}
      </div>
    );
  }
}

render((
  <Router>
    <Route path="/" component={App}>
      <Route path="*" component={TestComponent} />
    </Route>
  </Router>
), document.body);
 
user3119231
@crl Don't be so stingy with semicolons jew. :D
 
MGE
why is not running this?
 
> Uncaught ReferenceError: Router is not defined
 
MGE
for ( var i = 0, l = eventcategories.length; i < l; i++ ) {
console.log('b');
}
eventcategories is an array with values
 
user3119231
11:17 AM
for ( var i = 0, i < eventcategories.length; i++ ) {
console.log(eventcategories[i]);
} @MGE man you use random vars
 
@crl let me try.
Thank you
 
MGE
nope
 
1 message moved to Trash can
@MGE Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
MGE
console.log(eventcategories);
for ( var i = 0; i < eventcategories.length; i++ ) {
    console.log(eventcategories[i]);
}
first console log working, but not console.log inside the for
 
@MGE console.log(typeof eventcategories)
What does that give you?
 
MGE
11:21 AM
nothing
 
crl
make something on jsbin.com to show what you mean, or show us eventCategories
 
MGE
console.log('lenght: '+eventcategories.length);
undefined omfg
 
@MGE That's not possible.
 
user3119231
You have to define the array out of functions.
 
user3119231
Not in some functions and try to access it from other functions man
 
MGE
11:24 AM
jQuery.each(eventcategories, function(index, value) {
       console.log(value);
   });
});
solved
 
user3119231
yeah add some jquery. This will totally solve the problems.
 
user3119231
eventcategories = ["1", "2", "3"];
for ( var i = 0, i < eventcategories.length; i++ ) {
console.log(eventcategories[i]);
}
 
user3119231
works fine.
 
user3119231
@MadaraUchiha today everyone just want it "easy".
 
11:25 AM
@Maurize eventcategories is almost surely not an array
 
MGE
Object {1: "Conciertos", 2: "Festivales", 3: "Discotecas", 4: "Teatros", 5: "Museos", 6: "Parques temáticos", 7: "Guías turísticas", 8: "Deportes", 9: "Danza y baile", 10: "Cine", 11: "Ferias y congresos", 12: "Circos", 13: "Monólogos", 14: "Pubs"}
 
But he's saying typeof eventcategories gave him "nothing"
 
crl
Object != Array
 
user3119231
this is a "class" man. :D
 
@MGE Okay, why do you have it in that structure, and not in an array?
 
crl
11:26 AM
!!> var a=['foo'];Object.keys(a) //even if you can do that
 
@crl "SyntaxError: missing ; before statement"
 
user3119231
 
MGE
25 mins ago, by MGE
hello
 
@crl ["0"]
 
crl
@MadaraUchiha certainly php
 
11:28 AM
@crl I don't think so
Even in PHP you don't do that.
array("1" => "foo", "2" => "bar")
That's stupid even by PHP's standards.
 
crl
you can stringify in several way, either array or object form I think
 
user3119231
@MadaraUchiha it is stupid even in PHP standard.s array = ["foo", "bar"]; - excuse my bad editing.
 
11:51 AM
Getting a call stack size exceeded error... fiddle.jshell.net/deostroll/q7aumgd3/5 #kineticjs
Is it that we are only allowed certain number of elements...?
 
That url is sketch city. Did jsfiddle change their name?
 
Finally I am up
 
@Cereal No, why?
 
crl
Some random question: How do you make PostGre queries asynchronous on node?
 
I am an Idiot, big one !
 
12:00 PM
Why doesn't Brackets show alert when "live preview" is on ? i.imgur.com/NdISU70.png
 
user3119231
anybody knows an javascript apk builder which supports background service?
 
@KendallFrey his link was to fiddle.jshell.net, not jsfiddle.net
 
That's jsfiddle's "other" address
 
Supa sketchy
 
12:12 PM
I believe they use it for hosting fiddle content
 
Compounded by the fact that jsfiddle is under https, and fiddle.jshell isn't
 
Why is it sketchy?
 
^
 
user3119231
too much recursion
 
“This website uses cookies” is like saying, “this pack of peanuts contains nuts”.
2
 
12:24 PM
Yeah I don't understand why all these sites are telling me these use cookies
"We save data locally, to convenience you"
Could you imagine if word was like "Hey, just letting you know this program implements saving to convenience you"
 
cookies or not, websites have to take space locally
 
@Cereal IIRC some EU rule
 
@AwalGarg have to? why?
 
EU laws are stupid
 
12:27 PM
EU is kickass
 
user3119231
EU kicks ass
 
I saw a porn video title "THIS IS ILLEGAL IN THE UK" the other day, and it was just some girl sitting on a guys face
EU laws are stupid
 
@KendallFrey somewhere in some buffer where the response from the server is stored.
 
@Cereal IIRC in EU os vendors cant install a fixed browser
 
@Abhishrek That, I can understand
 
12:28 PM
@Cereal Most porn is tagged with fake information, I mean comon you found it on a porn site without a reference to wikipedia about that law.
 
So do they just not sell chromebooks in the EU?
 
@Cereal Chromebook would most likely be a difference case :P
but IIRC they have to offer you choices
 
sigh.. ie11 ie8 mode console doesn't evaluate
 
Chromebooks can be special cased because they explicitly state that they use the Chromium/Chrome browser. (I think)
 
@Cereal NVM its obsolete now
 
12:30 PM
sometimes I think "okay, the comment section shouldn't be that bad right?!" then I scroll down and disappoint myself.
 
@AwalGarg It sounded like you meant permanent storage
 
why is content: '\e800'; a checkmark on this site, but a box with an X through it on mine
inb4 fonts
 
you can define the unicode entries of a icon-font
 
@KendallFrey ah, should have stated that. my bad.
 
I got a new fish tank. am I doing it right?
 
12:32 PM
> If you get one either
a) your random number generator is bad, like *Debian* bad, and
you're *totally screwed* already:
lol
 
@rlemon Is that the new AMD gpu?
 
they said the tank needs light and heat
 
Chromebook doesn't care about the browsers because they don't have a monopoly over desktops/laptops
 
@rlemon joking or serious ?
@FlorianMargaine so the law still holds ?
How do you handle iOS ?
android ?
 
12:46 PM
@Abhishrek yes
user image
2
 
If I use react-route (0.13.3) and have a route file like this:
<Route handler={AppComponent} path='/'>
  <DefaultRoute handler={TestComponent} />
</Route>
Why does / not get TestComponent in this.props.children?
 
user3119231
So I've created an intentservice. is there a way to trigger a js function from this function? (android studio)
 
what is the most cross browser way to play a video (.mp4 primarily)?
can someone provide a link to an article
 
Flash
 
!!google html5 video
 
well we know it is html5 video tag, but apparently it sill needs a .js implementation such as video.js or embed.js
 
@rlemon yes is not a valid response
 
@Abhishrek C)
 
Morning
 
@rlemon stop trolling
 
1:17 PM
http://localhost:8080/dolphin/administration/ if I have this URL, and XAMPP is running port 8080, why does the url change to http://localhost/dolphin/administration/ and lose the port number?
Port 80 is being used
 
browser?
 
chrome
 
Windows?
 
@SterlingArcher Silly system doing absolute redirects based on host?
 
ya
@RoelvanUden not too sure.. it's all run locally
 
1:18 PM
Check what processes are listening to port 8080 with netstat -an
No wait, that doesn't list process
netstat -aon
 
@SterlingArcher It wouldn't be the first fucky system that does a redirect to http://${host}/dolphin/administration/
 
@SterlingArcher XAMPP is your first problem..
nginx > apache
postgres > mysql
do you need perl?
you don't need php.
 
the cms I'm installing is PHP and MySQL :(
 
You poor soul
..wordpress?
._.
 
The ports seem to be.. not appearing on netstat or WTM
No, something called Dolphin Pro
 
1:24 PM
@SterlingArcher Do a ctrl+f
They're not in any reasonable order
 
do a ctrl + a, del, ctrl + s
call it a day
 
WTM shows order of ports, and neither 80 nor 8080 are displayed
Oh wait... PID is not port number is it..
 
no
process id
run: netstat -a -b
 
is this being written incorrectly? jsfiddle.net/wu8unxt9
 
yes
don't use HTML strings in your JS like that. build the element using the DOM api
 
1:26 PM
Example ^ @SterlingArcher
Highlighted is just my local app server
Port is under local address
 
@rlemon ok
what would be a simple example of building the element with dom api?
 
var video = document.createElement('video');
@JoJo ^
 
What does this deprecate do?
 
@Cereal @rlemon thanks.
I will look into it
 
In the network tab in devtools, that's showing just time it takes to fetch a file right?!
 
yes
seriously tho. HILARIOUS the number of DMCA notices which complain about 127.0.0.1
 
I have a weird issue. There's a file coming from the same domain (slightly different headers) that is half the size of another file but takes significantly longer to load, like 6 times as long
 
Both are code 200, not cached
 
1:44 PM
is this gonna be the correct approach? jsfiddle.net/n571x99g/1
 
@SterlingArcher that is a quality stick
 
inorite?
 
@SterlingArcher damn, was hoping to get sweet sweet karma for posting it in /r/idiotsfightingthings
 
I have no karma :( But I got imgur swag
I have 177 updoots
 
1:48 PM
 
"I find the white doesn't have enough contrast"

*change everything to high contrast white on black*

"It's too hard on my eyes"
Pink theme incoming
 
should setAttribute or setAttributeNode be used to add an attribute to an element?
 
"Can you make it look like facebook?"
 
Would you see map files associated with a js file separately in the network tab?
 
@JoJo not needed, unless you're using data-* crap or using IE6
attributes map to properties for Element nodes in all modern browsers
 
1:54 PM
hi i am develop android app uising phonegap... my backend using struts java in backend maintain session for someprocess working fine all mobile. but not working sumsung s2 session is null
 
@JoJo Depends on the attribute
 
For example I just want to set a class attribute like here jsfiddle.net/n571x99g/1
 
use classList
 
I will also see if there is a tut on pluralsight.com
 
or className if you need old support
 
user3119231
1:55 PM
is possible to affect 4 elements in 1 keyframe?
 
@rlemon I'm watching Futurama. Thanks for suggesting it!
 
user3119231
I mean I want them to move -> first element after 1s, second after 2s and so on
 
@SomeGuy I can't believe you never have before
 
I have watched some before
Just random episodes on TV
 
when I learned you hadn't watched it, I almost made @AwalGarg my favorite Indian.
 
1:56 PM
@rlemon when you say old support do you mean less than IE9?
 
Hahahaha
That's unfair!
 
j/k @AwalGarg will never be my favorite.
 
Yay! :D
 
@JoJo go look it up
MDN has compatibility tables
caniuse.com exists as well
 
ah gotcha
caniuse will become invaluable
 
1:58 PM
Yeah, we even have a command for it here
!!caniuse video
 
oh wow
 
!!caniuse classList
 
user3119231
 
user3119231
how to prevent these pukes from moving all
 
user3119231
and move them one by one
 
You can polyfill classList pretty simply
 
beautiful animation
 
It won't be a 100% parity of what the spec says, but you can get all of the methods to work with the polyfill
 
2:02 PM
We suspect the extra load time comes from an ETag in the header, anyone familiar with that?
 
crl
!!is it stupid to use angular-ui router when you want to make something modular with any level of nested 'routable' elements?
 
@crl Nope
@crl Frankly my dear, I don't give a dean
 
crl
ah fu
 
bless you
 
imgur.com/gallery/YT9FLFK LOOK AT HIM WASH ALL THE THINGS OMG <3
 
crl
2:07 PM
there should be a text-transform css property that respect first letter capitals, and CamelCase (so it wouldn't affect code, but only screaming)
 
@rlemon Damn, what'd you do?
 
they said fish need light and heat
speaking of which.
My girlfriend is asking for space and time. Is she calculating velocity?
 
@rlemon Depends, are you now, or ever have been, a Time Lord?
 
@rlemon If she's asking that, she'll be calculating the velocity of your best friend here soon.
 
His time lord name is "The Canadian"
 
2:17 PM
no
Dr. Pardon?
we're polite
 
0
Q: Port is removed from URL on enter

Sterling ArcherSo I just installed Dolphin Pro, and I was able to use http://localhost:8080/dolphin/install/index.php just like the instructions say. Great! It says it's installed. However, when I try to go to: http://localhost:8080/dolphin/administration/ to get to the admin panel, when I hit enter to go, th...

I don't trust these comments :X
 
@SterlingArcher 8080 doesn't redirect to 80 for me
 
@SterlingArcher are you sure it is just 8080?
try a random port like 8888
 
1337
 
if so, xampp is forwarding all traffic to 80
 
2:20 PM
I'll try changing the XAMPP port
 
no
try what I said first
 
ohhh change the url port?
 
yes
 
Make sure you don't have skype running. It fucks with my ports all day long unless I open it last
 
Port remained
 
2:21 PM
so only 8080 -> 80
 
No error except nothing is running that pport
 
might be worth noting in the issue
 
Yeah it seems so
@Nick no skeep installed
 
also, check the VirtualHosts
it is possible that is already setup to forward
 
> C:\Windows\system32>curl -I "http://localhost:8080/dolphin/administration/"
HTTP/1.1 302 Found
Date: Tue, 13 Oct 2015 14:18:54 GMT
Server: Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.12
X-Powered-By: PHP/5.6.12
Location: http://localhost/dolphin/administration/
Content-Type: text/html; charset=UTF-8
Here seems to be the issue. The request returns a 302 redirect
 
2:24 PM
2 mins ago, by rlemon
also, check the VirtualHosts
 
I don't know what those are D:
 
@SterlingArcher vamp
20
Q: setup apache virtualhost (windows)

nightingale2k1How to setup virtualhost for multiple domain name on windows ? I will use it for my own test projects. I have 3 projects that I need to setup and at the moment I'm using xampplite for the portable apache. www.foo-bar.com --> direct to c:\xampplite\htdocs\foo-bar\ www.abcdef.com --> directo to ...

@Zirak fix it
!!weather kitchener, ontario
 
@rlemon [object Event]
 
crl
2:28 PM
7 hours ago, by crl
weather command is broken
 
it has been broken for a while
 
hrm XAMPP doesn't seem to have http-vhosts.conf
 
Err. @SterlingArcher, port 80 is returning a webpage
 
Lemme check deeper
 
That's not a not found in chrome
 
2:29 PM
@SterlingArcher just look for the conf file
any conf file
look around
or grep the entire hdd :D
 
Oh I found the conf file. No <VirtualHost> tags are there
lol grep it is xD
 
there may be multiple conf files
btw, apache sucks. install it on nginx
 
nginx doesn't run on windows
 
windows sucks (as a server)
use the proper tools for the job
 
give the mouse a cookie and not only will you have crumbs in your mouse, you'll need to install a RHEL cluster
 
2:31 PM
Ubuntu server works fine
easy to deploy as well
 
@SterlingArcher you should really invest in a vm or two
I wanna set up openstack on a vm today to see if I can use it on my dedicated box. It's super easy to manage, just never set it up
 
crl
install windows server
 
Got my answer... naturally it brings on another issue but progress is progress?
!!afk vape
 
vamp*
Ftfy
 
i would also advice ubuntu server over windows (R) servers
had terrible experiences with the newest windows server >.> So moved on and discovered ubuntu
 
2:43 PM
thanks for the help ya'll.. got a working version: jsfiddle.net/L7mzsw97/5
 
ferd.ca/the-little-printf.html long but pretty good
 
reference to the little prince ?
(Le Petit Prince i mean)
 
crl
dessine-moi un mouton
 
lol
 
@Terrance00 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.
 
2:49 PM
dat magic card.
 
@rlemon Haha, seriously, though? How'd that even happen?
 
no clue
no my tank
funny picture I found online
 
anyone know where the setting to make a fiddle public is?
 
I need to reddit less
 
2:54 PM
or add to Public dashboard?
 
@JoJo give it a name
 
@JoJo left, fiddle options, give it a name
 
k
 
@Loktar if you get that game, lemmy know. very fun moba
 
Which game?
 
2:55 PM
I don't know why you wouldn't get it, it is free. but you know ;)
 
Which game?
 
THE game
 
hardware rivals beta
PS4
free for PS+
 
@jAndy geddaut
 
woah hey @jAndy
 
2:56 PM
:D
 
@jAndy The Game
 
@rlemon yeah Ill have to dl it, won't be home tonight at all
 
Does every great caching system run as a server? I'm just getting redis to work, but I see that memcached is also a server/client. I mean, it makes sense, but I just wasn't aware
 
didn't knew that chinese space agency has landed something on the moon
 
user1596138
2:58 PM
@rlemon lol that looks fun
 
it is
I wanna gopro and a balloon
 
In making my framework (which I'll say again, will probably never see the light of day), should I use something like redis, or create my own simple layer of caching?
 
rlemon, do it but dont use a fish lens camera.. are gopro's fish lens by default?
I want to see if the earth is really flat
 

« first day (1823 days earlier)      last day (3123 days later) »