« first day (1690 days earlier)      last day (3264 days later) » 

12:02 AM
@samaYo To store completely arbitrary data, e.g. objects, you would typically store an identifier to that data in the DOM node.
 
Anonymous
12:20 AM
@Ja͢ck Yeah, I get that. FYI: I'm trying to make a lightbox in vanilla javascript, for learning purposes. And the data attr is where I am trying to store the path to large version of the images to click..
 
For simple strings you don't have to jump that hoop.
 
@samaYo I would have actually stored the path to the full image in the href
as in
<a href="path-to-image" class="lightbox"><img ... /></a>
 
Anonymous
@tereško damn!! that is a better one
 
yes, using data attributes is a much better way, but I tend to go with a pragmatic approach
 
Anonymous
anyway, I'll just finish this and we can talk about best practices later
 
12:24 AM
heh
one of my pet peeves with JS widgets is "what happens when I do a scroll click on it?"
 
Anonymous
I know what you meant, just too agitated thinking about overlaying the bigger image without distroying the div container for the smaller images ...
 
though, judging by the answers I tend to get for that question, it must be quite deeply in the "advanced subjects"
@samaYo what will happen when you have two images in the page ?
.. or 200
 
Anonymous
nothing
 
Anonymous
huu?
 
=)
 
Anonymous
12:29 AM
anyway, i'm off to hurt my brain more
 
12:44 AM
somebody help me please
1
Q: What's the mistake in a code written in PHP for push notification to be sent to iPhone?

user2839497I've installed php-pushwoosh using composer at following location on my local machine : /var/www/gomoob-php-pushwoosh Now I want to send push notifications to iPhone through the PHP code. So, I tried by myself and written PHP code in a file titled sample.php which is located at /var/www/gomo...

 
interface ValueAccessor {
    function getValue($name);
    function hasValue($name);
}

interface ValueMutator {
    function setValue($name, $value);
}
I'm going crazy with typename-length (side-note: I'm crazy); is there anything analogous to "mutator" (which I don't think sounds particularly right) that is the same number of characters as "accessor"?
assigner, same length, not good name though
 
 
2 hours later…
2:35 AM
@NikiC Wow, this bug: bugs.php.net/bug.php?id=69740
 
3:07 AM
hey could any 1 check out this question pls:
2
Q: Building REST APIs code Igniter

user1692342I am trying to develop REST APIs for my website. I am using CodeIgniter's PHP Framework. I have followed the tutorial mentioned on http://code.tutsplus.com/tutorials/working-with-restful-services-in-codeigniter-2--net-8814 to create the restful apis. The tutorial is based upon the code developed ...

 
3:18 AM
@DanLugg ValueModifier
 
@LeviMorrison @NikiC Reminds me of another "bug": If another exception is thrown and caught in a finally block when executing the finally block due to a thrown exception, the original exception is swallowed.
 
@Ja͢ck thanks! That should work :-)
 
yw
 
@LeviMorrison @NikiC I realize throwing and catching an exception in a finally block is poor practice, but this came up for me when a method I was calling would throw and catch an exception internally: github.com/sebastianbergmann/phpunit-mock-objects/issues/…
 
 
1 hour later…
4:35 AM
Hi all
Good Morning
Somebody please help me
1
Q: What's the mistake in a code written in PHP for push notification to be sent to iPhone?

user2839497I've installed php-pushwoosh using composer at following location on my local machine : /var/www/gomoob-php-pushwoosh Now I want to send push notifications to iPhone through the PHP code. So, I tried by myself and written PHP code in a file titled sample.php which is located at /var/www/gomo...

 
I'm trying to get [parent] object from an array, and it looks like this:
$postTagsParent = $tag->parent;

But PHP is interpreting "parent" as some sort of comand, while it actually is the object name I intend to get
 
@user2839497 $request = json_encode(['request' = $data]);
 
@Ja͢ck: Is there any issue in a code line $request = json_encode(['request' = $data]);?
 
