« first day (1819 days earlier)      last day (3121 days later) » 

12:00 AM
I'm actually pondering with the idea (if I turn out to actually be good at this, and not just a fluke) of opening a micro-brew. I'd have to pay a lot to the gov in taxes, but otherwise it doesn't appear to be that hard. just pass regular safety and health inspections and log the fuck out of everything you do
 
user5020521
does anybody know this? SyntaxError: missing ; before statement
 
user5020521
the hell is it?
 
because everything basically just sits for months on end, and I would only need to spend a day or two every couple weeks bottling, I could do this on top of a full time job.
 
@Riccardo990 you forgot a semicolon
noob
 
user5020521
this is where the error occurs: function delRecord(idRecord) { //some stuff }
 
user5020521
12:04 AM
console returns this error whenever I attemp to make this function work
 
well the comment there takes out the last }
:P
 
aha
 
user5020521
wait @rlemon this is just a an example sentence
 
and with syntax errors it is often important to post the actual code
 
user5020521
the sense behind it is that I can't make that function work
 
12:05 AM
and not just 'example sentence'
 
user5020521
you want the actual code? here you are I've just tried not to piss you off again
 
lol, well I want useful stuff to be able to help you
 
use jsfiddle or something
 
what you posted theoretically would work.
surrounding code, or the function body are what is causing the issue here
 
user5020521
@rlemon i profit about your willingness to help me dude
 
user5020521
12:07 AM
I fiddle thee sir
 
I'm canadian. can't help it
if you have a door to hold call me
 
user5020521
 
user5020521
@ʞɔᴉN
 
DID SOMEBODY CALL ME?
 
@Riccardo990 line 12
}
 
12:12 AM
rookie mistake
 
but really, if i'm not just harping you for posting incomplete code again..
delOutcome(xmlhttp, idRecord) {
    console.log(xmlhttp.responseText);
}
is wrong
or at least looks wrong in the context
most likely is wrong
 
yeah what is that deloutcome thing
 
@Michael your issue is fixed.
just testing some more updates, it will be in the next version
 
@rlemon Thanks! :D
 
actually you should have it now
 
user5020521
12:15 AM
the delOutcome is supposed to be the callback function
 
@Michael watching???
 
@rlemon Huh?
 
user5020521
and I tested its functioning attempting to write the xmlhttp.responseText in it
 
@Michael ^^^
 
Nope.
 
12:16 AM
did you see the fish?!
 
No fish.
 
goto chrome://extensions and hit the 'update' button
 
k
 
not verbatim, find the button
 
user5020521
so rlemon why is out of context the console log?
 
12:17 AM
@Riccardo990 what do you expect that to do?
 
@rlemon Errr, no update button.
 
user5020521
to write in colse the xmlhttp.responseText
 
user5020521
simple as that
 
@Michael check Developer Mode
@Riccardo990 when?
 
Running 0.0.4.6.
 
12:18 AM
@Michael you need 0.0.4.10
you are waaay behind
 
There we go.
 
@Michael watch
 
:D
 
user5020521
when the file passes the asynchronously the information
 
Fish!
 
12:19 AM
also, hit ctrl + k @Michael
code mode
 
O_O
That's pretty cool.
 
it is slightly buggy, but i'm working on that
 
user5020521
so rlemon I can't understand where I'm wrong
 
Wait a sec.
 
@Riccardo990 because callbacks mean you pass a function
 
12:20 AM
Where's Java???
 
@Michael no Java??
 
user5020521
I believe to pass a function
 
I just dumped the CodeMirror modes
 
No lol
 
user5020521
and if I'm wrong could you tell me why?
 
12:21 AM
@Riccardo990 foo(a,b,function() { console.log('here you go') });
that is how you pass a function
it doesn't have to be anonymous like that
 
No C or C++ either.
 
but I hope that helps you understand
@Michael i'll look into it
 
You better.
 
user5020521
am I not passing any damn function?
 
1 message moved to Trash can
@Riccardo990 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
12:22 AM
you're looking in the wrong place
 
user5020521
and after that
 
the code I posted way above is a syntax error
 
user5020521
xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            delOutcome(xmlhttp, idRecord);
        }
 
9 mins ago, by rlemon
delOutcome(xmlhttp, idRecord) {
    console.log(xmlhttp.responseText);
}
 
