« first day (2438 days earlier)      last day (2510 days later) » 

Wes
12:01 AM
blue lines are perp to the cyan one, red lines are perp to the yellow one
how do i find the point on the black line that has the red line of equal length of the blue one?
in case you need more space here's a bigger one i.imgur.com/ZbdsKyB.png
 
@Wes put a circle centered on the black line that touches both the yellow line and cyan line?
 
Wes
@Danack that is the goal, but where is that circle's center?
 
@Wes do you have equations for these lines? or just after a general approach?
 
Wes
no equations, i have to do visually if possible... it's for the logo
like using just a compass
 
And you can't just put a circle on the black line, and then fiddle with it till it just touches both of the other line?
 
12:12 AM
Anyone knows about a proxy-ing stream wrapper for the file protocol? I just created a limited one for inlcude statements injecting declares in stackoverflow.com/a/44616349/367456 and I'm wondering if a full imlementation already exists. (scroll to the second section of the answer, gist is linked).
 
Wes
@Danack nope, snapping is not that good.
 
@Wes I'm unlikely to be able to answer anyway but what do you want the form of the answer to be? If you don't have equations for the lines, and aren't able to play with the size of circles, I don't see what form of answer you're expecting.
 
Wes
i think i have to draw two circles of equal radius and where they intersect i get that point
no matter the radius as long it's equal. i'm looking for that solution. like first grade school :B because that's how it's done in such programs
 
@Wes are you able to duplicate lines and lock them together, and then transform the result?
 
Wes
yes
 
12:19 AM
...
 
@Danack solve it with pythagoras, nice
 
Wes
 
I'm quite tired - so this may or may not make sense.
Draw a line from the cyan to black, that looks close to the right length. Copy that line and place it on the yellow line at right angles. Duplicate both of those lines to form a parallelogram.
Then adjust the size of the parellogram so that the corners are where you want them to be.
Dragging by a corner should preserve the angles inside the parellogram.
 
@Wes the center will bisect the angle formed by the cyan and yellow lines. So draw the bisector and where it intersects the black line is your point
 
Wes
trying
fuck yeah!
thanks @ircmaxell, @Danack :B
 
12:33 AM
thats some balls.gif
 
Wes
aha
 
:)
 
Wes
dang that was so simple i couldn't figure it out
 
think about the geometry
 
Wes
yeah i see it now
 
12:36 AM
:)
 
Wes
i like these things. why am i even a programmer. i'm 31 and i still don't know what i want to do in my life :B
 
if you can afford the luxury, read hegel
 
 
3 hours later…
Wes
4:06 AM
another attack in london
shit has become daily news basically
 
Daily in a lot of places tbf, coverage is just far reaching here
 
morning
 
Wes
4:30 AM
@Fabor in war zones though.
 
4:53 AM
morning
 
morning
o/
 
5:09 AM
posted on June 19, 2017

New Cyanide and Happiness Comic

 
5:21 AM
posted on June 19, 2017 by trowski