Yes
 
@Ja͢ck:What is it?
 
4:40 AM
@LucasB PHP or your editor?
@user2839497 I've answered your question.
 
@Ja͢ck:First of all thanks for your help Jack. But I've put the display_errors setting inside of <?php tag.
 
@Jack, $tag->{'parent'} gave the same error, so it might be the editor actually, I'll see
 
Hello everybody
Can anyone suggest tutorial or example code how to implement secure private web api without using oauth?
 
Anonymous
@CreativeMind How about making a secret key?
 
@samaYo Yes I have that alternative in mind..But I would like to see any existing example code
 
5:12 AM
HI all
i want to sent post on facebook to my clients
using php
his facebook id i store in my database and after that when i want to sent any post at that time i am select user from my website and me type post and click on send button at that time to that user automatically publish my msg on his wall
how it's possible with php any body give me idea for that
 
forgot to say thanks @Jack lol
 
5:31 AM
np!
@PrashantBhatt just use the api
 
ok
@Ja͢ck can give me link for this tutorial
 
eh, it's called the documentation?
 
@Ja͢ck yes can u provide me any perfect url for it
 
5:52 AM
Hi everyone I'm having a real weird issue... I need to use https:// to pass some user data for 3rd party logins and when I enable https for certain pages, the page 302 redirects to https://..../login.php EVEN when I delete that login.php file from the directory
There is another domain on the same server which has that redirection set up on purpose
 
thanks bro
 
that should stay as it is but I need to disable that redirection for the one I am working on
any thoughts?
 
Anonymous
6:06 AM
@Ekin How does deleting the login.php page prevent anything from redirecting to it?
 
Anonymous
Just check your links or something.
 
I did, first I thought if I'd delete the file it would not go to that file. Then realized the other domain
 
instead of database/connect.php (relative path) can I provide absolute path? /core/database/connect.php ?
 
Morning
 
7:02 AM
@Ekin Is this on shared hosting? Possibly SNI is not set up correctly.
 
@Joeri yes it is, how can I check that? you thing I better talk to the provider?
 
yes, you should. They'll probably upsell you to a dedicated IP, but it doesn't hurt to ask
 
So tired
 
@ircmaxell Coffee is mans next best friend
 
@Joeri I see, thanks a lot for the info!
 
7:09 AM
@Epodax Depends on the time you drink it.
 
can any 1 der, help me with laravel 5 error?
 
@Ja͢ck I disagree, the only exception would be when you'd be going to bed.
 
@Epodax Drinking coffee when your cortisol level is peeking is not advisable, for instance.
 
@Ja͢ck Bah, there's no arguing with you is there? :P
but that hardly relates to the time of consuming coffee?
 
If you actually want to enjoy the effect of coffee, it does relate.
Of course, if the taste of coffee is what matters, you might as well drink decaf lol
 
7:18 AM
Uhu
Although while at work I drink coffee for the energy
otherwise I drink it for the taste
 
By the time you get to the office your cortisol levels should be lowered enough to actually have an effect.
 
morning
 
@Epodax sleep is even better
 
@ircmaxell Which is why I said "next best" ;)
 
what about dogs?
 
7:22 AM
Sleep > Coffee > Dogs ... I think.
 
1- dog
2- sleep
3- coffee
 
In many societies consuming dogs is frowned upon.
 
lol.
 
lol
 
Well, I really do love dogs, but since I'm allergic to anything with fur/pelt/feathers I'd say Sleep > Coffee > Turtle > Dog
 
7:26 AM
i can agree with that only if it's ninja turtles, otherwise it's a no for me
 
Do they need to be mutated aswell?
 
Getting your ass kicked is a good way to stay awake.
 
I volunteer to do the ass kicking of anyone wishing to stay awake!
 
meurning
 
Morning
 
7:32 AM
mm, mutated, ninja turtles... a good tuesday morning conversation ^^
 
It's a pleasant way to get the gears grinding.
 
