« first day (911 days earlier)      last day (4263 days later) » 

07:00
i'd close all the 'gimme the cozez/fix this/how to make a...' questions ON THE SPOT
Q: I am stuck at the frontmost feather of right flank of the xxx (unknown, OP knows it) bird on PHP...
OP: I use codeIgniter... So why did my code got ignited?
OP: I use JQuery (he does not mention that he does not know javaScript). But it does not work...Why?
@kaᵠ Once some guy wrote "You have to fix this!!!" ...
in SO
those are bad
@Ihsan of course you have to fix it, you're the programmer, that's what you do, OP is not a programmer so it's clear YOU have to do it....
@kaᵠ Now I look at here... stackoverflow.com/questions/15996605/… ok seems to be well formed question... Wrong... Problem is not clear... Now start telling him mysql is deprecated (boring), what happened when you run the code (boring) ....
@kaᵠ Lol
@Ihsan it's not boring if the user doesn't know about it, it's boring for us...
07:15
:D
What does everyone think is the best PHP framework that does NOT use the Model, View, Controller Design Pattern?
:D One says PDO and other says mysqli.. the mysqli guys downvote pdo... that is the attraction I like to watch... Joy, love, intrigue, crime... A theater around here in a moment...:)
there re few reason why i prefer PDO:
@Connor I guess it IS the php itself..
@tereško I Prefer PDO
@Ihsan Could well be
Other than PHP?
07:19
1. you cannot automagically replace it , unline `mysql_query()`-> `mysqli_query()`
2. works with more then mysql
3. named parameter binding
@tereško I am new to PDO, but I am falling in love with it.... (converted 2 days ago) :D
read the recommended tutorial (the one on hashphp wiki)
the rest is up to you
@Connor Sorry, I am one of the idiots who love to write his own framework, reinvent America, swim the british channel etc...
3
"developing a framework" is a time-proven method of learning advanced concepts in PHP
4
if you have not written at least 3 frameworks, you cannot be considered a professional PHP developer
3
@tereško :D
@Ihsan yeah... ugly
@kaᵠ wha??
@Ihsan click the arrow before my previous message (it was a reply to a previous message)
@kaᵠ Sorry I didn't noticed that...
k , i'm off to work
07:32
@tereško I wish you good algorithms, easy bugless programming
@tereško isn't it sunday too where you work???
@kaᵠ He works for Jabba the Hutt I guess. Considering his mood...
@Ihsan That is the best answer i have heard, write my own, lol cool, ill try
@Connor Unless you are not under some severe time constraints and you do not know any convenient tool for the job...(by knowing, I mean being proficient, if not to learn the tool will eat up time too)
TRUE
07:37
in which case you still shouldn't use a framework you don't know
@kaᵠ Yesss
someone pleas upvote this:
1
Q: Persistent Chat mentions even for very recent mentions

ka ᵠTo reproduce: - get mentioned in chat while chat windows is out of focus - bring up the chat window If the mention is recent enough I can see the highlight, if not when I click on the green number over my avatar I'll be sent to the mention. Now, the mention bubble and the chat window title (*) ...

