« first day (1861 days earlier)      last day (3313 days later) » 
00:00 - 15:0015:00 - 00:00

00:13
Mornigins
Abe
Abe
mornings
hey abe
@Andrea Haha :-P
@Andrea The text kinda spoils it :(
we really need that "collapse" button for gifs
it's fun for a while, but it doesn't last
00:25
I want to see the top
@PeeHaa the text is the fun of it, though
@Andrea Yeah, but being a conditioned internet person: instant troll alert
1 message moved to Orphan GIFs
@tereško I am agree
@rlemon is working on a gif collapsing script IIRC
Today I made a responsive email template and it was as horrible as it sounds
lol @zerkms really got sucked into that one stackoverflow.com/q/33816644/508666
:P
let's close that stupid question
I seriously cannot get how people can be THAT STUPID
Practice usually.
Holy shit that answer batman
preg_match("^(true|false)$", is_bool($val)?($val?'true':'false'):$val);
00:35
and the other answer was checked
gosh
we never will live on mars
/me lost his faith into humans once again
Well it is the most webscale answer obviously
@PeeHaa I thought you are kidding with code above
but it is in that answer o_O
Sadly I was not
can anyone recommend a good book series to read?
I would prefer some sci-fi
Oh wait that's no series although it is scifi
you read dune already @tereško?
not yet .. maybe I should
imo, one of the best writing I've had the pleasure to read
plus, the universe is fucked up
@PeeHaa heh. I have read some obscure religious texts, but that one looks mostly bad. You yourself might enjoy: en.wikipedia.org/wiki/The_Book_of_the_Law
00:42
Awesome
shit. canadians hockey game started. How am I gonna work now?
@PeeHaa few years ago I had entire collection of occult books, but I lost them on one of the HDD failures
anyway ... so, aside from Dune, any other recommendations?
well, it's not sci-fi but a bit more into celtic mythology, trilogy called the song of albion
Hi there... Does anyone knows basics about .htaccess?
01:06
I think I know basics about .htaccess.
thing is, do you really know what you want is basics?
01:40
Well, I'm facing issues trying to use mod_rewrite. I only want it set up in one folder for only one query variable... I posted my current code here.. stackoverflow.com/questions/33817120/…
why do you have a RewriteBase?
(also \d will match digits. if {var} is not only digits, it will fail)
nice
them girls really
I should delete it at all? But it still doesn't work.
I'm trying to find the tutorial that I followed
RewriteRule ^API/([0-9]*) /API/index.php?i=$1 [NC,QSA,L]
01:58
Sorry but that doesn't work either. I can't find the tutorial I followed initially but I will try with different tutorials if I can't solve it -- (This is all very new for me)
what is the url you're calling?
there misses a slash
ie: juanjosecano.com/API/var
The chat made it dissapear sory
dude.
> (also \d will match digits. if {var} is not only digits, it will fail)
digits is a number
what you are trying to match is not number
this will not match
02:03
le'ts say i ahve a string
$word = "hello";
ohh... but I've tried with both letters and numbers
how do I make a new string $original that is set to the value of $word but $original doesn't change when $word is changed?
not both, only numbers
also, if there is a trailing slash, you have to include it in the rule, as it will make the rule fail it the rule only wants digits
Yes, I understand. I ment I've tryed numbers, letters, and both. Now I've updated the regex but I'm still getting a 404. Even using /API/letters AND /API/letters/
> Now I've updated the regex
updated to what?
02:06
RewriteRule ^API/([a-zA-Z]*) /API/index.php?i=$1 [NC,QSA,L]
to detect letters instead of numbers
oh sorry, my bad. without the caret
RewriteRule /API/([a-zA-Z]*) /API/index.php?i=$1 [NC,QSA,L]
OMg... still not working...
I'm really pleased with your help but I'll try a different folder, a different tutorial, a different server, I dunno. Could the problem be in the server?
Oh, but before going that way... Do you know if there a change the .htaccess file located in document root is making some source of conflict with the one located in /API/ ?
lol. I was actually trying those different rules when I remembered my test server is in fact nginx
you sure you're on apache?
I'm using byethost. They say they run Apache but I wouldn't know how to check
ok, you are
tbh, at some point I stopped messing around with htaccess when someone mentionned fast-route and php routing. github.com/nikic/FastRoute
now when on apache, my .htaccess looks like this:
02:20
Oh... I will have a look. So glad there's a way round it, I found it so confusing!! _
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [NC,L,QSA]
What should that code do, exactly?
redirect all urls that are not files or directories to index.php
At least with that code I'm not getting 404 errors
Well, I will try the FastRoute alternative, thanks for the help
 
2 hours later…
04:13
good morning \o
05:02
morning roomies
05:45
morning
morning
moin
yay, friday
moin
@NullPoiиteя even though the last word I said was "friday" ... you got me ...
05:56
@JoeWatkins :)
Abe
Abe
06:36
@Abe 😈😈😈😈😈😈😈😈😈😈😈😈 We are Anonymous :D
user924016
06:55
fryyydai!
07:16
posted on November 20, 2015 by nlecointre

