« first day (2323 days earlier)      last day (2624 days later) » 

1:00 PM
NO
it's not work
 
no u
 
you have a div with id bottom?
 
yes
<div id="bottom" class="row" style="margin-bottom:70px"></div>
 
window.location.hash = 'bottom';
 
@rlemon not work
 
1:01 PM
but it does. you just need to try harder
 
it must work
I tried
 
can you send me a example
 
hey
 
open your website
press f12
go to console
 
and write this:
window.location.hash = 'bottom';
and enter - did it scroll?
 
that's you freebee
next one will cost ya
 
@rlemon do I also get a freebee? o_o
 
all yours
 
is it for me? _
*_*
 
1:05 PM
that hash must perform a sorta # + info
 
bottom is the info
 
so window.location.hash = 'bottom' becomes #bottom -> jump to element with that id ?
// checks mdn
 
it used to be named anchors. now ids work too
which is super handy if you ask me
 
true
 
oh, it work in browser
but, i am use webview in android
 
1:12 PM
So?
It's a browser.
 
but not work
in my application i have a webview
and not work scroll page
 
A webview is literally just a browser, but embedded.
 
My problem solved!!
thanks all
 
@rlemon WTH, then u tell people not to mention you...
 
1:18 PM
why you mentioning me?
 
nice dog
 
it's a cat
 
no its cow actually
 
you calling my cat fat?
 
a flying cow more precisely...
 
1:20 PM
rude
 
excuse moa
 
user2015064
I need help with this.
 
@xersi 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.
 
user2015064
Is there anyone who can review my first website? It should be quick.
 
yes what's the URL?
 
user2015064
cse500-mariastayer.c9users.io/Web Development/Favorite Japanese Food/index.html
 
user2015064
It is a long URL there.
 
do I need a cloud9 account to view that?
good god, it started snowing again. fuck off, I don't want any snow anymore :/
 
flying gambit uses zetta for the hosting
 
user2015064
My link was truncated.
 
user2015064
 
user2015064
Here is the link to my website.
 
@OliverSalzburg No. First file will be upload 100% on the tmp directory, then only PHP code will start executing.
 
yeah, you'd need a cloud9 account
 
@GNi33 Isnt snow good ? I wish I was there, never seen snow
 
I think gambit's website redirected me to rebecca's video black friday
 
1:25 PM
@FlyingGambit where are you from again?
 
Lanka
 
@jacobian you obviously have malware on your pc then
 
@Tarun No
 
I use ubuntu. I don't have malware
2
 
that's not how this works, but okay ;)
 
1:26 PM
@jacobian LOL
 
@jacobian Isn't that an oxymoron?
 
heh
 
any one here knows what is the usage of closures ?
 
@OliverSalzburg Why, AFAIK, If you are submitting a form, first form content(including file) will be transferred to server and then only PHP code will start executing.
 
@ofskyMohsen 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.
 
1:26 PM
@ofskyMohsen Yes
 
@FlyingGambit it depends, I'm not a big fan of snow anymore though
 
@oliver a simple example ?
 
@Tarun I'm pretty sure the existence of PHP code didn't matter when engineers designed the way events work in JS
7167
Q: How do JavaScript closures work?

e-satisHow would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves? I have seen the Scheme example given on Wikipedia, but unfortunately it did not help.

 
@GNi33 Please blow away a truck load my way
 
user2015064
I hosted my website somewhere.
 
user2015064
1:28 PM
Can you view it?
 
@xersi Yes, it's awesome
 
@FlyingGambit I'll give it a try
 
where do one learn to create wordpress theme?
 
Congrats on a job well done
@jacobian Google
 
I think I should just download nulled themes for wordpress
 
user2015064
1:29 PM
Thank you, is it a good start?
 
@xersi Glorious start!
 
@xersi I don't like your choice of font
 
i've seen worse
 
user2015064
What font will you be suggesting?
 
thank you Oliver but what is the benefit of using closures ?
 
1:32 PM
@xersi wingdings
 
user2015064
I am using Tahoma font for the web.
 
@xersi "Roboto", "Helvetica Neue", Helvetica, Arial
 
I can write a program without using closures
 
@ofskyMohsen Great
I doubt you have consumed all the content from the question I posted
And I doubt I could come up with anything that would improve upon that content
 
user2015064
1:34 PM
I used Verdana font too.
 
Once you have functions that return functions that return functions that return functions that return functions, you might start to see benefits in closures
 
user2015064
Roboto font really makes my website look neater!
 
try Lobster
 
user2015064
The web is the same. Why?
 
1:36 PM
@javadaskari make your inputfield css=> bottom:0px; position:fixed;
something like that
Lobster is like comic sans
 
