« first day (1530 days earlier)      last day (3422 days later) » 

10:00 AM
I don't have the project running. I want to find out by looking at the repo @FlorianMargaine
@Fabor faborning
 
@FlorianMargaine To assist with debugging, I guess? The issue with that code is that it's completely non-OO, not at all testable, it's pretty shit really. The only good thing about it is that it's a single-file include and that's it - so good for the newbies
 
I also forgot one line
$app=Yii::app();
 
oh... well you need to go find the $app and see the getRequest method... then I suspect it's initialized somewhere else, then I assume it might be an injected dependency... so you need to go to the DiC service locator settings files and see
 
/magic
 
@Jimbo I see :)
 
10:01 AM
are you looking at tpb?
 
yes
I suspect they have a security issue
But considering is is full of magic (a.k.a. yii) I am having a hard time finding it
 
If you make one, be sure to tell me the URL so I can let my work know.
:)
 
@Fabor I already started on one a long time ago. Not to host it myself, but to have a sane indexer for people to use
 
10:05 AM
Don't give links like that to this judas here ^^
 
Dec 19 at 9:45, by PeeHaa
@Fabor asshole
 
:D
 
haha
 
;-)
 
The real dagger in the heart is that you've all helped me with something probably work-related in the past.
 
10:06 AM
I like chillingeffects.org, makes it really easy to find content :D
 
@Fabor Yeah I love the idea of having helped you guys with the DMCA against my own domain :P
 
I never understood that Chilling Effects website. How is it different from PirateBay when it indexes all the links to IP?
 
@PeeHaa Which is yours?
 
Nobody'll sue the people who sue others!
 
10:07 AM
@PeeHaa it's here: yii/framework/web/CHttpRequest.php just search in github for the method with the most long/unlikely used by others name (getUserHostAddress)
 
@PeeHaa hey... can I search by artist name and album name and stuff?
 
http://proxy.pieterhordijk.com/torrent/8389632
proxy.pieterhordijk.com/torrent/8603015
 
sounds like a nice website to get links :D
 
hah
@FlorianMargaine those will have been removed.
 
when it's posted, the links are already removed?
 
10:08 AM
lol... no @Fabor
 
Oh
 
I have used it before to find hard to find content :)
 
@nikita2206 The question is does it use CHttpRequest.php or the child AHttpRequest.php?
 
@PeeHaa not sure you should post torrent links here ;)
 
10:09 AM
Well they "should" be removed. And at least won't appear in google.
 
they don't exist anymore
@Fabor yeah... but you can find on this site what you don't find on google :P
 
@Gordon SO is fine by it and @fapore already took them down and they were links to tpb which doesn't really exists anymore
 
@FlorianMargaine Aye. It's still not exactly difficult to find the content you need want.
 
@PeeHaa is "6820" a line number ?
 
sure sounds like it
 
10:13 AM
jolly jollydays
 
FTR those large torrent sites make a fair chunk of change off the adverts they promote. They're not free-content altruists :P
 
@tereško Basically I want to know whether github.com/isohuntto/openbay/blob/… refers to AHttpRequest or CHttpRequest
 
Can't you see it in verdure?
 
I have a feeling they are using AHttpRequest meaning they are checking spoofed IPs in their "ACL" thing
@tereško What's a verdure? :P
 
Fucking autocorrect
var_dump
 
10:15 AM
vendor?
 
@Fabor There are people who aren't altruists that won't charge people for content, and there are people who aren't altruists who will charge for content. The lack of altruism cancels out in the equation.
 
lol
 
@tereško Ow. Well I don't have the project running. Thought it would be failry easy for somebody to find out by looking at the repo, but I guess I will just have to set the thing up
@Fabor Nobody really thinks they are poor I hope? :)
But the more important thing I have against torrent sites is: "THINK OF THE CHILDREN!"
 
In yii the class initialization happens using magic configuration file
It can be anything
 
@PeeHaa There's a surprisingly high amount of people who think that piracy is taking money away from big companies like Sony and Universal Studios rather than individual artists and the run-around workers.
 
10:17 AM
Yeah I found this but I suspected there was more magic going on in there
Will just set the project up and find out
 
