« first day (1648 days earlier)      last day (3303 days later) » 

10:00 AM
select count(*) from userdefattrstr2 where id  >= 1286 this returns 43558129 rows select count(*) from userdefattrstr2 this returns 43558064 , less , HOW IS IT POSSIBLE ?
 
not sure either
 
Looking over traffic monitor too doesn't seem like it's anyone rinsing the bandwidth. Must be an issue somewhere.
 
@salathe lolwut :P
@Gordon :-)
 
Stackoverflow chat just crashed Javascript thread… [SIGSEGV]
 
Do you think asking a homework-esque style question on SO is okay? Considering posting that string grouping question up for curiosity.
Perhaps not as I don't have any example code. Is there a better place to post it?
 
10:07 AM
@FlorianMargaine imgur.com/ofEysOB
 
ThW
@salathe <- "haha"
 
hello everyone....im trying to create a tinyint(1) in mysql workbench and it´s throwing me this: Error 1366: Incorrect integer value...can anyone explain to me why?
 
the integer value is incorrect
 
but why is it incorrect?
 
@Japa What are you trying to set the default value to?
 
10:09 AM
i want to create a bool...0 is false, 1 is true
should i set it to 0?
but i want to understand why?
it´s like...if a user is active then 1...if not 0
but even the zero is not working
and i have been searching and i see people creating like tinyint(1)
 
@Japa I've seen that error when trying to create a column with a default value that isn't of the correct type (have you made a typo and put the letter o instead of a zero, for example). Without seeing the full SQL statement you're trying to execute, it's hard to give you the exact reason why it's failing in your case.
 
@Japa Show your create / alter table query
 
i´m not creating manualy...i´m using the diagram in mysqlworkbench...every other fields work well...this one..no!
 
1 min ago, by PeeHaa
@Japa Show your create / alter table query
 
10:13 AM
Does mysqlworkbench not have some kind of log window that shows the queries it's executing?
 
yes it does..i´m going to show
Executing SQL script in server
ERROR: Error 1366: Incorrect integer value: '' for column 'ativo' at row 1
SQL Code:
ALTER TABLE `hotel`.`Utilizador`
CHANGE COLUMN `ativo` `ativo` TINYINT(1) NULL DEFAULT NULL

SQL script execution finished: statements: 3 succeeded, 1 failed

Fetching back view definitions in final form.
Nothing to fetch
here it is
 
Empty string is not an integer
You already have records...
 
ohhhhhhh!!!!!
 
hello every one
 
@PeeHaa and because i have records...i cannot....ok....i should delete the records before i create this new colum, because the old ones don´t have this ativo field
that´s the logic?
 
10:17 AM
@Japa I would expect that if you change the value on the existing records to be compatible (ie. 1 or 0) first, that should probably work
 
@Japa Or you could UPDATE hotel.Utilizador SET ativo = '0' WHERE ativo = '' first, then it should succeed
 
I want to call .php file function using ajax.
 
Or ^
 
but to update...i should have the field first right?
 
here url: 'gethint.php' how to add function name like searchName() in url ?
 
10:20 AM
CV please
0
Q: Is it possible to STR_REPLACE a SHA-2 or MD5 hash in PHP

LiamI am not all the best with the whole encryption subject, and such.. But I am curious to play around, and I've something in mind! I know it's probably a dumb idea, but it's something different that I'd like to implement in a CMS I am coding in PHP.. Now, in theory, it sounds like it will work? An...

 
@Japa According to your SQL, you already have a field called 'ativo' and you're trying to change the type of that field.
 
