« first day (1621 days earlier)      last day (3327 days later) » 

12:16 AM
@LeviMorrison Meh. It doesn't take that much effort to do an RFC, and it allows a defined timeline for the conversation to take place. Obviously there is a line where it becomes too much, but that is a 'feature' that people may be 'using' - they need an opportunity to make an argument against removing it.
 
@Danack wait, wut?
@Danack btw, beers tomorrow?
 
@Ocramius yes, beers good. short version, that project is used by stuff. The guy is too busy to maintain it.
 
IC... Yeah, I am too busy to add more projects :(
 
It doesn't need much maintenance, but maybe some love.
 
I'm short on that as well
I can give trolling, hate, flaming
political incorrect jokes...
 
12:24 AM
Perhaps some air-miles?
 
I'm actually not collecting them :( airline is too small
 
@Danack Problem:
> It doesn't take that much effort to do an RFC
That's exactly what I'm talking about.
RFCs should be hard, hard work.
 
I'm not so sure. It's okay for people to just disagree over simple things, like deprecating an imo stupid bit of functionality. There's no big discussion to be had, people are already going to have a decision on whether it's stupid or not - all that needs to be done is to have the formal announcement of an RFC, and proceeding to a vote.
 
12:47 AM
It's not a lot of effort to write a RFC. It's a lot of effort to write a good RFC.
The thing is just… people don't want to write good RFCs for obvious features.
\cc @Danack @LeviMorrison
 
1:10 AM
@bwoebi If it's such an obvious thing, why would it need an good RFC to persuade people?
 
That's the point.
 
1:34 AM
good mornigns
 
I need a bigger screen… something where 300 terminal lines fit on…
120 lines are definitely not enough… I need to scroll too much in code…
 
you can turn your monitor, if it's not a laptop
 
.... It's my laptop.
Also… if it were my iMac… have fun turning it :-D
 
1:51 AM
@bwoebi what about the thunderbolt displays?
 
youtube.com/watch?v=Jw4DbYbfOMQ see what Anthony has here
 
@Ja͢ck yeah… but try turning an iMac…
@iroegbu resolution still too low on what Anthony has… I'm not interested in screens being less wide than my resolution height…
 
...300 terminal lines... you said :P
 
2:07 AM
hello, is there a way to also count the acutal number of the result, that has been fetched by the query? I mean like comment 1, comment 2 and so on?
$entries= $dbz->prepare("SELECT * FROM comment WHERE entry = :id ORDER BY creationTime DESC");
 
$entries= $dbz->prepare("SELECT COUNT(*) count FROM comment WHERE entry = :id ORDER BY creationTime DESC");
echo $entries[0]['count'];
there :)
 
i also need all the results ;)
the text they contain
 
get all the results - do count($entries);
 
but i need the actual number of the comment
i don't want to count them all
 
$count = 0;
foreach ($entries as $entry) {
    $count++;
}
 
2:15 AM
@bwoebi I did, before I placed it on my desk :)
 
@iroegbu yeah… that'd be a resolution of about 4000px high. (Assuming 13 px per line)
@Ja͢ck And that then doesn't fall in any direction… iMac doesn't have a standing then? [vertically]
 
he didn't add "[in the box]"
 
@Danack, a simple, sizeof($entries), would be quicker.
 
@bwoebi With the right mount, I don't see a reason why not.
 
@Ja͢ck Yeah, then you need something stable to mount it on… which I'm lacking here^^
 
2:19 AM
@Twitchy i) count ~= sizeof ii) I think he wants an increasing number for each comment.
 
@bwoebi You mean you don't have a desk?
 
@Dan
 
@Ja͢ck I have no wall behind it
 
@Danack ii) makes sense
 
@bwoebi there are stands that can balance on a desk alone
 
2:21 AM
@Ja͢ck balance … yeah… and stable too?
 
Yep
Something like this for example
 
i thought about getting it directly with the query but i have no clue how, but anyway thanks. I also though about counting them in a loop.
 
Not sure whether that particular model supports 27" ... but I'm pretty sure there are.
 
...
 
2:39 AM
Hey, very basic Laravel question here. If I have an APP_KEY set in .env, do I need to worry that in config/app.php, my APP_KEY is set to SomeRandomString ? Which one takes precedence? This is a fresh install
 