Or at least they would rather screw everyone rather than give a big corp some of their money.
That being said, fair pricing is also a big issue.
 
And availability
 
Definitely.
I wanted a bunch of HD Jet Li movies, can't find them to buy anywhere. Found a Russian torrent with his entire collection 1080p. Didn't download it but was funny just to see how that worked out.
 
:-)
 
There's one Russian torrent site that I use for FLAC files
 
10:22 AM
And drm needs to die. I've bought quite a few blu-ray discs that came with "digital downloads" that are completely useless because they require me to install a player from Disney that doesn't work on anything
 
It has quite impressive collection of music from small bands
 
@teresko is it rutracker
 
> Holy shit, I want to give you a hug. You cleared everything up. I thought the view file was just another class that called a 4th file to output content. I didn't know the controller called the view which had the content. Merry Christmas Eve @tereško
Oi @Patrick Stealing my thunder before I thundered
 
Yeah, rutracker
 
10:25 AM
DB::getInstance()
teehee
 
Fuck em
 
"the view is just a template!"
 
> From an Web MVC perspective the HTML is the "view"
At least he said "Web MVC"
 
Staahp
 
there a nice "uninstall php, install ruby" comment.. lol
 
10:27 AM
> PHP execution model makes "MVC" optional.
lol
 
SO chat should automatically replace all reddit links with friday links.
 
@FlorianMargaine it has some rationality
 
because MVC is not optional in ruby?
 
No, because MVC is better for long-running apps and the way it was adopted for request-response-cleareverything model is... different
 
user3949359
So, I just asked my boss whether our new site will have an .htaccess file and he told me no and instead he'll handle 301 url redirections manually himself in nginx. Can anyone explain to me how this works?
 
10:29 AM
I know what you mean, don't worry, but "MVC is optional" makes no sense...
 
@nosille All requests are going through a single file and are handled by the application itself like it should
 
@nosille your boss is pretty reasonable I guess. I mean, nginx doesn't even support htaccess
 
^ that
 
lol
 
user3949359
10:31 AM
@nikita2206 I know that 3** status codes have to do with redirection. What exactly does 301 do?
 
user3949359
moved perma
 
user3949359
just saw it in wikipedia
 
@nosille some browsers will cache this redirect and whenever you will try to access the page that redirected you they will just straight up go to the new one. But it's more useful for search engines
 
woo
Hello guys. Can you explain, how to compare multibyte strings correctly?
I couldn't find an optimal solution for this task
 
@woo 'string1' === 'string2'?
 
10:38 AM
@woo case-insensitively? you can use this http://php.net/manual/en/function.mb-stripos.php or this http://php.net/manual/en/function.mb-stristr.php
If you need to compare them case sensitively then just as usual
 
So Repositories can, as well as mapping data from persistence, map data to persistence too. Hence repositories can save effectively, as well.
> Objects can be added to and removed from the Repository, as they can from a simple collection of objects, and the mapping code encapsulated by the Repository will carry out the appropriate operations behind the scenes.
 
aww, someone edited it :(
 
At that point you are better off with Unit of Work
 
user3949359
@nikita2206 thanks
 
woo
10:45 AM
@nikita2206 Thanks! Yes, I meant case-insensitive comarision. Your function looks good enough, but still it returns found/not-found result, while I expect integer like strcmp do.
 
@woo mb_stripos returns an integer
@PeeHaa I don't have this privilege yet :(
 
Only 2k to repwhore
TO THE JQUERY QUESTIONS!
 
HERE I COME!
but I usually answer with plain js, so I get no rep
 
:)
 
woo
10:52 AM
@FlorianMargaine Yes, but it can be used just as equlity checking, not string comparising as strcmp
 
can't vouch for it though, sorry
 
Yeah, you suck at mind-reading
 
your autocorrect makes you look like a nice guy @tereško
 
Fuck
 
10:55 AM
:P
my cat is sleeping on my laptop's keyboard while I use the plugged keyboard... but he was holding the shift key, so I couldn't hit enter to send the message...
 
Damn distraction cats. Mine likes to sleep where my mouse is.
 
@Fabor makes sense
 