/* by luke590 */

07:33
I'm working on payment gateways (paypalpro,paypal express and authorizenet) i have to validate the api credentials which are given by the customer. how can I ?? any help ??
@JoeWatkins I was totally expecting that to be a Rebecca redirect. I don't like the arg being named and referred to as $generator, it's a bit ambiguous and could be confused with the other kind of Generator. Also putting something that is not static in the example might be good - a simple microtime() call or sth would suffice - to show that the point is that you can create default vals based on current state (unless I missed something?)
I don't get what the point of the nested calls is, I must say
Can someone tell me in this query GROUP BY is useless or useful?
select col1, count(col2)
from table
where col1 = 'anything'
group by col1;
not a good morning
posted on November 20, 2015 by Joe Watkins

Fig1. An APC logo. When it was decided that Zend's Optimizer Plus would be merged into PHP, APC was already in a pretty poor state, there hadn't been a stable release for quite some time. We were moving towards having a built in (abandoned in php-src/ext) opcode caching solution but it was not obvious that APC was going to keep being maintained. I think all of us assumed that the bugs that w

07:47
holy shitsnacks, krakman!
3
Abe
Abe
i think i've found a php bug. while rushing for a deadline. yay!
Abe
Abe
i have no idea what it is. no errors displayed
@DaveRandom I can be wrong ... spectacularly wrong as it turns out ...
Abe
Abe
and works in 5.6 (doesn't in 7)
what in the name of god is happening
08:14
Morning gents and genties
Abe
Abe
echo "BAZ"; // gets printed
require("bar.php"); // returns blank result
echo "FOO"; // gets printed
doesn't work in php7, while
echo "BAZ"; // gets printed
require(__DIR__ . "/bar.php"); // gets the expected result
echo "FOO"; // gets printed
works. both works in php 5.6. what i'm missing?
no errors are displayed or logged. files are simple templates and contain just basic php
include path looks fine, opcache is off
returns blank result > prints blank result (i'm not using return, just to be clear)
perhaps something related to the new catchability of parse errors? there is no error in the files though
08:34
Morning.
good meurning !
Im migrating an old script to a new server not written by myself but its using a cron. People click a button and data get's synced. Cool works before on the host but now on the new ( even better host ) it's not. They suggest me to run crons via the CLI. Because I never worked before with crons Im not sure if this is hard to change? I see now a class 'CronParser.php' which handles the interaction. All suggestions/help are welkom. Thanks!
08:57
Hey guys.
@Abe are you sure logging is correctly configured?
But if there's no log at all, maybe it's segfaulting
Abe
Abe
ErrorLog "logs/error.log"
LogLevel debug
@Abe are you using the CLI?
Abe
Abe
nope, apache TS
Ah. Hmm
09:03
Guys, has any of you actively used PHPUnit? I could use some help with mocking.
Abe
Abe
getcwd is correct
Can I easily run a cron trough CLI? Or is that hard to setup?
Abe
Abe
i need to finish this now, but i will check more things once i've finished it
Been getting a segfault with xdebug and my first time trying to debug. I got a core dump and backtrace, but is my backtrace suppose to look like this? With all these question marks?
#47 0x00007faf845a0d98 in xdebug_execute_ex () from /usr/lib/php/extensions/xdebug.so
#48 0x0000000000a0bac3 in ?? ()
#49 0x0000000000a0e35e in ?? ()
#50 0x0000000000a0ab12 in execute_ex ()
#51 0x00007faf845a0d98 in xdebug_execute_ex () from /usr/lib/php/extensions/xdebug.so
#52 0x0000000000a0bac3 in ?? ()
#53 0x0000000000a0e35e in ?? ()
I have no idea what I'm doing. =o\
09:10
oO :D
"Fuck in action :p" @AlmaDo God damn that's amazing
@crypticツ no debug symbols?
are you using a debug or release build of PHP?
I did --enable-debug
when compiling
php -i shows:
PHP API => 20151012
PHP Extension => 20151012
Zend Extension => 320151012
Zend Extension Build => API320151012,NTS,debug
PHP Extension Build => API20151012,NTS,debug
Debug Build => yes
Thread Safety => disabled
Zend Signal Handling => enabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled
09:30
Wait what
php7.pw is no more? ):
RIP
Hello, Does anybody have any idea? stackoverflow.com/questions/33822881/…
Abe
Abe
09:48
github.com/nvbn/thefuck/issues/1 Thefuck's first issue is rather frightening, if not hilarious
Mogguh
Hi yall :D
Thought this'd be a better place to cry about php :D
posted on November 20, 2015 by nlecointre

/* by ikurhai */

4
10:07
@djsmiley2k Well you've come to the right place. We all cry about PHP here
I got what looks to be a correct backtrace for the segfault caused by xdebug...now what? O_o gist.github.com/KyraD/7804d5a6c0b478e49d19
@Sean currently banging my head against a wall with JIRA's rest API and attachments
user924016
lol
10:23
@PeeHaa morning
10:34
Tried energy drink to focus this morning
has done the total opposite
mornin'
Anyone here actually dealt with the JIRA rest API?
trying to replicate this curl call
curl -D- -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "[email protected]" myhost/rest/api/2/issue/TEST-123/attachments
@djsmiley2k You can use cURL with PHP, check out the manual to add options
yeah that's what I'm doing
array(1) { ["file"]=> object(CURLFile)#1 (3) { ["name"]=> string(12) "DSC_0210.jpg" ["mime"]=> string(10) "image/jpeg" ["postname"]=> string(12) "DSC_0210.jpg" } }
I'm unsure which bit of that refers to "file=@.....
Should I change postname to include the weird file=@ ?
10:44
when I have a cron script can I just run it via SSH manually?
@Duikboot you'd want to run it as the cron user is running it
but otherwise, yes.
@kelunik you have any idea who I can make suggestions about php manual to?
18 hours ago, by Dan Lugg
when you accidentally right-click an SSH window, and 8 metric tons of clipboard code get dumped as commands.
How about when you accidently source bash_history :D
Well I have no panel or something to configure the cron
It that hard to do if I want to run a specific php script every hour?
Anonymous
10:54
mon-ring
ah hummmm curl cannot open the file
I'm just doing a simple submit to the page
I guess I need to handle the file in $_FILES somehow maybe first.
Allright I have setup the .php script in crontab let's see if it works -_-' too bad Im not bale to read syslog.
Lol
Q: the script on the sites says it ran so the cron must have been running but how can I check if it actually did everything succesfully?
@ripa do you assume we can read mind while posting question?
11:11
Woooooo sorted it
@Duikboot have the script report what it did, somewhere... ?
K, so anyone got a simple function to get a elements value from an json object?
Before I go a googling, and find 6,000 different and slightly wrong ways to do it ;)
11:26
0
Q: Paypal order status issue in magento

Deeban BabuI am customized paypal module for INR currency So I converted INR amount to USD amount for paypal transaction Paypal payment is working properly. Issue is order status changed to Suspected Fraud. How to change return amount from paypal before order status change Below code is amount conversio...

Please help this issue
@Abe it's a feature not a bug
Abe
Abe
now i remember the reason i wrapped the hell around DateTime::getLastErrors
@NullPoiиteя why? I've posted my stackoverflow question link in above message. again sending if U r interested to help me. stackoverflow.com/questions/33822881/…
11:57
@djsmiley2k I have it reported but it runs somewhere stuck I guess
posted on November 20, 2015 by krakjoe

API now finalized for PHP7. Various fixes, everyone must upgrade.

@Duikboot so you can't see how far it gets?
got any access to error logs?
12:13
hello
PHP error logs : yes
Syslog = no
I am stuck with a problem in a query.. can anyone help me here??
Shoot.
duikboot can you help me
is here anyone who is experienced with PTC sites? I am making one and I am stuck at a point. can anyone help me out?
helloooo
anyone there?
@LaptopMedico ask your question, don't ask to ask.
If anyone can help, they will.
12:21
oh its my first time here....
thanks for the response :)
I personally have no idea what PTC is.
ThW
ThW
Paid To Click is an online business model that draws online traffic from people aiming to earn money from home. Paid-To-Click, or simply PTC websites, act as middlemen between advertisers and consumers; the advertiser pays for displaying ads on the PTC website, and a part of this payment goes to the viewer when he views the advertisement. In addition, most PTC sites offer a commission to its members for signing up new members (similar to many affiliate marketing programs online), or they may pay members a percentage of the clicks that their referrals make as an ongoing commission. The viability...
Man I have full Idea about WHAT IT IS.. I am making one on my own... Taking the example of www.buxhost.com
... @LaptopMedico Wasn't it you with a question? Just ask it ... and stay calm... It's friday.
wow, such project, much entitlement
12:28
I am stuck on the view ads page... where users view ads and earn money... now if one user views one ad then that particular ad goes hidden for the next 24 hours ( by the time server when it hits 00:00:00 all the ads are refreshed and appeared again to the user)
Now the problem I am facing is I have one table for storing the ads like table_ads and one table for storing the viewed ad data like table_viewed_ads...
in table_viewed_ads there is 3 columns like tab_id (auto incremented), tab_ad_id (for storing the auto incremented id of the ads from table_ads) and tab_username (for storing the username of the user who viewed the content)
Now I am confused that what query should I run so that I can get the result like a user cannot view a particular ad (ad should not appear) as it is already viewed by that particular user
any help?
Do you have a question?
till now I am doing something like SELECT * FROM table_ads JOIN table_viewed_ads WHERE padv_uname != 'admin1' and table_ads.tab_id != table_viewed_ads.tabv_id
but this is not giving me the solution to the problem... any help?
Cool story bro. Do you have a question?
You need an actual JOIN condition to start
12:38
any example mark?
SELECT a.* FROM table_ads a JOIN table_viewed_ads va ON va.tab_ad_id =a.id
You also need to add the username in there
SELECT a.* FROM table_ads a JOIN table_viewed_ads va ON va.tab_ad_id =a.id AND va.tab_username = ?
'a' represents the actual join?
And bind the username of the user
@LaptopMedico maybe you should start by learning SQL
a is just an alias for table_ads, same as va is an alias for table_view_ads
saves me having to write out the full table name everywhere
12:40
teresko I am good at sql...
And you don't know about aliases?
teresko u should help me with the query so that I can move forward because if I will feel I need to learn I will start learning myself..
7
thanks mark..
but i have done this before (thought not with the aliases)
that wont help me
@tereško What are you doing those days? :) ( As in what function you have? )
0
Q: PHP explode data to be used in WHERE clause