- Fixed an issue in `ResourceOutputStream` when writing large data chunks and the `$chunkSize` provided to the constructor was `null`. - `ResourceInputStream` closes the readable side of the stream with `stream_socket_shutdown` (or closes the stream...

 
6:01 AM
@PeeHaa I hope you're lucky now... changed everything back to master...
 
6:21 AM
o/
 
@bwoebi @Trowski github.com/amphp/parallel/commit/… solves the hanging test for me.
 
6:42 AM
morning ruby'ists
so vs code added a minimap to the editor pane. it shows your sourcecode in a tiny box. on my 4k screen its so tiny that I didnt even notice it's there. talking about useless features.
 
posted on June 19, 2017 by kelunik

- Suppress errors on close in resource streams.

 
Quite a few people searched for "tick" :D
 
Wes
6:58 AM
\o
 
Has anyone here used google forms before?
for survey purposes
 
@Jola yes
 
me quitting my company next week. Boss: "before you leave please change our hosting company"
flip table
 
@Valentincognito Change it to /dev/null?
 
maybe I should
 
7:05 AM
Hi @Gordon I made a normal survey system that can conduct a survey with questions that have different answer types for thesis. Now my adviser is telling me to put an Add Section function like in google docs which is way different on what I have now. Can you give me any ideas on how I will make the Add section function?
 
@Jola sorry, no idea. I only did simple forms.
 
I never heard that for legal reasons one should not host a website involving money transactions outside the company's country
is that a thing ?
 
Better don't ask legal questions on the internet.
 
@Valentincognito You should probably consult with an actual lawyer
 
It's not really my decision anyway, I just wondered if anyone had heard such stories before
"According to a recent study, 42% of the world’s top 1 million sites are hosted in the U.S."
not bad
 
7:19 AM
Bezos: "Alexa, buy me something from Whole Foods" Alexa: "Buying Whole Foods" Bezos: Shit
:D
 
@samayo IDK what you are talking about.
 
7:35 AM
Hi everyone
i want to ask something about web. i very beginner in web development .. I have two existing folder project .. one it work ok .. but other one it have some problem .. the problem because wrong path .. but that file use same structure ..
when i run on browser i got error not found 404 .. get localhost:8080/assets/css/… .. i know the error because url .. it should have my folder project .. like this localhost:8080/myProject/…
but one project also use code like in image but it worked .. but myProject got error
sorry it look like weird question..
 
Anonymous
7:56 AM
mornin
 
o/
 
i need send ajax request has data like
data: '{Index: "' + currentPage + '", arrTransform: "' + JSON.stringify(arrTransform) + '"}',
but it is not work any one know how to send array of object with another value in jax
 
morngins
 
o/
 
Anonymous
peeoo sion
 
8:06 AM
\o
*\o/*
 
o/
 
Anonymous
pedrogian
 
Anonymous
!!wotd
 
sundog: a bright circular spot on a solar halo; parhelion.
 
o/
 
8:13 AM
\o
 
Parhelion is a nice word
 
Wes
how can you go backward with site design
twitter looks like it's 2010
 
morngin
 
Wes
those kitsch icons lol
 
Anonymous
@Wes this is so much better btw
 
8:35 AM
opcache_clear() puts php-fpm master in a cpu loop – #74778
 
8:55 AM
x() and y() truncating floats to integers – #74779
 
9:13 AM
mornin
 
Anonymous
> Choose Password (max 10 characters)
 
9:31 AM
why would they put a max limit on char? they should change that to minimum 10 characters
 
is it possible to get the submit button data while ajax posting
?
 
Mornings o/
 
@astrosixer Why wouldn't you?
@Kurisu Hey @Ekin
 
@Kurisu o/
 
@Naruto Because they store it plain text
 
9:32 AM
alright, I'm getting my flamethrower! Let's burn the crap down
 
Hey guys
 
Morning
 
I want to extract Rar files using php
 
l need to check isset($_POST['submitbutton'])?
@PeeHaa
 
@Naruto Hans, get the flamenwerfer;
 
9:32 AM
but it says: "class RarArchive" not found
 
Anonymous
@PeeHaa government as well.
 
I'm using Windows 10
 
@Kurisu everything sounds better in german ^^
 
Isn't there any DLL file available for windows?
 
@PeeHaa Hey @PeeHee
@Naruto ikr :P
 
9:35 AM
@astrosixer That doesn't even attempt to answer my question
@Ekin Hey saitima
See! @Kurisu! Confusion!
 
:P Indeed
 
@JayIsTooCommon lol
 
o.O
Everybody I'm the real kurisu
 
okay.
 
Any help guys?
 
9:40 AM
@PeeHaa
that i am trying to serialize the form data and ajax posting it
 
Anonymous
I'm out of vampville for the morning.
 
and there is also a submit button which will return false on submit
@peeha
means preventing the default
 
@PeeHaa means something else
Ew... I need more coffee
 
Mornings
 
@Ekin I am still waiting for you to fix a proper urban dictionary entry :(
@RonniSkansing hoi
 
9:45 AM
@Ekin I created that... ah, I'm glad I did it
 
Anybody ?
 
@RonniSkansing moroningings o/
 
@Ekin
 
@Kurisu you shuddup you lelouch, aladdin, saitama :P
 
9:45 AM
@astrosixer sorry. You don't answer my question as such I have to move on
 
ok
thanks for the help
 
@Ekin you forgot Saitama, Okabe, and others that I can't remember
ah
 
@Kurisu Okabe and Lelouch were your nicest picks fwiw.
 
not Saitama....? I'm sad :(
 
9:48 AM
:P
/me goes back to writing tests for a while
 
o/
 
Wes
@Kurisu WHO THE FUCK ARE YOU
 
@Wes I DO NOT KNOW
I'M HAVING AN IDENTITY CRISIS
 
Wes
just quit anime and you'll be fine
 
... aaand ignored
 
Wes
9:52 AM
he's saitama
 
yeah, stop reading anime! its bad for your health.
 
Wes
true
reading... anime
that was a trick
 
Call to undefined function rar_open()
I've added the dll files for windows
and added the extension in php.ini
but it's still throwing the same error
 
Wes
this thing has become a bit more complex than i've planned :B
 
@Gordon I just had an anxiety attack
 
Wes
10:07 AM
cc @kelunik :D
 
@Wes can you try how it looks like when the ear spans completely behind the snout, e.g. with no opening
@Kurisu yeah, well. stop watching manga then
 
Wes
@Gordon not sure what you mean
like the pointy end of the ear touching the trunk?
 
@Wes yes
so it looks less like a squid with a parrot beak
which isn't even funny, because squids actually do have parrot beaks
 
Wes
/me adds parrot to the list
 
nonono, it's just a squid… like I said: they do have parrot beaks
 
Wes
10:11 AM
this is the last (incomplete) (and wrong) render
 
@Gordon ;-;
 
such golden ratio...
 
much wow
 
can anoyone check out this bin?
 
@Kurisu is that a mononoke emoji or something?
 
10:12 AM
it a very simple select query that keeps failing and I can't understand why
 
@RonniSkansing what do you mean? should I read the docs?
 
@Gordon that's just a crying emoji
 
@Riccardo debug it (=
does rowCount return what you expect?
 
hey guys
any one here
 
10:14 AM
@RonniSkansing yes it does
 
@Riccardo so it returns something larger the 0 ?
 
yes
 
can anyone help me..
 
guys, if i want to web scrape every H3 from this page: stratisplatform.com/category/news how can i do that? cant figure it out
 
it returns what I expect this is the problem
 
Anonymous
10:15 AM
@Wes where's the elephant gone? :(
 
@Kurisu it totally looks like mononoke
 
Wes
@JayIsTooCommon i fucking hate you
it almost didn't change...
 
@Gordon :/, oh, I haven't watched mononoke tho
@Wes don't we all?
 
Anonymous
@Wes Love you more.
 
10:17 AM
@Fluffy @riccar @JayIsTooCommon @Gordo @Wes @Kurisu i ned help of htaccess can any one help mo out
 
@NirikshanBbusal pls no spam :(
 
I need help of htaccess can any one help mo out
 
Anonymous
!!welcome NirikshanBbusal
 
Welcome @NirikshanBbusal, please read the Chat Guidelines
 
@Gordon OMG IT DOES
 
10:18 AM
!!canon html_parsing
 
Cannot find the canon for you... :-( Use !!canon list to list all supported canonicals.
 
Wes
@NirikshanBbusal let me guess, you need help with htaccess
 
@RonniSkansing I try to dump the $result array and it has the data to be encoded so I dumped eveything that can be dumped and it's all correct
 
3 messages moved to Trash
 
i'm into a deadlock
 
10:19 AM
!!canon html
 
Wes
@NirikshanBbusal am i right, you need help with htaccess
 
1642
Q: How do you parse and process HTML/XML in PHP?

RobertPittHow can one parse HTML/XML and extract information from it?

 
@FluffyMe ^
 
sorry guys
 
@Gordon thnx
 
Anonymous
10:19 AM
@NirikshanBbusal no worries. Just ask your question and someone will help you if they can.
 
I want to use .htaccess file to block all the extension for upload how I can do this . I looked lot of blogs and articles this all made me confused because they was different from each other so how can i do this.
I wanna bock all extension except jpg and png .
 
why does it have to be via an htaccess file?
you can limit the filetype on the form and then ensure via the mimetype in php.
 
I feel my code is not so secure so I want to do this through htaccess
Do you have some idea on this topic.
 
Aren't you validating on the server side?
 
10:32 AM
Then what's the problem?
 
@NirikshanBbusal why do you think it gets more secure via htaccess?
 
so please suggest me what's real idea
 
3 mins ago, by Gordon
you can limit the filetype on the form and then ensure via the mimetype in php.
 
@Gordo ok
 
@Gordon Do you have any idea why rar_open() is undefined?
 
10:36 AM
@ZahidSaeed because you did not install the rar pecl extension?
 
@ZahidSaeed have you downloaded any external dependencies?
 
Yes I did
I even added in php.ini file
Btw, I'm using PHP7 on my local machine and Xampp
I only found extension for PHP 5.6
 
Anonymous
bingo
 
@Gordon What can be the problem?
 
@ZahidSaeed then the problem is that pecl_rar is not compatible with php7
 
10:41 AM
@Gordon Then what's the solution?
 
@ZahidSaeed not using pecl_rar
 
Then what should I use?
I've already downloaded it
but don't know how to use it
 
@ZahidSaeed it's a php extension. you need to build it and then enable it in your php.
 
still cant figure it out: stratisplatform.com/category/news i have this link and i just want to select all the titles of the articles but i cant figure out how
 
I ran the example.php file but still the same error @Gordon
Build how? @Gordon
 
10:45 AM
@FluffyMe $dom = new DOMDocument; $dom->loadHtmlFile($url); foreach ($dom->getElementsByTagName('h3') as $h3) { echo $dom->saveHtml($h3); }
@ZahidSaeed with make
 
Should I just navigate to the directory and type make ?
 
or rather, since you are on windows, with visual studio or something
 
in the cmd?
 
phpize
./configure && make && make install
but since you are on windows… this will likely not work
so first get a proper operating system
 
Get mint. MINT FTW!
 
10:49 AM
Yeah M feeling the same right now
 
idk why but I'm enjoying typing in caps since this morning...
 
11:17 AM
Blogged: Using non-breakable spaces in test method names 😱 http://mnapoli.fr/using-non-breakable-spaces-in-test-method-names/ https://t.co/9bqm8wRqXS
 
> Using snake_case instead of camelCase started to make sense in test methods because it lets us explain much more clearly what the test does:
O.o
Wat no
Your naming does
WTF that's serious
 
Anonymous
hahaha wat
 
Anonymous
sounds like Tony.
 
11:30 AM
@PeeHaa I actually use a mixture of camelcase and snake case, e.g. testSetFoo_withBar, testSetFoo_withBaz where the camelcase is the description and the snake separates the specialization
 
Anonymous
@Gordon like having an ugly friend with a nice personality.
 
That looks horrible to me
 
@JayIsTooCommon isnt that what PHP is anyway?
@ZahidSaeed it's easier to read though than a testSetFooWithBar and testSetFooWithBaz.
 
@Gordon No. testSetFooWithBar looks more cleaner to me
I use camelCase everywhere
From JS to PHP to Python
 
@ZahidSaeed we need to disagree then. I find it harder to spot the difference in the two method names when it's all camel case
 
11:37 AM
@Gordon Then you should put comments for each method
 
that's even worse
 
I don't usually put comments
 
Anonymous
@Gordon :P
 
Somebody wants to talk about parse_url before I submit bug report? :-)
 
What do you want to report?
 
Anonymous
11:45 AM
the report probably already exists
 
parse_url borks when there's : in the query string
 
Right, it should just return false.
parse_url is totally broken.
 
yeah, but it worked from 5.3 to 5.6-ish, I think it's fairly simple example
I'm gonna open a ticket so I can blame php for slacking
 
@DejanMarjanovic It "worked".
 
I'm not happy I even found it :(
"found"
what, port 337
man, that's broken :D
 
11:58 AM
It is completely broken, yes. Can you recommend a userland implementation?
 
@kelunik pretty sure it's allowed; see 3.3. Path Component @ ietf.org/rfc/rfc2396.txt
 
@kelunik I will just put scheme in front and ditch it, then it works properly-ish in my case, but I will write some tests anyways.
 
ah, but within query it's not "Within a query component, the characters .. : .. are reserved"
 
@DejanMarjanovic It will work for that case then, yes.
 
@Sjon 1:2 messes up port but a:b then work(s|ed) fine.
If it's not allowed then there's also that.
 
12:04 PM
!!> var_dump(parse_url("a.com"));
 
[ 5.6.0 - 5.6.30, hhvm-3.15.4 - 3.19.0, 7.0.0 - 7.2.0alpha1 ] array(1) { ["path"]=> string(5) "a.com" }
 
!!> var_dump(parse_url("127.0.0.1"));
 
[ 5.6.0 - 5.6.30, hhvm-3.15.4 - 3.19.0, 7.0.0 - 7.2.0alpha1 ] array(1) { ["path"]=> string(9) "127.0.0.1" }
 
!!> var_dump(parse_url("a.com:80"));
 
[ 5.6.0 - 5.6.30, hhvm-3.15.4 - 3.19.0, 7.0.0 - 7.2.0alpha1 ] array(2) { ["host"]=> string(5) "a.com" ["port"]=> int(80) }
 
12:07 PM
@kelunik mdref.m6w6.name/http/Url. That's from pecl_http
 
too bad it's extension :-)
not really userland?
 
I figured out how to make enums work without segfaulting but I don't like the solution
(that is, not make enum members be their own classes ;-;)
 
parse_url() borks when query string contains colon – #74780
 
12 hours ago, by Danack
anyone care about - https://wiki.php.net/rfc/doxygen ?
 
Better documentation is definitely a good thing, not sure whether it needs a strict format.
 
Wes
12:20 PM
@Danack yes please. but any documentation would be something
 
I'm not sure that formatting stuff in doxyygen format actually helps create more documentation comments.
 
Wes
there are listings of several thousands lines with literally zero comments
 
In fact, if comments now need to be parsed successfully by an external tool, that makes them harder to write, not easier.
 
@Danack I used to use it some time ago. it's nice because it can create callgraphs, but in general… it creates docs so who cares
 
@Sjon another bug or intention? :D
 
12:24 PM
"some time ago" - yeah.......I think I used it a decade or so ago....
 
12:36 PM
@DejanMarjanovic cheers!
 
Do you need hosting?
I mean, the one you don't need to pay
 
@DejanMarjanovic no thanks! :)
 
yeah I know, you can't buy beer with that :D
 
@DejanMarjanovic thanks for the offer. The current setup is sufficient.
 
You can pay in BAMs? youtube.com/watch?v=o4BOZcDMw_A
 
12:39 PM
Awesome :-)
@Danack I still laundry money in that currency :D
 
@DejanMarjanovic Do you have a github/Twitter profile to link to on the sponsors page?
 
@Sjon twitter.com/webarto aka webfarto thanks @Jimbo
 
@DejanMarjanovic :D
 
I mean, Dumbo
> ORM::factory(inflector::singular($original_table))->$table->select_list('id', $column)
Rings any bell @shadowhand ? :-)
Sowieso, I've opened a bug for that parse_url() just so it sits there: bugs.php.net/bug.php?id=74780 :-)
 
12:57 PM
Sooo yeah no yeah no... sorry I can't do this... I have to put a PHP site live on PHP 5.3
/me runs out of the building...
 

« first day (2438 days earlier)      last day (2510 days later) »