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

12:00 PM
The use of an uninitialised variable
 
Who says it's uninitialized?
 
What do you mean by "implicitly allows null" then?
 
null can happen for various different reasons. IME uninitialized variable is not even close to being the common one.
@DaveRandom $abc = 1; $abc = null; is not an error.
 
YouTrack is overloaded. :-(
 
Oh well that's just dynamic typing. I accept its weird if you aren't used to it but it's not like PHP is the only common language that does that
 
12:01 PM
Never said it is.
 
null is a tricky one, I'm not even sure what I think about it - a lot of the time I want to distinguish between null (explicit lack of value) and undefined (implicit lack of value) but that also has weird edge cases
It could be worse though, it could be VB
 
ffs, I was blocked for an hour
 
I flagged one of your messages.
The one about people in churches being ignorant.
 
@ʎǝɹɟɟɟǝſ are you devout christian or a laravel user?
 
but its true
 
12:07 PM
@tereško No
 
:D
 
politician ?
 
@DaveRandom Seems like INFORMATION_SCHEMA collation is the issue
 
12:08 PM
oh .. so you are one of those despicable people, who "take offense" in place of others .. that's awesome. And kinda patronizing
 
he got banned for a message that is starred 10 times and wasn't deleted? :D
 
@tereško I would recommend using the ignore button - we're pretty obviously getting trolled.
 
The fact that a person believes in something, doesn't make ignorant by any means.
 
to facts
 
@ʎǝɹɟɟɟǝſ so, if I believe taht I can fly ...
should I test it by jumping of a skyscraper?
 
12:09 PM
@tereško that depends on the Δh
 
@naruto no
 
@Ocramius :D
 
I'd say if you believe you can fly you're probably R.Kelly
 
@DaveRandom The procedure was executed and returned no error when I set COLLATION utf8_unicode_ci to that cursor, but it looks like nothing happened
 
lol
Kicking me for saying something you don't like
Good job
 
12:10 PM
No I kicked you for being an ass
 
@ʎǝɹɟɟɟǝſ please watch: youtube.com/watch?v=LpJQ9njMgP8
 
@PeeHaa How am I being an ass?
 
Don't flag old and starred messages.
If you don't like it ignore it or stay out
 
I can flag whatever I find offensive anytime I want.
 
No you can not
 
12:11 PM
By SE "rules".
 
Not in here
 
@PeeHaa he's either a troll or a SJW
 
@ʎǝɹɟɟɟǝſ We also have rules in here
If you don't like them there is no reason to be in here
 
SE rules are above your rules because your chatroom is inside the SE network.
 
It's really as simple as I said
Don't like it. Fine get out
 
12:12 PM
I like this room
I didn't like that particular message
 
great, next topic
 
And I (as a room owner) just told you to either ignore it or get out
It's really as simple as that
 
@ʎǝɹɟɟɟǝſ why?
I am genuinely interested
 
posted on August 12, 2015 by kbironneau

/* by tablettasborcsirkefarhat */

 
6 mins ago, by ʎǝɹɟɟɟǝſ
The fact that a person believes in something, doesn't make ignorant by any means.
 
12:15 PM
@tereško don't feed the troll. If you want to talk to him, do it elsewhere.
 
@Danack you at the meetup today?
 
@Danack I was muted for an hour, because I told a serial private inviter to fuck off .. gimme a break
:)
 
@tereško you need to use the ignore button.
@Ocramius almost certainly, though feeling crap tbh...
 
@tereško This is a bad example
 
I have almost 100 people in the list, I am starting to worry that the chat might start lagging for me
 
Anonymous
12:17 PM
@tereško 1 hour? that's harsh, still I got 30min ban for nothing
 
@samaYo well, I had two messages flagged
the other one was where I told him that, if he continues, someone will report him to mods
 
People believe in something like a religion because there areas of this reality that are not yet explained yet. So they adhere to what they believe is true for those areas.
 
@ʎǝɹɟɟɟǝſ so .. you are trying to pull a "god of the gaps" here .. how original
 
google
 
12:19 PM
Did you google it?
> "God of the gaps" is a term used to describe observations of theological perspectives in which gaps in scientific knowledge are taken to be evidence or proof of God's existence.
Does it look like I'm trying to prove God's existence?
 
'bout time.
 
/clear
 
SO chat needs to implement /kick /ban /me /clear
.. and /ddc /ctcp
 
