« first day (1649 days earlier)      last day (3524 days later) » 

00:12
@bwoebi But you have no other options (unless you count the really recent compile-to-js languages)
@LeviMorrison I mean server-side
Psh, JavaScript is not a server side language despite what the node.js people want you to believe.
How much of its marketshare is serverside? Maybe 0.01%?
It's like saying PHP is a language for writing daemons. It's not but you can do that if you really want to.
@LeviMorrison I bet it's more than that. But not too relevant I think, yes.
@LeviMorrison And client-side… meh. I'm forced to use it. But well… There's nothing I can't do with a bit of jquery and minimal APIs.
(Yeah, at some point you might have a fullblown client-side JS application … but that's not the usual case.)
00:33
/ wears mask, overshoe, gloves, opens reddit.
Scary thought of the day. There is code still in PHP older than @nikita_ppv - one of the driving forces behind PHP 7's amazing perf boost
15
00:48
@LeviMorrison there is a lot of javascript hate too
and JS is slightly suffering from Python-itis: the JS that you write on backend is different in some place from frontend
and there is also the current volatility of frameworks in JS: if you start a couple-month project in JS now, by the end of it, your chose framework will be considered legacy already (with probably no upgrade-path)
.. on the other hand, it is definitely one of the most useful languages to learn for ANY web developer
.. and then there is the "jquery problem"
 
3 hours later…
03:39
Damn, could be an interesting question if it wasn't so unclear =/
03:52
guys, is it possible to write a Twig extension that will be compiled to a string literal, not to a function call?
so what I need it that my extension is invoked once and then the result is in the compiled template as a constant
Seems like a new Tag satisfies that, thanks
 
1 hour later…
05:21
Hello guys
06:03
hello
can somebody tell - is id_rsa.pub with passprhase is different from id_rsa.pub without passphrase? I think they should be different
ok, interesting - they guys in office said that public key is still the same
user4661379
hi all
user4661379
Can someone please help me in my issue?
user4661379
0
Q: How to generate an HTTP request to fetch the data in JSON format from certain URL on submission of a form?

PHPNutI'm a newbie to the things like PHP, HTTP request and JSON response. So, please help me. I've an HTML form as follows : <form> <div id="link2" style="float:left; width:320px; margin:10px 115px 20px 55px; border:1px solid #ccc; border-radius:5px;"> <p style="font-size:20px; p...

SO is to help solve problems, not to write your code for you.
moin
good mornin
morning
how do i change the permissions files.txt to make sure that only the owner can read and write the file
06:43
@lovetolearn chmod u=rw,go= <file>
@Stephen thanks
@lovetolearn if it isn't obvious, u = user, g = group, o = others, so you can do stuff like chmod u=rw,g=r,o= - you can also use + and - to add or remove permissions - i.e. chmod g+w
Or chmod 600 <file>
@Jack correct of course, I just find the u/g/o mode much easier to explain to people unfamiliar with how bit masks work
isnt the user the owner, so why did you ago
go
06:48
The go= is to indicate group and others don't have any permission.
exactly
ok got it
if you don't specify the go the group and others permissions are not modified
It's o for others, not owner :)
you are saying change permissions to give u=rw permission, while grup and others "go" have no permissions
06:50
yes
did you mean something else in your question?
what if i had a directory called testing/test/tested and made sure only the owner could change in to it
li will will give you what i think it should be
i am not sure because i dont know what action is changing in to a dirctory
um, sorry, what?
if you want to disable listing a directory contents, remove the "x" (execute) permission on the directory itself
so e.g. to prevent "others" from listing the contents of directory "foo"
chmod o-x "foo"
but i still cd in to foo
can i still cd in to foo?
@Stephen that's not entirely correct; to prevent listing the contents you need o-r foo.
The x on directories basically means going into it.
@Jack try it - mkdir foo; chmod -r foo; ls foo - permission diened
06:55
yeah, but you said o-x just now
denied even
oh sorry so it should be go-x
go-rx even .. that would prevent going into the directory and listing the contents
you can't cd to a directory without execute permission
indeed
the only thing you can do with read and not execute is (in theory) list names
07:00
so what would be the full command chmod -u=rw,go-rx foo
would this be the right command
not quite
you don't need to specify the "u" part unless it's changed previously
and you don't need the dash
@Stephen which is "listing a directory contents", isn't it? :)
so chmod go-rx
chmod go-rx foo
or chmod 600 foo
07:02
@FlorianMargaine chmod 600 will remove the user's execute permission too
@bwoebi Yup, although if you think about it, it's merely a one position change from last elections
(chronologically, I got 11th, 11th and now 10th)
@Stephen 700 then
@FlorianMargaine yes, but you're also not taking into account the existing permissions. the request was "made sure only the owner could change in to it" - it doesn't say anything about the owner's write permission, hence i suggested taking just the action required - remove the execute (and as @jack said, read, for good measure) permission from group and others
not "for good measure"
would this give read and write permission to all users on file.txt chmod -u=rw file.txt
07:05
[florian@localhost tmp]$ mkdir baz
[florian@localhost tmp]$ touch baz/foo
[florian@localhost tmp]$ chmod -x baz
[florian@localhost tmp]$ ls baz
ls: cannot access baz/foo: Permission denied
foo
[florian@localhost tmp]$
it lists the directory contents.
yep
@jack was the yep for me
?
it lists names.
it names names!
so i agree that removing read perm is a good idea generally
07:07
you look like someone who doesn't admit being wrong
@lovetolearn read and write permissions for all on a file would be chmod a+rw file.txt
@SecondRikudo So… you'll have to wait ~7 years for your diamond?^^
@bwoebi my now-wife waited 5 years for her diamond... This kind of thing takes a while.
@bwoebi No, I won't be running again.
07:10
Not to sound butthurt, but the community obviously doesn't want me. So meh vOv
I'm happy with the mods that did get elected
@FlorianMargaine So… if you want to moderate SO, you just log into her account?
SO? No, I was talking about the engagement ring
oh lol
You're oblivious :P
just confused context…
07:14
yeah, that's the joke
Anyway
i have a file called hello.txt and want to output the number of txt files on my home directory in that file recursively
how would i do this
files don't recurse.
That was badly worded
output the number of text files in my home directory (recursively) into that file
But he basically wants ls -R | wc -l > hello.txt
With some grepping
07:19
find . -type f -name "*.txt" | wc -l > hello.txt
@PaulCrovella would you mind explaining that please
@SecondRikudo getting +5K upvotes and a mere 200downvotes doesn't sound like that the community doesn't want you
@lovetolearn find, wc
@FlorianMargaine homework/?
@lovetolearn explainshell.com/explain?cmd=find+.+-type+f+-name+%22*.txt%22+%7C+wc+-l+%‌​3E+hello.txt /cc @PaulCrovella
with a working url ^
07:24
hey neato
@HamZa Getting tenth in the elections does.
I can relate the 5k upvotes to the fact that I had 40/40 score, and a lot of people voted blindly.
@Florian isnt wc( word count) different to counting the number of txt files on your home directory
wc -l counts lines, not words
Also, RTFM
i was looking for the number of text files in my home directory to be outputted to hello.txt
@SecondRikudo see it from the bright side. You had about ~1800 votes. The average user in the top ten had about 2000. I don't see this as people not wanting you as a mod.
07:29
But I bet he doesn't knows Linux...NOT! RT @adymitruk go home linkedin, you're drunk http://t.co/PiOUZDsrOH
lol
user4661379
Someone please help me in the issue I'm facing:
user4661379
0
Q: How to generate an HTTP request to fetch the data in JSON format from certain URL on submission of a form?

PHPNutI'm a newbie to the things like PHP, HTTP request and JSON response. So, please help me. I've an HTML form as follows : <form> <div id="link2" style="float:left; width:320px; margin:10px 115px 20px 55px; border:1px solid #ccc; border-radius:5px;"> <p style="font-size:20px; p...

@HamZa The fact remains that I don't have enough voters. Not then, and not now. And I also don't have the tools to analyze why and improve.
Trying over and over again without changing anything is insanity
07:33
@SecondRikudo hmmm I see... I don't want to say go for mod again. Just saying that not everyone hates doesn't want you :P
@HamZa Oh, it's not that everyone hates me
It's that not enough people like me :)
@SecondRikudo you definitely need more kittens. Maybe change your avatar to one for the next election?
@PHPNut how much do you charge? Sounds like a task from odesk...
@Patrick I think I'll return to being @MadaraUchiha
^ or is it how much are you paying?
07:36
I'm one vote away from Generalist ... oooh ooh ooh
@Ja͢ck did you get your swag?
(for 100k rep on SO)
@HamZa i'm dying lool XD
@FlorianMargaine not anymore AFAIK
@HamZa another person I know got their 100k swag a month ago
user4661379
@HamZa:Please don't misunderstand me. As I'm completely new to such things and I've to deliver in a very short span of deadline. I'm not able to find a quick and reliable way to do it. That's why I'm asking for helping hand. Once I got the idea I'll do on my own onwards.
07:37
@Ja͢ck What are you missing?
@FlorianMargaine if that's the case... I should repfarm O_O???
you have a lot to repfarm...
@StackExchange Thanks for the swag! <3 http://t.co/khXZyrdnaz
@Ja͢ck yay
@SecondRikudo missing one vote :)
07:39
yes but quite easy...
On the other hand, I think I need to finish my assignment first :P
it's about assembly (yaaay !!!)
@Ja͢ck congratz
@Ja͢ck got that for 100k rep?
@SergeyTelshevsky Plus t-shirt and a few stickers!
nice :)
congratulations!
yeah, free stuff is good stuff
and technically, it wasn't free ... it cost me considerable amount of time lol
^ that lol
07:42
yeah, the amount of cash one could get for being helpful at least 10200 times :)
@bwoebi also, AssertionException should be a sub class of EngineException :D but surely shouldn't be a subclass of Exception
morning ppl
@Worf no, that's correct.
@PHPNut that's what I'm saying. I don't see any efforts in solving YOUR problem for which you're getting paid for. As a hint: catch the input with php using $_POST/$_GET, append it to the url string and use file_get_contents to get the JSON. echo it in a fancy UI
@bwoebi reason? i don't think so
@Worf EngineException is purely for internal failures
07:44
but surely shouldn't be a subclass of Exception
@Worf One might consider to make it subclass of BaseException… but I'd refrain from adding yet another direct subclass here
@Worf which is then the only option left.
does anyone know why this command wont run on terminal or give any errors
find . -type f -name "*.txt" | wc -l > hello.tx
"won't run"?
user4661379
@HamZa: Thanks for your hint. But i have one doubt. Do I need to use REST API while doing this task or should I do it in a way you suggested that is by using file_get_contents?
@bwoebi well, better than having it extending ErrorException
07:47
it just stalls
doesnt do anything
also ErrorException should be an "unchecked" exception, but would break existing code
"stalls" as in, never exits?
@PHPNut lolwut
stalls as it it does nt do anything
@salathe he probably has a lot of files/directories...
07:48
does not go in to the next line
user4661379
@HamZa:Sorry, I didn't get what are you trying to say.
Throwable -> (abstract)
 +- UncheckedException (needs a better name)
     +- NullPointerException
     +- TypeException
     +- AssertException
 +- CheckedException (needs a better name)
     +- Exception
