« first day (1781 days earlier)      last day (3162 days later) » 

6:00 PM
I'd surely expect a company that started injected unknown chemicals into food to not get away with it simply because nobody else ever tested the chemicals
 
Well the FDA regulates what can go into food
In the US
 
@KendallFrey that's case by case, imo, amazon should be the one take inspection, since hacks are coming out from their cloud property, and they are not aware of the hacking attempt
 
So if you follow all of the FDA regulations and people die then you wouldn't be criminally responsible
 
@Shoe I bet the FDA requires you to test stuff before giving it to consumers
 
I bet that is the case :)
If the company said "fuck the standards" and injected chemicals into the food then that is criminal
 
6:06 PM
@KendallFrey You have a moment.
 
Don't ask to ask, just ask
 
I'm trying to strip out the html, I did:

var body = Regex.Replace(WebUtility.HtmlDecode(txtBody.Value), "<[^>]*(>|$)", @"[\s\r\n]+");

But I feel like I screwed that Regex up.
I know you can't parse Html, I have a textarea which has <b> and shit like that and less than greater than, I just want to strip that shit away to send an email.
 
Why are you htmldecoding? is it encoded?
 
I'm assuming when you hit the server side event shouldn't hit automatically encode it?
I don't technically need it.
 
Also, why do you have a regex as your replacement string?
 
6:10 PM
these guys ask for mobile code, I send them a responsive site, they send me a rejection... o_O
none of my mobile code is a finished app :/
 
@KendallFrey I was trying to normalize the string to actually try and make sure it holds formatting.
 
strings don't have formatting
that is the job of HTML
 
Okay, well I have a text area with a ton of Html Formatting. How can I send it back to the server to be emailed off, with said formatting.
 
send it as html
 
??
Got it, I'm an idiot.
@KendallFrey Actually, when I do the html it is basically stripping <br /> into br in the email. Same thing with p.
 
6:16 PM
not sure what you mean
 
: p pSample formatting...br br br
 
what are you doing to get that?
 
I send the following:
 
Guys so I just added a small piece of code for an an ajax request on a button click. Now when I am debugging, it goes to the ajax calls and right after ajax calls it refreshes the page. How can I find out the root of problem. Its asp .net mvc Obviously.
 
<br /> Date: 9/1/2015 11:18:36 AM <br /> From:
Then in turn it does the above.
 
6:19 PM
The page is refreshing for no freaking reason!
 
@Greg You're not giving me anything to work with here
SSCCE?
 
I have a textarea, that has a TinyMCE Editor in it. The correlating message on button click is sent to the server:

<p>Oh so pretty, so pretty.<br > ~~~~~~~~~~~~~~~~ Original Message: ~~~~~~~~~~~~~~~~ <br > Date: 912015 11:15:03 AM <br >

The server receives that, but in turn when the email is sent with the html, it isn't formatted like the TinyMCE and instead removes the `<>` from everything leaving only the inner content.
 
@Obviously the Action is happening when the page is loading? is the JS self contained not to execute on load
 
@Greg Why does it do that?
 
No
Like when the ajax request is executing it just does a page refresh
 
6:25 PM
@KendallFrey What do you mean?
 
so its doing a post back
 
@Greg SSCCE or I can't help you
 
SSCCE?
 
simple self contained compilable example
 
6:29 PM
That is my code
$("#btnConfirm").click(function() {
saveSomething();
});



