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

08:03
@Michael You will probably have to catch the click in javascript / jqery and make an ajax call to increase the counter..
Good moomins
Abe
Abe
mornings o/
08:10
@Naruto Do you feel like helping me to get started? Doesn't have to be free, but I recently started as a junior dev and js/jquery was not part of the deal xd Working from home so I got plenty of time, let me know if you/someone else have time for this.
Abe
Abe
@PeeHaa in your opinion "value" refers to scalar types only, or even structures/collections/composite types etc?
@Abe Depending on context it's not limited to scalars
Abe
Abe
ok, still unsure about the naming... will need your help :P
@Michael well what are you stuck on?
Abe
Abe
@NikiC would adding an !instanceof operator work? I hate reading !($foo instanceof Bar) (i find it confusing without the parentheses)
Anonymous
08:24
Morning o/
user5020521
@Jay may I invite you to another room in order to show you some code I'm stuck with???
Oooo, is it intresting code? ^^
user5020521
enough
user5020521
would you like to join @Naruto?
sure, why not?
Anonymous
08:31
@Riccardo990 You probably know more than me judging by your bio aha - You can ask Q's in this room though, and someone may be able to help?
I wouldn't
user5020521
@jay trust me i'm stuck with a very weird bug and to show you here the code may be end up with a waste of time
user5020521
@naruto will invite you then
/me has been reading noblesse(manga) all morning
user924016
bugs are rarely weird
08:39
@Naruto basically I got my table and rows, and the index page is of course working and showing all the vids, but now I need to start on the hit counter = interaction between js/jquery and php to increment the hit counter row
Anonymous
@Michael Your avatar is gr8.. emphasis on the 8 ;)
Abe
Abe
@RonniSkansing ?
@RonniSkansing depends on what you usually do. If you are writing complicated algorithms with recursions, "weird" is the best description for some of those bugs
user924016
=]
especially when you get them only on some (otherwise insignificant) values
user924016
08:41
Whenever I have weird issues... I later find out that I was a being a idiot (or didnt understand what I was doing)
@Jay, that's mean ;( We won our first game now tho (off-topic ftw ^^)
for example, some time ago I encountered a bug in training scheduling thing, which occurred only if one picked monday, tuesday and sunday as days for exercises
bug caused the planner to get in an endless loop
@Michael you could just write a php file, that updates the counter based on the idea of the video, if that works, we'll get to the ajax / jquery part
Anonymous
Eh? xD I wasn't being mean, I'm a big fan aha - I just miss the 8.
All of a sudden, i'm a big fan of la galaxy too :)
Ye I know right, and I hate City even more :x
08:43
@d7p no
Naruto, can we chat privately so I can show you the code instead of spamming here?
user1648409
Hi again. When using something like "return explode('?', $string)[0] - this is possible for me on my localhost, but not possible on my server throwing syntax error unexpected [ - why?
user924016
@tereško what was the reason for the infinite loop?
@Michael As a general rule its better to do it in open room so that others can contribute if they have something to say, any code samples longer than about 5 lines should go on a pastebin
moin
Also: uuuuuuurrrrrrgh
@DaveRandom oki
d7p
d7p
08:46
@tereško, Many people don't know J-language... Please help me to re-write it!
user924016
@d7p why do you need to rewrite it?
user924016
and what have you done so far to rewrite it?
@RonniSkansing bad remainder
user924016
oh
that particular part of code was looking to find out, when would be the exact days for the start and end of training programme
d7p
d7p
08:48
@RonniSkansing, I want to know more about how a Prolog lexer works... I know much about PHP. But, I don't know anything about J-language. I want to have the converted code (in PHP) for my own studying only.
what you are asking is for is a commission , and you wont be able to pay my fee
user924016
Is the best way to learn how prolog lexer works by porting code from J to PHP?
d7p
d7p
@RonniSkansing, Yes. I think this is the best way. Did you know J-language?
@tereško There isn't enough Tramadol in the world for anyone to afford that
user924016
08:50
@d7p nope, dunno anything about prolog lexer either
d7p
d7p
@RonniSkansing, I don't know about J-language's regex... Can you help me to convert it?
user924016
@d7p no, sorry
@Michael we can
d7p
d7p
@RonniSkansing, Do you know anybody who can help me?
@naruto @DaveRandom Here goes: pastebin.com/C9v6C92b
08:57
@Michael so you write some code to update all the videos v_hits?
user924016
@d7p how about your learn J
user924016
if you want to convert it? I guess it helps if you can read it
@naruto Well now I need to know how to write code that detects a click on one of the iframes from the db (row v_url) and then increment v_hits
on what are you allowed to click?
the div, the section, just the url, ..?
print screen incoming
i.imgur.com/XJYFvYU.png --> on the videos only, so basically an iframe inside the 'box feature' section
09:08
hi guys..
@Michael so on the url?
@naruto correct
can anybody tell me what makes laravel so popular than other framework?
O god pls no :P
@John amount of bullshit statements its authors make
8
09:12
^^
Can you help me to re-write this Ruby code into PHP? It is here: github.com/ranxian/rprolog.
@nikita2206 sorry I didn't get you..
Does == only apply to ints or strings too? Eg $_POST['egg'] == "egg", or = "egg"?
http://php.net/manual/en/language.operators.assignment.php
http://php.net/manual/en/language.operators.comparison.php
@d47p How much will you pay? :D
user924016
09:17
@d47p are you @d7p ?
@Rahul As far as I know, "=" is assignment and "==" is comparsion.
@DaveRandom Oh, you were first :P
The Fine Manual Knows All The Things
@RonniSkansing, What are you talking about? I am me only. I am not @d7p.
user924016
I was just asking if you where the same person. Cause your nick and questions was similar ... if not almost the same
@Epodax, I am sorry. I have no online credit card.
09:19
Thanks both
I guess there are some guys who know more about MySQL, so I'm asking here, is something like this possible? pastie.org/10345660
@Michael pastebin.com/EiMwEE23 something real fast, make sure you have jquery loaded, if you have questions just ask me
in Ruby :: Sometimes on Rails, 6 mins ago, by d47p
Can you help me to re-write this Ruby code into PHP? It is here: https://github.com/ranxian/rprolog.
hello! i have a problem with substitution character - diamond question mark - � in text i'm reading with splfileobject. this character is already present in text file, so nothing can't be done to convert it to some other encoding. i decided to search for it with preg_match, but the problem is that php don't find any occurence of it - php probably sees it as different character as �. i don't want to just remove this char from text. is there any way to match this character in php?
@albru123 You can use PREPARE for that I think
Not sure if MySQL has EVAL()/EXEC() directly
09:20
@RonniSkansing, My nick and his/her has the same-form. But, I am not he/she.
user924016
and also the question.. but okay..
@RonniSkansing, Can you do it for me?
user924016
no stop spamming the rooms
user924016
do it yourself
Who can kick from here?
09:23
@JanDvorak say something offensive and we'll see :D
No kicking for when begs for help?
@JanDvorak IDK, maybe yes, maybe no...
4 mins ago, by d47p
@RonniSkansing, Can you do it for me?
13 mins ago, by d47p
Can you help me to re-write this Ruby code into PHP? It is here: https://github.com/ranxian/rprolog.
also begged in the javascript room and the ruby room
@d47p get lost and stop spamming
tnx
09:27
@DaveRandom Yeah, I came to the same thing... I hope PST can do multiple queries at once.
@JanDvorak Not sure if help vampire warrants kick-ban tbh, would want consensus of at least one other owner, IMO that's what ignore is for but will kep an eye on the situation
@DaveRandom thanks
@DaveRandom not even multi-room vamping?
@JanDvorak I can't fix that with a kick-ban, I can only fix it for us (which feels like shifting the problem on to someone else)
@naruto Ive implented the code, no syntax errors, jquery's loaded but the counter is not increasing. Where should I start looking for a reason thisis happening? Thank you so much already
09:29
@albru123 tbh it's a pretty horrible thing to do, it's unlikely to be the best solution to your problem... what is you actual problem?
@Michael which browser you using?
chrome on w7
Also @albru123 btw the table prefix approach is also generally a terrible solution to a given problem, it's a very MySQL thing to do, if you use a proper RDBMS with proper schemas and the ability to set the default schema for a given user, a lot of things will probably become easier for you
@Michael do you have firefox?
I do, hold on
09:31
@DaveRandom I installed CMS with wrongly configured character set and collaction and now I have to change it for every table in the database. I already changed the database defaults and collations for tables, but now I have to convert them.
@naruto doesn't work either. It should increment once a video's been played right?
if you do, check firebug
and check if the ajax cal is being made
@JanDvorak do you know of any precedents here that may have been discussed on meta? Can't find any and genuinely not sure what the community at large would have to say about this.
user924016
lol
@albru123 Ahh so are you looping over the info schema or something?
09:32
i have a problem with substitution character - diamond question mark - � in text i'm reading with splfileobject. this character is already present in text file, so nothing can't be done to convert it to some other encoding. i decided to search for it with preg_match, but the problem is that php don't find any occurence of it - php probably sees it as different character as �. i don't want to just remove this char from text. is there any way to match this character in php?
@DaveRandom I keep kicking them from my rooms and I validate spam flags if multiple of the same post get flagged
... and now I will be blocked for some time
Flags look so much prettier with that little start in them
@tereško valid flag is valid
user924016
@tereško heh .. your martyr
09:34
@tereško You should probably tone down your language the next time
@Gordon true, but I also would urge you to investigate the person it wsa directed at
@tereško on it
Abe
Abe
he must be a serial killer
Stop flagging for petty reasons please thanks love from the Lounge
@Gordon essentially a help vamp posting "please translate this ruby code to PHP" in the javascript, ruby and php rooms
@MaiLongdong pretty sure this wasn't initiated by a regular
09:36
@DaveRandom I was about to do that manually, but yeah, if it's possible to loop through it like that, it will be awesome. I never really cared about MySQL and whole SQL, but now I'm trying to learn it as I use it.
@MaiLongdong stop coming to rooms where flags happen and complain. You have more silly flags in the lounge than in all the other rooms combined.
@naruto I do get code 200 which should be succesful right?
@FlorianMargaine I don't take orders from internet strangers
@MaiLongdong chat rules state "be nice" and a fu, no matter how heartfelt, is not nice. so flag was not petty but valid. thanks for understanding.
@MaiLongdong then why should we?
09:37
@JanDvorak I did, it was out of line.
@JanDvorak because I said so
I'm tempted to flag that...
@Gordon Might want to search for these kind of words in the search box
@Gordon could be both petty and valid
@JanDvorak that would be childish
09:38
being nice to popele can mean to tell them to go away
@MaiLongdong I am fully aware that the lounge is the room with the highest frequency of FUs.
can you please stop complaining about the rules and stuff, and please help me with my question... isn't this room created for helping each other not for spamming?
@user1257255 no
This is more fun
09:39
@user1257255 NO
@MaiLongdong just because the lounge is a cesspit doesnt mean we need or want the other rooms to become the same
Anyway I can't stay in a PHP room for too long I'm going to run out of air I need a real language
user924016
lol, nice one @MaiLongdong
@user1257255 no, it's a room to discuss stuff related to php. Not necessarily to help people...
@user1257255 chat rooms are more for discussing shit and wasting time. It's the main site, which is for "help and questions".
09:39
@Gordon It is well known that the Lounge is the mod's favorite room anyway
You're not entitled to anything
@user1257255 Would you rather try to find solution by yourself until someone replies?
@albru123 Check out dev.mysql.com/doc/refman/5.0/en/information-schema.html and an approach like dev.mysql.com/doc/refman/5.0/en/cursors.html to loop through them. That said, often it's simpler to just write a PHP script to do it, in which case you don't need to worry about the server-side PREPARE stuff either (you can just build the query strings in PHP)
@user1257255 just because your room can accept an image full of racial slurs and even scold the person who flags that for not understanding a joke doesn't mean that such behavior is tolerable anywhere else
@Michael not sure, but can you echo your $sql?
09:40
@MaiLongdong very much so
@MaiLongdong be sure to stop by the Haskell room
@naruto on the counter page or the index?
in Lounge<C++>, Mar 12 '13 at 19:03, by Cat Plus Plus
We're officially the best room ever
LOL --- keep dreaming
See you dynamically typed lowlings
09:40
.. if they say so, it must be true
@MaiLongdong hey! Ruby is my favourite language.
the ajax page @Michael
@JanDvorak Related: do you have a link to that IRC transcript where a guy came in to troll the Haskell people and ended up going away to learn Haskell? Was talking to someone about it the other day and couldn't find it
@albru123 this is the last place i come to ask for help if i can't find the answer... it looks like today is a special day for this room :)
@JanDvorak I thought it was jquery
:P
user924016
09:42
heh
@tereško nah. But Javascript is a decent language with a solid GUI (the browser)
@naruto where on the page should I do that? If I do it in the initial query it just echoes "select * from videos" ofcourse
@JanDvorak I wouldn't call IE a solid GUI :P
@user1257255 It is full of off-topic as always :D
09:43
@DaveRandom I'm the alphabet gateway
@FlorianMargaine ah tnx
@Epodax I meant Webkit
@JanDvorak did you mean Blink?
@FlorianMargaine Yeh but I have to remove 15 layers of nested parens to get to your results
right...
09:45
@DaveRandom ^
@JanDvorak all GUIs must be bade in Visual Basic
@FlorianMargaine I have no idea why I failed to do that, I was searching chat transcript :-X
@DaveRandom they unroll themselves
@Michael jsut copy paste the sql end just echo or var_Dump() it, then you will see that in firebug, and you can run the query through your db
@DaveRandom Looks like some advanced stuff to me, hope I'll understand it :D
09:48
@albru123 As a technical exercise it's interesting. If you just want to get the job done... just write a PHP script (or other proper programming language of choice)
@DaveRandom btw, my last lisp project is dbfs
I can already grep through a postgresql db
I assume that stands for Don't Be Fucking Stupid? :-P
database as a filesystem
that is crazy cool
Yeh I think it came up before actually, looks interesting but not had time to actually get to grips with it
09:49
grep -rns 'foo' /db/ already gets me all the records that have foo, no matter which field it's in
@FlorianMargaine valid flag in Lounge is valid :P
@Gordon I don't think so?
@DaveRandom the next step is coming up with a real spec...
@naruto you lost me now
I have ideas like cat /db/foo/data/row.json would output the data as json, stuff like that
but I need to define all this before doing anything...
@FlorianMargaine there is no point in insulting them.
09:51
@Gordon ah, this
just leads to more exchanges like this
@FlorianMargaine First gut reaction is "you'd need a DB with more indices than data to make it work at any kind of reasonable speed" but as I say, not properly inspected it
@DaveRandom databases are fast
oh come on @Gordon admit that you secretly love chat flags :p
I'm tempted to just validate any flag that comes from the Lounge. If a lounger thinks something's offensive, it must be bad
09:52
@FlorianMargaine You are writing a MySQL adapter then
@JonClements only the orange ones ;)
@DaveRandom for now, I only support real databases
(i.e. postgresql)
@JanDvorak it's so tempting to star that :p
Feel free to ;-)
@Michael you should have 2 pages, your normal page loading the videos and 1 ajax page, in the ajax page just var_dump("insert your query here") and check in firebug what it returns, then paste your query in your DB and check if the query works fine or not
09:55
so the ajax script should not be inside the index page?
@Michael what is "ajax script"?
@DaveRandom I'll try it in pure SQL... That makes me ask, is SQL way vs PHP way just a matter of convenience or there are some performance differencies, like if I have a table with two 1:N relations and one M:N for example and I'm selecting from them... Hope you understand what I wanna say :P
Ah, because in your pastbin it's two pages: update_counter.php and normale page, and the ajax part is just underneath there
yes :)
09:57
which sounds as if the ajax call is just part of the index?
@Michael why are you using XML?
@DaveRandom Vs table without relations and assigning strings to numbers from the table in PHP
why the heck would people be still using XML with XHR?
@FlorianMargaine +1000
to validate the payload against a schema on the backend :P
10:00
@tereško XML is still more powerful than JSON at some things
s/some/most - except size. and for that you can use gzip ;)
@Gordon hm, you can use gzip with json too, so that's a moot point
@albru123 What it comes down to for me is that SQL is not programming language, and what you are doing is running a procedure, which is something you need a programming language for. Pure SQL will likely be slightly faster, but not enough to warrant the increased difficulty in putting it together in first place/maintaining it in future
one upside of XML is that you can throw it at a browser with some CSS and get something decent out of it
@DaveRandom isn't SQL turing complete?
@JanDvorak yeah, that's what the dom type is for
10:02
@FlorianMargaine true, but the size difference between gzipped json and gzipped xml is likely insignificant, e.g. a few bytes. unless your original payload is huge
@Gordon might be worth a fair test
@JanDvorak feel free. it's just my naive asumption.
@FlorianMargaine So are asm and brainfuck, I wouldn't do it in either of those either
The cost is cognitive overhead, a lot of it, not outweighed by the benefit IMO
@DaveRandom why? it's fun
10:05
Some of us have actual work to do :-P
@DaveRandom I know it's not you. So, why?
* shakes fist *
@Michael the ajax script is part of the index or wherever you load the page which loads the videos, the other part is seperate and will call the php file which will increase your counter
Ye that's how I initially did it, but the counter isn't working even though firebug's only giving success messages :p
10:10
ffs, too many keyboards on desk
@DaveRandom Cursors can be used only in stored procedures, right? So I have to create one and then drop it when it's done if I understand it correctly?
@albru123 I'm actually not sure, I don't really do MySQL these days. Sounds like the sort of pointless limitation MySQL would have though
TIL that mysql also supports ctrl+d
@DaveRandom First sentence in manual is: "MySQL supports cursors inside stored programs." Not "...only in stored programs," but I think it is like that anyway.
I'd have thought it would be inside a BEGIN...END block, not sure if they are valid outside SPs
10:15
Which reminds me
Is there a way in MySQL CLI to ctrl-c the current line, without exiting?
@FlorianMargaine Use putty :D
@PeeHaa still relevant?
You mean actual ctrl+c'ing?
Or just copying?
I mean when I'm in the CLI, I want to clear the current line (e.g. I started writing a query and realizes I want to write another), in the terminal I just ctrl-c, but if I do that in MySQL CLI it just exits
I hate it when services think they can spam you because you tried their crappy thing out once with github oauth...
> Hey,