12:23 PM
@Danack oh :(
 
and a /snog /marry /avoid
 
Anonymous
lol
 
@Jimbo passed theory :)
 
@Fabor you must have been a mIRC user ... poor thing
 
Animated gif is bringing back is to era of silent comedy
 
12:28 PM
you don't look even past 50
what's your secret
seriously
tell us your secret or there will be a lab and some occasional vivisection
 
@DaveRandom ?
Good morning
 
They send him on a few laps of the LHC once every couple of months, the time dilation keeps the skin looking fresh
@AlmaDo nvm, cba explaining and not relevant any more
 
There is no secret its just a. Thought
 
@DaveRandom honestly, I don't want to sound racist, but he doesnt look like a particle
 
user5020521
@RonniSkansing this is the right link pastebin.com/q21ypSWs
 
12:32 PM
@DaveRandom For some reason you cannot compare fields with different collation, so you have to set schema_name collation to INFORMATION_SCHEMA collation manually in procedure variable declaration.
 
user5020521
@RonniSkansing I was banned for 30 minutes
 
@Riccardo990 great
now the error is gone
 
user5020521
nope my friend
 
@DaveRandom Then it works
 
@albru123 presumably there's also some way to convert collation on the fly (either via Cast() or some equivalent)
 
user5020521
12:33 PM
If I try to fill the add form
 
@Riccardo990 yes it is... but now you have another problem
 
user5020521
the validation occurs
 
