« first day (1280 days earlier)      last day (3673 days later) » 

12:02 AM
Got a weird thing to show you, so tell all the boys and girls
Did anyone watch 'The Grand Budapest Hotel' yet?
 
user895378
@Fabien I enjoyed it.
 
@Fabien Thanks.
 
Did you get a monty python vibe? :)
@TOOTSKI You're welcome.
Ralph Fiennes (M. Gustave) does an awesome job.
 
yesterday, by TOOTSKI
@ircmaxell For a moment I thought that Ralph Fiennes is working for Maps team.
 
lol
 
12:09 AM
 
totally looks like him
 
Totally.
Hands and everything.
Voldemort.
 
I should watch more Wes Anderson films
 
> Thank you for your application to Automattic. We don’t think there’s a great fit at this very moment, but I encourage you to keep an eye on the “Work With Us” page on Automattic.com, and also keep us updated and consider re-applying as your skills and contributions to open source projects grow and expand, or as new positions are listed that might be a better fit.

Thank you for your interest,
Just got rejected by Automattic for job application that was 6 months ago.
Swift as Wordpress.
 
Reply saying. "Damn, I turned down 17 job offers waiting for this one to come through over the last 6 months"
but do it in 4 years time.
 
12:15 AM
How could they do that to me!
Hahaha, that would be great.
E_EMPTY_WALLET
Is there an editor with a nice side by side diff? (without opening external tool)
 
PhpStorm?
 
You can't open files that are not in project with PhpStorm, right?
  $this->_settings = array_merge( $this->_settings,
                                  $this->_getINI( $file ) );
I have things like this, so I'm not sure if this was done by tool or hand.
It's a weird coding style, anyone knows the name?
Clusterfuck?
 
Joe, go to bed!
Are you working tomorrow? @JoeWatkins
 
yes
 
12:25 AM
Serbs like to get drunk on holidays, for 10 days.
Oh, shoo.
 
cat was ran over, had to bury it, can't sleep yet ...
 
O_o
 
yep, gross
 
Poor cat. At least it got burried and not ended in dumpster.
 
Sorry to hear it.
Was quite old wasn't it?
 
12:30 AM
was kitten
 
oh
:(
 
my old cat disappeared, probably went the same way :(
 
You have any more currently?
 
A kitten has died? Oh no! Despair, all Internet!
 
down to one cat
 
12:32 AM
Ours is indoor so we don't have any worries about such things. But growing up we had outdoor ones all my life. Been fortunate to not have it happen.
Could always get one of these :)
 
no animals that I can't kill in one punch ... my rule ...
 
lol
Anyhoo bed time
 
1:06 AM
Somebody there can give me a little help?
 
1:22 AM
I should probably go to bed too instead of commenting of @Jack PR…
 
1:46 AM
Probably.
 
Can someone help me out? Trying to get this little thing to work, it keeps coming out of the initial DIV tag as so: i60.tinypic.com/2u56st5.png. The original code is <div style=\"background-color: #93FFE8; border-left: 1px solid #333; border-right: 1px solid #333; height: 3px; margin: 0px; padding: 0px;\"><div style=\"width: 30%; background-image: url(images/misc/level_exp_bar.png); height: 4px;\"</div></div>
How can I put the background image inside the div?
Gonna try background position
 
/me sleeps
 
 
4 hours later…
6:04 AM
Good Friday morning
 
6:19 AM
moin
 
morning
 
6:40 AM
hi all...............Can we include php and jquery code inside joomla article?
 
Good morning!
@nithi :
http://stackoverflow.com/questions/18250537/joomla-custom-php-jquery-module
http://stackoverflow.com/questions/12107997/jquery-inside-an-article
 
@ Duikboot : Good morning! Will look into the links....Thank you...
 
Hi
I have a simple array like Array([0]=>["one", "two"], [1]=>["three", "one"]) and I need to get the keys in the outer array where I find "one". What is an efficient way of doing it?
 
6:56 AM
installing kohana 3.2 on php 5.2.17, getting this error "The configured system directory does not exist or does not contain required files."
on install page "System Directory" fields giving above error.
when i changed the path of sys dir to capicatal it working SYSPATH/Kohana instead of SYSPATH/kohana
 
7:12 AM
Happy kfVsfOSbJY0‎day everyone!
7
@Lukas Define "outer"
 
@SecondRikudo: Darn you :-P
I see what you did there :)
 
Someone here with some extra time?
 