user5020521
hell yeah
 
user5020521
12:23 AM
where the hell is the error?
 
do you mean to define the function there?
 
user5020521
sure
 
then try the function keyword
 
user5020521
what?
 
like all of the functions you defined above it
 
user5020521
12:26 AM
just let me tell you this if I tell the code that xmlhttp.onreadystatechange is a function
 
how do you define a new function
write me a function that takes two parameters and adds them together.
so if I call add(1,2) I will get 3
 
user5020521
here we go
 
no really.
 
user5020521
just one moment and I'm done
 
you have a syntax error staring you in the face
I tried to point it out, and you missed it
I'm trying to make you see it
 
12:28 AM
write the add function or you get 10 spankings
 
user5020521
look at this different example folks
 
user5020521
function caricaDati(idDiv, url) {
    if (idDiv=="") {
        idDiv.innerHTML="";
        return;
    }
    if (window.XMLHttpRequest) {
        //code for IE7+, Firefox, Chrome, Opera, Safari
         xmlhttp=new XMLHttpRequest();
    } else { //code for IE6, IE5
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }

  xmlhttp.onreadystatechange = function() {
    if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
      costruisciDati(xmlhttp, idDiv);
    }
  }
  xmlhttp.open("POST", url, true);
 
user5020521
sorry for the italian names
 
see here you have the function keyword!
omitting code, and giving us broken code is not helping your cause
and mostly the reason we ask you stupid questions
 
can you type function in front of delOutcome and see what happens?
 
12:30 AM
@ʞɔᴉN I'm now assuming that is his translated code for our benefit
but it has just caused confusion
 
user5020521
@rlemon try to understad me I have a 500 rows of javascript
 
@rlemon ah I see
 
user5020521
I've been programming for four days
 
my current work project has over 20K lines of JS :D
I've been working on it for 2 years.
forgive me if I'm a tad insane
 
user5020521
I haven't slept for 1 day
 
user5020521
12:32 AM
in rome italy it's 2.30 in the morning
 
user5020521
2.30 am do you what I mean?
 
@rlemon so you wrote ~30 lines of code per day? slacker
 
user5020521
I'm damn sleepy and maybe I've made some mistakes
 
    if (idDiv=="") {
        idDiv.innerHTML="";
        return;
    }
this is destined to fail
 
user5020521
so why?
 
12:33 AM
if idDiv is a string, it cannot have .innerHTML
 
user5020521
and what should it have?
 
I don't know the intent
 
user5020521
it is a condition
 
that isn't the intent
 
user5020521
if idDiv is empty don't go on else go on with the func
 
12:36 AM
but the line idDiv.innerHTML = ''
if idDiv is empty, what do you expect that to do?
also, and id string isn't an element
@Michael github.com/codemirror/CodeMirror/tree/master/mode seems like no one has written a style for it
 
user5020521
so how could that condition have sense?
 
I don't know, you tell me
 
user5020521
if idDiv is empty stay here else go on
 
listen, I don't know what your application does. so I cannot tell you how to write it. I can only tell you what is going to fail based on the code I see when it is obvious it will fail.
 
@rlemon Let me get this straight. They have VB, but not Java?
 
12:39 AM
@rlemon we're at 400k after 18 months :)
 
if( !idDiv ) return;
@phenomnomnominal I'm one guy
 
What is the world coming to?
 
Haha I know, and that's epic. We're a team of 4
 
@Dan thanks for joining. sorry about the long twitter banter, I really don't know what you're asking for :D
@phenomnomnominal ohh, I've probably deleted 40K lines as well :D
 
Maybe I'll create an issue.
 
Dan
12:40 AM
@rlemon the rules page, under useful link
 
@Michael yea sorry. I used CodeMirror because ACE was a bitch to deploy as an extension
 
Dan
I think tonicdev.com would be a reasonable addition
 
@Dan you on github? make a PR
 
user5020521
rlemon thank you and what do you think of this edit?
 
@Dan gets you 25% on your way to a free tshirt as well
 
12:41 AM
what is "12 days" btw?
 
user5020521
delOutcome(xmlhttp, idRecord) {
    console.log(idRecord.innerHTML = responseText);
}
 
user5020521
it failed again anyway
 
@Riccardo990 still missing the function keyword.
 