as it is still a fresh install, you can do well to uninstall it
 
What do you mean? Should I not use it?
 
What's the advantage of doing a sorta homebrew framework?
 
@Martin the point isn't about writing your own framework
 
2:55 AM
Hmm
Okay well what if I'm what I'm building is a one-off site that will be replaced in like six months or less?
I just want to get it off the ground in a few days and redo it properly later on in the year
Will it save me time right now?
 
why not just do it right the first time, so you don't have to redo it later?
 
Client's needs, mostly. He wants it up in one week so he can start running ads. It's just to have something up while we can work on what he wants to stick with. I'm all for doing it the right way, but if I don't get this ready soon enough I won't be able to build it at all :(
 
 
3 hours later…
5:33 AM
any one there
 
6:07 AM
yes
 
6:45 AM
hi, i have 100 records in my table, i want to display only 1,5,9,13,17,21... what is the php code,it's urgent please help me
hello any one is here....
 
Loop the query and update the limit with +4..
 
ok......fine...thank u
<?php include("config.php");
//MySQL Query to read data
$query = mysql_query("select * from doctors where status='show'", $connection);
while($row = mysql_fetch_array($query)) {
?>



<?php
if(($row['id_doctor']==3) && ($row['id_doctor']+1)) { ?>
<div class="column dt-sc-one-fourth first">

<div class="dt-sc-ico-content type8">
<div class="icon-wrap">
<div class="icon"> <?php echo' <img src="../imageclinic_admin/images/doctors/'.$row["photo"].'"/>'; ?>
<div class="icon-overlay"> <a href="viewmore.php?id=<?php echo $row['id_doctor'];?>"><span class="fa fa-link"></span></a> </div>
i'm unable to loop ,can u please help me
 
7:13 AM
@Arun error ?
@Arun apart from you are using deprecated mysql_* api for php >=5.4 what error and warning are you getting ?
 
7:31 AM
Your query is missing the Limit and offset..
 
posted on March 25, 2015 by kbironneau

/* by JoLabrycol */

2
 
loop the entire query in the for loop, make the limit and offset dynamic ok. Hopefully it works
 
moin
 
moin guys \o/
 
7:51 AM
mogguh roomies
 
8:20 AM
ola
 
good morning!
 
morning
 
8:58 AM
@ircmaxell maybe of interest: meetup.com/Microservices-NYC/events/221259575
 
9:24 AM
Working with repositories and entities, after getting an entity, what's the best way of getting it's related entities? Querying the corresponding repository?
Like if I query $userRepo->get(1);, I get $userEntity, now I want to get all Post's by this user, should the $userEntity have something like $userEntity->getPosts() or is the $postsRepo->getAllByUser($userEntity); approach better?
 
posted on March 25, 2015 by kbironneau

/* by ultrahax */

 
@SergeyTelshevsky I'd go with the latter. You don't need your UserEntity method list to grow whenever you add another related entity type.
 
@PaulCrovella yeah, and with DI, I can't think of a way to easily pass repositories to entities
 
hi guys
 
@SergeyTelshevsky there's no better approach I'd say... It's inherently easier to work with entities when they hold their relationships. On the other hand it adds a lot of overhead. You choose
 
9:38 AM
I have a situation .In constructor I have created define('BASE_PATH', $_SERVER["DOCUMENT_ROOT"] . "/projectfolder/");
 
@nikita2206 that's exactly the question, otherwise everywhere I have to deal with getting a bunch of repos together in order to work with some deep relationship
 
@SergeyTelshevsky I would go with the first if the two are closely related, but then populate everything with the one repo. I think this is called a composite root (?). For the rest use #2
 
every time I have to change projectname
when I move it from local to server
 
@Patrick for example, siblings
 
I have created their b'coz there are 4-5 ajax call which are direct to this class file
 
9:39 AM
@John that does not belong into a constructor
 
@SergeyTelshevsky yeah, and the first one is already implemented in Doctrine2 and Propel2 (did they already merge the Datamapper PR?)
 
so needed to add that line there
 
@Patrick that #1 really looks easy to work with, but harder to implement and manage
but what I don't like about #1 is basically it is encapsulating #2
 
@SergeyTelshevsky well it's easy with doctrine, but it can be a hassle if you start going through 5 getters to get something... #1 is useful for things like you have an address that has a title. The two kinda belong together so I would fetch them together
 
and nothing more
 
9:41 AM
So @Patrick how can I handle this
 
@Patrick yeah, I worked with doctrine, almost every orm has this feature
 
@John why do you need a base path constant? Are you recreating codeigniter?
 
How's everyone on this lovely sunny day :-)
 
no i am not working on CI its just simple MVC kinda structure
 
9:43 AM
@Patrick still easier than any other approach
 
oh no, someone said MVC, the kraaken might awaken
 
Death, much death, awaits you with MVC
 
@John then why do you need that constant?
 
MVC drools
..
 
Abandon all hope, ye who enter MVC
 
9:46 AM
How about MV* .........
lol
So, who knows anything about servers? I am having a moment.
 
I need my Apache user to have access to a command I installed in usr/src
 
SY.
Hi, I'm completely new to laravel, homestead and vagrant. I have sucesfully installed and ran the homestead, but then I made a few changes to the Homestead.yaml file, including renaming the default database and removing the default site, then I ran homestead provision. I can see the site is still present in homestead's nginx installation and the database with the default name was not removed; the new items were created though. Is there a way to clean up those previously created things?
 
@Patrick just to include files require_once() statement , to check image using file_exists() fn and there is ajax call which needs path upto my folder where I put my code..
 
9:48 AM
@John are you not using autoloading?
 
@SY. Black magic may help
 
@John did you see this? Might be useful for you
 
SY.
@JustSteveKing that doesn't happen to be invoked with homestead black-magic, does it?
 
@SY. haha tbh I am not too sure as I do not use Laravel or Nginx
I am more of an Apache and whatever I can write sorta guy
 
@Patrick Yes that is customized MVC .So I created another...
 
9:51 AM
lol
 
autoload might work but how abt file_exists()
 
@John what... no. there is no mvc in there
the mvc is a lie
 
@Patrick But I have created MVC and I have to manage within that itself :(
ohh
and why is that?
 
any one for PayPal PHP SDK .....
 
9:53 AM
> But I have created MVC...
durrrr I made a mvc
 
SY.
@JustSteveKing I'm guessing it's more of a vagrant question. Solving the problem might be as easy as destroying the homestead and reinitializing it, but that'd probably mess other things up, like a bashrc I threw in there
 
:P
 
xD
 
@райтфолд
 
@PeeHaa thanks for grammar ;)
haha
 
9:54 AM
:22288278
 
@Patrick ohh its big ... Hope I have time
but now how can I manage ROOT_URL
 
@John It's not the grammar that is the issue. It's the statement in itself
;)
 
ohho
;)
no worries
 
