« first day (984 days earlier)      last day (3971 days later) » 

5:00 PM
@CodeRider the reason is because you have a cross origin restriction
google "javascript cross origin"
 
@CodeRider your web service is running on a different port than your site, so they are considered different origins.
 
also, ProTip: Googling your exact error message often yields positive results.
 
^
 
shall i supply the code here
 
5:00 PM
!!should I smoke now or wait til after lunch?
 
@Shmiddty wait til after lunch
 
both
 
user1596138
Both
 
@Shmiddty Can we resolve it , in this manner?
 
@user2502227 pastebin, perhaps
 
5:01 PM
he soone good on photoshop?
 
I only have one cigarette left
 
@Shmiddty neither
 
ahh, then wait
 
doing a trial period of "stopping smoking"
 
5:01 PM
or half now - half later
 
!!/refresh
 
user1596138
@Shmiddty Eat it
 
refries are skunky
I don't have a good place to stash it outside
 
user1596138
Who smokes half cigs? I can't do that shit. If I put a halfie back in the pack it ruins all of them too.
 
@Shmiddty trick is to cut the cherry off not butt it out
 
5:02 PM
!!s/skunky/soliciting prostitutes/
 
@rlemon Can we resolve it?
 
@Zirak refries are soliciting prostitutes (source)
 
this is my code of getting the excel file
 
@CodeRider what did the google tell you about CORS
 
user1596138
@Zirak I think it has to do with replies though.
 
5:02 PM
@rlemon I knock it off, doesn't make a difference. I think it's the filter that contains the odor
 
user1596138
!!s/replies/bananas/
 
Actually , i want to consume C# webservice in PHP website.Is it possible?
 
@Jhawinsss @Zirak I think it has to do with bananas though. (source)
 
@CodeRider yes
 
@Shmiddty eh, I don't find that as much. but it could depend on the type of filter
fiber glass vs cotton
 
user1596138
5:03 PM
See.
 
function readdata(y, x) {


    try {
        var excel = new ActiveXObject("Excel.Application");
        excel.Visible = false;
        var excel_file = excel.Workbooks.Open("D:\\Test.xls"); // alert(excel_file.worksheets.count);
        var excel_sheet = excel_file.Worksheets("Sheet1");
        var data = excel_sheet.Cells(x, y).Value;
        //alert(data);
        drawWithexcelValue(data);
    } catch (ex) {
        alert(ex);
    }
    // return data;
}
 
You're right
 
@user2502227 format your code please
 
user1596138
Weird.
 
haha, you're right. The way it grabs the reply is stupid.
 
5:03 PM
@rlemon I smoke American Spirits
 
is something is wrong with it
 
Finds the matched message, goes to previous element and gets its href. In replies, the href is to the message being replied to.
 
user1596138
@Shmiddty Hell yeah. Nothing tastes close to those. They're hard to find here.
 
@user2502227 ActiveX won't work outside IE
 
user1596138
Haha. Not the best way to do it... It's not a big deal anyway though.
 
5:04 PM
I smoke Belmonts
they are nice
 
i know that
 
user1596138
@rlemon ?
 
i want to work only in IE
 
Someone bins CodeRider.
 
5:05 PM
2 messages moved to Trash can
 
IMO IE10 should have dropped the support for ActiveX. Did it?
 
@CodeRider Don't repeatedly ping people
 
user1596138
@rlemon Funky. I've never seen them. We honestly don't have much of a variety around here.
 
I thought , he can answer , thats why , i pinged again.
sorry about that.
 
5:06 PM
can someone help me ge.tt/6jBWLKk/v/0?c ?
 
@JanDvorak No one uses ActiveX outside of intranet anyway.
 
and when I didn't....
 
i dont know about hta
 
i need to make rays not skretched
 
user1596138
I get winstons, but they're harsh as shit if you smoke much. Always have to have a second pack that won't scratch my throat up.
 