This will probably keep you awake too ;-)
No fighting turtles, though
 
I have become too trusting, I clicked the link without hesitation...
 
You were lucky this time, no rick roll
 
And lucky it wasn't friday either.
 
7:44 AM
blah
 
blah
 
halb
 
hey guys can you please help me out with this problem I am facing: stackoverflow.com/questions/30585036/…
 
Load Avg: 104.84, 64.12, 33.64
 
blah
 
7:48 AM
That's somewhat in the unhealthy range.
But with 64 cores, no problem, surely.
 
Hmm, a websocket server that runs a bit like how php-fpm works ... is that crazy talk or ... ?
 
Somebody please help me
1
Q: Is it required to include any files from gomoob:php-pushwooshto to run a PHP program to send push notifications to iPhone?

user2839497I want to send push notifications to iPhone devices by writing PHP code for it. gomoob:php-pushwoosh is a PHP Library that easily work with the pushwoosh REST Web Services. This is the URL for gomoob:php-pushwoosh As per the instructions I've installed gomoob:php-pushwoosh on my local machine ...

 
@user2839497 Unless you have a registered autoloader, PHP won't know how to include the necessary library code
 
@Ja͢ck : Even after adding the statement require DIR.'/vendor/autoload.php'; it doesn't work.
 
7:55 AM
@user2839497 does the vendor/autoload.php exist?
It should get created by the composer command line tool
 
@Ja͢ck: yes it exists at location '/var/www/gomoob-php-pushwoosh/vendor/autoload.php' and has been created by composer command tool only.
 
@Ja͢ck this is on a macbook air
 
oh, oops :)
 
@Ja͢ck: what happened?
 
@user2839497 I've answered your question.
 
7:59 AM
@Ja͢ck: I tried following code :
<?php

ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);

use Gomoob\Pushwoosh;
// Create a Pushwoosh client
$pushwoosh = Pushwoosh::create()
->setApplication('XXXX-XXX')
->setAuth('xxxxxxxx');

// Create a request for the '/createMessage' Web Service
$request = CreateMessageRequest::create()
->addNotification(Notification::create()->setContent('Hello Jean !'));

// Call the REST Web Service
$response = $pushwoosh->createMessage($request);

// Check if its ok
but still it gives following error:
Fatal error: Class 'Gomoob\Pushwoosh' not found in /var/www/gomoob-php-pushwoosh/sample_1.php on line 9
 
You're not invoking the autoloader.
 
@Ja͢ck: Oh I'm sorry
Now I tried following code :
<?php

ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);

use Gomoob\Pushwoosh;
use Gomoob\Model\Request\CreateMessageRequest;
use Gomoob\Pushwoosh\Model\Notification;

require __DIR__.'/vendor/autoload.php';
// Create a Pushwoosh client
$pushwoosh = Pushwoosh::create()
    ->setApplication('XXXX-XXX')
    ->setAuth('xxxxxxxx');

// Create a request for the '/createMessage' Web Service
$request = CreateMessageRequest::create()
    ->addNotification(Notification::create()->setContent('Hello Jean !'));
Still I get following error :
Fatal error: Class 'Gomoob\Pushwoosh' not found in /var/www/gomoob-php-pushwoosh/sample_1.php on line 13
 
First off, don't paste the whole code in here please
Use pastebin (or similar service) and paste the link here
Otherwise in two pastes you would scroll somebody else's chat message out of screen
 
@Ja͢ck : Ok
 
Second, it seems that Composer is misconfigured
 
8:08 AM
@Ja͢ck : How should I check whether the composer is configured properly or not?
 
Hmm, how did you install the package?
 
@Ja͢ck: Created a blank directory called 'gomoob-php-pushwoosh' at location /var/www/gomoob-php-pushwoosh/
Then I created a file titled 'composer.json' inside it.
In the file I wrote following code as per the link gomoob.github.io/php-pushwoosh:
{
"require": {
"gomoob/php-pushwoosh": "~1.0"
}
}
 