yes
look at f (empty($user)) {
 
user5020521
wait
 
notify
 
12:34 PM
people, who mix tabs and spaces, should receive some therapeutic bricking
 
@DaveRandom yeah.. so I'm too powerful and summoning takes lots of time. Next time count on that when estimating the summoning attempt (:
 
@DaveRandom According to manual, cast() and convert() can only set charset, you still have to use COLLATION something.
 
@Riccardo990 happy?
 
user5020521
 
@Riccardo990 still fighting with problem....
 
12:36 PM
@Riccardo990 its fixed now?
 
user5020521
it is @RonniSkansing thank you
 
user5020521
@RonniSkansing how can the array not prevents from proceeding anywany?
 
@DaveRandom SELECT foo COLLATE whatever_ci FROM your_mom
IIRC
 
user5020521
i mean when you have a complete data entry you can go on when it is a partial data entry you can not and you are warned about missing fields
 
user5020521
12:38 PM
I would like to let the user choose and if he chooses to have a partial data entry the record displayed is partial
 
user5020521
@RonniSkansing do you know what I mean?
 
no, that not all fields are requied?
 
user5020521
not exactly if you try to fill in partially the validation tells you what is missing
 
user5020521
and you are stuck in the same page
 
@JoeWatkins ? wait for what?
 
user5020521
12:41 PM
I'd like to let the users go on and return a partial record if the form has been filled in partially
 
@Epodax I dunno, that's why I notified ... because deadlocks ... I should have kept doing it until someone spoke really ... we all make mistakes ...
 
user5020521
if I type name and lastname only I must be warned about missing data and I must be asked what to do go on or stay?
 
user5020521
@RonniSkansing is it clear now?
 
user5020521
do I need a js injection something like an alert or pop up?
 
12:44 PM
you could write some js to handle that
but you would also need to edit the serverside validation
 
user5020521
what do you suggest???@RonniSkansing
 
@Riccardo990 that you write some javascript
 
Damnit too late
 
12:45 PM
I totally beat you ...
 
Yes you did my friend. Yes you did
 
Poor Orphan horse :(
 
user5020521
what do you think of this javascript code? paste.ee/p/UrYfq @RonniSkansing this code deletes data entry
 
user5020521
12:47 PM
could I reuse anything?
 
<center> .. lol, almost like it 1999
 
error_reporting(-1);
ini_set('display_errors', 'On');
@Riccardo990 This ^ shouldn't be in your code
 
no, he should have a well-configured server instead.
 
@Riccardo990 its not good
where did you get this?
 
@PeeHaa You wanted to add a chat integration for your self-hosted git platform, right?
 
12:50 PM
@MadaraUchiha why it's not good??
 
@kelunik Yeap
 
@AnmolRaghuvanshi It should be a configuration on your server
You do NOT want errors displayed in production.
 
@PeeHaa If it's ready, just add it here: github.com/kelunik/chat-services
 
@PeeHaa do you have webhooks?
 
@RonniSkansing copy-pasted from the internets .. obliviously
 
12:51 PM
@kelunik Awesome. Will do
 
@tereško w3schools?
 
kk,@MadaraUchiha kk a very basic concept thnku for clearing that
 
@FlorianMargaine I don't have much right now. But it will have hooks yeah
 
@PeeHaa mind coming on miaou?
or can you talk about it in public?
 
Either way is fine with me. It's no secret what I am working on. Whatever you want
 
12:53 PM
@PeeHaa What are you working on?
 
it works: ON DUPLICATE KEY UPDATE value = VALUES(value);
but I want to update two columns: like this:
 
user5020521
@RonniSkansing why is it not good?
 
ON DUPLICATE KEY UPDATE value = VALUES(value), timestamp = VALUES("'.time().'")
but that does not work
why ?
 
Later
 
href='javascript:delete_id(" . $row["id"] . ")' is bad.. using a browser dialog like alert() or confirm() is ugly
the file is a mix of html, php logic (that is bad)
you are dublicating the same lines everywhere
like the db connection
 
user5020521
12:56 PM
@RonniSkansing what should I use instead? @MadaraUchiha I used the error reporting to see what's bad
 
@Riccardo990 are you writting this code to learn?
 
user5020521
@RonniSkansing I'm writing it to build a cms
 
user5020521
a learning cms
 
Okay, you need to reboot and start over
 
12:58 PM
@Sajad timestamp = VALUES("'.time().'")
 
because the code is too spaghetti
 
this is the wrong part
 
user5020521
what part of code is bad?
 
user5020521
only the delete or even add and edit?
 
@tereško exactly I did like you. is it not ?
@FélixGagnon-Grenier tnx, I read it already
 
12:58 PM
@Riccardo990 all of it, the way the code is structured
 
... ON DUPLICATE KEY UPDATE VALUSE(field_name1), VALUES(field_name2), "custom value"
 
@tereško aha, but here is a refrence : stackoverflow.com/questions/8991593/…
 
user5020521
i'd like to reboot asa I can have a kinda warning message even on add and edit
 
the "field_name1" gets taken from the INSERT part of the statement
 
user5020521
so I can reboot something concrete now I have nothing
 
1:00 PM
@tereško you did not declare column name, like this COL1 = VALUSE(field_name1)
 
user5020521
@RonniSkansing anyway I sent you that code cause i thought the alert was the right way to warn a user
 
user5020521
am I wrong?
 
Sorry nope
Its ugly
 
@Sajad yeah, well, your "reference" is fucked
 
user5020521
thank you for telling me it is already something
 
1:02 PM
no problem
 
user5020521
at least I know where to restart
 
@tereško my reference has +18 vote up !
 
@Sajad yeah .. so .. it's still fucked
 
user5020521
what could I use instead as a warning message? @RonniSkansing
 
@tereško :-)
 
1:03 PM
gimme a moment, I will write you a query example, which should explain shit to you
 
user5020521
do you have any documentation?
 
@Epodax self hosted git platform / code quality / community / CI tool
On rpi's
 
INSERT col1, col2 INTO tableName VALUES(1, "content") ON DUPLICATE KEY UPDATE col2 = VALUES(col2), col3 = CURRENT_TIMESTAMP
@Sajad here ya go
 
@tereško tnx, but my problem is with ", please put time() function instead of CURRENT_TIMESTAMP ...
in fact my problem is mixing PHP and SQL
 
INSERT col1, col2 INTO tableName VALUES(:id, :content) ON DUPLICATE KEY UPDATE col2 = VALUES(col2), col3 = :time
^ prepared statement
 
1:06 PM
@tereško and I use of ? :-(
 
wat
 
user895378
morning
 
user5020521
@RonniSkansing do you suggest any tutorial?
 
@tereško question mark - PDO
 
@rdlowrey o/
 
1:07 PM
you shouldnt really use question marks in PDO
 
INSERT INTO votes (post_id, user_id, , value, timestamp) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE value = VALUES(value), timestamp = ".time().");
 
instead you should prefer named parameters ... though, there are exceptions
 
the above code is my full query
 
@Riccardo990 no idea. Try searching client side validation
 
@tereško ok
 
1:08 PM
also, in that case, the code should be
 
should be ?
 
INSERT INTO votes (post_id, user_id, , value, timestamp) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE value = VALUES(value), timestamp = VALUES(timestamp)
because you already passed the value for the timestamp in the last question mark
 
@tereško aha wait please
 
user5020521
@RonniSkansing this is too similar to mine isn't it? stackoverflow.com/questions/28053561/…
 
@tereško OMG !!!!! worked correctly
very tnx
Great point: because you already passed the value for the timestamp in the last question mark
 
1:11 PM
@Michael what's wrong or?
 
@Riccardo990 abit.. I think you should really spend some time making a couple of forms and writting some validation for them in javascript. Then when you have tried a couple of ways to do it, check html5 validation and then check some libs that help you speed up the process of custom validation
Nothing else, focus on one thing at a time
(start a new project, only for this)
 
Except for not being able to mess up the order, why should I prefer named parameters @tereško?
 
@Sajad please don't star messages that won't have any meaning outside the context
@FélixGagnon-Grenier verbosity. It makes easier to understand the code
and yes, the ability to define parameters in different order is important too
 
verbal oh, I see.
 
@tereško ok
 
1:14 PM
especially when you use bindParam() (for loops) instead of bindValue(), @FélixGagnon-Grenier
 
Hmm.. I wonder should callable(A) be accepted when callable(...A) is expected?
 
a short question: I have a column that will be update by TRIGGER, should I index it for more faster performance ? I know the answer, the answer is NO, but I want to be sure ... ?
 
Cause from substitution point of view it should be...
 
@Sajad don't overdo with the triggers
they should be use sparingly
 
@tereško yea I use of TRIGGER sparingly. Just for update total_votes in my posts tables.
 
1:21 PM
@Sajad if you're going to be doing searches/ordering based on a column, it's a good idea to index it.
 
@Amelia no, I just fetch it. and update it by trigger, I need to index it or not ?
 
(That is, select ... where .. [order by] ...)
Otherwise, no real point
 
@Amelia then no, I don't need to index it, I knew it, just I want to be sure, tnx
 
user986408
anyone familiar with mongodb?
 
what's up guys, anyone here worked with CodeIgniter?
 
1:33 PM
yes.. its bad
 
yep,i work with CI
@RonniSkansing why it's bad
 
alot of reasons
 
@AnmolRaghuvanshi bad code, bad practices stupid community ... ya know, the small things
 
hey man, do you know of any way/work around for me to load a library from within the CI_Exceptions class?
or should I say; a template that is being called from within the CI_Exceptions class
 
1:38 PM
@tereško nailed it..
 
@tereško why did you mention only the best parts? :P
 
morning
 
@DanLugg Thanks for mentioning strtok. :)
 
