« first day (2222 days earlier)      last day (2952 days later) » 

00:26
@FélixGagnon-Grenier <video> and you're done?
More seriously, though, I think it shouldn't be too daunting. Add controls, hook them up to the corresponding <video> or <audio> methods, you're mostly done.
01:07
@Andrea true dat, html5 is present
the bigger problem will be that we have to let blind people make different actions with different gestures on mobile
like, player says "you have three options, swipe with three fingers for a, two fingers for b, swipe left for c" etc. etc
01:44
@Danack None concretel, but I've already seen such behavior from him…
02:17
morning
03:03
morning. do we have a canonical for an undefined curl_init() question? A question about enabling extension on windows and linux might be a valid duplicate target, but I'm slightly drunk and can't find one, halp.
@Linus thanks! but already went for this..
ah ok :)
03:34
!!dad
What do you call a sketchy Italian neighbour hood? The Spaghetto
!!is today friday
God, yes!
God,yes
Wes
Wes
03:52
04:04
MySQL chat dead as always, so quick question. Is there a limit to how many variables can be in "where IN (?)". Like if I say where in (150 ID's).
If you do where IN(?) that's always a single value.
framework takes care of the escaping
so where in ('1','2','3' ... '150')
Consult your framework's documentation.
I can't help you with that.
the framework can handle it, the question is can mysql
not sure if what I'm doing is innefficient if the 0-150 becomes like 1000
guess beta testing will tell. kk thanks
04:41
Morning \o
To: sec list
Dear Friends,

do you need pipe fittings and ball valves?

Amy
possibly the wife of Jack, the ball bearing salesman ...
Oct 31 at 19:33, by Joe Watkins
To: sec@php.net

Hi
Do you need bearings ?

Jack
05:24
Anyone participated for stackoverflow.com/election?cb=1 ?
Me
Any reward you can give for I've participated? Lol. Just kidding.
morning 2
o/
05:43
@rhavendc I think SO gives you an great reward, A badge named "Caucus" :-) enjoy it ..
o/
I want to add a new column to a table, my question: is there any possibility that it causes to occur any error, bug, warning, etc to somewhere of the whole of project?
we can't answer that
So there is a possibility ..!!
05:58
of course
ok that's enough .. I won't do that then !
that's not a sustainable strategy
do you edit the production version of this website live ?
I don't get your point but I think you wanted to know why I want to add a new column to the table .. actually that's not my own project, some programmers have written that project and I really don't know how it works, Now I'm just trying to improve it, but I should do that without any possibility of occurring any new bug.
that's ... not what I asked ...
> but I should do that without any possibility of occurring any new bug.
this seems like a strange thing to say
why wouldn't you just test the changes before you deploy them ? unless you are editing a live (production, deployed) website ...
posted on November 15, 2016

New Cyanide and Happiness Comic

