« first day (1859 days earlier)      last day (3315 days later) » 

00:00
pcdelete.php?id=13&project=9 will make the post id available to you
I have no variable called project
ah but I do have projectID
if you redirect using that, what happens? Does it contain the correct id for the project? What exactly is the problem?
comment id 13 has a projectIDof 9
hold on
I think I'm not getting the projectID
this is my url pcdelete.php?id=15&projectID=
well I got the projectID but it just redirected to projectrequestdetails.php?id= which it is supposed to go to but with id=9
@iroegbu well at least i've got it going to ?id=somenumber. Now I just need to get it to be the projectID which is the same as the project id
00:16
exactly the same way
as you put the 15 there for id... put the correct number for project id
I can't just put the correct number it has to be coded to be correct
I think I need to pass a value through my delete script
pcdelete.php?id=24&projectID=9
my dev tools says this:
id:24
projectID:9
aint dat what tha fuck I holla'd at you earlier?
yeah but the url doesn't go there
header( "Location: projectrequestdetails.php?id=$projectID" );
that is another issue... your link is not correct. I do hope you have removed all prints and echoes and all what not before attempting to redirect
if you type projectrequestdetails.php?id=9 in your browser does it work... if not, find the correct thing that works and put it there
pcdelete.php?id=24&projectID=9 that is the url when I click the delete button and then inside the delete script it does its thang and finishes with the header part
yes .php?id=9 works
00:32
I hate these I/O bound bugs where I need to investigate why something was not called…
@iroegbu My only issue left I think is that I'm not passing my projectID through my pcdelete.php code
Anonymous
01:03
Once a laptop is disassembled, what else can you do to improve anything aside from clearing the fan?
Anonymous
I have mine opened right now
put it back together
Anonymous
meh
Anonymous
somethings are jammed, not sure how to continue ,..
01:20
You can get some compressed air and clean the keyboard
Anonymous
I have nothing except a hair dryer
Fatal error: Cannot use positional argument after argument unpacking
who added this stupid restriction? -.-
well, now I have foo(...$args, ...[$arg]) instead of foo(...$args, $arg) …………
@bwoebi Yeah… I've hit it before.
Seems completely arbitrary.
01:26
well, it'd need special handling inside VM…
Best argument probably is: laziness ^^
A sane laziness which every insane dev should have :-)
The application requires too many lookup tables in MySQL... (too many checkbox-sets)... I feel I am repeating a lot of these tables. For example, all these lookup tables have two columns - "id", "title". If I merge all these tables, I lose the benefit of foreign key. What are some other alternatives.
@bwoebi Just do an AST rewrite…
foo(...$args, $arg) -> foo(...$args, ...[$arg]) instead of erroring.
@LeviMorrison … to ...[$arg] you mean? yeah, would work, but little hacky though^^
Eh, seems better than disallowing a perfectly valid construct.
Ahoy hoy
01:35
hey :-)
what's going on?
I'm trying to add Intel C++ compiler feature support to CMake.
fighting with code to get websocket closing properly tested to be precise ^^
Been working on it for two days.
I've got C++11 features working but the C++14 features keep trying to use gnu++98 and that's never going to work.
I am not seeing anything different about the C++14 stuff and the C++11 stuff :/
:-)
@LeviMorrison wait, huh?
01:38
I meant I'm not seeing anything different in my C++14 detection and my C++11 detection that would cause C++14 to just fail.
ah
nevermind
thought for a second (i'm tired) that you were saying there is no difference between 11 and 14
Hahaha.
Actually I've learned some things about C++14 I didn't know before.
I knew you could do this:
auto foo() -> auto {
    return 1;
}
You couldn't do this before C++14. But you can also just do this:
decltype(auto) foo() {
    return 1;
}
also:
auto foo() {
    return 1;
}
interesting
@rdlowrey uhm… testing reveals … interesting bugs… like try throwing in your Websocket::onClose() and you'll get an OOM from recursion… :'-D
01:49
Any tips on how to store "other" text? i.sstatic.net/0H81O.png I am confused about how to lay out MySQL. I could simply store text of each of these items (whether "other" or not) and not worry about foreign keys. Any down-sides to that?
@rdlowrey the reason is that $this->now isn't initialized (yes, only happens when you connect quicker than the timeout watcher gets triggered first time…)
02:03
And then it turns out that close frames are never sent under normal circumstances because $client->closedAt is actually set before the call to compile() for writing the close frame… well, yeah :-D
Sigh… it's putting all of my C++14 features under C++98 features… :(
oh
var_dump((function(){0&&yield;})() instanceof \Generator); // bool(false)
yeah, unreachable code elimination at AST time…
02:22
uhhh
that's wrong
it's still a generator
Sigh… it correctly detects which versions support which features… but then it uses the wrong flags when it generates makefiles :'(
02:57
I have tooooo many attributes for users which resulted in too many columns. Should I look into EAV instead?
 
2 hours later…
04:45
moin
05:03
0
A: PHP-FPM and pthreads

Joe WatkinsIf you are using an old version of PHP and pthreads (<7), then the threads will run without having stdout set correctly (because FPM and Zend have no way to set it). The most recent versions of pthreads (for PHP7) prohibit execution anywhere but CLI. There is no way to use threads sensibly at t...

/me wonders how many times, and for how long, will I have to explain the same things
 
1 hour later…
06:17
Well… I have fixed a few issues and hit a genuine compiler bug.
Fortunately it was load and clear: "internal error: assertion failed"
06:43
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

I am getting this error. Website is hosted on godaddy server.
Any help for this post,
0
Q: Fotorama thumbnails creation dynamically using php

Rose<div class="fotorama" data-width="700" data-ratio="700/467" data-max-width="100%" align="center" data-arrows="true" data-click="false" data-swipe="false" data-autoplay="2000" data-nav="thumbs"> <?php $query="select * from released_movies"; $queryr=$con->query($query); ...

Hi All
hey, any help on my issue @alwaysLearn
07:01
@ShreeshKatyayan what have you tried to debug that issue?
I hosted the same thing on Hostinger and Xampp localhost as well, it works. But when hosted on Godaddy, it gives this warning.
07:13
simple no body should godaddy even if its last hosting provider on the earth
you have done huge mistake so now its time to suffer :D
Morning gents and genties
@NullPoiиteя Is Godaddy really that bad? they host our DNS records or w.e it's called when you host that kind of shizzle.
@Epodax I have really bad experience with godaddy (whm-cpanel), i am useless with those software i would rather go with command line
Hehe, each to their own, although we are only hosting our DNS there, the server itself is hosted down in Germany
08:00
I asked a question of somebody (my question: If I have 100 million rows the search speed will be dramatically drop?), And he answered me: No - if you have proper indexes the speed will not dramatically drop
Now, I want to know, What is the exact mean of "proper indexes" ?
It is just clicking on this?
@Fabor Nothing much as usual :)
MOrning
Abe
Abe
08:17
mornings
moin
0
A: Background Processing using pthread in php

