« first day (1427 days earlier)      last day (3531 days later) » 

12:04 AM
lol
 
It's the only suggestion, you have to take it
 
12:29 AM
added a pretty derpy (but working) editor for my minigame codepen.io/MateiGCopot/pen/HrsJC
I probably just broke all of the rules of a good UI
it's surely not the final version, and surely not many are going to use it anyway
hopefully it won't get stuck as this
 
@towc A spinoff of lights out?
 
@KendallFrey you haven't seen the actual minigame I made, right?
but yeah, it's a lights out recreation
 
I used to be good at that
see If I can do this
 
you surely can
I've only made tutorial levels so far
but if you'd mind making a level in the level editor and send to me the result...
 
random clicking:
5.5.3.1.1.0.1.1.0.2.1.2.2.1.2.1.1.1.1.1.0.0.1.1.0.1.3.0.1.3.2.1.2.1.1.1.1.1.1.3.1.2.3.1.2.2.1.2.2.1.0.4.1.0.4.1.2.4.1.3.4.1.3.3.1.4.3.1.3.1.1.3.1.1.4.1.1.4.1.1.2.3.1.2.2.1.2.2.1.3.1.1.3.1.1.2.0.1.1.0.1.1.1.1.1.2.1.2.2.1.2.4.1.3.3.1.4.1.1.4.0.1.2.2.1.2.2.1.4.3.1.1.1.1.2.3.1.2.2.1.3.0.1.1.0.1.0.0.1.0.2.1.0.3.1.1.3.1.1.1.1.2.0.1.3.0.1.3.1.1.2.1.1.2.0.1.2.1.1.1.3.1.2.2.1.2.3.1.3.3.1.3.3.1.4.3.1.4.4.1.3.4.1.4.2.1.4.2.1.4.1.1.3.0.1.3.1.1.3.1.1.2.1.1.5
 
12:38 AM
@KendallFrey seems fun enough
wasn't sure about how to compress the result
some 2 digit nums could end up in there
aswell as 10 digit numbers, if the user is insane
also, it's not a smart editor
the way I wrote the original level thing with proper arrays and stuff, you explained in the first 2 numbers the width and height of the table
in the last one the number of colors
and everything else was grouped in groups of 3
x, y, numberOfClicksAtPosXY
in the editor, everytime you click I add to the middlepart x, y and 1
if I wanted a better version I'd say the editor that whenever you click you should first check if there's already been a click at that position, if so increment the nOfClicks by 1, and if it's bigger than the number of colors, just erase your memory of clicks at that position
but too lazy for now
 
are if statements considered bad?
 
what...
 
no
 
@grasshopper you are confused
 
conditional branching is what makes computers so powerful. conditional branching is good
 
12:51 AM
I've always had this impression that it is considered weak to use them, no?
 
"weak"?
 
no
it isn't weak
 
like loops you should try to avoid them
 
no
 
why would you avoid the basic constructs of program logic?
 
12:52 AM
see the word basic
 
@grasshopper if you can without making the readability worse
 
it seems so elementary to use an if statement to solve something
 
@grasshopper I guess it was meant to be that way
 
if statements are not bad
period
 
@grasshopper if and loops are tools in your toolbox. Is it "weak" to use a hammer to hit a nail?
 
12:53 AM
ignore anything else
 
programming is to solve problems, not to find hard ways to solve them
@SomeKittensUx2666 you use a hammer? that's weak. I use my nose
 
@towc see from what I've gotten from the programming culture it is the latter.
 
it's the else statements you should avoid...
 
@rlemon lol seriously?
 
@grasshopper then you shall look forwards to a new probably more useful path
 
12:54 AM
@grasshopper no that was sarcasm
 
@rlemon you confused me aswell >:
 
@grasshopper No, avoid if statements, only use else statements
 
@rlemon add /s at the end of something to indicate sarcasm.
rlemon is a fantastic programmer /s
 
copy oh, that explains everything
 
you know my first website I ever wrote was entirely if statements and loops not a single function...
 
