« first day (2292 days earlier)      last day (2656 days later) » 

Wes
3:01 PM
@FélixGagnon-Grenier salt? salt works
 
Salt is why I'm here.
 
@FélixGagnon-Grenier Skate
 
@NikiC ping
 
3:16 PM
@Wes we may live in igloos, but we don't go to work with our salt bag
@MadaraUchiha I've fantasize on doing that for a long time now. never had a pair of skates I don't care enough about to actually do it..
 
mornign
 
mogguh
 
french politics against encryption because "terrorists use it"
 
evening room
 
3:26 PM
Thanks for testing cleverbot @Trucy @Gordon :D
 
Anonymous
hoi poo
 
@PeeHaa you're welcome :D
 
hey james
 
Wes
@FélixGagnon-Grenier you don't? we do. turns out we are more canadian than canadians. i'm not joking :B apart street cleaners that also have the salt task, many condominiums decide to buy salt bags yearly. in my case, about in november a salt bag magically appears in our garage. then someone has to spread it, sometimes it's me, but it's usually the kids :B
 
@Wes you don't get the point. Canadians don't need salt. They are one with the snow.
 
Wes
3:30 PM
lol
 
morning :-)
 
@Wes oh that, yeah of course we have those!
what I mean is, I won't be salting my way up to the bus stop
 
Wes
ahaha
 
but mostly what @Trucy says. gotta become one with winter
 
Wes
would pay to watch that @FélixGagnon-Grenier
 
3:35 PM
:D
 
It's pretty much the same here (living at 650m altitude), people have snow tires and are patient when you spin and have to maneuver back
 
Until yesterday, it had been getting into the 70s-80s (Freedom Units; that's 21-28 in commie units) where I am. " January "
 
@Dereleased Australia?
 
Florida
 
some people have all the lucks
 
3:46 PM
It sure makes me look stupid for having bought jackets
 
right, you're using freedom units, used in only 3 nations in the world :D
 
plus it thins the blood, so it gets down to 50 (10), and I'm chilly
 
'strayans use a logical unit system
 
next week I'm headed to India, where the temperature now is still basically summer
 
if($karigarid > 0)
{
echo "hi";
}

if($_REQUEST['add'])
{
echo "bye";
}
 
3:47 PM
@Dereleased I live at 650 meters (~1800 freedom feet) and it was 30°C (? freedomn degrees) in november
 
whats is wrong in this
it's not print bye
 
@Trucy That's crazy, but 650m is closer to 2100 freet I think... Survey says... 2132, nice!
 
@PrashantBhatt Because $_REQUEST['add'] is falsy (see [php.net/manual/en/language.types.boolean.php](php manual) )
 
@Trucy so what i have to do
 
what GET/POST args are you sending to the script?
 
user895378
3:50 PM
Hey @bwoebi ... back in the office today. Will be able to go through and respond to and incorporate your stomp client input later this evening. Just didn't want you to think I was ignoring you :)
 
:35274440
@Dereleased Post
 
what value are you passing in for field "add"?
 
@Dereleased that is button
 
try: if (isset($_REQUEST['add']))
 
@Dereleased not working with hthis
 
3:53 PM
is add a submit button or a regular button?
<input type="submit">, <input type="button"> or <button>?
 
@Dereleased on karigarid i am submit form and on add button am select date range records
@Dereleased <input type="submit" name="add" value="Submit">
 
does it submit normally or does it use javascript (i.e. form.submit())?
 
which?
 
@Dereleased onChange="this.form.submit();"
@Dereleased <select name="karigarid" onChange="this.form.submit();">
 
4:02 PM
@rdlowrey no worries, in recent times I learned about your intermittent unavailabilities :-P
 
@PrashantBhatt if you use form.submit() you will not get the value of a submit button (because it was not clicked and has no value). Depending on your usage you can either do <input type="hidden" name="add" value="yes" /> or you can give an id="submit_btn_add" attribute to your add button and then, instead of this.form.submit(), do something like document.getElementById('submit_btn_add').click()
 
@Dereleased ok i will try this
@Dereleased i have to use javascript function on submit
 
4:26 PM
Is the relative date still an issue?
!!remind Fix it at 16:00
 
@Sean I guess I'm late: Fix it
 
Yes, cool.
 
Anonymous
@Sean github.com/Room-11/Jeeves/pull/97 might be relevant
 
Anonymous
@Ekin what is lexicon?
 
@JayIsTooCommon you're a lexicon
 
Anonymous
4:31 PM
rude.
 
<3
 
@JayIsTooCommon dictionary :-)
Nothing else
/me just landed brb later
 
