« first day (1761 days earlier)      last day (3413 days later) » 

00:02
Andreas-Air:TypedArrays ajf$ phpunit
PHPUnit 4.8.3 by Sebastian Bergmann and contributors.

.........................

Time: 175 ms, Memory: 4.00Mb

OK (25 tests, 2113 assertions)
Aw yeah.
2133 assertions is a teeny bit misleading, though.
Anonymous
00:12
@kelunik While I am using Arya to learn somethings from it, if I find anything through my newbie eyes I'll try the contribute. Having said that, I'm curious when version 1.0 is coming out?
Anonymous
It seems stable enough for me
See, there's this one function which has nested loops with assertions
00:31
@Andrea Is this like ArrayBuffers in JavaScript or ..?
@LeviMorrison The very same specification :D
:D
I didn't know if it was that or some generic-like type aware structure.
Typed Arrays, like some other Web APIs, are not actually specified in JavaScript terms
Anonymous
/ me googles "array buffer"
Rather, it uses WebIDL
00:34
morning
WebIDL can be mapped to ECMAScript, but also to other languages (VBScript or PHP, say)
Abe
Abe
morning
Anonymous
it's 2:47am here
Abe
Abe
same here, but we are programmers
our internal clock is more similar to those of big predators, or vampires
user image
2
Anonymous
00:52
I'm not a programmer, but I'm a question Vampire, so that might be the case with mine.
@samaYo well, I just woke up, so bite me
user4706838
@Orangepill never thought this will be concept till now i am thinking it as drawback are there any advantages of that...spa framework don't what it is
Like literally no one can answer my Redis question, I know this is PHP, but PHP people are expert at redis
@NSGod are you drunk ?
No man, I'm mad
I think i need to get drunk
Anonymous
00:56
@tereško definately drunk
Abe
Abe
@tereško that would be cannibalism i believe
What are possible ways to connect to Redis?
it's am expression
except telnet
Anonymous
@NSGod rtfm?
01:01
people experience is better then manual @samaYo
I'm impress you read manual tho lol
it's kinda sad to see all that youthful positivism being drained away by time .. it was just sort time ago when samaYo arrived in this room, filled with naivete
Anonymous
I thought that was a good thing :/
user4706838
01:23
i am highly addicted to SO now i forgot about social networking
@Optimmus it depends on how you define "social network"
user4706838
@tereško how would you define social-netwrking for me it's now waste of time
Hello!
user4706838
i am not at all interested in making social releations now
01:59
How would you proceed when you have a requirement to get rid of all the mysql_xx mysqli_xx functions at a site where the number of those functions in total is too damn high?
Abe
Abe
@Ekin i don't think there are quick solution for that
you can have a quick dirty fix though, a regex that replaces said function calls with something you implemented and that uses pdo internally
mysql_query -> database_query, and then implement function database_query(){} your own
user1642018
hi all, i have quick question , can i store mysql query inside array as a value ?
user1642018
i have tried it and its working but i would like to make sure, if its proper way to do it .
Abe
Abe
wat
user4706838
:)
user1642018
02:09
for loop generates the queries to be executed, and then later i execute queries using foreach loop.
user1642018
something like this
user4706838
can you show the code snippet
user1642018
Array
(
    [0] => INSERT INTO content_total_results (total_results, mode , category, age, upload_date, verified)
VALUES ('0' , 'recent' , '100' ,'day' ,'2015-08-11' ,'1' )
ON DUPLICATE KEY UPDATE total_results = '0'
    [1] => INSERT INTO content_total_results (total_results, mode , category, age, upload_date, verified)
VALUES ('0' , 'recent' , '100' ,'day' ,'2015-08-11' ,'0' )
ON DUPLICATE KEY UPDATE total_results = '0' )
Abe
Abe
you know that INSERT INTO can insert multiple rows in one command only?
user1642018
yes, but thing is i have for loop which takes values from 3 different arrays , and build queries. if i fire query inside the for loop, script takes around a minute for 1200 queries.
Abe
Abe
02:11
INSERT INTO yourtable ( col1, col2 ) VALUES ( :row1val1, :row1val2), (:row2val1, :row2val2 ), (:row2val1, :row2val2)
@Abe I made a new thing.
Abe
Abe
@rlemon get your ass in the js room :D
user1642018
but it i create array of the queries and then later do // begin transaction
mysqli_begin_transaction($conn);
//fire queries
mysqli_query($conn,$insert_update_query);
// Commit transaction
mysqli_commit($conn);
user1642018
it takes 7 seconds.
@Abe Canvas tshirt generator
user1642018
02:12
so can i store mysql queries in side array as values ?
Abe
Abe
ahahaha awesome
@AMB why not
sql queries are just strings...
user1642018
okie.,
user1642018
@Abe Thanks
Abe
Abe
yw lol
@amb youll get better performance if you execute a single prepared statment multiple times with different parameters
user1642018
02:16
@Orangepill yes, ill benchamrk it too, thanks
good morning all
@Sajad when get time have a look and help stackoverflow.com/questions/31944043/…
02:35
posted on August 12, 2015 by rdlowrey