I already voted on the wrong reason :(
 
@Japa Well you've already got a column, you're just changing the type. You just need to ensure that the existing data is valid integers.
 
guys...thanks so much for your help, i´m going to make the changes, thanks for the tips and time
 
@HArdik what are you saying? You want to call a php function using ajax?
 
@iroegbu yes
 
Someone create a website which is a PHP sandbox but can pull in repos from git. Like fiddle for PHP.
Thanks in advance.
 
@Fabor If you know how to properly and easily create a sandbox on centos I will send over the machine credentials
 
10:28 AM
Properly no... easily... no.
0/2
A sandbox that pulls in git repos does sound cool though. Almost wish I was able to create it.
 
@Fabor Yeah sounds like an awesomesauce idea
 
Let's get @DaveRandom to build it.
 
What about using docker containers as sandboxes?
@DaveRandom ^
build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it build it
 
I strongly need some code monkey writing tests for phpdbg -.-
 
10:38 AM
Pee Haa, do you know any people looking for a job as developers in the hague
Or that are in rotterdam lets say and can come to the hague
 
@PeeHaa I've never really even looked at docker, it's one of those things I hear people talking about and keep meaning to look at but have never got around to it
 
Nope sorry. I don't think anybody wants to leave atm
 
@Fabor You mean like, give it a git repo and it pulls, does "composer install", etc? Or, something like melody?
 
@DaveRandom What a great opportunity to implement @Fabor's idea!
 
:D
 
10:43 AM
@salathe I think he means 3v4l with composer support, basically
 
What dave said.
I imagine docker is quite useful for php bug fixing. Replicating many environments easily.
 
@DaveRandom so, melody then
 
@salathe Does melody even sandbox bro?
 
@PeeHaa No, you'd run melody in a sandbox
 
:(
This doesn't look too hard github.com/fideloper/docker-nginx-php
 
10:48 AM
It's not super hard. Just requires some reading.
 
there's already a melody docker image :)
 
I use docker image for docker :p
 
hi all, i spent many hours trying to invoke wcf from php :( take a look stackoverflow.com/questions/29769872/…
 
So... rebooted my laptop and my download speeds are normal again. Weird.
 
11:02 AM
sh*t
 
11:46 AM
Thanks @Danack <3
 
He's a staa-aa-lker!
 
:P
 
> PHP, an open-source,general-purpose scripting language, can be written in HTML.
 
11:49 AM
Kevin Spacey is so awesome.
 
@DaveRandom yeah, I dunno why I carried on reading ...
 
> Gone are the days when you required PHP development as well as SEO differently. In this day and age, one can even have a search engine friendly website through PHP. All you need to do is to hire such a PHP professional who can develop the website keeping in mind all the latest trends and happenings in the SEO industry.
let's spit him in the face, shall we?
 
what a terrible, terrible advert ...
 
I need to stop reading, it hurts too much ...
 
11:57 AM
It's like it was written by 100 different people who wrote one sentence each and had no idea what the others were writing
 
> PHP is fast when it comes to producing results. Unlike the other programming languages, PHP uses less codes and comes with its own memory building option. As it makes use of less gathering of outside object codes, it gives quick results.
And what’s more? It is search engine friendly as well.
what the fuck ...
 
oh look, poorly written seo spam articles... what will the internet come up with next?
 
one of them found it's way to reddit, I dunno if it was a joke or what ...
 
@JoeWatkins By the way… I noticed that in gdb/llvm next and finish commands still break on breakpoints … I wonder whether I should mirror that behavior in phpdbg or not
 
A new word "incurany"
 
12:04 PM
Just out of interest, the anonymous classes RFC hasn't been merged yet has it?
 
no it hasn't, I'm getting to that ...
@bwoebi not sure either, probably ...
 
Sweet I can have SEO and PHP in one.
 
cool - i just wanted to not say something stupid on reddit.
 
@JoeWatkins I'm actually a bit more in favor of not breaking, but not sure.
 
@Danack E_OXYMORONIC
 
12:06 PM
@DaveRandom You mean… everything one says on reddit is stupid?
 
By definition, yes
 
Oxymoron is an oxymoron.
 
I think at least finish should skip ... we should try it out ...
 
@JoeWatkins Not sure how you imagine this trying out to work…
 
I mean make changes and try and debug something real ... see how it really works out when you're trying to get shit done is what I mean ...
what's the point in finish if it's going to break at the next br anyway ?
you might aswell just continue, right ?
 
12:09 PM
@JoeWatkins yep, that's what I wonder too
Which is why I ask
 
@Danack real nightmares get real :-)
 
when we go against grain (what gdb etc does), we get more voices in favour of doing things the expected way ... so I dunno what is best ... maybe we should open an issue and see if anyone else joins in ... if it's no bothering anyone else then no point doing anything ...
 
@JoeWatkins I just realize that it's really not common to hit a breakpoint during next/finish … Which makes it hard to see an effect in real world
 
@Danack Isn't that some java thing?
 
12:13 PM
@PeeHaa Yes, it's one of the reasons why Java is so fucked up for actually delivering projects.
> Here’s the normal technology adoption curve (x=time, y=satisfaction):
> And here’s the same adoption curve as applied to Maven:
 
:-D
 
@Danack hahaha
 
@Dracony running any software, at all is a potential security vulnerability ... saying you should use a desktop application to administer mysql because they are inherently more secure is inaccurate scaremongering ...
 
> Use a PHP library project to create a library that can be used by other PHP libraries or PHP web projects.
O.o
 
Anonymous
12:33 PM
If I put my mvc framework here, up for a review, @PeeHaa will sue me to death :)
 
Anonymous
Will you @PeeHaa ? I basically ripped commentar from top to bottom.
 
@samaYo The fact that you named it PeeVC didn't help
 
Anonymous
@Machavity I was thinking of naming it, peewee actually.
 
Anonymous
It goes without saying ofcourse, my framework is highly modular, extensible, abstractable, solid, srp, testable, psr4, psr7, psr, dry, acid, restful compliant :p
 
that edit... here I was hoping for a ps4 framework
 
12:39 PM
really good read on disk space, fragmentation, etc. (first answer)
 
@SergeyTelshevsky Here, I wrote a book by accident. Get some coffee first. lol
 
Oh yay, me made httpd contribution \o/
 
cool @Jack
 
Is that for like Apache 3?
 
12:43 PM
@Machavity 2.5 :P
 
@Ja͢ck I've lost track. It moves so fast, you know :P
 
Anonymous
how do you guys play mp3 files in IE6?
 
Anonymous
w/out flash
 
@Machavity Yeah, it's like a high speed train ... with square wheels.
 
what's IE6?
 
12:44 PM
@Ja͢ck oh… wait. That was a bug? okay fine too :-D
@FlorianMargaine something more modern than IE 5.5
 
@bwoebi Yeah, it's a really irritating one too.
 
Anonymous
@FlorianMargaine Internet Explorer 6.
 
Anonymous
nice sarcasm btw
 
@FlorianMargaine Indexed Exception v6
 
IE6, aka Internet Exploder
4
 
Anonymous
12:47 PM
sorry I meant to star
 
@FlorianMargaine Immense Explosion (6 Hiroshima-Bombs)
 
Important Escape?
 
anyway @samaYo, IE<=8 require flash for a number of things
 
Include Exit.php <= ???
 
Anonymous
@FlorianMargaine I was hoping for some js/html solution.
 
12:50 PM
@samaYo Your best bet would probably be an Active X control. I feel dirty for mentioning such a thing ever existed tho
 
@Ja͢ck IE 5.5
 
Remember that in 2001 most browsers still relied on plugins to do everything non-HTML 4.0. Hence Flash, Java, ActiveX, etc. Even Javascript was pretty gimp back then
 
@AlmaDo … what I said…
 
Anonymous
Sometimes I seriously doubt, all the Microsoft staff, including Bill Gates are use IE as their default browser.
 
Bill Gates is no longer staff ... so he's probably using Safari now.
 
Anonymous
12:55 PM
@BillGate pls, eradicate IE when you are done with Polio.
 
@samaYo They don't. They all use Spartan now
 
This ... is ... Spartan!!! <blue screen>
 
Spartan : Microsoft :: Blink : Google
 
Anonymous
This is Sparta i.e. new Internet Explorer in disguise :p
 
@Ja͢ck Isn't it a red screen today?
 
12:59 PM
It is? How dare they change their primal colours?
 
It at least once was red… It might be black too today.
 
A black screen makes sense; just like a white page for php.
 
@bwoebi Nah. They went with dark purple. They found that in Win 8.1, it blended in with the Metro Start menu so well that people couldn't tell the machine crashed. Then they'd send a reboot signal and blame it on the hardware
 
@Machavity Ooooooh
 
Maybe red is for when something really bad happens
 
1:02 PM
The problem with IE6 isn't that it sucked, everything sucked when it came out (except opera, but I'm pretending that didn't exist... just like the rest of the world) - the problem is it languished without improvement for so long. Asking microsoft to kill off IE again is just asking for another IE6.
 
@DaveRandom "Windows has detected Linux nearby and has stopped responding. Please remove the offending hardware and try again."
 
hardware?
 
No, IE6 really did suck. ActiveX was permissive by default. Anyone remember Gator? And IE6 (which had the entire market to itself between Netscape's end and Mozilla's start) pretty much mandated you do everything their way. CSS2 wasn't even supported fully until IE7
 
@Machavity No, I think it just flashes this at you for that error
 
@DaveRandom lol
 
1:10 PM
according to master branch, all PHP7 bugs are related to variables passed by reference :D
 
That's why they are abandoning the IE brand. IE's motto for so long was "You WILL do it our way" that people still check for MSIE in the user agent so they can do it the MSIE way. Hence why IE11 pretends to be Webkit
 
@marcio yeah......they've become incredibly flaky. This is one of the reasons I'm not optimistic about PHP 7 being out this year. When fundamental stuff like that is broken, and is only being fixed in a piecemeal fashion, it's a really bad sign for a projects ability to ship.
 
And it's hard to test the entire PHP std lib with arguments passed by ref, maybe a code fuzz test could help.
 
Or we could just remove references from the language.
 
^^ That
If references are removed, we no longer have to explain them!
 
1:18 PM
@JoeWatkins The guy who wrote it:
> IDS Logic is a leading software outsourcing company in India.
Aaaaahhhhh
He set error_reporting() to E_INDIAN
 
I'm all in favor for removing references ^^ but only room 11 loves this idea
 
no
I think everyone loves this idea
 
Time to reddit
 
but they also know that it would cause so much BC break :)
 
