« first day (1772 days earlier)      last day (3170 days later) » 

12:32 AM
@ircmaxell Sure, I'll just follow a similar format to the random function one.
Will look at it later tonight or tomorrow morning.
 
 
2 hours later…
2:03 AM
@Trowski sweet! Thanks!
 
> Two days ago the police came to me and wanted me to stop working on this. Today they asked me to delete all the code from GitHub. I have no choice but to obey.
they're gonna have some trouble censoring all the forks ^^
 
2:58 AM
@marcio Looks like they already are having trouble censoring the master branch ;)
 
traits are fatally flawed!
 
3:25 AM
?
 
Abe
3:36 AM
they are :P
 
 
1 hour later…
4:38 AM
@ircmaxell I keep getting reminders about this bug still being open. It's been left as a caution block for over a year now and no else has really complained about it. I'm going to close it as resolved for now. Feel free to re-open if you think something should be changed at this point. I personally think we're in a good place here.
 
What's a word for humanization? To attribute human qualities to something that is not .
 
@DanLugg anthropomorphism
 
That's it!! Thanks!
 
Abe
morning
 
morning @Abe
 
Abe
4:51 AM
last day of holiday :( #sadness
 
It's a holiday?
 
Abe
holiday that i spent working though. was hoping to finish a personal project but i didn't even get close to that
fml
summer holidays/vacation. english is broken, remember? :P
tomorrow at 9am meeting. clients got charged up by the vacation so they can annihilate my testies better! xD
 
@Abe Ah, gotchya. Though I wouldn't blame English for that one, particularly. Holidays usually are more about festivity whereas vacations are about traveling. But sure, both typically entail not working :)
 
Abe
<ins>my</ins> english :P
 
Ah, OK :D
 
Abe
4:56 AM
thought words were interchangeable. TIL
 
They can be depending your fault-tolerance levels.
I never really assume English isn't someone's native language when chatting online unless they explicitly inform me otherwise.
Some people are just really bad at grammar or typing or both.
So it's kinda hard to tell.
 
Abe
which is bad for me. i learned most of english just by chatting, and i learned it from other non natives #blindleadingtheblind
should really have a grammar refresh. forgot nearly everything from the school days
 
Yea, that probably has a lot do with the fact that English is the most commonly used language in the world. Chances are you're learning from someone that isn't a native speaker anyway.
Not that native speakers are statistically better at grammar.
In human language grammatical rules are so poorly defined. We learned this from trying to write good natural language parsers :)
It's no wonder we struggle with them!
 
Abe
5:11 AM
ehehe people that attempt to do that are so brave :P
 
@TanMath from that one guy
 
yesterday was epic, travis green now ... good me, pat pat ...
 
Abe
congrats :D
 
I've literally got issue holding me back from getting at least 4 files finished
got one*
 
Abe
by using php's C extensions api, can i inject a method into some class that is defined by some other extension?
or redefine a method?
 
5:34 AM
Methods are just function aliases. So you could include the extension files, but you'd probably have to overwrite their method/class entry locally. That might get kinda funky though.
Maybe just alias that one method locally?
Creates an interdependent functionality still...
 
@benlevywebdesign wait, so he was one person? and the other accounts were other people?
 
Abe
i mean without touching the original code, not by wrapping it or something. basically my intent is to add a hashCode() method to all php's predefined classes and extension ones @Sherif
 
@Abe Oh, well that sounds kinda like a magic method then. Probably wouldn't do that at the extension level.
Not sure, honestly. Been a long time since I've dug that deep into PHP internals.
 
Abe
nothing magic, i would call it explicitly
 
5:38 AM
Maybe @JoeWatkins would know.
@Abe By magic, I mean that, much like PHP's magic methods, it is called internally.
 
Abe
yeah i don't want that. I would use it with:
class MyMap{
    function set($key, $value){
        $this->storage[$key->hashCode()] = $value;
        // $this->storage[$key] = $value; // this is magic, i don't need this
    }
}
(new MyMap)->set(new Exception, new ArrayObject);
 
Hmmm, I don't even know that a class will be able to do that without modifying the extension code or at least registering the PHP_METHOD for each of those extensions.
 
Abe
iirc with classkit you can do such things
 
Classkit?
 
Abe
it's an extension made by Sara Golemon
 
5:46 AM
Oh, wasn't that replaced with runkit?
 
Abe
oh i don't know
 