Laptop MedicoI am working on a project where I need to maintain user specific content. One user can view one content only one time in 24 hours. After 24 hours it will be made available to the same user again. So when a user successfully views a content I store the username of the user in the database in ...

12:46
@Duikboot mostly - nothing. Dicking around, living off my savings and building PC for acquaintances
I had put this question here.. but Ron Dadon advised me to use 2 tables so I tried and here I am stuck..
@MarkBaker he's all yours. You really should get better at reading people :P
Oh so no job currently?
teresko its not that my friend.. I am just very much stuck a few days on this i really need a solution
@Duikboot I am kinda in process of looking for one
12:48
@tereško Move to Newcastle UK, we're looking for a dev lmao.
What are you looking for? PHP?
We can tagteam this 25k controller file
@Sean I don't have enough savings left to make that jump. Though I have been considering working in UK for some time
Well, if you're looking for UK work always go down south
pays more, MUCH more
it's also warmer
12:50
So much so that up north we're starved for good developers atm
but companies aren't willing to pay low-supply high-demand prices
Been telling @tereško to do that for a while :P
Haha yeah, also warmer
shivers
guys please do not ignore me devs
12:53
@Duikboot my german skills have deteriorated to such extent, that I would not be able to communicate
@LaptopMedico So are you able to split it into two tables?
German? :D
Because that really is the best option
@Duikboot it's the only Belgium language that I have had any experience in. I dont know French, and I dont know Dutch
/me sighs
why is it so hard to find anything to go from html to wiki easily
12:56
(I assume my geography knowledge is at least slightly current)
yes sir.. but I think I can also do that in one table.. like i will make one field like viewed_usernames to contain a comma separated usernames of all the users who viewed that content in the same table that is table_ads for eg... user1,user2,user44,user32,user9,user20 and for them this add will not be shown...
I am ok with storing by PHP implode or just by some other method.. but the problem is that I want to check that the particualar logged in user say user1 is there in that particular field or not... if yes then the ad will not be shown if no then the ad will be shown
The problem is columns have data types with max sizes
The method you're suggesting will eventually fail when enough users are added to it
is it just me, or Baker deserted the room as soon as he got a grasp on what type of user he was dealing with ..
@tereško Never spoke german :)
creating two different tables is a big heck... please help me with the comma separated values method
12:58
@tereško lmao
CREATE TABLE Tbl_one ///....///
CREATE TABLE Tbl_two ///....///
There you have 2 tables.
I think you are right that when there will be more users it will be a problem...
yes dukiboot i already have two tables
don't ask for help then immediately discard what you are told
ok sorry
Man, sometimes I wish I could star myself.
:)
13:00
You want to create for every user a table? Am I reading this or is it because it's only 59 minutes and it's weekend for me?
@Duikboot The latter :V
/me Shuts his mouth.
no no... i do not want that.. i mean in one table that contains the ads that is table_ads i will create a field that contains username of all users who has viewed the content in a comma separated value
@ircmaxell the correct link is youtube.com/watch?v=MWTe-iswnqc
4
13:03
@tereško no, that's the sub-link. I wanted to give context
Break a leg!
Make a sticky star for it
@Duikboot wasn't that for actors?
@LaptopMedico SELECT ... FROM ads INNER JOIN ad_views ON ads.id = ad_views.ad_id AND ad_views.user_id = ... WHERE ads.id = ...
It's not the greatest way to do it I imagine but it's cheap and cheerful. Really I wrote it like that because I have no idea what you want specifically
EXACTLY what I had tried... but that gives a problem
13:07
However it demonstrates how you can join two tables up and check if a given user is present in that second table
sean can you help with the comma separated value method? stackoverflow.com/questions/33629455/…
see that question once pleas
But there's already a solution?
1
A: PHP implode explode comma separated values for use in if else statement

