« first day (2246 days earlier)      last day (2704 days later) » 

9:01 AM
Is there currently a way to display only a part of iframe or display the whole and apply css to hide some parts? There are plenty of answers on the interenet but none still work nowadays.
 
cross domain issue
 
I find it really hard to switch, what should I do :/
 
Huge!!! ES6 modules are available in Safari Technology Preview!! Demo: https://plnkr.co/edit/be0bb3?p=preview Decription:… https://twitter.com/i/web/status/806954044577239040
 
user3119231
9:15 AM
@Asperger no.
 
user3119231
create a var e.g. var active; if mouse down/click on slider set active to true. if mouse up in window set active to false. if active === true move the slider with the mouse
 
user3119231
correct me if you dare :D
 
use let instead of var ?!
 
@BenFortune wow.. that's the last browser I suspected would be out with that
 
@FlyingGambit never use let
 
9:22 AM
@Neoares why not ?
 
not supported on all browsers
 
@Neoares browsers will catch up
I cant let browsers drag me down
 
I don't recommend to use experimental technology
 
@FlyingGambit That's quite the jump from SF9 to SF10...
 
err, let doesn't work well on firefox :|
 
9:26 AM
@KarelG I told him
 
currently i don't use let often. const is my default, then var if it has to be changed
 
it's funny because the "mdn let" page has more content in spanish than in english
and tells you that let expressions and let blocks are being removed from browsers
 
user3119231
@FlyingGambit 1:0 for team maurize
 
What else is not good to use in ECMA6 - string interpolation, class declarations, promises , lexical this , arrow functions, rest params , default params, inheritence through extends, spread operator ??
@Neoares really they going to be removed ?
 
> Soporte de expresiones let ha sido removido en Gecko 41 (bug 1023609).
 
9:30 AM
@Neoares "SyntaxError: missing ; before statement"
 
@ivarni Yes indeed, they trying to show that they are one of the major browsers and cannot back down
 
that means removed on Gecko 41 xD
also...
> La sintaxis del bloque y expresion let es no-estandar y sera deshechado en un futuro. ¡No deben ser usados! ver bug 1023609 y bug 1167029 para mas detalles.
 
@Neoares hmm only FF uses Gecko ?! I could be wrong
 
@FlyingGambit it seems like the block was a bug or something
 
@Neoares Google Translates "The block and expression expression syntax is non-standard and will be rejected in the future. They should not be used! See bug 1023609 and bug 1167029 for more details."
 
9:32 AM
block syntax and let expression is non-standard*
more like that
I think it was a bug or something, and they capped it
 
What else should I not use ?
 
that's all
 
phew thats a relief
 
that's the bug for the let expressions
and let blocks
that's the problem when you use experimental technology
it can be modified
 
@Neoares very weird, but a lesson learnt
They first try to break it then try to fix it
 
9:39 AM
@FilipDupanović i wasn't really sure what they meant by 'no dependencies', and they have no.. "module" on npm. it's like they are just using it.. well i don't know why :p
you know the script-loader looks good, i think i'll use that
 
user3119231
@FlyingGambit They first test it and if it's okay (and useful) they implement it
 
@Maurize The people who wrote ECMA 6 ?
 
user3119231
Every developer in the world
 
uhm
if i recall it right, ES6 does spec let
 
9:48 AM
@ndugger dis u?
 
well, is that not a spec ?
it's even in official release
 
it's in the spec
 
good luck/hf today @ssube
 
i don't understand that bug report, but it's from 2014... lidgaf
 
9:52 AM
@littlepootis well
 
friday + suspicious link = NO WAI
 
@littlepootis :,)
got me
 
I think let blocks are different to standard let...if you observe attached patch diff https://bugzilla.mozilla.org/attachment.cgi?id=8678365&action=diff some thing like this
` test("let ( x = 1, y = 2 ) ");` is removed
 
user3119231
@MadaraUchiha reproduced this scenario. Can totally agree
 
let, let-blocks, iirc, were a part of JavaScript 1.8 and were in Firefox since.. 2009?
They were incompatible with ES6 let so they were removed.
It was 1.7, 2006.
 
9:59 AM
ah it was incompatible
 
10:22 AM
@littlepootis you ruined a very nicely usable github subdomain
 
thank you :)
 
Hellou :)
 
@conan Welcome to the JavaScript chat! Please review the room 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.
 