user2015064
Alright thanks :D I am going to create a forum next so do you think I could do it with my current skills?
 
no.
 
user2015064
Why?
 
oh that wasn't to you - it was for rlemon
where is your website?
 
everywhere
 
1:38 PM
why?
 
@xersi If you have to ask, no
 
user2015064
This is my website.
 
hahah
if thats your website: no.
 
I take everything back. it looks bad
but it's at least a start
 
1:40 PM
I have an another project request. Client complaints that his site is vulnerable for XSS attacks. Users could enter XSS in their forms and that doesn't get sanitized. However, at the client side (they use jsp pages), they have <c:out value="${someVar}" escapeXml="false" /> for everything that they want to display
 
nope out
 
yet the default value for escapeXml is true. I'm gonna call them for a reason
 
user2015064
Now I know making a forum is even more harder that I could imagine. I thought I could just make one instantly.
 
@xersi this is my first website:
 
1:42 PM
and I want to connect it with the domain crowdselfie.com - but have no idea why it doesnt work. someone any ideas?
got cname from heroku - no servernames
 
user2015064
@PomeGranate You coded your website all by yourself?? Or you did it with someone else?
 
oh its friday!!!
@xersi by myself lol xD
but used a tones of libraries and frameworks
 
ascii.rlemon.ca is my site
takes a while to load tho
 
like 3s
 
user2015064
Don't tell me you also created the Earth by yourself. You are beyond incredible!!
 
1:45 PM
> function scaner
 
@rlemon that was cool
 
@BenFortune yea. what of it?
 
> scaner
 
user2015064
@rlemon Your website did not load.
 
@xersi that's a shame
 
1:46 PM
@xersi I created the earth by myself with three.js and than saw heey there is also a framework for that => google web earth and than used that, because it works out of the box and you can visualize data on it
here my old cv, but you'll need a QR reader
I have to re do it
 
@PomeGranate -1 from me, breaks the natural scroll.
 
@BenFortune true - its beta beta hehe
if someone wants to login for crowdselfie:
test@test.ch
testtest

https://crowdselfie.herokuapp.com/login
 
I should redo rlemon.ca
 
I wanna do it using native canvas, but hex grids are hard and I can't math.
 
1:49 PM
lol
 
@BenFortune with what is it now?
 
Can't remember, createjs I think
 
ah cool.. flash used that for flash=>html
 
That was my first attempt ages ago
 
@javadaskari I think stackoverflow chat gets this right look how they did it
 
1:50 PM
@PomeGranate What? No lol
 
although all I know is it works on the iPhone
 
user2015064
@PomeGranate Somehow I thought your choice of font is not good.
 
@BenFortune yes they do - when you start a new html project in flash cs6 or what ever and export it, it is with createJS
@xersi for the CV?
 
user2015064
Your text does not look good.
 
user2015064
 
user2015064
The text should be clear and it is too thin.
 
Ugh, flash
@GNi33 I had this bookmarked, amazing article
It's what helped me with,
3 mins ago, by Ben Fortune
http://codepen.io/xbenjii/pen/dojWzM
 
yep, he does a good job explaining the basics
 
user2015064
Anyways,
 
user2015064
I could not create a forum, but will it help me in the long run if I give it a try???
 
1:54 PM
yes
 
I should redo nickdugger.com
 
Flash was the cooolst thing ever
I was in love and lost maybe 5years of experience
haha:
 
user2015064
Can I rely on Javascript and HTML alone? Which language should I learn if I want to create a more complex website?
 
1 message moved to Trash can
@Mathematics Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
javascript + a little html and css and than learn to use frameworks!
 
1:57 PM
I want this script to execute as fast as possible
where should I put it ?
on top of masterpage ? just after doctype tag ?
<script type="text/javascript">
    var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
  // create css tag
</script>
 
bootstrap and foundation and so on
 
Ew no
 
or no.
 
bootstrap is amazing
 
i love materialize
 
1:58 PM
css frameworks are the most garbagey thing ever
 
sorry, i am a minimalist
 
user2015064
I saw many websites use parameters after "?" like www.google.com?key=123
I wonder how they extract these parameters from the URL?
 
s/f.*re/is/
 
@littlepootis reactJs + bootstrap
 
@xersi like my old page: choix.me/?old=1
 
1:59 PM
I don't think I'll ever work on something that'll need react
 
zero lines of css were used
 
bootstrap 3 sucks, bootstrap 4 awesome
 
yeah
it doesn't really suck
 
I use everyday, I curse it everyday
boostrap 3 = bugs for free
 
Is there a name for this particular calculation for a convertion from angle to radians?
Math.PI / 180
 
