« first day (851 days earlier)      last day (4323 days later) » 

18:05
I don't even
Hola all
Hola drunken Dutchman
hi all
I need a small advice regarding image maipulation libraries in php
I want to have one which allows me to add text much the way text is added on memes
but there r so manhy options for doing this
@webarto Not drunk yet. Just finished cooking and eating. Now it's time for a nice drink
it just confuses me as to which is the best of these
18:14
@Shagun Use the gd library
Also in the end the app will be deployed on the server I will prefer one that doesnt require additional downloads
@PeeHaa Whatcha drinking? Also, would you be mad if you saw code like below:
public function ticket_view($ticketId, $include_posts = 0, $includePosts = 0)
{
  $include_posts = $includePosts || $include_posts;
as I maynoy have permisions to do so on the server
@Pee
@PeeHaa why GD?
@webarto Not mad, but I would be scratching my head as to wtf you are doing :P
@Shagun It does the job. It is installed on most? servers. Why not? :)
@PeeHaa I know what's Ballantines, I don't live i N.Korea. It's for API, to keep the BC. I like_this_case_for_params_andNotThis.
If you don't have GD it is highly unlikely you'll have anything else.
18:19
@webarto Hey. Choose whatever is to your liking (as long as you add your braces :) ), but am I understanding you correctly that you are trying to update old code?
@PeeHaa if its preinstalled then it the thing for me Thak u :)
You're Wecome
omg, OP is using this site igolder.com/pgp/decryption to encrypt and decrypt using their private keys, because you know a shady site that sell/buys gold is trustworthy.
I like their motto: "Trade without any control Bureaucracy"
Looks like a perfect way to get private keys from stupid people
test?
Damn... chat is still wonky
Yes, Sir. Updating and fixing it, making it follow some standard.
18:28
@webarto Is ti namespaced?
> I understand that Stack Overflow is meant to be a forum for professionals looking to get serious professional help
Yeah I might need some professional help :)
@PeeHaa Nope, it was from 5.2.17 era. When I say API, I mean Facebook like API, stuff.
@PeeHaa This is not a forum, this is programming blog.
0
Q: How to load DocBook XML files with PHP's DomDocument having named entities defined in other file?

hakreI'm trying to load XML files from the PHP repository of the online documentation. It's by the DocBook standard. Howver, if I load an XML file I get errors like: Warning: DOMDocument::load(): Entity 'reftitle.intro' not defined I understand somehow that error but have problems to fix it. I ...