@conan hell there
 
I need some advice on my code D: D:
 
10:25 AM
just ask, someone will help you
 
1 message moved to Trash can
@conan Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
1 message moved to Trash can
@conan Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
hmm how to post code in here :D
 
user3119231
Very interesting "Async/Await Arrive" hacks.mozilla.org/2016/12/asyncawait-arrive-in-firefox
 
@conan Read what she's telling you..
 
Ok so with this code `<ul>
<li th:each="order : ${orders}" th:text="${order.name}">user name</li>
</ul>`
 
10:32 AM
@conan you need a semi-colon at the end
 
@FlyingGambit ...
 
@BenFortune Just messing with him :P
@conan paste your entire code and hit Ctrl + K and Enter
 
In order.name I have <script>alert("hello");</script> but when I visit the page it is just <li><script>alert("hello");</script></li> it treats the javascript code as text.
I am trying to XSS my own Spring project (CyberSecurity Assignment)
 
What's that templating engine? There's a good chance it strips XSS too
 
Thymeleaf
but if it sanitized anything should I notice it in the output?
hmm there is something as th:utext I am going to try that out
 
10:41 AM
is that not a good case? that it prevents XSS ?
 
WORKS
yeees!!! =D
 
Trying to XSS a site by modifying the code of said site is a really weird attack
Like, why not put the payload right into the site if you can access the code?
 
also risky
if he forgets to revert the changes, then there is a potential attack vector
 
The assignment allows us to change to code a little bit to make XSS attacks possible. and I am 100 percent sure this was it since I only added once character to the code and now I can insert javascript code into the input fields.
@KarelG this Java Spring project is not going online :)
 
is the assignment not weird ?
the XSS attack is less difficult than modifying server's templates
ah well, at least you understand how it works
 
10:51 AM
Perhaps this specific assignment was a little backwards than the others since we now had to create the vunerability inside the code. but I think it even took me more time to find where it was sanitized now than if I were suppose to fix the problem.
If i wanted I could just have made a method to the controller which returns all active sessionIDs but that is not some kind of attack since the code then has the function to return them and only the attacker knows the path to it.
 
11:03 AM
@conan Java Spring? check if it's running on Tomcat that hasn't been secured, maybe you can even upload arbitrary JARs xD
 
one of the assignment that I got in my "development of secure software" course was to attack a server that runs C executable
 
@FilipDupanović uploading arbitrary JARs through a String input field would be something you dont see everyday :D
 
didn't know that C could be so vulnerable
 
I just realised I still gotta make this project vunerable to Session Prediction D:
 
but the hacking techniques are fun to learn
 
11:09 AM
@conan Tomcat provides an HTML interface where you can dynamically upload WARs tomcat.apache.org/tomcat-7.0-doc/…
the default settings are usually horrible, it listens to all interfaces and anyone can upload code to your machine and execute it
worth poking around the application server for a few minutes for extra points
 
I dont think this has all settings default as it is a pre-made project (small webshop) or who knows :), but I only need the session prediction and I should get max points :D
 
yummy, a paper tablet you can write on getremarkable.com, pretty damn expensive though
 
@FilipDupanović you know anything about Java spring sessions?
 
@FilipDupanović ah nice, the drawing boards I had as a kid are back :)
 
yeap, we're getting there! no hoverboards, but at least something is arriving
 
11:20 AM
 
no cloud support </3 :(!
 
> Estimated shipping of orders August 2017
Aw
Tempting
 
@conan I didn't do Spring in ages and I flushed all my recollections through hard drugs and meditation
Java was supposed to die out at some point and then someone at Google got the bright idea to build a platform on top of it >.>
 
Hard drugs and meditation go well together, I heard.
 
@FilipDupanović aw D: Is it even possible to understand Java spring code without hard drugs?
 
11:24 AM
I haven't touched a spring config file in 4 years
 
I have no idea how this session is made S: `@Scope(value = "session" , proxyMode = ScopedProxyMode.TARGET_CLASS)`
 
@conan no, not if the configs are written in XML and you need to share hits with the parser too
 
First, flip the monitor 90 degrees, then throw an exception in that method and look for clues in the stacktrace
 
@ivarni cw, or ccw?
 
I don't follow
 
11:28 AM
clockwise or counter-clockwise?
 
aaah
doesn't really matter
I'm just hinting to the fact that spring generates some really deep callstacks
 
@conan data is provided by the bound application container
 
@FilipDupanović wacom have something similar: wacom.com/en-us/products/smartpads/bamboo-spark
write on paper, saves it digitally
i saw it at a conference and it was v nice
 
I think Moleskine has something similar
 
aw moleskins are the nicest
i use them for sketching
with the wacom though, you have to pay per month to be able to get your artifacts as svg, otherwise they are only saved as png/jpg
 
11:32 AM
@FilipDupanović allright, I think I need to switch to `@SessionAttributes` to make Session prediction possible :)
 
