« first day (975 days earlier)      last day (3988 days later) » 

9:00 PM
Oh, right. Yeah...we should have checked the source
 
Fuck ... three laps into the 60 lap race an I'm tired ...
 
what race?
 
@OctavianDamiean 60x300km?
 
On the PS3
@JanDvorak Nah, 60 laps on that track is roughly 300km
 
@octavian how are you chatting and racing on the same time?!
 
9:01 PM
@CheesyBacon voice controls
 
racing car game
 
Multi-tasking.
 
gt...6?
 
multi-voice task game
 
@Shmiddty 5
 
9:02 PM
circular track, tape the thumbstick
 
@CheesyBacon I once saw a guy play Kingdom Hearts with his hands, and Kingdom Hearts II with his feet, at the same time.
 
@Jan no, not that way
@Zirak o_o
 
An the idiot I am, I've also managed to forget the hard racing tires, started with soft tires ...
 
@CheesyBacon I'm not sure what you have in mind, but I'm sure it would be difficult
 
They are degrading so fast ...
 
9:03 PM
@OctavianDamiean those are for 1/4 mile races, silly
 
!!convert 0.25 mile to km
 
@Shmiddty Or for really short races. ;)
 
@JanDvorak Confuse converter with mi, receive error message
 
1/4 mile ... pfff
 
@JanDvorak Confuse converter with miles, receive error message
@JanDvorak Confuse converter with mile, receive error message
 
9:04 PM
We Europeans don't call that a race ...
 
Our bot is French
 
@JanDvorak I hate /convert, it's really stupid
 
@Zirak you could relay to Google Calculator
 
would anyone recommend something for adding decimals to list item labels? should I just do it manually with CSS?
 
9:09 PM
!!/ help
 
@CheesyBacon Fixed
Do you have a github account, so I can credit you?
 
hi all :)
 
Do you know a "simple" framework like sammy.js to manage my javascript code ?
 
9:11 PM
manage = ?
 
I don't know sammy.js
 
I'm looking for a tiny javascript core with rouing system, load js file in another and basic structure
 
require.js?
 
@JeremieGes sammy.js does nothing but listning to hashchange event and invoke functions according to that.
 
function getNumberParts(x)
{
    var float = new Float64Array(1),
        bytes = new Uint8Array(float.buffer);

    float[0] = x;

    var sign = bytes[7] >> 7,
        exponent = ((bytes[7] & 0x7f) << 4 | bytes[6] >> 4) - 0x3ff;

    bytes[7] = 0x3f;
    bytes[6] |= 0xf0;

    return {
        sign: sign,
        exponent: exponent,
        mantissa: float[0],
    }
}
 
9:17 PM
what ?
Who would do that ?
 
Well, not me
 
Yeah require.js.
 
Crap ... just fell asleep. ProTip: Don't start an endurance race when you are tired, or sick, or both.
 
naaaa
 
I'm a sneaky bastard.
 
9:25 PM
@OctavianDamiean you can still catch up!
 
I can handle that
 
@phenomnomnominal Yea, just to fall asleep again. :D
 
haha thats what pause is for!
 
I'll do it like a man, in one stint.
 
Since I'm a freelance, the people I work for decided that I was doing the job on their name, so they removed my name from the sources.
So for now I add a class "dievardump" on some HTML elements. Just to be sure I will be able to remeber what I did.
 
9:29 PM
Wait a minute, they can't just remove your name.
It is still your intellectual property.
 
I won't^fight ^^
 
I need a help guys.I just create a Real time Unicode convertor for My language .It 's working fine here itstechnews.info/pard_site/view/withoutEditor.html .use first teaxarea to type and it will convert to my language(sinhalese) .The problem with second url.I installed tinymce to the Convertor but my Convertor doesn't work .Look at that with tinymce editor
how would i do this ?
I don't know much more about tinymce doc to haddle this
Only thing i know to put tinyMCE.triggerSave(); before serializing the form
 
Guys anyone know any good JS game engine for card games?
 
"The trouble with git mississippi is that the parent references get all screwed up"
 
@Loclip what would it do?
 
9:37 PM
I want to make a game like solitaire so I want it also use canvas with HTML5
I heard that is hard to do make your own game from scratch and there are many good game engines that would do the most job for you so I asked here if anyone have done something similar before
 
Are you familiar with JavaScript ? Canvas ?
 
Yes with javascript... today i finished with tutorials and learned all basic things that I need but not with canvas
 
which tutorials?
 
Familiar = have any experience that can be called relevant
 
