« first day (1234 days earlier)      last day (3721 days later) » 

2:00 PM
!!> throw new EvalError(new SyntaxError(new URIError(new ReferenceError(new RangeError))));
 
@jAndy "EvalError: SyntaxError: URIError: ReferenceError: RangeError"
 
ahh finally I found a away to create Java-like errors
 
@jAndy and the way was to code in java ?
 
hm. So, is anyone familiar with JS MVC? Quick framework specific question here.
 
@dystroy Brilliant!
 
2:10 PM
@Crow You should really specify that "JS MVC" is the name of the framework you're working with.
Because JS MVC is a concept to most of us - not a framework.
 
Can this be closed ?
-2
Q: Fix this Method Please

user3375173I'm trying to make a recursive method that returns a word backwards and puts dashes between it. Here is my code: public static String expand (String word) { if (word.length () <= 1) { return word; //Return Original word } else { return word.substring (word.len...

 
@RyanKinal yes, it is the SPECIFIC framework. I know it's a terrible name. I've been having a hard time googling just about anything on it because of that
 
@Neil but they do need to share this info. Say a users navigates to the desktop site, and I prompt them to change to mobile, and they say 'no'. I then store this preference. Then, if they were to every visit the mobile site, I would prompt them to change to the desktop (as it's their preference)
@Crow you still stuck?
 
@BillyMathews little bit, just kind of confused on these "instance" methods vs the other methods.
 
@Neil That is my question.. if this is a bad way to do it.. is there another/better way? :p
 
2:14 PM
it's specifically in this "create" method. v3.javascriptmvc.com/docs/… Does it just imply "send the class to this url as a post"?
 
@Crow I'm not too sure, I'm afraid :(
 
@BillyMathews It should be more transparent than that I would suspect
 
How do you mean?
by transparent
 
If you're navigating to a site on your smartphone or vice versa on desktop site, why would it ever propose to switch?
You're treating it like it were a property to determine how the site should be shown, but it is more like an identity
If you're on the smart phone version of the website, it is because you're using a smart phone
 
True.. bad example.. what if they navigate to desktop site, switch to mobile site, then I store that preference.. then they might go to the desktop site again (forgetting or not realising they should go to m.site.com rather than site.com)
I suppose actually, I only need to store the preference on the site that they want to be directed away from
But then again, they only get prompted to change if they ar eon the other device, so they will get prompted anyway
man, that was all pointless..
 
2:27 PM
:is totally not referencing chat transcripts to fill in last week's time sheet:
 
Hahaha
 
What's the difference between cloning an object and creating a shallow copy of that object?
 
@ŠimeVidas Cloning is recursive while shallow copy is only about the first level (keeping the references instead of cloning them too)
 
@Stan 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.
 
@Miszy So cloning === deep copy?
 
2:36 PM
IMHO yes
 
You mean AFAIK haha
I'm sure those terms are well-defined
 
No, I mean IMHO because I didn't look into specs. I could have also said AFAIR :P
 
@Miszy but it still can't be an opinion?
 
Oh, that depends.
 
@ŠimeVidas copy === cloning === recursive copy
 
2:40 PM
!== shallow copy
 
I think it's implied that it is recursive unless you explicitly state that it is a shallow copy
 
Ok
Makes sense. Copying files clones them.
 
That's how I think of it anyway
If i interpretted a deep copy when someone tells me "copy", I would not be wrong to assume that, whereas I may be wrong to assume "shallow copy"
Thus, better to assume recursive
 
2:53 PM
just assume cheese and don't think about it
 
@t1wc If you assume cheese, your code will be full of holes
 
Not French cheese. French cheese is the solution to all you hole in cheese problems.
 
Mmm. Cheese.
 
Stop making me hungry
 
@BillyMathews lorempizza.com
Or even better reddit.com/r/FoodPorn
 
3:07 PM
@Neil good point...
@dystroy even better point
 
i wish i had a good collaborator as developer
 
Can anyone recommenced a good , lightweight Js library for touch, like sencha, just not as heavy
 
SnRootDirectory.prototype.getNodeByPath = function(pathString) {
  throw Error("Is depreicated must not use");
  var pathArray = parsePath(pathString);
  var currentNode = this;
  var pathLength = pathArray.length;

  for( var i = 0; i < pathLength; i++ ){
    currentNode = currentNode.directories[ pathArray[i] ];
    if( !currentNode ){
      return null;
    }

  }

  return currentNode;

}
 
i kinda lol'd myself out on that
 
3:11 PM
@BillyMathews Might be something useful here - Zepto and XUI look promising
 
@BenjaminGruenbaum I like the download system
 
@BenjaminGruenbaum looks good but I don't see anything about touch?
 
@BillyMathews it has this really cool API for talking to the web page called the DOM, it's really powerful.
It's basically a bigger but lighter weight superset of what sencha does.
 
lol
 
3:13 PM
Great tutorials on vanilla too, whole wikis and shit.
 
@BenjaminGruenbaum Thanks
 
The community support for Vanilla is pretty astonishing
 
@SomeGuy the truest internet meme ^
 
@BillyMathews np
 
3:16 PM
The link to the documentation on the vanilla.js site just links to developer.mozilla.org/en-US/docs/Web/JavaScript
 
Right
 
@BillyMathews because vanilla.js is a joke
 
A whole wiki.
@eazimmerman you're a joke.
 
A whole wiki
 
3:18 PM
Right.. so that's not so helpful.
 
user1607528
I've got to display code like this <pre><script>document.write('new');</script></pre> but i don't want the document write to echo string, i just want to display it
 
@Muhammet So... <pre>new</pre>... ?
 
@Muhammet <pre>&lt;script>document.write('new');&lt;/script></pre>
 
user1607528
@FlorianMargaine i already have the opening and closing tags in html entities
 
@Muhammet jsfiddle please
 
user1607528
3:23 PM
@RyanKinal no, i want to give the js code to the users for displaying something
 
So, Florian's solution should be correct
 
user1596138
Current task: Go through 546 static html pages of past award winners for the last 13 years and fix errors....
 
user1596138
I don't know jack shit about the people, and I won't know what's an error aside from formatting problems which have been proofed to hell and back.
 
@Jhawins If that was me, I'd say "That's not my job"
 
user1596138
I have 3 days. So > 546 / 24 // 22 pages/hour and somehow still do my other tasks?!
 
user1596138
3:27 PM
@BillyMathews I work hourly... What I'm told to do is my job :P
 
user1596138
There's almost nothing he could ask me to do that would make me say "that's not my job"... If I'm on the clock the boss owns me. That's how I see it.
 
@Jhawins you better start and not lose time here...
 
That sucks dude. But have you shown that math to your boss?
 
user1596138
@t1wc First: It's not possible. I have too much stuff going on. Absolutely not happening, I don't even plan to do half because I literally can't.
 
user1596138
@RyanKinal About to.
 
3:29 PM
posted on March 03, 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) {}

 
@BillyMathews Did you take a look at any of the MicroJS libraries I linked?
 
@Jhawins most of us spend half of the day doing nothing... I'm not saying that we can help, but at least I could fix up some easy things
 
lol, what do you consider "most of us"?
 
user1596138
@t1wc lol I really appreciate the offer. But I better do my own work ;P
 
@RyanKinal people spending 6 hours on this chat
 
3:30 PM
I was about to ask that
 
user1596138
Also, you'd be surprised how much real work has been done while in this chat.
 
I have 2 screens
 
@Jhawins +1
 
chat is on one, vim on the other
 
user1596138
^ Was my next thing
 
3:31 PM
I'm fairly certain "most of us" are professionals with full time jobs
 
I lurk around here, but my work is getting done
 
I type here during compiling and updates and the usual waiting hassles during the day
 
I'm writing a gruntfile right now.
 
ok, sorry all
 
I suppose you could call that doing nothing
 
3:31 PM
thought some of you were on vacation or smth
 
user1596138
I'm waiting on coffee... I don't do anything till that savory shit-maker-sauce hits my lips.
4
 
True, I can't start on anything in the morning before coffee
It's like walking uphill with a telephone pole on your back
 
I get coffee on the way into work :-)
And chat with the cute baristas
 