Right, and then you ran composer install?
 
@Trowski Works for me since 5.6: 3v4l.org/8fGgh
 
Then I open the terminal go to the directory '/var/www/gomoob-php-pushwoosh/' by cd
 
8:13 AM
Oh and yeah, finally is broken in a lot of ways before 5.6
It couldn't be fixed due to ABI restrictions
 
:-/
 
then I run the command 'composer install' from terminal inside the directory '/var/www/gomoob-php-pushwoosh/'
@Ja͢ck : That's it.
@Ja͢ck : Now tell me what should I do?
 
Hmm, that all seems to be in order ... I'll let you know in a few minutes
 
@Ja͢ck : Thanks a lot Jack for the support and help you provided till now. I really appreciate you from bottom of my heart man.
@Ja͢ck : I'm going for lunch now, will be back within an hour. Meanwhile if you got any solution please post it here or post it as an answer. Soon I'll reply to it.
 
@user2839497 Found it, the client is under Gomoob\Pushwoosh\Client\Pushwoosh; updated answer.
 
8:33 AM
Morning
 
morning fabxor :)
 
Ah ffs.
@Ocramius You just ruined my day, the only way I can get over such retardation is to stop thinking about it
 
posted on June 02, 2015 by kbironneau

/* by afrinc */

 
lol
 
8:36 AM
(and it pees me off that people with such knowledge are so far behind in that area)
Although, tbf, Auryn has spoiled everything for me :P
Meh, I'm not getting involved, it's genuinely not worth it
 
Hi all
has anyone here tried golang ? :-)
 
is google paying you to ask this?
 
he he he :-) no manager grabbing my neck to write api in go
Most of web app is in php
 
8:52 AM
that does sounds manager'y, alright.
"Hey you, write this API in <enter-buzzword-here>! Pronto!"
Not saying that Golang is buzzword, btw :)
 
@Ja͢ck exactly :-)
 
You could tell him that doing so costs time (i.e. money)
Unless you already know it, of course.
 
@Ja͢ck its a fairly large project they can afford it
 
Then, it's a risk at least.
 
@Ja͢ck also we need queue consumers, can't use php for that. i am not saying it cant be done
 
8:54 AM
Getting comfortable with a new technology takes at least 2 projects, that's been my experience.
You're saying PHP can't consume a queue? Not sure what you mean by that.
 
@Ja͢ck yes i feel like a fish out of water
@Ja͢ck queue consumers are long running processes, so its better to use something else. But i have written consumers in php.
 
PHP can do long running stuff .. and if you hook them onto init you can make them come back after crashing =D
 
@ircmaxell it's incredible that in just few years died as much people as there are in a current days nation in europe
 
@Ja͢ck yes it can be done i am not saying no :-)
 
Well, it's worth mentioning your reservations, best if they're backed up by numbers.
 
8:59 AM
@Worf yes
 
@Ja͢ck it's mostly the bad publicity that gets in the way. I have to convince many people
 
what bad publicity? of php? heh
 
@Ja͢ck there are many people who ll point out many things like memory leaks and so on and so forth
 
bah! :P
 
@ircmaxell and russia's losses are incredible considering that russia despite its size is not as populated as one might think
 
9:02 AM
ya
 
yes
 
basically russia might have lost like 60% or more of its population in ww2 only
total madness
 
then again, according to TIOBE delphi is more popular than ruby
 
nope that was bs, was just guessing... but it's still an incredible amount. 9m out of 170m
 
9:08 AM
@Gordon yes, yes it is
 
@ircmaxell I thought so
 
uhhhhhhh
 
uhhhhhhhhhhhhh
 
@Ocramius undo;
 
9:19 AM
@Ocramius did you try iterating? I heard it helps
:P
 
duh
/me just noticed that
 
Morning
 
@nikita2206 lemme try
 
hmm, I wonder if applying some machine learning algorithms on the tiobe index would give accurate forecasting. that would tell me when to jump ship
 