s/everyone/everyone on room 11
 
1:22 PM
I have to admit that passing arrays by reference does make sense occasionally.
 
@Ja͢ck It's always the edge cases that get you
Traits have some great edge case uses but are terrible for mainline code in general
 
The only thing I've used traits for is logging.
 
Traits are good for codegen
 
I use traits to avoid one-way inheritance on test suites, but just that
 
class GeneratedClass {

    use UserWrittenTrait;

    // ... generated members

}
 
1:26 PM
class GeneratedClass
{
    public function __construct(UserWrittenObject $obj) { }
}
Omgz composition!?
 
^ anyway, we would be much better without traits - same goes for references (and classes... flees)
 
Yea, but not always applicable
 
Traits are only applicable to those who aren't applicable, and marcio
 
@marcio traits would be better if they could implement interfaces for static composition
interface I { }
trait T implements I { }
class C uses T { } // now implements I
Basically MI, but only interfaces and piggybacking the aliasing rules of traits.
 
@DanLugg noice, but you still have the method collision/disambiguation PITA to deal with
 
1:32 PM
which could leave C not actually implementing I
 
Is there a word that covers both serialize/unserialize without being 'directional'? I'm trying to think of what the proper interface name should be for something like:
interface foo {
    function serialize(array $data) : string;
    function unserialize(string $string) : array;
}
 