12:55 AM
SORRY INTERWEBS! I USED SARCASM! I APOLOGIZE!
:D
 
I didn't even get why someone would use a function, you had if statements they were all you need.
 
@grasshopper what was the purpose of the website?
 
it was to match college students with similiar interest
 
RLEMON uses SARCASM.... It's not very effective...
 
@grasshopper try making that lights out minigame without ifs and loops
 
12:56 AM
@SomeKittensUx2666 /s what? fantastic with AMAZING!!!!
#lawyered
 
sarcasm font, bitches
 
@grasshopper then you probably didn't absolutely need functions
and probably your code wasn't easy to read
 
you are right on both
 
.. I am robbie
 
12:58 AM
haha I just saw this on reddit a couple minutes ago
while watching weird anime 0_o
 
@BenjaminGruenbaum :DDDDDD
 
although i'm glad it was robbie and not robby because fuck those y'ers
 
yes honie
 
kendall freie?
 
haha, yea yea
robbie, not robby. don't be lazie
 
1:00 AM
*ieah ieah ftfie
 
Joke is over
Rated 1.5/10
 
shut up, ieou're ruining our partie
 
but... it is really my name and I used to get annoyed by it...
 
copie? that's like female schoolmate in french or something, right?
oh, copine... nvm
 
!!/norris
 
1:09 AM
@Witiko That didn't make much sense. Use the !!/help command to learn more.
 
lol guys
check this out
ok now look at the back at the domain
I now own it, they didnt reregister ever lol
 
The sarcasm font hosted by Glenn McAnally no longer supports hotlinking. I updated my sarcasm userstyle so that it doesn't use a separate font face.
 
grats I guess
 
lol was just so random
I didnt get directions with the game from ebay
and tried to go to the site and it had nothing
now Ill try and find stupid directions and put them up there
seems a lot of people are looking for them
 
2:11 AM
I am trying to make it so all the background images on a page get replaced with cats but for some reason it won't work, when I check the console logs it says none, but the if statement still thinks true. Here is the code: jsfiddle.net/zax07rj3/1
It is replacing everything with cats
 
2:23 AM
No one...
 
2:34 AM
What's wrong with what it's doing? Do you want it only to fill out the div's?
$('*') is going to find the html and body elements. If you don't want that, how about a more selective selector, like $('div')?
 
@Brandon What's going wrong?
@Loktar Redirect to an Amazon referral link
 
2:59 AM
hmm... so when using a div to draw my SVG with d3 nothing shows up
is there some known reason to that?
Answer: "You can't append HTML to SVG"
 
3:41 AM
penis
 
lol
reading all of the chat messages and suddenly a small penis appears.
 
3:57 AM
I think @KendallFrey will have seen it as a saracastic penis?
 
4:11 AM
@SomeKittensUx2666 @JohnKugelman I only wanted it to apply to elements with a background image
 
4:57 AM
@phenomnomnominal mornin
That has 4 flags btw, might want to delete it before it's too late. USed to have 5.
 
"It's replacing everything with cats" is the best problem ever.
@Brandon Don't forget to hit "Tidy up" before posting a fiddle here
Also, this is what you were looking for: jsfiddle.net/somekittens/zax07rj3/3
 
@BenjaminGruenbaum Oh well
 
5:15 AM
I cannot fathom the gates of logic that would need to be opened for the italicized term 'penis' to be considered offensive.
 
Prudes?
 
!!s/d/n/
 
@SomeKittensUx2666 Prunes? (source)
 
!!s/ well/rly/
 
@SomeKittensUx2666 @BenjaminGruenbaum Ohrly (source)
 
How expensive are file-system watchers ?
 
anyone use protractor? How do you test that an element is not visible
 
put the protractor on the top of the element... bah invisible element :D /just kidding
 
maybe theres a isNotDisplayed, ta.
 
toBeFalsy ... could help too :P
 
5:53 AM
less clear though
 
and I got me some cucumber up in here so there's other things going on
 
WebSQL is deprecated right ?
 
Can I go home yet?
 
5:59 AM
@phenomnomnominal lol, 8 flags
Probably a lot of validations/invalidations
 
