« first day (1906 days earlier)      last day (3267 days later) » 
00:00 - 13:0013:00 - 00:00

00:01
What style fixers for PHP have you used, dear room 11? What did you think of them?
4
@LeviMorrison I use the squizlabs/php_codesniffer just for detecting errors. I disagree with the 'problems' it detects to not want it to correct code for me.
00:16
Basically I want a ruleset for some style fixer that I just dump into my repositories and say "here, just run this".
yeah I don't do that. I have the problem detector set to run pre-commit git hook, and I have the sniffing setup for CI testing, so that pull requests have the detection done on them, (or when i work from a directory where I've forgotten to setup the pre-commit hook).
@LeviMorrison php-cs-fixers and php_codesniffer. I think php-cs-fixer is more active as of lately, although it breaks more often :-\
00:58
hello
anyone with magento troubleshooting skills up ?
0
Q: Magento admin checkout problem

RasvanI have a weird problem regarding a order checkout form the back end section. I have a product that is not is stock. It has 0 qty, no back-orders, and the out of stock status. When i try to make an order with this product, surprisingly the order goes throw with no issues causing the stock qty to ...

I wrote a whole lot of documentation for that....need to put it live...
that seems a recurring thing
the converter actually creates classes, if I understand the code correctly. I'm a bit... I don't know what I know anymore
this is almost as cool as it seems error prone :p
Classes get cached by opcache.....they turn out to be really quite fast. And that's the same as Twig does.
01:38
@FélixGagnon-Grenier okay here is how to run the documentation:
git clone github.com/danack/TierJigDocs
cd TierJigDocs/
composer install
mkdir -p var/cache
php -S localhost:8000 -t public
@FélixGagnon-Grenier Full disclosure I really need to get a job, as I'm really running out of money. And although I probably will need to turn my Aws servers back on, not sure if I'm going to do that this week.
And I'm aware some of the sentences in the documentation are terrible. Apparently I am very bad at writing documentation.
02:40
it's alive
02:56
Hi
Belated Happy new year to all champs of Stackoverflow
I can't drink beer anymore. I'm getting fat. Is vodka any better?
@FélixGagnon-Grenier:prefer wine over vodka
better programming possibilities for more than one hour with wine, I'd hazard
03:35
@LeviMorrison I'm having a problem with autoconf's AC_TRY_RUN that you might be able to solve more quickly than I can....this program compiles, links and runs successfully:
cc -I/home/travis/gm/graphicsmagick_1.3.23_16/include/GraphicsMagick debug.c -o debug -L/home/travis/gm/graphicsmagick_1.3.23_16/lib/libGraphicsMagickWand.so -L/home/travis/gm/graphicsmagick_1.3.23_16/lib/libGraphicsMagick.so -L/home/travis/gm/graphicsmagick_1.3.23_16/lib -L/usr/lib/x86_64-linux-gnu -lGraphicsMagick -ltiff -lfreetype -ljasper -ljpeg -lpng12 -lwmflite -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lGraphicsMagickWand  -Wl,-rpath=/home/travis/gm/graphicsmagick_1.3.23_16/lib
I'm trying to run the same program through AC_TRY_RUN and have set what I thought was appropriate flags of:
LIBS are -Wl,-rpath=/home/travis/gm/graphicsmagick_1.3.23_16/lib
CPPFLAGS are -I/home/travis/gm/graphicsmagick_1.3.23_16/include/GraphicsMagick
LDFLAGS are -L/home/travis/gm/graphicsmagick_1.3.23_16/lib/libGraphicsMagickWand.so -L/home/travis/gm/graphicsmagick_1.3.23_16/lib/libGraphicsMagick.so -L/home/travis/gm/graphicsmagick_1.3.23_16/lib -L/usr/lib/x86_64-linux-gnu -lGraphicsMagick -ltiff -lfreetype -ljasper -ljpeg -lpng12 -lwmflite -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lGraphicsMagickWand
But apparently the program fails to execute. Have I obviously gotten the flags wrong, or some other obvious error?
The config.log line is here - I still can't see the error....
Oh... my bad, I guess I should have just asked directly but @Danack, I'd hazard this github.com/Danack/Tier/blob/master/src/Tier/JigBridge/… variable is superfluous? It seems to throw a fatal error.
/me right back getting booze
Thanks. Yeah...I ought to do more testing against 7....
oh, that may explain why I'm having some problems running it
I'll recompile 5.6 to see if it helps
03:50
@Danack sorry I missed your mention, I have been working on extensions igbinary my last mandatory one :)
Here is a great place to chat! Really I have been just scouring the web to get peoples opinions on named params in Python (I personally was more excited by keywords like Common Lisp)
The implementation is not going to be the hard part, but this seems to be something so many people have opinions on
The short version is that from a surprisingly troll free discussion on Reddit having functions that support named params like the Javascript ES6 functions, rather than having all functions callable by name sounded sensible to me and Andrea.
I also didn't want to really talk about it a lot until I had a working implementation (My last feature in PHP was a grind) not like bug fixes or extensions that is for sure
Andrea has been meaning on making list() support destructuring stuff from associative arrays already, and that overlaps with named params stuff.
Ah yes gorgeous example
03:54
(defun func (&key param) (print param)) -- (func :param 'val')
Nope nothing to dissuade me from, I prefer keyword/destructuring :)
tbh I don't have 'teh skillz' or the time to do any internal stuff required for named param - but if you were already going to be working on it, and it sounds like Andrea is keen also, you two might be able to help each other.
Apart from possibly write the RFC text when it's time to make the case for it.
All hers if she wants it! Etsy pays me to do boring stuff (extensions) but if I can make a case for an RFC that would make code better no one cares
sanity check: theoritically, the user running a php call from nginx server would be the one configured in php-fpm.conf (www-data, as far as I configured it sucessfully). if that user owns var/cache, it should be allowed to write in it?
@FélixGagnon-Grenier yes.
@Andrea ^ two up
03:57
0755 is usually sensible for users.
I am gonna quit my job and become a student again, work on fun stuff all day
@Danack Eh, it's hard to see the diff but basically it is missing a .so or something.
Whichever one provides InitializeMagick.
Nikitia + Andrea do some awesome stuff
@LeviMorrison and that should be in LIBS ?
So... -L/home/travis/gm/graphicsmagick_1.3.23_16/lib/libGraphicsMagick.so
Looks like probably an error.
-L flags are for paths to directories.
04:03
git commit -m "Totally not trying things at random now"
I think I'm going to give up on this. It was supposed to save time against having to define versions for all functions that were introduced in particular versions......but I can probably do that in about 1 minute per function.....and there's not that many to do.
04:19
Knock Knock
Who's there?
:)
just now was the first time I saw that. Let's say I've had some sort of a good laugh
Btw fyi I'm going to be moving to be using the PSR-7 request/response interface "soon". I don't have the time to finish off a separate one and the request bit of that library is good enough, and the response one can be isolated and so be good enough...
but first I should sleep.....nn.
 