serializer
 
To me at least, that is directional - it doesn't imply that it also covers de-serializing stuff.
 
It's effectively an ObjectTranslation
ObjectTranslator?
Although that hints at i8n
 
Transformer?
 
1:40 PM
robots in disguise.
 
SerDes :)
 
function SerialPlz($val)
 
SerializerAndUnserializer
 
interface Bundle{
     function pack(array $data);
     function unpack(string $data);
}
idk
 
That should be interface Gift with wrap() and unwrap() methods.
 
1:46 PM
lol
even better
 
> In computer science, in the context of data storage, serialization is the process of translating data structures or object state into a format that can be stored (for example, in a file or memory buffer, or transmitted across a network connection link) and reconstructed later in the same or another computer environment.
Translatable? Storable? Transportable?
 
@Danack I think something like Serializable is fine, there is no need to avoid directional name when the name is clear enough
 
@marcio Are we going along with the able things? Php, with all it's lovely consistencies, is favouring Interface at the end of interface names
TransportInterface
 
Isn't that like Hungarian notation like?
 
1:51 PM
Feb 25 at 15:12, by Danack
@FlorianMargaine No....it makes it harder/uglier to write code that depends on interfaces compared to depends on classes.
Feb 25 at 15:13, by Danack
Makes mental note to add this to my talk, and to stand in front of Phil when I get to that part.
 
@Jimbo this is not important as long the name is easy to understand. I prefer Serializable over SerializeInterface.
 
if you only implement one Serializer class, there's no need for an interface
 
@Jimbo no thanks. Interfaces should be first class citizens imo
 
And for this case, the object will be operating on data from other objects, so it's a verby 'serializer', rather than an adjectiving 'serializable'.
 
@Patrick In this context, what you mean with interfaces should be fcc?
 
1:55 PM
@Danack I kinda like Marshal
ala Ruby/OCaml
 
widthdrawn the debate, feels like I'm crossing the line between dignity and PSR authorship.
 
You can't just spark a massive, pointless argument in PHP land, and then walk away. That's what internals is for.
 
@Jimbo for example JsonSerializer implements Serializer. Instead of Serializer implements SerializerInterface
 
@Patrick I prefer that too, but I see Interface everywhere these days
 
I also don't like FooClass or FooImpl
@Jimbo yeah thanks to PSR... :(
 
1:57 PM
Or AbstractFoo or BaseFoo?
Shitting PSR
 
And if you typehint against interfaces, your constructors will be littered with the word interface. That just makes things harder to read
 

« first day (1648 days earlier)      last day (3303 days later) »