Which, last I heard, is severely under maintenanced and was moved to some github repo
But, yeah, Sara's runkit was more of an experiment than something you should be doing in production. So anything it did I wouldn't really want to rely on for production code.
I'd imagine it somehow modifies the internal API macros lxr.php.net/xref/PHP_TRUNK/Zend/zend_API.h#69
Though I have no idea. You might want to dig into the source
 
Abe
yes it's a good starting point
consider that i don't even know c. i'm in the process of starting to learn it :P
 
@Abe That happened to me about 9 years ago when I found a bug in PHP that annoyed me and I got tired of waiting for 6 months on someone else to fix it. So I decided to actually learn C and fix it myself.
 
Abe
eheheh :D
 
5:50 AM
"Need is the mother of invention" ... and all of that.
Or was it necessity?
 
Abe
so true
 
Anyway, someone gave birth to invention. We know that much!
 
Abe
apparently it's necessity but both are used. in italian it's something like "necessity inspires engineering" but it's actually different and i don't think the literal translation would work, because it's "necessity sharpens engineering" i love how way of sayings evolved in different languages :D
 
That's why they're called proverbs, I suppose.
 
Abe
yes, proverbs. i found out that nearly every italian proverb exists also in english, probably because of latin influence that both languages have. it's so amusing
 
6:13 AM
@Abe well ... there's no base class ... you could do it, but since nothing extends stdClass you would need to intercept a bunch of places in the engine ...
it would be smarter to add a virtual method
then you just need to overload a couple of opcodes, possibly one
 
Abe
and i can do that with some code fitting in an extension? or it's engine changes?
 
from an ext
 
Abe
oh, cool
 
the same kinda thing niki done for scalar methods thing
 
Scalar methods?
Did you mean scalar typehints or is this something else I'm not aware of?
 
Abe
6:25 AM
and i can also pretend that an existing class implements an interface? like adding "implements Instance" to predefined classes such as Exception?
 
6:45 AM
hey
 
oh, scalar objects. I see. I got confused by scalar methods.
 
Abe
btw, i appreciate the effort, but i can only think that's not a good idea
current scalars should just be actual objects, imho
by turning scalars into objects the only thing that would break BC is byte offset assignment on strings $string[3] = "x"; and it's not a big one
if you don't consider that, they can be made immutable objects without breaking anything, am i right?
 
7:07 AM
mornin'
 
