« first day (1364 days earlier)      last day (3810 days later) » 

10:00
@DaveRandom, @rdlowrey Does this book worth reading? Well, low-level network engineering is still dark for me so I want to be sure I read good material. :)
AAB
AAB
I`m trying to convert .xlsx file to pdf using phpExcel
@AAB Permissions are correct? Does the file exist?
AAB
AAB
@MagiKaas The php-font-lib folder is empty
@AAB There's your problem
Get the required file, I guess
@Magikaas that's true, i want to keep slashes because otherwise i can't have right url in mail
10:02
@m_73 Have you tried the suggestion I gave you?
AAB
AAB
@Magikaas
I download the dompdf library from github
can you check to see if phpExcel is configured to use dompdf as the pdf library
please !
Then I guess you've googled for this Font.php file to see if anyone else knows about it?
How would I 'check' this?
AAB
AAB
@Magikaas Sorry Let me show you my code
@AAB No, see if you can find the Font.php file first, I am not going to review your code, I have work to do
AAB
AAB
require_once 'PHPExcel/IOFactory.php';
require_once 'PHPExcel.php';
$rendererName = PHPExcel_Settings::PDF_RENDERER_DOMPDF;
$rendererLibraryPath = 'dompdf';
if (!PHPExcel_Settings::setPdfRenderer(
$rendererName,
$rendererLibraryPath
)) {
die('NOTICE: Please set the $rendererName and $rendererLibraryPath values' .
'<br />' .
'at the top of this script as appropriate for your directory structure'
);
}


$name='List.xlsx';
$inputFileType = PHPExcel_IOFactory::identify($name);
$objReader = PHPExcel_IOFactory::createReader($inputFileType);
10:05
That and I myself also don't know how it all works, I'm just trying general debugging
@AAB Please remove that or put it on a note website and link to it
@Leri Do you understand IPv4?
@DaveRandom Well enough to program application layer. If that counts.
@Magikaas i tried now with htmlentities, htmlspecialchars but nothing works, which function do you mean exactly?
@m_73 Can you show the input and output urls in a pastebin, so I can see what you are dealing with?
@Leri Well the point being that a book like that will focus on the differences between v4 and v6. The internet still runs on v4 in practice and will for some considerable time yet, so if you want to understand TCP/IP I suggest you make sure you fully understand how v4 works before you worry about what v6 brings to the table
10:08
@Magikaas ok
I can't comment on the quality of that specific book as I haven't read it...
@m_73 Be back in a bit, lunch time :P
rofl the c# chat gives you such stupid answers
I ask 1 thing such as: what is the best tool {opinion based} about making cracking your own application harder
@DaveRandom Thanks. Do you know any good book/resource besides RFC 1180 and 783?
then some smart asses trying to be funny: "
Just make your code open-source then you don't need to worry about people cracking it."
10:12
I'd prefer book though.
@Leri Honestly I have no recommendations for books because I've never actually read one. All my knowledge has come from reading standards and on-the-job experience.
Anyone has comments on this? ^
Looks interesting.
@DaveRandom Oh, ok. I don't get on-the-job experience with that.. because all I have to program is application layer. So to keep up I need to read standards regularly, otherwise I forget it...
@Magikaas i created a example here: pastebin.com/2NrtcMiQ, in the second variable where is img tag placed i see in html code image url without slashes.
10:24
hello i have cakePHP issue ..
0
Q: cakePHP save data in two tables in edit case

Puzzled Boyi want to save edited data in two tables in Edit case. Table 1 : equipment_types -> to dave Equipment Types Table 2: equipment_types_sizes -> to save Each equipment type's size. Problem : data in Table 2 equipment_types_sizes is not updating after edit. EquipmentsController.php if ($this->...

Yay, for the mess!
Still churning through that WP plugin @PeeHaa?
#php I freakin' love you guys ... The words amazing, overwhelmed, and thank you, are all the Engl... http://www.gofundme.com/b9dfcg?pc=tw_u
@Fabien Neh it is finished. Was asked to make a little adjustement
10:28
wow. What a lovely function to debug.
that is one function? :o
Yeah :|
And look at the return values:
(null|false|string)
Null, if redirect not needed. False, if redirect not needed or the string of the URL
^ wat :X
lol
@Fabien Still better than this. :P
@m_73 I don't see any problems: ssbulletinboard.tk/test.php
10:31
Great way to scare people from internals.
@m_73 I took your source
wrote: `echo($messageClient);`
and it showed the correct thing.
@Leri That's a small function ;)
@MikeM. yes, but in my software the slashes are ingored, and image url is like this: pastebin.com/MPMLQfty
what is your host?
did you write it with slashes ?
More than 800 lines ...
10:33
yes, i get it with slashes, i think the problem is because this variable i use in other variable?
@m_73 If that is the loading page which loads the image and no other page is informed with it it should work
Is this a PHP time-stamp-format? 2014-07-07T15:49:00+0200
@NikiC Good that you said this. So I stopped scrolling. Well, I was trying to fully understand parse_url's implementation and came to conclusion it has its own life and it's better not to try to understand one. :)
@Duikboot yes
It that one easy to transform to a 'normal' date as in : 07/07/2014
day month year
It's currently $event['date'] .. so I have to change it with the date() function I guess?
10:37
@Duikboot I guess your time stamp is RRRR-MM-DDTH:I:s
Why don't you use spaces? so it will end up like Y-m-d T H:I:s
or even more logicial: Y-m-d H:I:s
captical I must be i
AAB
AAB
@Magikaas the problem was due to code being moved to github download the library from code(google) everyithing fine now
I only need the date :)
dd/mm/yyyy :) from it
@AAB See. All you needed was the file ;)
@m_73 You didn't add the output url in that pastebin, I don't know what to look for if I can't see exactly what's wrong
then just do d-m-Y
Can I do? : $newDate = date("d-m-Y", strtotime($event['date']));
10:45
I am going off to make myself ready for the hospital
So I guess it's a yes
just try it out be aware d-m-Y returns for today: 11-07-2014
if you want 11/07/2014 do: d/m/Y
@PeeHaa What in the name of all that is holy is THAT?!?!?
@Magikaas here is url wihout slashes: pastebin.com/MPMLQfty, i get it so if i use this image variable in other variable
@Jack just have to say: the way you are trying to do that merge is the only way that makes sense to me. Starting at master and merging backwards seems a bit insane
@m_73 And if you add \ to it?
10:50
in the url?
@m_73 where is it used? How does that script looks like? Is the variable changed before the new variable with slashes load?
so ... today I got hit by a car
@tereško lol sorry. You okay? :P
3
kinda-ish
What happened?
10:52
@tereško pics or it didn't happen What happened?
car hit me while i was riding on a bicycle lane
@tereško From behind?
front-side
front-end sucks :P
@tereško Did you at least damage his car a little?
Ouch teresko is it bad??
10:54
@MikeM. this is ajax file, i get image url on the top of my file: $productImageURL = $_POST['thumbnailurl'];i can't understand why it not works because i get so also product url and it works
some plastic crap came off and, since the car was a white lexus, it has some nice black scrapes from my bicycle
@tereško any damage done to you or your bike?
@tereško oh, man. It's ok here. The car may hit you even if you're on foot road (because there are many such "free-road"-lovers, who don't want to wait on the usual road)
Imma scream HUZZAH if you manage to dent his car and got away with pristine clear skin and bike :D
@tereško Driver apologetic?
10:55
We can't help with only that script since it works fine if its like that. There must be another script that is involved that changes the var
scraped left knee, left hand knuckles and shoulder .. and a sour spot on letch ass -cheek
@Fabien yes .. and scared shitless
Fucker. Why wasn't he/she paying attention?
At least you didn't hit your head. That's a good thing.
What if you do a string replace into the messageClient with as " " replaced into "/"
> WordPress Digest volgt jou nu
^ lol
@m_73
What if you do a string replace into the messageClient with as " " replaced into "/"
11:00
@Fabien not sure he could
Anything to be done post-accident? Or just a 'on with the day' scenario?
Remember if the image url contains spaces to load, use %20 as url space else the replace change it into a slash
I was hungry and 100m from my goal .. besides, i have nothing broken, bicycle is fine and phone ok too
I did git rm -rf <dir_name>, committed and pushed. I can still see removed dir, what am I doing wrong?
Fair enough. Second person in here to be hit on the way to work this year I believe.
11:02
I've added dir to exclude file too
Teresko dit (s)he stop after the hit?
@MikeM. i tried now so: str_replace(" ", "/", $testImageURL) but the same result, is my replace function not correct, str_replace() ?
Iroegbu might be a stupid question but is the page content refreshed?
Yes, many times.
11:04
Oki then that couldn't be the issue xD
@m_73 are you aware that you have to use it in the messageClient with the url as var so the $imageUrl followung your pastebin
who starred that ..
Guys whats basicly an exploit and how can you check your scripts for exploits?
E_VAGUE
Fabien if you're talking about my question then explain why. Because I want to know if my scripts are exploitable..
How many exploits do you think there are in the world of programming?
11:18
Alot but I mean like the most common risky ones you met..
It's completely dependant upon what you're trying to exploit.
Uhm forum software
I am creating forum software but don't know much about exploits so idk how secure/exploit free my script is
Depends on your specific code
Ye so how can you check it...
How can you actually know if a code is exploitable?
You know the code well
Or you get burnt
Or you paste it in here and see if someone ridicules it.
11:24
@MikeM. this is original file: pastebin.com/yWZRVFvs, only website name changed and emails, output in browser is: prntscr.com/41ke9q
i am stucking in one problem.. when i send HINDI font (like इन्कैन्टेशन) it gives output as इन्कैन्टेशन
Can anyone know why it is hapeens..
@m_73 you have twice an img src in it use id's one img id is productImage and one id is testImage also try the replace with inline instead of writin $testImageURL inline of the messageclie t
Bham it seems like the language is unknown
@m_73 I cannot help you future because 1) I am on an Iphone and 2)I need to leave in a few
G2g now cya all back in probably in a hour if the hospital is fast enough rofl
user924016
WTF @RonniSkansing
@JoeWatkins is there a simple standard way to get the name of the type as a string from a zval*?
user924016
Just clicked a random link on pastebin and it threw that at me
user924016
11:42
lol
@DaveRandom zend_get_type_by_const, pass Z_TYPE ...
there's another, but slips my mind
bet it's near that in header though ...
kk thanks
11:59
@DaveRandom inorite? :)
So...Oauth 2 (or rather Oauth poo!!1!). Basically I now need to encrypt either my database that stores the 'bearer tokens', or store those tokens somewhere else secure right? Rather than with Oauth1, just needing to keep my keys secret.
@Danack yes
@PeeHaa Awesome.
12:17
I have successfully recovered 90% of my database!
@PeeHaa Nice, was this about that big log file someone had yesterday that could not be recovered easily? Or is this something else? :P
@Magikaas Nope wasn't probably me. I have been dicking around with this things for a couple of days :)
@PeeHaa I see :P okay, well congratulations either way ^^
Thanks!
^ backups? who the hell need backups?
2
12:21
^ that
in USSR database backups you!
someone can give me a help with an error Im having verifying if an input is empty when user submit form?
if (empty($_POST['inputname'])) {
    // input is empty
}
although because PHP is ridiculous, that will give false results if 0 is a valid value
thanks DaveRandom but my input is an array
Im having this:
my input is like this: <input type="text" name="title[]" value=""/>
Im trying like this:
if(empty($_POST['title'][0])){
for($i=0;$i<$_POST['title'][$i];$i++){
echo 'empty';
}
}
And I have an error: Warning: POST Content-Length of 417099728 bytes exceeds the limit of 8388608 bytes
@AlmaDo Yeah, NSA backups for you. ;)
@OzzC Use a foreach
right. Who said NSA are bad guys? They are kind and so sincerely. They even spend their free disk space to make backups of your database without asking any fee for that!
function array_input_is_empty($arr) {
    foreach ($arr as $el) {
        if (!empty($el)) {
            return false;
        }
    }

    return true;
}
if (array_input_is_empty($_POST['title'])) {
    //input is empty
}
@AlmaDo Yeh but they charge you to get the data back. Generally they charge you with a criminal offence. That's a pretty steep rate.
@OzzC you are upload any files when form submit?
Yes, but now because of this error not!
12:32
lol
Massacre Publishing Daily is out! http://paper.li/MassacreFiction/1357665853 Stories via @My_T_Maus @PHPeeHaa
In a society that increasingly retains, sometimes the last thing you want is a backup.
@OzzC You can upload files, you just can't upload 400MB files. Well you can if you change the ini settings, but don't. HTTP upload is not the right way to transfer files that large.
Yeah, big file uploads are typically done with BitTorrent =D
@DaveRandom Booooooooo
12:35
@OzzC i think you have to change the values of post-max-size,upload-max-filesize
I already change my ini settings and my upload until now has always worked well, this error starts now, while Im trying to verify if my input array is empty
It's actually pretty ridiculous that there's no resumable upload mechanism built in to HTTP (or at least, not one supported by browsers)
That's the real issue with uploading large files
@PeeHaa 3 === delete database?
;)
Also fuck github:
12:37
@PeeHaa What's your max size set to on that?
Response status: 200
Response body: '{"error":"bad_verification_code","error_description":"The code passed is incorrect or expired.",...}'
@DaveRandom 3G I think
@DaveRandom At least you can do chunked transfers with JavaScript now.
@PeeHaa Yeh, fuck sanity :-P
12:38
DaveRandom even with your code I got same problem, my input is inserted with jQuery append. Like this: $('#test').append('Please give a title to pdf<strong>'+name+':</strong></div><span>Title for pdf '+name+':</span><input type="text" name="title[]" value=""/><br><br>');
}
});
@Danack shakes fist at computer screen
do you think error can be because of this?
Ugh, the horror of unescaped html
For great justice, all browsers should make .innerHTML a readonly property =p
@OzzC The post size error can only be related to a file upload, I'm pretty sure your browser would crash long before you had enough elements on the DOM to create a 400MB+ post body from form elements alone
@DaveRandom I still want to look into whether there is a smarter way of doing it
But I am not sure how php handles uploads yet
12:40
@Jack Before they do that they need to have a way to create a Document from a string. It is really just insane that the only way to do it is with innerHTML (afaik)
@DaveRandom Yes, I was just thinking about that.
@PeeHaa File APIs + websockets = superawesomeness on toast.
:-)
@PeeHaa Currently, PHP has to parse the whole request body and create one (or multiple) files based on that.
@Jack If the string is well-formed XML there's a dirty trick you can do with XHR, but that's equally hacky and useless
12:42
So if you upload 3G file, the body size would be roughly 125% of that.
@DaveRandom As a real gentleman, I don't shy away from dirty things.
Errm... that's what she said?
Not sure why she claimed to be a real gentleman though, that's untrue on so many levels
She's a gentleman? I don't get it :)
> http://php.net/usort
Returning non-integer values from the comparison function, such as float, will result in an internal cast to integer of the callback's return value. So values such as 0.99 and 0.1 will both be cast to an integer value of 0, which will compare such values as equal.
@bwoebi Yessss :)
A common mistake.
Happens in JavaScript too afaik
JS is even worse for shit like that, everything is just a Number :-(
12:48
I like that numbers aren't discriminated against.
@Jack I was wondering why adding numbers like 0.00001 didn't change the usort() result…
No more arguments between the Real and Natural numbers :)
I'm wondering why. …
@PeeHaa There's meant to be better ways of configuring nginx for large uploads, which may be of interest: coderwall.com/p/swgfvw
Useful nginx is useful.
12:52
useless php is useless
@Jack Multiplied by 1e12, problem solved :-D (in usort() comparison function)
@bwoebi Or ... <=> operator =D
what the.. we'll have <=> in php ?
@Danack Interesting indeed
no, we don't need a spaceship operator which might present the same type of issues…
@AlmaDo no, there was just one RFC… don't remember if withdrawn or failed
12:54
link?
//or what should it do
@bwoebi Well, it wouldn't right? Because it would basically be a shortcut of doing ==, < and > comparisons.
@AlmaDo It's like how strcmp($a, $b) would be $a <=> $b.
@AlmaDo I like the idea. array('a' <=> 'b') where both a and b are both keys and values.
:D :D
@Jack yay.. why?
Like all good stuff, it hails from Perl.
@AlmaDo Because ... Perl
And writing comparison functions is hard.
we already have <=>
return $x<$y?-1:$x!=$y
12:57
you forgot the (int) cast, but yeah .. that
why int cast?
will work for all comparable on < and >
oh.. the result.. right
Because "always number" > "boolean and number, not sure"
@Jack no, second will result in bool (false/true)
so int cast is needed if we want exactly -1/0/1
yes.
which was exactly my point.
but, well.. for callables that will work just fine. For integers $x-$y will do the trick

« first day (1364 days earlier)      last day (3810 days later) »