there is a course on codecademy.com and I just pass it
made a lot of tutorials plus some projects
 
9:42 PM
0
Q: dealing with tinymce editor

Samitha à° _à° I need a help guys.I just create a Real time Unicode convertor for My language . It 's working fine here .use first teaxarea to type and it will convert to my language(sinhalese) .The problem with second url.I installed tinymce to the Convertor but my Convertor doesn't work .Look at that with tin...

 
@dievardump I had experience, Ok maybe not with big project but there were some 5-6 small projects so I practiced on them
 
I don't think there's such a library
just start coding, and be prepared for a major rewrite or few
 
Does anyone know how to hide element from select2 plugin?
 
@Joseph82 you'll have to link us to that plugin
 
9:45 PM
@JanDvorak there are too many thats why I asking, Its difficult to try all of them github.com/bebraw/jswiki/wiki/Game-Engines
 
@Joseph82 What do you want to hide ?
 
@Loclip, game engines aren't typically suited to card games (see what I did there?)
 
some options of the select
 
@Loclip for starters, you could ignore Canvas, and use DHTML.
 
@Joseph82 don't put them in the original select...
 
9:46 PM
@phenomnomnominal where? :D
 
when you'ree done with the game logic, you could start converting the view to canvas
 
Yes but I wan't to hide it xD
 
if it is a card game why do you need a game engine
what card game? give me 2 hours
 
What I'm trying to do is something like this i.stack.imgur.com/KMSIL.png (designed by @Octavian xD)
 
@phenomnomnominal nice
 
9:49 PM
@rlemon I wanted to make visual game
 
so?
 
@Loclip, so you don't need a game engine
 
you don't need a game engine
 
so what I need?
 
there's not going to be any physics, or lighting or anything like that.
 
9:50 PM
you need nothing
what card game??
 
I wanted to start with solitaire for practice and then make other games
 
The most time consuming bit will be making the cards.
 
@dievardump I want that, after a selection is made, the option in the select are not still visible
 
all you need to learn is drag and drop events
then just use divs
 
@phenomnomnominal ok
 
9:52 PM
I'll offer 100 reputation for anyone who can give me an answer for this after two days
0
Q: dealing with tinymce editor

Samitha à° _à° I need a help guys.I just create a Real time Unicode convertor for My language . It 's working fine here .use first teaxarea to type and it will convert to my language(sinhalese) .The problem with second url.I installed tinymce to the Convertor but my Convertor doesn't work .Look at that with tin...

 
How about $100
 
I would use sprites for the cards at first.
my two minute demo
 
document.txtBox.box2.value=text; text var = after converted into the unicode .box2 is the second texarea name attribute @Nile . is this innerHTML work with tinymce ?
 
after waiting 8 minutes for jsfiddle to load
 
9:56 PM
Hey guys, if you like refactoring (optimizing) JavaScript code, there's a repo full of code snippets here: github.com/blakeembrey/code-problems
 
@Samithaà° _à°  I've changed my response. Use .setContent. A second of research taught me that.
 
ok, @rlemon but I can add as wine I want ahah in different line. I want that, if an element is already added, it can't be added again.
 
So do the check.
 
9:59 PM
If that is to hard to add then you are over your head.
 
@Joseph82 go learn how programming works.
 
@Nile wait
sorry
 
@Samithaà° _à°  ..?
 
I should add to the rules page that we don't care to provide copypasta solutions to every single problem.
 
Not difficult @rlemon, but I want that the option will removed when it is already selected. Remove is also possible, but then I need to track the last removed object for reinsert it
 
10:02 PM
Except of if the solution is golf
 
@rlemon Pleeeeaaaaaaseee do
 
@Nile tinyMCE.get('sinhala').setContent(text); i used it in line 162 itstechnews.info/pard_site/view/withEditor.html no luck
O_o
 
sinhala?
 
user1125394
 
Why does liverwurst do such horrible things to my colon.
 
10:04 PM
@Nile sinhala is the id of the second teaxarea u can view it using view source
 
@Samithaà° _à°  Hmm... too bad
 
@Allen 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.
 
user1125394
feels good to kill mosquitos
 
sorry @phenomnomn if I'm not a genius like you!
 
user1125394
seriosuly I need my blood, fuck them, even if you like insects
 
10:10 PM
You're not a genius like anyone.
 
ouch
 
Maybe you think you are a genius @phenomnomnominal
 
@Nile what gonna do ?
can you review the js code /
?
 
Maybe I do, maybe I don't. Maybe I am, maybe I'm not.
 
keep to yourself some comment @phenomnomnominal I know what I have to learn!
 