Joe Watkins The issue here is that the thread does not execute if I don't use: $threadWorker->join();, which eliminates the whole purpose of multi-threading in this scenario. It is likely the case that the main thread's stdout, or some other dependency, is being closed or destroyed before the thread get...

me, saying things ...
Morning all!
09:19
@JoeWatkins, zval.u2.next is a uint32_t. That makes it interesting to work in and around zend_ulong, especially when casting negative numbers. Should I just use uint32_t and assume that no one would ever add more than 2^31-1 items?
I'd rather not do that, but I'm not sure how to manage the conversions otherwise.
Morning roomies!
Sorting out office playlist, let's play the top 50.
Justin... justin.. justin...
Okay, maybe it's just luck of the shuffle
justin justin justin justin
Looks at the playlist Okay he has 15 songs in the top 50. Welp
someone is trolling you.
Good mourning
09:36
SQL TRIVIA: Adding foreign key, from primary key to foreign key in other which can be NULL, adding with options restrict works fine, when I use ON DELETE SET NULL, it fails, any ideas? (update: it says check datatypes, but both are int)
@Naruto DDL?
?
Mm.. I fixed it, removed the field, re-added, made index, made it possible it could be empty, then added constraint again and now it works.. The mysteries of mysql :P
Guys. We are planning to develop an architecture for an ERP
But one of our Engineer gave an idea like bellow .We will have a lot of Vendors for a ERP
hello every one
any body know about google analytic API with php integration ?
@MagentoLearningPhase gfgi
09:46
@underscore what ?
But one of our Engineer gave an idea like bellow .We will have a lot of Vendors for a ERP. Without creating complex Controllers and models . create a sub folder for each vendor under the vendor folder and create MCV according to the vendor folder
@underscore Could you please tone it down a bit?
thx. but yeah
@PeeHaa does it make sense ? creating a sub folder for each vendor and use their models and controllers inside it
I'm not peehaa, but I was really wondering about what you're saying.
09:50
@underscore Depends on whether all vendor code is different
@Naruto Meaning "can you show the DDL of your schema please?" but if you fixed it then nvm :-)
/me goes Christmas shopping
oh please, it's not even december... I think
@PeeHaa E_TINY
@FélixGagnon-Grenier I have a spare day, if I do it now I don't have to fight 1000s of people
/me really goes now
@PeeHaa can you elaborate what's the difference between extending Model and creating folder under vendor category ?
09:52
/me kicks @DaveRandom out
@DaveRandom It was, but sometimes I untiny people to find out whether I have to do RO stuff :)
@underscore Extending only makes sense when thay are basically the same
hey btw, do tiny people actually read what people say?
probably
@PeeHaa ping
@AlmaDo I did that once or twice. But @JonClements gets pinged when I do that :)
@FlorianMargaine pong
@PeeHaa but we can add new methods to extended class ?
09:53
@PeeHaa kith
@PeeHaa :\
> **Kith**
Mike Tyson's way of saying the word Kiss.
@PeeHaa you mean are you agree with the folder architecture ?
If everything is different yeah
@DaveRandom Ah I understand you now, sorry, my mind isn't not yet fully awake and functional :P
09:54
@PeeHaa that's accurate
"isn't not yet" is confusing
@PeeHaa ... being pinged could be all that makes my life worthwhile ya know? Then you're just being mean to me :)
hey, a blue italic guy
no one is italic on mobile
blue guy sounds... weird
@PeeHaa we using phalcon. can we use phalcon dev tools to create folders and models on the fly ?
@underscore Idunno. I have never used phalcon and I don't think I ever will
reason? it's fast through
@PeeHaa
@underscore Is it fast?
Have you tested a actual real world application?
09:58
yes
Did you take into account development and debugging / maintenance?
@PeeHaa bad idea for an ERP ?
@Abe If we're talking cute things I got booped by my cat a couple of days ago.
Lol 7 seconds load time is not fast :P
kitten, really.
10:00
Main file 600 ms is not fast
it's should be a problem with out backend coding
but phalcon itself is fast than others
it use an instance
c extension
So?
PHP is also c
Your point?
It fazt cuz itz c makes no sense and is marketing speak
@PeeHaa come on, you're just being mean :)
phalcon is faster than the equivalent PHP
but that's not the issue with it
phalcon-user here. In short: it sucks. Badly.
posted on November 18, 2015 by nlecointre