This patch adds improved error reporting when delegate callables return an incorrect type for the parameter they are intended to provision

user image
4
@rdlowrey ^^ you need this
user895378
sweet lord do I ever.
I'm half in the bag and enjoying my new drunken creation
Should have sent a poet.
@rlemon I get that a lot.
those shoulder eyes...
@rlemon I probably ought to practice not doing this: jsfiddle.net/mqdzwn6n/1
Abe
Abe
@Danack crapped my pants
03:10
good morning
Good morning
Abe
Abe
@Orangepill o/
@Abe \o
just to get it straight Abe = worf = wes right?
Abe
Abe
yep
thought so.
Abe
Abe
03:16
i'm surprised that so many people remember me. i don't participate to discussions very often :P
is he incompetent? he must be wes, then
\o null termination cahracter
not thats \0
Abe
Abe
that's \0
\o is someone waving there right hand
ok I seen this fourth time in a day
03:20
@rlemon t-shirt thing is cool as shit
But didn't know meaning
is it just masking and color transform or is there something else going on there
@Orangepill how did you computed that abe =worf
Aug 5 at 15:28, by PeeHaa
.signature.user-4251625::after { content:"(A.k.a. Wes)";}
.signature.user-4251625 { color: red; }
03:24
thought I saw danack mention something about it ....
and I remembered worf from before my room 11 hiatus
@Orangepill @NullPoiиteя i have analyzed the code which i had asked you yesterday
3
Q: Which is better, constants or variables?

Yadav ChetanWe can assign values to constant or variables. Which one is better from a memory and optimization point of view? define("X",5); or $x = 5; Does in both case integer occupy same memory? Which one take more memory space and faster to run? I have analyzed this task 100k times in php.exe on co...

kindly give your suggestion on it
03:39
is it not something like at run time, the engine replaces every occurrence of a constant with its hard-coded value, making code presumably faster than using variables that must be evaluated each time they are encountered.
@yadavChetan the benchmark can't be correct.. you can't fit 100000 integers in 272 bytes of space
Abe
Abe
03:51
@Danack i find so entertaining that some people had to install an user style just for me :D
What's a good way to measure true memory usage of a process...
valgrind I guess with --tool=massif maybe
are tools necessary
commands are not enough
like pmad
pmap may work ... valgrind gave me some goodies though
Constants
mem_heap_B=62052716205271
mem_heap_extra_B=556785
time = 292782809

variables
mem_heap_B=62052711883753
mem_heap_extra_B=44223
time = 231850476
@YadavChetan Used valgrind to run your benchmark split into two (one for constants and one for variables) and the total process memory usage tells a different story
Constants
mem_heap_B=6205271
mem_heap_extra_B=556785
time = 292782809

