« first day (2749 days earlier)      last day (2196 days later) » 

Wes
12:10 AM
it's confirmed. worst movie ever
meh. gn
 
12:51 AM
Anyone awake? =)
 
 
2 hours later…
3:06 AM
posted on April 25, 2018

New Cyanide and Happiness Comic

 
3:24 AM
It should be common knowledge that LLVM can't reasonably be used to implement JIT ... in the real world, it just can't do it ... this fact just cost me two days to discover ...
who'd have thought it ...
 
4:01 AM
well played. either you're right or cunningham's law will kick in in short order. win-win.
 
ha ... although, I am definitely right ... it's difficult to accept because "that's what LLVM is for" ... but it actually is not what llvm is for, I don't know if at any point it really was focused on that, but today, it's not focused on it whatever, it's aimed at AOT compilation of statically typed code ...
 
 
2 hours later…
5:40 AM
Hello
@DamienOvereem ?
 
5:54 AM
anyone online ?
 
6:47 AM
@JoeWatkins yeah, just go with dynasm (used for luajit) and such
 
7:39 AM
morns
 
Docker volumes aren't shared folders right?
 
7:55 AM
Hi im new in mysqli parameterized
Im having a problem with like query
this is my code
$dep=array();

$dep[0]="Dep";
$dep[1]="Div";


$stmt=$mysqli->prepare('SELECT * from refleaveadminusers where EmpNo Like %?% ');
$stmt->bind_param("s",$dep[0]);
$stmt->execute();
$result=$stmt->get_result();
if($result->num_rows === 0 ){
	exit('No rows');
}

while($row=$result->fetch_array(MYSQLI_ASSOC)){
	$ids=$row['EmpNo'];
}

var_export($ids);

$stmt->close();
echo "Friendly Fire";
 
morning
 
\o
 
sentry looks like a coool thing to use
 
and this is what the error says
Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%?%' at line 1 in C:\wamp64\www\epayslip\getemail.php on line 12
when i removed the %% sign i received no rows due to wrong syntax for LIKE query
 
8:00 AM
@Ekin I was so thinking just that the other day. :|
 
@bwoebi dynasm is basically undocumented, and quite complicated ... since I only need a few instructions, considering writing the machine code emitter myself, the only thing I'm not sure about is register allocation, or tracking ... I've had a play emitting some basic mov instructions ... if you have your own emitter, you can do tracing jit much easier ...
I'm not sure there is enough performance to gain in current application to make it worth it ... I dunno ... fun to play with though ...
 
fixed the problem by adding it into the variable. thanks to myself hahahahahah
 
> dynasm is basically undocumented, and quite complicated
so it's like PHP under the hood?
 
well ... php does have tens of thousands of pages of documentation
but internals I guess is comparable ... but php is a simple thing ... or was ...
 
@Gordon I believe PHP just might be the best documented language ever, no kidding.
2
in the userland I mean. not the interpreter.
 
8:07 AM
@mega6382 I am not talking about php.net ;)
 
I interpreted that as internals
 
@Sean then what else could they possibly be? :P
 
Anonymous
morning
 
8:23 AM
\o
 
Hello
I can't able to go inside "if condition"

if (mysqli_query($conn, $sql))