I'm trying to log some errors on an external log, but It seems that CI_Exception doesn't have a 'load' property
$ci=& get_instance();
$ci->load->library('utilities');
$ci->utilities->external_msg($error_msg);
it fails on the 2nd line over there obviously. . .but I want to know if there's a known work around or...?
 
1:42 PM
well, failing in second line obviously means that the file cannot be found
 
@tereško ya, nope, that's definitely not the problem
 
$ci->load_class->library('utilities');
 
ok sorry that's the wrong piece of code for that error
in this case & get_instance() returns null
WHY does it return NULL?
WAAAAAAAI!
 
because your trying to do crazy stuff inside an exception handler
why cant you log in the catch() block?
 
I just want to use a simple function in a library to log the exceptions, is that too much to ask for? (;_;)
 
1:47 PM
you are doing it wrong
 
@RonniSkansing login in catch block .. lol
 
cos I'm trying to log those errors on a global level... if that makes sense
 
why you doing this ?
 
1:48 PM
ie: for every instance of a PHP Error I want to send these errors to our external log
why; because we want to be ontop of errors whenever something major comes up
 
hahah
 
IF YOU Are trying error handling at global level try this thecancerus.com/…
 
user895378
set_error_handler(function ($errNo, $errStr, $errFile, $errLine) {
    if (!error_reporting()) {
        return; // observe error suppresion
    } else {
        log(...);
    }
});
 
user895378
^ though I'm sure code igniter is probably already doing something similar and manually handling it yourself will probably break the framework
 
1:53 PM
@AlmaDo Hey did you delete your answer to stackoverflow.com/questions/31963720/… ? Why? It solved my problem fine, except for some problem with my set up. Would have liked to accept it :-)
 
Ermehgerdmerning
 

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