« first day (2097 days earlier)      last day (3077 days later) » 

Hi guys and gals!
I am creating a social application and I'd like to know what is the best way to secure it in a way that if someone, somehow, gets to the parameters I'm sending to the server, doesn't screw up everything in my database.
I'm going to create both web and mobile apps and, of course I'll secure the communication by implementing HTTPS and all that...but you can still get to the parameters by using a proxy that acts like a MiTM.
Should I implement another parameter in the query string that will serve like a validation-check or something? And if so, what algorithm/trick should I use?
i have a suggestion for debug_backtrace() function
In fact a question.
Its possible implement to get over the line also the column?
function Debug(){
    $trace = debug_backtrace();
    $vLine = file($trace[0]['file']);
    $fLine = $vLine[$trace[0]['line'] - 1];
    preg_match("#\\$(\w+)#", $fLine, $match);

    $column = $trace[0]['column'];

    return $column;
}

Debug(); // Print 1

    Debug(); // Print 5
* // Return
 
3 hours later…
04:58
I'm looking for a English word which means "very big and bad". It pronounce is like this: "anmedigaded". Does any body know what's it? EX: "anmedigaded disaster"
05:21
@Shafizadeh unmitigated
it doesnt mean very big and bad though.
its more like complete and total. the "bad" just comes from the context, e.g. a total disaster
05:55
moin
hi
06:11
hello world!
please answer my question
0
Q: How can i filter query by another related table Yii CDbCriteria?