Anonymous
ah, what for? and landed?
 
It's a Greek word that means "of or for words."
(I thought it was Latin)
 
laters. sad though, it just so happens I am working on a project of document annotation platform, and was downright ready to take you on that "lexicon is only a dictionnary" part @Ekin
 
4:42 PM
!!en lexicon
 
lexicon (translated from Dutch)
 
Anonymous
!!urban lexicon
 
...not what I wanted
 
[ Lexicon ] 1) A collection of vernacular or terms related to a specific industry or group. 2) Some smartass' book of big words.
 
Googs lists 2:

1) the vocabulary of a person, language, or branch of knowledge.
2) a dictionary, especially of Greek, Hebrew, Syriac, or Arabic.
so it's a collection of words as it relates to something else
 
4:43 PM
said words are also normally (sometimes, I guess) organized in groups
 
"overloading" in the PHP lexicon is distinct from the same word in the C++ lexicon
 
> a dictionary, especially of Greek, Hebrew, Syriac, or Arabic.
interesting...
 
Gift is distinct (HIGHLY) in the lexicons of English, German, and Norwegian. HIGHLY DISTINCT
("present", "poison", and "married", respectively)
 
well, come to think of it, in language classes I attended, lexical field is a list of words, related to a subject
 
None of this is asking the real questions, though. Is a hotdog a sandwich?
@Jeeves is a hotdog a sandwich?
 
4:54 PM
@Dereleased It's a hot CAT.
 
...oh
I'm almost afraid to ask now, but
@Jeeves is a hot CAT a sandwich?
 
@Dereleased What kind of sandwich?
 
@Jeeves any
 
@Dereleased Nice. I just had an egg sandwich for breakfast.
 
@Dereleased your priorities. they're at the right place
 
4:56 PM
@Jeeves That sound nasty. Eggs are pretty gross.
 
@Leigh It is.
 
@Jeeves So why did you eat it?
 
@Leigh Because it looked good.
 
Can't fault that logic..
 
@Leigh Why are eggs gross?
 
4:58 PM
@NikiC I don't like them, except in cakes, then they're ok
 
Anonymous
lol
 
user895378
Eggs are delicious!
 
something something somebody's mother
 
Hah yea, your mother is an egg.
*was
 
5:12 PM
I didn't eat eggs for a year or so growing up because I'd been made to eat them, completely unseasoned and unaltered, for breakfast for a couple years. Even now, I really only like them if seasoned and ideally with cheese
 
Wes
gosh i hate modeling very abstract things
everything looks almost comical. especially the names
 
abstract class VeryAbstractThing { } // the most abstract
 
@Dereleased tell me they were at least cooked
 
@FélixGagnon-Grenier I mean, usually...
 
ewwwwwwwwww
 
5:13 PM
@Dereleased an interface is more abstract :P
 
Wes
it's not abstract enough unless it has a private final constructor @Dereleased
 
wat
does everybody see the skull? meta.stackoverflow.com
 
Wes
@FélixGagnon-Grenier don't you know? 3v4l.org/jfRra
 
abstract public function DoTheWork();
abstract public function TakeAnArgument($arg);
 
@FélixGagnon-Grenier yerp
 