getting really annoyed
@kaᵠ Done...
just changed the title hope it gets more attention, driving me nuts
ty @Ihsan
@NullPonyPointer the little puppy on your avatar looks like a microscobic cyclops when minimized...
It is very cute.(When recognized in puppy form of course).
07:48
@Ihsan lol
Oh I have to go to an ophtalmologist...
i am too cute :P
Mayar = Moon... Cutie :P
@NullPonyPointer Does krit mean "the language of" ?
Sanskrit = "Perfectly computed language", Prakrit = "Peoples common language"???
@Gordon would you please change my name to NullCatPonyPuppyPointer that save for all site thing is not working anymore
@Ihsan noop
@NullPonyPointer ???? Lol.. NullCatPonyPuppyPointer
Wiki: The language referred to as saṃskṛta "the cultured language" has by definition always been a "sacred" and "sophisticated" language, used for religious and learned discourse in ancient India, and contrasted with the languages spoken by the people, prākṛta- "natural, artless, normal, ordinary".
Uby
Uby
07:55
morning
Prakrit ... those are languages developed in middle age of the Indian Arybhasha(language of aryans )
I am all eyes end ears... Go on.
morning @NullPonyPointer don't do it........
@FalsePointer?
TruePointer/BooleanPointer
संस्कृतम् Wow, browser can print that...
TheRealNullPointer?
07:57
Why null at all?
@Ihsan and book written in Prakrit are called Prakrit literature
FullPointer then
@kaᵠ that would be hard to identify me for some .. who know me by null*pointer
aww well
@Ihsan from point of development view there are 3 stage(levels) of aaryabhasa ancient , middle,mordon .. saniskrit is ancient
08:01
@NullPonyPointer My daughters name comes from this lineage: tamil-prakrit-greek-latin-
oh...
tamil : verula : pale
@Ihsan do you know saniskrit ?
no I wish...
prakrit, something close to verula
greek berula : pale blue of aegean sea
@Ihsan that is pretty tough .. i am trying to learn saniskrit for last 3months
latin beryl: emerald
@Ihsan what do you understand by prakrit ?
08:05
now used for crystals Be3Al2(SiO3)6
@Ihsan what is it ?
@NullPonyPointer prakrit, peoples language, used in practical life...
@NullPonyPointer Beryl...
my daughters name
@Ihsan ahh nice name :)
Thx.
@Ihsan damn .. i went into ancient languages :(
08:07
Turkish has ancient forms too. Very very old.
@Ihsan not old as saniskrit
I am not sure about this, the sources I refer are not accepted(ignored) by western academics...
But surely, If you mean ancient atomic wars (ramayana)... sure, Sanskrit is old.
@Ihsan if you have got time read ancient indian literature spicily vadic maths .. that is tremendously interesting and effective however harder to understand
@NullPonyPointer vedic maths are awesomely cool! should be taught to kids in pre-school
@Ihsan ancient atomic wars ?????
@kaᵠ ahhh have you learned ? are you indian ?
08:11
I guess some underyptable text of indian ancestry would only have a chance to be read after people learn about the physics of the universe.
@NullPonyPointer learned, and learned some more when i saw the power in them, also knew some of the simple ones
@kaᵠ i leaned for 2 year before 5 years but now loosing grip on it :(
@kaᵠ try vedas too .. those are literally awesome .. specially when it come to science section
Are you referring these awesame algorithms? en.wikipedia.org/wiki/Vedic_math
@NullPonyPointer yea, that happens when you don't practice, lost some grip myself...
@Ihsan yea, and more
@kaᵠ Yes indeed.
08:15
@NullPonyPointer adding from left to right (the proper way) still stuck with me
@kaᵠ that requite lot more attention .. and pretty hard ... by the way me too :(
@kaᵠ In Mahabharata... Book 16 Mausala Parva.
@Ihsan great story but the most important thing is Geeta
@NullPonyPointer why sad you add can add LTR?
@kaᵠ where ?
08:20
@NullPonyPointer Meaning Bhagavad Gita?
@Ihsan yupp exactly
@NullPonyPointer there <---
I have to learn sanskrit... Decision taken... That will not go through translation...
can someone help me out please?
i have this code
And after thousands of years we still do not have these in turkish
08:22
var_dump($this->config['host']);
return new PDO("mysql:host=$this->config['host']; dbname=$this->config['dbname']", $this->config['username'], $this->config['password']);
@Ihsan you may also like kautilya shastra ,,,,, (however few (very few) point are not true in that time)
i get array to string conversion error
( ! ) Notice: Array to string conversion
but, the var_dump returns
@Ihsan because in india there are very less who can translate vadic Sanskrit .. that is very had unlike normal Sanskrit ..... and those who can have nothing with other people they leave alone in mountains
why do you get that @Connor?
string 'localhost' (length=9)
@kaᵠ That's the question.
08:25
@Connor then it must be something else, right?
@Connor vardump ?
@NullPonyPointer i did
@Connor var_dump($this->config);
Look all...
array (size=4)
  'host' => string 'localhost' (length=9)
  'dbname' => string 'feather' (length=7)
  'username' => string 'root' (length=4)
  'password' => string '' (length=0)
@Connor oopsidaisies
08:27
huh?
oh
like a disease
people, I do not use " xx $this->prop " notation in strings. So can it be like "xxx {$this->prop} " problem like thingy...
lol, seriosly
@Connor oopsy -daisies... like saying sorry an awkward situation......
@NullCatPonyPuppyPointer Finally ...
@Gordon thankyou ..... you are awesome .. man :D
08:30
congrats @NullPonyPointer
@NullCatPonyPuppyPointer and now you just earned the badge for
@kaᵠ i had once longer than this before
and that happens to your username too, check one of your answers (2chrs too many)
Null*Point !
@kaᵠ i have more cool name than you :P
@kaᵠ its lesser in comparison of 卐웃웃웃웃웃웃웃ᗷᙓᗢᖇᓮᘐᓰﬡᗩᒪ웃웃웃웃웃웃웃卐
08:35
@NullCatPonyPuppyPointer i was going for less.. you know L.I.M.
@Connor try
return new PDO("mysql:host={$this->config['host']}; dbname={$this->config['dbname']}", $this->config['username'], $this->config['password']);
yay @Ihsan you got past 1k :) congrats
@kaᵠ Thanks :)... That was 2 days ago... We had a party here.. Did you miss it? Champagne, fireworks... Etc...
btps://ka?OneCoolBeer...
push
(beer transfer protocol secure)
08:40
RECV.......... fatal error: receiving bytes instead of beer, aborting!
EOB...(end of beer)
5
:))))))))))))))))))))))
:D
Well I have to go. Have a nice sunday all... Do not forget to go out and move your ass a lil... Your body needs to move, and your brain needs oxygen...
c ya
08:46
bye @Ihsan
09:05
@Ihsan Thank you it worked
Uby
Uby
09:32
Does anyone know a php live collaboration app?
I need to write some basic code together with another person
Uby
Uby
@kaᵠ does github support live editing?
@Uby not AFAIK, but you should consider it
Uby
Uby
@kaᵠ consider what?
I need a feature that it doesnt support...
online web editor ok @Uby ?
Uby
Uby
09:39
@kaᵠ I need an online web editor that can be used by 2 people at the same time (just like google docs)
I found something, but it's not great
i knew somethin, lemme se if i can find it again, what do you have @Uby ?
@Uby can't phpfiddle.org do it?
Uby
Uby
@kaᵠ I don't know, I'll try
09:46
@Uby codeanywhere.net also maybe?
Uby
Uby
@kaᵠ Cloud9 seems nice, at the moment
I'm trying it
Morning
user1125394
10:06
hi, I've got a design question, rather say the design of my leader
user1125394
He's wanting to keep all subscriptions in table, (so, many entries for a couple (user, item)) because it's necessary for processing a 'close order', isn't that a bad design sign. for me subscriptions should just be a current state, processing could use another table that we'd create (close_source)
Uby
Uby
@c'c what kind of subscriptions?
user1125394
a subscription for an automatic strategy, that pass orders for you
user1125394
we must determine what did close an order, the strategy, ourself in the app, or outside the app
user1125394
10:31
comparing the order closedate to the strategies closetime is not enough since sometimes an order can take a moment to be processed (1s- even 1hour)
user1125394
10:44
damn let's deal with this shit
so what did you end up with @c'c ?
Morning
sun-ring @PeeHaa埽 !
10:53
yellow @HamZaDzCyberDeV
How are you doing ?
pretty good
I've an "interesting" challenge:
 Question 1 / 1 (Concatenations)
 Given a list of words, L, that are all the same length, and a string, S, find the starting position of the substring of S that is a concatenation of each word in L exactly once and without any intervening characters. This substring will occur exactly once in S.

 Example:
 L: "fooo", "barr", "wing", "ding", "wing"
 S: "lingmindraboofooowingdingbarrwingmonkeypoundcake"
 fooowingdingbarrwing
 Answer: 13

 L: "mon", "key"
 S: "monkey
 monkey
 Answer: 0

 L: "a", "b", "c", "d", "e"