5:06 PM
i tryed saving at maximum resolution a png but they skretched little bit :(
 
I can't find what type of filter American Spirits use.
I think it's cotton.
 
cotton filters often have charcoal in them
fiberglass do not
 
user1596138
@Shmiddty I think it's cotton/charcoal.
 
@jan
@JanDvorak bro i am not getting out put
in speedometer
 
@user2502227 does the console log show something?
 
5:08 PM
no
 
did you try tracing the code?
 
@Jhawinsss @Shmiddty you have du maurier there?
I used to smoke those
and Players
 
user1596138
Winstons have just a cotton filter though. They make other substances taste better with the filter still on.
 
@rlemon never heard of em
 
user1596138
@rlemon Nope.
 
5:10 PM
I wish I could ignore conversations instead of users
 
it seems alright to me ..every thing is working fine , only thing is wrong is the output..it is showing output 0 for every value
 
@user2502227 are the cell indexes correct?
 
@Jhawinsss @Shmiddty they are also pretty tastey. and our 'players' are a higher end version of american 'putters''
 
5:11 PM
I give up - I'm just going to use data attributes :)
 
user1596138
We probably have about 7 brands within an hour of where I live. Marlboro's, Kool, Merit's are at one gas station I've ever seen, camels, winstons and pallmalls.
 
user1125394
!!/choose 'leave smokers' 'don\'t care'
 
@cx Could not process input. Error: Unexpected end of input: Expected ' on line 1412 on column 29
 
At least you've localised the problem to the value method. Check its documentation.
 
user1596138
And very few places will have american spirits.
 
5:12 PM
'don't care' <- do you not see the escaping issue @cx
 
i have checked so many times ,now i am not getting any thing
 
@cx Could not process input. Error: Unexpected end of input: Expected ' on line 1412 on column 30
 
user1125394
!!Should I leave smokers talk?
 
@cx By all means
 
user1125394
ok then :)
 
5:12 PM
Smoking sucks
 
user1125394
totally
 
!!s/Smoking/Smoking cigarettes/
 
@BenjaminGruenbaum Smoking cigarettes sucks (source)
 
it's hard to smoke without sucking.
 
5:13 PM
FTFM
 
user1596138
@BenjaminGruenbaum Hehehe...
 
user1596138
!!s/smoke/suck/sucking/smoking/
 
user1596138
Will that work?
 
@Jhawinsss it's hard to suck without sucking. (source)
 
user1125394
the pb if the smell+ toxicity around, fortunately a chat doesn't share it
 
user1596138
5:14 PM
Hmm... Why didn't "sucking" change to "smoking?"
 
Generally it's a nasty dirty habit
 
I agree... but i'm an addict. so everyone who says to stop can fuck right off.
 
!!s/generally //i
 