Sadly not today :(
@SecondRikudo: I actually tried to base64 decode that first, heh.
 
7:31 AM
@Duikboot extra time to do what ?
 
@SecondRikudo the Array containing the ["one", "two"] and ["three", "one"]
I have this at the moment pastebin.com/96x2sk2i
 
7:47 AM
You have: Array([0]=>["one", "two"], [1]=>["three", "one"])
And you want? ( Can you give an example )
 
7:57 AM
@Lukas Have a look at array_keys
 
8:11 AM
So much 'unknown' people here today.
 
Anybody ever worked with cors requests with credentials in IE?
The JS boys and gals are still sleeping :(
 
@Duikboot I need [0, 1] - an array of indices where "one" was found
I'm trying to avoid nested loops when searching the "array of arrays"
 
You want something like: paste.jesse-obrien.ca/Ax ?
 
@Duikboot but the values can repeat so can't really be used as keys
 
8:18 AM
Based on the first array: (Your default one) Can you modify it to the one you would like to achieve?
 
@Duikboot one sec
 
the interwebz is mourning the loss of my kitteh, which was hit by a car yesterday evening near my house and we had to dig it a grave ... a moment of silence for kitteh (named buzz) ;(
Oct 24 '13 at 12:15, by Joe Watkins
user image
so young ...
 
oh :(
 
8:25 AM
=[ .. that really sucks
 
@Duikboot Please have a look at this
 
it so does ...
 
It's a simple concept but I don't see how to optimise it :/
 
Hmm
But is working currently?
 
@Duikboot yeah, it works fine, but too many loops
maybe there's a way to modify the arrays to make the search much quicker...
 
8:35 AM
=[
 
Morning
 
@Lukas can you change your array ?
 
@PressingOnAlways in which way? - it's dynamically loaded from a database
 
@Lukas, this may be crazy, but you can make your $allMeaningPhrases = array ( array ( 'lion' => 1, 'cat' => 1), array( 'tiger' => 1, 'apple' => 1), array( 'lion' => 1));
 
@JoeWatkins Sorry to hear that
 
8:41 AM
then instead of looping through the whole thing, search by key/hash... search if (isset($arr[$searchItem]))
 
@tereško You love working with JS and IE right? :)
 
@PeeHaa I have do it ... so what's the question ?
 
@tereško I am trying to do cors requests in IE with credentials. But it looks like my cookies don't get transfered :| I found this which looks like it is telling me the only real way of doing this is handling cookies manually by sending token back and forth
Is my assumption correct I have to do manual "session" management? :(
 
that's probably the case, yes
 
@PressingOnAlways yeah, the best would be to have 'lion' => array(0, 1, 4) so I could get the indices right awa
 
8:44 AM
@Lukashttp://paste.jesse-obrien.ca/AC
 
@tereško ow wow. This is going to be horrible :| Damnit
Tnx for confirmation
 
@PressingOnAlways thanks, I'll check it out quick
 
@PressingOnAlways it works but unfortunately it's not any faster than the previous version and still needs the same amount of loops :(
 
@PeeHaa IE and "horrible" are synonyms
Together with typing in SO chat from iPhone
 
8:55 AM
/me wants to kill someone
 
All wish me good luck :-)
 
@AlmaDo Good luck! What are you going to do? :Ь
 
To pass hardest exam in my life
Thanks:)
 
Good luck =]
 
Ty :)
 
9:10 AM
@AlmaDo: What exam? :)
Anyway, good luck :)
 
Hehe. I may only say that I won't wish anyone to pass it :) thanks
 
@PressingOnAlways I sorted it out! I manually 'flattened' the array basically having the 'meanings' as the keys for nested arrays of indices:
 
@AlmaDo Shall we know if you pass it?
 
9:30 AM
Even I will not know if I'll pass. Time will show:/
 
9:50 AM
If a user sets "items per page to 10" and navigate from page 1 to page 4 and then on page 4 user sets "items per page to 20" then shall we redirect user to page 1 ? .
If i dont then my calculation of finding offset get failed , offset = (pageNo-1)*Items Per Page +1 . For the above example it would give offset = 3*20 +1 i.e 61, that is wrong since user has visited only 30 items before coming to page 4.
 
Who's able to help me out.. I tried autoloading via composer and made this example:
http://speedy.sh/D5pfQ/LearningAutoLoading.zip But Now I would like to start creating 1 view with a model and a controller what is the best practice to do that?
* For example the {model,view,controller} folders. Do I create them in my app folder or outside of them

* How to start loading a default homepage?
Do I create a new controller where I load that view?

* Where do I refer to that new controller?

Above example could make many sense to me.
 
morninh
 
Yes , Ebay also redirect the user to first page .
 
yo Marjanović
 
Respect.
 
10:03 AM
morning
 
SuPrabhat :)
 
@Duikboot I would recommend you to drop the model,view,controller structure and consider a folder by feature approach
 
Hi, @RonniSkansing What is the good thing about doing that? I really would like to learn to get my structure right but it feels I need a 'basic setup' to start from.
 