@Ranjith What is it you are trying to do
 
if anybody please...
 
9:58 AM
@JustSteveKing I am trying PayPal subscription first created token and plan id but i am trying agreement for plan its getting on error
 
@Ranjith How are you connecting? OAuth?
 
PayPal, ouch... good luck with that
 
TRUE paypal really sucks :D
 
I've heard the devil's only fear is not god, but having to implement paypal
5
 
@JustSteveKing Oauth.. Rest API
 
10:02 AM
@Ranjith How are you connecting? Are you using Composer to install packages?
 
No.I am working for localhost wordpress CMS
@JustSteveKing
 
Wordpress?? Why not use a plugin then
 
@JustSteveKing I am trying new project for Woocommerce PayPal Subscription Payment Plugin>>>
 
@Ranjith I am not a wordpress developer so I am not sure what you can do tbh
I know how to do this stuff in normal PHP using composer, but wordpress is ......... something else
 
@JustSteveKing its ok thanks for connecting.......
 
10:08 AM
@Ranjith This is the composer package I use : github.com/Lusitanian/PHPoAuthLib it may help you? it has an OAuth2 connection to Paypal
 
^ that looks familiar :P
 
@PeeHaa Is it your library?
 
@JustSteveKing first of thanks ..its not a basic info for subscription plan ...
 
@Ranjith Sorry I could not help more
 
@JustSteveKing Yeah together with @lusitanian
 