5:15 PM
I guess discussion was getting out of hand, they had to cool everyone for an hour ;)
@Wes seems like a very bad good practice... :D
but I guess it's the only way to make sure people don't override your methods...
 
Wes
i've actually seen
abstract class A{
    private final function __construct(){}
    static function actualConstruct1(){}
    static function actualConstruct2(){}
}
just because
 
I hope it was actually named A. Because that's the best
private sealed final internal static abstract class MixingMetaphors { // ...
 
@Trucy The S is normally capitalised; 'Stralians.
 
@Danack Strayans
 
Wes
going to buy food. lata
 
you wouldnt believe the amount of gaming book formats out there. there is at least seven
 
Wes
@FélixGagnon-Grenier it's private anyway. child classes don't inherit it
you are only allowed to use it from within the class it is defined in. as such having final on it doesn't make sense
 
@Dereleased strayans - 14,000 results, stralians 486,000 results
 
@Wes it does prevent you from defining a public method with the same name in the extanding class, as your example
 
@Danack yeah but you didn't capitalize either. /me hides behind intellectual dishonesty
 
Wes
5:23 PM
@FélixGagnon-Grenier why would you need to do that?
 
@Wes that is precisely what I was asking myself :) glad to see even you can't see a reason!
ok laters, going to eat something
 
Wes
lata, too \o
 
5:38 PM
what's the link to the alternative lxr? lxr.php.net is out of heap space =/
 
thanks
 
5:54 PM
@Dereleased nice
 
Which reminds me I need to get lxroom11 up.
Working on it right now (^_^)
 
opline->opcode -= 3; YOU WILD
 
6:36 PM
@Dereleased /cc @Tyrael
 
@DaveRandom Check yo' email.
 
6:55 PM
posted on January 24, 2017

New Cyanide and Happiness Comic

 
@JayIsTooCommon lexicon is, a big dictionary of (most of the time) all the morphemes in a language or you could also say all the vocabulary of a language. Why'd you ask? :-) Also I didn't have the time to explain but I meant it's actually just a big dictionary in a sense cc @Félix
Also I'm in the south, in Antalya @Jay
 
Anonymous
@Ekin ah I see, just saw it in the PR for reminder :) nice, is that a good thing?
 
Uhm yes I still have to finish that one
Yep. I had fun with py to generate the lexicon I used there
But then I wrote a brill tagger aaand got distracted
 
Anonymous
7:13 PM
I meant is being in the south a good thing :p
 
mornin
 
Oh lol. Yes it's great :D @Jay
 
/cc @DaveRandom @PeeHaa view.email.microsoftemail.com/…
-_- :|
 
!!reminders
 
Registered reminders are:
• @⁠DaveRandom http://chat.stackoverflow.com/transcript/message/33706606#33706606 → Id: :33706826 → Saturday, 29th April 2017 12:01 (UTC) - Set by Gordon - Seconds left: 8181754
• bench pack() and unpack() in libdns → Id: :35268991 → Thursday, 26th January 2017 21:00 (UTC) - Set by DaveRandom - Seconds left: 178894
 
7:18 PM
:D
 
Haha... Why is it counting in Seconds though...
@Jeeves convert 8181754 seconds to days
 
@iroegbu What exactly did I say to think that.
 
seconds are teh thing yo
 
!!help
 
Built-in commands (* indicates admin-only):
 admin - Manage the bot's admin list. Use 'admin help' for details.
 *alias - Add a bash-style alias
 *approve - Approve the bot for talking in this room. Room owners only.
 *ban - Ban a user from interacting with the bot for a specified period of time
 command - Manage command mappings. Use 'command help' for details.
 help - Alias of 'command list'
 invite - Invite the bot to join a room. This can also be done through the chat web interface.
 *leave - Ask the bot to leave the room. Room owners only.
 
7:23 PM
!!google convert 8181754 seconds to days
 