no.no.no. I won't get into checked/unchecked exception hell…
just for the lack of better names
@PHPNut first you have to add an attribute name. Give it a value name="shipmentID". Then you need to catch it in php. Therefore you need to use a method and an action. In PHP you would have something like this: eval.in/private/cb217fd75b64f3
07:52
unchecked = unrecoverable
checked = likely recoverable new base class
@PHPNut Then I suggest you to go learn the language instead
anyway when the new assert() was implemented the "errors as exceptions" wasn't defined yet. but now it is and i believe assertexception should extend BaseException, not ErrorException and nor Exception
user4661379
@HamZa:Thanks again for your immense help. But my question is still unanswered. Is it really a necessary to use REST API in such kind of tasks?
@NikiC @JoeWatkins ^
@PHPNut dude. You're using an API of a third party to get info about the shipment. I don't see what you don't understand?
07:55
@Worf regardless of the name… don't.
user4661379
@HamZa: My question is should I follow the way you suggested (i.e. file_get_contents) or should I go for REST API implementation way? Because my Boss told me to use REST API I'm confirming it from you.
Does anyone know why I get an E_ERROR in stead of a SoapFault Exception in this case? stackoverflow.com/questions/29790911/…
@PHPNut I think you don't know what "rest api" means
user4661379
@HamZa: I know it's a standard of developing APIs which could be accessible irrespective of any platform and device.
@PHPNut so your boss wants to create an API on top of an API which probably also uses an API? My condolences...
07:59
@PHPNut that sounds like a copy paste
or, uh, a homework answer
@sanders It's the terrible SoapClient error system - as far as I can tell anything that results in SoapClient being unable to obtain or parse the WSDL always results in an error instead of an exception.
user4661379
@HamZa:In other words you are saying do it in a way you suggested. Am I right?
Alright, I think I'm done here...
@AllenJB that's not what the docs say. It says: A SoapFault exception will be thrown if the wsdl URI cannot be loaded.
Morning
08:01
@sanders I get both error and exception with it
@sanders then fix the docs
@PaulCrovella ?
@bwoebi i agree generalization now is gambling, what about this then
BaseException (abstract)
 +- EngineException
       +- TypeException
 +- AssertException
 +- Exception
        +ErrorException (deprecate me in future)
