« first day (1185 days earlier)      last day (3769 days later) » 

12:00 AM
@BartekBanachewicz now you don't agree that upper bound can be a function ?
;)
 
oh no I do agree
I was thinking about higher-order functions
 
so what ? :)
 
@Basj It's JS-related pun. Function is a value ;)
 
@Miszy I think he should be familiar with a HOF term
 
@Miszy ok that's why I didn't understand...
I know but I didn't think you spoke in this context
 
12:03 AM
@Miszy wow...I alreade found 3 methods I didn't know about... and it looks so clean!
 
@Cicada3301 much wow
 
@BartekBanachewicz very method
 
@BartekBanachewicz in order to end with this story, don't misunderstand me : I agree with you that "member of" is a better notation, I just said in real analysis, the "member" notation is less common, but I agree with you...
 
!!google why is firefox being a little bitch?
 
12:04 AM
@Basj I guess I just found it hard to believe that people actually use that. But since they do... well.
 
@Cicada3301 What methods?
 
That's why I like wolfram on iPad
 
@BartekBanachewicz yes... I'm not guilty for this ;)
 
@Miszy .slice() and .call()
 
12:06 AM
Does O(f(n)) mean: the set of all functions that are less or equal to k*f(n) for any k, and for every n?
 
@Miszy for everything else I do pretty much like there is wrote... exaclty how it was written in codecademy
 
For n, big enough.
 
@MartijnCourteaux I guess.
 
@BartekBanachewicz I agree
 
12:07 AM
That would clarify the fight about the "belongs to" expression.
 
there is no fight!
"Belongs to" is the right formal definition
 
So, a function belongs to the set of functions that are less or equal to k*f(n), for n > n0
 
@Basj Wat? We're not fighting anymore? :(
 
"=" is the common use in real analysis
but is it is a common abuse, as I said 10 times ;)
 
"let's talk about javascript"
 
12:08 AM
:)
 
!!>[] + []
 
@BartekBanachewicz That didn't make much sense. Use the !!/help command to learn more.
 
@Cicada3301 What are you writing again?
 
do you even cheese bros?
 
12:08 AM
@BartekBanachewicz ""
 
@CapricaSix yaaay
 
@Miszy just trying to make the code pretty
 
Well back to JS before going to bed, do you know why this doesn't work : jsbin.com/epaHiwIv/2 (the right click on textbox to delete...)
@BartekBanachewicz will not want to help me anymore ;)
 
@Miszy and smoother and faster
 
!!>![0] == [0]
 
12:09 AM
@Miszy true
 
@Basj I think you have to stop the event propagation (IIRC)
 
@Basj As I said, do not bind to right-click. It won't work for security reasons in some browsers.
 
@Miszy : I know but it's just to test
I'll replace with something else later
 
@Basj some browsers dont' accept that
 
@Basj So do it now, because it doesn't work :)
 
12:11 AM
@Miszy oh okay :)
 
@Basj
http://www.google.com/search?q=how+to+make+something+happend+after+right+clicking+an+element+with+html5

@Miszy style
aww... it doesn't let me use lmgtfy....
 
@Cicada3301 What do you mean?
 
now it works...
before it redirected directly to google...
 
;)
still doesn't work, but this works :
$(document).ready(function(){
  document.oncontextmenu = function() {return false;};

  $(document).mousedown(function(e){
    if( e.button == 2 ) {
      alert('Right mouse button!');
      return false;
    }
    return true;
  });
});
12
Q: Bind event to right mouse click

ZacHow can I trigger some action with right click after disabling the browser context menu ? I tried this . . . $(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; $('.alert').fadeToggle(); }); }); .alert { visibility: hidden; }

 
@Miszy I give up
it won't fucking work on textarea
 
12:20 AM
sorry for having annoyed you with this textarea thing @BartekBanachewicz
 
It works in my game on <canvas>
 
strange, isn't it ?
 
guys... I think I should sleep: tomorrow I have school and you remember what happened when you stayed up to this hour awake before school... so, if you ever want to take care of this poor little guy contact him at matei@copot.eu
bye all!
 
@Basj not really
 
here is 1:21
 
12:22 AM
I can imagine the reasons for it
 
@BartekBanachewicz what is it N
 
Here is also 1:22
*Belgium :)
 
then I don't annoy you anymore with this, I go to bed too ! Here is 1:22 too
 
We are all fucking retards, right?
 