Evening Tom
Who is Tom?
morning-afternoon-evening
18:31
@hakre I almost close voted. Reflex.
@Lusitanian Yo dawg
@Lusitanian It's called "Yo, bitches"
@webarto how's your server
you break it yet?
@PeeHaa ;)
@webarto That guy above the post ;)
@PeeHaa His name is Hans, and he lives in Frankfurt Am Main, bitch.
@Lusitanian webarto.com Seems to be online :)
I want to buy another one.
18:33
@webarto still apache :(
For no reason whatsoever.
@Lusitanian willfix :P 128MB is kind of small amount of RAM, ain't it?
@hakre a) what are you trying to do? b) The issue you are having is trying to load a dtd?
@webarto yes, even more reason to run nginx instead of apache
@webarto lol
I need to think of a use for slapoverip.com Something good...
18:35
@Lusitanian Considering I have a sane code, what is the amount of concurrent visits it can handle without lagging? If you know by chance...
@webarto idk, load test it, but it will perform fairly well.
@webarto Test it
@PeeHaa beat you ;)
Rape it?
18:36
. . .
If I said I have a beverage chiller connected to my computer...would that be a bit strange?
Real users :P
m'kay
@Lusitanian Not. At. All.
@webarto just so you know, apache bench works just fine for other servers besides apache :P
@Lusitanian I'll nuke you :P
18:37
@webarto :D
@webarto btw did i mention you shouldn't use apache? don't think i told you yet...
;)
abs, I'll be secure soon :P
ping -l 65536 webarto.com
The times when this crashed your 'puter.
@webarto 1990?
uhhhh
@Lusitanian > However, most systems since 1997–1998 have been fixed...
@ircmaxell What's up? Laughing at us noobs?
@webarto The 90s called, they want their DOS attacks back.
18:43
@webarto Remember @ircmaxell comes from the time when you could whistle in a phone to break into modems ;)
4
@PeeHaa ...so do you
I hear he and ircmaxell used to hang out together. Peehaa was abroad.
@webarto @PeeHaa was abroad or @PeeHaa was a broad?
aaaarrrrrgggh .. finally home
18:46
@PeeHaa you say that like it was hard to do...
@Lusitanian Both?
@webarto ;)
Ah sheit. My dog thinks he wants to take I walk in the cold / rain. brb
18:48
@PeeHaa as u suggested I stated by using GD but when I run standard codes like this php.net/manual/en/function.imagefttext.php I cant get the text on the image. All I get is a broken link
Also i have enalbed error diaply but no error shown
@Shagun It wouldn't surprise me if you have a syntax error somewhere with your typing
Now I'm really out
but it should have dispalyed it as an error ryt.
Another possibilty of me being wrng?
@webarto what's up wit your website?
@fibertech Nothing, it's chilling, why?
@webarto XCache is a good solution but i prefer memcached + APC
18:52
depends on what you're doing
APC is not stable for my purposes.
it's more low-lewel
I get otther things like images etc but not the text part
I used APC with 1C-Bitrix MVC CMS on php and it used to work good
I have checkd that I have the font file with me
18:53
I'll build a blog in this PhalconPHP, to check it.
XCache was slower down to 5-10%
@webarto oh god. phalconphp on apache. why don't you use more technology that annoys me?
@Lusitanian Ok, how to setup nginx (again)?
off hand, anyone know of a good example of a php doc with a warning
@webarto sudo apt-get install php5-fpm nginx
sudo nano /etc/php5/fpm/pool.d/web.conf <--- get whatever path the unix socket is at (can't remember offhand)
18:55
@ircmaxell php.net/manual/en/function.mysql-query.php you want to paste xml in some new doc?
@webarto then
sudo nano /etc/nginx/sites-enabled/default
and add something that looks like:
 location ~ \.php$ {
            try_files $uri =404;
            include /etc/nginx/fastcgi_params;
            fastcgi_param SCRIPT_FILENAME /path/to/your/www$fastcgi_scriptname;
            fastcgi_pass unix:/path/to/your.socket;
            fastcgi_index index.php;
        }
server {
    listen 80;

    server_name proxy.webarto.com;
    access_log /dev/null;
    error_log  /dev/null;

    location / {
        proxy_pass        thepiratebay.se;
        proxy_set_header  X-Real-IP       $remote_addr;
    }
}
@webarto then restart php5-fpm and nginx and you're done
the php.ini will live at (on debian) /etc/php5/fpm/php.ini
Also @webarto don't you need mb_*?
:+1:
18:57
@PeeHaa compiled in in the debian package
And psql
@Lusitanian ah k
Zend Multibyte Support 	provided by mbstring
@webarto basically, but working on it
@PeeHaa is your uploader stable yet? considering setting up a copy
@Lusitanian For private use?
18:58
correct
@PeeHaa this is why:
@Lusitanian Not a problem. As long as you don't add other users :P
VERY CONFIDENCE INSPIRING :D (caps-lock...it's cruise control for cool)
ACL IS NOT IMPLEMENTED! I REPEAT ALL YOUR FILES ARE BLONG TO ALL YOUR USERS
But for private use it works just fine. :)
@PeeHaa and nice :)
i'll set it up latah
@Lusitanian :)
@Shagun Do you think you can describe your problem in English?
Are at least something without missing vowels
Is there some way to prevent having to do php -c /read/the/freaking/correct/php.ini everytime?
on windows btw
19:04
@PeeHaa yes
Well :P
@PeeHaa set PHPRC
sorry had to find name of the env variable :)
I thought I already tried that. Lemme verify
Noice. Was indeed still pointing to old php
You're a rockstar
damn .. i should start reading that nginx book soon .. the lighttpd has been someone neglected .. the 1.5 version has been "coming soon" for months
webarto.com @Lusitanian @PeeHaa, but I have no idea how to configure :P
19:07
that seems like bad file permissions , or missing index
no it's not
he doesn't have a directory index set
nor php set up
Yup.
@webarto Are you running php-fpm?
location ~ \.php {
@webarto scroll up i already explained how to configure :D
19:08
this would allow you to run PHP code from JPG
@webarto you need a $ after .php...
@Lusitanian And I love you :P
So much love in here lately :D
@PeeHaa I'm just loading a XML document (e.g. reference/classobj/book.xml) with DOMDocument. In the end I wand to scan through all XML docs and find out about function names and their parameter names.
I'm not so sure if I have a problem loading a DTD.
I first of all get that error and I'm somehow puzzled what to do.
@PeeHaa that movie is why i started to learn programming
@Lusitanian webarto.com Are we friends now again?
@webarto :D
@webarto friendly reminder to set date.timezone in your php.ini
Hehe
aah .. the classical
> Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/index.php on line 3
and you need to add xdebug
19:42
and php_jquery
i honestly hope it is not a real thing
.. if one ever needed a proof that human race is doomed
Anonymous
19:50
@tereško what is the end of that sentences
@PHPNooB That is the end of the sentence
@webarto <?php /* boostrap application */ require __DIR__ . '/boostrap.php'; << just wrote that, thought of you
:D
I can't find correct php.ini, CLI is OK, but FPM doesn't give a s*.
i'm writing a tiny geolocation webservice that's based on the maxmind geolite data
@webarto /etc/php5/fpm/php.ini
No s*.
19:54
@webarto after you edit it, run /etc/init.d/php5-fpm restart
oh f* it
I restarted nginx instead of that :)
Error gone.
@Lusitanian +1
dat speed
seriously, it's so much faster than apache
Imagine if it was some 8 cores with 16GB or RAM
would it make a difference?
19:56
> Apache is like Microsoft Word, it has a million options but you only need six. Nginx does those six things, and it does five of them 50 times faster than Apache.
Sure is.
I feel like unchained.
next step , stop using mysql for personal projects
I suck...
Mongo?
pce
pce
@Lusitanian because the name of apache comes from "a patchy" server
20:02
@webarto usually you need a relational database .. in that case i would recommend you to try postgres instead
@tereško Yes I do. Postrgres it is.
if you think you want to go with noSQL, it also might be educational
I might, just so I know, and you never know
@hakre hhmmm let me see whether my fiddling can help
it's cold
@webarto what OS are you running btw?
@PeeHaa Debian
This PhalconPHP contains mass assignment in Manual.
good evening
How to check if file exists in symfony
$form['image']->getData()
just put it in isset function ?
20:23
@webarto hm?
@Alexei same way you check if file exists in native php
the chat is messing with me
I just put it in if condition and it work but not sure if is correct
@hakre The closest thing I find is: ific.uv.es/informatica/manuales/php/…
@Alexei please, for fuck sake, learn the language before you start using a framework
20:25
@NikiC It's nothing personal. Chat is just being a bitch lately
@tereško I asked may be there any functions like ->hasFile()
@NikiC Go home, you're drunk :P github.com/phalcon/docs/blob/master/en/reference/… Saving directly from $_POST?
@webarto lol
I see that Phalanger learned a thing or two from Rails :D
At least it seems good at copying its vulnerabilities :P
$_POST['is_admin']
that looks sooo 5228
20:27
Also I should finally learn to write "its" instead of "it's" when I mean "its" and not "it's" ^^
@NikiC You've seen this by now: didrailshaveamajorsecurityflawtoday.com :P
@webarto Sure ^^
Phalcon\Tag::linkTo("signup", "Sign Up Here!"); WAT?!?!
@NikiC If you remember, I once edited your'e Readme :P
@PeeHaa what the hell
20:28
Yeah I'm bad at this writing thing ^^
@PeeHaa WAT you so WAT about?
@NikiC he's WAT about the thing that should be clearly WAT about
@webarto lol
@Lusitanian Not sure what's so WAT about it. Well, apart from the static method call and the magic involved. But that's normal, rite?
@NikiC wat. that is not normal.
20:30
@Lusitanian Yes, it is :P
good point :( :(
why would anyone use that shait ?
@tereško Cuz the page says it's super fast? You know, making it webscale and all
(here for once the "it's" is right!)
@NikiC it's written in C!!!!!!111 as an extension!!!
20:31
yeah , the benchmarked <h1>hello world</h1> ... what a fucking heroes
@PeeHaa ah, yes, with xml_parser expat style I could pre-process it. good idea!
@NikiC The fact that it writes html using some method is kinda wat to me.
NaNNaNNaNNaNNaNNaNNaNNaN watman!
I even should have one class for that.
@hakre noice :)
20:32
I think one of the biggest WATs is still language-agnostic: NaN != NaN
@PeeHaa yes, you can use it as well for doing some crazy stuff.
Zend_Form anyone?
"If you have a problem with XML, if no one else can help, and if you can find him, maybe you can hire @hakre."
:)
You should uninstall XML from your computer :P
20:36
That phalcon thing also kinda looks a bit like aspmvc to me
@NikiC JSON ALL THE THINGS!
:P
@NikiC It actually would be interesting to see how that turns out.
In the sense of running an experiment which parts will still work afterwards.
@hakre If you are on Windows it will die for sure
// this comment has just been read. <-- you can always do something more stupid AFAIK. ref
8
lol
//this is a comment
20:41
@hakre As in remove libxml?
@NikiC for example. but also maybe remove your internet browser (apart from the javascript engine maybe)?
since when do internet browsers use xml? :P
they might have some xml config files...
website.me how cool is that?
20:44
WHAT THE HELL ARE YOU DOING?!??!?! Oh nothing much... nuking xml my my machine to speed the thing up
2
@NikiC okay there is a thin line between SGML and XML, true.
but there's stuff like feeds, jabber chats and what not.
@NikiC I think that is JSON or YAML, at least Chrome.
@hakre XML and something-that's-a-bit-like-SGML you mean ^^
pce
pce
@hakre do you mean that builtin XML Stuff like developer.mozilla.org/en-US/docs/DOM/DOMParser ?
pce
pce
20:48
@hakre MS XSLT in iframes, oh, those sites that ran only in IE
pce
pce
but mozilla's API is different afaik - but that xml script?
@pce I have a problem with this: stackoverflow.com/questions/14860480/…
pce
pce
@hakre they know why they called it xml island ;)
But I now fire up my xpat based XML filter thingy ;)
20:54
woooo xml
@pce I have no clue :)
pce
pce
@hakre why don't you simplexml that if you won't apply styles?
...
@pce I guess simplexml won't load it either.
@NikiC: Nice answer here stackoverflow.com/a/14854568/367456 !!!
@pce: you weren't at FOSDEM, were you?
pce
pce
@hakre no, you?
20:59
@hakre thanks :)
@pce yes :)
pce
pce
@hakre cool

« first day (851 days earlier)      last day (4323 days later) »