this is freaking awesome btw
 
9:24 AM
@Gordon there is no "jump ship". There is expand or die. If all you're doing is PHP (past a certain point of seniority), there's already a problem
 
@ircmaxell the difference between jumping and expanding eludes me
 
Hellooo Room
 
@Gordon jump ship means "abandon and switch to try to survive". My point is that if you need to abandon to try to survive, you're not focusing enough on other tools
 
please any can guide me to get packages of user in woocommerce to make webservice...I am new to wordpress
 
@ircmaxell hmm, agreed. Though I meant it more in a "abandon language because its going down anyway" sense.
 
9:32 AM
I know
I just think there's a different implication of "move away" and "abandon"
abandon is a sense of emergency (because there aren't other good options). "move away" is less critical of a shift, and just a fact of life
 
Anonymous
@PeeHaa Morning
 
@ircmaxell fair enough
 
though I think we're just talking semantics
 
Eek! Objective C is going down ... good thing there are still enough SO questions on it :D
 
@Ja͢ck : HI Jack
Now I added following lines of code a the beginning :
 
9:45 AM
@ircmaxell semantics are important
 
@Ja͢ck :
use Gomoob\Pushwoosh\Client\Pushwoosh;
use Gomoob\Model\Request\CreateMessageRequest;
use Gomoob\Pushwoosh\Model\Notification;

require __DIR__.'/vendor/autoload.php';
 
@Ja͢ck as long as Ruby continuies to slide, yay
 
Though I got following error :

Fatal error: Class 'Gomoob\Model\Request\CreateMessageRequest' not found in /var/www/gomoob-php-pushwoosh/sample_1.php on line 18
 
@ircmaxell Out of curiosity, what's so bad about Ruby?
 
nothing
 
9:47 AM
I'm only asking because a prospective company is using it, really.
 
It's how some people write it that's the problem
and the fact that it encourages poor practices (like monkey-patching in libraries)
 
You can write ugly code in any language, no? Is it worse in Ruby you mean?
 
@ Jack : have you seen my reply?
 
I have to admit to be slightly puzzled when I saw that Ruby allows for opening a class and add stuff to it ...
@user2839497 Then find the proper namespace for that class, rinse, repeat.
Puzzled is the wrong word ... mildly terrified.
Hmm, did Tiobe mean JavaScript as a server-side language or client-side? Probably doesn't matter much for the other languages, but this is arguably an exception given node.js increasing prevalence.
 
@Ja͢ck it's pretty awesome. Except when libraries start doing it
 
9:52 AM
Do you mean "awesome" or awesome?
Oh, okay :)
 
@Ja͢ck : You can see from those lines the class has already been added. See the line use Gomoob\Model\Request\CreateMessageRequest;
@Ja͢ck : NOw what to do?
 
@Ja͢ck no, I do mean awesome
 
Yeah, didn't read the whole line heh
@user2839497 That's not actually adding anything .. it's more like an alias.
I.e. you can have a use statement that creates an alias to something that will never exist.
 
@Ja͢ck : I'm just clue less now. Please provide me the way to run this code.
 
@user2839497 You've read the API documentation, right?
Okay, that's a trick question .. go and read it!
@ircmaxell I was having an open interview with a possibly new company and they're using Ruby (on Rails) as their stack ... Between that and a DotNet stack, I would probably be more comfortable with the former ;-)
 
9:59 AM
did you mean the latter?
 
The latter being DotNet?
 
@Ja͢ck :Yes
 
@FlorianMargaine Why would I be more comfortable with a DotNet stack if my background has been in PHP and MySQL?
 
@Ja͢ck same kind of architectures... ruby is wilder
 
10:03 AM
Wilder how? You mean Ruby is a blonde?
 
@Ja͢ck obviously "she"'s a redhead
 
heh
 
@Worf haha, nice
 
@Worf lol
 