@Basj in textarea you might have some things put it. Hijacking and simulating OS rightclick could lead to easier phishing. On canvas there is no real danger
 
12:23 AM
Tomorrow we regret being up so lately...
 
@Basj That's a different event. document.oncontextmenu
 
@MartijnCourteaux yes :)
 
@Basj: Thanks again, and have a good night.
 
Good night !
 
@Basj: Bonne nuit. Si je suis juste. Le français n'est pas ma langue favorite.
just*
 
12:25 AM
C'est (presque) parfait :)
 
La*
J'essaye :P
 
@Basj Also I can now see another bug in this code.
@Basj Since you're adding textareas dynamically, you have to use events delegation to handle this.
 
@Miszy oh ?
 
@Basj At the time you're binding the mousedown event there are no textareas yet. So you have to use delegation. jQuery has it implemented.
 
@Miszy I admit that I don't know about event delegation
if you have an idea, can you modify jsbin.com/epaHiwIv/2/ ?
but once again I don't want to annoy you anymore with that...
 
12:28 AM
@Basj But then again - I do not advice binding to rightclick.
 
@Miszy hoho !! waw !! thanks!
@Miszy yes I'll try to redesign the keyboard shortcuts + mouse bindings
@Miszy : something else : here the object Texte instance is not destroyed it is only the DOM ?
 
@Basj Only the DOM.
@Basj So you should also remove appriopriate one from the array.
 
@Miszy but now comes the tricky part : how to find the instance to which it is linked to...
@Miszy or maybe I should do something else : when I initialize an instance of Texte, I should bind click on this Texte to some action (e.g. destroy)
 
@Basj for loop and compare textes[i].tb to this
 
oh fuck finally this shit worked
SELECT
{ [Measures].[Cena] } ON COLUMNS,
{ ([Sklep].[Miasto].Children, [Sklep].[Ulica].Children) } ON ROWS
FROM [Hd1]
WHERE (
	  [Czas].[Dzień].[9]
	, [Czas].[MiesiÄ…c].[January]
	, [Czas].[Rok].[2010]
)
fuck databases forever
headdesks
 
12:35 AM
@BartekBanachewicz I actually quite liked this course. It taught me how much I hate SQL and how much I love mongoDB. For several reasons.
 
@Miszy you done with MDX already?
 
@BartekBanachewicz Pretty much yeah.
@BartekBanachewicz A month ago :)
 
we're the slowest group
 
@BartekBanachewicz I got 9 extra points for my ETL only because I had to write XSLT to transform my XML :D
 
@BartekBanachewicz @Miszy and others : thanks a lot for your help!
 
12:36 AM
@Miszy we used C#
I don't know if I hate XSLT or SQL more TBH
@Basj no problem.
 
@BartekBanachewicz Then it's outside of the process. XSLT could be used inside the database in something called XML process
 
@Basj no problem
 
 
1 hour later…
2:08 AM
anyone know why using this regex doesn't work '/\string/ig' but this does '/\String/ig'
 
2:23 AM
Haven't been getting rep in forever.. hit the main page and see a timeout question that is insanely easy and get over 50 rep for it immediately.. wish all my canvas answers did so well! :P
@E.LDunn have I seen you before?
dat workbench :P
My amiga cd32 should ship out to me tomorrow! So excited.
 
:O
your getting a cd32
 
yeah, pretty pumped
I have a CDTV currently but will probably sell it
 
so jealous
 
your response is like the first one I've gotten after mentioning it mult times
peopel are like cd32 huh?
they just dont understand the awesomeness
 
tell me about it
I keep thinking of getting amiga os
 
2:31 AM
in other exciting gaming news! I just purchased a DS emulator for my phone so I can play pokemon
 
heh that would be badass @E.LDunn
@rlemon lol nice
AmigaOne x1000.... $2,777.03
thats so crazy.. but I guess its cheaper than an a1200 lol, one of the next systems id like to pick up in a year or so
 