woo
@FlorianMargaine Looks good, but I see some issues here: Unicode supports sets of symbols with different codes and same behaviour, and this function is not case insensitive.
 
@woo That's why you normalize
 
Any of you guys like the Marvel comics or perhaps have a mild interest due to the movies?
 
11:07 AM
possibly all the room, I think
 
yeah, batman is great pleasedonthitme
 
This Marvel Explained youtube channel has some good videos on the universe. Explains characters, plot lines and so on. Good for anyone wanting to know more generally about the Marvel universe.
 
@Feeds @PeeHaa … is that from you? fuck React, insert Amp!
 
 
@bwoebi Yes that is from me and yes Amp is already in the "Room 11 Regulars" feed
 
11:17 AM
@PeeHaa hmmpf… react…
 
@bwoebi What there to hmmpf about? It's a decent project
 
hmmpf ;-)
 
Igor is a friend of Room 11
 
brb people "lunching" with client a.k.a. "beering till he sign the contract"
 
@PeeHaa lol, good luck
Bunch of pissheads in that country
 
11:24 AM
morning
 
Morniki
 
morning.
 
Mornhak
 
@PaulCrovella That's not covered by standard Unicode Normalization routines / Normal Forms.
@PeeHaa good luck and prosperity :)
 
11:40 AM
@hakre character duplication is covered, normalization isn't just about combining and precomposed characters.
 
12:00 PM
@hakre example
 
 
1 hour later…
1:40 PM
@JoeWatkins what's up?
 
slow day today, eh
wonder why
 
Got it, array_filter
 
Won't there be an internal loop anyway?
 
1:57 PM
Morningni again
@hakre @Jimbo ty :)
 
@PeeHaa Go well? Was he sufficiently inebriated?
 
@Jimbo yeah went just fine. Starting with the project in feb
 
Grats!
 
thanks :)
 
Beers are on you then next time you're over ;-)
 
2:02 PM
@Jimbo Sure thing
Now to look into that horrific piratebay clone code :|
 
Why are you looking in to it?
 
Do you want to start your own torrent tracker
 
@Fabor I am fairly certain there is a huge fucking hole in it
 
The use of Yii?
 
@nikita2206 I am about to at least build one (in PHP)
@Fabor :)
 
2:15 PM
Why does the hole matter to you?
 
I hate security vulnerabilities in OSS projects
When I find a hole in it I want to poke it
 
But there was so much OSS choice for that fetish of yours.
 
wordpress
wordpres
or even wordpress
 
@Fabor I just checked the trending repos on github and found the potential vuln. I am not an asshole (yes I am, but not when it comes to innocent users) so I will look into it
@nikita2206 Been there done that
 
Shouldn't you be writing a blog post?
 
2:19 PM
hehe
Yes I should...
 
@PeeHaa come on, don't say they run out of security vulnerabilities
 
@nikita2206 Yes it's official. Didn't you hear?
Although I am fairly certain that Yii isn't really that much better then WP @nikita2206
 
you really shouldnt be touching it
 
Too late... cloning!
 
I am quite serious
 
2:29 PM
anyone strong in bash?
I'd like to have an array (i.e. ("foo" "bar")), and exclude these paths from an rsync
 
there is an "exclude" option
man rsync
 
yeah
for i in "${!GIT_EXCLUDED_FOLDERS[@]}"
do
    GIT_EXCLUDED_FOLDERS[i]="--exclude=${GIT_EXCLUDED_FOLDERS[i]}"
done
rsync -av --delete "${GIT_EXCLUDED_FOLDERS[@]}" "${GIT_FOLDER}"/* "${SVN_FOLDER}" > /dev/null
this only gives me the first item of the array
hence I need some bash-fu :)
 
you are doing it wrong
you shouldnt be adding multiple --exclude flags
instead you should have multiple folder in the pattern for a single --exclude flag
 
oh, how do you do that? every link I've found uses multiple --exclude flags
 
well notice that the said example also didnt have = in it
 
also
why not --exclude-from '.gitignore'
 
@FlorianMargaine oh!
 
because they're in git
@bwoebi nice!
 
I feel terrible... 3v4l.org/8O4NW
 
2:50 PM
@Jimbo what's wrong with statically typed 'new's?
 
@nikita2206 The problem with that is I have to do an /** @var MyEntity $entity */ for every object I pull out of it as they don't extend a common base class. Really I'd prefer a factory for each individual entity, I just can't be arsed
 