Don't people have anything better to do with their time?
 
@monners heh, that's cute
 
Bought it this morning
 
Angular nerds: how do you clear the routes on the httpbackend service?
 
6:07 AM
Before I saw your project
 
@phenomnomnominal ...clear?
 
@SomeKittensUx2666 is that actually a thing?
 
Each test should expect only the requests inside that test
 
I'm writing protractor tests
I need to hit the same endpoint twice and get two different results
 
Protractor shouldn't be hitting $httpBackend - that's more of a unit test thing
though @BenjaminGruenbaum can chime in anytime
 
6:13 AM
@SomeKittensUx2666 @rlemon made a game?
 
heh, nope. The other one
(not mentioning his name so the trolls don't learn it)
 
I'd love to hear a better way of doing this then - we have an endpoint that gives us some information about the currently logged in user. We have a whole bunch of E2E tests running, so we need a whole bunch of different users. We don't want to hit the actual API, so we need to mock the data. What should we be using that isn't $httpbackend?
 
point it at a mock db?
I'm a little out of my league here
 
There's a hack around this, you can point it to a getter and have it return a different object at each time but I wouldn't do it.
 
A whole mock API is never going to fly
 
6:16 AM
I don't use $httpBackend, I mock my API at the API level and not the backend level - I think testing the backend itself is silly.
@phenomnomnominal why?
function mockedFn(){ return $q.when({someProp:"SomeValue"}); }
That's mocking a whole method, you can autogenerate those if you really want, it's not any more work than $httpBackend only it's testing one level below.
 
Yes but how would that look in a e2e test?
 
If you want to test how the app reacts when the API returns different things I'd test that.
You inject your mock API service instead of your regular one to the app and then test it.
 
Hmm yeah.
 
Anyway, if you want to mock $httpBackend, you can do this - read docs.angularjs.org/api/ngMockE2E/service$httpBackend
 
^ that's what I'm using
> To setup the application to run with this http backend, you have to create a module that depends on the ngMockE2E and your application modules and defines the fake backend:...
Doing exactly this.
 
6:20 AM
var flag = false;
$httpBackend.whenGET('/whatever').respond(function(method, url, data) {
  if(!flag){
      return [200, "WHATEVER", {}];
      flag = true;
  }
  return SOMEOTHERTHING;

});
Yeah, like I said, if you want to test at that level (the http calls themselves and not the API which I disagree with since I've found it less effective but ymmv) - that snippet I just posted is how you'd do it.
Obviously, the flag = true should be above the return, I haven't slept in 30 hours.
 
That's pretty much what I'm doing, I'm just not happy with it
Oh well, I'm going away for 10 days, and it sounds like a not-tonight problem
DUDE. SLEEP.
 
@phenomnomnominal because it's bad and it tests implementation detail :P
@phenomnomnominal yeah yeah, waiting for my wife to finish doing something on her computer and then going to sleep.
 
If I'm right in assuming that a second call to $httpBackend.whenGET('/whatever').respond( would overwrite the first, then I think my current solution will do for now
 
@BenjaminGruenbaum Isn't it 12 hours past your bedtime?
 
I'm just not comfortable with the assumption and cant be fucked checking right now
 
6:25 AM
Rightfully so.
@Zirak it's 12 hours before my bed time.
 
!!tel benjamin dude sleep
 
@benjamin dude sleep
 
Fine, gnight
 
Sideways angry eyes? :o
 
6:29 AM
turn your head to the left, magic
!!magic
 
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵐᵃᵍⁱᶜ
 
@AbhishekHingnikar Blushing eyes?
 
i see sleepy eyes
bonjour @dystroy
Comment vas-tu?
 
!!tell Benjamin dude wake up :P
 
@Cerbrus Command dude does not exist. (note that /tell works on commands, it's not an echo.)
 
6:40 AM
Meh
 
!!tell Cerbrus echo this way or !!tel Cerbrus this way
 
@Cerbrus this way or !!tel Cerbrus this way
 
!!tell cerbrus help tel
 
@cerbrus tel: User-taught command: <>@$0
 
@AbhishekHingnikar bene, bene, e tu, come sta ?
 
6:43 AM
@SomeKittensUx2666: Damn, that game gets impossible when you survive for a while xD
 
I started to learn french properly like 4 days ago :-/, that breaks my naive parser
Time = 4:04, sleep not found !
is that a bad joke ?
 
Yes
 
@AbhishekHingnikar A much too common one
 
duty done
 
6:59 AM
a 32 bit system???
@SomeKittensUx2666 Thanks, I don't know why I didn't think about that before.
I am amazed at my simple oversights, and sorry about the bad formatting, something is wrong with copy and paste for some reason
 
Newbie. Which is the right stack exchange (if any) to ask for a recommendation of a library function?
 
@dcorking 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.
 
Anyone else like the idea of forcing new users to take a tutorial on how to properly use Stack exchange?
 
? nvm
 
@dcorking you don't ask for recommendations
you're question will be closed
 
7:08 AM
May not apply for libraries, haven't really been there
 
check their help page first, though
 
Yes - I dont think software rec will help me find library functions. However, I tweaked my search terms and eventually came up with it.
 
@dcorking Google is you're friend
 
Neat!
 
Trouble is that 'find' and 'detect' come up with lots of irrelevant results, when searching javascript
to developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… It turns out it was in the standard library after all!
 
7:14 AM
jsfiddle.net/v2Lbeys5 I shall call it, the cat attack
@SomeKittensUx2666 Thank you
 
Perhaps I could have asked SO or CodeReview: 'What is the best way to detect if an array contains an element which satisfies a predicate?' . I would have to implement it myself first. What do you think?
GTG
 
I'll go make us tinfoil hats
 
@dcorking some
 
7:29 AM
'morn
 
morning
 
@skibbi_bizzle 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.
 
@AbhishekHingnikar *facepalm*
 
evening
:)
 
@MaungYeHtunZaw 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.
 
7:34 AM
@AbhishekHingnikar sure, but you'll need to convert it to jquery first
 
@CapricaSix Ok
 
@AbhishekHingnikar that is such a wondeful question, who is this intelligent person?
 
@AwalGarg facebook person who posted to angularjs
i am so happy not every programmer is on so
 
this is such a boring afternoon, I spent an hour fighting with the airtel customer care...
@AbhishekHingnikar we are reaching there, don't worry.
 
7:40 AM
why u ?
airtel is so awesome
try bloody stupid networking limited [BSNL]
 
@AbhishekHingnikar wrong plan activated
@AbhishekHingnikar yeah there services are pretty nice
just that the customer care sometimes sucks.
otherwise, airtel is a very nice service provider in all.
\o/ I revamped my ubuntu today, switched to cinnamon dm, got some applets, and it is working superb!
I really like the cinnamon dm with an adwaita theme overlay.
superb performance, and the plus of workspaces inbuilt.
and also the windows 7 like taskbar and start menu and a better terminal
 
8:05 AM
so far this week I am 10 hours over what my contract says I should be doing, and I dont get overtime :'(
 
@DrogoNevets stop working
 
@towc if only it were that simple
there are these things called 'deadlines' and as im aiming for promotion soon-ish
 
if you say you've not been rewarded for those 10 hrs anyway
I doubt your boss is currently considering you for a promotion
and yes, I've been a boss in enough places to tell that :P
 
well considering that I have my line manager, please the 2 dept leads supporting my case, and it is simply down to finances now......i would disagree
 
ok, good luck then!
 
8:14 AM
but I still need to show willing, and i would love to know where youve worked where you get a decent salary plus overtime when staying only 2-3 hours late a day
 
apparently the js13kGames thinks that my cell toggler minigame would make for a good entry
means I'll have to clean up that messy code, smarten out the editor, build more levels and do stuff!
 
Hi there
 
@JakubKohout 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.
 
@JakubKohout hi here!
 
do you know if there is any way how to get data from other site (these data are loaded via ajax)
 
8:20 AM
@JakubKohout cross site?
 
there are a few hacky ways, but none reccomendable
svg has a foreign object element, which puts in an image the page at it's src, which can be anywhere. Look it up
 
hmm... via php curl command I got whole HTML of the page (in a string) and in this string is <script> part where is variable with whole json array
 
but if you want to get the actual page I'm afraid I don't know a way
you could use php
but meh
 
ok nwn thanks :)
 
8:27 AM
@JakubKohout proxy is the best way IMHO
 
8:41 AM
oh... js13kgames deadline is tomorrow 0.o
not sure I'm going to be able to make it
 
@towc Aren't you like 14 years old?
 
@monners I guessed it was clear I was sarcastic
 
Oh, my mistake :P
 
don't worry
 
stops worrying
 
8:45 AM
can i please go to bed?
 
Old people used to write obnoxious thinkpieces about how people these days always wear watches and are slaves to the clock, but now they've switched to writing thinkpieces about how kids these days don't appreciate the benefits of an old-fashioned watch. My position is: The word 'thinkpiece' sounds like a word made up by someone who didn't know about the word 'brain'.
5
 
@DrogoNevets I guess no-one here is preventing you from doing it
@Feeds awesome!
 
i have a huge watch
 
I'm going to build a choose your own adventure game based around console interactions. Please ping me with any examples you know of of funky console behaviour/effects (I'm lookin' at you @rlemon)
4
 
Mornin'
 
8:48 AM
Somewhere in the world, sure
 
In England it's definitely am :D
 
Morning :P
 
In Australia it's definitely Friday evening. Have fun at work suckas!
 
i am wearing my huge watch
holding my huge android phone
 
Compensating for your tiny penis?
Yeah, that'll get flagged.
 
8:51 AM
@towc no i guess not, but i somehow dont think its allowed seeing as its the morning
 
oh comon, mine unerected is bigger then yours at full strech
 
i have however already been to the dentist AND the doctors today
 
@AbhishekHingnikar hahahahahah yerite
Mine's like 2m long
 
Oh god, what have I started...
 
he meant 2 microns
xD
 
8:53 AM
HEY 2 MICRONS IS LONG ENOUGH BRO
 
everyone should star abhishek's message and make him feel awkward
 
Lololol
I went on CoD again last night
Met another 3 kids that've fucked my mom on CoD last night
She gets around, man.
 
hahaaha
@towc now just star sippy's mom message
 
@AbhishekHingnikar thought so
 
LET'S GIVE IT SOME CONTEXT THEN
 
8:56 AM
nope
 
Hah
 
Hoh
 
Huh?
 
8:56 AM
^lol
 
whispers : quick end this before florian comes
 
+= 1 internet for Magikaas
internet++
 
+3 brother/sisters unknown for you
xD
 
Ohh, I've always wanted to have one of those :o
Now I can frame it and hang it above my bed!
 
@AbhishekHingnikar If my mom can still have kids I'd be amazed.
 
8:58 AM
So it's one of those days
 
hello everyone....so.. my question is more looking for na advice, what is the best code editor for php, HTML, css and js ?
 
@Zirak ...
 
@Zirak fri days
 
!!friday
 
@Sippy y ? you ripped her apart when u came out ?
 
8:58 AM
@Sippy I guess that's one method of parenting...
 
Wat.
 
<oh was that too far ?>
 
@Japa There's no such thing as "best editor", there's an editor you like best.
 
1 message moved to Orphan GIFs
 
@Japa depends on your needs. The most common are VS, N++ and Sublime Text
 
8:59 AM
Bot should autoremove some of those images after a time limit rly
 
for me the best is WebStorm
 
For me it's Emacs, for others it's Vim, some like WebStorm or Sublime or Notepad++ or Coda or....
@Sippy It does
 
@AbhishekHingnikar If you can offend me over the internet I'll give you an internet
 
for me its butterflies
 
@Zirak EMACs eh? You hipster
 
8:59 AM
@Zirak Oh, thanks :D
 

« first day (1427 days earlier)      last day (3531 days later) »