« first day (1130 days earlier)      last day (3810 days later) » 

6:01 AM
Foo::initialize(initarg, Api apiFactory(arg1, arg2)){
    api someapi = apiFactory("someapi", "first")
    api otherapi = apiFactory("otherapi", initarg)
}

//controller knows about bar:
new Foo("second", Api function(klass, arg){
  if klass == "someapi" then return new Bar(arg)
  else return new Bar("other" + arg)
}
of course, you don't have anonymous functions in Java
new Foo("second", new ApiFactory(){
  Api getApi(String klass, Object arg){
    ...
  }
}
 
m59
@JanDvorak hmm, I feel like either I need to rewrite the whole thing, or we're talking about something different.
 
@m59 It could well be the latter (sorry for that). Pastie?
 
m59
I could summarize quickly.
 
6:09 AM
@m59 but there are two questions for you: what does foo know in advance, and who knows about Bar?
 
m59
request = rewriter.rewrite(request from server)
responseData  = dispatcher.dispatch(request)
response.setData(responseData);
etc
@JanDvorak what we're talking about is the dispatcher
let me show you the important part of its dispatch method
controller = //formed from request - could be anything
handlerObj = new controller(db, request); //all ctrls need the db and request
data = handlerObj.handle();
return data;
 
@monners ZEE-bra, not ZEB-ra. Sexier that way.
 
m59
@JanDvorak so, if controller was users, it is getting the db and request it needs, but not its special dependencies (a password hashing class in this case)
So, I would have to go in the controller's constructor and instantiate it, breaking DI.
The user's controller is the only one I can think of that has this problem :(
the rest only have the same 2 dependencies.
 
controllerFactory? usersFactory et al.?
 
m59
The only way I can think you mean that would require more integration than I can afford.
 
6:17 AM
someone has to know about these dependencies. Why not that someone be the dispatcher?
 
m59
Yeah, I think that affirms what I was thinking.
No-one can.
If it can be instantiated is the only link.
 
if you want to split the responsibilities, then let the dependency authority give the factory to the dispatcher
 
m59
The importance here is that no file should be changed at all in order to make something available in the api or removed..
 
@m59 who does know the dependencies? The controller classes?
 
m59
Yes.
 
6:20 AM
Then they should provide their own factories, maybe?
 
m59
Just imagine, if I remove the users file (which contains only the users class) then it's totally gone.
The factory isn't part of the class itself, right?
 
If Users knows it needs an PwdGenImpl, then why does it ask for one, why not instantiate it itself?
 
m59
I could, and have been
but isn't the idea of dependency injection to NOT do that?
Like, the dispatcher should pass whatever dependencies the controller needs to it, but the dispatcher doesn't know about them, nor would it have them if it did.
 
If Users only knows it needs an AbstractPwdGen and only a DependencyAuthority knows that AbstractPwdGen is PwdGenImpl, then let its constructor get a DependencyAuthority instance, which then returns a PwdGenImpl instance when asked for an AbstractPwdGen instance
where DependencyAuthority = EverythingFactory
 
Don't you think it would be a good idea to have optional strong type system in AS3 and Javascript?
Such as you can enable strong type by saying
 
6:26 AM
@EnglishMaster you would like TypeScript
 
System.type("strong");
//below will be strongly typed
 
@EnglishMaster NOOO
I love implicit typing
 
...why?
 
I don't mean "anonymous types FTW", I mean "having the compiler know Int + Int = Int FTW"
 
Strong typing's just 98% overhead.
 
6:28 AM
It's still nice if you can specify your own types. Ruby gets close, but you still need to write the constructor if you want default values
I might write a StructWithDefaults one day, getting exactly what I want
Point = StructWithDefaults.new :color, x:0, y:0
Point.new Color::BLACK, 10, 10
 
Which is best way to gain awesome knowledge in js.?
 
@Er.gauravsoni Watch Top Gear, eat tubs of ice cream, high five homeless people every 17.5 minutes.
 
I cant believe i wrote this much shit last night
I wrote an architechture where everything is proxy based.... :-/ chit so even internal calls hit the proxy server facepalm
 
@Er.gauravsoni practice
also, reading *ding*
 
6:49 AM
@SomeKittens Check, check, and check
 
ok thanks
any thing else
?
 
This works regardless language but side projects do help a lot
 
@Er.gauravsoni Seriously, build cool things. If you, at the end of the day, can't say "I made something a little cooler today," then that day was wasted.
(Yes, you don't have to do that every day. 6 days a week)
 
@SomeKittens -> gogle ;D
 
!!s/gogle/mdn/
 
6:54 AM
@Shea @SomeKittens -> mdn ;D (source)
 
@SomeKittens ->It is nice and boost up thought.
But before making any thing cool it is important to know what exactly cool is. and am in same way to know.
 
A "cool" project is one that you lack the skills to complete when you initially embark on it, but possess at the end.
2
 
DmsLocal/PatientManagement/Echart.aspx# hash gets added in my url does no why? It happens when i open popup and click on the div (and # gets added in url) am using jquery version 4.1.1
 
Make a game. Those are always cool
 
m59
@JanDvorak Ding ding ding!!!!!!
I might have it!
Maybe this is what you were saying, lol
so...
 
7:01 AM
@m59 I was referring to the Everything Wrong With series of videos
 
m59
I have a dispatcher that needs to set things in motion, but doesn't know what it's going to do
then I have a controller than needs to be instantiated with dependencies, but nothing knows how
So, I can create a middle man that the dispatcher uses that doesn't need dependencies
wait a minute..
I think I'm losing it :(
 
GAH WHY DO I HAVE TO EXPLAIN THIS SO MUCH
I AM GOING TO RUN OVER BRANDON EICH WITH A CARPET
 
@Er.gauravsoni make a porn site ;D
thats gotta be cool !
make it in angular ... rip of ps4 youtube user interface !!
allow comments and stuff :D :D ruleeee the world :D
 
Shoot, I'm a complete idiot
 
@SomeKittens ^
everybody has those moments ... i have a higher frequency then you though.
 
m59
7:07 AM
?
err, is he trying to do that without the user uploading the file?
 
Still going to run over Eich with a carpet.
 
According to this, that would be insensitive to SomeKittens
3 hours ago, by monners
Java is to JavaScript like Some is to SomeKittens
 
m59
@JanDvorak what I was thinking of was that the dispatcher either IS or USES something that looks at what the controller needs then creates and passes those dependencies to it. Can that work?
 
1
A: How to get the ID of a dynamic element when clicked?

m59Get each input with javascript, attach the click event listener to each, then in the click function, use this.id. Live demo here (click). <button id="foo">Button</button> <button id="bar">Button</button> <button id="baz">Button</button> <button id="qux">Button</button> and the js: var...

I think he would have accepted it if you bound the event to body
 
m59
7:22 AM
Screw that.
Look at this:
0
Q: replace paranthesis opening and closing tags with () tag

PunitI am trying to write a string or integer formula which will look a code between parentheses.My logic is this: Search for the first parentheses, find the last parentheses, and return everything in between. Im sure there is a string or integer function, but not exactly sure which one will do the tr...

This guy is kinda insane.
I gave a far better answer than he required, but he's convinced it's wrong and complained about the console.log being broken??
 
He might be trying to do something very specific from something like a dump log or something
Personally, I would've asked from a sample input, and not answer otherwise
 
m59
Anyway, so if I were to test the dispatcher, I would want to see that it attempts to instantiate a controller according to the request, that it looks at the dependencies, etc. and I think I can stub all of that for tests
And if I were to test the controller, it has its dependencies injected.
Sounds win =D
 
Why can't my college allow assignments and projects as real world applications that are out in production ?
FFS beta.pixter.in , colorbay.me comon i used DBMS , OS , LINUX , Algorithms and all friken subjects in making these two :-|
 
7:48 AM
@m59 I voted to close, following the reason given by Felix. There's not even a clear question there.
 
Is this reality, or fantasy?
Fully playable
With AI integrated
 
@Derek朕會功夫 You should look at js1k.com, there are playable flight simulators with town and cars in 1K
Many impressive stuff like this
(which doesn't mean the one you linked too isn't really impressive too)
 
I know, I just picked one from JS1K
They are all equally impressive :)
 
@Derek朕會功夫 js1k/codegolf is a little like chess, it's a separate world. You have to learn it specifically to enter that field, to learn a lot of very specific tricks, it's not really js...
 
8:15 AM
@room after being pissed off and @FlorianMargaine pointing out that anybody can fuck up my code if its just a git-push
i decide to make a core which is just extensible via github pull-requests :P
and hence very less amount of shitware will bloat it ... how does this sounds ? any objections @FlorianMargaine ?
 
@AbhishekHingnikar As you pinged me (Am I not in room ?), I gently inform you that I have absolutely no idea of what you're speaking about (don't bother answer if I should not know anyway).
 
8:36 AM
@FlorianMargaine What did you ping me this for?
But I can see good use for that function though, so thanks
 
@JanDvorak True Story
 
@Shea you asked about findIndex last night, it's where it comes from
@Abhishek you still won't be able to find vulnerqbilities in PRs especially because it doesn't scale
 
@FlorianMargaine Oh so that's the elusive findIndex :P
 
8:53 AM
Hi I am creating a web service in Nodejs using express and nodeMysql , I am adding multiple users in mysql , so in that i am running a querry in a for loop of as many emails i am receiving from the client , but as querry is a Async function , and i want the data updated in mysql as output to the client how should i do this ? please someone with nodejs experience help me with this
 
@Divyanshunegi go learn how node works.
 
@FlorianMargaine hmm
how about very few trusted people doing those ? like this room :D
and rest all just proxy ?
 
@Divyanshunegi There are many ways to achieve this. One is to use a promise library to easily produce simpler code. Another one is to have a counter of finished queries and to decrement in your callback until the counter is 0, then answer your client
 
@dystroy : i am using a for loop as i have a count of emails in the user sent queries , for storing all the update i am using a Array in which i push a update once its done , but because of the async nature of con.querry the array shows only the first value and throws the result to user
 
Don't use a for loop. The query function takes a callback as parameter : launch the next query from the callback, until all are done (then, answer the client request).
(or use promises, again)
 
9:00 AM
Hi
0
Q: Empty space with JS renderer

Rajai have use the js renderer for populating the grid while using it not working for field Name with empty space . For Example the field Name is "Task name". Is there any way to resolve this problem. I have use the js render er template like the following code snippet "{{:Task name}}"

 
wow promises really solves my problem i guess , thanks a lot @dystroy
 
Please provide the answer for this question
 
!!/welcome Raja
 
@Raja 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.
 
@CapricaSix ok thanks for your information
 
9:17 AM
!!/welcome dystroy
 
@dystroy 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.
 
sorry bro but
!!/welcome dystroy
 
@dystroy 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 why ?
 
yikes ! it should still remember if it had welcome once and say Nobody likes a double ping
@dystroy i tested it on u !
 
9:19 AM
@AbhishekHingnikar We can remember. And we should only do it when we feel it's needed. I'm not sure the action should be prevented if a user feels it's needed.
 
@dystroy what about !!greetOnce?
 
Thats a good idea
 
Would it be creepy if we asked newcomers, after greeting them, if it would be creepy if we greeted them before they spoke?
 
@JanDvorak Seems good. But for coherency (I have a very small memory), I woud name it !!/welcomeOnce
 
@dystroy I'd rather rename the other but it's the implementor's call :-)
 
9:25 AM
@JanDvorak When I read your question, I realize 2 coffees really aren't enough for me
 
@JanDvorak creep yourself
@AbhishekHingnikar what's the point of having community-based apps then?
 
s/would it be creepy if/are we allowed to/
 
So the question is, is a creepy greeting creepier than the question, about a greeting being creepy, itself
 
Yes.
Maybe.
 
creepy
 
9:39 AM
I honestly don't see what the fuss is all about. Is it actually more than just one SE employee complaining about it?
 
@Kippie two or three mods would be creeped out
 
9:51 AM
Could someone explain why one should Use any Javascript Framework like AngularJS?
 
@Padyster they provide a way to organize your code as well as a bunch of useful stuff like data-binding, routing, and templating
You don't have to use them to write clean GUI, but they sure make your life easier
 
@FlorianMargaine A poc might explain... in short extensible services :D
 
@BenjaminGruenbaum so is it the thing to less-load the server- requests?
 
@Padyster no, it's an MV* framework. Check out tutorials at egghead.io
 
I got that video
 
9:54 AM
0
Q: Can any one suggest me which one is beneficial to learn: VBScripting or Javascripting?

user2061011I want to learn scripting for testing purpose. Can any one suggest me which one is beneficial : VBScripting or Javascripting? Also i want to what is the prerequisite to learn both. How to start?

 
just extracting here for one liners
Thanks @BenjaminGruenbaum
 
Hello, i have a simple question.. i am using bootstrap-select but i have dynamic selects that populate with JSON data.. the question is how can i refresh select after page loads and after the json data success? i tried with this: $(window).load(function(){
$('select').selectpicker();
});

and i added refresh for selectpicker after json complete:

$.getJSON(service,function(data){
var options = '';
for (var i = 0; i < data.length; i++) {
if ((data[i].id == selected) || (data[i].value == selected)){
 
!!tell fuiba format
 
@fuiba Format your code - hit Ctrl+K before sending and see the faq
 
10:01 AM
also, define "doesn't work"
 
The winner:
0
Q: How to do programming?

user2982228Hello i am planning to develop a project with WCF application to comunicate with WP8, android and IOS. will i have any big problems with the communication of the api with these operating systems ? for example i am planning to build a fuel gas app with many gas stations in it. In the app and the...

2
 
Must be trollin'
 
user image
2
this is soo damn cool
 
dat physics
 
10:06 AM
Its kind of amazing ...

Google Chrome is not just the most popular browser, most likely its one of the most popular developer tools of today !
 
El: hola/hi.
Ella : ✓ visto/see
El: hola/hi.
Ella: ✓ visto/see
El: hoooooooooooola!/HIiiiiii!!
Ella: ✓ visto/see
El : http://25.media.tumblr.com/tumblr_md4ush9WTO1rg3j55o2_400.gif
 
@Jan Dvorak i can't see the options on the select (bootstrap).. but when i try to remove display:none for the standard select on firebug i see all options
thanks and sorry for my bad english!
 
I have a huge problem :P
 
@phenomnomnominal I have a huge penis :P (source)
 
@CapricaSix ;)
 
10:08 AM
@phenomnomnominal how does proxies work ?
simply by acting as a person in the middle right ?
so all the data comes & goes through them .. right ?
 
basically
normally the data is manipulated in the middle
 
That GIF reminds me of Gary's mod
 
@phenomnomnominal or logged
 
unless you mean proxies like ES6 proxies
 
0
Q: nginx not responding on port 81

dystroyI just installed and configured nginx to listen on port 81. I didn't change the nginx.conf file, removed sites-available/default, added a dystroy.org file in sites-available and linked it from sites-enabled : server { listen 81; root /var/www/dystroy; index index.html index.php; ...

Somebody with nginx experience ?
 
10:12 AM
@dystroy port number in backticks? Ew
 
@phenomnomnominal ah fuck .... i really need to learn basics of networking
tons of proxies means too much shit to host right ?
is there something which can just like tell an incoming request to go to other ip
 
@JanDvorak Is that wrong ?
 
and then it remembers it ? (the client remembers)
 
@dystroy I believe so
 
@JanDvorak OK, then. Fixed.
 
10:13 AM
thanks :-)
 
@AbhishekHingnikar just a redirect??
 
Nah not just a redirect :-/ they wont scale for xhr i mean it will throw a 403 on client :-/
i silently wanna build something like

`api.tld/user/me/3rdPartyService`
 
why not just send the XHR to the right IP in the first place?
 
so that i authenticate the user in between and send an authenticated request to the 3rd party service (they don't have to worry about it :D)
i guess this is only possible with a proxy, right ?
 
It sounds like the opposite of KISS, but I'm too tired to think
 
10:16 AM
@dystroy is it wrong that I upvoted you based on your SO rep?
 
@phenomnomnominal yeah its hard :P
i just wanna have an extensible web-application where 3rd party apps can addon to my api :P
making it amazingly extensible :P
 
@JanDvorak It's GOOD. Well, it can help me put in production my chat with a websocket proxying so that @FlorianMargaine and a few friends of me can use it...
 
its never been done before. and now i realize there is a reason for it :P
 
I'm happy that I did a network degree before moving to development
 
10:19 AM
@FlorianMargaine yeap :D
@phenomnomnominal wait it has been done before :-|
Google Does it :-(
 
and I still don't understand what you want to do, btw
 
https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=YOUR_API_KEY&pa‌​rt=snippet,statistics
see that youtube ?
https://www.googleapis.com/maps/v3/something?id=7lCDEYXw3mM&key=YOUR_API_KEY&pa‌​‌​rt=snippet,statistics
 
@FlorianMargaine I put it here because comments are too short in serverfault :
dys@ns38090:/etc/nginx$ ls -al sites-available/
total 12
drwxr-xr-x 2 dys dys 4096 Nov 19 11:19 .
drwxr-xr-x 6 dys dys 4096 Nov 19 10:31 ..
-rwxr-xr-x 1 dys dys  190 Nov 19 11:01 dystroy.org
dys@ns38090:/etc/nginx$ ls -al sites-enabled/
total 8
drwxr-xr-x 2 dys dys 4096 Nov 19 11:06 .
drwxr-xr-x 6 dys dys 4096 Nov 19 10:31 ..
lrwxrwxrwx 1 dys dys   27 Nov 19 10:35 dystroy.org -> sites-available/dystroy.org
 
@dystroy should've been in the question :P
but anyway, your symbolic link is wrong
 
@dystroy doesn't this belong into an edit?
 
10:22 AM
ln -sfn /etc/nginx/sites-available/dystroy.org /etc/nginx/sites-enabled/dystroy.org
restart nginx, and you should be good to go
 
@FlorianMargaine see how google uses the same domain for multiple apis ? I wanna do that just making it extensible :D , why idk ... sure should be fun !
 
you used a relative path, so sites-enabled/dystroy.org will look for the original file in sites-enabled/sites-available/dystroy.org
did you try cat sites-enabled/dystroy.org?
maybe I'm wrong.
 
Given the fact : Google Uses About 900,000 Servers ... now i think its not gonna be possible for me :-(
 
@FlorianMargaine You're right, please put that as an answer fast
 
doing it :)
 
10:27 AM
Damn... I really feel like I need a fourth coffee... I need more and more coffee to start thinking right in the morning, I'm a coffee addict now :(
 
Does anyone have a better/more insightful answer here?
5
Q: Angular.js - Do never resolved promises cause memory leak?

Umut BenzerI have promise. I created it to cancel an ajax request if I need. But since I don't need to cancel that ajax, I've never resolved it and AJAX completed successfully. A simplified sinippet: var defer = $q.defer(); $http({url: ..., timeout: defer.promise}).success(function(data) { // do something...

 
@dystroy I know your feeling, had my 7th coffee right now, and i'm awake since 3.5 hours
 
@C5H8NNaO4 Damn... you're worse than me
 
@dystroy Unfortunatly... It's not a good thing, I tend to get shaky when appraoching afternoon
 
@C5H8NNaO4 Note that I'm speaking of real strong coffee, not American one. But I'm not proud of being unable to think without that drug :\
 
10:36 AM
@BenjaminGruenbaum Admit it. You've posted here to gather upvotes
 
"ohhhhhhhhh nobody knows the answer I see " by user2982228 on
-4
Q: How to do programming?

user2982228Hello i am planning to develop a project with WCF application to comunicate with WP8, android and IOS. will i have any big problems with the communication of the api with these operating systems ? for example i am planning to build a fuel gas app with many gas stations in it. In the app and the...

 
@JanDvorak Of course. But it worked, I upvoted it, it's a fine answer. There's no problem in my opinion in pointing to good answers. Part of the reasons I didn't have any activity on SO in recent days is that I grew tired of the crap/good ratio...
 
@dystroy Good old dark black coffee, what's American coffee?
Nah, not really, it doesn't make me feel like its healthy either, but coffee's my best friend anyway-
 
@room send me resources to learn programming , as in better books and stuff u know :D not the developer manuals and stuff i mean books that actually teach you how to program being agnostic to the language ..
I think I need to re-start learning from scratch :P
 
@dystroy I agree. Recently, when I downvoted a high-rep for answering an obvious duplicate instead of answering, he replied "how could I've known it was a duplicate?" and then scolded me for not having answered anything recently.
 
10:43 AM
> Opera 18 comes out today. Custom themes, moving tabs between windows, support for WebRTC (camera/microphone API), and more. Download free opr.as/sB
 
@AbhishekHingnikar as if Chrome didn't have all this already
 
@JanDvorak the more webrtc the better
 
@phenomnomnominal 3 days have passed and i still don't hate Internet Explorer 11
 
@AbhishekHingnikar wow. Maybe I'll give it a shot, too
 
10:49 AM
@JanDvorak actually - I wanted to know if a better answer exists
 
@BenjaminGruenbaum okay 2 days on a stable windows :-D ... so i guess i amma keep it :P
 
All I did was profile and check the source
 
@BenjaminGruenbaum doesn't seem to be the case :-)
 
i only lost like 1 hard-disk-drive completely but thats fine !
 
I'm sure there are people with more insight
Maybe people have different experience with IE for example, or with Firefox
 
10:51 AM
@dystroy just added a few things to my answer to show how to make relative links
 
Also, if I wanted upvoted I'd link to the answer, also rep is meaningless
 
@AbhishekHingnikar wow.
 
/me wishes to buy it for my girlfriend once i am rich enough to afford it
 
@AbhishekHingnikar I read that before too, humans do crazy things o.O
 
10:56 AM
though white looks better on her so .. white web should do aswell
@C5H8NNaO4 its friken awesome :D
 
11:45 AM
21
Q: Advantages of a reverse proxy in front of Node.JS

PhilWhat are the advantages of having nginx or another web-server running as a reverse-proxy in front of the Node.JS? What does it provide? (This question is intended for matters concerning web-apps, not web-pages). Thank you.

 
12:02 PM
@AbhishekHingnikar Very related : I'm currently dropping Apache in favor of nginx so that I can proxy websockets... The reason being that many of my friends are on networks which doesn't let pass many ports
 
Oh, thats a bad one, He'll probably delete it himself with enough DV's
@AbhishekHingnikar Indeed! :P
You should probably delete this answer, and read up on answering questionsC5H8NNaO4 22 secs ago
 
People with 20K+ can actually delete-vote answers.
 
I know, but that's still a long way for me, so providing some hints on answering questions, could probably make him contribute better answers in the future
 
A question about managing SQL Server 2008, should that go to dba.se or superuser.se ?
 
12:41 PM
You can just ask here :P
If you can describe it in a line that is
 
Oh, it's not for a question I have.
Just saw a question about it on SO and flagged it with "should be on another site" but wasn't really sure whether or not I made the right choice
 
i was reading that
 
my mbp hdd is dead :(
guess it's the occasion to buy a chromebook
 
I left a comment on stackoverflow.com/a/20072069/1348195 and he left attribution to my answer -_- :/
nvm he deleted
 
@BenjaminGruenbaum I'm still a big fat js noob, so could you explain this to me?
"Have JavaScript objects representing the state rather than data attributes like in the example above."

I understand the principle I think: you don't want to pollute your html with javascript properties.

But how exactly do you *link* the object to the correct Html Element in a jQuery callback function?
 
Use objects for application state instead of storing it on HTML elements
 
But do you mean through an MV* framework like knockout or angular, then?
 
No, you don't need a framework for creating correct separation of cocerns
 
@Trufa your DP was super...
 
1:13 PM
I installed nginx successfully on my server. I'm impressed by the speed. I never thought my server was slow but now it really feels instant...
(not on :80, no need to test)
 
By the way, I just stopped apache2, the main differences are that 1) I have a few successful proxis, for example dystroy.org/miaou (websockets included) 2) now I understand the configuration, no more strange VirtualHost and .htaccess...
@FlorianMargaine You couldn't access my chat on port 8204. Can you check it works for you with the proxy on dystroy.org/miaou ?
 
I can access the chat. Let's see if I can work with ws
@BenjaminGruenbaum sounds like dystroy made a pretty good start for the chat project.
 
1:33 PM
@dystroy awesome :) @dystroy
@AbhishekHingnikar how hard would it be for you to apply the current design on @dystroy's chat?
 
About the design : I don't want to have a not efficient design : I want to be able to have serious discussion with more than a few lines of text visible on screen
(but prettier will be needed, I agree)
 
Why the massive downvotes and close votes? This is a very basic question - no need to hate on someone because they're a newbie. There is no 'minimal understanding' constraint nor it is 'unhelpful' or badly phrased. — Benjamin Gruenbaum 26 secs ago
@dystroy of course. Something like what we have here is nice
 
Hi all, I'm making a simple regex and need a hand. How can I get this to accept 6 numbers or more, not counting spaces or other chacraters towards this amount?

/^[0-9\s\-\(\)\+]{6,}$/
 
posted on November 19, 2013

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) {} Hey geeks! Story Collider (think "This American Life" for geeks) is

 
@CJRamki what's my dp?? :)
 
1:39 PM
@Dan /\d{6,}/
 
@Trufa Angry bird...
 
@KendallFrey That only matches digits though? I need to allow for spaces and other characters also.
 
(\d.*){6,} maybe
 
@KendallFrey That must be too broad, because I mustn't have letters.
 
It won't be too hard to tweak it to your needs
 
1:42 PM
!!afk stuff
 
@BenjaminGruenbaum Hurry back, ok?
 
If the subject is about regex, can you answer to this question?
-1
Q: Handle CSV rows with first value an empty string

イオニカ ビザウI use this function to convert a CSV row to an array function CSVRowToArray(strData, strDelimiter) { // return if strData is an empty array if (strData === "") { return []; } // Check to see if the delimiter is defined. If not, // then default to comma. strDeli...

!!this === this
 
@イオニカビザウ That didn't make much sense. Use the !!/help command to learn more.
 
0
Q: Jquery Dialog button Calling Page In FancyBox

devdarI have a href tag and i am calling a form in fancybox. This is how its done; <a class="fancybox fancybox.iframe" caption ="Registration" href="registration.htm">Registration</a> When the user clicks on the link the page opens in fancybox. I have now implemented a jquery dialog with buttons a...

 
1:43 PM
@イオニカビザウ That didn't make much sense. Maybe you meant: sandbox, catbox
You know, there was this funny idea once upon a time that people were supposed to test out commands and "play" in the sandbox
 
@イオニカビザウ perhaps you should use a real parser
 
anyone knows a solution to close a tab from a button? mobile.
 
@JanDvorak What a real parser does?
 
this doesn't work
(it does in chrome, not in mobiles)
 
@イオニカビザウ turns a CSV into a 2D array of strings, perhaps into an array of hashes
better yet, into an array-like of rows, where each row can be viewed as either an array, or (maybe) as a hash
 
1:46 PM
@JanDvorak This code is used in a real parser. And this is a bug. :-) I need to fix it. But I don't like regular expressions... :-(
 
leaving now, thanks n bye @all
 
@BenjaminGruenbaum no clue haven't sniffed into his code
 
@AbhishekHingnikar BenjaminGruenbaum is afk: stuff
 
@FlorianMargaine whats up with hdd's these days ?
mine also recently died .. is this a conspiracy ?
curropt all the hdd's so people shift to fusion drive ?
 
my hdd has lived some glory days.
 
1:51 PM
or is it a virus ?
@FlorianMargaine same has mine :-|
 
@JanDvorak Can you help me?
 
@FlorianMargaine btw the server-client model of development works amazing !
 
@イオニカビザウ I don't like debugging regex :-/
 
for the testing purpose i am testing with a headless old laptop running on CentOS 6 [my old test server at home]
which is working great so far !
 
@AbhishekHingnikar not really
@AbhishekHingnikar yeah, I like it
 
1:54 PM
I am just being a lil skeptical though
but maybe 2 years from now everything will happen in a google chrome !
IDE's in chrome !
scribes.sourceforge.net/index.html right now am using this :D
works decent :-)
 
I like centOS
iz gud
 
@AbhishekHingnikar I'd use this on a chromebook: chrome.google.com/webstore/detail/secure-shell/…
 
@FlorianMargaine i don't have a chromebook yet :P so :'(
and wow ! thats nasty
 

« first day (1130 days earlier)      last day (3810 days later) »