variables
mem_heap_B=1883753
mem_heap_extra_B=44223
time = 231850476
sorry copy paste error in previous results
04:12
valgrin is smart enough :)
I'm pretty sure I'm using it right (first time using it)... but I took the snapshot from the last frame and that is where those numbers are coming from.
I agree that tools like valgrind can help locate issues
I’ve experienced where i issued new or malloc against a variable that already contains a pointer to a previously allocated block but the code doesn’t attempt to garbage collect it first. This causes programs to lose access to previously allocated memory if it’s not done with great care.
sure that's a common cause of leaks
for shits and giggles I did the same test on SplFixedArray... variables are still better on every metric
04:28
so variables wins the race at last
@AnmolRaghuvanshi well tool uses command somewhere
wonder if it's a known issue that memory_get_usage doesn't account for defined constants
@abe you are smarter then me ... am I using valgrind right? valgrind --tool=massif benchmark-constants.php
and looking at the last snapshot to get true memory usage for the benchmark script
Abe
Abe
"you are smarter then me" on what basis did you make this assumption xD
@Orangepill - how to create a button in codeigniter model that will display on a particular view on my content management system(cms)
Abe
Abe
04:36
i don't even know what valgrind is
@KnowMe dunno... not a CI guy but I would guess use an anchor tag or button element
@abe I just found out from a SO post :)
you seem smarter then me.... just smoke and mirrors?
Abe
Abe
from a SO post? i don't participate much to SO
not even smoke and mirrors. i'm clueless noob
@NullPoiиteя would you explain why not to ask for php books and some of term i never heard of it
Woo redis can handle 100K request per second!! Thats insane
Abe
Abe
now i'm trying to guess which is the post that made you think i'm "smarter than you" @Orangepill
04:41
nothing in particular ... just general perception.... my self deprecating nature may also be a factor
@KnowMe why you will create a button in model
@KnowMe that does seem like a silly place to create a button...but CI is kinda silly
@yes it is a typical case
@Orangepill why CI is silly... :)
Abe
Abe
technically i'm not even a programmer @Orangepill i mostly do front end stuff, in my actual job
and also smart != knowledge
04:46
morning @JoeWatkins
Abe
Abe
although, i'm trying to get into hardcore programming :D and with poor results so far xD
@abe aw .. you seem to know what you are talking about... if nothing else you can talk out of your ass better then most programmers I've had the pleasure to working with :)
@Orangepill - echo '<a href="' . $url . '">Import Google Contacts</a>';
@Orangepill - this creates a button with a link using php
@knowme that would output a link
yep
@joewatkins maybe you can shed some light on this.. benchmark seems... off
Abe
Abe
04:52
@Orangepill that's so funny, because i can't even say to speak english properly xD
@Orangepill - is there anyway to create an alert box which has a button connected to a link using php
are constants created by define not accounted for in memory_get_usage
15
A: Which is faster? Constants, Variables or Variable Arrays

NikiCConstants defined using define() are fairly slow in PHP. People actually wrote extensions (like hidef) to improve the performance. But unless you have loads of constants this shouldn't make much of a difference. As of PHP 5.3 you can also use compile-time constants using const NAME = VALUE;. Th...

php7 has further improvements in the bag for constants too
@JoeWatkins I saw that ... I was trying to debunk his benchmark.
176 bytes looks wrong
not enough memory for the zvals in constants nevermind the buckets in the table or strings for keys ...
04:55
yea... you can't even get 100001 bits in that much less ints
it's wrong...
I valgrinded out this
46 mins ago, by Orangepill
Constants
mem_heap_B=6205271
mem_heap_extra_B=556785
time = 292782809

