« first day (1747 days earlier)      last day (3196 days later) » 

7:01 AM
@BenjaminGruenbaum At least it seems the OP had the presence of mind to accept the duplicate, it's closed now
 
@JohnSnow His three "examples" make it clear that he's looking for Math Ceiling. It's a very low effort question though.
 
@Pikamander2 Well, I suppose it makes sense if you know C# which I don't
 
I think the upvotes on bad questions often comes from the FGITW people who answer them, because they want the OP to upvote their answers in return
But that's just my theory
 
@ivarni true, at least that
 
@JohnSnow But don't most languages have a built in ceiling function?
 
7:05 AM
@Pikamander2 Probably, but don't ask me, I know nothing.
Also, I'm bad at understanding bad English :/
 
Most languages I've worked with has had some form of Math class with static methods like ceil, naming might vary
 
Well, you know more than me. I had no idea what he was asking for.
 
It's basically a special case of rounding, I hadn't encountered the words "ceiling" or "floor" in that context either before I started programming
 
I suppose I still haven't
 
Well you have now
 
7:15 AM
Well, I supposed I have though I don't know what it means. He want's to round up a number to the next whole one if it's bigger than a whole number. Dunno where floors and ceiling comes into that
Though at the first read I didn't understand what he wanted to do.
 
If you have a fraction like 1.5, then the ceiling is the closest integer that is "below" it and the floor is the closest integer "above"
!!> console.log(Math.ceil(1.5)); console.log(Math.floor(1.5));
 
@ivarni "undefined" Logged: 2,1
 
I see
 
And I totally messed up above and below but it's too late to edit
 
The only Math I've had to use thus far is Math.random >_>
 
7:18 AM
but you get the idea
 
@ivarni You had me quite confused there for a while, but I understood Caprica. Code speaks louder than text ;P
 
It was.. uhm.. a test
 
To test them grays of mine? ;P
Also, I agree... those answers... Wat
I don't wanna waste rep on dv them though
N00bs like me have to work hard for the rep
 
Pretty much everything you can gain with rep that you haven't already are moderation tools though
 
shrugs
Would be nice to become a trusted user
 
7:24 AM
how much data does jquery ajax supports, when i send simple image file < 500kb its working fine, but when i send 10mb file through ajax its giving me an error
 
what is the error? sounds like a server side issue
 
internal server side error
its working fine with small sized files
 
It would be "50x Internal server error" I think (no "side")
 
but when i use > 4mb files its just throwing internal server
 
7:36 AM
lol
 
its 500
 
Am I the only one who thinks that ng-click , ng-if , ng-repeat , is a bad idea ? it's just like onclick. I mean - why mixing html with logic ?
 
Sorry meant to type x
 
doesn't "internal server error" ring a bell?
 
basically your server guy doesn't want to accept requests from jquery. So you need to stop using jquery. servers don't like jquery requests.
 
7:38 AM
@RoyiNamir Perhaps. I don't care. How else are you going to make your source readable when you have to mix presentation and logic but must keep them in different files? Confusing.
 
var fileData = new FormData();
fileData.append(fileInput[i].name, fileInput[i]);
working fine with small sized files
 
the IETF HTTP 1.1 Specification describes "500: Request code to be used when incoming request originated from jQuery identified by the X-Requested-By header"
 
i'm using asp .net mvc, localhost
 
How about (jq example): $("#btn").on('click',func....)
 
@RoyiNamir think of it like your server side templates
 
7:39 AM
@FlorianMargaine For ng-repeat - yes. not for ng-if ,ng-click
 
hello
 
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
 
@RoyiNamir Because Google is allowed to violate basic programming principles because it is Google. And angular is backed by Google.
 
@Simply ask in the C# room
 
then it should not work with small sized files also
 
7:40 AM
@AwalGarg Exactly
 
@RoyiNamir because the way that we develop client side changed fundamentally over the past couple of years from websites to webapps. A page without JavaScript in a lot of sites is meaningless.
So unobtrusive JS is old and irrelevant.
 
OKK
 