@RyanKinal You know one day they'll ask you out on a date
 
@RyanKinal Yes, thanks, that's a pretty handy site. I'm looking into XUI.js
 
3:34 PM
Well, one of them is confirmed non-single
 
user1596138
@RyanKinal Our only coffee shop is awful, costs considerably more than starbucks (local coffee shop!!) and... The main barista is my ex-fiance.
 
user1607528
for example i have to display <script src="http://rushventures.com/app/formhandle.php"></script> which url return document write, but i don't want to act it as js but as a string displayed for example
 
user1596138
So fuck baristas lol
 
@Jhawins lol
@Jhawins Well, that's the goal ;-)
 
@Jhawins Well there could be a silver lining to that
 
user1596138
3:35 PM
@RyanKinal Zach and Miri Make a Porno style
 
user1596138
@Neil lmao. I'm listening.
 
Bow-chicka-bow-wow
 
OK.... So I just typed apt-get upgrade instead of apt-get update.... => Immediate crash of miaou...
 
You could go in all like, "Hello, ex! Ready to star in your next porno flick?"
 
Our office is just across the road from the Vice magazine office, and they have a small coffee shop just inside.. best coffee around.. but since we got a coffee machine in the office it's both long (stairs) and expensive (30p a coffee from the machine)
 
3:36 PM
She'd be so embarrassed, you could blackmail her that you'd do this without free coffee every morning
Just kidding, don't do that. You'd be an asshat
 