2:01 PM
Dec 9 '16 at 13:35, by Sven van de Scheur
Bootstrap: Bugs As A Service (BAAS)
 
I want to save this in a variable but I have no idea what to name it
 
@Asperger a name?
 
wtf ^
 
@littlepootis yep XD
 
angleToRadian?
 
2:02 PM
^--
 
there is no formal name for the equation
 
there is
 
it's just deg to rads
 
EQUATOR
 
ok good to know
 
2:03 PM
yeah, degrees to radians..
 
So I dont need the * angle for it to be a conversion
 
how the scrolling of this chat works? it only scrolls if you're at the bottom?
 
good good
 
@Asperger you can do it either way
 
user2015064
So in the end does my website suck or something? Is it really terrible?
 
2:04 PM
Maths is all about subtraction and addition
 
I've seen terrible-r websites.
 
@xersi yes, is pretty 90's but the images are interesting
 
He means to say that he has seen so many worse web sites, that your website does not matter to him
 
if you worked a bit with css3 and perhaps look around for some examples of modern websites you could improve it a lot
 
2:05 PM
is there a way to follow XHR which is performed in another (external) function ? (want to wrap additional callback on it)
 
@KarelG Fetch API?
 
@xersi how old are you and what have you learned/studied?
 
Is there some caveat where React doesn't like multi elemented arrays?
 
// like
myfunction() {
   ...
   doShizzle(); // external function that performs xhr (in a minified file)
   // perform callback on doShizzle
   ...

}
 
Like an array with numbers, strings and objects...
 
2:08 PM
not sure if using promises would work
 
I think it would
 
I'm getting an error at this
{[ [{isKey: true, content: "Itally"}, "default", "random", "text"], .... ]}
 
@KarelG unless doShizzle returns a promise.. don't see how this is possible.
not unless you override or hook to the xhr itself.
 
it's a mess
client doesn't have original code ... only this minified one. Gotcha decipher it then
 
2:24 PM
how do you debug in dev tools if you're coding with react and babel?
I can't exactly understand that mesh of code that is transpiled by babel...
Thus I can't add breakpoints in my code
 
Is there a better term for just webapplication?
 
@BenFortune that only lets me look at the DOM, not the js.
 
Use sourcemaps
 
my advice is to learn to work without sourcemaps
they are shit
it's not hard
 
2:39 PM
Sure, you should be able to work without, but why not use them. It's only due to varying browser support we need to transpile at all..
 
@BenFortune how?
why does react render whitespace between elements and why does that fuck everything up?
 
Have you checked the docs for babel and/or webpack on that topic first? You aren't the first one to want sourcemaps.
 
just test the original js file ...
 
I have never had whitespace be an issue in react except in strings, since it doesn't work with long html strings, but instead uses the DOM to make/alter elements..
Example?
 
I'm not sure how to reproduce this... I don't know what's causing it exactly.
But in react dev tools it shows like this
 
2:43 PM
ok. lemme see the code for that <td>
 
1 message moved to Trash can
@Thaenor Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@Luggage they don't work well (understatement)
 
^ got my car last night
now I'd rather be out driving
 
gangsta
 
thought I'd miss my truck but I actually don't too much lol
 
2:51 PM
@Loktar nice, is this a chrysler?
 
yeah Chrysler 300s
 
nice, hope you'll have a lot of fun with it
If I'd live in the US I'd probably get a Charger for myself
 
old man car.
 
lol whatever it's not an old man car :p
 
yea it is.
 
2:53 PM
@GNi33 yeah eventually I'll get a sports car for the summer
but I need awd for winter
 
haha
 
or at least front wheel drive
 
It's actually ridiculous how cheap cars are over there
 
rwd is shit in the snow though
 
oh yeah, that's right
 
2:54 PM
it's fine with the right tires / rear-end
i've had RWD cars better than some of my FWD cars
But yea.. AWD can't be beat.
My mustang with all-seasons and a limited slip did much better in the snow than my Sentra SE-R with summer tires and a front locking diff
 
I've had bad luck with RWD in the winter.. but it's been trucks
had to load the back with sand
even then still sucked
 
Yea.. I'm not so much saying RWD is good.. but more that FWD is not a magic get-out-of-snow card, either.
 
yeah for sure
 
AWD is so common in cars now, that it's a logical choice..
 
yeah just sucks I couldnt get AWD with the hemi :(
 
2:57 PM
Yea. Old man car. :)
 
lol
 
It's ok, mine is too. Another v6 AWD sedan
with a slushbox
1 less gear. I only have 7. :)
and 2 reverse
 
I'm not even a car guy really, I just get excited by all the random features
 
like?
 

« first day (2323 days earlier)      last day (2624 days later) »