@RoyiNamir I'm sure that if you have a better idea and implement it, people will follow. I'm interested to see what your better idea is.
 
And declarative binding to behavior is good.
 
@AwalGarg you look mad
 
7:41 AM
Imperative binding has the "come from" problem, you have event handlers, you're not 100% sure where you added them and you have to query your DOM to do so. The last part is the bad part.
 
@BenjaminGruenbaum Hi. of course a page must have JS. but why mixing inside the html element : ng-click ?
 
@RoyiNamir because it's adding view logic declaratively to the view payer. It's not just HTML anymore - it's not just a template it's the view.
 
@RoyiNamir it is not an html element
 
@RoyiNamir I'll come out more bluntly since I'm being ignored anyway: What is your better idea to do this?
 
3 mins ago, by Royi Namir
How about (jq example): $("#btn").on('click',func....)
 
7:42 AM
HTML is a declarative way to define the structure of the page - adding behavior as part of the structure makes sense if the page makes no sense without it.
In Angular apps, it makes no sense for the page to work without Angular - it's a SPA.
@FlorianMargaine that's terrible. Querying your own presentation layer to find things you put there is terrible IMO.
 
Oh dear once someone suggests jQuery as something better to the bindings of Angular I must give up any attempt for a sane or logical discussion with that person.
 
@RoelvanUden Then you were not willing to have a debate to begin with.
 
@RoelvanUden quicker to write than document.querySelector('#btn').addEventListener('click', func...)
 
@BenjaminGruenbaum As you said , it's not just HTML any more , It's the view. RIGHT !. View should not has if's. the scope/glue/controler should provide this if checking....no ?
 
@BenjaminGruenbaum wait, what. why?
 
7:45 AM
@RoyiNamir right, the view doesn't do if checking, it's binding to functions, those are where the logic is at. It's the command pattern.
@RoyiNamir you don't have actual business logic in the view for doing business logic things, you just bind the click to a method which can then have the said logic, and probably transfer control to another layer that's not the view.
You don't do onClick="/*code here*/ in React or ng-click="code", always a function.
 
@BenjaminGruenbaum his point is that why is it different than onclick=myfunc.
 
^yes
 
@BenjaminGruenbaum I'm surprised you see it that way.
 
In idea it's not, but because it's binding.
onclick has horrible scoping issues, mostly. It binds to global functions.
 
^ yes. those are the technical reasons.
 
7:48 AM
That's the main problem with it, that and the fact it dynamically scopes and has quirky this. There is no way to scope the UI with it - unlike with ng-click and its counterparts
So native onclick is not really usable. It uses global state and is error prone.
 
It all boils down to the fact the Google can do whatever they want, and break old principles :-/
 
Breaking old principles is a really important and noble thing.
 
^ yes.
 
They were not the first (Knockout were there before, and others before it) and they were not the last.
 
But when one does it , he is being punished. but when google does it - it's fine
 
7:50 AM
no.
Angular didn't gain traction because it was by Google, Google had at least 3 other frameworks when it released Angular and still does.
None of those gained traction. Angular gained traction because it made developer lives easier.
 
Which amber / underscore / mustach / KO didn't supply ?
People like to follow big companies like Google.... :-)
 
@RoyiNamir not really. when I first came into this room I was a noob. So if I used .innerHTML, I would be immediately asked to use the dom functions. now if I do, I'd be most likely asked why I am using it, or just not asked about it at all. The thing is, even stuff usually evil is not evil in some cases when followed correctly.
 
-
Another example : "don't use __proto__" - can be found anywhere. Now it's a symbol which is a bit legalized by the spec in Es6.
 
For example: json2.js was a shim for JSON object, which used eval. It's not that people didn't know that eval is bad for json at that time, but json2.js did it in a controlled manner (by first verifying that input is valid json or not).
 
Hello, can somebody help me about this question? That question is about a NetBeans hint telling to a JavaScript object that have inconsistent properties in a deep function, 'The global variable "var" is not declared.'
 
7:53 AM
@5ervant 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.
 
@RoyiNamir but you shouldn't use it even now anyways :D
 