@JanDvorak No matching message (are you sure we're in the right room?)
@JanDvorak it's a nasty dirty habit (source)
 
@JanDvorak do you want my java script code
 
5:15 PM
@user2502227 wasn't that it?
 
no thats only for my html
:D
 
(I'm on CW fire today :P)
 
@user2502227 what other javascript do you have?
 
user1596138
@JanDvorak I don't think it's nasty... I like the smell of a full-flavor sparking up. I like the taste, too. I don't smoke indoors so there's no residue.
 
for the sppedometer and the output
 
user1125394
5:16 PM
@rlemon at least you're honest , but you got owned by the people making them
 
I've got a sample of the kind of object I'm working with here (gist.github.com/qcom/5869224) and the manual traversing through the nested objects I'm trying to do here (gist.github.com/qcom/5869192); if anyone feels likes sifting through some garbage, I could use some pointing towards a more generalizable (perhaps recursive) solution
 
ok i ma supplying the script behind the speedometer ,output and all
 
@cx no, I got owned by my need to emulate the older kids I saw smoking when I was a young lad.
 
thats it
 
did you not listen to me when I said FORMAT YOUR CODE!
 
user1125394
5:17 PM
meh should I care to save rlemon's health :p
 
and don't ever post such a wall again
 
@rlemon haha yeah I saw that
the 2nd comment I mean
 
@user2502227 your code is here: paste.ubuntu.com/5802089 - formatted properly now.
 
user1125394
wow the moved to trash even disappear now
 
user1125394
chat overlay
 
5:19 PM
I edit over them
@user2502227 also, don't setTimeout("stringFunction()", crap);
you're evaling the function
and robbing yourself of event arguments
 
user1596138
@rlemon Safari is apparently not capable of rendering your shit without lagging really bad..
 
!!s/apparently not capable of rendering your shit without lagging//
 
sorry, misread the JSON
 
@rlemon @rlemon Safari is really bad.. (source)
 
@JanDvorak not a problem haha
 
user1596138
5:21 PM
I always open a link and say "Well that looks kinda stupid" and then I open Chrome and I'm like "Alright, it's pretty cool."
 
stop using Safari
 
user1596138
Office standard :/
 
it is bad... and you should feel bad for using it
that is like saying "for security purposes we're limiting you to IE5/6"
 
user1596138
I remember that one, from Walmart.
 
@Zach if only the products key may be an object, you can traverse downwards until you find an array: while(!p.products.slice) p=p.products
 
user1596138
5:24 PM
Never get a job at Walmart.
 
@Zirak did you play that game?
 
if you want to traverse to any key with an object value, use recursion
 
@rlemon can i know where you have make changes
@JanDvorak did you go through my code
 
user1596138
!!should I go have the surgery or should I just say fuck it and deal with it
 
@user2502227 I indented it, and put it in a paste service.
 
5:25 PM
@Jhawinsss You should go have the surgery
 
that is what I changed.
 
user1596138
@CapricaSix Screw you. I don't wanna.
 
and I suggest you do not use this line of code job = setTimeout("draw()", 5);
job = setTimeout(draw, 5); // use this
 
no,if you can explain me about your changes that can be really helpfull
ok
 
5:26 PM
I didn't change anything
I am suggesting YOU change that
 
when you pass a string into setTimeout js eval()'s it
this is bad.
also, overly verbose compared the the alternative
 
Aw sheeet, someeeoneee meeesseeed this oneee up. — Richard J. Ross III 52 secs ago
 
isn't eval evil no matter what you do?
 
and you rob yourself the ability to pass the event arguments
 
5:27 PM
@user1360809 kinda
 
eval is not evil... but with great power comes great fuckupability
 
^
:-D
 
I was told never to use it...when do you use it?
 
@Darkyen maintainability?
 
@user1360809 I never use it
 
5:28 PM
templating, dynamic code evaluation, etc.
I have personally never needed to use it
 
maybe when golfing
 
you probably won't either.
 
i make that changes but nothing happend
 
so its basically to check if some code will run - so you evaluate it - correct?
 
that wasn't fixing anything other than bad style.
@user1360809 no, just forget I said anything
 
5:29 PM
eval makes sense for looping in languages which support string * number but not a short loop syntax
 
eval is evil. avoid it.
 
@Darkyen Are you really asking me why stuff like LESS and SASS are useful?
 
are you making fun of me
@rlemon ^
 
it's easier for you to just assume it is evil until you run into one of the VERY FEW cases where it is not evil.
 
eval(JSON.stringify(obj))
is this bad?
 
5:30 PM
@user2502227 if saying that your erroneous use of strings in your timeout is bad style, is making fun of you??? then yes... otherwise... o_O
 
Aw sheeet, someeeoneee meeesseeed this oneee up. — Richard J. Ross III 4 mins ago
 
@JanDvorak could you help me with an example of this?
 
@JanDvorak how else would I get the JSON object?
 
for some reason I'm really bad with this problem lol
 
Ah, got it: eval("["+arr+"]") as a replacement for arr.slice(0)
 
5:32 PM
What in the name of god is an Android stylesheet!? — Octavian Damiean 21 secs ago
 
@OctavianDamiean Nothing it doesn't exist. Perhaps you meant "stylesheeet"? — Servy 21 secs ago
Servy is on the ball
 
TImeout thing also wont help to produce output..@rlemon
 
9 mins ago, by Jan Dvorak
@Zach if only the products key may be an object, you can traverse downwards until you find an array: while(!p.products.slice) p=p.products
 
3 mins ago, by rlemon
that wasn't fixing anything other than bad style.
 
user1596138
I'm on a blog that has about 80 iFrames on the main page...
 
5:33 PM
@Jhawinsss EEK
 
user1596138
Sad part is, the reason I'm in the inspector is because I liked how it looked.
 
no body will see my code ,everyone will see the html page ,so does it really matters @rlemon
 
1) I don't care about your problem
2) that makes me sound dickish.
3) but your problem is an IE only thing with ActiveX and Excel.... so I don't feel bad. :P
 