yea I need to get a replacement power unit for my 500 :(
 
they show up on ebay fairly regularly
or someone on amibay.com might have on as well
I kind of want to get another one, I only have one currently, but an NTSC and PAL a500
with a flickerfixer
just sucks with that older HW if one thing goes your screwed for a while
 
yea, i didn't realise any one in America knew about amiga :)
 
there are a few of us :P
cant deny the amazing pixel art man
plus Im just a huge commodore fan in general
 
2:38 AM
:D
damn it i wanna bust it out and play shadow of the beast 2 now
 
haha
did you see they are doing a modern vs of that?
 
yea im worried they are gonna make it a hack and slash game
 
yeah probably, regardless of what they do I bet it wont be as hard as the original at least lol
 
haha i don't think i ever completed one with out cheating
 
Ive never gotten close
alright im off to play some dayz for a bit
see ya
 
2:41 AM
take care :)
 
3:11 AM
hey guy good morning :D
 
4:00 AM
hey
 
4:23 AM
Good morning people :)
 
hey guys
I'm having a doubts
the thing is .. I have a button
where I want to save an event ..
but before saving I wanna check if that name of event exist in my database
if not save
if it is... show dialog box that name has already exist
how can I reach it with post and get methods ?
any idea ??
 
I had an idea once. But that... was a long time ago...
 
0
Q: Unable to return function control

IamDesaiHere is my fiddle so far. Since the code for Start and Resume buttons is similar, I wrote a function updateTime(). The problem is, it is unable to return the control from this function. Please help!

 
4:57 AM
With jQuery, if I have selected an element, how can I each() through all of it's first child's children?
 
 
My first Dojo application: jsfiddle.net/P7b9S/63 :)
Any comments? :)
 
Uhhhh... Seems like that's a lot of code for a timer; What does Dojo do?
 
5:22 AM
dojo is helping me to access HTML elements using Javascript and manipulate them
:)
 
Wow that's a lotta code
 
Its core coding with dojo
any tips on reducing the code?
 
Don't use Dojo
 
5:41 AM
Actually I did this to learn dojo.
 
6:09 AM
haha
 
why don't you just go to actual dojo and get jacked up?
 
6:33 AM
lol what?
 
@connorspiracist questions about programming tools are on-topic on Stack Overflow. Why not this one? — Jan Dvorak 37 secs ago
 
@JanDvorak
This question appears to be off-topic because it asks for an example and doesn't display effort or research. — dystroy 21 secs ago
You think it's the right way now ?
 
@dystroy unfortunately, "doesn't show research" is officially a downvote reason, not a close reason.
 
@JanDvorak Questions about programming tools are on topic but I'm not sure the way to install them on a specific OS should be on SO, especially when there's no hard problem involved, like compilation
 
6:46 AM
@dystroy then maybe "too localised"?
 
@JanDvorak I'm not sure. It might be dependent on the mentioned technologies. Maybe there's a Delphi reason for this question to be on topic. When I don't know the stuff, I prefer to avoid voting.
@JanDvorak What would you do for such a question ?
@rlemon I might not get it but you know that sometimes a semicolon at the start of a js file before concatenation by a minifier solves a bug ?
 
7:14 AM
@dystroy I didn't CV, but I took your word it's a trivial issue and downvoted.
 
7:25 AM
!!should I downvote this joke answer on codegolf that admits it's a joke?
 
@JanDvorak Yes!
 
done
 
Gosh, I hate the word "ESL". It is just an "FOB" alternative. I hate those bogans saying the word all the time.
 
Room people, @copy, @FlorianMargaine, @BenjaminGruenbaum, I wrote a small article on the specific way I use promises for database querying. Opinions (both on the article and its terminology and the used pattern) would be very welcome.
4
In other news, Miaou now extensively uses promises.
 
7:45 AM
What's the point of using lock/unlock functions in AS3 when you are dealing with Bitmap data?
 
0
Q: How to create a normal sails model without being in the models folder

connorspiracistSo, I'm in the middle of implementing a plugin api for my application, and the plugins can have their own models, imagine this. SimplePlugin = { pluginName: 'simple', pluginConfig: {}, SimpleModel: { attributes: { name: 'string' } } } So I ne...

any ideas?
 
Closing reason for this bad one ?
0
Q: I am new to WebRTC. I need to know if i require username and password to use WebRTC just like skype

user3060627I read article about WebRTC. I understood that it creates a common platform for real time communication. Can some one answer me that if WebRTC requires credentials and also is there any time limit to use.

 
8:00 AM
His name is "ESL"
 
@dystroy I like the concept overall, but a few weird things: on arguments look like magic, your errors are not good enough (the stack trace is lost), and why don't you use Promise.promisify for exports.on and proto.queryRow?! :P
 