@CapricaSix Do you mean I will post my question with a little bit of snippet here?
 
@RoyiNamir no, not really.
 
I'll ask it in the other direction : Is it possible instead of <lala ng-click="code" to do this binding via the $scope ? so now it's <lala ng-model="myLaLa" and $scope.myLaLa.onclick=....? is it possible ?
 
@RoyiNamir that's because of Zepto.
 
7:55 AM
when does w10 come out? 0.o
 
@BenjaminGruenbaum ?
 
Some on twitter say the already started downloading this, I don't have any notification...
 
@towc Today. At some point.
 
@AwalGarg the __proto__ standardization thing, Zepto came out on Mobile, it worked on iPhone and Android which use WebKit which has __proto__. Microsoft came up with Windows Phone - since IE wasn't a target of Zepto (no market share) Microsoft had to add __proto__ in for mobile websites to work.
Once all vendors ship a feature it has to be standardized so things don't breaj.
 
7:57 AM
@RoyiNamir you can do something like it - but really don't.
It's a terrible idea that beats the point of declarative UI.
 
@BenjaminGruenbaum o.O TIL
 
Just stop cargo culting "best practices" and check what these people have to say.
@AwalGarg story of my life.
 
:P
@RoyiNamir anyways, the reason I said "google can do stuff" was because in the end angular does break tradition and it hurts me that a lot of people (not all) use it without questioning it. just like other frameworks and libs.
it is completely stupid as fuck to use third party code by some famous org without actually knowing what and why it is doing.
 
how do I know if W10 is downloading on my PC @_@
 
wireshark?
 
8:02 AM
@Neoares If you've opted-in to the W10 update you should have a Windows flag in your task bar already. It should be there.
 
yes I have it
but it doesn't say to install nothing
it says a pop-up will notice me when W10 is downloaded
so I guess I should wait
btw I don't think I'm going to upgrade yet
 
@Neoares I think that's smart. I'm going to wait as well
 
I've heard about double monitor bugs
like 1 monitor not working... xD
 
I imagine there would be a way to rollback
 
8:05 AM
Am I reading this correctly? persistent memory storage? Have we found the missing link of computer storage?
 
otherwise you can always do a full clone of the present system to restore.
 
This is going to be a game changer
 
@AwalGarg hahahahaha you're funny
 
a way to rollback...
you are talking about windows
 
8:07 AM
oh right. no sane stuff.
 
@Neil It's not that. It's definitely faster than SSD (approximately 1000x) but according to the sources at Intel it's not quite as fast as RAM. So, yes, it's going to be an amazing storage device but we won't be able to toss RAM because the speed of it is that much higher still. Perhaps in the future though.
 
I wouldn't expect such a thing
 
@RoelvanUden It doesn't have to replace ram, it only has to replace hard disks
the fact that it persists after the power shuts down is a clear hint that the intention is to replace hard disks
otherwise what use would that be?
 
@Neil Many news sites report it as "merging RAM and disk storage" because this would be faster than RAM. But it's not. It does get close though, so if you didn't consider it, consider what happens if you can have higher speeds than RAM for storage and the implications it has for us :P
 
ram isn't the problem. most program wait time (at least client-side) is due to loading information from the hard disk
 
8:10 AM
but the SO doesn't have to load data from disk to RAM, so maybe it's worth
 
it's several orders of magnitude slower than ram
 
@Neil Sure.. but consider databases. :-P
 
if we had something that was half as fast as ram, it's like a 5000% improvement :P
 
We'll know in a year or so when trials begin.
 
Morning' guys
 
8:11 AM
@RoelvanUden What about them?
it's important to see the durability of these things, because if they're not durable, you'd need more than one to be in "raid"
i'm anxious to see how it turns out
 
@Neil Well.. if you have storage that is quite as fast as current typical RAM, what is the point of even having things like indices? You don't actually need them anymore. The optimization is moot if you can read on the correct locations fast enough. It's a game changer on many fronts, including databases, and that's what really interested me. :P
 
Any sublim text user her ? I'm looking how to open a fil in a new tab when you want ? (seems ont to work everytime when you double click; its strange)
 