10:12 PM
Asking other people for the answer is not learning.
 
user1125394
a lot
 
@Samithaà° _à°  Well I'd be more compelled to help you if: 1. You showed us that you originally attempted research, and 2. Showed us you took time to isolate the issue instead of providing the whole damn file
 
If your are not genius enough for understend I'm talking about yor comment:-
@Joseph82 go learn how programming works
So, @phenomnomnominal what is the meaning of this chat?
 
user1125394
</troll>
 
You're* understand* your*
 
10:13 PM
I think that ASKING is one of the most useful thing to do for learning
 
This chat is mainly for us to bitch about noobs and help vampires.
 
@Joseph82 Asking is great... sucking blood isn't.
 
@Nile You are insinuating that I'm sucking blood. You are free: don't reply my question if you don't want help me! that's it.
 
can someone explain to me why a new line would be more than one character?
 
@Shmiddty CR+LF
@Shmiddty \+n
 
10:18 PM
@Joseph82 I gave you what you wanted... now utilize the tools.
 
On windoze it has traditionally been line feed and carriage return, where carriage return goes to the beginning of the line and line feed goes one down
 
@Shmiddty I've had issues with that: had to submit using putstr.
The system tends to ignore a trailing newline at the end of outputs. I don't know if that is taken into account for this problem or not.
 
user1125394
@Shmiddty \r\n on windows sometimes
 
user1125394
too late (copy)
 
10:21 PM
anyone have a text editor that will show me which characters represent whitespace in my file?
also, wtf is with chat getting laggy?
 
user1125394
just select it, they will appear (notepadd++, ST)
 
textmate does
 
vim
 
@Shmiddty xxd will show you the bytes.
 
10:27 PM
is anyone else experiencing extreme lag in chat?
 
not me
 
nope
 
Yeah, but that seems to be normal on android. :-)
 
there you go
I cannot explain the changes.
ninja monkeys made them
you are on your own from here
 
is \n a carriage return or a line feed?
 
10:32 PM
line feed
 
hrm
 
@Zirak Do you love Community?
 
@rlemon can u pls mk me a social network also?
 
[LF]
print(read("test.js").slice(1))
should work
but it's not
 
var a = 'abcdefghijklmnopqrstuvwxyz1234567890.',
    i = 18, j = 0,
    b = [a[i++],a[++i],a[++j],a[--i-1],a[i],a[--i-1],a[++j*(j+j)],a[--i-(j+j)],a[j*j+j]].join(''),
    f = function(x,y) { switch(x){case(1):o=y;break;case(0):l=y;break;} return y; }, o,l,
    c = [a[b](i+j)[0], a[b](i++,i), f(1,a[b](--i-(++j),i-(--j))), f(0,a[b](--i-((j++)+j), (i++)-(--j+j))) ].join(''),
    e = o + l,
    d = c+Array(++j+j).join(e);
console.log(d);
@Nile ^
done
 
10:34 PM
thank you @rlemon, but I do not want alms, I will not make any more questions here. I do not want to suck the blood of anyone.
 
0
Q: Building a web application that is almost completely rendered by Javascript, while back end only delivers Json. Do or don't?

Noam GagliardiAs a programmer, and taking into account the overall "funness" of the process, I'm tempted to start a project in Sinatra where the back end's sole concern is the logic, and returning a Json API, and then writing a javascript application that would interact with that API for rendering the actual c...

 
@BadgerGirl Yes
 
won't it have to be two chars at the beginning and a slice(2)?
 
@Zirak Game of Thrones or Evangelion or Community or something else?
 
@loading... does print put [CR][LF] at the end?
 
10:36 PM
@copy Favourite show? It's a tough battle, but Evangelion, 2nd place is Firefly.
 
!!/stat Joseph82
 
@rlemon That didn't make much sense. Maybe you meant: stat
 
Yes, modulo shows that I have seen before
 
@rlemon Joseph82 has 803 reputation, earned 10 rep today, asked 170 questions, gave 24 answers.
 
@Zirak can you please alias those
 
10:37 PM
@loading... my file is literally:
[LF]
print(read("test.js").slice(1))
 
@rlemon Anything else besides stats => stat
 
no [CR][LF], just [LF]
 
@Zirak I can't think of anything right now.
 
@Shmiddty Is there a line-break after it, or just [LF]print...
 
@Shmiddty don't know, not tested it.
 
10:39 PM
@Zirak HOOS DIS?
 
@Zirak I'm using Notepad++, showing all characters, I inserted [LF] specifically, and when I do a slice(1) there is no blank line.
 