10:17 AM
Guys need a little help
 $user_id=mysqli_query($conn,"SELECT id FROM users WHERE name ='$name' AND password='$hashed_password'");
            if($user_id){
                $user_id_array=mysqli_fetch_assoc($user_id);
            $user_id_converted=$user_id_array['id'];
                $_SESSION['id']=$user_id_converted;
                }else{
                    die('Error '.mysqli_error($conn));
                }
IS there anything wrong with that code ^^
 
seriously?
"debug this code for me, without any hint as to the problem or what's wrong with it"?
 
@Akshay Is there something not wrong?
 
yes, there is a ton wrong with it
 
The id returns null
 
That's the least of your worries
 
10:21 AM
also, how do you derive "hashed_password"?
 
Sorry guys i am pretty new at this
@ircmaxell I will show my entire code just a minute
 
my eyes.. it hurts!
 
well
it's not that bad
 
@Akshay your code will never work
 
10:23 AM
@Akshay It probably means that $user_id_array is null, probably.
 
password_hash() will return a new hash every time, different, because it uses a random salt
instead of putting it into the query
select the hash from the db, and then verify it using password_verify()
 
@ircmaxell What should i do
 
21 secs ago, by ircmaxell
select the hash from the db, and then verify it using password_verify()
 
@Jay.s will it? ^^
 
@Jay.s ty :)
 
10:26 AM
@Naruto better than searching in the dark :-)
 
@Jay.s That is ffing horrible
 
guys, i need a tip. do you ever needed to differentiate between "set but null" and "not set" ? basically i have a method that should tell (by return) if the value is set (but can also be set to null) and not set at all (in an oop fashion). monads? any hint about the design?
 
Please don't point to stuff like that
 
@PeeHaa sorry guys i didn't read it first
 
1 message moved to bin
wow, that was epic horrible
@Akshay definitely don't follow that tutorial
 
10:33 AM
Okay
 
11:04 AM
posted on June 02, 2015 by kbironneau

/* by HadesCH */

 
for everyone using PHPStorm: remember that if you wish to have something fixed for version 9, you have only about a month before it gets released
 
11:32 AM
"I used to think that ##php was the blind leading the blind. I realize it's the blind leading the blind, drunk and beligerent" by @ircmaxell
 
@Worf You mean like the underlying deplyoment implementation with ftp / sftp that has had an open ticket for four years? :P
 
@ircmaxell Extra, extra, read all about it: insulting gross over-generalisations are flying around.
 
:-P
sorry, had a bad hour trying to help a few people
 
Good morning
@DaveRandom ping
 
@AlmaDo pong
 
11:46 AM
@DaveRandom is there any possibility in postgree to create memory tables (like in MySQL)? I found this but it's from '12, and I assume it's outdated
 
@AlmaDo Not that I know of. It's very good at memory buffering though, not sure if that would server your purposes or not. The RAM disk idea is not a bad one, though
 
@DaveRandom ok, so it's sad that there's no option :/
 
12:13 PM
@Jimbo :(
 
@Jimbo Let's be clear about something here, though... It's not like the feature doesn't work at all, it's just not as fast as you want it to be. The reason it's not fast is the same reason it's a low priority for them: because it's a sucky way to deploy. Fix your own gaping architectural wound, rather than waiting for someone else to apply a band-aid to it... :-P
 
@DaveRandom "It's just not as fast as you want it to be" is the understatement of the century!
 
Doesn't make what I said any less true ;-)
 
@Fabor thought it'd be nanochips today… more 10nm than 1 µm :-P
 
12:42 PM
blah
 
Anonymous
@tereško next suggestion, if you have any
 
@samaYo show us what you made =)
 
Anonymous
no
 
Anonymous
look somewhere else to laugh at.
 
Anonymous
@tereško It's too painful, though it works ok. I need another idea
 
12:55 PM
selectbox replacement
 
man, it's humid here and it seems like nobody uses climate control (AC)
 
Anonymous
@tereško too easy
 
@samaYo no, it's not
 