@RoelvanUden Indexes would still come in handy because in the same way that indexes speed up searches on hard disks, it would speed it up here
 
would also make bruteforcing hashes faster
 
@Baldráni ctrl + n doesn't do it for you?
 
8:16 AM
It would simply be much faster to find (maybe it really would be unnecessary)
You could save the state of your computer before switching it off and start it back up in a matter of seconds
We'll finally have computers that boot in 2-3 seconds
 
@JohnSnow Not realy it open a new tab but will change my last tab when i change of file
 
0
Q: Draw a rectangle on a image inside a canvas using mousemove event in javascript

GajiniI am trying to draw a rectangle on an image that is inside canvas using mousemove event . But i am getting rectangle on the image with color filled in the rectangle because of clearRect . can anyone figure me out . how to draw a rectangle with just a border on the image . Below is the code that i...

 
@Neil ssd+mint can already boot in 5 seconds or less
:P
 
@Baldráni Could you please try saying that once more
 
Hu
Hum*
 
8:18 AM
@AwalGarg It isn't being used because it is an expensive tech
I'm hoping intel will see the value in making this at least something that every big website is going to want to use in their supercomputers
 
I'm trying to open a file in a new tab and not change of file --> Lets say I open a file (style.css) I dont edit it yet and I want to open an other file (blablabla.php) I want both of them to be in different tab but it seems that it just change the principal window without opening a new tab
@JohnSnow ^
 
Ah
Well, dunno how to do that
Never managed to get the project structure thing working.
 
^^
Well then I inform you If i find a way
 
Please do, doesn't hurt to learn new things!
In fact, the sublime fail on my part is why I got me a license for intelliJ ultimate ;P
 
@Baldráni Sublime text?
 
8:23 AM
I'll look at it one day
@MadaraUchiha yup
 
How are you opening the file?
Selecting from the sidebar?
 
in a new tab yeah
 
@Baldráni Double click
Single click opens it in a temporary tab, double click opens it in an actual tab
 
Haha
Nice one
 
cc @JohnSnow
 
8:24 AM
I was wondering why it was triger sometime an not other time
I guess i was just doubleclicking not faster enough
 
@MadaraUchiha cc?
 
ctrl+k
!!are you sleeping?
 
@Neoares Nope
 
Please format your code.
 
@CapricaSix liar
 
8:28 AM
@Neoares @MadaraUchiha I already press Ctrl+K but the post is not transforming into a code.
 
@5ervant Paste, CTRL+K, Enter
 
function test(){
    console.log("HAMMERTIME!");
}
:o
 
