« first day (1012 days earlier)      last day (4161 days later) » 

PLB
PLB
10:00
@BillyMathews You probably don't want to hear this, but "ahahahaha!!"
@Jack so it does. Havnt thought about using PHP on windows
@Jack Yeah, no not really. Why's that?
PHP isn't my strong point, I'm front end.. CSS/JS.
Because sometimes it's fun to laugh at another's expense I guess.
10:02
Can you roll back BIlly?
@Jack 200 already for the day :p
@Mr.Alien That's my score x 10 4 for today lol
@marabutt Not really.. I'm on a reseller account that doesn't let me modify accounts, it's really long to contact support and ask them to change the primary domain/username. Besides, the domain needs to be changed.
@Jack LOL ok you my goody friend and yes, you helped me with that too so here you go, a cookie for you :p wait
Done :p
It will also lead me to a sportsmanship badge now :p
lol ... thank you my liege
10:04
:D but this was more of an insult to js so a quick 200 mark
Is it good idea to switch from php developer to android development and make my carrier in that(in terms of money). Currently i am working on open source technologies like magneto, wordpress, drupal, joomla, opencart but not very strong in any one.
@Mr.Alien Surprised that nobody had a jQuery solution :)
Can somebody confirm that parse_url does work with relative URLs as of some later PHP version?
@Jack Not req... infact the other answer which provides a JS solution is also a fail... bg color can be applied to tr
@PeeHaa It should work with relative.
PLB
PLB
10:07
@Rashid We are not able to make business/career decisions for you.
@Rashid what do you think?
@Rashid traitor
@Mr.Alien Actually, there was somebody with roughly the same answer as you but they were downvoted =/
@BillyMathews you want us to hack it :D ?
@Jack Yeah I tested it and it works, but I want to be sure I didn't miss anything before screwing up the docs :-)
10:08
@PeeHaa Well, what's the test case?
@HamZa I want someone to help me go through it and fix it.. I really need to get on with this job :(
@BillyMathews I don't get what's the problem ?
This right? probably for repfarming?
@Rashid If I could train over again I would have focused on .NET
so much more money
Yeah I haven't explained the problem yet, it's a bit long winded.
And I'm not even sure of the exact problem
10:10
lol
I think it all depends where you live, the time and ofcourse your skills
Too much parameters
@Mr.Alien Just a bunch of edits ... seems legit.
@BillyMathews Ok, you can't do something, what is it ?
@Jack Lets vote to undelete his answer and lets vote him up
@marabutt thanks a lot.
I have "Better Wordpress Security" plugin installed, then I changed the primary domain and username (temporary url = IP/~USERNAME), and now I'm locked out of the admin
PLB
PLB
10:11
@marabutt What's wrong with working on both (assuming you work as php dev now)?
@Mr.Alien Sure.
@BillyMathews You have access to the DB ? Then try to find the table and change that value ?
@PLB Nothing.
10:13
@HamZa What table?
@PeeHaa Interesting behavioural change.
@Jack yeah :P
But it looks like they finally nailed it
I would argue that >= 5.3.6 is the correct one :)
Unless I'm missing some obscure thing
@Jack yep
@PeeHaa Nope, it be kosher :)
10:14
kk tnx for rubber duckying
The rubber duck always understands ;-)
lolwut ? The plugin must use something to store it's settings right ?
I guessed it must be in the Database. Look if there is such a table for that security plugin and browse the values ...
lol awesome example btw:
$url = '//www.example.com/path?googleguy=googley';
Haven't seen him in here for a while
10:17
@HamZa Yes, true.. but it must be the rewrite rules that it has added in .htaccess, right?
@BillyMathews ok, how do you try to access the admin page ? What do you get ?
@BillyMathews Is the problem the domain change?
@PeeHaa The domain change caused the problem
@HamZa it's different alot. Going to /admin ( should work ) takes me to wp-login.php?62cvp4t6bycl3qa23s0ui&redirect_to=/~pocket/admin/, which is good, then, when I log in I get a 406 "Not acceptable"
"An appropriate representation of the requested resource /~pocket/wp-login.php could not be found on this server."#
10:20
@BillyMathews Ok, try to comment out all the lines in that htaccess with #
or nuke it from orbit (backup please)
@PeeHaa I'm 90% sure it's todo with this security plugin..
PLB
PLB
Will some online tool that can run two different codes several times, then calculate average execution time, memory-usage and compare them will be helpful?
@PLB yes. Also it should have opcodes
@HamZa still getting 406
PLB
PLB
@PeeHaa I've just found my old unfinished project. I use ideone API. Not sure if they return opcodes...
10:25
@Jack And I get a down vote there...
try to use CTRL+F5 (refresh without cash)
otherwise there is something in the codez
Nope :(
/login is still going to wp-login which is part of the plugin so what the hell
I deleted all of the plugin's rewrite rules
@BillyMathews again, is this occuring since you installed that plugin or since you moved from domain ?
Since I changed the primary domain
@BillyMathews what is your new domain ?
10:33
@DaveRandom That's before the manual override entries, right?
manual (as in, human made) mapping
I'm using temporary url's, so before it was 127.0.0.1/~shapes, now it's 127.0.0.1/~pocket
obviously with my ip
ok does anticom.tv match your address/ip in the htaccess ?
and I was being redirected to ~shapes/not_found, which was to do with the plugin, so I did a find and replace in .htaccess, replaces shapes with pocket
@PLB does ideone have a public api?
what do you mean match?
10:35
@MadaraUchiha Yes. I've done a lot of work on tidying up the sauce yesterday, it's starting to get a bit more sane. I was thinking (initially, at least) it would be easier to manage overrides on the client side, managing it on the server side would require a whole bunch of auth crap (we can consider global overrides at a later date)
@DaveRandom Reasonable
@BillyMathews is it the same ?
Anything you think I can help with?
10:37
@PLB Awesome. @CapricaSix you still here
!!/listcommands
Damnit, so tempted to by a Geforce GTX titan on finance -.-
@PeeHaa 420, help, listen, eval, coffee, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, norris, urban, parse, tell, mdn, awsm, convert, define, fuckable, get, github, google, hang, inhistory, learn, 5318008, bewbs, i_am_a_robot, aliens, ym, format, 3point14, camel, ihatelanadelrey, fa, knock, lick, insult, ultimateinsult, microlove, easytools, wherearethegoats, tobacconist, ninjad, sarcasm, adventure, w3schools, 3mdn, joystick, stackoverflow (page 0/3)
great <3
@BillyMathews delete it now, otherwise it will stay for ever in the chat feed
> (page 0/3)
10:38
index #fail :)
@BillyMathews Have you tried replacing anticom.tv with the real domain you have?
Yeah, too late. Nevermind.
We don't have the new domain yet.
@BillyMathews ok, IP then
But it worked fine before, so it should be easily fixable, no?
I'll try the ip.
@Mr.Alien Interesting =S
10:43
still not acceptable
@BillyMathews It's a bit confusing, you first said Since I changed the primary domain and now you say We don't have the new domain yet.. Something must has changed. I can't help you further with that much info
I think he needs node.js to solve his problems.
We changed the domain name but the new domain name isn't pointing to our nameservers yet. that's a bit irrelevant I guess. but we changed the account username, which is reflected in the site's url.. (IP/~user)
@BillyMathews well good luck
is that you giving up helping me? haha
10:50
People thoughts: php.net/manual/en/function.hash.php#112799 Is it worth it? I think it kinda makes sense, but it will be terrible to maintain. If anything it should have a separate page I think?
Knock knock!
> Who is it?
Warning: Cannot modify header information - headers already sent by (output started at reply:1) in /some/file.php on line 2
PHP
@BillyMathews that's not called giving up. FYI I'm guessing for an hour now. With that much info, I can't help further. Plus it's your job to fix this otherwise you would have given me access to it
I wish I could give you more info but that is all there is to it.. that's the same reason that I haven't fixed it yet
I can give you access if you would be willing to help me?
I'd appreciate it alot
@BillyMathews I'm not free for the moment (not on my pc)
@PeeHaa I would say: see hash_algos() to see which algorithm can be used. Authoritative functions ftw.
10:54
well fair enough
@Jack Now why didn't I think of that :P
@PeeHaa The rubber duck scores =D
@PeeHaa Add a link to hash_algos()
@Jack Jealousy :p
That reminds me, am ordering a rubber duck soon...
PLB
PLB
Is there any situation where view can have multiple viewmodels and it won't be violation?
11:01
okay… first time wanted to test my PHP code … result: segfault ._. (I hope it's not pthreads' fault again…)
@PLB Viewmodel? How is that different from a regular model?
plz help me to find holidays list using RSS Feed or any other way
@PeeHaa Add a note on that page "This function should not be used for hashing passwords. See password_hash and crypt for more details" or something similar to that
@Crazy4Php I need a holiday too, let me know when you find one.
yup sure
11:03
@MadaraUchiha But then that should be added on the pages of md5() and sha1() too :)
lol
PLB
PLB
@Jack They are not different (at least from my understanding).
@Jack Very true.
@PLB I'm interested to know how you have multiple models in your app though :)
PLB
PLB
When app itself is created from sub-apps I guess.
11:05
@PLB Model is a layer, not an object.
seems PHP doesn't like about 5000 recursive calls of __callStatic -.-
PLB
PLB
Hmm, I guess I messed up terms again.
@bwoebi I shouldn't have to mention that PHP and recursion don't mix that well :)
Time to catch the train back home, cya!
@Jack Ja-ne, Urahara
@Jack yes, but it was accidentally…
PLB
PLB
11:10
Basically, here's what I am doing:
1. Create view model object (that will contain data needed for view (mainly for rendering form elements)).
2. In view render inputs using view model object.
3. After submission create view model object again, bind user-input and pass it to action as argument for further processing.
@Jack it's actually replacement for controller. It's what you should use when you have no control over implementation of model layer or/and views
PLB
PLB
And, of course, I am just playing around with concept. Not for real application.
@PLB that's bullshit
closest thing to what you are talking about are presentation objects ... then again, it has nothing to do with use input
PLB
PLB
I would not expect that I was doing it write.
@tereško Would you mind explaining how it should be?
do you expect me to start singing “(What's So Funny 'Bout) Peace, Love, and Understanding” ?
11:20
I certainly do. It's completely unacceptable that you haven't yet started doing so.
@tereško Guitar, long hair, camera at the ready ;D
.. I suspect that he did not catch the reference
PLB
PLB
@tereško As you wish, I don't expect anything. Anyway, ctrl + A + del is amazing solution for everything I do.
2
Palindromic repz ftw
11:25
@DaveRandom It would be more impressive on Jon Skeet
@MadaraUchiha and now 10 upvotes and it's 44444
Google had me indexed at 11111 for ages, that was pleasing in an OCD kind of way
@MadaraUchiha just 100 for an awesome number
Aye
Would need to take a screenshot when that happens
@MadaraUchiha you can get another gold badge
11:27
@NullPoiиteя Hmm?
Apache or Nginx? Installing webserver on the VPS so can get the sites back up. I'm siding with Nginx at the moment, currently use Apache though.
> not sure if feature or my fault in understanding expressions:
<?php
if ($var == ( 10 || 20 ))
{
   echo "TRUE"
}
// results TRUE for $var = 30
?>
:|
@MadaraUchiha if you accept any other answer (>10upvotes ) here than you will get gold (Populist) badge since your answer has 69upvotes stackoverflow.com/a/12860140/1723893
@crypticツ Apache awesome.
if you want faster and litter
use Nginx
@PeeHaa In fairness, I wish there was a cleaner shorthand for that
11:29
@NullPoiиteя But I have another answer accepted...
Just because I want syntax doesn't make it exist though
And I already did accept yours for a while, remember?
@DaveRandom :-P
What badge should I even get for that?
The cleaner syntax is regex :)
11:30
I want something without a function call though, really. And in any case, I think in_array() is better than regex for such a simple task
@MadaraUchiha Populist ?
Ah
Sec
Yeah, badge ahoy
but i am not sure if it require the highest score ..
Let's wait for a while :P
@NullPoiиteя No, my answer needs to have more than twice the score of the accepted answer.
Can you lose a populist badge if the balance tips the other way?
11:32
My answer has 70 upvotes, I've accepted a 20 answer, let's see if it works
@DaveRandom No, but you won't get the next one if you deserve it
(I earned it, the conditions aren't met anymore, the badge won't be removed, but if I get another one, I won't get it because I already have a shadow one)
@MadaraUchiha That won't work for a self ask/answer I wouldn't expect
@DaveRandom Who knows
Let's wait a few
How often does the badge script run?
@MadaraUchiha have you got Enlightened badge now .. ?
@NullPoiиteя Good question, let's see
@NullPoiиteя No, not for the mysql_* question, but IIRC, my answer wasn't the first on that thread.
@MadaraUchiha for that one
11:40
@NullPoiиteя I got the Nice Answer now
So that means that I won't get the populist, probably, it should have reached by now
Or maybe there's a different process for gold badges because they're more rare?
@MadaraUchiha looks different because you should also Enlightened : First to answer and accepted with score of 10 or more
which is looks true here stackoverflow.com/questions/10149224/… and may be gold is more rare ...
> it is not an answer to your own question (source)
So no :P
@NullPoiиteя I wasn't first to answer there
The answer below mine was 4 minutes earlier.
then how is it oldest i.sstatic.net/sh2BX.png ?
11:44
@tereško does Router holds the url pattern and its parameter
and controller takes it.
Is that right..
in my implementations Router primes the Request instance and router only has a list of possible Route's, which in turn hold the URL pattern .. @Rafee , it kinda depends on how you implement it
although, controller should not be "taking" anything
can it take parameters from router.
Hi guys, can someone help me how to use "Db\RecordExists" in zend 2 form class
11:49
what ever controller does take from router
i want to check email is already register or not :(
depends on what you mean by "router" .. but IMHO, it really shouldn't
1
Q: zf2 Form clas issue

jyotiI am having issue in calling "Db\RecordExists" in Filter form class. I want to check email exist or not during registration. I am using Zend framework form class for Registration. I have define the form class and Class Filter and calling them in Controller. Every things is working fine except ...

any help ?
Oops! sorry..
If someone is around and wants to help they will.
:(
11:55
dont loose hope. try something.
@Rafee well .. i'm gonna for a ride on a bicycle a bit ... I can point you to this discussion and maybe this codebase
anyone knows golang here ?
I think the main problem you have is SRP violations : both your router and your controllers seem to be doing too much
@PeeHaa that code snippet caught my interest D: . I think ít is true because $var and "10" or "20" are existent.

Since || is a logical operator and you are having it in ( ) it will ignore the Operator Precedence so it gets executed first and returns either false or true. In our case it "should" only return true because its either value a || b.

Now the if clause should look like:
if($var == true)
It's so lame to post something that's already been answered more than 3 years ago. I hope you realise that. — HamZa 3 mins ago
I hate this kind of posts ><
12:05
@PeeHaa also if u use "identical" === instead of "equal" == it would check if both values are of the same type, too. So it would return false because $var would be of the type integer and the ( 10 || 20 ) of the type boolean.
9 flags? Did I missed all the fun :(
Btw can I down vote this guy serially?
@Mr.Alien not all .... but you missed
read more than the first ten words? On the internet? Are you kidding!?Paul D. Waite 1 min ago
@NullPoiиteя :(
http://stackoverflow.com/questions/17807531/find-out-whos-going-to-buy-the-croissants
12:08
@NullPoiиteя dupe
Oh, he already closed it
@cptnk I know what it does ;)
PeeHaa lol ... he is telling you difference between === and == xD
@PeeHaa ohhhh snap sry I did not see the dots I guess it was a qoute :( I apologize.
hi
I need help from u guys in cakephp
I want to control multiple site from a cakephp administrator
@cptnk hehe no worries :)
12:13
both functionality will be the same, But css and templates only differ from both sites
is this possible
?
@NullPoiиteя I did not mean to "tell" anyone. I just added that to my message because I accidently pressed enter without shift in the previous one. Also it was merely a example.
@VinothPHP everything is possible, you just need to make it !
@HamZa Thanks HamZa.. I have created Administrator with using prefix, In that front end I have to show two different sites with same functionality and the template,DB only differed
@HamZa pls check my question posted here stackoverflow.com/questions/17832909/…
12:18
am about to ask a stupid question but her is it :
$max = 1000000000 ;
$total = 0 ;

$start = microtime(true);

for($i = 0; $i < $max; $i++)
{
	$total += $i ;
}

printf("%s\n",number_format($max));
printf("%s\n",number_format($total));
printf("%s\n",microtime(true) - $start);
^^^ can that be any faster ??
@VinothPHP AFAIK there are no out-of-box solutions for that
such a setup you will have to make on your own
@PLB lol .. not that way
This is impressive: antecedent.github.io/patchwork
rewriting source using stream wrappers O_O
@rdlowrey ^
12:20
@tereško okay, I will try to make a new setup for that. and Is there any way to access another directory without changing url in .htaccess
@PLB the arithmetic progression was just an example ... .. Why does a simple loop like that take so long
@PLB It took 283 sec in PHP and 2 sec in go
func main() {
	start := time.Now();

	var (
		i int64     = 0
		total int64 = 0
		max int64   = 1000000000
	)

	for i = 0; i < max; i++ {
		total += i
	}
	fmt.Println("max: ", gotools.NumberFormat(float64(max), 4, ",", ""))
	fmt.Println("Total: ", gotools.NumberFormat(float64(total), 4, ",", ""))

	t := time.Since(start);
	fmt.Println(t);
}
@Baba who wants to loop for 1000000k times ?
@NullPoiиteя me
@Baba when did you read that PHP was optimized for math ?
try do some string manipulations and/or page renderings with go
@tereško ok even empty operations take so long
12:24
benchmarks for some math will be pointless when you need to create a website
for example, The url will be sample.com/action, But this functionality will be in example.com/action. In sample directory have only .htaccess which is used to get functionality from example.com
@tereško I have a 500 MB csv with hundreds of millions of of call log ... What would you have done ?
@Baba empty operation in PHP is not empty
@tereško for example, The url will be sample.com/action, But this functionality will be in example.com/action. In sample directory have only .htaccess which is used to get functionality from example.com
@Baba parsed it with C/Perl
12:26
@HamZa for example, The url will be sample.com/action, But this functionality will be in example.com/action. In sample directory have only .htaccess which is used to get functionality from example.com
don't spam
@tereško lxr.php.net/xref/PHP_TRUNK/Zend/zend_vm_def.h#4948 … yes, checks symbol tables etc before continuing…
but only in "intensive debug mode"
@VinothPHP .htaccess rewrites the URL .. what stops you from doing the same ?
@tereško C would be a good choice but our of the option for now .... I have to use go or php what do you think ?
furthermore, what stops you from including classes and executing them directly ?
12:28
is it possible to get holiday list using php
?
@Baba since i do not know Go , i would have used PHP in that choice .. but I would never need to face that choice since I have "working knowledge" of several languages
@Crazy4Php lolz
@hamZa: plz help me if you have any idea about it
@Crazy4Php there is no magical function for it, if that's what you are asking for.
@tereško ok .... i have do look for a way around that then .. thanks
12:30
@Crazy4Php E_TOO_BROAD
@Hamza: i m not asking for any magical or non magical function is there any way using RSS or any other way
@Crazy4Php depends on where you live, which days you want to include etc...
@hamza: public holidays only of india
@dragon112: what is E_TOO_BROAD?
@Crazy4Php api.kde.org/4.1-api/kdepim-apidocs/libkholidays/html/index.html .. look into libkholidays. That's where KDE's calendar gets the holiday list from
12:31
@Crazy4Php This is not the place to find that information. You should try <insert favorite search engine>
@Crazy4Php sigh.
@Crazy4Php you're spouting non-sense the moment you added "RSS"
@dragon112 E_LULWUT xD
@tereško 8GB file .. Impressive .. i need to do some more research ... Thanks anyway
@Baba interesting codepad.org/yn5y9pD8 or i am doing something wrong
@NullPoiиteя E_NEED_SPACE #include<stdio.h>
12:32
@Baba if you are open to more then the binary go-php choice, then you should look at something that is good at handling large files
@tereško C right
that's an option
@tereško what other option ?
not sure .. I have never needed anything like that
@NullPoiиteя Yes you are
12:34
honestly, my first choice would be making some shell-script
@Baba you mean i am doing something wrong ? could you tell me where ?
@NullPoiиteя i += i; see codepad.org/7uIgijFW
I think adding FormEvents::POST_BIND is best. Please, show how to do this? — Medvedev 51 mins ago
oh the help vampires
@NullPoiиteя check this out
12:39
What would you recommend as a mailserver? sendmail, postfix, exim, or other?
@crypticツ sendmail and postfix are not mailservers
:-)
@NullPoiиteя go to play.golang.org then copy and paste this code :
@crypticツ sendmail is not really a mailserver. It's more like a discipline of dark arts. But that's what I would recommend, if you can get it working.
package main

import (
	"fmt"
	"time"
)

func main() {
	start := time.Now();

	var (
		i int64     = 0
		total int64 = 0
		max int64   = 1000000000
	)

	for i = 0; i < max; i++ {
		total += i
	}
	fmt.Println("max: ", max)
	fmt.Println("Total: ", total)

	t := time.Since(start);
	fmt.Println(t);
}
@NullPoiиteя ^^^
@NullPoiиteя you can change it to t.Nanoseconds() to get the time in nanosec
Good morning
12:47
@ircmaxell Good Morning .. Welcome
@baba Thankyou gonna check ,.... but my internet is such a crap today
@NullPoiиteя ok
@NullPoiиteя 0 sec
Hi, just wondering if someone with experience of using git could answer a couple of questions I have about setting it up.

I think I know what I need for now about the local repository on my development machine -

git config --global user.email "[email protected]"
git config --global user.name "Martin"

cd project
git init
git add *
git commit -m "Initial commit"

but it's more for the remote repository I am confused, as I understand you need to:

create a 'git' user

create a directory somewhere (any particular location that's used by convention?)
12:56
@NullPoiиteя C? Go? Cgo! I can import C directly in go ....
@NikiC It looks like I am all but confirmed to be in Berlin in November...

« first day (1012 days earlier)      last day (4161 days later) »