@BillyMathews Dude... Vice? That's awesome.
 
user1596138
Well... While I think that's quite possibly the worst idea I've ever heard, it is an idea.
 
@RyanKinal look at the coffee shop
 
@Jhawins Hellz yeah.. props for being an idea. Go me.
 
WANT
 
3:37 PM
it's part of the taylor-st baristas chain and this one is called taylor-st shed
 
Seriously, that place looks awesome. I would totally hang out there.
 
it's literally in a shed :P
and it's run by a local girl-band
 
O.O
 
user1596138
I live in a small ass town in Indiana... I want a cool coffee shop :(
 
user1596138
I want a place to get something to ingest closer than 8 minutes (at 60mph) from work.
 
3:39 PM
I'd buy in bulk so I never have to go anywhere
@RyanKinal it is literally so cool :D Shoreditch is my favourite area in the world.. and I've been some pretty amazing places
 
as far as I've seen the only people to go in coffee shops in my town (1million inhabitans) are 60+ yo
probably becouse I only see bars when I live school... and people are all in offices...
dunno
 
And if you like street art, shoreditch will give you orgasms (as it does me)
@t1wc where you from?
 
DUDE
 
3:43 PM
@BillyMathews Turin, Italy
 
How does your town rock so much?
 
@RyanKinal Ikr?
 
And with such a shitty-sounding name.
 
I always thought it would be fun to own a coffee shop with touch screens built into the tables and some sort of app to be always up and running in each one at each table
 
3:44 PM
Shoreditch used to be shitty
 
Though I'm pretty sure that would cost a lot more money than it would bring in
 
10 years ago I would not step foot in Hackney (surrounding borough) whatsoever
 
@RyanKinal as a city it's not bad... the problem is who lives in it google.it/…
 
@t1wc I live in Turin too, you know
 
@t1wc He wasn't talking to you :p
 
3:46 PM
woooops
but it does have a shitty name
 
@t1wc Yeah, I was referring to Shoreditch. Turin sounds kinda cool. I think my aunt has a timeshare there, actually.
 
@SomeGuy did you heard it ?
We might lose our right to freedom of speech :P // if shinde realizes what the fuck he is saying
him & congress : "No more prediction polls, We will destroy social network"
Supreme Court : "Err thats against the right to freedom of speech and unconstitutional"
him & congress : alright then :P
 
Wow. That's... super shitty.
 
user1596138
@BillyMathews I want a job in this place, it seems cool.
 
Like I said, my favourite place in the world :D
 
user1596138
3:52 PM
But, that's a long way away from me.
 
user1596138
I bet I can't find a single cool thing from my town on Google Images..
 
user1596138
I found my exes sister's wedding pics O.o
 
user1596138
By googling my town name.
 
user1596138
i.stack.imgur.com/wMXdT.jpg //There's not a 2 mile stretch within 40 minutes of me where you won't see this.
 
@AbhishekHingnikar Nope
That sounds a bit retarded
 
3:56 PM
it is :P
 
if(goods.indexOf(keychar)!=-1)
return true;
return false;
 
@Jhawins it does help that I am in very central London :p
 
I can see the shard from my window
Which is London's newest landmark
 
@dystroy nice
 
3:57 PM
> "What is happening in the electronic media largely I am aware of it. In the last four months there have been efforts by the media to provoke us (Congress). We will crush such elements in the electronic media, which are indulging in false propaganda, if it did not stop"
hes definitely high ...
 
user1596138
 
user1596138
My house is in this picture. Next to the lack of civilization.
 
user1596138
The top right of the picture is town. Town spans about 1 mile wide... lol maybe.
 
@Jhawins Better: My house is in this picture. To the left of the middle of nowhere.
 
@Jhawins ...
 
user1596138
3:59 PM
I live in Bum Fucked Egypt (this is a phrase over here, I've wondered if it's popular other places)
 

« first day (1234 days earlier)      last day (3721 days later) »