jQuery(function () {
  // A lot of code here...

  if (jQuery('.navbar-brand')[0]) {
    var navbarHeader = { obj: jQuery('.navbar-header'), widthPct: null, widthRem: null };

    DeviceMobile(
      function () {
        // ...
      }, function () {
        navbarHeader.widthPct = whateverYouAssign; // Hints generates a warning here
        navbarHeader.widthRem = whateverYouAssign; // and here after the previous one.
      }
    );

    // ...
  }

  // A lot of code here...
}
Why my NetBeans IDE is generating a hint telling that 'The global variable "navbarHeader" is not declared.'? How can I get rid of this without declaring a global variable? Some said that it's just a NetBeans hints' issue but I need to verify that to be sure. Any help will be appreciated..
For more info you can visit my SO question about that..
 
I'm not sure netbeans supports jQuery
 
@5ervant Your problem is the 3rd word of your first sentence.
 
8:39 AM
@AwalGarg what would be good Indian music?
 
Can you confirm that it's just a NetBeans bug? Kindly check my SO question for more details. Please don't answer it as I'm going to delete that question if it's just a NetBeans bug. Thanks!
 
guys, what's the difference between "Object.create(Employee);" and "Object.create(Employee.prototype);" ?
 
@5ervant I told you in the other chatroom.. run it. If it runs "navbarHeader.widthPct = whateverYouAssign; // Hints generates a warning here" without errors, then it is a netbeans error
 
Yay, Windows 10
 
@BenFortune did you get it?
 
8:48 AM
 
Sorry @Neil , I'm just verifying it here..
 
I still only get this
@BenFortune is it taking long?
 
lol windows
 
@towc I'm on a 10/1 connection, might take a while to download
I already have the 6gb of setup files though
 
user3119231
windows 10 ready!!!
click on your windows icon and start the update
 
8:51 AM
I don't get why you're so excited
 
You can force it with wuauclt.exe /updatenow
 
@BenFortune 0.o
@JohnSnow I don't get why you're not
 
Tell us about edge
 
user3119231
@towc o/ \o
 
user3119231
high five
 
8:53 AM
Install Gentoo!
 
\o
 
user3119231
huh?
 
don't think it's ready for europe yet or something
 
user3119231
Lol my computer restarted -.- Teamviewer is closed, no idea what is happening now. I think we should call this moment - The Happening
 
user3119231
*Fappening
 
8:56 AM
@towc I'm in Europe :p
 
@BenFortune f u then :P
does the icon just highlight or something?
or is there a popup?
 
There's a popup, did you try forcing it?
 
oh. Not yet
 
@towc But what is it yet ? The iso is launch or not ?
 
@Baldráni ISO's are available too, you can't upgrade with them though.
 
8:58 AM
@Baldráni ?
 
Gneee
 
What is the point then ?
 
@towc Well, I don't like the final frontier when it comes to Windows. I've seen way too many buggs to be excited about that.
 
@JohnSnow I'm mainly curious about what edge has to give us and about a half-decent UI finally
 
8:59 AM
@BenFortune Haa so its good you can try it ?
 
@Baldráni wat
 
@towc I'm too realy exited :D But I'm pretty sure we will be disapointed
 
BenFortune did you use the optimizer tool?
 
@BenFortune If the iso is in commerce and you can download it that mean you can try windows 10 its ? Meaning you can test edge too no ?
 
@towc I don't know what that is, so no.
 
9:01 AM
@BenFortune in your link :P
 
@towc Finally? I'm probably old then. I think win7 is just fine
 
@JohnSnow yup, old is the right word
 
But on the other hand, it's mostly important to me to have windows for my games :P
 
It's the ISO download tool, I'm upgrading through Windows update
 
Old stable version > new unstable version
 
9:02 AM
@JohnSnow But shiny things!
 
@JohnSnow but much enhanced and with a lot of new stuff to offer
 
I rather my ram be new and shiny
 
People at work are going to love me talking to Cortana all day.
 
we might aswell get back to paper mail and manual writing. It worked for more than 5000 years!
 
@towc well, that doesn't really matter to me if my games keep crashing :P
 
9:03 AM
@JohnSnow I've also been running the previews as a DD for the last 6 months, next to no problems.
 
@JohnSnow they say that everything on steam seems to work fine, I assume those are the only games you're talking about
 
I have steam but I also have origin and some other games and software
I suppose Adobe is one of the first things they ensure is working...
They are going for the same thing after all
 
9:24 AM
to all graphics geeks here: every time I draw something onto canvas, it both has to calculate what to draw and actually render the thing. That's two par .fill() or .stroke() and similar. This is where I might be wrong, it might wait on rendering by itself, otherwise if I were to draw everything onto an off-screen canvas and just render the full frame on the onscreen canvas I'd save every individual render, it would be just like drawing an image in the end!
so the question is: does the canvas wait on rendering? I have no idea how to test that
 
user3119231
Work with: youtube.com/watch?v=RIJcj8t7xDM = '_____'
 
user3119231
~
~
.---.
`---'=.
|VK | |
| |='
`---'
 
.---.
`---'=.
|VK | |
|   |='
`---'
 
wtf is that
beer?
 
9:26 AM
it took me a while to realize that I work better with music that has something human in it
 
I assume it's a mug
@towc I love to code to Katatonia
 
@Neoares It's just a bunch of characters in a chatroom ya weirdo. Get your eyes checked
 
:(
 
user3119231
 
user3119231
lolling everytime
 
9:28 AM
lel
 
user3119231
I have nothing to do on work :D
 
we should be able to choose a nickname
 
@Maurize cursor party!
 
user3119231
@JohnSnow yessir! o/
 
user3119231
have to find a way to detect if user leaves and delete his cursor -.-
 
9:29 AM
who's doing circles xD
 
user3119231
Me not, I have to continue work. :(
 
same
 
@Maurize the socket has an end event
 
sill doing circles
fuck this shit
!!afk working
 
user3119231
@JohnSnow I can't install websockets on my webserver. Had to use a simple timer which takes 1 row with all positions out of mysql db
 
9:31 AM
Wait, then how are you doing that? :O
Sounds needlessly complicated :S
 
user3119231
Simply look at my source code. It is not written well
 
user3119231
It is only a little playground. If you have any improvements feel free to tell me :P
 
If I had the time, I would
Sadly I'm stuck figuring why my db connection autoclosed
And what other method to implement since DI connections aren't the thing in Node it seems >_> (But I dunno)
 
@Maurize Why can you not "install" websockets on your server?
Your server is capable of TCP connections, is it not?
@JohnSnow Example?
 
If I call an exported function two/... times in a module, does top level varaibles in the module get preserved?
 
9:40 AM
@cswl Example
 
Planning to troll a colleague who never locks his screen. He's got tampermonkey installed so I figured I'd install a userscript that randomly flickers a picture of the twins from The Shining and use SpeechSynthesizer API to randomly say "Come play with us, Danny". Any better ideas of what I could make it do?
 
@ivarni He a doctor who fan?
 
No idea
And I can't ask because then he'd figure it out when the random stuff starts going down in his browser
 
@BenFortune what's your timezone?
GMT+0?
@ivarni there's a custom.css file in the Chrome files. That css is applied to every page: insert this:
body { -webkit-animation:  rot 8s linear infinite };
@-webkit-keyframes rot {

    from { hueRotate: 0deg }
    to { hueRotate: 360deg }
}
 
stackoverflow.com/q/31696164/871050 WHY IS THIS GETTING SO MANY UPVOTES?
 
9:47 AM
should work
@MadaraUchiha wow, it's a whole 3 upvotes!
 
@towc I like the thinking, but then he'll catch on pretty quick, I'll save that for the inevitable payback after the payback :)
 
@towc Yeah, for a "CODE DUMP! ERROR WITHOUT LINE NUMBER! WHY NOT WORKING PLS?"
 
@ivarni or set it to a ridiculous amount like 1000s, that way he can barely notice it happening
 
@ivarni Windows?
 
Yeah, we're all on windows
@towc Trying to locate that file now, no luck yet, is it in the install or saved in userdata?
 
9:51 AM
@ivarni Screenshot desktop, hide icons, hide start bar, flip screenshot, flip the screen (can be done with most graphic drivers), set flipped screenshot as background
 
@MadaraUchiha that's been done before here :)
 
If all worked out well, he should have a normal looking desktop, with the mouse moving in reverse
 
@ivarni was removed quite some time ago, didn't notice :/ superuser.com/questions/52967/…
 
C:\Users\<name>\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
I've still got the file there
 
@Cerbrus still, it doesn't get applied
 
9:52 AM
Sucks
 
I don't have that file, maybe it's just left over from before it was removed
 
still, you can install an extension and with enough luck he won't notice
 
love y'all
3
 
That's a possibility
 
9:53 AM
@towc Yeah, that's the original plan since everyone runs tampermonkey now after I crafted a userscript to help with logging into test-environments
 
@ivarni Totally not a set-up to prank them
 
@ivarni actually, there seems to be a flag that you can run to enable custom.css!
 
@Cerbrus The elaborate setups are the most fun ones
 
although simple things like clear-tape under the mouse can be fun too ofc
 
9:55 AM
Error code dump
@ivarni Hm, they don't fall for that any more, here
 
Not here either, so we're escalating
 
Tape on the battery, that could be an idea
 
remap keyboard and phyiscally swap keys are also fun
 

« first day (1747 days earlier)      last day (3196 days later) »