~.~ dem Wacom computers with those fine screens
I watched a How It's Made show with a scrub doing 32x32px patterns for carpets on a $$$ machine and just said "FML"
 
rich house wives pay a lot for simple things :(
disclaimer, that may be too judgemental
 
btw, do you know if there are any differences between their new Intuous tablets (Comic, Art, et al)... looks like you only get different software packages
I saw them in the store the other day and I'd like to get one for my niece
 
nope! i haven't been following them really. i have an intuous CTH480 but it's still so useable
the ones i tried at the conference were just more sensitive, and more sensitive to smaller and quicker lines
as mine has problems with doing ellipses if i'm too quick
 
yeah, I did buy a low end Intuous once and regretted it; was only good for drawing red circles on screenshots
 
11:45 AM
haha exactly
 
the "not rich enough to buy cheap things" proverb applies to Wacom, or at least it did; I only ran into pro ones owned by graphic designers later on and they were the real deal
 
i just happened upon their stall and they were really promoting the spark
how old is your niece? if she is young i imagine that they would all suit her
 
she's 9, but loves to draw... this would force my sister to make an actual computer available to her
women are keeping women from tech, imo
 
any ideas when we can use async for babel -> es5?
 
@FilipDupanović well at 9 i can't imagine she'll be doing anything too technical that she'll notice the difference between high and low end wacoms, and the new range is still the same price as last seasons bamboos so i'd imagine the draw would be suitable
@FilipDupanović shame
i can imagine as parent you want to keep your kid from sitting in front of the pc all day though, or "glued to their phones" as people say
 
11:55 AM
she has a tablet which are just as poisonous, if not even more, all while being limited to YouTube and YouPorn, which makes it half as useful as I don't expect she's into masturbation yet
@SuperUberDuper mmm, I think you can use them today, you just can't use the generator transform for the runtime, but use the Promise polyfill
 
:p
 
(I think)
 
$ yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null
 
the terminal is dead Jim
 
@FilipDupanović nope its a benchmark on 8 core processor
 
12:00 PM
ohhh, I see, nifty!
 
I use it to test if my fan etc is working fine
just shared....
 
I have an Intel m5 and I just have to put my hand at a particular spot and attune my senses, become one with the chasis
I'm sure I can tell you the CPU load with a ~0.1 error
I can't believe they're putting these into MacBooks... don't buy them :D!
 
putting what
 
12:20 PM
Intel m3 and m5 CPUs
 
 
the extended battery life is offset by the time you spend idling until your machine recovers
 
12:46 PM
Hello,
I have a facebook Application, Connected with SDK: JavaScript on my host. I want to add sent to message action with hide pop-up dialog box when sent messages.
 
Does anyone know how to make a table take the entire width of the container in bootstrap ? I dont want to use custom css
 
1:00 PM
did you try width="100%"?
or right, width/height got deprecated
use a fluid container then
 
hello
I saw this garbage block:
l = gm[i] || (gm[i] = gn[i]) || (gm[i] = {
                    group: i,
                    size: 0,
                    nodes: []
                });
what did the author wanted to achieve?
 
@FlyingGambit how about col-lg/md/sm/xs-12?
 
it is then accessing l.nodes so it should not be boolean
but it is asking for gm afterwards which should be an array.
 
@Loktar @FlorianMargaine @rlemon youtube.com/watch?v=CVvx-01DlSU
 
@Vlad it's getting a value, if it's undefined it sets that value then returns it, if that second getter is undefined, it sets the first value to some default and returns it
from that, l and gm[i] will always be the same value
 
1:09 PM
@KendallFrey oshit I forgot! @Loktar @rlemon @KendallFrey get it down down down~!
 
@bitten yes thought so, thanks!
 
i can't think of a use case for it though
gm[i] = gn[i] || { .. } then l = gm[i]
way easier to read
 
@FlorianMargaine @Loktar @KendallFrey I got this you got this my friend is by my side
 
"Filesystem API: 95% of usage turns out to be incognito detection" via https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/CT_eDVIdJv0
For some reason, I don't find that surprising at all...
 
1:32 PM
@SankarRaj Bootstrap grid system super suxx
 
@FlyingGambit IMHO, Bootstrap doesn't save you time but gives a motherload of globals you get to fix yourself. I see no reason for using it...
 
@SvenvandeScheur Thats exactly how I feel but the management thinks it will hellp faster development, responsive layout, less bugs :C
 
Bootstrap: Bugs As A Service (BAAS)
6
 
XD
What about Foundation ?
 
meh, not a big fan of it
 
1:36 PM
I heard good things about it
If compelled enough I might make my own noob Grid system framework
 
jQuery UI is good, you should look into that
 
I just don't like things that go "BOOM" everything looks nice now, I only want style to be affected after an explicit request. I also dislike systems that apply any styling outside the border-box of a re-usable component.
NO jQUERY UI :(
 
jQuery UI is the best UI
scientifically proven
 
react-toolbox.com is ok if you use React
 
looks nice indee,d havn't touched it yet
 
1:39 PM
Not a fan of Jquery UI or Jquery , however React sounds good
 
you're only letting yourself down
 
The back panel of a VHS recorder looks better than jQuery UI.
4
 
nahh, jQuery UI + jQuery Mobile == love
 
Welcome to 1998
 
its still not ===
 
1:42 PM
=== is lame, == ftw
 
IS NOT
 
We need to get rid of all this bloatsome frameworks and bring in a framework that everybody would love
 
xkcd standrars
too late
 
1:44 PM
connorspiracies?
 
old joke
room topic changed to JavaScript: Topic: JavaScript, ECMAScript. Read this: javascriptroom.github.io/rules. Before asking inform yourself on the XY problem goo.gl/taIqf | devdocs.io Documentation™ Helps. Room meta discussions: github.com/JavaScriptRoom/culture [ecmascript] [ecmascript-6] [javascript] [nodejs] [typescript]
 
i see
 
How do you change it ? I wanna put my name there
Flying Javascript
 
you need secret powers
 
or I need to feed you cookies
 
1:47 PM
super cow powers
 
I don't like cookies
 
Use localStorage then
 
milky biscuits ?
btw is indexedDB used ?
 
For what?
 
indexed DB for storing stuffs ? anyone using it ?
 
1:50 PM
I might
 
indexedDB was DB for browsers? Better use localStorage and localSession. I think not all browsers support it
 
Usually will use something like localForage for it. localforage.github.io/localForage
I think it wraps IndexedDB
 
@Vlad But then that would mean a limitation of 10mb
 
store everything in cookies
 
Noooo, not cookies :)
its old
 
1:52 PM
And transfer 10MB on each request;)?
 