sorry for multiple ping
@Worf yeah, that's what we have today, just that Assert is subclass of Exception
18 mins ago, by bwoebi
@Worf One might consider to make it subclass of BaseException… but I'd refrain from adding yet another direct subclass here
@@PaulCrovella how do you get both an error and an exception?
08:04
yes, that would be better imho
Hello, i am trying to put in place a server side paging using jqgrid, my queries are variables, because i am trying to build a generic layer . My question is whats the best possible way to pass my query in the Ajax call ? should i pass it as a url param ? or does jqgrid supply and option for custom parameters ?
	$("#grid").jqGrid(
	{
		url:'grid_test1.php?req="'.$query.'"',
@Worf perhaps
having AssertionException caught by catch(Exception) blocks is definitely not what people would want. when a postcondition check fails i want it to get caught the same way i catch TypeException
no time, feel free ...
@Joseph That does not look like php to me
08:07
@Patrick close your eyes
with $ and stuff it should look like php
@Ja͢ck Happy Generalist!
3
come on guys, you know it will be part php part js :(
@MadaraUchiha wat, madara is back? :D
happy bd @Ja͢ck
He doesn't really have a birthday people
(Or rather, I'm 99.7% sure he doesn't)
@Worf IMO Everything should have been subclass of Exception and no new BaseException… but yea…
08:09
@sanders the exception object gets dumped to stdout, and the error to stderr ideone.com/dJLo8x
@MadaraUchiha haha thanks, that was like my first ever answer in that tag :)
@Worf And yeah
Madara is back to his full glory.
@MadaraUchiha i don't, therefore i don't age
@bwoebi yes, but BC :P
@Ja͢ck That's some solid logic right there.
08:11
yeah, it's airtight!
@Worf IMO BC is here less significant than a shitty hierarchy… :x
eheh
@iroegbu i did :), i just need a precision that Google cannot necessary answer as best as a human can :).
Good morning
anyone else has problems with docker official mongo image?
# docker pull dockerfile/mongodb
Pulling repository dockerfile/mongodb
FATA[0000] Error: image dockerfile/mongodb:latest not found
Tried tags, also failed
f*ng wi-fi
or else, could anyone else try that? To make sure it's my fault or not
in same time, this is working: docker build -t="dockerfile/mongodb" github.com/dockerfile/mongodb
08:23
@loginwall uses SEVERAL MD5 ENCRYPTIONS!!!1111eleven1 it's not very effective https://twitter.com/dchest/status/590553527627423746
@PaulCrovella is it possible to catch the exception from stdout?
@sanders huh?
@PaulCrovella you say the exception is thrown to STDOUT so how can I catch this exception. In my screen I only see the E_ERROR
@AlmaDo docker pull mongo
@PeeHaa function md10(s) { return md5(md5(s)) }
8
@dchest @SwiftOnSecurity function md10(s) { return md5(md5(s)) }
08:30
@sanders the exception object is getting var_dumped to stdout - printed, not thrown. You'll need to suppress the error with $client = @new SoapClient. See the related bug report at bugs.php.net/bug.php?id=47584 - if you have xdebug you'll also need to surround the SoapClient call with xdebug_disable() and xdebug_enable()
posted on April 22, 2015 by kbironneau