could you get me off your styleci spam list please.

I don't think I have ever requested to receive mail from you people. Neither is there any way to unsubscribe from the list (to which I didn't subscribe in the first place).

kthxbye
@FlorianMargaine I alays just prepend the current comment with an x and run it
After that arrow up
10:20
The current comment with an x?
I don't understand
*command
I still don't understand
@FlorianMargaine Even that behaviour is shell-specific (e.g. busybox sh doesn't do it)
@naruto if I paste this query into the db: $query="UPDATE videos SET v_hits = v_hits + 1 WHERE v_id = $id"; and change $id to 1 for example, it works.
SELECT foo FROM bar;
*ow shit I need to do something else*
xSELECT foo FROM bar; *return*
SELECT THING I WANTED TO DO FIRST
arrow up -> remove x
10:21
break/ctl+break sometimes have effects like that
@PeeHaa so you mean you run an invalid query
yes
@DaveRandom how should it be done then?
@PeeHaa ok, weird, but well
@FlorianMargaine It stays in history either way
@FlorianMargaine Hey it works :-)
I should try ctrl-u, actually
Or was it ctrl-l
10:23
ctrl+s evil llaugh
It.. won't do much?
Doesn't it do XOFF for you?
@FlorianMargaine press enter and then type \c and press enter again
and yes, that is retarded
But it's mysql, what do you expect
Oh in fact you don't need the first enter
mysql> SELECT * FROM foo \c
mysql>
hello
can anyone tell me why this code is giving 404 error when i am submitting form?

