« first day (2013 days earlier)      last day (3157 days later) » 

00:00
@Ocramius no, you'd infer it by checking what is being passed to the calls using the generic parameters (on each insertion in this case)
@bwoebi how can you infer it from $map[$commitHash1] = $commitHash2; without doing a runtime check every time and allowing type mutation too?
(because you'd mutate the type there, as the map has nothing attached when created)
@Ocramius that's the point … you allow type mutation.
And then you look if the type of the call and the types of the map are covariant
holy shit
no, no no
anyway - github.com/blackducksoftware/ohcount4j/pull/13/files - I didn't really follow the threaded logic in it, but the rest of the code was trivial to write, and the generics in it even provided as guard rail, so I couldn't really escape their original design
yeah, I really enjoyed having them like that
00:03
you used a catch union your self!
the duplicate declaration is not needed tho
@bwoebi yeah, the IDE compacted it
@Ocramius anyway … as you see… there are perfectly fine use cases where you have identical blocks…
(I didn't know this were a feature in Java actually)
no, I would have customized the exception there, but it was out of scope and I just needed a quick feature
I'm currently using the java version of that lib because the C version doesn't compile anywhere due to C's beautiful ecosystem of shared bs
:P
@Ocramius excuses, lame excuses … all lame excuses :-P
Anyway, the only thing I don't like about the generics is Type<A> $a = new Type<A>();
$a = new Type<A>() would be sufficient, assuming immutable type
00:07
Yeah, well… as said, I don't want to write code this way and that's why I'll reject generics if they force me to be explicit.
(I don't oppose to optional, but should definitely not be forced.)
I absolutely want them to be explicit - type information is critical when dealing with anything business-logic related
@Ocramius oh, sure … on function boundaries it's often relevant
but locally, you see what you pass in … absolutely redundant.
You don't need type information at all within private scope. It's mostly about what you expose via public API
data in and data out should be explicitly defined via generics there
alright, off, gotta do paperwork
@Ocramius in/out yes … instantiation is not included there.
IMO.
instantiation is "in"
00:11
@Ocramius sounds not fun … so … have no fun :-P
that's half of what VOs do
VO?
value objects
Most value objects don't need Generics info
collection objects yes
my CopiedCommitHashes is a VO containing a generic map data structure, so yes, they need it
00:14
@Ocramius yes, it contains a map … the VO itself isn't Genericized though
@crypticツ Not directly, but if you're using Ed25519 GnuPG keys then possibly. You'd have to extract the public key from the storage format.
 
2 hours later…
02:06
Hey guys anyone bit confident with Joomla? I'm trying to figure out why I can't get a correct url with JRoute
I'm trying to get an absolute SEF url, and tried with something like this
JRoute::_(JUri::root().'index.php?Itemid=164')
but it won't correctly render the sef for it, it will just print like http://mysite.com/index.php?Itemid=164 instead of the SEF version
while omitting the JUri::root() it will render correctly, but as a relative url ofc, any thought? what am I doing wrong?
Ekn
Ekn
02:22
@Gruber after a very quick google search, I think you may give this a try
mornings
Thank you @Ekn! I've found that already, but either they placed a kinda hacky solution or used a relative url wich is not what I'm looking for. I guess in the end a quick dirty patchy hack is the way to get this
Ekn
Ekn
Well, this is more informative, but honestly it's been years I've worked with Joomla, can't be more helpful than this. You should try posting a question if there's no other here or in their forums.
user6116249
02:39
he guys and gals what would cause a count result to echo 2 times once in 2 different categories but all else echos fine
user6116249
the same result
03:08
Morning
he!
@William a loop!
thanks a lot @Ekn! yea guess I'll post a question maybe
good morning
03:28
mornin
Ekn
Ekn
o/
how's the hand?
Ekn
Ekn
better, still not really able to carry coffee cup without pain though
at least it's not broken, only sprain
Ekn
Ekn
right, it does not hurt as much as it did when I type either, so I got that going for me
how's the new job stuff going?
03:38
mostly tiring
but I am left to do almost do whatever I want, so that's a bonus
Ekn
Ekn
that's nice
user6116249
04:21
@little pootis you still here?
user6116249
hey ekn
@William yep
user6116249
hey sorry for bugging you
user6116249
ive been trying to figure this out for about 8 hours lol
04:30
np
user6116249
can you have a look its confusing it echos all values perfect except count it displays the total of all records the same every category
@Ekn Franz Reichelt would have been proud
Ekn
Ekn
heh indeed
@William a min.
user6116249
04:39
np
What is the complete output?
user6116249
morning
user6116249
@little pootis what do you mean?
user6116249
how is it to display?
04:46
moin
user6116249
m
user6116249
@little pootis
user6116249
category forum name topic_count post_count
Ekn
Ekn
mornin Joe
user6116249
@littlepootis that's how its displaying now dangerclose.net/signature/shot.jpg
04:53
And what is the expected output?
Sorry, I'm at a funeral, so I can't reply instantly.
Ekn
Ekn
isn't that 3 the row count of all?
@William yeah, screenshots are nice
@Ekn yes
$sql2 = "SELECT * FROM forums";
$result2 = query($sql2);
$topics_count = row_count($result2);
[...]
    echo "<td>$topics_count</td>";
user6116249
lol see what I mean its display total count in both the cat 1 has 2 topics and cat 2 has one but both say 3 lol
Ekn
Ekn
can you understand why by looking above code?
user6116249
forum has 2 topics so it should be 2 not 3 forum 2 has 1 topic it should be 1 not 3 between both forums there is a total of 3 topics in the database
Ekn
Ekn
04:58
> there is a total of 3 topics in the database
and that's what you echo on your 3rd <td> in each row...
user6116249
well I have tried id equal id I have tried having I have tried group I have tried everything same result I have went through about 100 posts today
user6116249
even if I put WHERE cat_id = cat_id same result
user5236938
is there an easier way of selecting from a bunch of columns rather than FROM table AND table2 AND table3 yadda but not selecting from all.
user6116249
SELECT froum_id FROM forums WHERE cat_id = cat_id
user6116249
if there is two forums with the same cat_id it should only return the results of the id that equal
user6116249
05:09
this is ignoring the and resulting 3 1 which don't have the same cat_id
posted on April 20, 2016

New Cyanide and Happiness Comic

@William Read the code snippet I've posted above.
user6116249
i did
user6116249
so if i cannot echo topics count it will display nothing
Hi all gm
I need to build a web application with angular js+php+mongodb... API development involved in this.. do I need to go for some framework for the API development, if yes please suggest a better one... thanks in advance
Ekn
Ekn
05:19
@William erm... review what you have... three rows in total, two in 1st, one in 2nd cat, each cat has its own id... but that is not the count... you want the count per category
2mins
user6116249
ive been reviewing it for over 8 hours if category of 2 forums are 2 and category id of the oth forum is 1 if it is where cat_id = cat_id 2=2 1=1 it should only count those that equal each other
Ekn
Ekn
that didn't make sense
user6116249
ok if you lookup a user and uid = uid if a user id is 3 it will display the user info with uid of 3 because it equals the id
user6116249
id = id equals the same value if i don't want to get the cat id out of the forums table what do i have to compare it to? nothing
Ekn
Ekn
wait, you are just trying to see 2 for cat 1, and 1 for cat 2 right?
instead of the 3's, because the count of cat1 id matching records are two, for cat 2 it's 1 ?
don't do that please
pastebin it or something
user6116249
05:26
ok
Ekn
Ekn
can you do something like this?
@nu6A Lumen
will check it thanks @littlepootis
Ekn
Ekn
that's it... my battery is running out
g'day people
05:47
Moin
@NikiC that lexical anon patch is so wrong, I'm almost embarrassed ...
it cannot possibly work like that ...
it declares properties after create object and the allocation of inline properties, and then attempts to write to the inline properties that it created after they could have possibly been allocated
we need to have separate opcodes for declare and bind
I should have known, it was too easy ...
06:08
maybe can get away without more opcodes
just make them dynamic, I think, simpler ...
nope ...
any one use D3.js
@JoeWatkins
216.58.196.99
are u used its?
@SagarNaliyapara
Good morning
@MayankVadiya please do not ping people at random with your question
06:19
nope
@MayankVadiya
i have heard it first time
@Epodax o/
it is nice for display chart on web recently i am working on that
@Saitama (ノ◕ヮ◕)ノ*:・゚✧
Man, I really need to restrain myself with those ASCII emotes, I feel like a teenager with them.
halp
I am really torn now
should I install Arch or FreeBSD on my work desktop?
06:24
@Epodax :P
BSD systems, in particular FreeBSD, can have notably higher performance than Linux. But this is not across the board. In many cases, there is little or no difference in performance. In some cases, Linux may perform better than FreeBSD. @tereško
@tereško windows ^____^
I found Arch a pain to install. Probably it's worthy after...
@kodeart You should try installing Gentoo
At least FreeBSD is UNIX.
Arch is not even close.
@littlepootis naaah .. in my experience Slackware is the most entertaining installation
06:26
@Gordon rea..... really???
@tereško It's easy.
@Saitama it has bash now
FreeBSD is excellent for use in servers, but mediocre for desktop use. - See more at: brioteam.com/… @tereško
FreeBSD is a pretty good desktop OS.
it does..... but still it doesn't has that......
06:28
@Saitama what doesn't it have...
!!man ipconfig
@littlepootis i don't think iit is good for desktop
@Saitama Command not found. Have you tried Windows instead? It's great and does all the things!
Someone compiled and ran XFCE on WIndows
@SagarNaliyapara Why?
@Jeeves ^^
06:28
That article is tl;dr
@SagarNaliyapara I've used it for a few months. It was nice.
I think I will make both FreeBSD and Arch bootable ISOs
cough, cough
@tereško so, you are not paid for productivity I guess ;D
I use Slackware Current, Fedora 23, OpenSuse Tumbleweed and Ubuntu 16.04
Windows XP for life.
06:32
I use Ubuntu. It's not perfect but at least it doesnt require me to fiddle with it for hours to get things done
If I want to fiddle with my OS, I just install Windows. At least I can play games on that in addition to the fiddling.
The only reason I respect windows is GAMES!!
of course :)
The only reason I use a windowing system is SO Chat and Games
Gaming on Windows is terrible
Wes
Wes
\o
I uge Ubuntu for gaming
06:35
... what? Gaming is so much easier on Windows
@Gordon I will be doing that on Friday evening
!!rebecca
@Gordon Only 1 days, 17 hours and 24 minutes left until Rebeccaday, OMG!
\o/
haha
06:36
.. in case if I fuck it up royally and have to come back on saturday to fix my stupidity
I recommend to build a custom linux kernel, and use busy box...
that was easier to fix than I thought ...
@littlepootis nope. Only legitimate usecase for Ubuntu is as "Bobby's first linux"
@littlepootis BSD has more limited hardware support than linux in general.
@Saitama build process for linux kernel is fucking annoying. I guess you have not tried doing that on FreeBSD, so you can't compare :P
@SagarNaliyapara while it's true, I already checked whether the hardware is supported ... then again, on FreeBSD the hardware support is never flaky
06:38
speaking of "royally". I discovered this sweet cover version Lorde's Royals in the style of Slipknot this morning: play.spotify.com/track/3e1kqFqo5nDbaH59pogo7b
@tereško nope, haven't tried compiling FreeBSD...
@Saitama there is a single configuration file (which works by default) and you have make buildkernel and make installkernel commands .. and that's about it
@tereško Nah, sudo apt-get install steam -y is easier than making Slackware 32-bit compatible.
@littlepootis you said "custom kernel"
that's nice, and TBH, configuring the linux kernel only, took ages
06:41
@tereško I use lqx, but.. I never mentioned that
@Saitama doing a full upgrade from github has a bit more steps, but, if you edited the config ile already, all the steps a just "copy-paste": freebsd.org/doc/handbook/makeworld.html
i see.... :-)
@tereško it was Saitama
no real advantage over a good Linux desktop @tereško @littlepootis
06:44
@NikiC can you review the patch again, should be tidier now ..
@SagarNaliyapara what are you talking about?
@SagarNaliyapara name a good Linux desktop.
Wes
Wes
mornasdadg
Hi All
06:45
manning
MINT_MASTER_RACE
What is wrong with this SQL syntax?
@DaveRandom \o
SELECT
    diffscore,
    sr.stageid,
    s.stagename
FROM
    stage_responses AS sr
WHERE
    sr.teamid = 1
    LEFT OUTER JOIN stages AS s ON s.stageid = sr.stageid;
Mint is getting systemd in 3...2...1
06:45
FreeBSD doesn't "work" like Linux. Different admin tools and procedures, different concept of how software should be delivered and installed. So, a Linux user will face a learning curve.

It has a long and storied history, which is well worth reading about.
@Mr_Green JOIN's go in the FROM
@Mr_Green WHERE clauses go after JOIN clauses
@SagarNaliyapara wat
A JOIN is part of the table (FROM clause)
Systemd is a PITA.
06:46
@SagarNaliyapara I have been using FreeBSD since 4.10 and my first linux was still called Mandrake ... please, don't try to teach me how they are different
still showing error
SELECT
    diffscore,
    sr.stageid,
    s.stagename
FROM
    stage_responses AS sr
    LEFT OUTER JOIN stages AS s ON s.stageid = sr.stageid;
WHERE
    sr.teamid = 1
@Mr_Green semi-colon
semicolon ?
>#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE
sr.teamid = 1' at line 1
I don't think so anyway will check
06:47
no really, semi-colon
no same error after adding semi-colon too
@SagarNaliyapara The same can be said about most Linux distributions. Slackware is different from Ubuntu, for instance.
no, you have one in the wrong place
sr.stageid;
oh got it facepalm
@Mr_Green you need to delete the semi-colon in the join statement
06:49
also @Mr_Green you should use a qualified name for every field in the select field list (i.e. add the appropriate table reference to diffscore)
ok got it thanks
That problem is why I generally omit the semi-colon when executing a single statement
@littlepootis new technology topic suggestion for presentation in my company related to web?
?
I am not a web developer, I am a gamer.
anyone else?
any suggestions?
06:59
@SagarNaliyapara what tech are you already using?
"PostgreSQL and SQL-2011"
@tereško laravel, anglar, codeigniter
"SOLID principles"
not getting you
@tereško
I already gave you two suggestions
what are you not getting?
SOLID principles in what php?
07:04
In computer programming, SOLID (single responsibility, open-closed, Liskov substitution, interface segregation and dependency inversion) is a mnemonic acronym introduced by Michael Feathers for the "first five principles" named by Robert C. Martin in the early 2000s that stands for five basic principles of object-oriented programming and design. The principles, when applied together, intend to make it more likely that a programmer will create a system that is easy to maintain and extend over time. The principles of SOLID are guidelines that can be applied while working on software to remove code...
then again, since this is first time you are hearing about these, you probably would not be qualified to make a presentation
morning
@Ocramius No, worse...
I simply meant array<BlogPost> instead of <BlogPost>array
What you wrote there now doesn't really make sense
Or doesn't do what you think it does
It would need higher-kinded existential types
> higher-kinded existential types
omgmrgn
Is this a thing? It sounds like the sort of thing Randall Munroe would take the piss out of as something someone would say to deliberately confuse people
zomg I cannot type
07:15
I think the last problem with patch is use($this->thing->member) @NikiC
what is the difference beetwen mysqli and PDO? and what is faster?
@DaveRandom It is a thing
@CharlesCraft50 Neither is faster. PDO is simpler and therefore the right choice most of the time, when you don't need things that mysqli can do which PDO can't
(IMHO)
can you point me in the right direction there please ?
Hi guys
07:17
I thought it made a ref :s
use(&$this->thing->member) I meant
@DaveRandom but mysqli is more easier than PDO
<?php
new class {
	public function __construct() {
		$this->prop = new stdClass;
		$this->prop->member = [];

		new class use(&$this->prop->member) {

			public function __construct() {
				var_dump($this);
				$this->member[] = [];
				var_dump($this);
			}
		};

		var_dump($this);
	}
};
?>
@NikiC I keep getting Haskell and Scala related posts and am therefore terrified
this, because this->prop->member is not a reference, it doesn't behave like I think it should
@CharlesCraft50 If you think that, you need to use both of them more
07:18
when $this->prop->member = &$array; it works as I think it should ... or am I wrong about how it should work ?
I hate references ...
@DaveRandom It's probably much easier to understand this in Rust
They have an easy to understand iterator example for what that would be good for
(They don't actually support it)
I want to load some file with jQuery from my main folder to my sub domain m.example.com, But I tried this path url: "../scroll.php" it doesn't work
@JoeWatkins I gotta run now, will look later
I add this :
<script type="text/javascript" src="scroll.js"></script>
on my index.php in m.example.com
what is better? PHP or ASP.NET?
07:22
I personally prefer beer
and in my scroll.js I put this :
$.ajax({
url: "../../scroll.php", // This path it doesn't work
type: "POST",
data: "actionfunction=showData&page=1",
cache: false,
success: function (response) {
$('#loading').hide();
$('#demoajax').html(response);
}
@VintageBeef E_DOESNT_WORK is not a know PHP error level
It's not error
it doesn't load that file from my main domain
POST m.example.com/scroll.php 404 (Not Found)
wrong dir
?
Anonymous
Mornin
07:27
o/
Help!
@Duikboot What a vague error description.
1 sec ;)
I have to built lot's of responsive websites, I use Bootstrap, or custom CSS but in the browser it all looks... also the Tablet version looks good on the browser.
Now I decided to buy a tablet to test it.. but which one should I buy?
Morning.
@Oldskool \o
07:32
o/ @Oldskool
off topic
@NikiC OK I think I get what existential types are, in a sentence it means I can handle an object of a generic type without knowing what the generic type arguments are? And the "higher-kinded" bit is... about the variance of T?
@Oldskool Are you guys using tablets for testing?
@Duikboot Tablet that you can use: Google Pixel C, iPad Pro, Samsung Galaxy Tab S2
no
Anonymous
@Duikboot If it's for testing, you should probably buy a decent compiler
@Duikboot You can do Google Chrome->Inspect Element->Toggle Device Mode
@Duikboot We have one lying around here, but don't use it too often. But that's a job for our front-end devs anyway, I never bother myself with that stuff ;-)
Anonymous
@CharlesCraft50 Not a great compiler though
@Duikboot All of them
hi guys
I am curious of something: what is a dispatcher's purpose in code? what should a class with this name be responsible for?
07:45
Well, that Chrome > Inspect element -> Toggle Device Mode does look sometimes different then it got shown on the device.
@MadaraUchiha stackoverflow.com/questions/5975063. link in my answer is dead, rendering the answer useless. Question is four years old and has minimal views. Not sure if it qualifies as a shopping question. Delete just my answer or the whole thing?
@Victor Well, the name says it pretty much, it should dispatch things. In other words, delegate stuff to the proper place. Be it an event, a HTTP request or anything that is dispatchable.
so this is the meaning to send someone or something somewhere (macmillan). so I cannot call a class responsible for blog posts fetching a dispatcher, right?
@Victor A dispatcher is pretty much the guy in the middle of the room saying "OK, I got an order to do X. Who knows how to deal with this?" and then some other guy says, "Yeah, that's my specialty.", the dispatcher then gives the order to that specialist.
@Victor No, fetching is not dispatching. :)
@Oldskool And then the dispatcher takes all the credit right?
07:49
alright
I think I get it
@Epodax Of course. That's what they do ;-)
@Duikboot I think you can use Adobe Dreamweaver, I'm not sure if it helps
@Epodax Until you introduce a DispatcherManager, which takes the credit but passes all exceptions up the chain
@DaveRandom I was about to say that.
07:52
@Duikboot if you are testing ipad, xcode simulator would help if you're on osx
@Duikboot "If you're on osx"
and if you are testing from a device, you can always chrome://inspect
is it safe to cast MySQL bit to int?
I mean, I see that I have to add = b'0'

« first day (2013 days earlier)      last day (3157 days later) »