« first day (2715 days earlier)      last day (2457 days later) » 

Wes
Wes
15:02
@JoeWatkins can confirm new text("xxx") requires utf-8 encoded strings only?
is there some way to ask the client to do a http request instead of doing it on the server?
Wes
Wes
@JoeWatkins is $textNode->literal actually nullable? it looks it isn't
Anonymous
@devRicher wat?
@Wes yes, it may be null
i want to http GET a website but not from my server, from the client's browser/computer
Wes
Wes
15:09
@JoeWatkins it probably just casts to empty string
Anonymous
@devRicher Do the request client side then? AJAX
@Wes it may be null
Wes
Wes
github.com/krakjoe/cmark-docs/pull/1/files i am a bit slow @JoeWatkins but doing other stuff
then shouldn't the new Text constructor accept null too?
@Wes no
<?php
$text = new CommonMark\Node\Text;

var_dump($text->literal);
?>
// NULL
Wes
Wes
which is what i said
new Text(null)
15:13
public __construct ( void )
@JayIsTooCommon how do i do that exactly?
Wes
Wes
final class Text extends \CommonMark\Node {
public $literal;

public function __construct();
public function __construct(string $literal);
}
which is ?string $literal
Anonymous
!!? How to use AJAX
Search for "How to use AJAX -site:w3schools.com" (https://www.google.com/search?q=How+to+use+AJAX+-site%3Aw3schools.com&lr=lang_en)
• How to Use jQuery's $.ajax() Function - SitePoint - 26 aug. 2015 - This article explains how jQuery's $.ajax() works. This is the most powerful of all… (https://www.sitepoint.com/use-jquerys-ajax-function/)
• A Beginner's Guide to AJAX With jQuery - 9 feb. 2016 - In this tutorial, I demonstrated how you can use AJAX with jQuery. To make things mor… (https://webdesign.tutsplus.com/tutorials/a-beginners-guide-to-ajax-with-jquery--cms-25126)
Wes
Wes
also null doesn't make sense
Anonymous
15:14
@devRicher ^ It's quite well documented and they'll be better guides out there than what I can tell you. take a look :)
you can't set it to null, it may be null
you can only set it to a string ...
Anonymous
Also, whoever added that -site:w3 is a legend
Anonymous
!!version
Wes
Wes
@JoeWatkins can i do $text->literal = null; ?
15:16
if you really mean to set something that may possibly be null, you can cast, but the spec says it should be empty (null) or a string, so that's all the runtime will allow ...
if you cast null to a string you can ...
Anonymous
Who's KyraD?
Wes
Wes
$text->literal = "foo";
$text->literal = null;
assert($text->literal === null);
> $text->literal = null;
can't do that ...
Wes
Wes
will this assertion ever pass
@JayIsTooCommon cryptic
Anonymous
15:17
@crypticツ <3
TypeError at ^^that line ... "literal expected to be string"
Anonymous
@PeeHaa we should play fortnite.
Wes
Wes
then how it's possible it can be null
@JayIsTooCommon I suck sooo much at it
because we're not allocating and storing an empty zend_string for every Text node that is accessed :)
15:18
But yeah we could
Anonymous
same... 5 shots of tequila for every time we die.
Just don't shout at me when I fuck up
Anonymous
should make it interesting
lol
That means I will be dead
:P
Wes
Wes
aren't strings interned?
15:19
Still
Anonymous
:B
the spec says you can only assign literal "", or "some string" ...
I do much better as pubg
Wes
Wes
i'd expect the empty string to be interned pretty easily
That I reeeeally suck at
Anonymous
15:19
pubg?
Wes
Wes
yes joe is what i am trying to say, but you insist with null :P
cmark strings are on a different heap already ...
@JayIsTooCommon That other battle royal thing
Anonymous
oh, til
15:20
@PeeHaa I won a solo match once.. It was all downhill from there :P
Wes
Wes
anyway ok, i don't care
@pmmaga I never came close
Had flashbacks to school when I had to play CS with the guys
spawn -> kill -> spawn -> kill
Anonymous
we could make a very ineffective yet entertaining squad
Wes
Wes
check the PR @JoeWatkins
@Jimbo Last night I took a copy of my current app and tried to move it to that system. I ended up with a lot of duplicated folders. It seemed like...more complicated. Not yet.
Also morning.
15:21
Fortnite is hella fun to watch
@JayIsTooCommon That is true :D
Rofl. Room 11 PUBG Squad.
looking good @Wes
lots of todo :)
Wes
Wes
because i am going to annoy you yet again over return $this :P
i am like that.
it would be fun to play a game as a group sometime
Anonymous
15:23
we say it a lot ..
I know :P
we even have a discord.....
and I'm going to annoy you by disagreeing ...
@JayIsTooCommon I actually opened rust for a couple minutes a while back. Looked so much nicer now
Anonymous
I miss rust, they were some hella funny nights.
Anonymous
you suck with lack of voice but apart from that, was a good laugh
15:24
:P
@devRicher I think fetch() is quite well supported these days too.
Wes
Wes
where's that "how to win a programming argument" pic
Hello, is there a way to compile PHP so that I don't have to install all dependencies on the server when I deploy apps.Thanks
!!? js fetch
Search for "js fetch -site:w3schools.com" (https://www.google.com/search?q=js+fetch+-site%3Aw3schools.com&lr=lang_en)
• Fetch API - Web APIs | MDN - 1 feb. 2018 - The Fetch API provides an interface for fetching resources (including across the netw… (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
• Using Fetch - Web APIs | MDN - 3 dagen geleden - The Fetch API provides a JavaScript interface for accessing and manipulating part… (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch)
Wes
Wes
15:25
@jjok eh, not really
@DaAmidza How often do you have to install extra deps?
the answer is yes, but not really ...
evening room.
Also think about it
@PeeHaa not often, I was just wondering.
15:26
Instead of yum install something you would have to recompile if that was even sanely possible
if by deps you mean extensions, then you can compile most of them static .... but a select few (I forget which) cannot be static, notably o+ cannot be static ... so ... not really ...
unless you happen to be excellent at writing makefiles, then anything is possible ...
Anonymous
@PeeHaa I'm not sure if I'm going out tomorrow night but if not, wanna rust?
Not sure
I might totally crash / be a zombie
Have been working like crazy last few weeks
@JoeWatkins I'm not excellent at writing makefiles.Thanks for the help @JoeWatkins and @PeeHaa
But if I am alive and the gods allow it sure
15:28
@PeeHaa I allow it
Anonymous
okie doke, we'll play it by ear
\o/
@Allenph I got PUBG Mobile. Wanna team up?
Also, what was it complicated? You're only grouping things into contexts, or subjects, nothing much more. Then you change the namespaces. Bam, thats it.
FINALLY making progress on this damn iOS app
@Tiffany pain in the ass isn't it.
Wes
Wes
15:34
@JoeWatkins
@KerrialBeckettNewham incredibly
Wes
Wes
you know i love you <3
@Tiffany You new to iOS development?
@KerrialBeckettNewham it frustrated me earlier this week to the point that I went into the server room and screamed
@Tiffany ah, why's that?
15:36
@KerrialBeckettNewham I am, but I didn't write the code, I was provided code and I'm building it so that it can be tested.
@Tiffany oh that's the worst. see something and you're like why on earth did they do that.. lol
@KerrialBeckettNewham trying to resolve an error I was encountering and anything I tried... Xcode wouldn't budge, I felt like I was losing my sanity
The vendor has a pretty good support though. I've probably opened half a dozen tickets with questions.
@Tiffany I had a full rage with coco pods and Xcode was just constantly crashing.
@KerrialBeckettNewham that would be annoying as fuck
haven't had any crashes, thankfully
Hello, I have a question regarding PHP
15:44
@Wes oh ... okay, you win ...
Is this the proper place to ask?
that's not how the internet works @Wes
> Don't ask to ask, just ask.
So I'm working on a marketplace website to sell wood. I have a webpage which shows the available ads by page of 10 ads. I'm asking myself if I should do a single SQL query in the database to retrieve all the ads, or do one SQL query for each page of 10 ads.
If someone's able to help, they'll respond
15:46
One of the advantages of having a PHP array with all the ads is that I can tell if at let's say page 1 there is a page 2
But the PHP array would be very heavy
Anonymous
@JacopoStanchi do two. One for count and one limited for the current page
Anonymous
!!? SQL COUNT
Search for "SQL COUNT -site:w3schools.com" (https://www.google.com/search?q=SQL+COUNT+-site%3Aw3schools.com&lr=lang_en)
• SQL GROUP BY | COUNT | Examples - DoFactory - SQL GROUP BY Clause. The GROUP BY clause groups records into summary rows. GROUP BY returns one rec… (http://www.dofactory.com/sql/group-by)
• SQL SELECT COUNT, SUM, AVG | Examples - DoFactory - SQL SELECT COUNT, SUM, AVG. SELECT COUNT returns a count of the number of data values. SELECT SUM r… (http://www.dofactory.com/sql/select-count-sum-avg)
@KerrialBeckettNewham the part that amuses me is that it took me less than a week to build the Android app from the vendor's code. I'm on week two for the iOS version.
@JayIsTooCommon Yeah I thought of that but that would make me do 2 queries. I thought about making a SQL query which retrieves 11 ads to know if I can show a button for the next page
15:53
!!? COUNT site:mysql.com
Search for "COUNT site:mysql.com -site:w3schools.com" (https://www.google.com/search?q=COUNT+site%3Amysql.com+-site%3Aw3schools.com&lr=lang_en)
• MySQL :: MySQL 5.7 Reference Manual :: 3.3.4.8 Co… - 3.3.4.8 Counting Rows. Databases are often used to answer the question, “How often does a certain t… (https://dev.mysql.com/doc/mysql/en/counting-rows.html)
• MySQL 5.5 Reference Manual :: 12.16.1 Aggregate (… - mysql> SELECT COUNT(DISTINCT results) FROM student;. In MySQL, you can obtain the number of distinc… (https://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html)
Anonymous
@JacopoStanchi what's wrong with doing 2 queries?
@Tiffany haha, what you getting hung up on?
moar site: when doing searches gives much better results ...
Anonymous
ite
15:54
write that 2^32 times, on my desk by monday ...
Anonymous
fine
@KerrialBeckettNewham getting a compiler error on a watchkit extension... that I don't even give a fuck about, but Xcode still wants to build it. I've tried removing it, but then it complains about the files missing.
@JayIsTooCommon Because in fact I dont retrieve all the table, but only ads which match certain criteria given by the user, so the DAO method to find ads is very long and that would make me do another method like that just to have the COUNT
@JayIsTooCommon What do you think of the 11 ads solution?
@JacopoStanchi You'll probably want to use LIMIT with an offset
Anonymous
@JacopoStanchi the COUNT isn't resource heavy and if your structure is any good, the conditions in your query shouldn't be either. Have one query with a LIMIT and offset and another with no LIMIT for the count
Anonymous
15:57
@JacopoStanchi You're showing 10 per page?
@Wes afk couple of hours, dinner ...
Anonymous
@JacopoStanchi Then no, you're retrieving extra data that you don't need. And if you want good pagination, you should allow the user to select what page they want to view, not just next page.
@JayIsTooCommon Yeah you're right. Thank you all for your help
Anonymous
@JacopoStanchi No worries - With regards to having to repeat your method, don't. Use the same method twice to get the criteria. Research DRY
16:00
@Tiffany try and change the app's deployment target to 9.0
@JayIsTooCommon For SQL I assume?
Anonymous
@JacopoStanchi huh?
@KerrialBeckettNewham not sure that's a good idea, I know the vendor's app supports at minimum iOS 10
@JayIsTooCommon You said I don't have to rewrite my method right? I must use DRY?
@Tiffany when was the first app built?
Anonymous
16:02
ah
Anonymous
!!? Dry programming
Search for "Dry programming -site:w3schools.com" (https://www.google.com/search?q=Dry+programming+-site%3Aw3schools.com&lr=lang_en)
• Don't repeat yourself - Wikipedia - The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authorita… (https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)
• DRY code vs. WET code | Codementor - 30 mei 2017 - Everyone knows that dry stuff is lighter and easier to maintain, manipulate, and stor… (https://www.codementor.io/joshuaaroke/dry-code-vs-wet-code-89xjwv11w)
Anonymous
@JacopoStanchi ^
@KerrialBeckettNewham the vendor's? not sure, we weren't using them for their mobile app until recently
Is there a plan for array_map(), array_filter etc to support things other than arrays? eg Generators and Iterable?
16:04
shrug, don't worry about it, I have a ticket open with the vendor, they should be able to help
@JayIsTooCommon I don't see how I could use it for my case
What is heavier between SQL COUNT(*) and PHP sizeof(array) ?
16:20
@Jimbo Yeah, sure. Maybe at lunch.
It's not complicated to change. My point is that you're basically separating aggregates into components and their directory structure does not stay consistent with each other.
Guys we need to step up our game: reddit.com/r/dataisbeautiful/comments/86jqp6/…
We don't need to search because we have it bookmarked
@JacopoStanchi define heavier, heavier for what?
Doing the COUNT on the db server is probably lightest for everything tbh
Pls help me with matching this regex for mysm-21
I tried (.)\w+ , this only matches mysm
!!friday
16:44
mysm-21 matches mysm-21, .* also matches mysm-21
What do you want to capture, what do you expect to change / be variable? @Srinivas08
@Leigh Sorry for the time, yes I meant if it was resource heavy but this isnt very important.
Swagger / OpenAPI is just XSDs on bloody steroids
This is surely impossible to sanely maintain without tooling
16:59
It has utility
I'm in the middle of converting a big postman API set into swagger
"everything" supports swagger unfortunately
The only tooling I've been using is editor.swagger.io
@Sean i) how often do you make changes to your api? ii) Is documenting the changes really bigger work than making those changes?
As little as possible, just new stuff. Not seen or used it before though, it's a lot of detail.
Thankfully a new API so nothing massive to build up
looking good @Wes
posted on March 23, 2018

New Cyanide and Happiness Comic

think Node type should be FQN outside of CommonMark\Node ?
Wes
Wes
17:13
@JoeWatkins php.net/manual/en/ds-sequence.merge.php seen this here and seems should be fqn everywhere
those are both the same
but lol nonetheless
17:29
posted on March 23, 2018 by CommitStrip

4
@Wes agree, sorry computer froze ...
I've now got a slowdown problem on top of my freezing problem
17:47
My request to my university to allow me to get course credit to design and implement contravariant parameter types and covariant return types is now just waiting on final approval from the undergraduate committee. No idea how long that part will take; I imagine they only meet occasionally.
5
@LeviMorrison \o/
\o/ indeed!
My faculty sponsor has officially approved it so I'm not sure why it might get denied. Hopefully it just sails on through.
!!dad
Did you hear about the restaurant on the moon? Great food, no atmosphere
10298357640 – #76144
Anonymous
18:02
!!dad
How do mathematicians scold their children? "If I’ve told you n times, I’ve told you n+100 times..."
Anonymous
@mega6382 are you still playing ow?
Anonymous
i am playing fortnite also, but doesn't seem as hyped it is
Wes
Wes
@LeviMorrison amazing :D
@samayo Haven't played for over 2 months. Haven't been able to find the time.
user379888
18:18
Can someone answer this?
https://stackoverflow.com/questions/49455553/login-page-in-php-not-working?noredirect=1#comment85914321_49455553
Wow. That's one of the worst login scripts I've ever seen. Select the entire user table and loop over it, comparing to credentials.
user379888
If you see my old code I was doing that then people started saying use other way
you should use require_once instead of include so that it will return a fatal error instead of a warning if it doesn't work
Your second script is using variables not set inside the script
Also, you REALLY need to use prepared statements
also, this
18:38
There should be a way of closing a question as "Stupid"
Man...my mobo has a failure and I've lost an entire day of work setting up this new station.
18:57
umm, o/
@MadaraUchiha ;_;
im up for a game or two if you want :B
G'devening PHP
Wes
Wes
\o
19:09
o/
@tereško What DE you using?
@Ikari After I resolve this mess.
welp yeah
I really didn't think it'd be frozen
so... it is going to be unfrozen at some point of time, right?
@Ikari Most likely.
19:58
@Ikari Still up?
No :(
Got in bed a good couple of minutes ago
Will try to make it happen tomorrow, for sure
Alright, good night! :)
Night o/
I'll probably still be lurking in the js room for a while, to see the reactions of people joining later at what happened :p
Most of the reactions are likely to be on the GitHub thread, rather than in the room
People actually get notified of those
Oh, the culture repo?
20:07
did I miss some drama?
Not this room, r17
Javascript isn't dramatic, tho. They have no strict typing
20:38
@Allenph Plasma (KDE5)
20:58
@tereško Hmm. I would like to have tried that. I already just used GNOME3.
@Allenph deepin-desktop and budgie are pretty nice
Imo
@Ikari Dem' non-frees.
Keyboards under $50? Boss says I can have one. xD
Anonymous
who cares what language has strict type and what not if it just works? @Machavity
!!urban strict
[ strict ] State of the art technology, well done food, cool person etc. It is [strict] like a teacher could be in school-->He will teach you something, for sure. It has been translated from the Hungarian slang term(szigoru)
21:13
@Allenph is there a specific business you order through?
21:24
@Tiffany Amazon. :p
probably can't wing a mech board then :/
I have a cherry blue board that was purchased through CDWG
My co-worker just got a mechanical keyboard.
I just asked my boss to buy another one of whatever he got.
Right now I'm living with this crappy Amazon Basic keyboard.
I have a story but it's kind of mean.
21:31
?
Coworker's office is diagonal from mine, he hated the sound of my mech keyboard, I hated his random whistling. So I made a comment one time asking if he could stop whistling. He said something like "if you stop typing" or something. So I went and bought a Cherry brown board that has O-rings, it's noticeably quieter. In order to bring our own office equipment in, we have to "donate" it to the college. I told my boss what I had done, and he was like...
"what... just save your money... I'll move <coworker> to another office..."
:S
So he was moved to an office at the end of our hall, and had to share it with someone else.
I noticed I say "so" a lot... -_-
Rofl. Wow that's rough.
We have a guy in my office that slurps his soda, he doesn't drink it. It drives me insane.
But, I think I may be getting my own office soon ,so.
21:54
the worst thing about working in an office, is the other people in the office ...
3
@JoeWatkins the other people in the office while are in the behind of you and starting at your monitor
@Allenph do what I did, bring your own keyboard to work
and mouse
and headphones
... or find a job in a start-up :(
22:10
@tereško I have an even crappier keybaord.
They bought me a keyboard, so.
I own very few things, but all of them are good (though, slightly expensive)
Morgen
Guten Morgen
22:35
I did buy the keyboard, I brought it home instead. I like it.
It was on sale
I want nachos...
but I also want a nap
23:03
I am waiting for Das Keyboard 5Q to become available
@Tiffany I need all three of those things.. A new keyboard, nachos, and a nap
23:50
@Wes No. For now anyway the plan is that only types support type parameters.

« first day (2715 days earlier)      last day (2457 days later) »