10:12 AM
and his mother (:
 
:P
 
Good morning
 
@PeeHaa Ahh Well I thank you for building it! I have used it a few times already!
 
mogguh @AlmaDo
 
Good job :)
 
10:13 AM
@JustSteveKing Glad to hear it is useful :)
 
@JustSteveKing ok such as more information itself me more gather .....
@AlmaDo Good evening......
 
@PeeHaa It was indeed thank you! Helped interface with the SDK's very nicely
@PeeHaa Why not talk to :22288769
Arghhh
@Ranjith talk to PeeHaa he seems to know OAuth enough to maybe point you to the right place
 
is it about Lusitanian's mom again?
 
After that ^ it is just a matter of making requests to the correct endpoints
@FlorianMargaine Dayum she is hot
 
10:18 AM
@PeeHaa I agree, you don't want your hand holding - you just need a push down the right path
 
@tereško
 
@tereško
 
@tereško
@FlorianMargaine Gosh, I haven't heard from about her in ages
 
Can't fill in any phone number @GoDaddy ... Rrgh ... not at GoDaddy in the UK, not at GoDaddy in Belgium, ... The form doesn't accept any number, yet the phone number is required ...
 
Teresko train.
 
10:32 AM
@VincentVerheyen 040 4918 7600
 
Does anybody have any good links on service layers, what they are, how to implement them (patterns etc) to provide better SoC?
 
^ added to 7 spam-bases
 
:22289213
 
@Jimbo not anything I have ootb
 
10:48 AM
At certain point i´m feeding a table like this: echo "{\"data\":" .json_encode($result). "}"; through my .php file...but i also want to send my $_SESSION var...and if echo the SESSION and also the "data", the table doesn´t read...do i have to json_enconde the SESSION var to?
 
You could just do: $data = array('data' => $result); json_encode($data); ...
Instead of all those silly \"
 
Sorry to bother again. I have just registered a .com @GoDaddy. Could anyone tell me a cheap webhost for a Drupal site, to use with this .com @GoDaddy? I tried one.com, but they told me I have to "transfer the domain name" for 36 EUR excl VAT ... I didn't expect this cost.
 
11:05 AM
@Japa Why not echo json_encode(array("data" => $result));
 
never tried it...but that still doesn´t resolve the problem with the session....that is only to feed the table with data...but i also need to send my session var
@JustSteveKing but i´m gonna try your suggestion thanks
@Jimbo also trying your suggestion thanks
 
@Japa All I did was simplify @Jimbo 's soluton
 
ok..but it´s not working
 
Why create an array to then echo it out with josn_encode() when you can echo out a json_encoded array straight away
What is coming back with $result
 