Friends I have a problem
$makenew_or_useold = mysql_query("SELECT * FROM `Vote` WHERE `VoteID` = '".$_SESSION['ID']."' LIMIT 1;");
$mos_error = mysql_num_rows($makenew_or_useold);
if($makenew_or_useold == 1) {
$mos_result = mysql_fetch_array($makenew_or_useold);
$mos_result = $mos_result[0];
$link = "$mos_result";
}
else {
echo "ID: ".$_SESSION['ID']." Username: ".$_SESSION['username']." Instagram: ".$_SESSION['instaUsername']." Date: ".$today." IP: ".$ip;
$makenew_vote = mysql_query("INSERT INTO `Vote` (`ID`, `Username`, `InstaCredit`, `IP`, `VoteID`, `Date`) VALUES (NULL, '".$_SESSION['username']"', '".$_SESSION[
Its the important:
echo "ID: ".$_SESSION['ID']." Username: ".$_SESSION['username']." Instagram: ".$_SESSION['instaUsername']." Date: ".$today." IP: ".$ip;
$makenew_vote = mysql_query("INSERT INTO `Vote` (`ID`, `Username`, `InstaCredit`, `IP`, `VoteID`, `Date`) VALUES (NULL, '".$_SESSION['username']"', '".$_SESSION['instaUsername']."', '$ip', '".$_SESSION['ID']."', '$today');");
if($makenew_vote == 0) {
echo "לא הצלחנו לצור הגרלה עבורך";
}
And the error is:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in
 
1. use cntr+k when pasting code
2. dont use mysql_* funtions
 
I know about mysql_* but It's for trys
 
Abe
use pastebin.com / nopaste
 
echo "ID: ".$_SESSION['ID']." Username: ".$_SESSION['username']." Instagram: ".$_SESSION['instaUsername']." Date: ".$today." IP: ".$ip;
$makenew_vote = mysql_query("INSERT INTO `Vote` (`ID`, `Username`, `InstaCredit`, `IP`, `VoteID`, `Date`) VALUES (NULL, '".$_SESSION['username']"', '".$_SESSION['instaUsername']."', '$ip', '".$_SESSION['ID']."', '$today');");  //line of error
if($makenew_vote == 0) {
echo "לא הצלחנו לצור הגרלה עבורך";
}
 
7:09 AM
Õo
 
3. you do not need to insert something in all columns
4. there is NOW() and CURRENT_TIMESTAMP in SQL
 
yes, I know this but I need inset $today to Date
 
5. what happens if my usertname begins with ' ?
 
username is Session and i check them
him*
sorry for my english :/
13 years old [:
 
7:15 AM
> Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in
use an editor with syntax highlighting, you have wrong number of parentheses in that line
 
The value of $_SESSION['username'] is test123
You can show me where the problem in the code?
ohh!!
Here:
 
the problem is in how you assemble the sting here
$makenew_vote = mysql_query("INSERT INTO `Vote` (`ID`, `Username`, `InstaCredit`, `IP`, `VoteID`, `Date`) VALUES (NULL, '".$_SESSION['username']"', '".$_SESSION['instaUsername']."', '$ip', '".$_SESSION['ID']."', '$today');");  //line of error
 
'".$_SESSION['username']"',
I changed to: '".$_SESSION['username']."',
Thanks for help (:
At what age did you start programming?
At the age of 10 I knew HTML (: because my brother
And at the age of 9 I knew VB.NET (:
I have question in sql
someone can help?
I want select the big values of VoteID
 
7:31 AM
Wow, that was the fastest response I've ever gotten from a VC in my life.
 
7:42 AM
http://www.w3schools.com/sql/trysql.asp?filename=trysql_select_top_percent&ss=-1
I want Select first the big values of "Portal code".
Example:
Portal Code:
1. 003
2. 013
3. 000
4. 879
5. 462

To:
1. 879
2. 462
3. 013
4. 003
5. 000

How can I do it?
 
@UnderPhp There's a keyword that you're asking about here. Your hint is that it has something to do with the order of things or sorting things. Take that hint and start looking in the MySQL Manual for how to get what you want. Then spend a little time writing code to see if you can get there.
Whatever you do just stop going to w3schools. Really, it's about the worst possible way to learn how to write code.
 
@UnderPhp please DONT USE W3SCHOOLS to learn anything
 
7:57 AM
@tereško WRONG ! w3schools is one of the best
 
please don't troll
 
@tereško why it is not good ??
 
because it is filled with terrible example, terrible practices and even worse materials
also, it has NO connection to w3c
 
But I think for who is novice, it is very good !
 
@Sajad so, you think that it is alright to teach children that earth is flat?
 
8:00 AM
@Sajad Notice that w3schools never provides you any external links or references to back up what they're saying. Their entire modus operandi is to keep you inside of their walled garden so that they can generate more traffic. What they teach you is what to think. Not how to think. That is not promoting learning. Just repeat traffic.
For a novice, who has no knowledge at all, that is especially bad, because they don't know what they don't know.
 
@Sherif anyway I used of it and I like it !
 
that is a horrifying attitude
 
@Sajad I'm sure you have your reasons to like it, but have you ever asked yourself, how much more or less you like it in comparison to other sources of learning?
To like something is not enough. To know why you like something over something else is far more useful.
If all you know is one thing surely you have every reason to like that one thing. If you know many things you find fewer and fewer reasons to prefer them all.
 
Hi all
SELECT MAX(PostalCode) FROM Customers WHERE (PostalCode REGEXP '^[0-9]+$');
doesn't work...can't tell what is wrong with the syntax.
 
what error do you get?
 
8:07 AM
Syntax error (missing operator) in query expression '(PostalCode REGEXP '^[0-9]+$')'.
 
@Sherif I know what is your mean, yes, other sources are also good, But w3school is really clean, and its english text is formal and I can undrestand it. and I say again, there is several perfect sources, like php.net
I used of xampp 1.6.8 and the routing of my website was good, I install xampp 5.6.8 now and the routing of my website won't work, why ?
 
@Sajad You and I have a very different perception of what is clean.
 
@Sherif I mean is UI
 
@Sajad You, you haven't drawn me any closer with that.
 
@Sajad you are telling me, that you think that knowledge is LESS important to you, than graphical decorations
that is somewhat despicable
 
8:11 AM
@tereško knowledge is not less important of design, but design is important too!
 
@DonLarynx Why are you even using a regular expression there?
 
18:45
agasiff
 
and your routing probably doen't work because you have not enabled mod_rewrite
 
@tereško here is my error:
Not Found

The requested URL /myweb/islamic_sources/15244/آداب سلام كردن was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 Server at localhost Port 80
@tereško still you are believe my mod_rewrite is not enable ?
 
yes
 
8:13 AM
@tereško ahan, and do you know how should I enable it ?
 
look at the access logs
it should be in apache config
 
@tereško where is 'access logs' ?
aha ok
 
@Sherif I want numerical values from a VARCHAR
 
.. this is why you shouldn't use xampp: you have no idea how any of this actually works
 
@DonLarynx Yea, I get what it does. I'm asking why you'd use it in a field that is designated PostalCode. i.e. it should already provide the attribute of the entity you have defined in your schema.
 
8:15 AM
@Sherif some postal codes have letters in them
 
@tereško I use of xampp just in local, I will not use it on my vps
 
@DonLarynx And why do you not want to select those postal codes which have letters in them in this particular query?
 
@Sherif because i want the maximum numerical value
 
@DonLarynx the MAX() requires a GROUP BY
 
8:16 AM
anybody know what are this two error at the bottom of this photo :
 
@Sajad copypaste one of those messages in google
 
aha ok
 
@tereško Wait, what? Since when does MAX require a GROUP BY? MAX happens before any JOIN or WHERE clause is done.
 
@Sherif sorry, my mistake
 
In the query plan it's usually apply SELECT, then WHERE, then GROUPing then HAVING, then SORTING iirc
@tereško ahh, ok
 
8:20 AM
I am still unsettled by the previous conversation .. the red fog isn't completely gone yet
 
ok ! I want to remove this xampp and download a new one, which version of it is fine ?
 
Oh, yea, that was quite an unnerving conversation.
 
SELECT MAX(VoteID) AS jnr_id FROM voteslist
work
 
@Sajad why are you not trying to fix the current one?
 
@tereško It is very complicated
 
8:21 AM
 
@tereško I'm guessing w3schools never taught him trouble-shooting?
 
6 mins ago, by tereško
.. this is why you shouldn't use xampp: you have no idea how any of this actually works
 
I think current version is not compatible with my laptop :-)
 
It was too busy fixing it's UI from 1995
 
@tereško :-) !
 
8:22 AM
if I want calc all the numbers?

example:
`VoteID`:
1. 5
2. 2
3. 1
4. 1
5.
5
 
@tereško If I don't use xampp, so how run my php codes in windows (laptop)?
 
in a virtualbox, like most of regulars here
 
5+5 = $result1
2 = $result2
1+1 = $result3
 
@UnderPhp Well, you were clever enough to find MAX. What keyword do you think you'd look for when you're trying to add a bunch of things together?
 
@tereško virtualbox has apache ? mysql ?
 
8:23 AM
@Sherif I dont know what do you mean
my english is no the best..
 
@UnderPhp you should learn it :P
 
@UnderPhp Well, the result of the highest sorted element is it's MAX. What's the result of adding things together?
 
I am just 13 years old and I don't from USA..
 
You never learned that the product of an addition operation is its sum in school?
 
8:26 AM
Ho, I can do it with count yeha?
 
Hmmm... grade school must have severely gotten more lax since I was last in one.
 
@Sajad hen you dont know what something is, you go to wikipedia for a quick read-over. Usually just reading a summary at the top of the page is enough: en.wikipedia.org/wiki/VirtualBox
@UnderPhp please look at dev.mysql.com/doc/refman/5.5/en/group-by-functions.html and see which of those function might do what you want
 
@UnderPhp You can't. Counting is about enumeration not aggregation.
 
@tereško ok
@Sherif so how can I do this?
I just want select top user votes/points
 
@UnderPhp Well, @tereško already gave you a head start. Think about what I just said and then read that link. You were clever enough to find MAX on your own. Let's see if you can be just as clever here ;)
 
8:31 AM
I don't find
 
sometimes I feel really old
 
lol
Why do you feel old?
 
that song is from 1996
 
@tereško do you like metal ?
 
Friends helped me.
I want to retrieve the rows that most column `VoteID`
 
8:36 AM
some of it yes, also post-rock and baroque music
 
I like
songs sang by female singers or pitbull
 
@HassanAlthaf like this one: youtube.com/watch?v=hcND9i1pSRo ?
 
@tereško dunno
only hot women
Ariana Grand
 
@HassanAlthaf does she actually have a voice? Because all I hear is auto-tune.
 
lol
ye
Ariana Grand - Break Free
 
8:43 AM
yes, that was one I clicked on
pure auto-tune
 
@tereško tell me the first favorites music ?
first = best
 
I don't know
also, I'm gonna make a quick run to the shop .. need something for breakfast
 
do you know backstreet boys ? or teylor swift ?
 
taylors wift
is like
 
I have heard the names
 
8:45 AM
@tereško buy coffee :-) it is really Delicious
@tereško ok
 
Mornings
 
How can I sort oldest to youngest?
SELECT *
FROM `voteslist`
ORDER BY `VoteID`
 
@Sajad I can name you genres, that I tend to listen to, if that's what you are asking: post-rock, progressive-metal, doom-metal, pagan-metal, experimental-metal, depressive-rock ... the should cover about 90% of what I tend to listen to
@UnderPhp you can set the direction for the ORDER BY statement
ok .. now .. shopping
I'll be back in about 20min
 
Now its work..
@tereško How much experience do you have?
 
9:01 AM
@tereško your style is really different with me, I have metal :-)
I hate metal *
 
9:20 AM
@UnderPhp I need additional 749xp to reach level 8
 
I have error
<?php
include "web/config.php";
$top_users_c = "SELECT * FROM `voteslist` ORDER BY `voteslist`.`VoteID` DESC LIMIT 0,15;";
$top_users_q = mysql_query($top_users_c);
$number = 1;
?>
	<div class="panel vote-explain-div">
  <!-- Default panel contents -->
  <div class="panel-heading vote-explain-title">15 המובילים ביותר</div>
  <table class="table">
	<tr>
		<th>#</th>
		<th>שם משתמש</th>
		<th>מספר הצבעות</th>
		<th></th>
		<th></th>
	</tr>
<?php
while($top_user = mysql_fetch_array($top_users_q) && $number<=15) {
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /x/x/x/x on line 166
line 166 = while
 
most likely because the query failed
what happens when you run SELECT * FROM voteslist` ORDER BY voteslist.VoteID DESC LIMIT 0,15;` directly ?
 
@tereško work.
 
you could put var_dump(mysql_errort()); before that while and see what it tells you
 
9:31 AM
or
ok*
Fatal error: Call to undefined function mysql_errort()
 
sorry
mysql_error()
 
mysql_error
?
ok
string(0) ""
 
hmm ..
 
I was trying to find out if there is a word for when rocketships dumps their big thrusting rockets .. I searched "What is it called when" ..
first result
what is it called when batman skips church
 
heh
@UnderPhp try var_dump($top_users_q);
 
9:37 AM
resource(13) of type (mysql result)
what is mean?
 
it means that it should be working >:(
 
whats does it mean*?
 
@UnderPhp make sure that the warning is emitted on the first iteration
(add var_dump($number) inside the loop)
 
I think the problem is in the connection
 
the mysql_error() was empty
 
9:40 AM
@RonniSkansing You mean the booster rocket?
 
Yes I think
 
<= haven't used mysql_* function ins about 5 years
 
It's just called "dropping". I'm not aware of any other parlance for it.
 
like is there a special word for the process of dropping it
or maybe the process from the ground to the last one is dropped
 
@RonniSkansing ditching stage one?
 
9:41 AM
if i call to connecting 2 times can be error?
 
/me googles
 
but i called only 1 time :|
 
@RonniSkansing could happen to be playing Kerbal Space Program?
 
@RonniSkansing Apparently it's called Booster Engine Cut-Off (BECO).
 
@UnderPhp you got the first var_dump from the $number inside the loop?
make sure that inside the loop you are NOT overwriting $top_users_q
 
9:43 AM
yes, is 1,2,3,4,5....15
 
@Sherif I uninstalled it before really playing it =] thanks man, had trouble finding it
 
I am confused now
did you establish two connections to mysql, @UnderPhp
?
 
I have only 1 connection
 
4 mins ago, by UnderPhp
if i call to connecting 2 times can be error?
 
Where i can upload image to chat?
 
9:49 AM
there is an "upload" button
 
@UnderPhp You can't directly without more reputation.
 
@RonniSkansing Well, that's the process name. Apparently multi-staged rockets have BECOs and MECOs. Booster Engine Cut Off and Main Engine Cut off. The word itself you're looking for is jettison. That just means to throw or drop from an aircraft or ship.
 
[= Cool.
 
@UnderPhp what does this tell you: codepad.org/f7AUwmYE
 
9:54 AM
There's also VECO or Vernier Engine Cut Off
Those are all part of the processes commonly used in multi-staged rockets.
Interesting. Boeing and NASA engineers seem to have a lot of lingo in common.
 
@tereško bool(true)
 
nevermind
 
Neat, my deep-learning prototype actually came in handy for something :D
 
I have run out of ideas of how to find the cause for that error of yours, @UnderPhp
 
Ok, I Will re-builled (:
Thank you very mutch @tereško
 
9:58 AM
maybe try using PDO instead
 
I know little..
 
I linked a tutorial
 
How can i give you reputation?
 

« first day (1772 days earlier)      last day (3170 days later) »