variables
mem_heap_B=1883753
mem_heap_extra_B=44223
time = 231850476
seems a little more sane
krakjoe@fiji:/usr/src/pthreads$ php l.php
Define Constant: Time: 0.050995 ms | Memory: 12800000 Bytes
Setting Variable: Time: 0.038435 ms | Memory: 11116128 Bytes
I don't have a version of 5 to test with ...
My results mirrored his and I'm running 5.5.9
@Orangepill - I would like to create an alert box which has a button connected to a link using php
04:58
not sure why
@Orangepill - do u know anyway to do os
so
someone somewhere fixed something in 7.... probably bug in memory_get_usage
Abe
Abe
do you spell it overridden or overriden?
TIL the correct one is with two d's
the table uses persistent memory
interned keys
these won't show up for memory_get_usage
that's why numbers are wrong
@abe I wouldn't have guessed you where not a native (or very competent) english speaker.
Abe
Abe
05:03
lol :D thank you, but i suck :P
table still uses persistent memory in 7 ... but I haven't looked at how memory_get_usage works now ...
@abe based on time difference I figured you for an aussie :)
Abe
Abe
nope, just a vampire
@Abe speak english with me and feel like an expert :P
Abe
Abe
@NullPoiиteя ahahah that's for sure
05:06
yaa, we did it before :D
@JoeWatkins thanks for looking into that and taking time to educate me a little
Abe
Abe
@NullPoiиteя managed to unlearn english, don't know how :D
@Orangepill you from?
Merica :)
Abe
Abe
murica! :P i'm from italy though
murica means I don't speak good english either :)
05:11
probably sounds better than british english though
fuck laracon
let us know how you really feel
the gathering of ignorant people should be restricted to churches and governmental buildings
15
yeah ... I had to star that one
I will now and forever refer to the painfully ignorant as sub laravel
@Orangepill oh i was in meeting let me checkout this
@YadavChetan Variables win over constants in every metric... there is a "reporting issue" with memory usage of constants (they where excluded from the total) if you run your benchmark on php.wtf you will see the difference in results
good mornin
@MarcelBurkhard British english sounds dignified... US english sounds hillbilly
05:21
yes let me checkout that.. i tried in cmd i thought that might give exact result so
@Orangepill you actually are referring to City of London and Texas
"english" has a metric fuck ton of accents
a metric fuck ton... is that like 10 ass loads?
that's a different measurement system
Abe
Abe
@Ocramius forgot about the Exception argument we were having. i don't disagree with what you said, because exceptions hierarchy is too hard to design and that's a sign that exceptions shouldn't have a hierarchy at all. when you write class XException extends YException extends ZException you are making risky assumptions on something very very very VERY abstract
@Orangepill and if you want to hear an astonishing variation of english, try talking to an irish gipsy
Abe
Abe
05:24
the reason we have an hierarchy is because we want as less catch() blocks as possible
@Orangepill even why the fuck, comparing variable with constant both have different uses case :D
not so much ...
Abe
Abe
and the solution is elsewhere, and in particular where you catch them:
catch(XException|ZException|KException $e){} // multiple type hints, no need for an hierarchy anymore
@NullPoiиteя agreed... but sometimes numbers work where logic can't
2
Any conversation on a train after the bars close is disqualified from being an accurate representation of a people
05:27
@JoeWatkins people, who get aggressive when drunk, shouldn't drink
.. I have actually been wondering, is it a permanent condition or something you can acquire and get rid of
agreed ... also, people that are three foot nothing and 10 inches wide, shouldn't slap large hairy strangers in the face ...
(I'm still watching)
I think it's learned behaviour, the chemical effects of alcohol are the same for every human within a very small margin: Even a quiet drunk can learn to be a dick if everyone around them accepts that's how they are when drinking and still encourages them, or accompanies them while drinking ...
also, I thought that "chav" was an eastern europian phenomena, though, here we call them "urlas"
@paritosh acctually I don't use of framework. also there is a answer under your question :-)
05:34
that's a word that turned up in the vernacular not so long ago, it could well be import from EU
I'm sorry ... I forget how to use my mouth and loose consciousness from drinking before I turn into a douche
there are just some people that shouldn't drink
me too, my head goes down on the nearest thing and I fall asleep instantly normally ...
@tereško hello, I want to say the book that you've sent to me is amazing. tnx :-)
@tereško chav is more of a Russian word, do describe low life "darker" part of the population
Hello everyone,

Can anyone tell me what is the most important thing to include or not to inclue async loading of the scripts? :)
05:36
@SergeyTelshevsky racially darker or just darker
^ same question
@Orangepill racially, but not blacks
/me goes to walk dogs
hmm ...
05:38
usually gipsies, chechens, etc., but not indians
originally chav is a gipsy
fyi, "gipsy" too is considered to be politically incorrect
I'm sorry, what's the proper word?
looking through google for angry drunk people on a train reveals that that sort of behavior is a global phenomenon
@SergeyTelshevsky I honestly can't remember
you might have noticed that I am not all that politically correct myself
@tereško fek political correctness, one should simply not offend others
05:42
Romani is what the UN refers to them as according to wikipedia
offense must be taken
@Orangepill even american ones?
@tereško used to watch fry and laurie show :)
@SergeyTelshevsky I actually learned about him from this debate: youtube.com/watch?v=hn0tPRjVBvw
@Sajad nice, that you find it useful.
especially since I was not so sure about which book to recommend .. it has been some time since I was learning the basic-to-intermediate stuff in SQL
btw, guys .. can someone translate this comment for me?
I have no clue what the author tried to say:
i think no matter how much condition in mapper layer,mapper layer responsibility is get object according mapper,these conditions are just query conditions,not business.and the service layer,should put logic like if some occur we should use getByAuthorAndPublisher method,otherswise use others get method,it is real logic. — wangyiran 4 hours ago
05:55
@Sajad ya ans is posted this morning ....
is it recommended to enable global xss filtering in the config.php file: as per my readings done so far no
^ missing context
oh .. codeigniter ... poor sap
06:03
@tereško I think he may be talking about mappers in some way...hard to tell
@Orangepill this is basically how I feel reading it: gfycat.com/UnitedImpureAlaskajingle
I think is he saying that the mappers should expose domain service methods
Good moooooorning!
anyone know any software to create storage sharing server over lan ?
06:16
@NullPoiиteя samba
samba can be a nightmare though in a mixed platform environment.
@Orangepill Tell me about it.
than what else would be easier because we have mac , windows and linux
We use Samba here, and that is also across all 3 platforms
It is doable, but it can be tricky to get to work the way you want it to
06:20
@NullPoiиteя hate to say it but hosting on windows might be easiest...
@Orangepill it's easy to set up. And it has a webUI: swat
of course, if you have a complex system, it can become a pain
@Orangepill hosting samba on window ?
@NullPoiиteя no just set up file sharing on a windows machine
you might have better luck then I did with samba if you are running the same versions of windows on your machines
i had to support 95 to windows 7
plus mac
plus linux and a single bsd box
i have to support ubuntu,centos, widows 8,10 and mac ... so looks simpler
@Orangepill - want the link and button to appear in alert box through echo(php)
@Orangepill -thx
06:24
@NullPoiиteя what will be the purpose and amount?
I remember one of the biggest issues was name mangling with the win 95 boxes working with the newer versions of windows
@tereško just share files across all pc's via lan
no, I mean, what exactly are you sharing there?
a nas appliance might work for you too
video/audio, assets or documents ?
06:25
@NullPoiиteя Our setup is roughly the same, a couple of windows machines and a couple of macs along with one or two ubuntu machines, setting up a fairly simple access rights and allocate different folders to different users are fairly simple, but again, the more demands the harder it will be.
share image , movies ,documents . We have 20 pc so i am trying to setup one pc as file server
@Orangepill - busy ?
if it was only for documents and assets, then you could just use a shared dropbox account (if you are not sharing too sensitive info)
Or google drive
in my experience, google drive is kinda nasty, when it comes to desktop integration
06:28
I didn't have much trouble, but then again, I work for a rather small company so our demands / requirements aren't that techinal or hard.
@NullPoiиteя If it's not going to be under heavy load and only has to support sane os's samba might be a good fit... if not some of the business grade NAS servers might be a good route.
you can actually build your own NAS box too and install FreeNAS as OS
you can make a decent box for $400 (though it probably will be more, if you want more than 2 drives)
Hi Guys
I would like to create an alert box which echo a button with a link using php
didn't microsoft release the specs for the smb protocol not to long ago
Can you tell me how to do it
thank you
I would like to do it in CI controller function
06:34
I have really end spare pc here .. but it should be easy to understand for everyone here
@NullPoiиteя a random PC is not really suitable as NAS
so, samba it is
:)
morning
I would probably go with freebsd on ZFS and set samba up on that
FreeNAS requires 8GB of RAM to run properly. that is too much :D
it also needs ECC ram modules
06:36
good night peeps I'm about to fall over.
@Orangepill Remember to yell "Timber" before / while you fall over.
i have core i7 4th - 3.6 gh but ram is just 8 gb
the amount of ram is not as important as the type of it
DDR4 ;D
no
ECC
06:41
Awh.
wmic MEMORYCHIP get DataWidth,TotalWidth .... so i have no ECC type of memory
thus - no NAS for you
as I already said, the best option with limited resources would be freebsd+zfs+samba
though, you should talk to your boss about getting some money for a proper file storage .. something that can deal with drive failures
because if you create such file sharing server, you WILL be introducing a single point of failure
thanks going to setup that .. our main purpose to transfer file rather than as backup device so thats not a problem in my case
your "purpose" might change when real people will start using it
Hey guys, I couldnt get an answer on a question regardering an object specific hit counter, so sorry for trying again. This is what I got so far: stackoverflow.com/questions/31947595/…
06:48
the moment a /contracts folder appears on that server, you must go up the food chain to ask for proper NAS system .. something that at the very minimum has RAID1
(though you probably would want RAID5 .. or maybe something that isn't even RAID)
@tereško Real men don't take backup / take safety precautions, they cry.
also man who dont take backup get fired, and cry alone in dark room
http://thecodinglove.com/post/126491356243
The coding love
Programming without specs
kbironneau
1439362827
4
Abe
Abe
07:20
@Feeds bahahaha
Has someone an idea about webhosting incl. exchange server for mailing? Or is that always a separate setup?
@Epodax also, RAID != backup
@FlorianMargaine Not backup per say no, but one could argue that it is a form of backup (depending on what RAID you use of course)
@Epodax Well, it is quite possible to destroy it all at once... maybe...
@albru123 like a hammer
And we should stop talking about backup systems
It should be restore systems
07:29
@albru123 Of course it is, but by that logic a external HDD were you save files aren't backup either, because that can also come under the careful attention of a hammer :P
@Epodax Original and backup shouldn't be in the same room for such reason :D
@albru123 Of course not, but also why I said not backup per say, but it is possible to argue that a RAID is a form of backup.
And cp folder1 folder2 is another form of backup, but we know how to use the word "backup" in a well-defined way :)
@Epodax not really
@albru123 I have my backups in the same room as original :-)
In a proper fire safe, but in the same room nonetheless
07:38
@tereško Just to make things clear, I do agree that it shouldn't be considered as a backup, but to the point: If you set your RAID up to run as a mirror, you'd have a certain backup because if either of the two Harddisks die all you'd have to do was to swap out the bad disk and you'd be running again, which in my world could be defended as a form of backup.
@Epodax RAID 0
@tereško Thank you, Couldn't remember whether it was RAID0 or 5.
no, it was my counter-argument
morning
@Michael what exactly is your problem?
07:43
Certainly isn't all raid's that could be defended as such, but RAID 5 could be to a certain degree, Perhaps raid 10 aswell
@Epodax RAID1 is the mirror raid
Ah, right, thanks :)
@tereško it's been a while already
07:46
browsers start to drop flash support etc.
RAID0 is the "fast" raid, and RAID10 is the combination of both
@Naruto Well I've been told that I have to use a database and increment the hit counter row everytime a unique visitor clicks a specific embedded video, but since my knowledge is limited to html/css/php, I'm not sure how to intercept the clicks
Aye.
@PeeHaa It is not really practical to have backup in different room, that was just an extreme example :P
@SergeyTelshevsky I know. I know. It just pains me to see shit like this
07:47
@albru123 :-)
@tereško pains to see once a great product put to death, and all the internet has to suffer from rotting smell of it
@albru123 uh?
mostly everybody has backups in a different place
@PeeHaa is just poor
@FlorianMargaine That too :P

« first day (1761 days earlier)      last day (3413 days later) »