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

11:00
looks a bit awkward in places ... that's just docbook fucking things up ...
if you could get the rest of the types filled in, and maybe some words ...
and also check it, because I see a mistake already, in that random screenshot ... I hate docbook, after ten minutes you just feel lost ...
Wes
Wes
ok, let me have a look
why can't I find your github handle ?
oh I found it ...
you don't need to fork, just branch in that repo, then I can test and merge ...
@tereško Can you please tell me the name of your computer hardware?! I want these:
1. CPU
2. RAM
3. HARD DISC
4. MOTHERBOARD
5. POWER
11:10
@Shafizadeh because what I have is 3+ years out of date
and when I made it, I had no budget restrictions
if you want to assemble a PC, then give me number for how much you approximately are willing to spend and few links to some online shops in your country, so that I can see the available options at that price-range
@tereško I'm trying to assemble a computer, but I read somewhere just an expert should choose the hardware .. because sometimes hardware won't match with each other. match == not using the maximum ability
what you read is true
I read somewhere else, sometimes a cheap computer works faster and better than a expensive one, just because of good choose of hardware
yeeeees
@tereško so is there any online website to tell me what hardware should I buy ?
11:15
no
ok :-(
but there are sites, that you can use as the "baseline": logicalincrements.com
problem is: those prices won't match the ones in your country and not all of the hw will be available
Wes
Wes
@JoeWatkins why doesn't node have its own folder?
and those are "baseline" option and not the optimal
commonmark/node
user8444404
11:17
please help me to correct <td> code in below :
user8444404
<?php

while($row = mysqli_fetch_array($result))
           {
                $output .= '
<tr>

<td> <input  type="checkbox" id="assigneeid-<?php echo $orderrecords[$k]["tracking_id"]; ?>" onclick="assignorderids('<?php echo $orderrecords[$k]["tracking_id"]; ?>')" name="checkassigneeid" class="assigneeid-order" value="<?php echo $orderrecords[$k]["tracking_id"]; ?>"> </td>

</tr>

                ';
          }
Wes
Wes
aaaaaaaah now i get it, i thought that was the ns
it is, because CommonMark\Node is a class and an NS ...
@vickeycolors learn to use templates
& use change, not click
user8444404
11:19
@tereško thanks before that <td> code was in another table, now i need to include that in while loop..... i will use templates.....
no
you learn to use them now
the reason why that code is confusing as secondhand vomit, is because you are mixing the responsibilities, that should not be mixed
@vickeycolors try giving this a quick read: chadminick.com/articles/simple-php-template-engine.html
user8444404
sorry @tereško , i will follow that link.....
Error generating request when /definitions/types/schema.targetNamespace not set – #76142
!! final in php
11:39
guys weird thing with setlocale in 5.6. when i do setlocale(LC_ALL, 'ar_MA'); oftentimes this returns false, vs, ar_MA as expected. any idea why this is happening
@Andy Locales are system dependent
understood, the locale ar_MA is on the system so i'm expecting it to always return something. unsure why it would return false some of the time vs. all the time. All the time i can understand
If the exact same call returns different results it's weird
Wes
Wes
@JoeWatkins do i need to write multiple <para> right? or do i need <br>
yeah the same call
Wes
Wes
11:44
e.g.
<section xml:id="commonmark-node.intro">
&reftitle.intro;
<para>...
@Wes Don't use br
literally doing: $locale_return = setlocale(LC_ALL, 'ar_MA'); var_dump($locale_return);
Wes
Wes
ah right i can ask the dutchman too
Not anymore
/me is busy again / still :(
@Wes multiple para
11:45
Just popping in and out of chat :)
@Shafizadeh not sure if I would describe me as "expert", but I have some understanding on that subject :P
@tereško then suggest me a collection of matched-hardware ..
34 mins ago, by tereško
if you want to assemble a PC, then give me number for how much you approximately are willing to spend and few links to some online shops in your country, so that I can see the available options at that price-range
@tereško oh great .. I didn't see this comment
wait a sec
Wes
Wes
it's a bit hard to write documentation for something i never tried
11:48
@Andy Can PHP see the locale? If you have intl, try looking through ResourceBundle::getLocales(''); (returns an array)
@tereško I want to buy hardware from this website. The money unit of it is "Toman". And I want to spend almost 5,000,000 Toman.
Apr 14 '15 at 23:24, by Danack
function showRawCharacters($result) {
    $resultInHex = unpack('H*', $result);
    $resultInHex = $resultInHex[1];
    $resultSeparated = implode(', ', str_split($resultInHex, 2)); //byte safe
    echo $resultSeparated;
}

$foo = serialize("woot\x00Yeah");

showRawCharacters($foo);
Wes
Wes
@JoeWatkins in commonmark.node.xml do i need to fix just the paragraph or there's more to do?
@Danack Saved, thank you very much!
I think that's it for that file ...
11:50
@Sean looking now. it's a docker container, so rebuilding incase i've fuxxed something up
Wes
Wes
how do i reference a class inline in the paragraph, like {@see } in phpdoc?
namespace to the class?
If any brits here are Blade Runner fans, I went to secret cinema on Wednesday, had a pretty amazing time, well worth the money
yeah i know a mate who went said it was the nuts
So, so well done
Wes
Wes
11:52
!!annoy @PeeHaa
Honestly considering going again in a couple of months
@Shafizadeh ok, I will try to put something together tomorrow
<ooclassname> might do it ? or <type>
@tereško thank you so much
@Wes ?
Wes
Wes
11:53
> how do i reference a class inline in the paragraph, like {@see } in phpdoc?
@Leigh I don't think I've heard a bad secret cinema experience from friends, never been myself
You just want to linkify a textual classname?
Wes
Wes
you guys weren't joking
@PeeHaa yes
docbook is literally the worst thing ever
@Sean && @Leigh i hear the promethius one was mind blowing. i wish i'd gone to the BTTF one though
Wes
Wes
11:55
thanks
@Shafizadeh btw, few more questions: do you have any size preferences (it would not affect the actual power) for the chassis, how dusty are the conditions, does the price include the monitor?
Wes
Wes
<code> is <literal> ?
no
@tereško - the price is only for the case (it means not including monitor, mouse, keyboard, speaker). Also I don't want a game-computer (though I need to some graphical software like photoshop). I want to use that computer for "coding (phpstorme), watching movies, and I want a fluent performance"
you have to look at dtd ...
so, GPU should not be over 30% of the price
and you need at least 16GB of RAM
12:01
@tereško GPU is for ghraphical things?
it the "video card"
@tereško GPU is a part of CPU? or a separated board?
separate thing
12:03
got it .. just one thing, how are you working with that website? isn't it in Persian for you?
:P
how would you use a site in Chinese ?
you would look at the links :D
:-) good
and the technical terms are in english anyway
the odd thing is, I'm seeing two fans on the list of GPUs you linked .. I guess it is a CPU and wrongly shown in GPU category
no, the video card is like a "mini computer"
12:06
really?! can it has fan on it ?
it contains it own processing unit, it's own memory and what you are seeing is it's cooling
I see
is GPU for gaming right?
partially
ah
ok :-)
the proper gaming cards are over 2M
12:07
Even browsers use GPU accelerated rendering these days
I am looking at something under that price
ah ok thx :-)
Anonymous
@tereško eh, isn't that like 100 euro ?
Got around to watching the martian last night, it was pretty intense at the end like.
that's mostly nvidia's 1050ti and amd's r9 260 ... I might find a cheap 270
user9098366
12:08
php.net/manual/en/function.addcslashes.php - If charlist contains characters \n, \r etc., they are converted in C-like style, while other non-alphanumeric characters with ASCII codes lower than 32 and higher than 126 converted to octal representation.
Wes
Wes
what happens if i do $document->appendChild($document) or $document->appendChild($anotherDocument) ? @JoeWatkins
user9098366
why does the conversion take place?
@Sean good book ... goes on and on and on and on ...
Wes
Wes
in other words, what does it throw if the argument is invalid?
@Wes RuntimeException
user9098366
12:09
and what is the C-like style conversion of these - \0, \a, \b, \f, \n, \r, \t, \v
Wes
Wes
i get that you want to keep the extension simple, but why spl?
just throw Exception, no?
it's a built in class that people know the name of ...
Wes
Wes
i thought we all agreed that spl exceptions must burn in hell
@tereško noted that, that website is a bit expensive sales. I mean I can find those hardwares 10% cheaper in the real shops. So you can choose a computer about 6,000,000 in that website
meh, they are the only part of SPL I use, because I don't see the point in declaring another RuntimeException in every extension I write ...
Wes
Wes
12:11
just throw Exception?
or InvalidArgumentException ... those are the only ones I use from spl ...
catch all blocks are nasty ...
Wes
Wes
runtimeexception is a domain-less exception and using them is an antipattern
and so is invalidargument
antipattern ?
@Wes ?
Wes
Wes
it should be invalidnodeexception
12:12
no it definitely is not ...
@JayIsTooCommon well, under 2M there is even 1060 ... I am not sure about the exchange rate
Wes
Wes
i don't want to argue @JoeWatkins but really you should avoid spl
and if I somehow manage to squeeze that into the build, that will be quite impressive
Wes
Wes
there is no need to specialize exception or error like that
exception is already a runtime exception
how do i annotate @throws though?
@throws RuntimeException When passing an invalid node
12:16
there is no need to specialize exception or error like that
what are you talking about ?
you think there's no need for specialized exceptions ?
so you're prefer code with catch all blocks everywhere ?
that's nonsense
I don't understand what he's saying either
hell, @JayIsTooCommon, at 1'990'000 you can even get a R9 580
Wes
Wes
Exception <- runtime exception
RuntimeException <- also a runtime exception
Anonymous
@tereško wtf
@JayIsTooCommon see for yourself: digikala.com/search/category-graphics-card/… (it's sorted right-to-left)
and that's a Sapphire card at that
Anonymous
12:18
How on earth are they managing that
I have no idea
@Wes A RuntimeException is a RuntimeException? Ok, Captain Obvious, what am I missing? I mean, apart from not getting why the more generic Exception is a RuntimeException in your book.
@Shafizadeh so ... you will get your initial build some time in the afternoon tomorrow
@tereško I appreciate .. waiting for you ..
Wes
Wes
@JoeWatkins not sure if correct github.com/krakjoe/cmark-docs/pull/1/commits/…
actually
> Throws <classname>RuntimeException</classname> if the provided child is the node or
a parent of the node, or if the child is already attached to another document.
12:32
@Shafizadeh is there another site, that you can link me to. This one seems to be extremely low on the options for chassis (the boxes themselves)
Wes
Wes
@JoeWatkins i am missing the Node constructor signature i think
@tereško actually that website is the biggest story in Iran and others buy from that. Also if your mean by "chassis" is a box as wrapper of hardware, I have to say I don't care about that. It doesn't affect on the performance
it actually does
it also affects what parts you can choose, and how fast it fills with dust and how much room you need
@tereško Ah, I thought you're talking about a plastic box surround the hardwar
I am
12:38
ah
the main reason for them is to create an airflow, that cools the parts
@tereško yes .. can't you choose one of them? take it easy, there are more than 100 chassis ..
@tereško yes true
ok, if there are not other options, then I will have to find something decent there
thx :-)
I assume you would prefer not to have a huge LED monstrosity
12:43
@tereško also this is another website bamilo.com/computer_parts/?source=gfm (but not as standard as the previous one)
@tereško nope .. a huge LED monstrosity isn't attractive for me.
looks good enough ... you don't want to know, what type of sites @Fabor was sending me ... and it all was in Vietnamese and I had to use a slow proxy to even see those sites
you will lose
rock solid
12:58
morning
13:13
@Wes no node constructor
Wes
Wes
@JoeWatkins so after a node has been adopted by a document, it cannot be adopted by another, unless it's removed first?
correct
your examples can call CommonMark\Render\HTML or one of those functions ...
looking good, keep at it ...
can I make a suggestion though ?
I suggest you fix all the return type and prototype related stuff, then add example after, so we can commit a reasonably complete docs by the end of today ...
examples can come whenever, I don't normally do them, because lazy ...
Wes
Wes
examples are easy if it works like other commonmarks
it does, is exactly the same, other than the word "exit" replaced with "leave" for obvious reasons ...
although that appendChild example is very verbose, you can render a Paragraph on it's own ...
Wes
Wes
but please consider about using Exception rather than RuntimeException
spl is ridiculous
13:20
I'm not going to encourage people to write catch alls ...
Wes
Wes
but runtimeexception is a catch all too..
and before you suggest NodeException again, that might not be reasonable, a runtimeexception is thrown whenever the runtime (libcmark) fails, throwing a NodeException would mean having to duplicate logic ... and I don't want to do that for obvious reasons ...
it's less catch all than a catch all ...
Wes
Wes
ok i get it, joe is in love with spl
you should document how the properties work also, because readonly and typed properties are pretty foreign I think ... they will throw a TypeError when you try to set a type read/write property, and RuntimeException when you try to set a readonly property ...
Wes
Wes
yes i am still trying to organize my work, hold on
and i still don't know why appendChild returns a node
13:23
we're not 8 years old, I'm not in love with it, all of the rest of spl is terrible, but it so happens that it SPL defined some core exceptions first ... I consider rt and iva exceptions core classes ...
so you can chain ...
@JoeWatkins Do you tend to throw those directly, or extend them?
Wes
Wes
i just have exhausted all my arguments @JoeWatkins i said that spl exceptions are insane and even more so in new code
from extensions I throw them directly mostly ...
Wes
Wes
if you want to throw generic exceptions use Error or Exception, which are roughly unchecked and checked base types
but ideally you should extend exception
but rt already extended it ...
what's the point in extending it just to use another name ?
Anonymous
13:26
hola
Wes
Wes
are you serious joe?
there's no being pure in php land, we get shit done, mess is made, we get over it ...
3
Wes
Wes
this conversation is poisoning my liver
@Wes it would be a runtimeexception by another name, wouldn't it ?
throw new ToysOutOfPram();
13:29
RuntimeException happens to be a good description of the nature of the exception, that it happens to live in SPL is unimportant ... if there were no SPL and I defined RuntimeException it would presumably make you happy ...
it's the same thing, there is no spoon ...
Wes
Wes
yes, you know one that you could think to catch without catching all runtimexceptions ever thrown @JoeWatkins
I did not follow the context, but imho throwing spl exceptions is fine if the exception is not intended to be caught routinely
That is, using an spl exception for "json parse failed" is unacceptable, but using it for "argument is negative" is fine
what he said ...
Wes
Wes
...
why would you deny me the chance to handle "argument is negative" in a clean manner
because you have no business handling it, really
Wes
Wes
13:32
this is classic php, throw new NotMyBusiness() and fuck you
see, you even acknowledge it yourself :P
if you ever find yourself writing a catch(InvalidArgumentException) there's a pretty good chance you're doing something wrong
Wes
Wes
except that i'm not the one that decided to throw InvalidArgumentException in the first place. how can you tell what's an exception that requires a specific type and what doesn't?
you can't, that's the answer
therefore, it is good courtesy making all exceptions easy to handle
and use generic ones for actual stuff you cannot possibly ever handle in code
"handle in code" says you think of them as a kind of flow control ...
they're not that, they're fancy errors
how the hell is it near the end of March already
there's no handling them, you done something wrong, and we should tell you as much information as possible about it, and attempt to halt execution ... nothing else matters ...
there's a very very tiny minority of cases where it might be reasonable to abuse them for control flow, such as networking, but the people writing that stuff are aware they are abusing exceptions for flow control, so is everyone else, and we allow it ...
helping average Joe to have endless catch() blocks everywhere is not a thing we should care about or aim for ...
Wes
Wes
13:46
so you are saying that if i get an exception that is completely recoverable from, i should terminate the program instead?
@Sean Dude, you set up Behat yet?
Wes
Wes
i don't think that's how exceptions are meant to work
Also look what arrived :)
Right, let’s start being a bit more serious now...
I opened the first chapter and was like... nope. So looks like I have a lot to research
@Jimbo Written a test case for it but our system and testing do not go well together, makes me sad.
@Jimbo huh ? you didn't learn about algorithms at uni ?
Anonymous
13:49
@Jimbo what language is that in?
@Wes what do you mean by "completely recoverable from" ? an exception is just that, exceptional, there shouldn't really be recovery, unless the thrower of the exception is forcing you to use them for flow control ... in an ideal world, you would see no catch() blocks in top level code, and vanishingly few at levels lower than the top ...
@samayo Introduction to Algorithms sounds like English to me
3 messages moved to Trash
Wes
Wes
recover/handle
Anonymous
@Gordon lol I meant the programming language in the book
13:51
@samayo I know
Wes
Wes
@JoeWatkins joe wtf
so why bothering having try catch at all
Anonymous
so no codes
@JoeWatkins Nope. No formal notation, complexity, nada
probably pseudocode
unless it's mathematical
yes and some java, C iirc
13:52
handle is very different from recover, if by handle you mean log, or terminate gracefully, then that's what catch() is for ...
@samayo Looks like mostly pseudo code, and then all that maths notation with backwards Es and everyhthing
Wes
Wes
handle and resume the program like nothing happened
@Jimbo :O
if you can continue you weren't really in an exceptional execution state
Anonymous
so algorithm is more maths-ish than codes and programming
Anonymous
@Wes he's got a point
Wes
Wes
13:54
who said it's the state that has to be exceptional?
@samayo yes
Wes
Wes
so why bother having exception types at all? @JoeWatkins why are exceptions not final?
a lot of theorem proving in there
Wes
Wes
@JayIsTooCommon not sure about that
@Wes I'm not sure I see the connection ... but obviously while handling (logging/terminating) having a named exception is useful, if you have 100000 log lines to scan, it's easier if exceptions have names ?
and I'm not against that, but in an extension that provides a few classes, it seems unnecessary ...
13:58
create a proper build process at some point, probably after 2.0
#202 opened on 29 Mar 2017 by EleventyJeeves
Phhahahah
it's been a busy year
@JoeWatkins I've always been really bad at maths, actually, since school. Whenever someone asks me a major weak point that I have, maths is honestly it. So far I've managed to avoid needing it, and I've done a really good job, but I think it's time I finally kick my own ass and sort that shit out :)
Wes
Wes
@Jimbo hint: time complexity doesn't mean anything
@Jimbo never took calc? :O
I'm not the best at maths either ... but you know they are teaching 12 year old's about algorithms in school now ...
Anonymous
14:00
@Wes testing?
Wes
Wes
@JayIsTooCommon dude...
Anonymous
:)
I like math..
@Jimbo if want to please look at this may be you like it. algorist.com
math makes my head hurt, I have bob and nikita for math I don't understand so I don't need to understand it ...
14:01
:P
@Tiffany In England we don't have "calculus" until probably A levels, I didn't do maths at A levels, so... I guess not?
@Jimbo A level?
@Jimbo maybe don't start out with a book like that ... maybe grab a gsce/a level reading book ... it will surely be in a language you understand
Yeah A level maths was a pain
Totally flunked it, ended up with a C (iirc) in AS maths before Uni
@JoeWatkins I did GCSE maths though, was fine with that, trig etc is pretty basic stuff
14:03
@Tiffany After high school, but before university.
I'll think about A level ones though. I'm sure I can get an understanding of the notation required for the book
Age 17 - 18
Anonymous
Also known as pointless levels
yeah get more foundational reading material ...
I look pre-calc in high school, 11th grade. Took statistics for one semester my last year of high school, and that was all I needed. I didn't like how math was taught in high school. When I started taking math at a college level, I started to shine again.
14:04
@JayIsTooCommon Unless you were going to uni, in which case it was A levels or nothing ):
you are all spoiled with your fancy educations ...
Anonymous
uni schmucks
The places I applied to didn't care that I had a portfolio of stuff outside of education, just looked at those letters.
lookin good
14:05
-"This is a PHP class for generating PDF documents" -What do they mean "a PHP class"? Oh my.....
Anonymous
wtaf
jesus
Anonymous
turns out satan can code
that's a fat class
Anonymous
oh my it's disgusting
14:07
why
why would someone leave that
that's what all php code used to look like ...
Satan doesn't code. He only encourages you to code yourself.
> TCPDF project (tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey
Anonymous
> Last Update : 2015-06-18
^ Author started a new project to redo it - github.com/tecnickcom/tc-lib-pdf
Our largest php class still stands at 22k lines. PHPStorm screams when I open it
14:09
GH won't even render the whole file :D
Anonymous
Anonymous
ah there's a todo there tbf
@JayIsTooCommon O____O
ah, wait, it's just tcpdf
Oh god lmao phpcs picked up 21967 problems. There's 21973 lines in the file
14:13
@Sean ouch
Wes
Wes
@JoeWatkins looking good so far? github.com/krakjoe/cmark-docs/pull/1/files
Anonymous
@Sean it works though. Marston approves.
@Wes yep
@Tiffany Well the URL does refer to the blob master
What's the bit of kit which pulls back stuff like the cyclmatic complexity, largest method in file, etc?
14:22
md I think ...
@Sean I think I have one that does it but can't remember which, in my compoer I have,... phpmd, phploc, phpcpd
it's "cyclomatic" ...
phploc does it
^ That's the one, thanks!
are you people seriously telling me you have never seen tcpdf before?
14:25
not before now
Anonymous
@DaveRandom nah mate
fpdf is arguably worse
morning
Anonymous
seeing else used in any method disturbs me
The method edit() has an NPath complexity of 28990250648923523575968436841804405012748550220440700928. The configured NPath complexity threshold is 200.
12
Nearly crying lmao
Wes
Wes
14:29
@JoeWatkins how do i comment class properties? :\
3 messages moved to Trash
14:53
@Sean PHPUnit's code coverage report does it too.
Oh, no. That's a different thing.
user9098366
hey, would somebody be able to explain? php.net/manual/en/function.addcslashes.php
user9098366
Parameters -> charlist
user9098366
If charlist contains characters \n, \r etc., they are converted in C-like style, while other non-alphanumeric characters with ASCII codes lower than 32 and higher than 126 converted to octal representation.
user9098366
this is addcslashes()
user9098366
14:57
\n, \r - converted in C-like style? Why does this get converted? C-like style of converting? Any url explaining this?
user9098366
with ASCII codes lower than 32 and higher 126 are converted to octal representation - Why do they get converted?

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