in my .js file at certain point i have this(which feeds the table): schema:
{
data: "data",
 
11:08 AM
Are we talking JS or PHP here ....
 
and in my .php file i have that line of code: echo "{\"data\":" .json_encode($result). "}";....with this it works
iºm just saing this because i tried your solution but it doesn´t return anything
 
if you switch echo "{\"data\":" .json_encode($result). "}"; with echo json_encode(array("data" => $result)); it will technically produce the same output
all you are doing in your version is manually creating a JSON object to return
whereas I am simply using the built in PHP functions to turn a simple array into a JSON object
 
with your solution, my console/preview doesn´t show anything...but when i use that line of code it shows this: {"data":[{"idClient":"4","title": etc etc ...
 
Do you want to add something to pastebin for us to look at?
Might make debugging a little easier.
 
ok
1m
 
11:16 AM
So, I just created a local repo with SmartGit. How do I add the remote one so I can push to it?
 
could you take a look pls
 
@Japa What is your $statement->fetchAll(PDO::FETCH_ASSOC); returning? Remember this will return an array so your result could infact start at $result[0]
I typically use PDO::FETCH_OBJ
 
but could that be my problem?
 
I'm pretty sure this is wrong:
total: function(response)
{
  return $(response.data).length;
},
 
You need to print out $result without using AJAX so you can see what is being returned
I agree with @FlorianMargaine the JS also looks slightly wrong, however we need to make 100% sure the php is returning what is expected first
Are you expecting alot of results? If not use fetch() instead of fetchAll() something I have noticed alot of developer do is stick to the one method of fetching
 
11:24 AM
@FlorianMargaine but that´s the way kendo ui fetches data
 
AH you are using Kendo UI??
 
it´s a table with clients, so it could be a lot of rows
yes
why?
 
They use their own JS library do they not?
 
yes
 
Then I cannot comment on the JS side of things as I am not sure what they do with theirs 100%
if the PHP is working fine it is definately JS - but I cannot so much to help
 
11:27 AM
this works: echo json_encode(array("data" => $result));
lol...putting the echo before
 
Yes if you do not put echo it will not return it
remember it is being called by AJAX so you need to echo not return
 
how stupid of me!!!! sometimes this litle litle things pass by...
i already had the echo with the other line of code and forgot this one...but meanwhile this doesn´t resolt my problem with the session var....the clients table has a create btn...when you press it, it shows a pop up where you fill all the client info, and it has one field called: Created by....this imput is readonly, but it has to fetch the user that previously log in ....
that´s why i need to send the session var also .. not just :echo json_encode(array("data" => $result));
 
@Fabor Yeh sounds about right. There are schemes in place for them to do it but they are just way to complex and inefficient, in a way I sympathise with the PoV because I am aware of just how much work there is involved to get it done. Suggest you move house :-P
moin
 
heh. It feels a little sad to move house for better speeds. We really like our place. If it wasn't for BB i'd consider buying it.
Also, moin
 
@Japa How about echo json_encode("data" => $result, "user" => $_SESSION["variable"]); but make sure in your PHP file you session_start()
 
11:36 AM
@Fabor You could scope out whether Virgin have any roll-out plans for your address. It's a long shot but they are in the middle of a big network upgrade, so you might get lucky
 
Does the fact I am surrounded by BT make any difference to whether they'll bother? Seems like a super long-shot.
 
@Ranjith fuck you
@AlmaDo fuck you
@Jimbo fuck you too
 
<3
 
@tereško fuck me too?
 
cannot, I am tired now
 
11:38 AM
@tereško topkek
 
@tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško @tereško
 
in JavaScript, yesterday, by SomeKittens
> SQL dev walks into a bar and can join any table they want.
CSS dev walks into a bar and complains that there are tables.
 
@PeeHaa what you need to worry about is pissing off the SQL dev and him dropping your table
 
Also, I thought standing tables were all the rage now seeing as how we're all going to die about 15 years sooner than we should
 
@Jimbo I can't die I am superman. Unless you have a shiny green rock
 
11:44 AM
@JustSteveKing I almost mis-read the last part of your sentence then
 
@JustSteveKing I'd be more concerned about them being one of those people who INSERT things into tables, that's not likely to work out well no matter what the specifics are
 
Haha
 
@Jimbo hahahaha! I guess that could kill me too
 
@DaveRandom You're still ALIVEE
 
@DaveRandom oh god!!
 
11:45 AM
@Jimbo E_SUBJECTIVE
 
No PHPNW, barely in here... all since the new job
:-(
 
Can someone help me out in genesis theme ?
 
@novice how is this related to php?
 
Speaking of which @Jimbo @DaveRandom imho it's time I get to the other side of the lake and grab a beer with you people
 
Fuck you @PeeHaa
 
11:47 AM
@Danack @JoeWatkins
 
@Patrick Genesis is a framework of wordpress, and the hard code is in PHP
 
@salathe Wut? I can extend it to scotlend
 
@PeeHaa When? I'm at PHPucEU in Majorca in May, PHPSouthCoast whenever that is (moral support for @Danack)
There's always the yearly pissup at phpnw
 
Let me see. Although trust me I don't need a conf for beer :P
 
I do need a beer for conf, however
 
11:48 AM
That is a lie
 
@Jimbo 42 real currency is pretty much doable btw
What is the untraining?
 
Really cheap, hotels are cheap too
Not sure about ut I'm going for the conf
 
Certainly something to think about that one
 
Has anybody ever tried decoding a QR code with PHP?
 
11:51 AM
@JustSteveKing yes
 
@PeeHaa How would you suggest
 
Using a 3rd party lib
 
21
Q: How can you read QR Codes in PHP?

NavarrIs there a plain PHP implementation for decoding QR codes? I have a faux-smartphone. One of those phones that parades as a smartphone but that I can't download any apps for, and I want to create an email service to where I can take a picture of a QR code, MMS it to this email, and the email ret...

 
@PeeHaa Could you suggest a lib?
 
No specific preference. In @Gordon's linked posts there are a few and I am sure there are a couple on github
 
11:53 AM
@JustSteveKing it works like this: echo json_encode(array("data" => $result, "user" => $_SESSION["user"]));
 
@Japa Glad to hear it!
 
it returns something like this: data: 0: "which is a row for one client with all his fields" 1: "another client with all his fields" and then user: "admin"
but how can i acess in my .js that "user"? : i have tried this but it´s not workig: var defaultValue = response.data[user];
 
@Japa So it is returning an array - which is good :)
 
yes thank you so much for helping me
 
var userValue = response.user;
remember response.data is the data field in the response which would make user reponse.user
The user property of the response object basically ;)
 
11:58 AM
gonna try...thank you
 
You are welcome
 
beautifull!!!!!! it´s working
 
Good man :)
 
thank you for you patience and good explanation
:)
 
You are welcome, glad I could help!
 
12:23 PM
@JustSteveKing While that library can decode the QR code, you'll still have to get it into PHP. I had to write an app a while back and used QR codes with the app (zxing, the stock Android reader) and used that to translate into JS (Cordova) which then sent AJAX to PHP
 
@Machavity It sounds tricky
However I have seen a few good command line toold for Linux
 
@JustSteveKing It's not crazy hard (Cordova has probably improved since I did this) but it let us track progress on activities without having to hand enter data
 
@Machavity Eventually this will be an Android/iPhone/Windows PHone app but for now just a web project so I guess JSON response is best here!
 
@JustSteveKing I should clarify the QR code in question I generated with JSON inside (Cordova is a pure JS app system). But it worked well. The reader parsed the QR, returned the JSON and I parsed that into the app
 
Ahh ok. Well I guess I could build my own mini API to generate and decode from a command line utility tool
 
12:31 PM
in JavaScript, 15 mins ago, by dystroy
Another pissed user : http://www.reddit.com/r/stackoverflow/comments/3084a4/unfairly_and_unreasonably_‌​banned/
 
@PeeHaa That's... what she said?
 
Hello. How do we retain the input fields in a form after submission in PHP?
 
@myooomyoo If you use AJAX to submit there's no refresh to clear the data
 
@Machavity I have tried a lot of code from the answers here in stackoverflow. At this moment nothing is helping my problem yet.
 
@myooomyoo weird. your copy paste must be broken
what have you done so far. show some code (in a pastebin pls)
 
12:42 PM
@Patrick it's really weird.
 
@myooomyoo Oh. Well, you've come to the wrong place then. Nobody in Room 11 does weird stuff
 
well I have a PHP file.. It's a calculator.. One button with two functions already, calculation and mail function..
And now I just want the form to retain the input fields when form is submitted as well as it calculates and sends email behind the scenes
 
@Machavity obviously your are very beginner here. Everyone here is doing weird stuff. Like, for example, contributing to PHP
 
@AlmaDo </sarcasm> :P
 
@myooomyoo use ajax
 
12:47 PM
I mean, Room 11 could be called "As the RFC Turns" or "Days of our RFCs". I bet Room 17 is going "Why don't WE have RFCs to talk about?"
 
@Patrick .preventDefault?
 
@myooomyoo yes you will need that
 
@myooomyoo That would stop your form from submitting (assuming this was triggered by the submit event)
 
Hello people!
 
Sorry for my weirdness.. Plus I don't have any experience yet with ajax. Sad.
 
12:52 PM
@myooomyoo Then it's a good time to learn
 
@myooomyoo malsup.com/jquery/form Check that out. Seems to do all your heavy lifting for you
 
@Machavity that's why it wasn't sending a mail.. Gah.
 
thanks for the links @Patrick & @Machavity .. *what am I doing with my life
 
@myooomyoo yeah learning new things is a horrible way to spend your time. better drink and watch tv instead
 
12:59 PM
@Patrick i can do this.. *cries
 
I don't get why more people don't try to use Google to figure this stuff out
user image
2
 

« first day (1621 days earlier)      last day (3327 days later) »