<form name="frm" method="post" action="http://fp1.formmail.com/cgi-bin/fm192">

First:&nbsp;<input type='text' name='baseFeedUrl' id="baseFeedUrl"><br><br>

Second:&nbsp;<input type='text' name='sponsorText' id="sponsorText"><br><br>

Third:&nbsp;<input type='text' name='test' id="test"><br><br>

<input type="submit" value="Update Category" name="submit"><br>

</form>
user924016
404 - Not Found
10:33
ya
user924016
Not Found
@DaveRandom So... Am I doing it right? :D
http://pastie.org/10345800
error is :

Forbidden

You don't have permission to access /researchworks/user-controller.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
user924016
Dont have access I guess
user5020521
@PeeHaa did you get the right invitation?
10:38
why this error is coming?
Why are you sending me an invite in the first place?
user5020521
@PeeHaa I sent you a wrong invite so I invited you the wanted room
user5020521
just accept the second one and forget about the first one
@albru123 I'm not sure if you can declare a cursor for SHOW TABLES although it's creative, would be good if it does work (you may have to SELECT ... FROM INFORMATION_SCHEMA... instead) and I'm pretty sure that you'll run into the same issue you had before if you try to ALTER TABLE tbl - but that can easily be solved with the PREPARE trick... other than that it looks OK to me
@Riccardo990 Why do I need to come to some random room?
user5020521
10:41
@PeeHaa is it a problem for you if I send you pastebin link here in php room?
Why would I want to need more problems?
user5020521
I thought could be easier for you talk in another room
user5020521
no matter can I send you pastebin link to show you where my code fail?
@PeeHaa defensive stance level: ultimate
user924016
@PeeHaa working on|learning anything exciting lately?
10:48
@RonniSkansing He's working on your mum, but he's swiftly learning it's not as exciting as he'd hoped
3
@DaveRandom Looks like SHOW TABLES is not working
I've been very very work busy so I haven't really worked on cool stuff lately. Once I'm done for the day I'm also done programming for the day.
user924016
lol @DaveRandom
@albru123 I thought it might not
/me really needs some proper free days
10:49
@PeeHaa it's my fourth free month .. it's kinda cool
I'm still not ready to work again
fourth free month !!.... cool
@tereško I hate you so much right now
well ... I still have 3k in savings
so I am not entirely sure when I will start to work again
Go to UK, it will be wiped out in one-two weeks
I spend about 400-500 per month
10:51
@nikita2206 tell me about it
@DaveRandom But the SELECT FROM INFORMATION_SCHEMA doesn't work either for some reason, I don't understand the error message: pastie.org/private/zfd86ewpti148ub2j7r3kq
Just returned from there yesterday^^ we were late for our flight because NationalExpress...
@tereško Currency you're using is quite important information
Anonymous
@FlorianMargaine I have the same problem, what CLI do you use?
@albru123 weird, one sec
10:53
@albru123 all of the information you would need is in my profile
Anonymous
@Riccardo990 Ask your question here, I really can't help you. I'm a noob in php - I would if I could
@nikita2206 Yeh, "Express" :-P
user5020521
@tereško i don't give a f*** to go to a private room with you in that sense
user5020521
as a matter of fact I stopped now
oh, joy
user5020521
10:55
and don't try to think I'm kinda gay
user5020521
private room only to be able to solve a problem faster damn
Anonymous
agrrr
user5020521
this room is fulla ppl @tereško and you're not allowed to shove me off
.. I find it interesting, that you felt necessary to reaffirm your sexual preference .. strange that
user5020521
@tereško you're pissing me off
user5020521
10:57
this has nothing to do with php code
user5020521
you don't wanna be in that other room just don't accept my invite that's it
calm down guys
user5020521
you don't need to mess around with me
you have been pissing the whole room off with your invites
user5020521
10:58
@NullPoiиteя he pissed the mouth out of me needlesssly
user5020521
don't extend your problem you say I pissed the whole room? think about yourself
brb, I need a cold beer, gonna make a quick run to the shop //cc @PeeHaa

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