selectbox replacement is easy imho. if it's just a replacement. if it's a combo box then it starts to be tough
@samaYo actually, if you want to make the tooltips, i'm willing to help
 
Anonymous
1:05 PM
@Worf Ok, I'll try. And I built a lightbox last night, but the code is terrible, and there is some funny weird behviour with the html margining that I can't figure out :/
 
So this is where all the cool kids hang out!
 
Anonymous
It's really sad how you won't be able to get a job no matter how good you are at php, if you don't know how to use a framework. Namely: Symfony, CodeIgniter, WP, Magento or Drupal
 
Hi all
Somebody please help me...
 
Maybe you're working for the wrong people :)
 
0
Q: How to send the push notification only to iPhone device in following scenario?

user2839497I'm using gomoob:php-pushwoosh a PHP Library that easily work with the pushwoosh REST Web Services. I want to send push-notification only to iPhone device. Following is the sample program I've written to send a push notification. Can someone please correct my code in order to send the push noti...

 
1:15 PM
@samaYo You forgot Laravel insert bells and whistles
 
@user2839497 Isn't that like the 10th question I see like that in here?
 
Anonymous
@Machavity No I left that on purpose. If you know symfony, you can be forgiven for not using Laravel.
 
It's not too much of a leap to say that any recruiter / employer looking for framework specific developers will {that framework} all the things.
Regardless of suitability.
 
@ircmaxell there's no async adwords api library for PHP? Like, based on clue/php-soap-react for example?
 
not to my knowledge
 
1:20 PM
@PeeHaa : Might be, since my issue is still unresolved I'm trying my best to resolve it and even after it if doesn't get resolve then asking for some help.
 
hi guys
how can I redirect URL containing example.com OR http://example.com to either http://www.example.com using .htaccess file
 
@John Have you searched for an answer? That's a pretty common question
 
this is my sample example
RewriteRule ^download$ apps_download.php
Yes
 
56
Q: .htaccess - how to force "www." in a generic way?

StackOverflowNewbieThis will change domain.com to www.domain.com: # Force the "www." RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] How do I replace the "domain" part so that this works on any domain?

 
I've php-fpm already installed in my machine. But phpStorm is unable to identify it. It's located in /usr/sbin/php-fpm. phpstorm asks for php built as cgi
 
1:34 PM
@Danack That function simply returns the image width. I am not sure how to write this resize functionality with plain PHP (not sure whether it's even possible) and I want to stick to Imagick (kind of a requirement) and do not want to use GD. — NexWarner 11 hours ago
How does he remember to breathe all day?
 
Does anyone else religiously start a repo with the same commit message every time?
> Initial commit; oh boy, here we go!
 
no
you're the only one
 
@DanLugg next time i will start with "the first day he created a repo and saw it was good"
 
> Initial vomit
 
@DanLugg You should start it with something like "I finally fixed Brad's mess!"
 
1:45 PM
hi good morning
anybody help me
 
no
:)
 
@PeeHaa why?
 
No particular reason :P
 
Parayeda santosh
 
@Machavity lol, I think I will start doing that.
> Initial commit; oh boy, here we go! Brad, you're not fucking shit up this time!
 
1:48 PM
i am using curl in my localhost is working fine but include this file in ubuntu server this file is not working
 
@Ocramius whole-heartedly disagree with your reply about SL vs DIC
DIC is an implementation detail, you don't need to rely on details for interop. The only time you need library code to rely on container is if you use it as a SL. By definition.
 
@ircmaxell from which book does this definition come? I totally agree with you
 
How can I tell browser from Server side that image that is requested is different from previous one. Currently I'm setting random int as parameter for that image like captcha.php?i=565645. Which header do I need?
 
@VeeeneX I know that in general there should be some versioning involved if you want different pictures
 
@ziGi What do you mean? I didn't get you.
 
1:59 PM
@ziGi that's what a DIC is. A container for dependencies. It becomes a service locator once it itself becomes a dependency to another object
 

« first day (1690 days earlier)      last day (3264 days later) »