/* by Frankie */

10:02
I am not talking about whether a hello world application is faster true :)
Imo phalcon users are the same as those premature optimization users
@PeeHaa we are still optimizing the ayubo.lk
Your main time expenses are: data-storages communication, external API calls, data processing. and NOT your controllers
^ that
phalcon grants you beautiful segfaults out of the blue and good luck with solving that
> Yo crazy-ass main time expenses are: data-storages communication, external API calls, data processing. n' NOT yo' controllers
10:04
lol @FélixGagnon-Grenier still having fun with gangsta as a service I see :P
:)
that shit is crazy
really
I've like no end to the number of people I can troll at work with this
Abe
Abe
@Sean :D
@underscore I mean serious. Maybe for your use case it does make an actual difference, but 99% of the cases I have seen where people said "I use phalcon because it's c / fast" they have actually other problems instead
Or worse they introduce other problems
First from which will be - let's try debug it and understand what's happening there in real-time
didn't somebody post this? osnews.com/story/9915
10:07
Hi guys... what's the best/preferred way of handling shopping cart data?
$_SESSION? $_COOKIES? $_SESSION + DB?
> Challenging or attempting to guess the user's intent.
I suck at that one
@PeeHaa the problem is we have already moved with the phalcon
To guess what users want? Why should I guess what these f*ckers want? Screw them!
> Not knowing when to re-architect (either doing it pointlessly, or avoiding it when needed).
ouch...
we also about to develop our API with the phalcon
@PeeHaa
10:09
@AlmaDo :P
(:
phalcon is just yet one more marketing bullcrap..
@underscore Well obviously I don't know nearly enough whether pholcon works for you, but my experience is it is a maintenance / development nightmare for nearly no gain. But if it works for you good for you guys
HI guys
i don't loving to my project manager’s wife
also i hate php
using JS instead
that's why my name is underscore
PM love php
:(((((
sigh
10:15
Tbf JS is even worse than php
It's getting better though
i want to connect locally to a DB that is on shared hosting with my local wordpress site
is it possible
yeah it's getting better
my advise: never work with something you despise. You'll never be successful and never gain even a thing from that. Just change the job so you will like it
php getting sucker
:p
Not at all
)People have done awesome things for php
10:16
i heard php 7 is good enough
PHP7 sucks badly.. PHP5 - not that much. PHP4 is relatively good. PHP3 was the best. Or may be it's just - I was young those times :p
Why do you think it's getting worse?
@moh.ABK The best/preffered way is to use a stable e-commerce solution. You need to make your own research what that might be, what suits the requirements, business rules, etc
@Sean everything is always getting worse ...
@Sean because I'm getting older
10:24
How hard would it be to make return an expression rather than a statement?
with the point.. ?
It's more expressive
Instead of writing
if ( ! $ids) {
    return [];
}
... do stuff
you can just write ! $ids && return [];
^ yay, this sucks
:)
that 1-liner would be awesome
or stuff like this if ($result->isErr()) { return $result; } ... $result->isErr() && return $result;
10:27
^ yes please :)
I think it's confusing.
it won't be after typing it 3-4 times, like anything else called "a habit"
I was never a fan of "&&"
First reaction is, it's not an expression, it's a statement, why have it there?
Not sure about that. Each line should be doing one thing, right?
I read that as trying to do two things when it shouldn't be
10:30
that's good for writing , not for reading . You write code once and then 10 devs read it. I would approach better reading , not writing
if you can achieve both => awesome
@LeeDavis yeah that's exactly what I want to change
@nikita2206 * wonders whether allowing return in ternary statements would be nicer *
On the other hand why every other code style forbids one-line-ifs is above me
@LeeDavis how exactly?
@AlmaDo no idea, just popped into my head.
@AlmaDo it keeps conditions away from statements, while still allowing a one-liner.
10:36
@LeeDavis if both right ternary parts are returning something, then it's an equivalent for return $x ? $y : $z; . But if not both, then it's something like $e = $x ? return $y : $z; - and what is the sense of it?
(apart from not being readable)
definitely confusing: $result->isErr() && return $result; Why not the new ?? operator: $result->isErr() ?? return $result;
I guess many things could go wrong if allow return in expressions
@ErikLandvall I think it's not how ?? works. But you could use ?: yeah
$x = [return &$x]; //epic fail :p
why is it a fail?
10:40
what is it supposed to do?
Abe
Abe
@AlmaDo or even $foo ?? throw new Exception();
let's make throw part of expressions too ;)
return throw yield from bullshit()
(:
@AlmaDo return a reference to some variable?
Abe
Abe
sorry wrong ping :P was for @nikita2206
I am unable to understand with the full code, can you please post the full code. — Tristup 49 secs ago
LoL
10:46
@AlmaDo it's unreadable but I don't see any ambiguity here for language runtime. It will just try to throw null, because yield from will result in a null
Why don't we allow traits to implement an interface? They're typically used to take care of small/reusable units, kind of like the thing an interface would describe.
I read this; stackoverflow.com/questions/14665978/…. The answer just seems to be 'because you can't'
@nikita2206 may be that "function" will return exception instance ;)
@kodeart Not really. If someone can create a shopping cart system then I don't see any reason why I can't :)
@moh.ABK that is the usual statement for many failed devs and projects, but good luck :)
@AlmaDo oh yeah, we now have returning generators, that's cool
10:53
@nikita2206 we haven't :\
@LeeDavis because when you use a trait you can rename some methods, you can resolve collisions
I believe Google loads in results via JS and AJAX nowadays so your loadHtmlFile will return the basic google page with no results. You'd need something that would bring you the page back after javascript has run to do this. — Jon Stirling 58 mins ago
How to get only Organic Search Results in google?
@nikita2206 ah, PHP 7.0.. I was thinking - 7.1
10:57
morning
@nikita2206 Do you mean you "can't" resolve collisions?
@niki
@nikita2206 We'd have knowledge of renamed methods: 3v4l.org/MSevJ
Ahh, I didn't expect this, but hhvm allows itL
feature or bug?
The code is using traits so that must be a bug :P
7
More serious implementing interfaces on traits instead of classes looks a but strange to me
11:14
yep it's a rule of thumb ^
@LeeDavis I mean if you can move methods around it's not compliant to the interface anymore
"the value does not exist in range?" OR "value does not exist in the range?"
@LeeDavis Feature, but the removed error message might be considered a bug. :P
I need help in analytics API integrate in php page.
how can ?
@nikita2206 True, but I think if traits were to be allowed to implement contracts, I think they should implement the entire thing, meaning method renaming at the class level wouldn't matter.
@nikita2206 They idea is to have traits take care of those smaller units of work, which should be within one or one of many contracts.
@LeeDavis What good is the contract if you can jsut rename the methods?
11:29
@PeeHaa if i want to extend a model i'm planning to use bash to create the file with the extended model ? is there any alternative solution ? how this approach doing in frameworks ?
Just create the new class?
i mean inside that vendor/ <vendor-name> directory ?
@PeeHaa to create a new class yes
PHP is Genius
why are the first two false?
@ziGi Because you should always do strict comparisons
@PeeHaa good point, I do, so what do you do when an idiot writes a statement like this?
11:37
@ziGi Because they're numeric only and therefore compared as (int).
if(!array_key_exists($dataSourceKey, $dataSource)
                    || ($dataSource[$dataSourceKey] != $data[$valueKey])
                    || ($dataSource[$dataSourceKey] === -1 && $data[$valueKey] !== true && $data[$valueKey] !== -1)
                    || ($dataSource[$dataSourceKey]=== 0 && $data[$valueKey] !== false && $data[$valueKey] !== 0)
                    || (is_null($dataSource[$dataSourceKey]) && !is_null($data[$valueKey]))
                    || (!is_null($dataSource[$dataSourceKey]) && is_null($data[$valueKey]))
In that ^ specific case I would start shouting :P
I hate my life right now
:D
yeah I do :D
11:38
hello everyone...quick question here, i have this peace of code: $mpdf->Output();...but on my js file i have the data parameter of my ajax call...how do i get this output?(which is a pdf file)
@PeeHaa If a class uses a trait that implements a contract and renames the contracted methods it should error. In the same way a class without a required contract method would.
@PeeHaa s/shouting/shooting/ :P
@PeeHaa any idea?
@LeeDavis But why on earth would you have it on the trait than?
@kelunik :P
That is not going to be where it throws
@kelunik so is this a good fix hack: $foo . '*' != $bar . '*'
11:39
In all honesty I think traits are stupid especially because of abuse like this
@PeeHaa yes indeed
So I am somewhat prejudiced :P
Hello
@ziGi Adding a = is just one single char and a good fix.
11:40
sup
@kelunik yeah but it fucks up the rest of the checks actually
because the person who wrote the code expects type conversion
so I get additional things that get into the if statement
Then your checks are flawed and your code as well.
I think I have to rewrite the code :(
@ziGi disadvantages of working in a company where coders where sht before.
11:41
@kelunik they are not mine, but of the person who wrote the code, so it is best to rewrite it
@HassanAlthaf exactly
actually I convinced the coder to quit and move to another company :D
but I am still fixing his shit 2 years later
I'd rather
@ziGi Doesn't matter who wrote it if it's your task now. :P
work in the development section than maintenance section.
@kelunik that's the sad truth :(
@HassanAlthaf not always possible
@ziGi I know... the bitter truth. lmao.
11:43
@PeeHaa So you can create small reusable snippets of code that check off one/many of your contracts and you don't have to worry about what those contracts are at the class level.
/afk going to lunch
Assembly is greek.
When I was learning Assembly,
Currently, if your traits do check of all of a contracts methods you need to have knowledge of
the interface at the class level. Or create an abstract class that uses your trait, implements said interfaces to be available for extension.
I just thanked god that I was born in this generation with much more high level languages.
3
A: Another PHP login handler

Hassan AlthafLet's begin with your style. Naming As per the unofficial PHP standards constructed by PHP majors, you should name your classes in StudlyCaps. i.e. for usersession you'd name it UserSession. Moreover, for properties and methods naming, you should use camelCase. i.e. for $is_logged should be...

The most recent review I wrote, please point out any wrong points I've included.
hey guys i want to add date to this file: contrato.pdf so it could output contratoTodaysdate.pdf how to do this? can anyone help me?

« first day (1859 days earlier)      last day (3315 days later) »