@Duikboot it is easier to understand the intent of the system and to find files later on
Imaing if i said, please put all your string variables in this folder, all floats in float folder
you would tell me I am crazy
 
First thing now I would like to do is render 1 html page.
 
10:06 AM
well I am saying the controller, model, view is almost just as crazy
Well
make a web or www folder or whatever the public facing folder is called
put a index.php file inside
require a app.php or boot.php (whatever you want to call it) that is placed outside the public folder
inside of that require your vendor/autoload.php
 
is there anyway to detect if the php page is still running ? if it's still running do not execute it again .How is it possible ?
 
@samitha what do you mean?
Still running?
 
i'm executing a php page via JS
 
please paste some code in a pastebin or something
 
function doSync() {
			    //sync part
        $.ajax({

            url: "../Controller/curl.php",
            dataType:'JSON',

			success: function(res) {

			doSync();

   			}
        });
}
i want to stop execute the curl.php again if it's already running
 
10:14 AM
hmm the something was meant as anywhere but here.. but anyways. You want the function not to run if there the first request is not done?
 
yes
OR
 
Have you looked at google results, like this stackoverflow.com/questions/16751019/…
 
shell_exec('/var/www/bash/bash.sh');
 
What good should that do?
 
#!/bin/bash
cd /var/www/Controller
/usr/bin/php curl.php
i'm executing it using bash also
 
10:18 AM
why?
 
I'm posting sync requests
via curl
 
Why are you using php to call a bash script that calls php?
Im not sure, are you trying to handle this serverside or clientside?
And could I know why you are doing it, the use case
 
i have a app running on xampp on windows
it does not allowing CRON ?
 
Are you trolling me?
 
I have created a mini game as web application and stored the score in a live database(mySQl). But now I need to develop the same minigame as window application. My doubt is.. how to store my score in local database.???
 
10:25 AM
@Illaya connect to it from your "windows application"
 
not local database. its local storage
 
@Illaya You can embed sqlite in applications sqlite.org - that would probably be the easiest way to migrate your program to an application.
 
@Danack thx
 
hey is there a way in firefox i can see all the errors
actually while loading my page it shows a js error but soon redirect to another page
 
10:32 AM
@ScoRpion You might try "tamper data", when you get redirected it will ask you to open the page or not. You can decline, I think it might work
@samitha In windows you have task scheduler
morning btw
 
Jay
hey guys
 
Hi there
 
Anyone here know how to stop phpStorm compiling partial SASS files? The ones with the _ prefix because they are not supposed to be compiled
I've seen you can define your own custom file watchers and instead of choosing a file type you can use a regular expression. This should work hopefully
 
@David I tried to use SASS and SCSS support with PhpStorm, I just ended up using the CLI version because it's easier to use.
 
10:49 AM
@SecondRikudo The thing with the file watcher though seems to be working. I create a .scss file and when I save it it automatically compiles to css, the problem is it's compiling the partials too which I don't want but hopefully a little big of regex will fix that
 
11:17 AM
@SecondRikudo Got it all working in phpStorm now. It's great I don't have to use the CLI anymore it's all auto
It doesn't compile the partials anymore
Which was the only problem at the start
 
anyone familiar with git here? stackoverflow.com/questions/23151571/…
 
@DaveRandom Oh, now I see why obj-C does not have garbage collector at all. :)
 
I already voted, not sure why.
Ah, you posted it already.
OMG, I'm such an idiot, enabled the website in vhosts but forgot I actually use nginx :D
I'm sorry nginx for cursing at your config.
1 message moved to bin
 
12:09 PM
I want a bot in here that automatically detects words like "jQuery" or "JavaScript" and moves messages away (either bin or JavaScript room) while giving an automated response to GTFO.
3
Only do this for users who aren't in this room a lot (this is their first time here in the last two weeks or so)
 
@SecondRikudo or rep<200
 
Or that, yeah
 
@SecondRikudo and that's why the attitude in this room has become a problem
because, you know, rather than help someone, it's better to insult them and kick them out
 
@ircmaxell Don't get me wrong, this is for the users.
Instead of insulting them and kicking them out, they get a decent informative message that this isn't the place, and that they are better off in the JavaScript room.
 
and that's so hard to do politely?
 
12:12 PM
In fact, many people come to ask here "because the JS room is full of a**holes"
@ircmaxell For me? No.
But you've been here in this room more than I do. And we know that some people has... Anger management issues...
 
@ircmaxell I moved the message without saying anything because he dumped the link without saying anything. Eye for an eye.
 
@TOOTSKI who cares if someone dumps a link. You can still be nice and explain.
This is not IRC.
 
/op ircmaxell +v
 
:D
Stupid question, but can I see what's enabled/disabled by default when compiling php?
 