@Jimbo if you just type new Server() you don't have to
 
@nikita2206 I use dependency injection
 
But entities are not part of the dependency tree
 
@nikita2206 They're not part of the components I'm writing, either
 
2:55 PM
Ah ok, so you just don't want to write factory for each entity
 
I was expecting more flaming in here for the code I posted tbh, yeah... I can write a factory for each entity. that'll do for the moment famous last words
 
Maybe repository would be fine to put a factory method
 
I believe that'd be the factory method pattern perhaps?
 
I'm not sure what pattern it would be. You would just construct your entities only in repositories cause they are the things that should return entities to you in the first place
That's my logic behind it
 
posted on December 24, 2014 by kbironneau

/* by jUNIX */

 
3:05 PM
> sebastian/global-state suggests installing ext-uopz (*)
@Jimbo If you got rid of the namespace being assumed, you could use plugins.jetbrains.com/plugin/…
 
Wow, that's a pretty cool extension
 
@Danack I looked at that, but then I'd have to create an xml configuration for them, right?
 
Would be fun to debug tho
 
Which is effectively the same as type hinting for these things for my IDE but moving it over to a config file instead
 
@Jimbo The config is:
{
    "methodCalls": [
        {
            "class": "\\Auryn\\Provider",
            "method": "make",
            "position": 0
        }
    ],
    "functionCalls": [
    ]
}
Or similar.
 
3:08 PM
@Danack saw that last time, first time I saw something using @JoeWatkins's extension
 
And just needs to be put in a file called dynamicReturnTypeMeta.json anywhere in the project.
 
It's just harder to refactor. Someone will want to know all the places where new instance of entity X is created and he will not find it. Although if you have a FQCN mapping somewhere which will be used as a config for your factory it will make things at least possible. But if you compose class names before instantiation (like __NAMESPACE__ . $className) then someone will be fucked
 
3:31 PM
Hey everyone. I am able to serve my Laravel application 127.0.0.1 but not on localhost. What might be wrong? Always gives me nodename nor servname provided
 
hello
someone using pthreads here ?
i see that @JoeWatkins is not available
 
Jul 27 at 21:28, by Danack
Hello, I have a problem, but I am too lazy to write the question out until some says that they will help me. http://sol.gfxile.net/dontask.html
And don't ping people unless you're actually talking to them.
 
I need to stop opening /r/PHP
it only makes me hate humans
 
alright so the question is
when i have a fatal error inside a thread it will cause a segfault
 
3:42 PM
line 23 i try to instantiate an undefined class,
 
is /r/PHP a pun?
 
@Amez You appear to have a good short self contained example, you should just open an issue with that example on github.com/krakjoe/pthreads/issues
 
I was told to have a look at Symfony yesterday, to evaluate whether we should bid on a project where it's used (we're not normally a PHP shop, but I do two PHP projects, and others know a little)
why does this look like someone rewrote JBoss (complete with annotations!) and JSP in PHP?
so ugly
 
Welcome to the Symfony complaint department. What can we do for you to ease the pain? @mirabilos
 
haha ;-)
thanks
 
3:51 PM
;-)
 
aieee. I'm here with iceweasel on an eeepc which sits in the corner, over VNC. the SO chat just made the remote box ding. wtf. doesn't iceweasel see it's not used locally? meh. offtopic. just surprised.
@PeeHaa the bosses (direct and one level up) decided to not bid on the project
there were other baddies hidden in the offer
luckily ;)
so I can go back to working on fusionforge and zpush
 
@mirabilos Mirroring sound is a separate option usually to allow people to control music/films and have the sound come out of the speakers attached to the media playing pc.
 
Nice to be able to dodge a bullet just before the end of the year
 
but judging from your reaction, this is not the only complaint about it you heard
and their website describes it as "simple"…
@Danack ah ok, that does make sense. thanks.
 
@mirabilos My theory is that PHP isn't that bad a language, it's just that most PHP programmers use it badly. Including people who write frameworks.
 