Search for "convert 8181754 seconds to days" (https://www.google.com/search?q=convert+8181754+seconds+to+days&lr=lang_en)
• Convert Seconds to Days - CalculateMe.com - A second is the base unit of time. Originally, it was based on the length of the day, but it has si… (http://www.calculateme.com/Time/Seconds/ToDays.htm)
• Convert seconds to days - Conversion of Measureme… - Quickly convert seconds into days (seconds to days) using the online calculator for metric conversi… (http://www.convertunits.com/from/seconds/to/days)
 
7:43 PM
morning?
 
@mieburungdara morning
@DaveRandom heheheheh
 
hy @PeeHaa can you help me in count and fetch_assoc multiples tables?
 
Nope sorry. I'm not very good with php
8
maybe just ask your question and if somebody is here and wants to help I'm sure they will
 
8:04 PM
Some really lovely modern art there on the right side: php-lxr.adamharvey.name/source/xref/PHP-7.0/Zend/…
 
ok, hmmm...
i hope someone can help me, i have code like this

$weh = $conn->query("SELECT * FROM `like`, `akun` WHERE akun.active='1' AND like.like-timeline-active='1' AND like.like-timeline.time <= '".$today."' LIMIT 10");
if ($weh->num_rows > 0) {
// output data of each row
while($row = $weh->fetch_assoc()) {
foreach ($weh as $datah) {
$username = $datah[username];
$password = $datah[password];
$liketimelineinterval = $datah[like-timeline-interval];
}
}
}
but it doesnt work :(
 
it's funny. you'd thought @PeeHaa would have realized by now that they can't say stuff like that and go unnoticed.
 
@mieburungdara why are you doing both while($row = $weh->fetch_assoc()) { and foreach ($weh as $datah) {?
surely that foreach is in error, and you should be getting values out of $row instead of $datah
 
@mieburungdara also, learn to error reporting stackoverflow.com/documentation/php/3339/debugging/11471/…
you probably have a metric ton of warnings on that script run, about $datah[username] being undefined, and username not being globals, and who knows
 
8:20 PM
so, $weh = $conn->query("SELECT * FROM like, akun` WHERE akun.active='1' AND like.like-timeline-active='1' AND like.like-timeline.time <= '".$today."' LIMIT 10"); ` is fine?
 
I was assuming you hadn't just copied and pasted that. Where is $today defined?
 
@FélixGagnon-Grenier no, its a cron, i get the value of $username adn $password from database
 
Also, what database driver is this?
 
@Dereleased $today = date('Y-m-d H:i');
@Dereleased iam using innoDB
@FélixGagnon-Grenier hmmm ok :(
 
8:25 PM
$datah[like-timeline-interval]; <= this needs quotes
 
yeah that's what I meant by "username not being globals" ^
 
you should always be getting string offsets from arrays like: $array['this-is-in-quotes']
 
@Dereleased i fix it with your offer to use quotes but it still doesnt work
 
did you also removed the superfluous foreach?
 
And again, foreach ($weh as $datah) { makes no sense in your example. You already retrieved $row. I'm going to assume you're using mysqli_result::fetch_assoc. So, $row will have the data you seek
 
8:28 PM
also, enable error reporting, there could be hundreds of other error in there
 
@FélixGagnon-Grenier +∞ (when +1 just won't do)
 
ok i will try to use
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
im forget, hehe
:)
it say [Trying to get property of non-object in ] [if ($weh->num_rows > 0) { ]
 
if ( $weh && $weh->num_rows ) {
 
i cahnge it, but it still doesnt work hmmm :(
im very confusing :(
 
8:35 PM
if you wanted to be super complete: if ( $weh && $weh instanceof mysqli_result && $weh->num_rows ) {
but that wouldn't be the problem
what output are you getting vs what are you expecting?
for example, what do you see if you add this bit after while ($row = $weh->fetch_assoc()) {
var_dump($row);
exit;
 
it say [Unknown column 'like.like' in 'where clause'] when i use
if (!$weh) {
printf("%s\n", $conn->error);
exit();
}
 
> Unknown column 'like.like' in 'where clause'
 
can you query SHOW COLUMNS FROM `like`?
 
that seems pretty informative now, doesn't it?
 
show columns docs if you're not familiar
those column names might need to be wrapped in backticks (i.e. `like`.`like-timeline-active`)
 
8:41 PM
this is first code that work but it in one table
$weh = $conn->query("SELECT username, password, autolikeinterval FROM akun WHERE active='1' AND activelike='1' AND autolike <= '".$today."' LIMIT 10");
if ($weh->num_rows > 0) {
// output data of each row
while($row = $weh->fetch_assoc()) {
foreach ($weh as $datah) {
$username = $datah[username];
$password = $datah[password];
$autolikeinterval = $datah[autolikeinterval];

And then I split it to tables, now i want to use it in one query
COLUNMS like-timeline-active is from TABLES like
and
COLUNMS active is from TABLES akun
i change activelike to like-timeline-active when i split it
 
this might be relevant of your column names stackoverflow.com/questions/3168644/…
 
Field Type Null Key Default Extra
id varchar(128) NO PRI NULL
username varchar(255) NO NULL
like-timeline-active int(11) NO NULL
like-timeline-interval int(11) NO NULL
like-timeline-time datetime NO NULL
like-someone-active int(11) NO NULL
like-someone-interval int(11) NO NULL
like-someone-time datetime NO NULL
like-someone-name text NO NULL
like-hastag-active int(11) NO NULL
like-hastag-interval int(11) NO NULL
like-hastag-time datetime NO NULL
like-hastag-tag text NO NULL
like-popular-active int(11) NO NULL
 
9:02 PM
finally, my query works when i change it to $weh = $conn->query("SELECT * FROM like, akun WHERE active='1' AND like-timeline-active ='1' AND like-timeline-time <= '".$today."' LIMIT 10"); :D I feel Stupid, i think it nees . in middle table and colunms :(
thank everyone :*
 
That was a wild ride from start to finish
I'm worried about the possible cartesian product, but I also need to focus on my own job =P
 
@mieburungdara please learn to use prepared statements
also, dont store plain-text passwords
 
@tereško im still newbie in php, but i try to learn from basic :)
 
then look up "sql prepared statements" and "php password api"
 
9:37 PM
And "Cartesian Product" while you're at it. Good catch @tereško I had completely forgotten about the apparently plain text passwords
 
9:54 PM
Alright, who hacked my vendor's ticket site...
 
@Tiffany You did. Stop that!
 
Who me? Couldn't be!
 
10:25 PM
@LeviMorrison Same point as Rasmus, definitely in lua and Go _ is a discard placeholder var
@Jeeves What colour is the ElePHPant?
 
@Leigh Blue.
 
Close enough
@Jeeves What colour is Golangs gopher?
 
@Leigh Also blue.
 
Interesting...
So, @Jeeves what colour would a GoPHPer be?
 
@Leigh Cats can be various colors.
 
10:32 PM
-_-
 
NotSoCleverBot
dodges
 
10:50 PM
Can someone suggest me a good sql/database book?
 
@utdev Generic ANSI SQL, or like a specific type of database?
@FélixGagnon-Grenier Does someone here manage cleverbot?
 
Not used to try/catch. If I throw an exception, how should I handle it in my class?
 
@Jeeves is a hotdog a sandwich or not?
 
@bwoebi I don't think I'm a fan of the "Aerys-Generic-Response" header hack.
 
@Dereleased I see. Are you a human?
 
10:52 PM
My codebase does not have an exception handler :(
 
I would say generic sql but it could touch some differences between other popular databases
 
@Jeeves does that change the outcome?
 
@Dereleased In some ways, yes. You could lose an uncle, but it's not the same as losing your wife.
 
@Dereleased a few. more than a few actually, the list has grown somewhat over the last months
assuming that by "manage" you mean "code" and "deploy"
 
@FélixGagnon-Grenier Well yeah. Is it a group effort somewhere? I honestly have given less than 10 seconds thought to this in the past, not sure why or why not
 
10:53 PM
hmmm that should probably be in php the right way...
 
@Dereleased I believe it is
 
You should have at least one generic catch-all, e.g. if you index file were
MyFramework::run()
you would have at least this
 
@Trowski Ask @rdlowrey why he solved it that way. It's not very elegant, I agree…
 
try {
    MyFramework::run();
} catch (Exception $e) {
    // log this somewhere
    die('I MADE A WHOOPSIE');
}
 
@bwoebi I'll come up with some alternative and PR.
 
10:55 PM
and then add your various try/catch stuff around things that throw things
 
@Trowski We already have the makeGenericBody function … no idea why it isn't being used directly…
 
@Dereleased I want to catch if PEAR Mail is unable to send an email and put the error somewhere, but PEAR Mail has little in the way of error handling except Net_SMTP::setDebug, which I don't know if that will do everything I want it to
 
@bwoebi That's along the lines of what I was thinking.
 
perhaps there was some particular reason … better ask @rdlowrey first
 
!!> try { false; } catch { Exception $e; }
 
10:57 PM
[ 5.6.0 - 5.6.30, 7.0.0 - 7.1.1 ] Parse error: syntax error, unexpected '{', expecting '(' in /in/HFE96 on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ hhvm-3.15.4 - 3.17.1 ] Fatal error: Uncaught Error: syntax error, unexpected '{', expecting '(' in /in/HFE96:1 Stack trace: #0 {main} <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
pffffffft
 
try { /* something */ } catch (Exception $e) { /* do something else */ }
 
guess I'm trying dev environment
 
is the syntax
 
well, I wanted something that would default to false, so that it would force the catch, so I could see what actually happens when it catches the exception
because I literally do not know.
 
10:58 PM
false; won't kick off an exception; throw new \Exception("OH NO");
 
!!> throw new \Exception("Radda");
 
[ 7.0.0 - 7.1.1 ] Fatal error: Uncaught Exception: Radda in /in/deR35:1 Stack trace: #0 {main} thrown in /in/deR35 on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ hhvm-3.15.4 - 3.17.1 ] Fatal error: Uncaught exception 'Exception' with message 'Radda' in /in/deR35:1 Stack trace: #0 {main} <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ 5.6.0 - 5.6.30 ] Fatal error: Uncaught exception 'Exception' with message 'Radda' in /in/deR35:1 Stack trace: #0 {main} thrown in /in/deR35 on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
@Trowski and in addition it's an always run filter… so … :-/
 
try {
    // something here may trigger an exception
    throw new \Exception("Radda");
} catch (\Exception $e) {
    // now do something with it.
    echo "BooBoo: ", $e->getMessage();
}
 
@bwoebi Yeah, I'd rather avoid that. Most cases where it's used can be replaced by something similar to $response->end(makeGenericBody(HTTP_STATUS["BAD_REQUEST"]));
 
11:00 PM
and getMessage() is a method of Exception?
 
@Tiffany Yes
 
I need to copy and paste chat log to notepad so I can leave at a decent time
 
@Tiffany Just send yourself this link: php.net/manual/en/language.exceptions.php
 
no, I need the chat log so I can re-read it and get my brain up to speed in the morning cause I'll come in and go "whaaa" unless I have something that spells it out exactly
manual page won't be enough :P
but I'll add it to my paste
hometime o/
 
11:08 PM
o/
 
Is it wrong to reply to a bug report on OSX with:
 
:D
probably. yet I wouldn't let go of the opportunity
 
hmm ...
guys, what are the limits of memcached?
how often can it be hammered per second?
20'000 calls/s
more?
(assume unlimited size cluster)
 

« first day (2292 days earlier)      last day (2656 days later) »