@HamZaDzCyberDeV where's that form?
looks like codejam typing
@kaᵠ Yeah indeed, someone posted it in a FB group
and then when I asked him, he told me it's from "interviewstreet"
10:59
guess this is better tried individually and on the site
@kaᵠ I already coded 2 solutions :p
Although the second is way faster than the first one
@HamZaDzCyberDeV what's the runtime(s) ?
Hmmmm, with the examples they provided in less than a second
but when I coded the first algo. I thoug what if there was 100 words and 1 million characters, it would take too much time
11:02
PS: in the first solution I generated an array with all the permutation of the words
Which means if I was given 100 words, my script would have to calculate 100! combination xD which is impossible with PHP :p
2nd? i kinda see a sollution with regex :P
~3.2mil not so much (sorry, this is 10!) 100! possible with bcmath
:P
10! =~ 3.6M
but 100! is way too much lol
Indeed, I used regex. Basically replaced all the words in L with {the keys of the words}
yup.. 'way too much' kinda sums it up.
and then used regex to match the pattern (\{\d+\}){count(words)}
cool, replace is a bit slow than just matching (optimize further here) how hast is the 2nd?
11:06
//SPOILERS
$s = "lingmindraboofooowingdingbarrwingmonkeypoundcake";
$l = array("fooo", "barr", "wing", "ding", "wing");
echo solvethis($s, $l);
//--------------------------
$s = "monkey";
$l = array("mon", "key");
echo solvethis($s, $l);
//--------------------------
$s = "abcdfecdba";
$l = array("a", "b", "c", "d", "e");
echo solvethis($s, $l);