@mirabilos Well in all honesty I am a proper victim of the NIH syndrome (often for good reasons though)
 
@Danack I thought so too, until I found all those bugs in the standard library. Then I thought “ok, let's just write our own stuff” (e.g. complete JSON decoder and encoder, back then PHP's builtin one was really buggy), and then I read this "fractal of bad design" post. Than I gave up and just went back to work more brainless.
at least that document explained why sorting was sometimes wrong: ternary operator is broken in php and needs parenthesēs…
meh. nothing we can't work around. and I'd rather do this than jboss/tomcat (which most of my coworkers do)
 
@mirabilos Meh. Different is not broken....stupid maybe. But the mis-features are less bad than Java's....
 
@Danack I agree in principle, but in every other language, the ternary operator is evaluated from right to left, not so in PHP, and I cannot see any valid application for this; every instance of more than one ternary operator in an expression is a continuation, which needs quoting in php
sure on java being worse of course ;)
/me is more of a korn shell person anyway
 
Integer A, B = 127;
Integer C, D = 129;
if (A == B) {System.out.println("Same\n")}
if (C == D) {System.out.println("Same\n")} else {System.out.println("Fuck you Java.")}
 
3:58 PM
not C.equals? ;) I cringe every time I read that particular idiom…
 
Personally, I just hate the ternary operator in every language....
 
@Danack hm that's about the only C-ish thing I really like a lot
 
@Danack I think that is the correct answer
 
@PeeHaa done
 
4:02 PM
@PeeHaa done
/me shakes head at how people can ask like that in the first place
@PeeHaa considering the fun I've had, I consider not using a ready-made framework the only way to go forward anyway. I have a bunch of helper functions, some standalone, some build on each other, I can just easily drop into most projects, and other than that, I just have the code I need (not the 90% of the framework I don't need), …
… and can change the code (which is at least an order of magnitude harder with frameworks, especially if one develops for/in/with Debian like I do and uses the packaged versions of dependencies)
 
@Danack why? :o
 
meh. SO chat has a line length limit? one less than the one in IRC? funny.
 
@mirabilos Yeah that is what I would do
 
@Amez merry xmas to you too ... will give it a look day after tomorrow ...
 
@bwoebi People actually just scan read in one direction at a time, and as code is laid out vertically, having a ternary operator means having to either stop scan reading and read in a different direction, or usually people miss-read it and it leads to bugs.
It also violates the 'one line, one operation' rule.
btw @bwoebi there is something wrong with amp/mysql - it seems to have been corrupted with lots of tabs in all of the files....
 
4:10 PM
@JoeWatkins ah merry xmas, we already discussed this here if you remember, but now i really need to solve this, that's why i recompiled every thing using latest version of pthreads and php, but still the same issue
 
@Danack :-P
 
@Danack hhm, not convinced, plus IMHO terseness sometimes beats that, especially if it can make the whole fit onto the screen. But I'd not judge you badly on your opinion on the ternary ;)
oh cool, the two cv-pls earned me a red shirt. now I need one more "accepted with no votes" and I may get another hat by means of a badge… if I calculate right
 
@mirabilos I'd argue it's not terse - it just cramped. Having to read and remember more than a pair of things at once is pushing a lot of programmers beyond their limit. I think this is also a general mistake that programmers make, that they get used to doing something slightly difficult and so think "Hey I'm good at doing that difficult thing now, it's safe to do.".
 
@Danack hm ok, I do enough C to be “in the mindset”, so to speak, but it can get cramped (it not always does)
 
It's actually just safe to do most of the time.....but every now and again, being 'clever' with code will catch everyone out.
 
4:15 PM
also it can save 3-4 lines on the screen, which, again, may make the function better legible – or worse
if I work on something with others, I tend to subtly vary my coding style according to the others' capabilities anyway
 
@Danack just like it violates this rule when we do multiple concats in one line…
 
but yes about the "I'm good at that thing" fallacy. I just see it as a tool, with uses and misuses
 
btw there is one absolutely valid use for the ternary:
const int myValue = ( a > 10 ) ? 5 : 6;
As there doesn't appear to be another way to setup conditional const vars.
Other than that.....burn the ternaries.
 