@FlorianMargaine I don't see what promisify would bring me for this two functions. I might be missing something though. And where would I lose stack trace (apart for NoRowErrors where it doesn't matter) ?
 
@dystroy it'd make it as simple as this: pastebin.com/qMr1j5cq
@dystroy for NoRowErrors :P
 
@FlorianMargaine But why ? Doesn't this add a layer in execution ?
 
just do npm install newerror and let it handle that for you :>
@dystroy you already use this layer everywhere
are you trying to micro optimize?
the code is really better with promises, don't you think?
 
8:09 AM
I am using promises here. I'm just not adding a layer where it doesn't bring anything. The code is the same length with promisify but some part of what is done is hidden.
promisify is expensive, I don't think using it at each query, when it doesn't bring anything, would be a good idea.
 
dunno, your way just makes your code trying to play with promises, while the code I wrote make it just take care of the business logic
yeah ofc, the promisify is done only once at startup, that was to give you the idea
for the exports.on version: pastebin.com/w9mGYpU1
the Promise.promisify should be done out of the function ofc
 
For db.on, I agree it could make the code clearer (at least at first sight). But I still think it doesn't make sense on instances of client (on which I have no control and that I dynamicaly get).
 
can anyone tell me why this page the div isn't at the very top? 209.236.124.135/bluewasabi
I can't figure it out
 
Seeking help for my own question : stackoverflow.com/questions/21086345/…
 
@dystroy the code is exactly the same. It's just that with one case, you're forced to make promises yourself, and in the other you let bluebird make them for you (once, at startup)
 
8:15 AM
@KevinDuke which one?
 
@KevinDuke I think position:absolute; on everything will do the work.
 
I think it's the library's responsibility to make them, it has nothing to do with your business logic
 
@FlorianMargaine The problem is here : "once, at startup". You can't
 
The black box div
 
@EnglishMaster ew
 
8:15 AM
should be at the top
 
@dystroy of course you can. Code executed at the top-level of a file is not executed more than once in node
 
@FlorianMargaine You dynamically get the client instance from the pool. You can't execute promisify on it before.
 
the pool.connect function can't be promisified?
 
@KevinDuke It's strange, I can't figure out what element has the margin but try * { margin: 0; }
 
it's not the data you promisify, it's just a function
 
8:17 AM
@FlorianMargaine This one, yes (in the init function). And I might do it. I was speaking of the other one, in queryRow.
 
ah
yeah I get it now
 
@connorspiracist * { margin: 0px; } did the trick but still, I would like to know what element has the margin. It's driving me nuts
Ah I got it! the <p> had the margin
thanks for your help guys!
 
but why did it drag the body with it?
 
I don't know
 
I know it is rude to ask again, but just to remind, i need help with the client side authentication and session using emberjs.
 
8:23 AM
@PranayaBehera as if somebody of us haven't seen your link...
 
@PranayaBehera You know it's rude and asked a question again? How dare you..
 
@dystroy this would be a way, but I get your point now pastebin.com/JQuWgpac
 
@JanDvorak Thought might have missed by you guys
@EnglishMaster I am sorry then. But really stuck there itself.
 
@PranayaBehera I've come to a halt too, but very few people here know ember or sails so you'll have to wait for time
 
8:25 AM
@connorspiracist Ok.
 