tino.codesCreate an array with explode and use in_array to check if the $username exists in the $user_status array. <?php $username = $_SESSION['username']; $user_status = explode(',', $row['user_status']); if (in_array($username, $user_status)) { //... } http://php.net/manual/en/function.explod...

Answers it
Obviously he did not understand the solution, because he also has no idea how to write PHP
teresko why the hell are you behind me like this?
because you are what's know as "help vampire"
13:20
@tereško he's a lucky guy =)
posted on November 20, 2015 by krakjoe

- Fix fault when ::shutdown (or ::join) is called before ::start

13:35
24 minuts and weekend ! Damn I need it! .. But then when Im home I mostly start again coding -_-'
Anonymous
@LeviMorrison @Danack I got the job :) Thanks for your help
@Jay Explain? :) curious here.
@Duikboot play a game or watch some TV series
also, beer
Anonymous
@Duikboot They gave me interview advice for a dev role :)
Oh nice and you got the job?
13:48
how can i handle url encoding of 'D:/This is test+.pdf'.
some where in the project it is encoded and decoded with 'D:/This is test .pdf'. Now how can i handle this situation?
For a REST API what is a good way to get stats? For example I'm doing a messaging system and I want to get the average time a user takes to respond to messages. What would the URI be?
/[user]/stats/messages?
@Duikboot why? you are going to get waisted again, and wonder on monday what actually happend this weekend? :P + then you will prob also bitch about how short the weekend has been again :D
@Sean Yeah I'll use that thanks
Anonymous
@Duikboot Yep :) Vhappy
13:52
@Naruto Exactly.
@Sean how did you know the answer?
@Duikboot I know my fellow dutch speaking buds ;)
@tereško Wha~ It was just a generic REST API question :p not for a specific one
I mean, uh, I'm just that good
next time add /s at the end.
I wonder if hardcore optimization would be to save bytes not including meta tags when a user visits a page as opposed to a scraper / bot
@tereško Oh, I'm just that dumb.
14:06
If you say "if you're [insert whatever], you're doing it wrong" ... you're doing it it wrong. #pluralism #diversity #paradox #noabsolutes
Not sure how to take that ^ :-)
posted on November 20, 2015 by nlecointre