hi. I shared this problem before also but could not find a proper solution with suggestion given. But still thanks. So my question is - I need to change png tshirt image color with user selected color. Is is possible in php ?
 
Yes that is possible. You're very welcome o/
 
@bwoebi what is the minimum version for amp/mysql ?
 
@PeeHaa ohh great. PLz give some suggestion how.
 
Dec 20 at 20:02, by Danack
@Sajal I don't know about gd - but it's possible with imagick - http://www.phpimagick.com/Imagick/tintImage
What have you tried?
 
4:35 PM
@Danack yes u got it. Actually i tried it but could use that library as i could nor find that class.
 
I realise English is possibly not your first language, but you need to write more clearly if you want help. Imagick is an extension that needs to be installed e.g. php.net/manual/en/imagick.setup.php
 
user1607528
is laravel's str_random(40) hashing good enough for email confirmation for example : 9Eg4p3Z2RXYtDSqMJGiXXAp4TKbAavsuZhlxZIf4
 
@Muhammet eMail confirmation is never good enough unless you use PGP to encrypt the eMail end-to-end
and it's either random or hashing
 
@Muhammet Nobody in here will be able to tell what str_random does
 
not both
 
4:39 PM
ok. I use windows 7 and php 5.3. Will i have to install it through installing .dll files? I even tried using it online but din't seemed ok. imagemagick.org/MagickStudio/scripts/MagickStudio.cgi
 
@Muhammet What do you mean by 'confirmation' ?
@mirabilos (He probably means 'click here to confirm your email' not crypto signing email....)
@Sajal "Will i have to install it through installing .dll files? " Yes.
 
user1607528
@Danack i send a link to confirm the email of user
 
\o/
 
@Danack mh that's fair, but most pages also use this method for requesting a new password, in which it is most certainly not okay
(not that fusionforge currently does it any better, but meh)
 
@Sajal .cgi how....... retro
 
4:42 PM
@Danack ok thanks.
@PeeHaa sorry din't get you.
 
@Muhammet It probably depends what you're using that link for....so maybe? If it's just a sign up then it would be fine....if it's password recovery, then maybe not.
 
user1607528
@Danack it is just for signup confirmation. I will use something else for password recovery
 
user1607528
@mirabilos util_randnum() function right?
 
@Muhammet yeah
 
user1607528
4:47 PM
thanks
 
only works on unix systems with /dev/urandom though, of course. exit_error is a function displaying an error page (you don't really need that). _("…") is GNU gettext.
 
Hey guys, I'm having a Model/Class not found issue in Laravel 4. Is anyone familiar with that kind of issue?
 
but if that's good for you, use it, just base64 encode or hexdump or something its result
 
Everything I'm finding on google points to running the composer dump-autoload command
but that's not working for me
 
user1607528
@mirabilos thanks
 
user1607528
4:51 PM
@DaringToZlatan what do you get on dump-autoload
 
user1607528
any errors?
 
@JoeWatkins also when i use set_error_handler, using a callback function, it doesn't work, but when i use the function name which is already available in the scope it works.
 
in my terminal it says Generating autoload files
But when I look at my my app in the browser there's no changes
 
in Android, 26 mins ago, by Ahmad
At 6y/o my software development training began when my dog went missing & I followed his tracks 5mi into the woods. He was in the garage.
 
@JoeWatkins and really other weird behaviors
 
4:52 PM
I keep getting a ModelNotFoundException
 
@PeeHaa meh I just read the manual while my father unpacked the PC, then I taught him DOS and myself GWBASIC. at 6, too, of course. no need for a stinking dog ;-)
 
user1607528
@DaringToZlatan ModelNotFoundException doesn't necessarily mean that model file is not there, it could be that the query is not successful or something like that
 
@mirabilos Dogs are cool :(
 
@PeeHaa is that why there is so few cat content on SO? ;-)
 
hehe
 
4:57 PM
yea i know i've got the necessary model file @Muhammet. But when I query the model's designated table with a DB::table()->select() I'm able of pulling some information
But the problem is I can't use that kind of query to call the model/class's functions
 

« first day (1530 days earlier)      last day (3422 days later) »