/* by Pistoledev */

@dchest @loginwall "using LoginWall come equipped with SSL certification" 1) sha1 signed 2) expired (2014) 3) morons http://bit.ly/1OdvqhY
@iroegbu ahahah
@PeeHaa "Overall Rating: T" I didn't know T was a rating
HI guys
08:42
@PaulCrovella I have seen it in the list before. Although mostly F. T is just... wow
How can I arrange this array in ascending values
Array
(
[174110] => Array
(
[0] => 10
[1] => 20
[2] => 400
[3] => 150
)

[176545] => Array
(
[0] => 30
[1] => 20
[2] => 900
[3] => 750
)
);
Google
and get the first element of each array key
please help
36 secs ago, by Fabor
Google
which array? I see 3
08:44
like this Array
(
[174110] => Array
(
[0] => 10
)

[176545] => Array
(
[0] => 20
)
);
79
Q: Reference: all basic ways to sort arrays and data in PHP

deceze Due to the enormous and ever repeating amount of "How do I sort my unique snowflake of an array?" questions, this is a reference collection of basic sorting methods in PHP. Please close any question which does not markedly differ as a duplicate of this one. How do I sort an array in PHP? How...

I just want first element of each key
but it seems like you want to use min()
naa I used that and not working
@John ok. Then make it work.
08:46
Better submit a bug report to PHP.net if it isn't working.
where's the bug?
No I mean min is not working for sorting above array
@Ja͢ck ^ here
haha
that's a bug.
ThW
ThW
08:48
@John build a small example what you're trying to to do and put it on a nopaste like eval.in, your question is to broad and confused.
oh, you were talking to a tiny avatar heh
lol
echo min(["🐛"]); <-- right here, min gives me a bug
@ThW No actually that is only sample data
echo min(["array"]); not work with multidimensional array
@John dude. you need to loop through the (multi dimensional) array -_-
08:54
$result = array();