/* by Eric */

@Jimbo .. as a failed attempt to sound insightful
it's gibberish
@tereško Everyone tries to sound insightful on twitter these days
and nobody really is.
If I want to monitor the changing of a particular table column (e.g. [thing] status)
would I create a new table with [thing id] status date, and keep the latest / current status of said [thing] still in the original table?
Then add to that second table every time the original status is changed
Oh that's cool
So use a trigger to check the status change and insert a new row
this would let you to detect a change
what you do afterwards depends on what you actually need
Yeah
Did not know about triggers like that, thanks
@Jimbo Clearly you're reading it wrong
:P
We're all doing it wrong - some of us just hide it better than others
^ tries to sound insightful ;)
14:24
My question to him would be "Is that statement absolute?"
@Sean probably because you have never actually learned SQL :P
Would BEFORE UPDATE trigger on inserts too?
you could check, but IIRC: no
@tereško Yeah, that's right. I had a year module on it at uni, and if the php module was anything to go off it really taught me nothing
Everything before and after has been self learned, naturally =p
Database question, do I query on the index name, or the column name that has an index?
14:32
you query by columns. Indices are named only for your benefit in telling them apart
Thank you.
If you SELECT ... INTO foo and nothing is returned from the query, would foo be NULL?
Man this sucks. This index shit is way over my head and confusing the fuck out of me. I'm better off splitting my query up and just putting it back together.
14:47
@Jay Congratulations! I'm glad we could help.
@AmericanSlime you probably should hire a developer
Anonymous
chat.stackoverflow.com/transcript/message/26957047#26957047 @LeviMorrison their reaction when I told them what system they were using was great, so mainly thanks for that bit of advice!! You helped me a lot :)
@tereško We don't have a database admin here, so I'm just trying to muddle my way through it. Yeah, it would make sense to get someone dedicated, but oh well.
Whatever you do don't get a DBA involved ever :P
00:00 - 15:0015:00 - 00:00

« first day (1861 days earlier)      last day (3313 days later) »