function solvethis($s, $l){
	$keys = array_map(function($v){return '{'.$v.'}';}, array_keys($l)); // Creer les nummeros {nummero}
	$string = str_replace($l, $keys, $s);
@kaᵠ I ran the above code, it took ~0.00037002563476562 second !
above code is nothing like 100 words and upto 1mil chars.... test with the input file
I had no input file xD
The guy didn't provide a link or what so ever >...
tha's dumb
He kinda asked for help :p
@kaᵠ You entered "Google Code Jam 2013" ???
qualified :D and @NikiC too
thanx for the hint.. btw: Y U NO ENTER JAM?
11:14
lol, after this challenge, I regained some "self-confidence", and that's exactly what I'm asking my self now !
I'm checking if I can still register ...
God damn this use structure in PhpStorm breaks my mojo.
@kaᵠ I failed lol, I'm too late :p
@HamZaDzCyberDeV sorry dude, but thanx for sharing
try in practice mode
no problem !
Yes that's what I though, and maybe next year I'll enter :)
@HamZaDzCyberDeV @NikiC here's some ugly very ugly code for the gogol palindrome generator github.com/godka/code-jam clock it please (if you have a fast PC, it might take a few hours)
11:26
@kaᵠ micro-optimisation:
for ($i=0;$i<count($a);$i++) {
replace it with
$count = count($a);
for ($i=0;$i<$count;$i++) {
did i do that?
@kaᵠ Line 13
line? (also it might be more than a micro in this context)
aah.. yeah, that whole function needs optimizing (original in my php-math repo) and in this case i'd smush it within code to avoid the function call :P
@HamZaDzCyberDeV have enough juice to run it?
I can run it, but how long would it take to execute lol ?
+ sometimes my WAMP server crashes if the script runs for too long
depend on what proc you have.. couple hours :D
need to run it in cmd line, no chance otherwise
11:31
2.6 ghz x 4
you should have at least some pc as a linux server near if you sit on winflows..
that's good... try it when you go shoppin or something, would like to hear some results
Uby
Uby
Why data.stackexchange doesn't fetch user after I logged in?
yeah... heard/read, but not used... actually i tried to but something went wrong installing
@Uby data.SE is not uptodate, it's a copy a (short) while back
Uby
Uby
@kaᵠ Thanks, I just experienced that with a query :P
11:41
@kaᵠ Got "ERROR: No file !"
Checked the code, but it seems you didn't give out the "full" code ?
@HamZaDzCyberDeV get a file at google code jam 2013 qualifications
code is supposed to print "an array" declaration that you can use later via an include :D
@kaᵠ looks even uglier than what I had. cool :D
@NikiC now that's ugly, and i would have get rid of the add function and included it in the ops where needed N times (to spare the function call) but didn't feel like it anymore
@NikiC care to benchmark? what HW do you have?
HW?
yours does 70 digits in 11 secs
hw=hardware @NikiC 70 as in 35 in th output?
11:51
i'm on low level hardware :)
i3 540
@kaᵠ 35 in th output?
you have a commented line at the end, sais: //digits XX
i have?
i simply set end_at to 70
first 30 go out in a breeze, next increase exponentially...
then it did 35 (that's an optimization to get to 70 faster, computing only the square root palindromes, then check if squared is a palindrome also)
@NikiC check for the full gogol, after 35 it'sa gonna take a while
@HamZaDzCyberDeV got the input file?
nope xD, I'm searching for the challenge
@kaᵠ yes, that's the only sane way to do it ^^
11:55
@kaᵠ is it "C. Fair and Square" ?
trying it the other way around would be totally crazy
agreed
I'm also reading the quick start guide since I'm not used to GCJ ...
https://code.google.com/codejam/quickstart.html
anyway, your code seems to have about the same performance characteristics as mine
and i figured another optimization but gonna code that l8er
11:56
I also get somewhere in the 10 seconds range for 70 digits
okok... but more?
70 is nothing, needs the 100
exactly :D
ok so we're in the same algo so far
btw did you check out the nice graphic art it makes while running... nice pattern emerging right?
loved the problem going up to 1 gogol and ascii art looking like binary/gogol also
11:59
And somehow I never had the thought of precomputing the number list and only looking stuff up when actually running against the dataset

« first day (911 days earlier)      last day (4263 days later) »