HamidThis my mysql tables structure. I want sum of ordered products quantity and amount by a user like this. My codes is here, but is not true. <?php $criteria = new CDbCriteria; $criteria->with = 'orders'; $criteria->together = true; if(!empty($_GET['email'])){ $email = CHtml::encode($_...

06:28
Morning
Hey
somebody please help me on this
1
Q: Issue with updating one to one model in Laravel 5.2

Amit KumarTables are User Table: id name email etc. Profile Table: user_id role address city state etc. On tinker i did: $user = App\User::with('profile')->find(3); Output is: App\User {#756 id: 3, name: "Alejandra Kerluke Jr.", email: "[email protected]", deleted_at...

Wes
Wes
06:53
moin
Wes
Wes
@Mukesh
@MukeshRam please don't random ping people. it annoys them and repeated offenders will be kicked.
Yo @Jimbo:
BANG! https://github.com/doctrine/doctrine2/pull/5932 @lcobucci @guilhermeblanco #doctrine3
2
@Gordon Sure
Wes
Wes
07:07
it's ok Gordon he's joking
godemorgen
Wes
Wes
buondì
I am getting an error in joomla admin panel 500 - An error has occurred.
Return to Control Panel
Frontend is working fine.
Any ideas?
Check your error log
check error_log
07:13
where??
Unsure if someone mentioned it, but check your error_log
on the server
also, you could check your error log on the server
A good idea when something isn't working as intended is to check the error log on the server.
[Wed Jul 13 00:14:28 2016] [error] [client 122.160.123.236] access to /usr/local/mtapps/api/filemanager/index.php failed, reason: SSL connection required, referer: ac.mediatemple.net/services/manage/grid-panel/filemanager/…
this is the latest log
when i tried to logged in my admin panel
07:17
Well, then you better find out what the error means don't you? :D
Gah! I knew I shouldn't have opened the domain given in that url param. Now the pictures will haunt me all day long :(
also nsfw because boobs, both… woman and man boobs. you are warned.
What url param?
@Epodax the domain param in the url from his error log
ah
I'll avoid it then :P
what should i do?
07:20
!!? SSL connection required
it's a common joomla error and i did all the checks for this
Search for "SSL connection required" (https://www.google.com/search?q=SSL+connection+required&lr=lang_en)
• Apache SSL Configuration Error (SSL Connection Er… - Apache SSL Configuration Error (SSL Connection Error). No problem. We won't … D. if necessary, cha… (http://stackoverflow.com/questions/3286707/apache-ssl-configuration-error-ssl-connection-error)
• What is Secure Sockets Layer (SSL)? Webopedia Def… - Secure Sockets Layer (SSL) is a protocol for transmitting private documents via … By convention, U… (http://www.webopedia.com/TERM/S/SSL.html)
start there
bt i can't get back in my admin panel
Anonymous
Goooooooood mooornin
07:21
lol
@AbhishekMishra call mediatemple support then
ok thanks
good mornings
anyone here expert in joomla?
Anonymous
I use it.. If that helps
Anonymous
07:22
reluctantly..
I am expert in hoomla
lol Gordon :X this is great
Anonymous
heh, this is pretty accurate
07:29
@Gordon Old but gold.
I sometimes (very rarely, admittedly) still feel like that.
Cahh..tten!
@MadaraUchiha yeah, it's a modern classic
08:01
@JoeWatkins are you online by any chance? :)
08:12
posted on July 13, 2016

New Cyanide and Happiness Comic

@PeeHaa not a job I'm particularly upset about losing tbh
moin
mogguh
@DaveRandom ikr I was super happy to see it yesterday :)
It looks like it's only implemented internals, but will open a ticket about others if it isn't on the roadmap yet
@PeeHaa what does that site offer that any other nntp web frontend doesnt?
It looks sane and you can reply and you can mark stuff as read
08:27
> PHP owns the top-level namespace but tries to find decent descriptive names
WHAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHHAHAHAAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHHAHAHAAHHAHA‌​HAHAHAHAHHAHAHAHAHAHAHAHHAHAHAAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHHAHAHAAHHAHAHAHAHAHAH‌​HAHAHAHAHAHAHAHHAHAHAAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHHAHAHAAHHAHAHAHAHAHAHHAHAHAHAH‌​AHAHAHHAHAHAAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHHAHAHAAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHHAH‌​AHAAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHHAHAHAAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHHAHAHAAHHAHA‌​HAHAHAHAHHAHAHAHAHAHAHA
> To someone who is concerned,
> Helmet is important for those working in dangerous places, while Welwork Safety Solutions Ltd. helps these people get best safety helmet to protect work personnels, __friends, relatives and others close to you__ from any kinds of head injuries.
who buys their friends and relatives a safety helmet ?
lol
hi i am using ffmpeg github.com/PHP-FFMpeg/PHP-FFMpeg is there anyone knows how to run this test sample?
Anonymous
08:43
yeah baby
Anonymous
@Priyank57 Dsnewjal dasjNue ks.
3 messages moved to bin
@samayo Don't feed the troll I just kicked
morning
Morgen
Anonymous
@PeeHaa I thought he was confused.
08:49
I understood him perfectly
mistakenly added by @SagarNaliyapara
sory for that
@SagarNaliyapara is your cat I assume
next time you see a troll, grab it ...
we require one for experimentation ... I wonder if it's in fact true that you should not feed the troll, wonder if anyone ever tried overfeeding one ?
08:51
Morging
@JoeWatkins Cookie monster comes to mind so no I don't think you can overfeed one
that's a monster, not a troll ... specifically a cookie monster, you can't overfeed a cookie monster, at least not with cookies ...
cyanide would probably do the trick ...
yeah that's the guy
08:53
ahoy hoy
Guess who got the job lads, I'm off to Spain :) Can't say much more as public
'elo 'elo 'elo
@JoeWatkins is alive <3
@Jimbo osum
@Jimbo little bit
@Jimbo Gratz!
08:54
abhijit kane
so, are you going to be a foreigner now @Jimbo ?
@Jimbo Spain, much summer, wow nice. Near to the coast?
@JoeWatkins I'll be a bloody immigrant
@hakre On a Spanish island actually
Pieter Hordijk
@SagarNaliyapara yo, are you broken or what ?
don't be annoying ...
08:56
@Jimbo I guess that's good for the climate.
Anonymous
@SagarNaliyapara what are you doing?
asking to get kicked he is doing
Jimbo stealin' their jobs!
@Jimbo Damn. Now I'm jelly
he just creating turbulence
08:58
The Spanish Adventures of Jimbeiber.
3
@JoeWatkins are you here now? :)
although I think spain has got a pretty big migrant population from uk
they are used to it, I guess ...
@malarzm indeed, well I think so ... did someone say I wasn't ?
nah, just tried pinging you few times and had no luck ;)
Wes
Wes
hey joe \o
morning all
Unable to locate package linux-headers-3.5.0-17-generic Ruh roh.
09:00
would you have a minute for a (possibly quick for you) question? I managed to get write implement my proposal but have one memory leak which I can't fix
@malarzm when I'm away for a while, the room doesn't deliver pings when I come back ... it's mostly @PeeHaa's fault for not making the bot handle it, somehow ...
@malarzm show me
I suspect this is happening because of this line: github.com/malarzm/php-src/pull/1/…
I hoped that zend_do_free will fix the issue but no luck, I also tried that weird construct zend_free_op op1; FREE_OP1(); in vm but no luck either
@Jimbo You 20 years from now.
09:02
also checked your blog post about hipster extension, you seem to have used FREE_OP1(); too and I suppose it's for the very same reason I'd like to use it
and you want me to just fix it, or you want me to tell you how you might see what is going on ?
@Fabor haha ha ha ha :P
for learning experience knowing what went wrong would be appreciated :)
well I haven't read the patch yet, so I don't know ...
but you said you had a leak ... what is leaking ?
the test script says it had to free a memory
09:04
what was in the memory ?
show me the output from test
not sure how to gdb into that to be honest :/
what is the constant in php-c to get the php version in x.y.z format? Just PHP_VERSION?
crap, gimme a moment, I'm at workstation and I don't have this stuff here... Or would it be possible to catch you here late evening?
it might be possible, depending on what time it is for you now ?
it's 10am for me
what you want to do first is establish what is actually leaking
it's 11am here so no that big difference :) Is your 21 ok or too late?
09:06
greetings @Jimbo
if the leak looks like it comes from zend_string stuff, then break at php_request_shutdown, cast the address that is reported leaking to zend_string* and you can get the value that leaked, same sort of thing for zend_object, HashTable and so on
all right, will try to do that :)
to determine why it leaks, you want to set a watchpoint on the address of the leak, this will break execution when the refcount is changed, so you can see what is going on with that ...
and with that, you should be able to determine exactly what is leaking and why ... then you can determine how best to fix it by referencing other similar code, or by intuition, if you have any of that yet ...
so many angered, absolutely ougraged people
Morning
09:08
makes me even happier that we dropped the feature
mornin rtheunissen
moin rudi
heh intuition here is sometimes hard
however I think I'm getting the hang of it slowly
it is hard
at least stuff I touched :)
09:09
@Ocramius have you dropped annotations yet? that'd be a fun one
what did you drop ?
I missed whatever is going on @Ocramius
thanks for the tip, I'll get back when I learn something (or hopefully when I fix to say thanks one more time ;) )
@PaulCrovella haha, would be fun :D
yw, and w to ask mo questions if that's not enough ... but I think that's all you should need to catch this particular fish ...
@PaulCrovella it would be interesting to convert annotations -> XML, then parse that directly
@JoeWatkins dropped one of the supported configuration formats for the ORM
09:12
was it yaml ?
then the world is a better place
@Ocramius dropped already or deprecated?
@malarzm dropped in develop
Guilherme is rewriting the internal metadata API, and he's on a ragekill streak
ah ack, will add it to my ODM kill list too then :D
09:14
:+1:
if I look at the many dropped conditionals I can only grin
I haven't installed Pokemon GO yet. will this society accept me? :P
Gon
Gon
Moin
@Ocramius would you take a patch adding a sgml driver - to really fuck with people?
haha
btw, people are gonna be angry at us regardless
most of what the next major will provide is just removals
deleting code is one of my favorite things. it feels so damn good to be done with something, whether it was a bad idea or useful for a time
09:23
It's mostly "we told you so" stuff
@Ocramius Can you TLDR me your event sourcing talk? Are you advocating it or telling it to go back to the chasm from whence it came?
@Jimbo I'd be surprised if the answer isn't "it depends on your needs"
@Jimbo TL;DR is "here's how it's done in PHP, here's what will happen if you don't rigorously follow the rules, and you'll have to redesign the frontend to deal with async POST request processing"
that's your TL;DR
Nice, so you have to do it properly basically
Do it the right way, or don't do it at all
oh, and "don't use it if you are building a replacement for google spreadsheets"
09:29
@all Could you please proof read / sanity check this patch? tnx
@Jimbo hopefully neither - it's a thing that can be useful in specific circumstances but isn't a panacea for all problems
I was 51/49 on whether its hould be kept but I kept it for now
@PeeHaa it's an improvement that could be cleaned up by someone who cares more
So: ship it?
betterify it first, it's still sloppy
09:35
Idunno how to unsloppify it more :(
@PeeHaa "variables in the global namespace" E_NONSENSE
other than that lgtm
where lgtm means "Let's go to Manchester"
I'm already there. What's your excuse?
the last three paragraphs are superfluous and the entire thing can be boiled down to "use namespaces" along with an example
How to transfer the subdomain to hosting?
@DaveRandom s/namespace/scope or the entire section?
@PaulCrovella Yes, but the thing is variables are always in the global scope no matter the ns
Which resulted in the super awesome suggestion of doing $asdf_dbh
09:44
sorry, "and don't use globals"
@PeeHaa Well it's a separate issue IMO. Naming collisions in the function/class symbol tables are a problem solvable with namespacing. Variables in the global scope are problematic, but the solution is to not create variables in the global scope outside the bootstrap phase. There should be a note about avoiding naming collisions, and a separate note about avoid global state.
Since var naming collisions are actually just an extension of global state problems
@Gordon uh, your PR was quickly merged :)
@FlorianMargaine BECAUSE I AM AWESOME!!1
of course honey
@PeeHaa in fact, in that particular patch just s/variable/constant/ and add another note about variables if you can be bothered
09:50
@DaveRandom "Variables in the global scope are problematic, but the solution is to not create variables in the global scope outside the bootstrap phase." that was what I thought I said with it, but apparently is mucho not clear :)
@DaveRandom Good point
@PeeHaa The problem is that you have specifically used the word "namespace" whereas with specifically vars the correct word is "scope" - and the considerations are different there anyway :-)
@DaveRandom True not saying you are wrong
I know, but critique without "here's what you should do instead" always sucks :-P
@DaveRandom you can completely avoid global vars by borrowing JS anonymous module pattern though, e.g. make your bootstrap <?php function() { /* bootstrapping */ }();
not that I have anyone seen ever do that in PHP
@Gordon statics are still global
09:55
@Gordon stackoverflow.com/questions/34885083/… I am bad and I should feel bad :P
@DaveRandom Amen
IMO people don't use return in included files enough
Is this class doing too much?
use \DB;
use \Event;
use \stdClass;
use \Exception;
use \Carbon\Carbon;
use \ErrorException;
use \SimpleXMLElement;
use \MyProject\Library\Invoice\Row;
use \MyProject\Library\Email\Mailer;
use \MyProject\Library\Utility\RegEx;
use \MyProject\Library\Utility\Price;
use \MyProject\Library\Input\Factory;
use \MyProject\Library\Debtor\Debtor;
use \MyProject\Library\Invoice\Status;
use \MyProject\Library\Debtor\Address;
use \MyProject\Library\Utility\Parser;
use \MyProject\Library\Country\Country;
use \MyProject\Library\Invoice\Invoice;
> use \stdClass;
wtf
Loads of times I have seen $config = []; include 'config.php'; // hope that config.php defines stuff in the right var instead of $config = include 'config.php';
@PeeHaa lolwut
Wes
Wes
@PaulCrovella what's wrong with that? i even do use function strpos; despite fallback to root ns :B
10:01
@Wes just do \strpos() at call time IMO if you want that microoptimisation
@Wes defuk wesley...
I need more wine. brb.
Wes
Wes
it's a protest against automated things. we can't have function autoloading because of fallback to root ns magic
Protesting in server-side code that no-one should ever see if things are working right seems like a particularly rubbish form of protest
kind of arguing your own counter-point there
it's basically throwing a fit and trashing your own livingroom
Wes
Wes
10:07
:B i always hope to make some of my code open and annoy people like @PeeHaa with these bits
@all How to use php as a hosting panel?
how do you use metal as a car?
First I collect the metal from god , then I build a car.
problem solved then
1 more question: How to collect php from god?
lol
10:13
if your god is handing out php, get a new god
@MukeshRam you can ask god at chatwithigod.com
@PaulCrovella Thanks buddy
@Gordon I used my will power to do that so...
o/
@MukeshRam there is no god
@tereško but… you can chat with he/she/it
its on the internet so it must be true
@Gordon counter-argument: theflatearthsociety.org/cms
10:25
@al funnier
@tereško nope. schrödinger's earth. totally possible for both to be true.
both flat and round - the pizza theory
now you are just trolling
theflatearthsociety.org/cms/index.php/flat-earth-shop <-- everything is out of stock, presumably because they are all made in China and they can't find a shipping company with the logistics to traverse a flat earth
I am never trolling! I am always serious!
10:30
@codinghorror No, I am not many, many days late on this joke my friend. I am Gordon. Call me @go_oh ;)
@DaveRandom well played :D
Ah dad humour
It's sad that I had that humour at 18 :-(
/that moment when you wonder whether it would be easier to use templating and raw HTTP requests instead of SOAPClient...
@Jimbo that means you gonna be an awesome dad one day
Wes
Wes
so apparently the new star trek tv series filming starts this week in toronto :o
no speculations on the cast yet, nor about the plot
10:46
@Wes who's in charge?
Wes
Wes
a guy that also produced the new movies and the guy that produced hannibal (the tv show)
not the creators i suppose :B
> Additionally, a report from BirthDeathMovies claims that it will “not be set on an Enterprise ship,”
11:02
!!eval <?php var_dump($_SERVER["REQUEST_TIME_FLOAT"]);
[ 7.0.6, 7.1.0alpha2 - 7.1.0alpha3 ] float(1468407752.0043)
[ 7.1.0alpha1 ] float(1468407752.0069)
[ 7.0.3, 7.0.5, 7.0.8 ] float(1468407752.0042)
[ 7.0.7 ] float(1468407752.0038)
why the hell does it give an int in my docker container?
@Wes :P
how Can I download this.. through php?
https://openload.co/f/x36v-Jq_ZpE/Zone-Telechargement.com.N.Sh-Ep.308.French.HD.720p.x264-JMK.mkv.mp4
I know that the real link is encoded in js
11:05
@Gordon If I can find someone intelligent enough to dislike Laravel, then perhaps ;)
Wes
Wes
are you trying to date other php programmers only? doesn't look like a good idea
@Jean-philippeEmond openload.co/api?
Wes
Wes
@Gon DADAFUG
dafuq indeed. I didnt even see them until the third one
11:13
wat!?
Nobody was annoyed by those multiple thes in the text?
nope
Wes
Wes
i was. advantages of not being a native speaker? :B noticed the the the immediately
I had the feeling I was reading a badly written news article slashdot post
Much more annoying is uppercase Will
@NikiC if you don't use monospace font it Will also increase its length though :P
11:16
I assumed it meant Will Smith
Wes
Wes
Will is clearly short for Willahelm
@nikita2206 But using a monospace font will increase the length more than Will will
maybe this is not the exact place to ask,but since the css chat room is dead i'll do it here :)
trying to align the ul in the same line of the image
i used margin-bottom...and more..but it doesnt actually move :(
Wes
Wes
css chat room is not dead unless i decide it
11:20
alright a css proffesional
what about helping me? :0
Wes
Wes
will answer you if you ask in the proper room :B
haha
alright
i'll be there in a sec
Wes
Wes
that's the fake css room
oh
found ya
@Wes
hlw
i have a joomla backup and i want to install same on my localhost. How can it be done?
i have all files and a .sql database of that joomla site
Anonymous
11:30
Then what is the problem?
i am new in joomla and finds some difficulties in restoring that backup on my local server
any suggestion for me?
nvm… you said local… didnt read.
i have called them but they do not provide site specific solutions
Anonymous
You said you're having difficulties - What are the difficulties? What have you tried?
yeah, sorry. I was thinking you are asking about your 500 error again
11:35
i m trying to install that site on localhost and then troubleshoot that error
Notice: Undefined index: key in C:\wamp\www\vital\includes\defines.php on line 5
in defines file
@Gordon I see, thx
@Wes The stylesheets are a lie
Wes
Wes
i know
@Wes how you can define it is fake?
Wes
Wes
because i'm not in it
11:46
@Wes,So can get proper answer in proper room(CSS)
so every room in which you are not preset it is fake right?
it is another level of ego
@Wes
at least proper response @Wes
what do you think @Wes,am i eligible to ask you this question
Wes
Wes
lol. you aware i'm joking, right?
no i'm not.
same to you dude,we all are here for joking
cool
Gon
Gon
11:50
Oh.... All those feels at the end of Plastic Memories...
Anonymous
@AbhishekMishra What's on line 5 of that file?
@AbhishekMishra you are trying to get array key which is not defined in your array in which you are using OR trying with key index
hey guys
Gon
Gon
o/
@AdilIlhan heya
Gon
Gon
11:58
I'm still sobbing...

« first day (2097 days earlier)      last day (3077 days later) »