« first day (2485 days earlier)      last day (2688 days later) » 
00:00 - 15:0015:00 - 00:00

00:24
I didn't say C was the only one, just the most well known language to compile into assembly
Technically all languages eventually compile into assembly in one way or another, but C directly translates the code into assembly commands one level deep. Where basic languages might compile into C and then into assembly. This is my understanding of it anyways.
@JosephAstrahan Golang and Common Lisp also directly translate the code into assembly.
Good to know :). I have not heard of those ones yet @FlorianMargaine
CL-USER> (defun foo ()
	   (print "foo"))
FOO
CL-USER> (disassemble #'foo)
; disassembly for FOO
; Size: 33 bytes. Origin: #x1002DBC03C
; 3C:       498B4C2460       MOV RCX, [R12+96]                ; thread.binding-stack-pointer
                                                              ; no-arg-parsing entry point
; 41:       48894DF8         MOV [RBP-8], RCX
; 45:       488B15A4FFFFFF   MOV RDX, [RIP-92]                ; "foo"
; 4C:       B902000000       MOV ECX, 2
; 51:       FF7508           PUSH QWORD PTR [RBP+8]
Where are Golang and Common Lisp used?
@JosephAstrahan Common Lisp is not super common
Golang, on the other hand...
dunno, everywhere?
00:30
Interesting, I'm familiar with many languages, Java, PHP, Ruby, Python, C, C++, C#, even some older ones, Pascal, Basic, (Scripting languages like javascript, html, css etc...). Have not heard of Golang yet.
What projects use Golang that are big out there right now?
just curious
Google uses it, Fastly uses it, Dropbox uses it, most major companies use it somewhere, lots of engineering companies too... it's at the same level as, say, Python, for popularity
@JosephAstrahan docker?
Ah I'm very familiar with docker actually
Interesting, that they use it there.
Maybe its a newer language?
docker is 100% go
@JosephAstrahan ish
Cool, I'll have to look into it later then :), always like learning new languages.
Thanks for sharing.
it's like 10 years old?
user924016
00:43
it's great imo
03:58
Does anyone know of a good tutorial for setting up a single point of entry, or MVC type pattern, for a PHP application?
04:41
Morning!
o/
morning room
@Alesana look for no framework tutorial..
@Linus I am going through one now but I just wanted to make sure it is credible :s
Focus more on soc then mvc.
@Alesana Link?
Well this one that I am reading is particularly a MVC tutorial but it is without a framework. I understand the seperation of concerns idea, but I think that a MVC layout is the best way to implement that
04:57
\o
O/
Yes I have seen Patrick's tutorial, it's a great tutorial. I think that it in some way implements the MVC layout but it doesn't go into detail about each one
\o
@Alesana mvc is just that.
how you do it is absolutely subjective :B
@Alesana i think stay away from it :p go for no frame work.
And start reading tereško answer.
:D
@Alesana I've only hit the very first sample code and it's already shit. Ditch that tutorial.
05:02
@PaulCrovella Thanks :B. As soon as I got to the first piece of code started researching what a singleton is and ended up on a google talk about it
@Linus this one?
Yes
That's how I got to the google talk :P
ah i just mixed tea and coffee -_-
mmmh coffee
:p
05:07
@Linus Ahhh you just invented cofftea! :p
posted on August 05, 2017

New Cyanide and Happiness Comic

@Linus how does it taste?
like @peehaa's armpits.
lol
:p
@Alesana kopiko candy.
!!dad
05:13
"Ill call you later." Don't call me later, call me Dad
Interesting :P
05:44
Is that an accurate example of how a basic MVC would work? And, the controller is the single point of entry?
Hello
ok, thought I have question, but will go to worjkplace. SA to ask
06:13
@Alesana looks more like mvp or front-controller. but that's about as close as php tends to get
@cHao, Ah, so if I am reading a PHP tutorial on MVC layout they would, in reality, be describing a MVP layout?
@Alesana most of the time. in MVC, the messages kinda flow in a circle, with the model updating the view
that's hard to do decently over http, particularly in a language like php where everything's rebuilt from scratch for each request
This is a good read about Web MVC
I see, I guess it would need a websocket but that wouldn't be convinient
@Fabor Thanks I'll take a look
06:32
@Alesana for what??
@Linus For the model to update the view
@Alesana i am not sure but you are going in wrong direction ping the @tereško
Oh don't worry I am not going to open a websocket :3. Or, are you saying my gif is going in the wrong direction?
@Alesana not sure but may be don't take my words for this...
:P okay
I will read up more!
06:46
don't read more , just wait for him to wake up :P
@Alesana Classic MVC is not implementable in a sane way for web. It's stateless for one.
I am seeing that now :B
07:15
morning
mornings o/
@Alesana no, that is completely wrong
:(
lol
o/
07:19
@tereško "WHAT? Someone's talking about MVC?!" :)
07:33
BTC owners must be happy atm
I have like 1.4 mBTC
not sure if I should feel happy... :P
I am annoyed
I was watching BCC last night and it was like 370 from 570, so I was like, I need to split my bitcoin and sell it
I think last I checked it was at 220 :(
hi all
dang, my BTC buy didn't go through yesterday
was trying to switch from ETH :<
07:40
Risky buy
I'm just going to HODL with eth
how so
I was thinking of switching my BTC to ETH
BTC change in 24 hours is almost +10%?
170 is an okay price. (£)
If you see eth around 140 i'd buy buy buy
Hmm I might know what that is in USD If someone accepted my PR for the !!convert plugin :P
07:41
There are many times to buy/sell...
I wanted to participate in the token sale of nimiq which seems really promising but I am too broke and it just ended a bit over a week ago
Hopefully it is cheaper when it is released and I will feel less bad about it
08:19
@taco There's only one time to buy and one time to sell.
Buy low, sell high.
zcash looked very promising when it started
now its just ...
08:45
I think people really only use it to wash their money
in Titin, 36 secs ago, by Sheik Yerbouti
Methionylalanylthreonylserylarginylglycylalanylserylarginylcysteinylproly-
larginylaspartylisoleucylalanylasparaginylvalylmethionylglutaminylarginyl-
leucylglutaminylaspartylglutamylglutaminylglutamylisoleucylvalylglutaminy-
llysylarginylthreonylphenylalanylthreonyllysyltryptophylisoleucylasparagi-
nylserylhistidylleucylalanyllysylarginyllysylprolylprolylmethionylvalylva-
lylaspartylaspartylleucylphenylalanylglutamylaspartylmethionyllysylaspart-
ylglycylvalyllysylleucylleucylalanylleucylleucylglutamylvalylleucylserylg-
09:07
if you wanna get kicked, you can just ask :)
monring Gordon
nin
Mordon
@Gordon bu... but... that is a valid name of a protien
09:10
o/
its a shame he won't be able to see my waving
user924016
wheres @PeeHaa
@SheikYerbouti so ain't your mother's name
09:22
what?
I knew it
@Fabor Better
Morning
09:34
:)
@Gordon Terraria?
@Fabor dont have
@Gordon It's cheap. I'm trying to convince 11'ers to join. I have a server :)
@Fabor maybe some other time. busy with sr:hk atm
</3
hi guys
user924016
09:38
hi
can anybody just tell me what exactly git merge origin/master actually does?
It merges the master branch of the remote "origin" into your local master branch
See "git remote -v" what the "origin" label refers to
Morning
@FélixGagnon-Grenier forgot to answer you. legatissimo = very bound, very close
@staabm ohh my god!! i though it merges remove master into my local branch
user924016
git merge origin master or git merge origin/master?
09:44
for example I am at my newly created branch task-1 and then I executed above command git merge origin/master
now this command will merge remote master branch into my local master branch and not into my task-1 branch ,right?
@Fabor I'll probably buy it next month...
looks nice
10:06
is there anything else i need to do to images and videos besides mime check and exif on images
@RonniSkansing probably I didn't understand the answer given there
can you please give simple meaningful solution to my question
user924016
you want to merge task-1 into master?
no I want to merge remote master branch from git into task-1 branch directly
git checkout task-1
then
git merge origin/master
this do the same
?
user924016
sure or checkout master, git pull, checkout task-1, merge master
should I use clamAV or is it unneccesary
10:13
for me less command but same result will work
user924016
Exception yes
you are using 4 commands while I am using 2
user924016
But you probably also want to keep your master up to locally
yes thats for sure
user924016
But anyways
user924016
10:13
yea sure use 1 or 10 commands (=
user924016
but what you are saying looks right
user924016
but if you are making a new branch, you might as well pull on master and check out from there
user924016
then its up to date
user924016
if master is like,, dev
no I go to git and make new branch from master from there and then in my local I use git fetch
this gives me my branch locally from remote
and then I start working on it
after checkout
ThW
ThW
10:20
Morning
ThW
ThW
I am happily clicking a button in my IDE to create a new branch :-) Not sure why so many people are focused on using git on the command line.
user924016
(= habbits
user924016
I also enjoy using the intellij gui tools
user924016
especially when merge conflict
ThW
ThW
10:31
If you're using the tasks, you can even let it create the branch from the issue id/summary.
@ThW Strongest git cli argument is that env isn't an issue then.
ThW
ThW
@Fabor Not really, I will not develop without my IDE/Env. I might debug something in another env, but I will not develop there.
Anonymous
10:59
@LeviMorrison I don't have a car, but I said it was irrational :)
 evenings o/
11:18
!!dad
Did you hear about the actor who fell through the floorboards? He was just going through a stage.
Anonymous
11:33
!!wotd
consuetude: custom, especially as having legal force.
12:22
emm .. what's with this new "mandatory english skills for green card applicants is racist" talking point?
Anonymous
It depends ..
Yeah, some jobs require a numeracy and literacy test. Would they complain about them too?
Anonymous
@JenniferJJacobs Einstein didn't speak English before moving to US. Learned it @ 54-had strong accent. Accdg to RAI… https://twitter.com/i/web/status/893182088605831168
Anonymous
i can't even ...
12:55
> We're in the process of updating our COBOL programs running on an IBM Mainframe (z/OS) to support non-latin characters.
that's terrifying
@DaveRandom was proposed by HHVM team and rejected I think (or maybe they withdrew it)
@DaveRandom oh god
13:10
just lost 8 games in a row... feels bad man
@Andrea what kind of "oh god" is it?
"oh god no" or "oh god yummy"?
@FlorianMargaine i don't use “oh god” positively
 
1 hour later…
14:28
Auryn's share method is basically a way to avoid using Singleton's while still assuring you don't create more than one instance of a class?
@Alesana It doesn't ensure that, but it will only create / use the one instance.
@kelunik So, you wouldn't use it for writing tests but in development if you share an instance and only use Auryn to instantiate that class, then you would effectively do what a Singleton would do without effecting the ability to write tests?
hi
something like this won't work?
print_r(array_chunk($t_arr[0], 1));
I get something like this in a browser:
"Warning: array_chunk() expects parameter 1 to be array, integer given in ... on line ...:
Bead-sort algorithm, php
w3resource.com array exercises
@Alesana Yes, you should use Auryn basically only in the bootstrapping phase of your app.
anybody here today?
14:42
Ah, and from there pass the classes instantiated with Auryn to the controllers, etc... I think I understand
@Alesana You can just let Auryn create these controllers.
Even better :B
ok
new question
$poles []= array_fill(0, $e, 1);
what is []=
I see it for the first time, I think
cant find it on google.com
... I feel like a cheater when I tell old people on the phone I'm taking a paper to note something, when really I just open notepad
what do you take notes of?
14:48
a phone number, in this case, my grandfather's one
ok
do you know what this is - []=
in php?
cant find it on google.com
$poles []= array_fill(0, $e, 1);
that's $poles[] = array_fill(0, $e, 1);
possibly
I did not thing about that
as there is not such thing, I guess
the whitespace really changes nothing
ok
thanks
14:50
it could be $poles[]=array_filer(0,$e,1);, if we were barbarians
@FélixGagnon-Grenier if we were barbarians it'd be:
$poles
[]
=
array_fill
(
0
,
$e
,
1
)
;
this does not work for me too
print_r(array_chunk($t_arr[0], 1));
the same example that I am working on
that looks like my code
it expects an array and it sees the $t_arr[0] as an integer
I get a warning and a code does not work
this is an example from an edu website, w3resource.com
you've missed something in that example
14:54
I love you Paul
1 day 10 hours @PaulCrovella
... ok ok i stop it :B
it is actually with return there
return array_chunk($n[0], 1);
I could be not understanding something too
I am a beginner
just one month plus of studying the php
@AaronSmith do you understand what $n[0] means?
yes, the value of first key in an array, the $n array
14:56
@AaronSmith you are doing programming wrong. don't try to memorize functions, learn the control structures and the syntax, then look up for things as you need them
I am not that bad in that, I've been working on websites for 7 years
for example, i think i've never used array_chunk in my life
I was learning the php like 7 years ago, but I am really learning now
I kind of read a book , did not get anything together
so I did not know it, and I don't know it still
I am reading the entire php.net
don't do that. it's pointless effort, you will forget anyway
and these are the exercises from w3resource.com, probably #1 set of exercises for php in the World, not too much of that on the Net
@AaronSmith so if that value is not itself an array then array_chunk won't be happy
> probably #1 set of exercises for php in the World
I know, but I am trying to understand the examples too, I don't do any shortcuts
who told you that?
also a good 50% of php core functions are crap
14:58
I am forgetting, but it will be easier to read it for the second time
@FélixGagnon-Grenier I'd guess w3resource.com did
hahaha sadface.jpg
thanks @Wes Stark, I just read what you said, fully
it makes me better, that's for sure
things like this I wont find on google.com
like if there are errors or bad info on php.net
00:00 - 15:0015:00 - 00:00

« first day (2485 days earlier)      last day (2688 days later) »