« first day (2480 days earlier)      last day (2693 days later) » 

00:01
i am now tempted to open a burger restaurant
with that name :P
I made a bonsai pot today
it's been like 20+ years since I've played with clay
@rlemon SterlingArcher is afk: drunk
wow tom araya looks old with that beard
he's petty old
kerry king hasnt aged at all lol
yeah, slayer would be something like 35 years old or something
00:19
i used to play this on guitar hero
i used to play it on guitar
poorly, and slowly
thats pretty cool
i could only do that song on hard difficulty
anyone tried project 333?
dressing yourself with only 33 items for 3 months
that's excluding underwear and single purpose clothing like gym wear or sleep wear
wow
@derp That's, like, 3 days per item. I could do that no problem.
00:29
let me count
uhhh i think you're meant to wash the clothes eventually
excluding my cycling clothes, I think I wear ~12 things
but the goal is to have less but higher quality stuff
Oh you mean total items of clothing
HAHAHAH
it'll be a challenge in itself wearing 33 items of clothing everyday
00:30
I thought that was 33 sets of clothing
nah, 33 items in total
four work polo shirts, one pair work pants. two pairs of shorts at the weekends, one pair nice pants, one pair jeans. 2 weekend shirts. 1 hoodie.
for example, a watch is an item, a shirt is an item, a set of shoes is an item
That would be even easier
00:31
I probably do that already
okay closer to 20 if I include watches, sunglasses and shoes
i have thongs and work shoes
and if you buy a new item of clothing, you have to think about what in your wardrobe you want to replace
i have a lot of old, black metal tshirts
What, so you can just replace anything at any time?
That's ridiculously easy
i hope u mean thongs as in sandles
00:33
but mostly I dont have many clothes. i live in a 3 bedroom townhouse. the master bedroom has a walk in wardrobe, then there are two wardrobes in the two other bedrooms. I use half of one of the bedrooms. My girlfriend uses the whole walk in, the whole of the other bedroom too
@RachelDockter yes
@RachelDockter he had a typo, he meant work thongs and shoes
xD
lol
pink and lacy
gotta impress those clients
backend and frontend "development"
lol!
00:36
though being in brisbane, at least you wont freeze to death lol
I had to put the a/c on in the car on Sunday. I left it in the sun for 30 minutes.
once it was cool I shut the horrible thing off though
didn't mythbusters do a test where leaving the AC on was more energy efficient than having the windows open?
ah shit i guess i'm wrong
that'll teach me for not having references
i hate air conditioning
00:40
why's that?
@derp what energy would having your windows open use over ac?
@RachelDockter wind drag
ah
thats intresting
@derp because one acclimatises to the temp and then going outside can become unbearable. it's such a waste of energy too.
there are places a/c is necessary, here is not one of them. if we focused on building with the correct insulation and materials for the climate we wouldnt need it.
I could rant all day about these things
hey i'm bored and have no work to do...so go ahead
00:42
lol
gotta go to woolies now
but yeah, proper building design goes a looong way
spend money at the ruiner of small grocery businesses ;(
which is more efficient, one truck to supply one supermarket or many trucks to supply many small markets?
xD
jks
anyone know how to inject javascript from an express route
Inject JavaScript?
00:45
something something middlewear?
let say you are on a route /home and on that route you want to do something like document.querySelectAll etc...
middleware is fine
Oh, well, use views for that
ya, well I want to do it from server, not the view
app.get('/myhome',(req,res)=>{ secret sauce for injecting javascript })
if i had to guess (and i am), on the route, i would use something to parse the dom and inject my script
errr hmm
Then I don't understand what you meant when you said you wanted to wanted to querySelectorAll on an express route
00:49
in the example, he/she is using cheerio to parse the body before appending a paragraph
before sending it
you could use that to append a script to append to the head
but this seems expensive and unneccessary if you control the html anyway
hi Guys! o/
I wanted to use ajax post without sending any data but will receive data on it. is it possible?
cool, but is cherro necessary?
how would you know where in the html to append your script?
@EarvinNillCastillo yes
vanillajs
00:52
what i am going to do is use ajax post for retrieveing data on db using php then will append the data to textarea
but there's no document object before you parse it
its just a string
or whatever it is
(i'm totally guessing)
document.ready?
is that what you are trying to say?
nah, we're talking about injecting a script on a route in express/node
@Arrow why are you doing this, if I may ask?
@EarvinNillCastillo
00:54
@derp ay sorry
no need to apologise :)
To see if I can, I hate going between client js and server, it is hell
@arrow it would be more efficient though, because with the way i'm suggesting, you're going to parse the html...the html that you have defined yourself in the view
@derp unless I put the js at the end of the HTML
00:58
i dunno there's something hacky about regexing the </html> tag and injecting a string
ya you guys are right, dam it!!!!!
also these guys are such trolls
http://vanilla-js.com/
hurray another believer!
good morning lovelies
'ello g'vna
lol, first time I saw that site, i was trying to download the files lol
always empty
01:00
i went from "huh i didn't know it was an actual framework" to "oh wait..."
ya that troll permanently scarred me, will never use jquery again because of that site.
lol
i use jquery because some of our projects use devexpress's devextreme controls and they rely on jquery
but if i do anything myself, or start a project, it's jquery free. after reading that you dont need jquery site I was like omg I dont need jquery
it's all a lie
i don't use jquery because i only entered web dev seriously about a year or two ago
so i somehow managed to miss jquery
i use it because they showed it to me at uni in 2008
and when i left winforms and came to web dev i stuck with what i knew
01:08
Plebs. I rewrote jquery
why
oh ok
does Australia get Rick and Morty before the USA
01:13
is it on netflix?
usually we do, like House of Cards and Orange is the New Black - they land at 6pm on Friday here, then as the globe spins others get them at their 6pm
I don't know
omg you guys do get it early
it's not really early
umm, ya it premieres at 11:00 pm in the USA
when does it premiere here?
I take that back
that's more of a triangle wave
@hsimah 31st or today, I think it's the same time all around the world.
today is the 31st :P
not for me, it's still the
30th
02:13
As a programmer, do I really need to normalize database?
as a programmer you can do whatever you want
anyone around?
02:46
is x(v=>1) as good as x(function(v){return 1})
define good?
what are the notations' differences
the former might need transpilation but is more succint and might even be more performant
ook then...
the later does not need transpilation but will create a new execution context
are you using this code in browser or in node?
02:54
I just wanted to know whether using lambda functions as callbacks had any performance drawbacks. I'm using node.
no performance drawbacks, it might even be faster
getting error like these: Cannot read property 'join' of null
when i return a string query where col is null from ajax functionp
your thing is null xD
yea and i don't know why it is returning null!
@Tobiq It depends on engine optimisations. It was slower in early days. Now sure now. I suggest you don't keep these small pref variations in mind - your algorithm is more important.
03:02
when I tried to return id no which is int, it works but when i return string from query, it says join of null
@EarvinNillCastillo Can you provide some relevant code?
are you making an async call and not quite understanding what that means?
oh interesting
03:22
	$(document).ready(function(){
		  $.ajax({
      type: "POST",
      url: 'insert_id.php',
      dataType: 'json',
        success: function(data){
          // alert(data);
          $("#txtarr").val(data.join("\n"))

          // $("#itefname").val("");
          // $("#descname").val("");
          // $("#price").val("");

        }
    });
	})
$id=array();

$result = $mysqli->query('Select * from masterdata where fdDate_Resigned IS NULL');
$count=0;
while($row=$result->fetch_array()){
	$id[$count]=$row['fcEmpFName'];

	$count++;
}

echo json_encode($id);
php is the insert_id.php
@EarvinNillCastillo What do you get when you do console.log( data )?
null
which @derp already said
the problem is in the query but when i queried it on mysqlworks 100%
Have you checked the actual response in the Network tab?
no preview response
03:43
@EarvinNillCastillo You mean, when you click on the ajax request in the network tab, the response is empty?
yes checked the query and no result. kinda weird, works when int type but string type isn't
04:03
maybe you'll need to do a null check and change your html based on that
i mean its ugly
but hey it could be null in your database
null in query in db. i guess need to fix my php code
oh btw @EarvinNillCastillo are any of the fields in your queries controlled by users?
you definitely want to sanitise those inputs
for example if your user sets fdDate_Resigned to be ""; drop table users; select * from masterdata where id "
that would be a bad day
guys what do i do when i know im not thinking enough but cant go back to the point where i was supposed to have that thought. how do i manage to get that thought into the process after i go past the point where im supposed to have that thought
i mean while learning something
i dont know if i dont have the motivation or the brain power
embrace that feeling because it means you're learning
yeah but thinking and focusing hurts.. does it hurt for others too
04:19
sounds like you need to go take a break and go for a walk outside :)
hm
programming and learning go hand in hand together for a lifelong journey...don't forget to have fun along the way :)
yeah.. i think im finally get back to being myself
getting*
thanks to prozac
anyone good at collision detection?
04:34
that's maths :)
ive done it before but tbh i heavily rely on libraries to do it for me
I can usually tell when i've walked into something
@tobiq your mom knows collision detection
And your mum knows how to gag
@david Teach me, master?
04:53
@Loktar So pretty...
damn those are pretty
@Loktar :))))))
there are two davids now
there's no david. only zuul.
clearly you two have to duel to the death
05:01
@monners teach you what?
and @hsimah you have your famous person to challenge to a duel for your name xD
only one can be hsimah...the other shall be forced to have the disgrace of hsimah2
yes
A K
A K
random node thingy, but i need to export multiple functions
Ugh, I guess that went to the wrong one
@AK what's stopping you? you can export multiple functions but only one default function per file
at least that's my understanding
A K
A K
05:03
do i have to use module.exports?
isn't there a cleaner way?
@AK put your functions into a folder have two files, have the function exports in one, and reference the one with the function in a required in the second file
OH commonjs...my bad, i was talking about es6 modules
A K
A K
commonjs
i should have been more clearer
oh i finally got a job offer guys
i've seen module.exports exporting an object with the functions inside them
congrats!
A K
A K
i know about module.exports; but i was wondering if commonjs added something new that i missed or forgot
hmm maybe ill add es6
05:06
function a(){}
function b(){}
export.modules = {
a:a,
b:b
}
how much they paying you
A K
A K
110k
that's usd right?
A K
A K
yea
cool, that is good. you did well.
05:07
nice
A K
A K
i know, it was hard; had to do multiple on-sites
they're mostly a python/java shop and i'm more js
that's a good sign though
A K
A K
and it was constant reminder that i'm not strictly js
because it means that the people you work with also went through that
A K
A K
my role would be building tools and automation
05:08
excited?
A K
A K
i'm planning on using typescript and node to build clis
hell yea
my friend who works at google is trying to build typescript complier so that all of google will switch from js to typescript
the compiler is slow as shit, it takes 2.9 seconds to compile a hello world app
1) emailing donald knuth with the problem
2) receiving proof of correctness
3) parsing proof
4) compiled!
I hate how Google is trying to beef up typescript, they should be putting those efforts into javascript
a few years later, the new features will probably make their way into javascript
A K
A K
well there's a team working on it while other teams or furthering javasccript
05:12
The good ideas will trickle down
Would certainly be interesting to have native type safety, but we're a looooooong way off that
that would break a LOT of code lol
A K
A K
i dont know if i'm wording this correctly; but according to him; when ts compiles to js, js doesn't know a lot of types
@derp it'd be opt in
Would have to be
use types
hmm fair nuff
05:14
or just based on the presence of an annotation
there's only 6 types in js ( i just googled)
Falling back would be a bitch though.
foo: boolean // `foo` is definitely a boolean
no wait, that's an old post, should be 7 now
Otherwise nope
05:15
Boolean
Null
Undefined
Number
String
Symbol (new in ECMAScript 6)
Object
A K
A K
since i'm building cli's with node, i'm wondering if babel is the proper way to go or straight up commonjs
05:30
morning room
\o morning
05:52
ive been seeing json in ajax function, what is the purpose of it?
o/
@EarvinNillCastillo your ajax function is returning json?
ive saw one before with json on it when i return i use json_encode
but what is really the purpose of json? im hard to understand it on google
its the defacto data transfer mechanism for the web
historically we started off using xml and big enterprise (shit) grade SOA systems
and we sent around SOAP messages with highly enforced schemas to ensure we weren't sending the Wrong messages
eventually we realised that we didn't need to hate ourselves
and hence nowadays we use a much lighter data transfer mechanism...JSON
i remember setting up a soap service
i was so confused as to why it was so bloody brittle
06:03
because if it was simple, you'll put like three guys out of work
most of them with the word "architect" in their job titles
uhhhh i should be less bitter
i think i remember soap messages back in collage
college
*
we did have two system architects and one technical architect at that job
what's the diff of system architects
have they been replaced with 50 lines of node code?
no, they're all still there
I left
06:07
speaking of hating yourself, i find it ironic that one of the advancements in REST based interfaces is HATEOAS
im...sceptical but totally open to be convinced either way
i love powershell
it's so useful to write c# console applications as powershell cmdlets and run them
im going home now
gnite, ride safe
@derp And now with GraphQL we've come full-circle!
@monners, i know embarrasingly little about graphQL
Ditto. Been playing around with it a bit in my spare time
06:10
my understanding of it is that its like an SQL interface for an API?
but there's not like an XSD level of enforcement on request/response messages...right?
Basically a way of standardizing requests so that you're not writing queries against whatever db tech your platform's using, and instead querying against a predefined set of query types, but that may be oversimplifying it. Like I said, only just started playing around with it
The request types have strict enforcement
oh but the requester defines those right?
well looks like i've got some learning to do
06:28
Holla!
@derp still, xml is useful (eg to make webcrawlers difficult to dig in your massive dataset because of having a self-made SEO strategy)
eh, LOD is described in a variant of XML
@karelG hmm that smells suspiciously like security by obscurity :/
not that there's anything wrong with that in a purely pragmatic sense
06:52
@rlemon Are you referring to that one time where chat displayed a super scary TLS warning?
Doom 3 for just 1.15 on Bundlestars atm
isn't every tls warning suppeer scary
@MadaraUchiha <------ (hides under the desk) (i mean me)
IIRC, what happened is that some sod posted a shady link, and it got broadcasted across all of the users via the websocket, and chrome detected it and shut it down
@MadaraUchiha kamil put an image from a site that got blacklisted by google
06:54
@KarelG Figured
but I didn't got that warning though (I'm using chrome at work)
me neither
@KarelG Your browser hates you
@KamilSolecki And you too
@KarelG That probably means your company is MITMing you
Just sayin'
Check your certificate chain
btw, either I'm really retarded or this has nothing to do with JS/ JQuery:
0
Q: Button Popup by jquery and value to text box by C#

user8375769my button pop up is working fine but when i press the grid value then it should be on particular text box.but its not working.sample code given below protected void g1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e....

@KamilSolecki You being retarded has nothing to do with it
06:58
@MadaraUchiha Ily2 <3
PSA: Game of Thrones spoilers will not be tolerated in this room. Please wait at least a week from an airing to discuss the episode here.
11
my company isn't MITM'ing me lol
google's blacklist is region specific btw
That's fair
google china has a much larger blacklist <.<

« first day (2480 days earlier)      last day (2693 days later) »