function saveSomething() {
var dfd = $.Deferred();
MyApplication.Common.AlertService.prompt("U sure? U wanna save?", "Save").then(function () {
var id = 123;
$.ajax({
type: "POST",
url: $.makeUrl("SomeController", "SomeAction"),
data: { id: id },
dataType: "json",
async: false,
cache: false,
success: function (response) {
if (response.IsError) {
MyApplication.Common.Core.ShowErrorMessage(response.Message);
}
else
{
var entityGrid = $("#MyDataGrid").data("kendoGrid");
 
@Obviously post your code here pastebin.com pls
 
So, here is an example of data sent from the textarea.

<br /> Message: </p>\r\n<p>Oh so pretty, so pretty.<br /> <br /> <br />-------------------------------------------- <br />
 
When I send in an email I get this:
br Message: p pOh so pretty, so pretty.br br br -------------------------------------------- br
 
what method are you using to remove unsafe < / > chars?
 
6:32 PM
I wasn't, I basically just do:
var body = txtBody.Value;
Grab it from the textarea, then do email:
I enabled html.
 
So instead of hitting the controller mentioned in the request, it is doing the page refresh and hitting the Index controller for that page.
 
when you observe body is it always without the them?
 
Is there a way by which can I know what part of my javascript code is causing page refresh?
 
No, not until the email goes through.
 
@Obviously why not have an error: section to see what is coming out
 
6:35 PM
I actually may have found it.
 
@Obviously What is $.makeUrl() that can use a controller & action?
 
Yes nothing wrong with &.makeUrl()
 
@Greg was in a meeting, any luck?
 
I am using it on other pages
and it works fine
 
was just wondering, never seen it
 
6:37 PM
Infact the same freaking code works fine on other pages
 
^^ love that
that a jquery method?
 
@Greg if you're sending an email you may need to make sure the content type is getting set right and stuff.
but I would use breakpoints or something in the server side code to make sure the brackets aren't being removed before the email is sent.
 
^ me whenever I try to learn ObjC again
 
@Pheonixblade9 why try? :(
 
y not swift?
place controls on screen, name - link to actions set segue - repeat
 
6:43 PM
I'd rather make my users suffer through an app built on Cordova than write ObjC ever again.
 
@CuddleBunny because most existing apps are written in ObjC
and I'm a bitch code monkey, remember?
 
há, i'm code monkey too
 
although I do have an in person interview tomorrow for a senior SDE position, which is neat
 
I remember being confused why the semi-colon was on the homerow. Then I started programming.
 
cool
 
6:44 PM
I did not think I would get a 2nd interview (this was the square root question interview)
 
does anyone here know a company called capgemini?
 
!!wiki capgemini
 
Cap Gemini S.A. is a French multinational management consulting corporation headquartered in Paris, France. It provides IT services and is one of the world's largest consulting, outsourcing and professional services companies with almost 180,000 employees in over 40 countries. It was founded in 1967 by Serge Kampf, the current vice-chairman, in Grenoble, France. Paul Hermelin, the chairman and CEO of the Capgemini group has led the company since his appointment in December 2001. Capgemini's regional operations include North and South America, Northern Europe & Asia Pacific and Central & Southern...
 
why do your interviews seem like the SATs all the time?
 
@tweray do you work at capgemini in nz?
 
6:46 PM
@CuddleBunny Yeah, I did do all that. I figured it out, someone created a method with the name FilterData I didn't pay attention cause it was var usage called. But it was stripping the stuff out.
 
I added the error section in my ajax request
still it is not hit
it just refreshes the page
 
@Pheonixblade9 Nice. Now they'll ask you to implement FFT.
 
@JúlioMurta no, i don't work for any sort of consulting company anymore
 
@Greg nice.
 
@Jeremy lol, I actually could probably do that
I went to school for computer engineering, remember?
 
6:49 PM
@tweray but have you worked there?
 
@JúlioMurta not with them
 
@Obviously does anything in MyApplication.Common.Core called there yours? Maybe there is something in one of those changes location.href or something weird.
 
No, I am using it at other pages, It has to be something in my current javascript code
 
@tweray consultings are the most common way to have a job in my country. companies as accenture, capgemini, everis and etc are strong names here, but yeah, a lot of ppl hate them
 
@Pheonixblade9 Which place is this? A senior position somewhere, I remember.
 
6:52 PM
@tweray and i'm sorry, i read "kiwi" instead wiki lol
 
@Jeremy Groupon.
 
@Pheonixblade9 ナイス
 
I don't know kanji :(
 
wow groupon is big as a fuck
 
that's not kanji btw
ナイス == nice
 
6:55 PM
@tweray Uncaught ReferenceError: ナイス is not defined
So that wasn't true!
 
@RoelvanUden var ナイス = nice;
 
@Jeremy Uncaught ReferenceError: nice is not defined
Sorry I'll move on to doing more useful things.
 
@RoelvanUden var nice = !RoelvanUden;
;)
 
wtf is useful things, 99% of our current work will become bullshit and tech debt for ppl 100 years later
3
 
katakana? Honestly I don't know how to tell the difference...
 
6:57 PM
I never said I was going to do work.
 
@Pheonixblade9 angly, straight-lines + simple characters are katakana
 
@Pheonixblade9 There are only a handful of them. And they are simple as fuck.
 
curvy simple ones are hiragana
both are alphabets
and there aren't too many
 
there are ~100 of each
 
If you count the sound variations, yes.
But those rules are simple.
 
6:59 PM
yeah, even if you take those out that makes ~140 different shapes you need to learn which is way more than the 26 we have in English...
 
@CuddleBunny Think each has like, 50 ._.
 
That's true. Give me romanji any day :-)
 
Or is it romaji*?
 
@Jeremy I was counting like kyu and stuff too.
 
7:00 PM
@CuddleBunny Apparently the jQuery UI isn't playing nicely.
 
@Greg I hate jQuery UI
 
ばか外人
 
@RoelvanUden yeah, Romaji. I always think there is an n too.
 
@CuddleBunny Me to.
 
7:02 PM
I used it exactly one time, like 4 years ago. Can't help you there :(
 
@Jeremy lol
 
So some how all the refresh page issue was because of internet explorer. Its working fine in chrome.
 
Hey, I'm dropping for a quick question that's not in Japanese :P

My *Solver* object has a method which will take a vector-based map and create a graph out of it. Both the map and the graph are properties of the Solver instance. The method doesn't return anything. How would you call it?

I'm thinking `GenerateNodePlan` or `MakeNodePlan`, but I don't want to make it seem like the method should return something.
The method exists purely to divide steps of a somewhat procedural algorithm.
 
'SolveNodePlan'
 
solve.SolveNodePlan(...) :D
 
7:12 PM
SetNodePlan
 
solver.SolveNodePlan(...)
 
@Shoe Mmm, solving the NodePlan (a pseudo-graph) sounds like trying to find the right path in it, which is the next step.
 
but isn't redundant solver.solve...?
 
No
 
rendererer.renderImage
 
7:14 PM
renderer.renderImage
Makes sense
 
hmm ok
 
@JacqueGoupil If your object has a sequence of methods that have to be executed then why not just hide that sequence
 
maybe a builder
 
I would hate doing new object(); object.initialize(); object.setprestate();
 
@Shoe There will probably be various implementations of the Solver class which try things differently, until we find the best approach for the algorithm. By cutting the procedure in multiple functions, someone can inherit from Solver and only code a certain step in a different manner.
But yeah, in the end, the code outside the Solver will only have to do something like solver.Solve();
 
7:21 PM
Going to go with @juanvan then SetNodePlan seems reasonable
 
Hello good people ...
Have the SO rules changed recently that some answers are lightly grayed out ?
 
Answers that are heavily downvoted are greyed out
 
So i thought
not sure that I deserved 3 downvotes for trying to make an effort
but hey, anonymity is power
 
@Shoe Coming from a C++/Java background where functions starting with "set" usually take arguments it feels slightly odd, but perhaps it's just because English isn't my first language. Oh well, thanks for the suggestions!
 
@JacqueGoupil Didnt you say it takes a vector based map?
@Darek Answers aren't upvoted for making an effort they are upvoted for being correct.
 
7:26 PM
@Shoe Well, it takes a map which is stored in another property of the same object (solver)
 
It's not my first rodeo @Shoe
 
@JacqueGoupil If it's documented I don't see a problem
 
The first answer was not bad, yet not 100% accurate. Make a comment, fine, help the poor dude (me) arrive at a better solution, sure, but outright downvote it? I only do it when the answer is blatantly wrong.
Oh well, live and learn
 
The only requirement for a downvote is "This answer isn't useful". If the answer doesn't solve the problem then I can certainly see it fulfilling that criteria.
 
relax, downvote standard in so are different between ppl, so is upvote standard, the downvote is cast and there's nothing you can do about it anymore, and i believe none of the ppl here did the downvote, so you can't really get anything by complaining here
 
7:34 PM
You can delete your answer and get your rep back
 
@Shoe Oh, really? Well, that's good.
I always felt like downvotes meant "this answer should be deleted so people don't waste their time".
 
I am not complaining, just sharing thoughts
Curiosity, one of my main drives
I miss @KendallFrey
What's happening with that dude?
 
yeah, i know, just want clarify since once a while there will be someone asking "why am i getting downvoted" which later turns into "fuck SO and stupid ppl" or "please upvote it back for me" kind of talk
he was here this morning
 
@Darek He can't be here 24/7 can he ? :P
 
Well looking at the question it appears it's an unsolvable problem so posting a solution doesn't seem upvote worthy
 
7:38 PM
@KendallFrey? Sure he can!
:P
 
Besides, the only things we complain about here are coworkers and TFS :)
 
It is an interesting problem, thou @Shoe. How often do we run into incomplete requirements and try to solve with insufficient information, doing our best in the process?
 
and vb, and webform, and winform
 
new with tfs so no probls yet
 
Why TFS? @JacqueGoupil
 
7:40 PM
@JacqueGoupil I'm here in spirit
(I have the tab open)
 
There he is!
 
go away, you ghost
 
@Darek Because it sucks compared to git
 
@Darek Read the room description
(I never used TFS, I'm just a sheep)
 
:D
Good one
I am still confused with Git, after spending 7 years with TFS, and 2 before that with Perforce.
So Fork == Branch and Pull == Merge, is that right?
 
7:42 PM
no
fork is a github thing, not a git thing
pull is fetch + merge
Don't think of git as TFS with different names
 
so git =/= GitHub ? :(
 
you'll have trouble if you do
 
>companies that don't use control source
 
@Darek right
 
7:44 PM
Holy cow! What else I don't know?!?
 
git is a version control system. github is a source code host
 
Does GitHub run git behind the scenes?
 
How did you guess?
 
@Darek yep
 
they both begin with git
 
7:45 PM
so does bitbucket
 
:P
 
bitbucket also runs hg
 
bitbucket ftw
 
and probably svn
and I'm not sure what all that cancerous sourceforge runs
 
a patchy
 
7:46 PM
HG? (I am familiar with SVN)
Cancerous as in infected?
 
Lol
 
hg == mercurial == a fork of git at one time i believe
 
You're big on the literals ey
 
have you ever know places that dont use sc?
 
That explains the syntax to be so similar
 
7:47 PM
@JúlioMurta yep;
 
I take it back, it is nginx
 
Yep
 
@JúlioMurta my dad
 
My wife, she has no control over my source @JúlioMurta
 
@Sippy @KendallFrey wtf i'm afraid when i heard it.
@Darek lol
 
7:56 PM
@JúlioMurta Lol
I've seen things man
 
the difference between google and everyone else is....google makes it look good!
unbelievable team. I wish I worked there!
 
@Skullomania I've heard they have been cutting back on how much cool stuff everyone gets to do on the side...
@JúlioMurta we don't use source control, I'm battling hard to get it adopted
 
still great atmosphere, if I were a single man, I would drop everything to work there
 
I heard most people do boring work there because everyone wants to work there
 
especially when we send a copy of a project to a contractor, I change something, and then when the contractor work is done the PM just pastes it over the project folder =.=
 
My god
drop everything immediately and make a repo
 
repo?
 
I use git for all of the projects I'm responsible for maintaining, but I need to design a workflow for everyone else to use it...
 
imagine being able to put that you were a software engineer at google and left on good terms...that alone would be worth it
 
8:08 PM
I'd like to do stuff with Microsoft Garage, they seem to have a lot of neat projects.
 
Microsoft is cool too! hell, my first experiences in programming was back in the windows NT days
my first PC had 2gb on the hard drive. I thought I was badass!
 
I used a Tandy
until 2002... :(
it didn't have a hard drive or a modem
 
@CuddleBunny i worked in a small company that ppl dont use sc too. i used git just on my projects there, but i hope it changed because they already loose a lot of source.
@Skullomania fuck you guys look have a lot of experience. i just wrote my first code in 2011 -_-
 
@JúlioMurta I've only been programming since 2005, and I didn't really know what I was doing until 2009
 
8:25 PM
@JúlioMurta thats my first experience with it. My first job that I got to use skills was 3-5 years ago
 
@Skullomania: same here, my first job was to write a ColdFusion app
that was in 2012, now my supervisor trusts me more and let me handle C# code base :D
 
I got lucky. Lead programmer left 3 months after I got my first real job and no one else was better suited for it than me. So now I'm the boss.
Sucks sometimes though because there is no one here that can help me when I don't know something...
 
@CuddleBunny thats how I feel at my position. I am not the boss but I am the only one doing web programming for the entire organization. IST has one programmer, but hes usually too swamped to help me out...so I am still currently stuck to web forms
 
@CuddleBunny We're still here! :-P
 
Yeah, yall are my only lifeline
 
8:33 PM
@JackyNguyen I learned C# webforms on the job ....it was litterally sink or swim
 
I like to force myself to sink or swim. Every time I start a new, low risk project here I try to use new tools to get the job done so I can keep learning.
 
my first experience was with web forms.it was cool because was the first thing i saw on .net technologies. nowadays i'm using just mvc.
i began in 2012 as a trainne. i was 18.
 
I had a WinForms class in college. I don't remember a thing.
 
@CuddleBunny that is incredibly tough....but I see your point. Its the only way to learn. Marketing is deadline, deadline, deadline so I have relied on my style under pressure
I need to change it
 
@Skullomania Yeah, when there are tight deadlines or high risk projects I stick to the big guns.
 
8:39 PM
people don't care about how much better it would be if they wait 1 or 2 weeks longer than today...they want a solution now...and my keep my job voice says, "sure! I can make a straight line in the shape of a cat"
 
i dont know how it works where you live, but where i came from college sucks. i just learn useful things on work, on communities or books.
 
I didn't learn much in college either
I had to do freelance work to buy food during the recession though so I had to learn to be competitive in that market.
 
you don't learn much in school...the only thing I learned that is still relevant is that dreaded programming logic and design course I took. It was the hardest class I took in my life
 
@CuddleBunny wow bad days
 
I learned many of the ways not to do something in college at least...
 
8:43 PM
all the stuff you need to know you will learn on the job...or be forced to figure out really damn quick!
 
are you from u.s.?
 
yeah
 
yep
 
it's surprising for me. i Always though american education was good.
i'm not american btw.
 
I'm sure it isn't the worst
and it depends on what you're studying
 
8:45 PM
programming is a tough course to teach....what is best practice today is not going to be tommorrow
 
My classes were all like "Let's do <complicated thing> today!" proceeds to write all of the code on the whiteboard and instruct us to copy it into the computer
 
@JúlioMurta: it depends on the school. My school is a liberal art, so their CS department is worse than others. But I heard other schools are great, like UW, Cal Tech
 
community colleges are bad? i have a few friends in europeu and us studying at cm.
@JackyNguyen MIT :^)
 
community college just teach you basic programming
4 year university teach you advance Computer science
MIT is hella expensive LOL
 
@ton.yeung are you from Houston uni right? how much gpa do you need?
to take a computer course
 
8:49 PM
A book, SO, Pluralsight and Channel 9 are much, much cheaper
 
the "hands on" programs are usually better for churning out programmers who can do that weird thing called coding
still can be 4 year programs though
 
i saw your cv and you studied at Houston university.
 
@Darek: my liberal art school is bad with CS so yeah, that's what I have been using for self learning
 
@ton.yeung lol, its pretty diferente here.
 
you pay out of state tuition ;)
oh, i thought you were talking about community college
nvm haha
 
8:54 PM
where i live you can take a free course. in general these courses are in high level institutions and are hard as a fuck.
i think University of São Paulo is the best where i live.
Fatec is nice too, but is like a community college
 
anybody know how to get around the "cannot add file "app.conf". there is already a linked file in this folder with the same name"error message when i try and install Microsoft.aspNet.SignalR.Client to a web api solution?
 
I can't imagine what that library would be doing in the app config anyways
 
@ton.yeung yea
 
ironically, free courses are, in general, for rich people hahahahaha.
 
besides maybe adding an entry for the Hub location
 
8:56 PM
im trying to add to a specific project
 
with Microsoft.aspNet.SignalR. Client?
hmm... whats the trick?
ok... thats what mine did
nope, still won't take
lol, we broke markup
 
lol
 
like <b> this </b> ?
nope, doesnt work
 
can i add it on a webapi project
 

« first day (1781 days earlier)      last day (3162 days later) »