@SvenvandeScheur looks neat but would still prefer something native/browser thing
@Vlad me agrees
 
Use SQLite then
 
In the browser?
 
@Vlad aha yes , I always keep that as my fallback option
 
I think there are drivers for it
 
1:54 PM
prompt the client to save a XML file and load it back in
 
what is your server side? PHP?
 
future proof
 
@Vlad asking me
 
@FlyingGambit you asked for Indexed DB, right? Yes you :)
 
@Vlad I was talking in general because I was asked by an interviewer to store things in localStorage and load the data back after refresh, thus maintaing state. but I was wondering if indexDB would have been the right solution here as the data can keep on growing with time. Its all client side
 
1:57 PM
@Flying, it depends
 
@SvenvandeScheur on what ?
 
IndexeDDB is more complicated, an if you're just writing a limited amount of variables to to it it'll work fine.
L
Limited as in a fixed amount
 
@FlyingGambit localStorage is best for keeping small amounts of data after closing the browser. If the data keeps growing then either the app is badly designed or it should use persistent storage like database
 
If at each request stuff starts to grow you eventually might hit that 5MB limit.
 
@FlyingGambit but I always think you could reset this data t some point.
 
1:59 PM
@SvenvandeScheur I am not making any ajax call here, think of a system with no internet connection.
 
Did i mentioned requests?
 

« first day (2246 days earlier)      last day (2704 days later) »