« first day (1107 days earlier)      last day (3857 days later) » 

11:04 AM
Can somebody please help me with this? stackoverflow.com/questions/18622068/…
 
11:29 AM
@Arthur Read the documentation: php.net/manual/en/book.imagick.php
 
Slow Sunday.
 
@Comfreek I have tried that
 
Anyone else see the irony here
 
@Arthur So what's the exact problem ? Getting some errors ?
 
@Hamze I do not get it done
 
11:40 AM
@Arthur Ah, so you want to get the effect of "-resize 50% \ -gravity center -crop" ?
 
@Hamza Yes please
 
@Arthur Try "$thumb->resizeImage(($resize_image_1 * 2),($resize_image_1 * 2),imagick::GRAVITY_CENTER,1);"
before my topic is closed since it's already answered I would like to ask you guys what you would do? — Imri Persiado 2 mins ago
^ lol
 
12:05 PM
@tereško I was waiting for that ^_^
 
12:24 PM
@JoeWatkins I do like and I do know how to do it in Win, also needs MAC address info
 
@Hamza With the exec command the image was zinomen.com/images/profile/1/… now the image is zinomen.com/new/photos/… it is not quite the same...
 
@DaveRandom I will submit patch, if you could get same output for win that might be nice ...
 
@Arthur I hope my little repo help you to achieve many things with imagick github.com/abhimanyusharma003/ImageMagic
 
@tereško They usually have fun, when group is empty.
I know this is not fun place. But that was just a thought
 
12:35 PM
people abuse things
we get enough crap when someone learns how to use tags inside of chat
there is need to add more options to spam channel
 
@Basic Yes, but I have a kind of facebook/twitter profile image
 
@DaveRandom can you do it with SIOCGIFCONF/SIOCGIFHWADDR on win ?
 
@tereško Ok, I got it :-) . that's a drawback of that bot
 
that might be more portable, unix would support the same kind of thing ...
 
@Arthur ??
 
12:40 PM
@Basic Crop an image to same width and same height
 
@Arthur That will do it.
Or you can use imagine , but that do no support caching and re-sizing on the fly
 
@DaveRandom update the bug if you get anywhere ... bugs.php.net/bug.php?id=17400
can you believe they have been waiting more than 10 years !!!
 
12:56 PM
17
Q: Minimum requrements for storing last 4 digits of credit card number?

Andrey BotalovWe have a merchant website that uses Autorize.net's CIM and AIM. Our users may have multiple credit cards so we'd want to give them opportunity to distinguish between credit cards that they use on site. Currently we think about storing cardholder name, 4 last digits of CC number and its expiratio...

The first answer links over to a PCI doc: pcisecuritystandards.org/documents/pci_dss_v2.pdf Seems up to date.
 
@basic Is this the correct way to run the script?

$image = new Image();

$image->open($_FILES['file']['tmp_name']);
$image->resizeImage(100, 100);
$image->save('photos/'.$name.'_thumb'.$extension);
 
No, use it like this, or use composer for loading the class
<?php
require_once('ImageMagic.php');

use abhimanyusharma003\Image\Image;