@user2502227 so having BAD code is excusable because end users don't see it?
 
5:34 PM
@rlemon no offensse bud
 
bad code is excusable if it's shorter and you're golfing
 
yes
 
@user2502227 find a new hobby
you disgust me
 
clients are too dumb to see the code ..they just want the output
@rlemon how???
 
development time counts.
 
5:35 PM
> How do we convince people that, in programming, simplicity and clarity —in short: what mathematicians call "elegance"— are not a dispensable luxury, but a crucial matter that decides between success and failure? ~ Edsger W. Dijkstra
 
@RyanKinal I love that guy
 
Clients will understand the words "development time" and "development cost". Use them, and you'll get rid of any technology
 
> When I am working on a problem I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong. ~ R. Buckminster Fuller
2
 
@JanDvorak look brother if i can get any help from you then you can tell me
 
it's not even about using a style that is preferred by some over another in this case. passing strings to setTimeout and having them eval'd is a mistake in the language if you ask me... knowing it is bad and choosing not to care because "clients are stupid" makes you a bad programmer and a douche (imo)
 
5:37 PM
@user2502227 now you're getting obnoxious, buddy
@user2502227 what religion do you think I am when you're calling me a brother of yours?
 
@RyanKinal so much this
 
@JanDvorak but if you look at that json, under the first products key there can be any potential number of keys leading to further nested objects, so you can't check for a products key there
 
@rlemon I know, right?
 
user1596138
@JanDvorak Religion? He's just trying to be "hip" and "cool."
 
@Jhawinsss That didn't make much sense. Use the help command to learn more.
 
5:38 PM
@Zach recursive function is a function that calls itself. Not that hard to write
I'll write an example
 
@Jhawinsss No matching message (are you sure we're in the right room?)
 
user1596138
Whatever
 
@rlemon look technically speaking if a syntax is not creating a problem then it is wright
 
user1596138
@user2502227 No.
 
@OctavianDamiean no
i was being lame
 
5:39 PM
4 mins ago, by rlemon
@user2502227 find a new hobby
 
i dont use less and sass i just like doing things hardway vanilla css
 
so i think passing string is wright
 
but i understand
 
but what you think is not right.
 
user1596138
@user2502227 "Wright" means "a maker or builder." How can "a syntax" be a maker, or a builder?
 
5:40 PM
and you have a room full of people who will back me up on this
 
!!/define wright
 
@RyanKinal wright (obsolete) A builder or creator of something.
 
and we are (for the most part) professional developers
I would heed our advice.
 
user1596138
@RyanKinal Beat ya to it ;)
 
Ah, so you did :-)
 
5:41 PM
now I need a smoke
 
user1596138
@rlemon Even I know this. :P
 
!!/mdn setinterval
 
user1596138
Time for a smoke.
 
arrogance caused by ignorance is annoying as shit
you can't convince them.
 
5:41 PM
@rlemon Lol :)
 
Not only are we professional developers, we're passionate professional developers. We spend our free time thinking about development. We want to be better at it, and make the community better.
 