foreach ($arr as $_arr) {
    $result[] = min($_arr);
}

var_dump($result);
but array keys are dynamic
$lol = array_map('min', $r); would probably do the job
can anyone help me with lampp? Mysql Database not working
@psychoCoder have you tried turning it off and on again?
yes I have ..
08:55
Have you tried rubbing the LAMPP?
6
Have you tried restarting your machine?
@Ja͢ck that just makes it MEAN
I've never seen mean lamps before.
I read that as lambs*
08:57
beh beh
you rub lambs? lol
hehehehe
ThW
ThW
@John That is the problem, "just some sample" data is not enough.
@ThW so what are you expecting
so this group is just for fun
ThW
ThW
08:59
@John build a small example what you're trying to to do and put it on a nopaste like eval.in.
@psychoCoder meh, post your problem/description and maybe someone might point out the solution.
can anyone help me with this post ?
1
Q: linux-xampp-mysql : Mysql database won't start

psychoCoderI have installed XAMPP-5.6.3-0 in my Ubuntu 14.04 64 bit machine. Now Mysql Database is not running. When I'm trying to open phpmyadmin the following error is shown : Welcome to phpMyAdmin Error MySQL said: Documentation 2002 - No such file or directory The server is not responding (or the ...

@ThW ohh dear..
@HamZa Yes ..In my ubuntu
09:05
@Ja͢ck @JoeriSebrechts MEAN as in mean.io
@HamZa this command sudo /etc/init.d/apache2 stop returns command not found
@psychoCoder sudo service apache2 stop works?
nope.. I'll try and reinstall xampp!
@iroegbu thanks man ..that exactly I was looking for
09:11
That's what we've been giving you :P
@SergeyTelshevsky interesting
(y)
@Hamza someone linked that yesterday, but that sounds like an insult to us :(
@SergeyTelshevsky meh. We're not language driven. We should be solution-driven. If MEAN solves the problem, then I would try to use it.
@HamZa that's my approach too, right tool for the job
09:16
@PaulCrovella i have indeed installed xdebug I surrounded it with xdebug_disable and xdebug_enable but still get the E_ERROR here is my code pastebin.com/C5EXFByc
@sanders There was someone on the bug report who could apparently only deal with it by setting a custom error handler, you might have a look at that. I don't know what else to suggest as I can't recreate the problem.
hello guys
@RonniSkansing You feel like doing some research these plugins?
i have sort of a problem using facebook SDK is it possible to post on the friends inbox? notificaiton? i can post on my friends walls or mine
@boyee Facebook has limited this functionality heavily because of spamwhores
09:28
but these features are now deprecated?
And/or removed entirely
as with many nice features, there's always room for abuse =(
aw sigh
thanks @Pee
thanks @Jack
very much appreciated
oh, I need to go @Pee
:p
09:44
Haa!
@PaulCrovella ok i implemented a custom error handler but still did does not work. I updated my post over here: stackoverflow.com/questions/29790911/… any further help or workarounds would be kindly appreciated
Morndom
10:01
@DaveRandom yo biatch
10:37
morning!
where do you put your code that isn't really part of your app?
src/?
10:55
@iroegbu Depends on what it is. /lib?
yes, but hmmmmm... where do I place in or beside src/?
What is it in specific?
External dependency?
nope, internal... Something like pagination etc...
Yeah I would put it in either lib or src
Both at the root of the project
okay
thanks

« first day (1649 days earlier)      last day (3524 days later) »