You sure that's the whole error?
Uncaught TypeError: Object function () {
    if (!wasApplied) {
      Class.proto(); // prepare prototype...
    }
    o_defineProperty(this, GUID_KEY, undefinedDescriptor);
    o_defineProperty(this, '_super', undefinedDescriptor);
    var m = met...<omitted>...e' new.js:23
(anonymous function) new.js:23
jQuery.Callbacks.fire jquery.js:1037
jQuery.Callbacks.self.fireWith jquery.js:1148
done jquery.js:8074
jQuery.ajaxTransport.send.callback jquery.js:8598
doesn't even look like an error
 
but this is what i get i can't go to the next route or cant set the cookies also.. i am not sure what the error means also .
it says anonymous function at line 23 of new.js file. That line declares the AuthManager.authentication function which is defined in config/auth_manager.js file
 
@PranayaBehera who's providing your store? ember data?
 
yes @connorspiracist.
 
@PranayaBehera try
1 sec
this.store.find('user', userId');
 
8:34 AM
@connorspiracist cant call find of undefined .
 
@PranayaBehera ok, well BASIC DEBUGGING: Uncomment every single line one by one and see when the error stops
then you will have the exact line the error is occurring
 
@connorspiracist I did try to find the error. But everything works up until that AuthManager.authentication line.
 
@PranayaBehera there is no such line
you mean the function, that's not a line that's a block
 
@PranayaBehera the console.log(user) works?
 
8:42 AM
@FlorianMargaine Nope.
 
@PranayaBehera I have a suggestion
 
You can also make a class called Logger like:

var Logger = {
  testCase1: true,
  logCase1: function(msg) {
  if(testCase1) console.log(msg);
}
}
 
a good book for jQuery, i dont know javascript but have learnt c...
 
@swapna Is that a request for a book?
 
8:45 AM
And you can turn on/off each log cases easily by setting boolean values above ^_^...
 
or are you trying to sell us one
 
pretty each
 
@PranayaBehera do console.log(this); at the top of the function and paste it here
 
@JanDvorak "A good book for jQuery: i don't know javascript but have learnt c" by @swapna
 
@connorspiracist Object {url: "http://rest.api/login", type: "POST", isLocal: false, global: true, processData: true…}
accepts: Object
async: true
contentType: "application/x-www-form-urlencoded; charset=UTF-8"
contents: Object
converters: Object
crossDomain: true
data: "identity=pranaya%40linkmysport.com&password=123456"
dataTypes: Array[2]
flatOptions: Object
global: true
hasContent: true
isLocal: false
jsonp: "callback"
jsonpCallback: function () {
processData: true
responseFields: Object
success: function (results) {
 
8:48 AM
@PranayaBehera Well that's wrong
try and
replace
AuthManager.authenticate(results.session, results.user_id);
 
@Neil The book title would be "I don't know Javascript but I've learnt C", actually a pretty good title for a book.
 
Much configurations!
WOW!
 
AuthManager.authenticate.call(AuthManager, results.session, results.user_id);
 
haha and I will be the author
 
8:49 AM
More than Spring framework!
 
@connorspiracist Uncaught TypeError: Cannot call method 'call' of undefined
 
Hi all !
 
@PranayaBehera is that the function that's calling it?
@Basj hola!
 
hi @basj
 
@JanDvorak I wouldn't buy it
 
8:50 AM
hi!
Do you know if it is possible to define an object class (OOP) that herits from a DOM ?
 
@Neil I would sell it first at 90% discount
 
@connorspiracist yes
 
@PranayaBehera show me your code how it is now
 
Ex : instead of var btn=document.createElement("BUTTON");
I would like to define "MYBUTTON" objects that has more variables than standard "BUTTON" object
 
@Basj what?
 
8:52 AM
@connorspiracist AuthManager.authenticate.call(authenticate, results.session, results.user_id);
 
I would like to define my own Element object like "Button" or "Textarea"
 
@PranayaBehera the whole code, what you have in your question
 
@connorspiracist something very similar to "textarea", that's why I would like to use class heritage
 
@Basj the only way to instantiate a TextArea is createElement.
 
@Basj I have no idea what you're on about
 
8:53 AM
@JanDvorak ok... can I define my own type similar to TexArea ?
 
@Basj it won't have any of the magic textAreas get as host objects.
 
@PranayaBehera ok, that error means AuthManager.authenticate doesn't exist so do console.log(AuthManager); and again post the code
 
I don't do GitHub
 
8:55 AM
@connorspiracist doing console.log(AuthManager) results in unknown mixin
 
y dear
 
@JanDvorak ok... In fact I just want to add a few variables to my textarea like this :
var tb = document.createElement('textarea');
tb.style.border = ...  // this is ok
tb.style.... = ...          // this is ok
tb.myownparameter = 126   // this doesn't exist, how to allow this ?
 
@PranayaBehera Wellll, why didn't you say that!!!!
try this
 
@Basj it's possible, except old IE might object
 
var t = AuthManager.create(); console.log(t);
noo
hmm
 
8:57 AM
@JanDvorak it's possible to add my own parameters without producing an error ?
 
@PranayaBehera can you make a jsbin?
 
@Basj or, rather than, classical inheritance, you could use a real DOM element as the prototype.
 
@connorspiracist yeah sure give me some time to paste in
 
@JanDvorak sorry I don't understand the last sentence ?
 
8:59 AM
function getMyDomObject(type){
  return Object.create(document.createElement(type));
}
 

« first day (1185 days earlier)      last day (3769 days later) »