« first day (1382 days earlier)      last day (3564 days later) » 

9:00 AM
Ah, thank you @dave
 
Although this is a JS room lol.
 
Yeah, you might get more help in the CSS room
 
wrapper is absolute, already
 
There's a css room?
 
@blackbee then you should be fine
 
9:01 AM
noh, i will try it own my own , i don't want to go to any other room
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
 
WHoops
 
I'll be back later guys. Have good days!
 
9:20 AM
Morning Gents
 
hell with float left right , i will add it to top
 
Do you remember how I told you about the 50MB of JS code generated by my colleague. And how he reinvented promises by using setInterval(checkAjaxFunction, 100)
well now he has a new jewel :D
asks me why I don't extend instead of using composition
 
@zigi and what have you replied?
 
I tried to tell him why extension is not good from software engineering perspective
and he said, that's not true my friend, it really depends on the case
 
9:24 AM
@blackbee What are you trying to do?
 
and then I tried to explain to him how much inflexible and bloated it becaomes if we extend it when instantiating the object
and he said, it is more convenient if we extend it because we don't have to call external objects but $this directly
and I was
 
@zigi he made a fair point
sometimes you might want to combine two prototypes or classes into one
 
true, but that's not what we are doing
 
that sounds like violating SRP, but when implementing libraries, such "mixin" design really helps
in general mixins are pretty much about that
 
he just wants to have all the functionality of another module being extended for my extended class to be able to use 1-2 methods from the inhereted class
 
9:27 AM
nothing much ,a todo list with mobile.twitter.com look , with the sidebar on the right .. @monners
 
@BartekBanachewicz he's we are not using "mixins" nor traits
I am talking about PHP right here
 
@zigi then explain why do you think in this particular case it's a bad idea. Condemning inheritance altogether is a bad generalization
 
maybe that's not the proper room
 
@zigi oh ok nevermind
burn the code salt the earth.
 
yeah, I don't condemn it, I am just saying
I try to be objective usually
 
9:29 AM
@blackbee Like jsfiddle.net/mnL58 ?
@blackbee or jsfiddle.net/mnL58/1 ?
 
@monners ^^
sort of
yes
 
Well that second link'll get ya started. Content's on you.
 
tthanks :))
 
Feel free to upvote one of my answers :D
 
:v
 
10:07 AM
bbrb
 
I was thinking about remaking those old pokemon games on browser
 
@towc That's quite the project
 
is there something I should know before moving on?
I mean... I know it will probably take me about a month if not more..
but in terms of programming
like, the maps and stats are probably too much data to be held in some arrays
is it worth using something to deal with it or is js ok with that?
also, would it be worth using webgl for 2d rendering?
is it worth using an audioContext instead of the audio elements?
 
10:26 AM
@towc maybe this question would help you gamedev.stackexchange.com/questions/4277/…
 
@towc Nah, there aren't insane graphics
 
@SecondRikudo but webgl would ensure smoothness
@WilfredoP jquery for game dev D:
how about no?
 
The Pokemon games aren't perf intensive
You'll probably get smooth rendering anyway
 