06:17
@JoeWatkins Ah now I see what you asked in your last question. and yes, I'm working of a live website, I mean it is on the server now and users are using it.
there is your problem ... that is a terrible idea
@Shafizadeh Don't you have same site in local ? :O
not really .. my company is shit in getting backup ..!
they usually apply their new codes on the online version and we never have a complete backup of the project
So there is no chance to test your work until you make it live!
06:33
@BarneyStinson Can you please tell me what's the meaning of "make something live" ?
06:44
Hi can someone help me understand difference in outcomes in problem below:
function someFn() { $demanded_qty = $this->get_highest_demand()->Quantity; // returns 10 }
while, function someFn() { $this->demanded_qty = $this->get_highest_demand()->Quantity; // returns std obj }
@Shafizadeh It means that site in production / on server
@Shafizadeh seriously, it's a terrible idea ... you need to be able to run the site in an isolated development environment, so you can test changes ...
it takes almost nothing for a user to decide that a site is broken, and never come back ... it is never worth trying to change production websites ...
@JoeWatkins I agree .. but you should say that to my chief ..!
@JoeWatkins you are right
@BarneyStinson thx, got it
@Shafizadeh of course I'm right, and it's your job to tell your chief, not mine :D
I will :-)
07:07
@AbhishekSinha $this->get_highest_demand()->Quantity; is the same in both functions, so there is no way it will return different things. How do you come to the conclusion that it gives 10 or std obj? How do you access/inspect the return value?
also good mrnongn every12
@Gordon Yo ..!
@Gordon "12" is a typo. you meant were 11 (which refers to room 11), right?
The outcome is surprising me as well. This is the function. private function get_highest_demand() {
if ($this->databaseConnection()) {

$query = $this->db_connection->query("SELECT $this->top_buy_table.OrderId, $this->top_buy_table.Price, $this->top_buy_table.Quantity FROM `$this->orders_table`, `$this->top_buy_table` WHERE $this->orders_table.OrderId = $this->top_buy_table.orderId ORDER BY $this->top_buy_table.price DESC LIMIT 1");
$rowCount_Qty = $query->rowCount();
if (!$rowCount_Qty) {
return false;
@Shafizadeh :)
I am running print_r() to check returned value -> $order_matching = new Orders();
$refresh_orders = $order_matching->OrderMatchingService();
print_r($refresh_orders);
Alright I got that. This line 'return $this->demanded_qty = $query->fetchObject(); ' in the get_highest_demand() was the problem. I changed it to 'return $highest_demanded = $query->fetchObject();' and it is returning correct value. Thanks anyways!
07:30
$order = Mage::getModel('sales/order')->getCollection()->addAttributeToFilter('designer_i‌​d',array('nin'=>'9'));
above code display all values expect "designer_id=9"
but i want to display all values with designer_id=9
07:42
@Shafizadeh you really need to migrate your company to version control
do you have a local computer, which could act as a server?
the best option would be to set up about.gitlab.com locally
of course you could go with a lot less resource-heavy solutions: gitolite.com/gitolite/index.html, but that will have command-line-only interface
Morning 11
Finally getting that hair cut today.
@Sean about time. you look like a yeti
@Gordon :D It is pretty bad. You can kinda make it out here
@Sean you grabbed that kitty
He's a fan of being wrapped up. Picked up.. not so much
07:55
@Sean That cate is magnificent!
@tereško yes we have a computer which can be used as a server ..! And yes, I highly recommended them to implement a (as you said) version control, they have told they will think about it and likely do that for next project. Noted that they don't want to use such services like github or bitbucket (because of some security reasons).
both gitlab and gitolite are installed locally
Hello All Friends.... How are You ?
i am new here so please can you help me or guide me please ?
@tereško good to know .. then I guess I can recommended it too !
@Shafizadeh @tereško @AbhishekSinha hello friends....
07:59
\o
1 message moved to Orphan GIFs
assuming I want to run an Android game on Linux, what would I use?
@Gordon virtual machine
@tereško virtual machine with what?
08:03
with android
it is a complete OS .. well .. distro
@tereško hmm, worth a shot. thanks.
@Shafizadeh by the sound of it, you are working in (what's in LV called) "web solution agency". Lot of small projects, short deadlines.
@tereško :-) ..! the projects we are working on aren't small at all ..! this current project has taken 1 year so far (it's almost done though)
@Shafizadeh year is actually relatively long. I was thinking more along the lines of 3 months.
22 messages moved to bin
08:19
Morning
@PeeHaa Hello son
morning PeeHaa
Yo dad
linus
@Wes That's not it, it's turned off
morning
08:21
Good morning
Good mooning
salathe o/
Allo
08:39
@tereško hi
can I somehow use lxr to tell me at which version a function was defined? Something more convenient than clicking through the versions manually
Anonymous
monmmeugf
08:59
Do you add a docblock above the namespace or the class definition? (Or both o.o)
Class
09:17
yomin
Anonymous
yo joe
morning
is there a macro for inserting the key and keylength into a hashtable? same for the value?
doesnt look like it judging from browsing lxr
09:39
I don't understand ?
Good morning everyone
Hello Zgrfdjjj.
Mornings
09:50
@DaveRandom You'll be ready for pq-2.1.2 for PHP-7.1? :)
@m6w6 let me just double check that it builds without that #include change when I use the makefile correctly, will do it right now
awwwsome
Raj
Raj
can any one suggest me how to implment text to speech in php
Search for "php tts" (https://www.google.com/search?q=php+tts&lr=lang_en)
• Using Google Text to Speech API - PHP - Amit Agar… - 26 jun. 2012 - Google offers an undocumented text to speech API that help you transform text into v… (https://ctrlq.org/code/19147-text-to-speech-php)
• Best Text-to-Speech Demo: Create Talking Avatars… - Try SitePal's talking avatars with our free Text to Speech online demo. Our virtual characters read… (http://www.oddcast.com/home/demos/tts/tts_example.php?sitepal)
• PHP Text to Speech Class: Generate speech audio t… - This class can generate speech audio to say
09:57
ugh, phpclasses :-(
We should have the ability to block certain results in the google plugin /cc @PeeHaa @kelunik
phpclasses, w3schools etc
We should just disable the plugin.
... :-P
I never look at the results, they're just spammy.
I want to develop a online word processor
I have found this one
I have downloaded this
I have written the following code :
But I am getting the following error
Fatal error: Uncaught exception 'Exception' with message 'Could not find file '/autoload.php'. It is generated by Composer. Use 'install --prefer-source' or 'update --prefer-source' Composer commands to move forward.' in C:\xampp\htdocs\PHPWord\bootstrap.php:22 Stack trace: #0 C:\xampp\htdocs\PHPWord\simple.php(2): require_once() #1 {main} thrown in C:\xampp\htdocs\PHPWord\bootstrap.php on line 2
How can I remove this error ?
Please help me
the error message says what you need to do
10:05
@kelunik You're pretty much alone last time I checked :)
Just tell me how to recover this
sudo please fix error
Composer ftw
@SagorAhmed the error is thrown by PHPWord itself (look in Bootstrap.php), you need to install PHPWord via Composer.
I would but i cant watch at work :(
10:10
I am because I can at work :p
Listening, not watching
I guess you're a developer at work though, i'm not lol
and the internet is locked down a lot :(
Working for the MOD has its benefits, but internet usage sucks lol
I need some help :(
Heh, I was SC once
10:11
@MarkPhillips Management of Departments?
Ministry Of Defense
I have a variable called $term - $term can contain strings as "Verträge" or "Vertraege" or "Über" or "Ueber"
I wanna search for words that contain "ä,ö,ü" and take the whole word and duplicate it with "ae,oe,ue"
that means $term = 'Meine Verträge sind' would be transformed towards = 'Meine Verträge Vertraege sind'
Are there any useful functions for that? Or do i have to write thta on my own?
Management of Departments sounds better
s/thta/that
hehe, i guess @FlorianMargaine :)
10:18
!!imdb garden of words
The Garden of Words (2013) [ imdb.com/title/tt2591814 ] - A 15-year-old boy and 27-year-old woman find an unlikely friendship one rai… [♥ 7.6]
Sort of thing @PeeHaa watches
I watched Imperium last night, what a waste of 2 hours that was.
It doesn't work @m6w6 and the current approach is a hack. I will try and get on IRC later and find out what I'm doing wrong from people who actually understand how it works instead of just pushing buttons until stuff happens.
10:20
watch animes
you'd almost be never dissapointed
not really been into anime
I cannot enjoy a film if i have to read subtitles.
there are dubs :P (except a few)
that's true
Recommend me one :)
umm... 'your lie in april'
To install the defined dependencies for your project, just run the install command.

php composer.phar install
I am running this command
php composer.phar install
10:24
aka. Shigatsu wa Kimi no Uso
But nothing happens
these dubbed?
@SagorAhmed have you downloaded the composer.phar ?
@MarkPhillips yep
alright, i'll check it out ty
What is composer.phar ?
have you followed the instructions?
(probs best he reads the getting started guide)
yep ^^
yes i have followed instructions
10:26
do you have the composer.phar file present in the project root?
So you did 'php composer-setup.php --install-dir=bin --filename=composer'? etc?
10:44
TIL jQuery converts JSON strings stored in data-* attributes into objects if possible. Weird.
!!giphy magic
Magic mike confirmed to ruin room 11, the changes of actually getting the right giphy result for that is 0 to none
should hard code it into the plugin
Wow, I've been using w a $variable for real for the first time and it didn't segfault!
11:24
Hi All
I need to Exclude specified days between 2 dates and get a final date
any help will be highly appreciable
hi guys, is there a simple way to display an error message if the page takes longer than 30 seconds to load?
have I missed anything?
Anyone in here knowledgeable regarding the OpenSSL Commandline utility?
@ChrisCampbell well, there is set_time_limit(), which will cause 500th error
as in error 500
ideally we would like to control the next action
11:38
yes
you can set what user sees, for each error code
would it be set_time_limit() or die
?
12:10
set_time_limit() can be surprising
Why would a page take >30 secs to load?
i.e. what is it doing?
for eg. flights check
background worker?
sure that is optimal
but there are dozen of developers who doesn't even know what does that mean
people have varied skills
sometimes this happen when there is no senior developer who should be named senior developer
in a team
and then cames this one who earns this and has strong skills and then he tries to refactor or find another job :)
so the set_time_limit() is being left for a long time in a code
set_time_limit() doesn't help you with this
it only applies a limit to how long a single PHP script is executing
which is not what you are doing, presumably
You need to give the user feedback that something is happening, not just leave the page loading for 30 seconds
flush all the things \o/ :P
12:21
which might also be more than 30 seconds because of the way set_time_limit() works on different systems
10 mins ago, by DaveRandom
set_time_limit() can be surprising
yeah, I know that, don't listen to me today
Not serious btw
@brzuchal Only today? :P
30 sec sometimes help in XHR because there were time when jQuery and all kind of AJAX requests died after 30 sec so there was no sense to run PHP script longer
@PeeHaa I think so... I don't know
@DaveRandom I hope there will be time when set_time_limit() can be removed
12:25
@brzuchal current plan for object types ?
@brzuchal In favor of what?
I doubt that, also sometimes it is useful. Just not the magic hammer it gets presented as sometimes.
@JoeWatkins I've send @Danack request to review RFC and waiting
excellent
@PeeHaa why do we need to controll the time at all?
12:28
@brzuchal Because sometimes you need to keep it in check
there are two types of executions AFAIK: per request and until die
Think about shared hosters. WOuld be pretty bad if they let their crappy workpress clients go wild
oh yeah workpress - I hate it
ok, I agree controlling time is required for shared hosters
they even sometimes run cron jobs by http requests periodically from another requests with time set when shared host has no cron tasks
thats weird
it's not just about shared hosting
with no time limit, and no tcp timeouts, it's very easy to bring down a server ...
do other languages have also somethink similar like set_time_limit() ?
12:42
well what they have is tight integration with their servers
we don't
we needed some independant way to kill a process that does not rely on the configuration of the server ... other platforms, java/.net whatever, you just configure the server you are using ...
what is the correct way to convert a zend_string to a zval in order to use it with zend_hash_str_update?
ZVAL_STR(zval*, zend_string*)
after successful update, addref
tl;dr do we need set_time_limit()? Yes. Should you use it for anything? Probably not, instead you should configure your web server correctly or write better code.
Dear @StackOverflow users, You may experience WebSocket errors over the next hour as we beat the hell out of them in the name of science.
fyi
that zval* can be on the stack gordon
@JoeWatkins with zval* being a null pointer or do I have to create that with MAKE_STD_ZVAL first?
sorry if noob questions
12:46
there's no make_std_zval in php7
Gordon sighs
    zval tmp;

    ZVAL_STR(&tmp, zend_string*);

    if (zend_hash_str_update(...)) {
        Z_ADDREF(tmp);
    }
I'm so bad at using chat, sorry about that ...
thanks much
that's what I meant by it can be on the stack
the refcounted thing (string) is on the heap, so the zval on the stack is only temporary ...
it should be zval tmp not zval* tmp?
12:48
zval tmp; <- stack allocated
zval *tmp; <- heap allocated, or pointer to stack allocated zval (ie &(zval))
gotta get wife from work, lata
13:07
o/
13:20
Hello Guys,
Anybody have any idea how to do Paypal recurring payment with 2 trial periods
2
I'm using there API
PHPNE tonight \o/
Anonymous
@Sean Do you all just compare fake tans? ;)
@JayIsTooCommon Well, first we need to mine for the coal to power the room
Anonymous
:P
13:36
evenin
13:50
Has anyone, by any chance, written something that takes the output of your php -i, puts it into the xdebug wizard for you, and downloads the relevant tar file for your distro? Useful for headless
=== Total 471 memory leaks detected ===
Are you leaking again?
I must have some older build of 7.1 deployed in production…

« first day (2222 days earlier)      last day (2952 days later) »