Image::open('in.png')
->resizeImage(100, 100)
->save('out.jpg');`
 
Will you folks kindly learn to format your shit properly?
 
@DanLugg I always fail in this.
 
four spaces
before each line
monospaces shit.
 
1:09 PM
Let me try
`
four spaces
before each line
monospaces shit.
`
LoL
 
Did I say use backticks?
 
where i use brackets. Help says code
 
Neat.
 
@Basic hmmm...

<?php

require_once('ImageMagic.php');

use abhimanyusharma003\Image\Image;

if ($_POST['action'] == 1)
{
Image::open($_FILES['file']['tmp_name'])
->resizeImage(100, 100)
->save('photos/'.$name.'_thumb'.$extension);

print '<img src="photos/'.$name."_thumb".$extension.'">';
}
else
{
print '<form method="post" enctype="multipart/form-data">';
print '<input type="file" name="file">';
print '<input type="hidden" name="action" value="1"><br />';
print '<input type="submit" value="Send">';
 
Cleanup in aisle 11.
 
1:16 PM
yey big wall of code!!!
 
@reikyoushin Sorry
 
@Arthur remove this __DIR__ . DIRECTORY_SEPARATOR from it's constructor
 
@HamZa what the hell is this
 
@BasicBridge Thanks, it works now! But now i have this image zinomen.com/new/photos/… and with the exec I had zinomen.com/images/profile/1/…
 
@Arthur Honestly, isn't it better now :)
 
@Arthur There are some other methods that you can use. Each function has different purpose. Read the docs
@HamZa haha
 
@BasicBridge I will do thanks. And maybe it's better to make the script with no quality...
@HamZa You are absolutely right :)
 
1:40 PM
@Arthur what do you mean ?
 
@Arthur And don't forget isset($_POST['action']) ...
 
@BasicBridge Remove $quality = 80 from the class...
 
Wordpress is making me loath programming. Why would they code it like that?
 
@HamZa Yes, but this was a fast test
 
@Arthur there is not much difference between 80 and 100 on image. 80 reduces the size of images upto great extent
 
1:43 PM
ok
 
@BasicBridge Use the quality from the uploaded image
 
@Arthur then use this ->save($file,'jpg',100)
@BenjaminGruenbaum I think to make stuff easier for new comers
 
@BasicBridge It's horrible :(
 
debugging broken windows installations is one of the least rewarding things you can engage in :-(
 
@DaveRandom debugging php.
 
@BasicBridge When you look at the old image zinomen.com/images/profile/1/… and when you look at the new image zinomen.com/new/photos/… you see the old image has a better structure
 
@JoeWatkins kk I'll take a look in a bit, I'm currently drifting in and out a bit
 
2:07 PM
@Arthur are you sure that you are using quality 100
 
@BenjaminGruenbaum At least PHP gives you something to go on if you know where to look. Windows doesn't even write the bootlog to disk until it's basically booted, which means that if it won't boot it's very hard to find out why is won't boot.
 
@BasicBridge Yes
 
@DaveRandom I've been doing wordpress for the last few hours and I want to kill someone.
 
But what does the fox say?
 
morning
 
2:08 PM
I've got a stop 0x7b, I know it's a driver that isn't loading properly, but I can't find out which one in any sane way, so I'm currently just replacing vaguely related .sys files at random :-(
 
@MadaraUchiha let me know when you'd like to go over some go :)
 
@BenjaminGruenbaum Ahh yeh, but debugging Wordpress isn't debugging PHP as such, it's debugging an irreparably fucking awful PHP codebase. It's not that languages fault that WP is one of the worst things ever created
PHP has enough things wrong with it, don't blame for things that aren't it's fault
 
It is pretty funny how WP evolved from a blogging platform to whatever it is now. It doesn't seem quite 'natural'.
 
@DaveRandom :/
That doesn't help me at all :P
 
mornig
 
2:13 PM
@Arthur :im not getting any such issue, is your image like converted from one format to other
You can debug the code, if want to help can help on github repo]
 
I blame PHP for WordPress
 
@BenjaminGruenbaum Oh you want help? Use this then: gist.github.com/DaveRandom/7182654
^ magic script that fixes any wordpress installation
 
:)
 
@DaveRandom What alternatives do I have to WP?
 
@BenjaminGruenbaum What are you actually doing?
 
2:18 PM
PageLime is pretty cool.
 
(I might try and actually be helpful now)
 
@DaveRandom I need a blog for our marketing people.
They already know how to work with WordPress and it seems like the most popular platform.
They need nice wysiwyg editing abilities and so on.
 
Have you seen ghost.org ?
 
@BasicBridge No, it is standard Windows Vista image (jpg format)
 
Which conveniently dissuades users from using WP before promoting itself :)
Has anyone actually reviewed Ghost's codebase yet?
 
2:23 PM
This is quite interesting when you use `file_get_contents` on this image http://wallpaperswide.com/download/batman_arkham_origins_12-wallpaper-800x600.jpg
You get HTML, also when you paste this URL in browser it redirects to site
But when you paste this URL on imgur.com it fetches the image...??? How
 
I had a poke around in the leaked version from a while ago, not actually looked at the production codebase yet
 
@DaveRandom @Fabien seriously?
Why would I try anything that's not battle proven?
 
@BenjaminGruenbaum Well you are using WP now don't you :P
 
Wordpress is coded like shit but I would never try a new hipster technology for a business critical application.
 
2:25 PM
@BenjaminGruenbaum Why would you use wordpress, which has been into battle thousands of times and lost most of them?
 
@BenjaminGruenbaum My argument would be because it's not wordpress. But I am inexperienced here.
 
@DaveRandom Because lots of sites use wordpress successfully.
 
Especially for blogs.
@DaveRandom Yeah, because I'm sure Ghost is ultra secure.. I'm an early adopter for my stuff, not for work.
 
@BenjaminGruenbaum And a lot of them gets pwned once in a while
 
2:26 PM
I'd use Ghost for my own blog.
 
Out of curiosity why do none of you try creating a decent blogging platform? Lack of interest? There's evidently a gap here.
 
@Fabien I started it once, but attention went elsewhere
 
Seems like a better joint project. Would be sizeable no?
 
I don't know, personally I'd go to the ends of the earth to avoid having to use WP. The fact that something is brand new does not put me off, especially with what Ghost promises.
@Fabien Blogging platforms should be tiny tiny little things.
Otherwise you're just creating WP again
 
Fair enough. Guess I would struggle with drawing that line.
 
2:31 PM
Can somebody fix the width of my inputs for me requestable.pieterhordijk.com?
 
^Another reason I didn't take to Bootstrap :)
 
Just try to remember what a blog is and you shouldn't have a problem. That's not to say that all the stuff that WP does isn't ever useful, it's just that it's not a blogging platform, it's a CMS
 
@Fabien I just stole some stuff not the entire thing, but I #failed :P
 
@PeeHaa I had the same issue when I used it. So doubt you failed. Pretty sure it's a bootstrap failure.
 
:(
Is @cryptic awake yet? I'm sure she can fix me up
Either them or somebody from the CSS room
Let's see if they are awake yet
 
2:33 PM
type="text"
 
@JoeWatkins ? :P
 
sorry separate the select rule and use width:97%;
 
@PeeHaa where is container ??
 
dunno what width the selects should be probably 100 ...
 
I cannot just use 97% because the padding isn't in %
@BasicBridge What container?
 
2:35 PM
<div class="container">
 
The problem is that input don't get block display :( I think
@BasicBridge Not in it
But that shouldn't matter, because there is a div around it as container
Right? Right?
:P
[insert-peter-griffin-css-meme-here]
 
@Fabien Why would I create my own?
I need one blog.
 
@BenjaminGruenbaum I wasn't suggesting you do.
 
howdy @JoeWatkins
 
I was curious as to why no one here has.
 
@PeeHaa the select arrow is due to the padding btw.
0px 0px 0px 10px will fix it
That also pulls in the inputs a bit too.
 
Please.... kill me...
 
@BenjaminGruenbaum I have a gun
 
@PeeHaa style.css L:37 padding: 45px 15px 15px 10px;
Of course that means it's no longer 960px :P
 
2:46 PM
Sure, in about 30 mins?
 
@MadaraUchiha np just ping me
 
(I have tried and failed, in other words)
 
Nice 404 you have there :P
 
:-S worksforme
 
HOLY CRAP
It's so bad.
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
wth
		<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
wth were they thinking? Why would anyone write code like that?
 
2:52 PM
@BenjaminGruenbaum Why are you checking WP's src-code lol ?
 
@HamZa Because I'm using WordPress for a blog. It's supposed to be the simplest thing.
 
lol
 
@BenjaminGruenbaum Seriously, if you think WP == PHP it's hardly surprising you don't like it
 
@DaveRandom I never said I hate php because of wordpress. I just said I hate wordpress, and seeing that sort of code is the sort of thing that shapes a negative opinion of the language.
 
@BenjaminGruenbaum I absolutely agree with you
@DaveRandom Well, that code right there is really similar to stuff I work with
It isn't WP
The problem isn't just that WP is like this...but a lot of applications are
 
2:56 PM
You can't possibly have heard from way over there, but that was the sound of me shooting myself in the head
 
all german books are Mein Führer ... stupid ...
 
hello
anyone have any experience with amqp? i have an install issue
 
@EyalAlsheich The only amqp I know is a protocol... what install issue?
 
well i installed it, and it works when i run my script on through apache
but no ton CLI
 
OS ?
 
2:57 PM
i made sure the cli php.ini has the extension
ubuntu
 
Ah, sorry - I haven't worked with amqp with PHP, only with .NET. Probably other people here can help.
 
show me path to cli
show !!
 
/etc/php5/cli/php.ini
 

« first day (1107 days earlier)      last day (3857 days later) »