I code at work all day -> then go home and code most of the night :(
I need more friends.
 
Well that didnt help, how can i get a page redirect after a set period?
 
Really, our criticism is an effort at that last part. We're trying to help you understand what makes good code, so there can be a higher ratio of good code to bad code in the world. So, hopefully, you'll pass that knowledge on to somebody else.
 
@Zach is your code definitely correct? man.products[key].products[key2] goes two levels deep per dot. The JSON doesn't seem to be structured that way.
 
5:46 PM
@BenjaminGruenbaum Well, SE just made it a fight for me to log in to the chat for some reason. In any event, let's agree to disagree for now. I do see your points, but I still consider them overkill in this case. Conceptually it's a list, yes, but practically it's still going to end up as elements, so why go the long route?
 
@Flambino I'm sorry about SE being a pain.
 
setTimeout(function() {
  window.location = new_location;
}, 1000 * timeInSecondsBeforeRelocate);
 
@Flambino Because once you set up the long route (and that is, once), you can work with JavaScript objects. the DOM is not a database, using query selectors for querying it is silly, they're your elements you don't have to ask for them, you created them.
 
@deep see my code above.
 
@Zach check this function:
 
5:47 PM
thanks
 
function sumIn(obj){
  var sum = 0;
  if (o.products.constructor === Object){
    Object.keys(o).forEach(function(key){
      sum += sumIn(obj[key]);
    }
  }else{
    sum += obj.number;
  }
  return sum;
}
 
deepschool.jaberwokkee.kodingen.com @rlemon, whats your opinion?
 
@Flambino HTML is for structuring and presenting content. It's not for storing that content, you need a single source of truth and that source of truth should not be your DOM.
 
@deep 1) loading splash pages were deemed a bad idea in 2002ish...
2) I still hate your site (it's the devil on my eyes)
3) you can also be ever MOAR hip and do a meta refresh..
 
@BenjaminGruenbaum True, you can work with JS objects. I certainly wouldn't keep more complex data in the DOM. And I'm all for single source of truth, which is sorta why I'm advocating using the DOM for this, as it's going to end up there anyway
 
5:49 PM
<meta http-equiv="Refresh" content="5; URL=autoforward_target.html">
something like this
 
HTML should not be the source of truth, but rather its presentation
so that you can change your HTML without changing everything else
 
@rlemon what is a splash site?
 
@deep Dude. WTF. I click the damn box, and it just keeps reloading. It's horrible.
It feels broken.
 
@BenjaminGruenbaum @JanDvorak Uh-oh, you're ganging up on me here :)
 
does it lag, or refresh the entire page?
 
5:51 PM
if you think of the webpage in a MVC structure.. should the View (html/css) ever take knowledge of models data or controller logic?
 
@deep I'm not entirely sure. But it does a lot of loading.
 
hrm, I worded that badly .
 
@Flambino Your single source of truth should not be your presentation, ever. There are two possible models - web documents and web apps. When doing web documents your single source of truth is the data on your server that is served to the client, HTML is then pretty much static, and you should abide to things like unobtrusive JavaScript and such. Using the other model - web apps, you should use a sensible design like one would for an application.
 
I don't think it actually refreshes the entire page, but it's just... bad.
All that for an animation?
 
@rlemon are u replying me
 
5:51 PM
0
Q: Add Elements to collection Conditionlly

Yehia A.SalamIs there a smarter way to write this code, i used to add all the elements in the collection constructor, something like this new OrderWizardStateCollection([new OrderWizardState(..), new OrderWizardState(..)..]) but now since i have this one conditional addition im writing it this way this.state...

 
@RyanKinal slow computer. mine just spins then opens a new tab.
 
dudes, sincerilly, what do you think about my new website layout? ge.tt/3c09XKk/v/0?c
 
@Flambino Possibly using a GUI design pattern like MVC, MVVM or MVP, but not necessarily. As long as you keep your presentation layer distinct from your business logic.
 
everything before 'now I need a smoke' was for you @user2502227
 
@badbetonbreakbutbedbackbone Upload a png, opening photoshop takes like 4 seconds :S
 
5:53 PM
@badbetonbreakbutbedbackbone don't make us download a pdf and you'll probably get more looks
 
@JanDvorak get Cannot read property 'constructor' of undefined
 
@rlemon pardon me for allt he crap
 
you have 1.6 m users @badbetonbreakbutbedbackbone?
 
the only crap is your attitude towards the responsibilities of a developer to deliver working AND good code.
 
5:54 PM
@Feeds Someone should totally make a "Java programmers coding JavaScript" tumblr.
 
because just working code !== good code.
 