@Shmiddty What's your favorite TV series?
 
@BadgerGirl currently airing?
 
@Shmiddty Yeah.
 
@Shmiddty erm, I don't quite see the problem
 
10:42 PM
[LF]
print(read("test.js").slice(1))
should print:
 
@Shmiddty Oh well you've managed it now. I don't know how that works.
 
...is that a no for HOOS DIS => stat?
 
print(read("test.js").slice(1))[LF]
@loading... I used a different method, I'm not reading from a file.
@BadgerGirl I'm a total gleek
 
Ah, right. Me neither.
 
But...why? You don't have a line-feed at the end (at least not that you've shown). So unless print adds a line break itself, or I'm missing something, it's not a problem
 
10:45 PM
@Zirak print adds "\n" to the end
which is good
it's what should make it work.
the output I'm getting is even what I'm expecting, but the validation is rejecting it
trying to talk to the site owner about it, but he appears to be afk
maybe print puts "\r\n" but only shows "\n"?
I figured out why it wasn't working
was me being derpy
 
Did your troll get dealt with? I can never tell in chat.
 
@minitech I'm not sure, he's not in the room now.
[LF]
print(read("test.js").slice(1) )
that works^
 
 
11:05 PM
Guys any suggestion to make this shorter? pastebin.com/Pqm7kcHc
 
@Loclip Wow.... maybe an array?
 
I though of dictionary but couldnt make it work :S
What I could do with array?
 
@Loclip So much
 
you mean 2d array?
oh i can do that with 2d array ;)
 
@Loclip Go wild; just not with those switches
 
11:07 PM
yes 2d array is good but you think this is possible even with simple array?
 
@Loclip Completely......
or an object*
 
@Shmiddty still only 33 chars though.
 
@loading... yeah
 
@Loclip use a hash object
 
@Nile with 2d array i would do something like this var ranks = [["A", "Ace"], ["2", "Two"]...] but how i could do that with simple array?
 
11:09 PM
@Loclip an object.
 
var cards = {
    'A':    'Ace',
    '2':    'Two',
    '3':    'Three',
};
 
@Loclip ^ Like so
 
its faster than array?
 
and then just look it by calling cards[ rank ];
its faster and way more elegant
 
@Loclip If you were considering looping through every single term of the array, definitely. But arrays are objects, anyways.
 
11:11 PM
ok thank you guys.. :)
How i can now access the values of cards? i tried cards[0][0] but its give error TypeError: cards[0] is undefined
 
cards['A']
 
isnt is possible to loop with for(var i in cards)?
 
it is
 
so i will be replaced with 'A'?
 
but you won't be guaranteed any order
 
11:21 PM
but why would you do it
you can just look it up directly
 
@Loclip are you afraid of 'A'?
 
@Loclip Try it
 
I wanted to do something like this:

for(var i in cards){
if(card=== cards[0][i])
card= cards[1][i];
}
 
huh?
 
@Loclip Can we see what cards has in it?
 
11:25 PM
its not cards i used card because jAndy used cards in his example but here what it is looks like pastebin.com/NG4ahmnN
 
what are you trying to do?
 
I have function
function CardValue(rank, suit) {}
:D
 
if (!(rank in ranks) || !(suit in suits)) throw "Invalid rank/suit"
return ranks[rank] + " of "  + suits[suit];
 
@Loclip what's the issue, though?
 
if I pass CardValue("5","H") I want to print "Five of Hearts"
 
11:27 PM
lookup hashes, All the things!
 
how I can do that?
 
Look what @Shmiddty said... in other news, learn to do research.
 
@Shmiddty will try it now
 
its was basically all said here before, just put it together now
 
ok hometime xoxo bye
 
11:28 PM
18 mins ago, by jAndy
and then just look it by calling cards[ rank ];
 
create two objects, with key-value pairs of cards and colors
and then access these objects with the parameters
 
m59
Do you guys think crawlers will eventually consider js output?
 
Damn guys thank you very much you awesome :D Everything is ok
 
11:47 PM
Best card set ever: jsfiddle.net/wE8te/31
 
@dievardump Best ones.
 
@dievardump damn if you could send this link earlier :) I sitting here and writing from the scratch.. but I will continue to write my own code to learn better.. Anyway thanks for link I will keep it for ideas after I finish my code
isnt there better way to find hash size? I only found this way

function sizeOfHash(h)
{
    count = 0;
    for(var i in h)
        count++;
    return count;
}
 

« first day (975 days earlier)      last day (3988 days later) »