2 hours later…
06:42
good morning
and a happy new year
07:03
heh, I dropped out of the top 100
07:14
Good morning! I hope everyone has gotten into the new year with all their fingers.
good morning
@Epodax I don't do firecrackers
@Gordon Not necessarily a firecracker that takes your hand :P A rocket can do that too
@Epodax I don't do any fireworks at all. And with each year I think more and more that people should just give the money to their city and let the city do a professional firework instead. safer. and less annoying the two days before and after NYE.
True true, I don't do firework either, it's too freaking expensive
07:27
good morning @Gordon
Hello Everyone,
good morning ALL
I need little help regarding laravel
if anyone can
0
Q: laravel: how to multiply current value of column with another when updating rows?

Sagar NaliyaparaProblem: I want to update two column of mysql table, column1 decrement with some value and column2 multiplication with some value, I have done about decrement like this from here Tried: $stock_obj->decrement('quantity_on_hand', $product_data["quantity"], array( 'total_quantity_on_hand' =>...

Hello @FastSnail
where should i put .htaccess file?
hi sagar
in laravel..??
@FastSnail
what .i have wamp server and inside it there is a folder myproject .
when i open some php files .fx ask me to download it .but not all php files
07:37
your project is in core php...??
@SagarNaliyapara what ?
which php framework are you using...??
@FastSnail
i don't use any framework .i hosted it in a server and it works.but in wamp index php keep downloading
@FastSnail visit this,
21
Q: Where to put .htaccess file?

user187580I have some settings which I want to use in .htaccess file. The settings are for some functionality at /admin/tool folder level .. but I want to include some settings for /admin and / locations as well. My question is what is the best location to put this file at?? Thanks Update Just fyi .. ...

plz see this image
but i can nicely see outher php files .
07:46
@FastSnail use vagrantup.com instead of wamp
@Gordon
1
Q: laravel: how to multiply current value of column with some value when updating rows?

Sagar NaliyaparaProblem: I want to update two column of mysql table, column1 decrement with some value and column2 multiplication with some value, I have done about decrement like this from here Tried: $stock_obj->decrement('quantity_on_hand', $product_data["quantity"], array( 'total_quantity_on_hand' =>...

@SagarNaliyapara Don't ping people to look at your question, if they can answer it they will
ok @Epodax
http://localhost/dashboard/phpinfo.php gives..
System	Windows NT DELL-PC 6.1 build 7600 (Windows 7 Professional Edition) i586
Build Date	Oct 29 2015 12:34:05
Compiler	MSVC11 (Visual C++ 2012)
Architecture	x86
Is php developed using C++?
.... what?
Compiler MSVC11 (Visual C++ 2012)
Php is a development language.
msvc11 used to compile which code?
08:23
Not sure I quite follow.
Read the third line in this comment. what for, is this complier used?
Gonna pass, don't know enough to answer your question, it confuses me :(
I guess, Javascript is implemented using C
written in != compiled
written in C
08:27
what is written in C?
oh ok
you answered my question
thank you
morning roomies!!!! Happy new year for you all, may this new year be one full off awesome projects :)
@overexchange no, but C++ compilers can be used to compile C code
08:45
20
Q: POST request to PHP7 with chunked encoding does not properly return result

markI'm sending a POST request from a client (tested with curl and custom nodejs script) and don't get the response properly back. The whole thing works fine with PHP 5.6. Environment The whole thing is reduced as much as possible: everything running inside Vagrant VM Ubuntu 14.04 LTS nginx 1.9.7...

did you internal hackers see that one?
@FlorianMargaine yes. that's true. I never denied. I used msvc 9 and 10 very well in my job
for 64 bit porting using nmake
@overexchange the source can be found here btw, you can see for yourself what kind of code is there
hello
Happy new year room 11ers!
morning...
08:54
ok
@Sean o/
I can't connect to localhost when I'm connected to public wifi. any ideas?
@PeeHaa \o
:)
bye..
@LeviMorrison phpcs and it works fine for me
09:02
posted on January 04, 2016 by nlecointre

/* by TrivialPanPan */

@ScottArciszewski I love what you guys did for the JWT lib!
Deployment software suspended pending payment, only person working IT this morning, crap.
what's your deployment software?
mornin
09:21
When I installed XAMPP, On apache side(A of XAMPP), Is httpd the main component? that receives http queries sent on html form submissions?
@FlorianMargaine Thanks :]
@overexchange httpd is apache so yea
s/pache/wful/
moin :-)
09:23
we should be able to publish the other audits we did in 2015 soon :D
most of them were for a product that hasn't launched yet
they're working on the i18n right now afaik
@FlorianMargaine DeployHQ we're using
@ScottArciszewski When you say we isn't it actually basically just you?
Audits are always fascinating reads
I always thought paragonie was you
09:25
sort of
I don't own the company
I'm just the one who makes the technical decisions
ah k
and once we've got a consistent revenue stream (ideally not "one weekend every month or two") we'll probably bring a few people onboard (remote of course)
Cool
That defensive php slideshow is inspiring but daunting haha
@PeeHaa did you do anything to your feeds project ?
as in, can I break test stuff ?
09:41
Nice intro on, how webserver functionality is evolved?youtube.com/…
@Naruto tbh I've done lots of drugs and booze so no not really :P
did drugs.. So your the guy that's been firing firecrackers at the cops? ;)
09:59
@Naruto Nope. Was waaaay too wasted for that
If I install XAMPP, then, what is the communication standard between httpd.exe(web server) and the php module? Is it CGI or fastCGI or WSGI communication standard? or Does php module sit within webserver(httpd.exe)
hi
anyone here?
is there anyway I can check if a website is up and running using websockets?
ping
:D
10:08
doesnt ping create a request to the server?
ping would also check the socket() libc library api return code
hi , just asking for my knowlage is there any alternative for cookie on browser ( Clint side )
@sharath yes it does
@sharath Unless the website is accepting websocket connections, no.
@abhi Depends for what.
@overexchange i am creating a monitoring tool
10:10
If the server doesn't need the information (like client-side application state), you can use localStorage and sessionStorage in JavaScript.
and this might be a bit heavy on my client as well as master server
as the requests keep on coming
@abhi If you're using JavaScript, look at SessionStorage and LocalStorage if you're storing data client-side, see if that fits your use-case
right now on my site i am storing all info in javascript cookie , now what happns is for every ( xhr ) call that cookie is a passed with call ,, so can i store that data in to file insted of cookie
@MadaraUchiha ok, can i check if the website is up/down
without making any requests
with curl
or ping
@sharath monitoring tool does poll every interval
Most of the NMS products do this activity before talking to the destination machine
ping is an ICMP request, you need to send an ICMP request to destination
using some C/C++ or java code
10:15
@sharath Nope.
Why do you not want to make a request?
@sharath nagios free monitoring tool has this logic, go thru it. whetevr reason you would implement it. there are many free tools
but nagios uses nrp
webNMS is another product that does this work. Any NMS product does this monitoring before sending snmp req
@overexchange so its not possible to use websockets?
socket is a socket, what do you mean websocket? In java you would say Socket socket = new Socket(host, 80);
10:18
@sharath Why not make a request???
@MadaraUchiha as i said , i dont want to make my servers flooded with requests
@sharath Servers are made to be flooded with requests. That's what they do.
@sharath to avoid flooding, monitoring tools do polling
Also, how often are you planning to check?
i was thinking of websockets because, they would be much lighter
3 or 5 minute
10:20
@sharath You're afraid of 3-5 requests/minute?
That will flood your servers?
suppose If i have 30 websites in a single server
thats what worries me
Hi Guys,could any one help me this error in codeigniter
@sharath You can't handle 5 requests/sec?
preg_match(): Compilation failed: unmatched parentheses at offset 38
Filename: core/Router.php
Line Number: 411
Generally reverse proxies take care of such house keeping work, keeping the core http req processing functionality of web servers
10:21
@user3454479 I'm guessing your routing string is invalid
Or, one of them has a mismatched set of parentheses
so ...
reverse proxy maintains the cache of health of all webservers. So, webserver would not tuch your ping request
has anyone here installed latest AMD drivers on Arch linux?
@sharath load balancing cannot managed from client side. your server side architecture should manage extra requirements
Really we'd need to see your routes to figure out the exact issue.
10:24
@MadaraUchiha if i have 30 websites = > 30days * 24hrs * 5mts
isnt that too much requests hitting on my client server
lolno
Can somebody answer my question?
@overexchange :(
@sharath - If you get a user on one of those websites who clicks on a few pages, it'll be more requests per minute than your checking if the site is alive
@overexchange You have several options
Imo the best option is nginx/fastcgi
10:26
On installing XAMPP, what is the communication pattern btwn httpd.exe and php?
Probably mod_php
but if i want to avoid using curl/ping
can you help
for using websockets
so, you mean apache module mod_php sitting within httpd.exe?
10:27
But xampp is a pretty crap unneeded non-solution overall
am using as learning for the first time to write web app. I am not interested to rate XAMPP
@overexchange The apache process will use said module yeah
Hi @Sean. I checked my routes. I given valid string. It will occur for every action. Not for one action
good mornings
10:29
It's probably mod_php.dll on windows or something like that
@MarkBaker but what i want is, to check if there is any way to solve my issue using websockets
@PeeHaa Can I see that structure in process explorer. Would like to visualise
oh ok
mod_php.dll ok
let me check now
using process explorer
good day guys. I have this problem wherein the styles and scripts are not loading when I open the page. I have a folder named portal and it contains the index.php, header.php(styles), footer.php(scripts), and folder named employee. Inside the folder employee, I have basic-info.php which I include the header and footer files. I just wonder why if I load the basic-info.php the styles and scripts are not loading
Immutables in /Immutable/ Yay or nay?
The cat just threw up on my desk
10:35
or VOs
@DaveRandom D: Not great!
while when I moved the basic-info.php inside the payroll folder, outside the employee, it loads fine
42
A: Absolute vs relative URLs

PeeHaaShould I use absolute or relative URLs? If by absolute URLs you mean URLs including scheme (e.g. http / https) and the hostname (e.g. yourdomain.com) don't ever do that (for local resources) because it will be terrible to maintain and debug. Let's say you have used absolute URL everywhere in yo...

Different question, but your answer is in there
in my case, the styles and scripts only were the one not loading not including its content like when I put some text on it
Aaaaaaand I'm done
under httpd.exe I see this dll
Like CGI, Fast CGI and wsgi, what is the communitation statndard for modules within httpd.exe?
Because CGI, FCGI and wsgi is the comm pattern used where the modules(as process) are sitting outside webserver and communicating using pipe or socket
11:04
> This prefix should be used to name your schema attributes and classes. For example: if your prefix is "Microsoft", you should name schema elements like "microsoft-Employee-ShoeSize".
Well, at least someone at MS has a sense of humour, there have been times when I've expected that to be the next question they ask me
11:16
@FlorianMargaine But how would I know the communication standard name?
In case of comunication between php5apache2_4.dll and httpd.exe?
BTW, Does the answer to such questions would help me pick the right webserver for any project?
I think these are the parameters one would trace to pick the right webserver for a requirement
@user3833682
guys. Should the header.php(styles) and footer.php(scripts) be on the same location with the index.php where it is imported/included?
> We have detected you are using Google Chrome and might be unable to use the Java plugin from this browser. Starting with Version 42 (released April 2015), Chrome has disabled the standard way in which browsers support plugins.
Fuck you Oracle
@DaveRandom Best decision ever
This is my authassingment model code
11:30
inorite
seems Oracle have got pissy about it and decided to deliberately mislead users so they use a crappy insecure browser instead
1 message moved to bin
and this is my index.php code
@user3833682 could you please use a pastebin service?
1 message moved to bin
lulz @ repost
Hi is there any solution for this question stackoverflow.com/questions/34589387/…
11:32
@DaveRandom IE is great and does all the things
Hi can anyone help me for this question stackoverflow.com/questions/34589033/…
@manipvd No clue what it is you are trying to do...
WTH are you doing with java crap in the browser anyway @DaveRandom?
Nothing, I'm just installing java against my will because I need to use something written in the piece of crap language, that's just the message oracle gave me when I went to download it
WTF still uses it in the browser
I do occasionally need to admin some old netgear managed switches that use a Java applet, but I have a special poison machine for it in the office
@PeeHaa this is a desktop app that I'm using now
Oracle think they still run the web though, apparently
11:38
@DaveRandom Yeah. The only thing I have seen that the last years indeed was router crap
I'm doing some stuff with LDAP because we are still married and JXplorer is a tool that annoyingly has no non-Java equivalent that's in any way useful
@user3833682 Have you posted your code here?
What's the right array_ function to work the way $.extend does?
// i.e.
fn([0 => 'foo', 1 => 'bar'], [0 => 'baz', 3 => 'bar']) // [0 => 'baz', 1 => 'bar']
array_merge?
ugh no numeric keys
arr+arr
It's non numeric keys in reality
Was just a terrible example
11:52
array_merge overwrites non numeric keys
But it keeps keys not present in the first array in the second array
Isn't that what you want?
@Sean you probably want array_replace
@Mathieu Was looking at that, but
> If the key exists in the second array, and not the first, it will be created in the first array
Guess I can test it to see if it's what I think it means
@Sean maybe like this then : array_intersect_key($base, array_replace($base, $array1, $array2));
12:00
array_merge($defaults, array_intersect_key($request, $defaults)); does the job well, I think
Thanks anyway, thought there was an easier native function for it
lol
why is it that Yii code still looks like shit?
@user3833682 try using pastebin or something else here, instead of dumping full code here...
@user3833682 Checking
12:27
Hey Hi Have Some problem with SHA512 Hashing in php,
http://pastebin.com/inirnKQX
Above is link to my code and it gives output given below:
5aadb45520dcd8726b2822a7a78bb53d794f557199d5d4abdedd2c55a4bd6ca73607605c558de3db80c8e86c3196484566163ed1327e82e8b6757d1932113cb8

where as online hash calculators give output given below:
23d9d73303507595931df44fabe5a800b7bf2d55c5044e727c60cbf1e74fbac2c7f3f2423325063b527097c96bb5018bfaaf407df28cca3cf94e125349e97896
2 messages moved to bin
@user3833682 seriously stop spamming
@user3833682 pastebin.com/inirnKQX check the link
@user3833682 if still there error then put error message here
with line number
Surf Safely!

This website is not accessible.


The site you are trying to access contains content that is prohibited for viewership from within Pakistan.
0
Q: What is the purpose of php module?

overexchangeIn XAMPP installation, I see that httpd.exe is installed with php module php5apache2_4.dll. What are the responsibilities of this php module?

I'm getting error on link
Surf Safely!


This website is not accessible.


The site you are trying to access contains content that is prohibited for viewership from within Pakistan.

this is the error I'm getting it when I try to open link
12:36
@user3833682 I can access from any browser. Seems that IP has been blocked or something else.
since when do providers block pastebin? xD
Preventing another scandal?
can't open link
give me other link...
@user3833682 The obvious solution to this problem is to not be in Pakistan.
please give me other link so I can open this link and solve my problem for yii...
12:43
@user3833682 you never used a proxy/vpn o.O
or is that also blocked...
I also tried in torbrowser but didn't work for me...
@Danack it's like saying: If you want your problem solved, move to another country first xD
I am in pakistan tell me which link
are you sure /error.html is a valid link?
12:49
not sure
anyhow what is your problem?
The Coder gave me this link for my solution
-3
Q: Trying to get property of non-object in yii

user3833682I'm using yii framework and I'm new in yii and can't understand the problem in this code, it is giving error in this code and I just attached the image of my code and when I just try to echo '<pre>';print_r($role);echo '</pre>'; it just print code like this can't understand why this is givi...

take a look to link
And how is it related to PHP.....
see my question please...
got closed as duplicate
12:52
@PeeHaa you need to ab use your powers more freely...
@user3833682 I think in your case $role contains a boolean value yes/no.
sockets.io help please once i make a connection to my server.php script through shell do I need to run this every day to make my chat work 24/7 or one time is enough?
when I try to print or echo something it show the php code same at the browser you can see the second image in my question
00:00 - 13:0013:00 - 00:00

« first day (1906 days earlier)      last day (3267 days later) »