@deep Mine's still spinning.
 
@rlemon all i want is some help for my code
 
And doing a ton of network requests.
 
@deep thanks dude i believe in design
 
5:54 PM
@BenjaminGruenbaum Again, I agree wholeheartedly in sticking to a pattern like those you mention. But I'd still argue that (for the simple piece of functionality we were discussing), the DOM can be both data model and presentation.
 
@Zach I mistyped some obj as o. Could this be the reason?
 
Yep slow PC @RyanKinal
 
@JanDvorak no, fixed that ;)
 
^ that looks like a problem to me
 
5:55 PM
@Zach I thought every visited object in the JSON had this property
 
what is it?
 
@Flambino I never said it can't. I'm just saying that it really really shouldn't. If you look at OP's code it's hard to read. You don't know immediately what's going on by reading it.
 
The Chrome network tab after I click the box
 
how many of you are in job office now?
 
@rlemon dude i am exausted man ...since last 3 days i am coding this code but now that shitty code wont work..that is the reason behind my arrogance
 
5:55 PM
@user2502227 then next time someone is giving you tips on how to make your code cleaner, both to read and maintain, listen to it.
 
@badbetonbreakbutbedbackbone Me!
 
As a fix, you could check if the property exists before checking its constructor
 
nice i'm courious @RyanKinal
 
like you did
 
@Flambino Not to mention, it's very hard to unit test, or test at all, or even figure out what a unit is. Like using a giant string for storing all your variables
 
user1596138
5:56 PM
@rlemon Ever tried to code during 420 time?
 
@badbetonbreakbutbedbackbone About what?
 
@BenjaminGruenbaum True, that's OP's code though. I wouldn't do it like that.
 
as for helping you with your exact problem, you won't get that from me. 1) because I don't want to look at all that code, 2) because I don't use IE therefore cannot test it. and 3) because I don't use Excel or office so I cannot test it.
 
@rlemon now if we are cool than shall we do some coding stuff
 
@Flambino How would you do it?
 
5:56 PM
@RyanKinal to know how many of you in a office working i mean
 
user1596138
I can never tell exactly what I was trying to do when I come back to code I wrote at that time.
 
@badbetonbreakbutbedbackbone Me and rlemon at the very least
 
@Flambino Let's make it simpler, how would you do a simple list of elements where you add elements and delete them when you click an X button?
 
@Jhawinsss I am ADHD, as a kid I self medicated.
 
5:57 PM
@rlemon for which company do you work
 
user1596138
@badbetonbreakbutbedbackbone I am right now.
 
the one that makes da codez
 
Loktar too, when he's around
 
@Jhawinsss ok ;)
 
user1596138
@badbetonbreakbutbedbackbone I meant I'm in the office right now.
 
5:58 PM
@BenjaminGruenbaum Is that list going to be sent to the server via a form? Because that seems to be OP's goal
 
user1596138
@rlemon ?
 
i think they suerly have name
 
@Jhawinsss yeah yep understood ;)
 
@Flambino Just a list, but yeah, let's say OP is sending it to a server
 
so i think majority in a office right now
 
5:58 PM
I work for an embedded control system manufacturer. nothing exciting.
 
@RyanKinal i just tred it, i got nothing.
 
@rlemon do you use Arduino?
 
no
 
@rl
 
user1596138
@badbetonbreakbutbedbackbone When you have a 27" monitor you have to find something to fill all the extra space.
 
5:59 PM
oh ok, and rasperry pi?
 
would you say in general that strings searched by regular expressions are the quickest way to extract data, when compared to using an array for example?
 
although, I am looking at putting our software / supporting hardware around a rpi
 
@Jhawinsss lol right
 
user1596138
@badbetonbreakbutbedbackbone I've got one of them. Pretty cool.
 
@rlemon nice ;)
 
5:59 PM
if I can get it working ( not likely ) then we will cut overhead costs by 1000%
 
@rlemon i work for hp
 
@Jhawinsss awesome you got Arduino?
or rpi?
 
@rlemon and i am fresher now
 

« first day (984 days earlier)      last day (3971 days later) »