:( Please any suggestion ?
 
@Ekin Had this recommended to me earlier this week funnily enough, it does look good
 
ThW
8:39 AM
@ARJUN increase your error level (include notices)
 
@ARJUN I don't know, but try var_dumping the mysqli_query($conn, $sql)
 
@ThW I'm not getting any error messages
 
mornin
 
o/
 
ThW
@ARJUN That is why I say you will have to increase the level
btw cool code injection
 
8:44 AM
@ThW is that sarcasm?
Too Broad Install SSL on server Via API ~ Kenziiee Flavius‎ - 2018-04-26 08:44:05Z
 
@ThW I'm on it
 
ThW
@mega6382 yes, allowing the url to specify any php function so that it will be called
 
@ARJUN did you try what I said?
 
@mega6382 You mean var_dumping ?
 
yes
 
8:46 AM
I'm checking it
 
good mornings
 
\o
 
@ARJUN next try it with 'rm%20-rf%20./exec' as your URL
what do you think your code will do
how about 'whateve/eval', if you are not scared enough alrady, @ARJUN
 
@tereško I really hope shit like this don't ever make it to any production site.
 
@mega6382 there are probably thousands of sites like that
 
9:01 AM
Do you remember that 'Человек и PHP' guy, who made his own framework?
 
vaguely
 
ah
 
You are right, there is so much shit like this. And people(who make thise) actually believe that these are very secure.
 
@mega6382 The most scarry is they mostly are hard to convince that what they provide is a shitty code
 
1
Q: How docker mounts volumes without making entry to /etc/mtab?

Gagan93I am quite new to docker so spare me for stupid doubts. I've know that /etc/mtab reflects currently mounted partitions. I also see the following output in my df -h command: # df -h Filesystem Size Used Avail Use% Mounted on udev 5.9G 12K 5.9G 1% /dev tmpfs 1.2G 1...

someone know the answer to this?
 
@Gordon /etc/mtab is usually just a symlink to /proc/self/mounts
 
@mega6382 unfortunately the repo has been removed from github :/
 
mooooooin
 
moin
 
9:24 AM
@FlorianMargaine yes, but why would df show a docker filesystem as /dev/dm-5 but the same filesystem in mtab is named /dev/mapper/docker-202:some-id?
 
@Gordon where are you seeing that?
 
\o
 
@Gordon because *nix filesystems are impenetrable nonsense, a Rube Goldberg of mind bending abstractions that make no sense in any way to anyone?
just putting it out there
 
@DaveRandom that's okay, but I need a workable solution
 
@brzuchal But I think I remember somone forked it. I don't know who exactly though.
 
9:27 AM
use windows
/hides
 
@FlorianMargaine pastebin.com/7HcsmYj7
 
@Gordon Answered, but rly?
^ ^ :D
 
ugh, I mispasted. the first line below in mtab still belongs to the df output
 
@Gordon seems to be another one?
 
@hakre so that means it's a docker bug?
 
9:31 AM
no not at all
you don't want to have that persisted
 
@FlorianMargaine pastebin.com/hfjDWZYy fixed the paste.
@hakre I dont understand
 
@Gordon readlink -f /dev/mapper/docker-202:16-12583002-d568b8393af5a55711bc5859726df5df3e887ca075b84‌​ac1558b2fba91cb91d3?
 
I dont have access to the box. I am looking at log files
 
9:50 AM
How do you guys like to write more complex SQL queries in your PHP code?
Do you both with an SQL builder?
 
Anonymous
raw
 
I've seen some guys write $query = 'SELECT'; and then line everything up
with concatenating strings
 
@Jimbo Sometimes yes, sometimes raw.
@Jimbo those are usually pretty ugly.
 
Anonymous
1 message moved to Trash can
 
@jimbo
you mean variable queries?
 
9:56 AM
@Naruto I believe he means, with a lot of joins or nested queries or aggregate functions
 
$query = 'SELECT'
$query .= ' x AS ' . $this->someMethodToCalculateName() . ',';
 
Anonymous
why O.o
 
That's clean, I might steal that, ty
 
:D
 
Anonymous
10:00 AM
They use QueryService here, which I quite like
 
Anonymous
separates it from the casting / instantiation
 
@Jimbo sql builder or sprintf
 
Yeah, lots of sprintfs in this one
 
Anonymous
I find them annoying to read, prefer inline
 
10:29 AM
@hakre your answer is wrong
 
Is there any sane way to make php-fpm error log lines, that contain a \n to appear as single log entries in php-fpm error log and the nginx error log? Or is that a stupid question?
The context is we have some error that really needs to be shown as a single line in the logs when I'm trying to interpret the error - but as the message has new lines in it, php-fpm spits it out as multiple lines, and so in the google console it is shown as multiple log entries.
 
sane and php-fpm in the same sentence…
 
!!help
@jeeves you okay bro?
 
Anonymous
!!uptime
 
<dad>What kind of food does the Karma Cafe serve? Just desserts.</dad>
3
 
10:41 AM
!!reboot
 
Anonymous
@PeeHaa he's not in the room or joining other rooms
 
Sec
 
!!plsworky
 
frugivorous fruit-eating.
 
!!dad
 
10:43 AM
Have you heard of the band 1023MB? They haven't got a gig yet
 
@PeeHaa what was the issue?
 
Not sure
I just woke up
:P
 
:P
 
@mega6382 I already know a joke about karma! Tell me a new one.
3 messages moved to Trash
 
10:59 AM
Apr 26 01:17:02 149-210-224-55.colo.transip.net jeeves[2643]: Connection to chat.stackoverflow.com#146495 timed out
Apr 26 01:17:02 149-210-224-55.colo.transip.net jeeves[2643]: Connection to chat.stackoverflow.com#146495 closed
@mega6382 ^
Shitty reconnect logic
 
huh
 
Last log was
Apr 26 01:17:05 149-210-224-55.colo.transip.net jeeves[2643]: Reconnect to chat.stackoverflow.com#11: attempt 1
 
JS room sucks in regards to getting help about anything.
 
!!uptime
 
╔════════════════════════════════════════════════╗
║ [27 minutes and 5 seconds] without an accident ║
║          since [2018-04-26 10:43:08]           ║
╚════════════════════════════════════════════════╝
 
11:10 AM
!!dad
 
Have you read that book about Stockholm syndrome? It was pretty bad at first, but by the end I liked it.
 
@mega6382 How come?
 
Anonymous
@MadaraUchiha full of arse holes
 
@JayIsTooCommon That's a bold claim
 
@MadaraUchiha I don't know, just there is always some stupid discussion going on(and very fast too) and many people who are asking for help are ignored. It happens many times.
 
Anonymous
 
Oh btw I’m building a cyborg dragon
 
2 hours ago, by mega6382
https://twitter.com/elonmusk/status/989198118666162176?x
 
:P
 
already posted. :P
 
just woke up, gimme a break
 
11:13 AM
@JayIsTooCommon Huh?
 
@Tiffany break;
... I slept two hours. don't judge
 
indeed :P
 
@Ekin You didn't end up finished Undertale, right?
 
uuuhm
I tried to make Pieter finish it instead :P
 
11:20 AM
Shame.
@Ekin How'd that end up for you?
 
I got super mad on one of the bosses and started throwing stuff
 
the worst thing about this is... I still have it installed even. just waiting me to click
 
@PeeHaa Is it the boss I think it is?
 
I bet it is not
 
Probably not because I suck and am not an asian
 
11:21 AM
@PeeHaa Neutral/first run?
 
I bet it was not :P
 
kill all and everything obviously
 
@PeeHaa In that case, there are only two bosses you might be referring to
First or second?
 
first
 
Boo, you stink
 
11:22 AM
Nope
Game is too hard
Fuck that shit and everybody who made it
:P
 
@PeeHaa You think that's hard? lol, the second is much harder
 
That's why the game is collecting dust and @Ekin and I broke up
j/k
I am waaay too slow for games like that
 
@PeeHaa Funny you'd use that phrasing though, "collecting dust"
 
I even cheated and got onto youtube to help me
Still failed hard
 
Genocide is very straightforward though
There's no trickery involved, you just kill everything and everyone until there's nothing left.
 
11:25 AM
I have too much screen -> brain -> fingers lag
 
Man, I would pay good money to watch you fight that second boss though
 
btw I reeeally liked mobile pubg
 
Do you play in the same game as other platforms?
 
I think I was yesterday
 
I thought everyone moved on to fortnite and pubg is now the myspace of battle royales
 
11:27 AM
Overwatch is love, overwatch is life.
 
I didn't get to play it till now and even now I can only play mobile one
 
I miss the good old days of ut2k4 :(
 
my laptop sux for gaming
@PeeHaa oh seems like I totally didn't notice that :P
 
@Ekin <3 :D
 
surviv.io :P
 
11:31 AM
lol, that looks fun
 
this looks suspiciously like fun
> No fun allowed.
 
spent more time on it than I'm willing to admit
 
:D there was a tower def game called penguin attack... that I could say the same
 
anyone here knows wordpress?
 
I've heard of it
 
11:34 AM
@pmmaga thats so cool
 
I got this line
$buffer .= '<a href="' . the_permalink() . '" title="' . the_title_attribute() . '">' . the_title() . '</a>';
 
@pmmaga I am still playing this gabrielecirulli.github.io/2048. Still.
 
and function output is going outside of the link element
like wtf
 
It's probably echoing instead of returning
 
iirc most of those functions do
and most of them have a bool arg to return instead
because wp is horrible
 
11:36 AM
what should i do instead then
 
Also it has get_* functions to return iirc
 
if they echo
 
fuck writing is hard
 
yeah, those get functions worked
 
11:38 AM
the_title_attribute( 'echo=0' ) omg wat
 
:D
 
/me throws the internet in the bin
 
where did you find that
 
dude, don't look at wordpress
 
11:40 AM
its one of args
i just got trojan from downloading a "free" theme
fuck wordpress
 
(async () => {
	//WHATEVER
})();
@MadaraUchiha is (); part in the end for adding callback?
 
@mega6382 It's calling itself
 
@Jeeves very valid point.. I've struggled with it a few times..
 
Yeah bugs suck in so many ways :(
 
btw @PaulCrovella, I've reopened the one about the DST
 
11:51 AM
cool, thanks
 
@Gordon I do not see any use (fulness) to save a mount that is given on the command-line to be written to the mstab file inside the container as the container is normally not persistet and longer.
 
@hakre it's not in the container. it's on the docker host
 
@PeeHaa Yeah, thats what I figured.
 
Anonymous
 
@kelunik are there any security considerations for using amp parallel functions? I see serialization and all my alarm bells are going off :)
 
@mega6382 The (); means you call it immediately.
@PeeHaa Why do you write them then?
Just don't write bugs
 
12:24 PM
:P
@JayIsTooCommon are you going through all open stuff in phinx?
or do you just cherry pick?
 
Anonymous
@PeeHaa I was going from top/down yeah. Only responding / chasing stuff that I really understand
 
k awesome <3
 
Anonymous
Cake are not on it at all really... the amount of stale issues and PR's is annoying
 
Yeah
Although I am the last one to bitch about long standing issues it is annoyig
 
@PeeHaa the processes need to discuss with each other (most probably over a pipe), so you need to serialize/deserialize objects that you "pass" between processes
 
Anonymous
12:29 PM
C: Let me know when you wanna shout at cake devs and i'll get you perms and slack @PeeHaa
 
(pipes only understand binary)
 
Will do
Do I still do composer robmargan/ @JayIsTooCommon?
@FlorianMargaine Yeah I thought maybe there was some magic reflection serialization going on
Or maybe rather hoping it was the case
 
Anonymous
@PeeHaa yeah :)
 
kk tnx
 
Hi can any one please help with this stackoverflow.com/questions/50041382/…
 
Anonymous
12:33 PM
!!laravel
 
Anonymous
@YousefAltaf You won't get much laravel help here I'm afraid. Best trying laravel.io
 
Anonymous
!!alias list
 
6 messages moved to Trash
5 messages moved to Trash
 
@MadaraUchiha OK, how would one write a callback there?
 
@mega6382 What do you mean?
What are you trying to do?
 
12:47 PM
run puppeteer
 
@mega6382 The arrow function is the callback
 
"How do I peel a banana?"
"What are you trying to do?"
"Conquer Russia."
2
 
OK, so this is the code.
(async () => {
	const browser = await puppeteer.launch();
	const page = await browser.newPage();
	await page.goto(item.outputImage);
	await page.setViewport({width: 1520, height: 1080});
	await page.screenshot({path: item.outputImage});

	await browser.close();
})();
Where do i insert a callback or a promise.
 
@MadaraUchiha You have to start somewhere :P
 
@mega6382 The entire thing returns a Promise
All async functions return promises.
(Even without an explicit returns, it just returns a Promise for undefined)
 
12:49 PM
So, where do i write .then()?
 
(async() => {})().then(...)
Alternatively, right after the await browser.close();
What do you want to do after it's done?
 
why do you want then()
 
"But I'm le tired..."
"Then have a nap, AND THEN FIRE ZE MISSILES!"
 
@MadaraUchiha Run a child process of imagick convert
@FlorianMargaine to refactor the resulting screenshot
 
can someone help me with a makefile
i want to assign php executable path to a command, if "php" exists use it, isntead use php executable form another path.
here is what i have to far, which is rubbish since it doesnt work at all xD

ifdef (php),)
WHICHPHP="php"
else
WHICHPHP="/usr/local/php70/bin/php"
endif

.PHONY: run
run: ## Executes the script with stardart values
$WHICHPHP index.php
 
12:53 PM
> a makefile
3
 
makefiles are the new yaml bro
 
it looks fancy thats about it xD
 
@mega6382 Can you describe the bigger picture for me?
 
makefiles are the stupidest idea until somebody somehow manages to come up with an even more stupid idea right now (for php projects)
 
i like the idea, as long as commands are super simple
 
12:57 PM
Your commands are super simple yet you are stuck
 
well i am trying something new that is interesting for me. I can always make a bash file for < 1 min. Just wanted to check makefile. But it seems a bit complicated
 

« first day (2749 days earlier)      last day (2196 days later) »