12:35 PM
@SecondRikudo Why not a bot that just starts another room with the user and says "Hey! A fellow jQuery-ist! That's great! But those PHP folk? They're not too keen on our awesomeness. Let's take this over to the JS room to protect them from our awesomeness."
That way the bot isn't spamming this room too.
 
@TOOTSKI ./configure --help
the ones that have a --disable or --without switch are enabled by default
the ones with --enable or --with are disabled by default
 
@NikiC Yes, that's it. Thank you!
 
at least, that's how it's supposed to be. Some people (ehm @Joe ehm @bwoebi) don't comply
 
Shame on them :D
 
@NikiC Nobody likes them abyway :)
 
12:41 PM
When you have a colour that is not #000000, a tiny tiny shade lighter at #010000. It looks black to the human eye but in theory would it be called some shade of extremely dark grey?
You can't really call it light-black
 
@David That's not a tiny shade lighter; that's a tiny bit redder.
 
@NikiC hmh yes… hmh
 
Because black is black. There is no light black
@DanLugg I meant just a tiny bit on the lighter side, not a full #000000. Would you just call it extremely extremely dark grey
 
So, #010101
 
Dark, grey would be #010101
 
12:43 PM
Isn't the technical term "almost black"
 
But who decides the line between grey and almost black
 
I prefer the term "too dark for non-text"
 
You're looking for #111 or #222 :P
 
@NikiC I think is same as others now ...
 
@David One of those stupid designers
We don't need to worry about non important shit like that
 
12:45 PM
The background colour I'm using is actually #333333 which is not as dark as the colour I mentioned above. I will just call it dark-grey. The human eye can tell that colour is not black I think
 
[PHP Modules]
Core, ctype, date, dom, ereg, fileinfo, filter, hash, iconv, json, libxml, pcre, PDO, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter,
So much missing from "default".
 
@David You could call it #333333 because, ... well, you know, that's the color.
 
@DanLugg But in CSS no
 
@David Uh, what?
 
@DanLugg I need to give this colour an actual name. Using SASS and I need to give the variable that references the colour a name
 
12:48 PM
@David So call it $c333333
:-P
 
Hello guys, I wanted to ask is it ok to require some classes even if I will not use them in about 10% of the cases? I have one index page which handles all the page requests and I added there require Helper, Util and Config.
 
Calling it #333333 would be stupid because then if that colour changes in the template I now have loads of places referencing $c333333 but the value of it is now a different shade of grey
@DanLugg
 
@David If you opt for the name it's pointless as the hex code name. Pick something like "background"...
 
I've never had such issues in Sass; I modularize everything to hell, and as a result I typically pass the color literal to a mixin or function or whatever; then in that scope it's merely referred to as $color or whatever the param was.
@David Yes, I know; hence ":-P"
That would be like public $seven = 7;
@David Instead why don't you give it a contextual name; $mainColor, $navColor, or $primaryColor
 
@DanLugg I didn't see the ":-P". If I was a completely noob I could have actually went off and did that and caused myself countless hours refactoring my code in the future
 
12:52 PM
@David lol, there's no such thing as "countless hours of refactoring" in Sass.
 
@DanLugg Well that's true but let's say if it was PHP
 
But it isn't.
 
@Almis Technically, yes, using require does slightly slow down your script, but if you use an autoloader you will avoid having to require the class, and so you won't need to worry about it, and the performance issue will go away.
 
@Danack I tried to use autoloader and its working in most cases but I had some problems stackoverflow.com/questions/23145258/autoloading-class-poblem
 
That moment when you say "FUCK PHP Y U NO GENERICS!"
 
12:55 PM
@Almis I'd recommend not writing your own autoloader. If you start using composer you can use it's autoloader getcomposer.org/doc/01-basic-usage.md#autoloading as well as use other peoples libraries, and also share your code with them.
 
I like my autoloader :-(
 
@Danack I don't know anything about composer, will give a look
 
@DanLugg I like my Autoloader. I just don't recommend writing one if you haven't already used someone elses.
 
^^ Fact.
 
I don't see what wrong with my autoloader
 
12:58 PM
't even?
 
function get_autoloader($classRoot)
{
    return function ($className) use ($classRoot) {
        $classPath = realpath(implode(DIRECTORY_SEPARATOR, [
            realpath($classRoot),
            vsprintf('%s.php', [
                strtr($className, '\\', DIRECTORY_SEPARATOR),
            ]),
        ]));
        return !empty($classPath) && (bool) (include $classPath);
    };
}
@Almis ^^ spl_autoload_register(get_autoloader('/path/to/classes'))
 
@DanLugg thank you very much will try it right now
 
@Danack Look at that gracious use of vsprintf!
 

« first day (1280 days earlier)      last day (3673 days later) »