Things to consider: Stat and damage calculation, catch rate calculation, opponent AI (with different levels, because pokemon are considered "stupider" than normal trainers, and normal trainers are considered "stupider" than gym leaders.
The mew glitch must be there too.
:P
 
well, I'll care about all of the functionalitites
problem would be mainly the engine
 
10:29 AM
@WilfredoP pretty outdated though. there's a lot happening in 3,5 years
 
@towc How so?
Tile based movement and turn based battles?
Doesn't sound too insane
 
exactly, but I want to get it right
 
IIRC in Pokemon, there are several types of tiles
 
in the game engine there also is sound, animation, gui...
also, what's the mew glitch?
 
There are tiles you can walk on, tiles you can't walk on, tiles you can jump over from one direction, tiles that elevate you on the Z axis
@towc wait what?
You don't know what's the mew glitch?
Have you played red/blue?
 
10:31 AM
nope...
I was just born when they came out
or they came out before I was born
my first one I bought at 3.5 years and it was leafgreen
 
@towc The Mew glitch was a glitch in red/blue, which allowed you to catch any pokemon (and even non-pokemons which resolved into missingno) in the game. Most commonly used to catch Mew.
It involved defeating a pokemon with a special attack stat identical to the inner ID of the pokemon you're trying to catch.
 
@GNi33 see this phaser.io
 
!!tell towc google mew glitch
 
red and blue were released in europe in 1999, according to the wiki, which was 1 year before I was born
so...
that game is too old for me :P
I was actually thinking of making a retro version of diamond and pearl
 
10:34 AM
@WilfredoP yep, I know this one. there are a lot of pretty good engines/frameworks for various usecases out there
 
with the graphics used in emerald
 
@towc That means you'll have to remake most of the graphic elements
I suggest you go with FR/LG
 
@towc Did you ever make Pong?
 
The reason being that D/P/Pl uses 3d originally
 
That was made in 1972
 
10:35 AM
@GNi33 I tried some projects but always get stuck :/ and honestly I have not time :'(
 
same problem here
 
!!summon 43899
 
@SomeGuy but there wasn't a new version of pong since then
 
@SomeGuy https://www.youtube.com/watch?v=Rh3ZJxgHCe8
I'm addicted...
that refrain
 
@GNi33 I don't like the face of that dude
the guitar guy
 
10:38 AM
@towc Have you made games before? A Pokemon clone is pretty much jumping into the deep end of the pool
 
@SecondRikudo I did, many, but none really worth playing
 
I see
 
@towc what guitar guy?
 
@GNi33 the guitar guy
 
In any case, I suggest you go with FRLG for the reasons I mentioned above
 
10:39 AM
the one who also sings
 
haha
 
as I said: I was going to make diamond and pearl using the graphics of flgr or ers
 
the close-up of the singer on the beginning is kinda odd though
 
HI
i have json output using ajax {"LsList":{"1":"Open","3":"Closed","20":"test"},"result":"success"} i get data.result and data.Lslist. but how can i make loop for Lslist?
 
10:43 AM
HELLO, WHY ARE YOU SCREAMING IF I MAY ASK, GOOD SIR?
 
@Nileshpatel ... What have you tried?
 
@Nileshpatel for?
 
!!tell Nileshpatel mdn for in
 
while(i <= data.LsList.length) { console.log(data.LsList[i]) i++; } but i not found length
@CapricaSix @SecondRikudo @Kippie thanks. working.
var core = response.LsList;
for (var key in core) {
console.log(key +" "+core[key])
}
 
10:50 AM
Hi
I'm using the Kendo framework and JQuery but getting a conditional compilation error in IE when running the code. The problem is I'm using a Res file entry to define the name of my grid.

@(Html.Kendo().Grid<DataModels.Picking.PickingAssignmentItemViewModel>()
.Name(@UserInterface.Resources.GridRes.GridChild)

I'm assuming it is the @ that is causing the issues. How do I change it so JQuery doesn't give me the conditional compilation error?
 
11:03 AM
/^([a-z0-9])\s+/ig will match any alphanumeric charecters followed by one or more blanks??
 
0
Q: Pokemon diamond and pearl with js engine questions

towcSo, I was going to start remaking pokemon d&p with the graphics of firered/leafgreen, but I decided to stop a bit for asking the community suggestions about some things. The maps will probably be too big to just store in some arrays, should I still use js arrays or should I use something else? ...

 
!!live
 
@GNi33 I'm not dead! Honest!
 
@mikedidthis you around?
 
@monners Sup!
 
11:14 AM
guys any one gimme a answer for this question stackoverflow.com/questions/25013892/…
 
@Benjamin 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.
 
@mikedidthis What was with your tweet, something wrong?
 
@CapricaSix thanks
Great ping
 
lol
 
@monners I think he was being sarcastic about getting an unfollow
 
11:16 AM
@monners oh, about the guy unfollowing me?
Yeah, I had only been awake for an hour :D
 
Oh! Context. lol
Yeah, that guy. I was like "Ummm, ok?"
In case it wasn't obvious, I've been dealing with some pretty crappy code recently :P
 
Haha, I gathered. Device specific design / code will, at some point, bite your ass.
 
fuck me
%=§)(JG§()J
 
@jAndy Ok.
 
11:20 AM
what to do if stashed changes can't get applied on a git repo ?!
due to "a conflict". Gosh I love the verbosity of git
 
@jAndy omw
 
its just the work of 5 days freezed in that stash
GRRRRR
 
@towc You're going to split your question?
 
Good morning
 
@BenjaminGruenbaum think this is worth it? teropa.info/build-your-own-angular
 
11:36 AM
No, but read that tutorial I linked to anyway
 
0
Q: Creating promise in one thread and setting it in another

Germán DiagoCan I have an boost::promise<void> created in a thread and set its value in another different thread through boost::promise<void>::set_value(). I think I am having a crash because of this, probably, so I must guess that no, but I would need confirmation. Thanks in advance. P.S.: Note that I am ...

 
looked weird to have thread and promise in the same title ^
 
why do I need to put sudo in front of
npm install
each time?
 
@BenjaminGruenbaum I have
I'll let it sink in before reading it again
This time following with my own editor/browser
@FutuToad You don't?
 
@FutuToad you shouldn't have to
fix your ~/.npm permissions
 
11:42 AM
ok
 
If you're installing globally with -g you're installing to /usr/bin or some other directory, and so you would need sudo.
(@FlorianMargaine correct me if I'm wrong)
 
@FutuToad Just do sudo su, it's what all the sysadmins do.
 
That write your own angular books like interesting, no preview though
Oh, I lied, it's that big text in the middle of the page that says "TRY A PREVIEW CHAPTER"
 
local npm shouldnt need sudo
 
11:47 AM
hmm my ~/.npm has permsions for my user
strange
 
chown -R user ~/.npm
and see what the errors are
 
@FlorianMargaine chown -R me ~/.npm
chown: changing ownership of ‘/home/me/.npm/jsonify/0.0.0/package/package.json’: Operation not permitted
chown: changing ownership of ‘/home/me/.npm/jsonify’: Operation not permitted
 
lo-dash... what a clever name for underscore
 
ill try sudo
 
@FutuToad ls -lsd ~/.npm what does that give you?
 
11:50 AM
hmm npm install still complains
40 drwxr-xr-x 318 me me 36864 Jul 29 12:50
ah sorry
its cause my drive is nfs'ed
 
1
Q: Simplifying promises in Javascript

Misha MoroshkoAre the following code snippets equivalent? Version 1 function doSomething() { var defer = $q.defer(); foo().then(function() { bar().then(function() { defer.resolve(); }); }); return defer.promise; } Version 2 function doSomething() { return foo().then(bar); }

 
12:09 PM
help beautify jsfiddle.net/aghosh/aYvN3 then i also add some localStorage to it
 
Step 1! Don't use comic sans!
 
ok
have to change the font-family
 
!!google roboto webfont google webfonts
 
use Roboto
nice clean font
good for all occasions
 
12:24 PM
Just like Jokerman!
 
Domo arrigato Mr. Roboto
 
Evening!
 
@FlorianMargaine ^
 
12:26 PM
@rlemon I've seen that already. Emma Stone strikes me with every chord and fiber of my being as a girl that I'd like to date.
 
:D
you and most other men :P
very down to earth
 
@rlemon All hail Roboto!
 
not to mention sexy as f*ck
 
Yes, precisely
 
I got in a bit of trouble today for committing a cheeky comment to the repo
 
12:27 PM
what was the commit ?
 
but fix for an iPad layout issue
/* yes, I know. It's dirty, dirty device detection. I'm sorry. They made me do it */
 
No fun in the office!
tsk tsk!
 
meh, seems fine to me
 
This is what I committed in Friday:
 
now i'm listening to Mr Roboto and all I wanna use as my next commit message is "secret secret! I've got a secret!"
 
12:29 PM
// This is very terrible and bad, but it's necessary for now, until we figure out how stop tests from running in between these tests.
 
Yeah, well the creative director caught it and then filed a bug report on our shared project suite saying "Please remove @PM Is there any way for us to check the rest of the code for similar comments?"
 
I have numerous "I'm so sorry" comments in my code..
 
@monners Told you to remove the comment or the code?
 
@monners creative director should probably stay away from the code.
 
The comment. The code was at his request (which kinda makes it worse)
 
12:30 PM
Removing the comment will degrade the quality of the code.
Make sure he knows that.
 
He and I are at a bit of a disagreement about the approach to take to responsive web design
Anyway, bed time.
 
Night mate!
 
@rlemon coolz , but what about the rest , well , using table makes me hilarious , but still ..
 
I'm no longer interested, sorry
 
then i will hear some justin biber
 
12:39 PM
I'm getting real tired of your shit, US Congress... @rlemon How's Canada these days? Do they tax internet connectivity?
 
@blackbee Not be confused with justin bieber, the singer, right?
damnit, now I've got Mr. Roboto stuck in my head
 
@NickDugger they tax everything
 
That's not going to go away for another 6 hours or so
 
but quality of life is nice
great coffee
 
How many mooses do I receive upon acceptance of citizenship?
 
12:43 PM
@NickDugger 1.12
 
@rlemon Is your government as incompetent as ours?
 
is any government not incompetent?
 
@NickDugger Competent government is an oxymoron
 
we don't make world news, so can't be as horrible.
;)
 
Maybe your state police makes sure nothing makes it to the world news
 
12:45 PM
I'm gonna go live on an island, and govern myself. The only rule: don't sex the animals
 
don't invite @Jhawins #shots-fired
 
yes its that justeen
 
@NickDugger Why wouldn't sexing animals be allowed?
 
It's not to my taste, therefore it's not allowed. You also can't have Thai Curry, because that shit's gross.
so 2 rules now.
 
@KendallFrey Because labeling animals by their gender would be sexist? :P
 
12:48 PM
what is that operation that returns [object Object] or [object Function] helps us to determine the typeof thing we are dealing with
toString.call maybe?
 
> sex - 6. to ascertain the sex of, especially of newly-hatched chicks.
 
Still illegal
On my island, all [non-human] animals are transgendered.
 
O_o
Poor animals
So confusing
 
found on /r/programmerhumor. Of course you commented on that :D
 
hurhurhur
ohh snap
that is me!
hehehe
 
12:57 PM
Lol
 

« first day (1382 days earlier)      last day (3564 days later) »