user5020521
the function keywork might be this one
 
u wot m8
function delOutcome(xmlhttp, idRecord) {
    console.log(idRecord.innerHTML = responseText);
}
is that what you meant to paste..?
 
lol
actually made me lol
nicely done
 
user5020521
am I too far?
 
user5020521
function delRecord(fn, id, url) {
    var div = document.getElementById(id);
    var url = "php/del_table.php";
    fn(div, url);
	if (window.XMLHttpRequest) {
        //code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp=new XMLHttpRequest();
    } else { //code for IE6, IE5
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }

    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            delOutcome(xmlhttp, idRecord);
 
:D
 
@Riccardo990 I've hinted at it like 10 times, @ʞɔᴉN has actually given you the answer
and you still missed it
 
12:48 AM
@Michael Java support for what?
 
.. I don't know what to do anymore
@ʞɔᴉN CodeMirror, and then Dark Theme
 
user5020521
hey man I really missed it?
 
@ʞɔᴉN The syntax highlighting tool that rlemon uses for his SO Chat Chrome extension.
 
user5020521
that means I'm really tired
 
well, actually the code mode tool.
code-editor
 
12:49 AM
Good Evening
 
Dan
@rlemon done. I'm on the road, so I used the GH web editor to do it, would def give it a once over :)
 
the syntax highlighting is done with highlight.js
@Dan cool, I'll look at it tomorrow
thanks.
 
@Michael ohhh I thought you wanted Codemirror to run in Java
 
CodeMirror doesn't have a Java mode, or a c or a c++ mode
 
made absolutely no sense to me. perhaps specify you want syntax highlighting?
 
12:50 AM
@ʞɔᴉN Well, that would be nice too.
 
so yea, that is kinda shitty
 
@Michael it would be pointless and kind of hard to support
 
@ʞɔᴉN I don't care.
 
@Michael then make it yourself :)
 
12:52 AM
@ʞɔᴉN No thanks, I'll just complain loudly if that's OK.
 
user5020521
@rlemon @ʞɔᴉN thank you guys I've been close to attempt to suicide
 
user5020521
myself
 
user5020521
matter of fact I missed to type function before the function
 
maybe take a walk
 
Ahhh, you're supposed to select "clike"!
 
12:53 AM
@Michael :(
@Riccardo990 no worries
 
user5020521
now the funny part is coming
 
@Michael that is lame
I might add them myself and map them to the other options
 
System.out.println("Hello world!");
 
@Michael please raise an issue accordingly.
note: codeMirror merely selects what you see on input, highlight.js still does what everyone sees on the chat
and it is pretty shitty
especially on small code blocks
for instance, it thinks your line above is css
 
CSS > Java
 
12:55 AM
@SomeKittens lol, just got around to reading this
 
@rlemon Uhh, then what use is selecting the language?
 
JSON > JAVA
 
@Michael for code-mode input editor, you do. for the chat highlighting, highlight.js does.
 
JQUERY > JSON
 
@rlemon Ah, I see.
 
12:56 AM
because I cannot force your code choice on others, I must use a lib that does it automagically
highlight.js seemed like a good choice.
apparently it sucks
 
@rlemon So code-mode is used to syntax highlight the text you type into the textbox?
 
it is a full blown browser side editor I think
it is a CodeMirror instance
 
this is the javascript room, why should there be an automagic language picker for syntax highlighting?
 
Is it just me or android phones when updating major os versions
are comparable to water heaters (temperature wise) ?
 
@ʞɔᴉN my extension tries to appeal to all of chat.SO/SE
@Abhishrek yes
my last update made my phone HOT
 
12:58 AM
I am glad I didn't update it in India
 
lol
 
otherwise it'd have caught fire !
 
@rlemon a valiant effort
 
@rlemon Well, it still looks good. Even though it thinks it's CSS. xD
 
@Michael better than nothing, but yea
kinda annoying
let foo = bar => bar.blah;
 
user5020521
12:59 AM
Connection failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'idRecord' in 'where clause'
 
SYNTAX HIGHLIGHTING IS DISTRACTING WHY WOULD YOU FORCE THIS UPON ME I DIDN'T CHOOSE THIS
 
thinks that is TypeScript ^^
 

« first day (1819 days earlier)      last day (3121 days later) »