« first day (2047 days earlier)      last day (2901 days later) » 

user47589
3:00 PM
kinda yeah
 
And that only makes sense if you're actually using polymorphism
 
@Darth_Wardy lol, that's what I told my TL
most arguments we have are rather ad hominem
 
@RoelvanUden why would we do that, the chances are the company standards for code are outdated aor just plain wrong so, every developer does their own thing lol
 
user47589
i do what i want
 
Bmo
@Darth_Wardy That's a great point.
 
3:01 PM
@SamyS.Rathore wow your TL would cry over IoC ... does he have a Ninject controller for each type he wants it to build?
 
Bmo
I tried to follow the rules for the longest time.
Just not worth it.
 
Except that if you're not following company standards you're a bad employee.
 
@Sidney I define them
 
@Amy in an MVC Project with EF, scaffolding seems to put an instance of a context per controller. If this is the reccomended practice, should the context be passed intro any methods within actionResults that need it?

or is it best to just use separate usings throughout ?
 
my little pony is in the kindergarten cop 2
hahahaha
Amy star's in a movie ^^
 
3:02 PM
@Darth_Wardy A lot of people are still working on excel macros
 
Because it becomes a fucking mess if everyone is using their own code style/guidelines.
1 message moved to Orphan GIFs
 
Well I try to stick to Client standards except when they are all wrong, and there is enough time to fix it.
 
@SamyS.Rathore sounds like a dream job ... in the company next door is waiting for you
 
@Ggalla1779 "So let me get this straight. I'm paying you to do a thing in a certain way, and you decide you're going to do it your own way? I think I'm going to decide to pay you in my own way"
 
No your payng me to do a job, if your doing it wrong thats not my problem...my problem is to do a professional job
 
3:05 PM
That would be almost immediately my assumption of how that would go down, but call me a pessimist.
 
they are paying me a lot, like a LOT lot...!! :|
 
all clients pay alot so thats irrelevant
 
Bmo
@SamyS.Rathore I have a grumpy cat picture on my desk about VBA.
 
@Ggalla1779 a lot
 
@Bmo share it :P
 
3:07 PM
I have a fellow workmate coding vba and vb6
alot
 
Bmo
Oh man, I'll have to find the file. I just have it printed in my cube.
 
@Sidney yeh that's not good ... contract work I just do as i'm told exactly
no room for complaining then
 
Bmo
 
I tend to work differently when its my own codebase / a codebase I have to deal with for longer periods of time
 
@Ggalla1779 a lot
 
3:09 PM
I want sushi
 
@Mr.Toxy alot?
 
lets make a giant sushi dinner
 
@Ggalla1779 a lot
 
@Ggalla1779 yes I want it a lot
 
@Darth_Wardy am contracting too...
alot
 
user47589
3:10 PM
user image
3
 
Roel also thought me the alot != a lot thing
 
@Amy awwwww alot
 
@Ggalla1779 a lot
 
alot
^ that alot
 
That's an alot.
I love the misty alot.
 
3:11 PM
I still want sushi :P a lot and alot can come to
 
Bmo
"I tried to catch the fog today...mist"
 
hi hi hi
I got the router setup
so far so good
what is recommended proxy?
 
google once offered a proxy for free
hmmm the g modules or something like that
 
user47589
proxy.sochat.thisisveryreal.com
 
3:16 PM
@Amy i use that one
 
(╬ ಠ益ಠ)
 
ur such a troll guys.. :P
 
user47589
@Sippy me too
 
Try Froxy Proxy.
 
@Froxer adopt-a-fantroll.deviantart.com try adopting a troll, it comes with free proxy
 
3:17 PM
...#imdone
 
user47589
please adopt a troll today.
 
oh ye foxyproxy forgot that one, thanks @Sidney
 
user47589
For only $0.30 a day, you can provide a troll with food, water, and an adequate number of people to piss off.
3
 
@Amy where's the sad music and pictures of staring trolls
 
@Amy Trolls will only make you're live better
 
user47589
3:23 PM
If you don't want to donate and save a poor troll from starvation, that's fine. Just please speak clearly into this mic and say "I don't want trolls to have a future" and you can be on your way.
 
IN THE ARMS OF AN ANGEEELLLL
 
user47589
 
ohhhh T.T
adopt that poor thing
or instead get a kid. short for all in 1 hehehehehehehehe a deal of a lifetime... literally ^^
Kiddin kids are gr8
 
WTF visual studio? How did we get here?
 
well another glorious VS treat for us
 
3:28 PM
@Sidney What's the problem?
 
I find awesome tha MS remembers users and implements such entertaining easter eggs in VS
 
make sure not to say WTF
probably flaggable
 
submits to flogging
 
@Sidney lol replace null with (???)null; ... there ya go :)
 
#FlaggingIsLoveFlaggingIsLife
 
Bmo
3:32 PM
(theAbyss)mySoul;
 
hahahahaha
great cast
 
David Haney on May 24, 2016
At Stack Overflow, we're committed to making the internet a better place, and our products aim to enrich the lives of developers as they grow and mature in their careers. This week we have been given the opportunity to expand our reach beyond developers into another worthy demographic: foster youth.
 
I think we should stop saying God in this chatroom and replace with Meta
Thank Meta for civility and order!
Oh my Meta.
etc.
 
I sacrificed a goat to the wrong Meta.
sounds brutal that way
 
Rav
i think sacrificing anything sounds brutal :p
 
3:37 PM
You can probably get flagged for talking about sacrifice.
 
@Rav not your virginity tho hahahahahaha
 
#rip #warned
 
#FlagHisAss
 
anybody up for some flag football?
 
flagging is actually a productive business this days
they are paid comission based u know
imagine if that was an SO badge
HAHAHAHAHHAAHAHHAHA
 
3:40 PM
someone can help me please?
 
Help maybe
 
"Flag 10 comments or messages to earn this badge"
 
i have 2 models
 
motor accidents kill 20 flaggers per year. flag safe, flag smart.
 
@EladJarby That depends on the problem.
 
3:40 PM
ok i ask D:
 
@EladJarby sounds like you're doing just fine already
I have no models. just one, and she's maybe a 4
 
@MichaelEdenfield flagging is a productive yet dangerous job
 
i have 2 models , categories and products..
categories have many products , but when i create product i want to get drop down of all categories
 
@Mr.Toxy there is a badge for that, I think
 
@Sippy flag it
 
3:41 PM
@Mr.Toxy flaggers are the real heros of this country
 
Happy Monday+1 kids
 
@KendallFrey rly? hahahaha GG SO
 
three of them
 
@Mr.Toxy all of a sudden 20 community admins jump in to this room
 
someone help?
 
3:42 PM
1 flag, 80 valid flags, and 500 valid flags
 
@Darth_Wardy hahahahaha WP hahahahaha
 
@KendallFrey ...
 
the badges are for flagging posts, not chat messages...
 
think someone's going for the badge?
 
@Sippy what?
 
3:42 PM
the reason why we get flagged permanently for everything
 
Elad Jarby
Elad Jarby
i have 2 models , categories and products..
one category have many products , but when i create product i want to get drop down of all categories
 
@Sippy It's not a chat badge
 
@Mr.Toxy you can see it now ... WHO DID THAT ... Not me ... mod looks at profile > latest badge acquired 2 mins ago "Expert Flagger for 100 flags"
 
OH
I'm like halfway on main lol
 
also flags have to be "helpful"
 
3:43 PM
national flagging holiday. #MakeFlaggingGr8Again
 
yeah
 
@EladJarby I'm not entirely familiar with EF, but that doesn't sound like it would be hard to impliment. Also, spamming a message isn't useful, we're human and take time to type as well.
Can I ask what the actual problem is?
 
i tried to do that..
and didnt success for 10 hours
with 2 friends
 
does anyone happen to have/know of a winforms control that can do "implied currency" input.. where it automatically injects the decimal point before the 2nd decimal?
 
@MichaelEdenfield isn't that formatting dependent on locale?
 
3:44 PM
Ok, So you're telling us what you want to do, but you're not telling us what problems you're having trying to do it. Can someone with a bit more EF knowledge jump in? Can you just query a model for all objects of it's type?
 
@Squiggle well, I'd settle for just standard US, since we only have 3 customers using this product.
 
US does not use a decimal point before the second digit
they use ,
 
@MichaelEdenfield you want an input mask, then?
or is this for display?
 
3:46 PM
@Squiggle well, sort of, but it needs to work "backwards"
 
> "backwards"
 
so 5 => 0.05, 50 => 0.50
 
huh
 
from the right
 
so you're taking cents and displaying them as dollars?
 
3:46 PM
@MichaelEdenfield I think the formatting string is what you want
 
get your data right first
 
I'm just trying to avoid having to write my own custom control if someone's already written one.
 
@EladJarby your drop down should be bound to the complete set of items in Categories not the ones related to the product to list them all
 
5 -> 0.05 is a numeric conversion, nothing to do with formatting.
 
3:47 PM
String.Format("{0:c}", input)
^ Currency
 
@SeventhSon 5.Format("c") is 5.00 not 0.05
 
indeed
 
@SeventhSon @MichaelEdenfield thinks he needs help with formatting, but he doesn't
 
@SeventhSon someDecimal.ToString("{0:c}") should work too
 
@MichaelEdenfield fix your data.
 
3:48 PM
he's storing a value as cents and wants to display it as dollars
 
@Squiggle this is user input.
 
@MichaelEdenfield user input as what?
 
they want to be able to key in the same way they do with their special accounting calculators.
 
String.Format("{0:c}", input * 100)
 
where it assumes you are going to type 2 cents digits all the time
 
3:49 PM
ah, so you want it to be input as dollars.cents?
 
and it will automatically convert to dollars.
 
so you want an input mask
 
so they can type 124893 and it will display and store as 1248.93
but input masks work left to right.
this needs to work right to left as they type
 
3:49 PM
Sorry, String.Format("{0:c}", input / 100)
 
just divide the friggin thing by a 100 and you're good...why is this so complicated?
 
@MichaelEdenfield don't reinvent the wheel.
 
Nic, that's what I thought, but yeah, he's looking for an input mask.
 
^ the link I posted is exactly what you should do
 
because I put an input mask on it and it doesn't work.
if I put an input mask on hte control and they type a single digit, it assumes it's the left-most digit.
i need the first digit to be right-most.
 
3:51 PM
Mike, the input mask needs to be configured to do what you want, that's all.
 
yep
 
I know how input masks work. An input mask isn't going to automatically divide the input value by 100
 
Give us an example
 
@MichaelEdenfield what EXACTLY do you want, write the full example, what happens, what you want to happen etc
 
3:52 PM
Mike, wouldn't you divide the value before / after binding it to the form?
 
what I want:
 
everyone here is tripping over themselves trying to guess what in the world you want
 
user opens my form. they tab into my field. they press "5"
the UI display 0.05
 
you have an input mask if "999,999.99". The user presses "5". Should it display "0.05"?
 
then they press 4 and it now displays 0.54
then they press 6 and it display 5.46
 
3:53 PM
I getchya
 
if I put an input mask of 999,99.99 and they press "5" "4" "6" it displays "546.00"
unless they actually type the decimal separator. which is specifically why they complained about.
 
myTextBox.RightToLeft = RightToLeft.Yes;
5
Q: Right to left typing in text box?

user1331032I have a Currency Textbox with a mask. Mask is shown in textbox as --------.-- So user types in digits over the mask. Now customer says he does not want to type in letter from left to right. He wants to type from right to left. Similar to what we have in calculator. Now I tried changing the t...

 
and yes, it's a stupid requirement, but I get paid to implement stupid requirements.
 
^ sounds about right
 
isn't that what you're looking for?
 
3:54 PM
it might.
let me try.
 
last time I used that was, like, 9 years ago. roffle.
 
last time i called a text box from code
man i don't even remember
that's a good thing though
 
Oh sure, make fun of the web forms guys. Ha-ha-ha.
: )
 
Oh hey look, a new battery advancement that will never make it into consumer goods. msn.com/en-us/news/technology/…
 
4:10 PM
thats off topic, some mod is going to go nuts any minute now
 
@Sidney "5 times longer" (in laboratory conditions)
 
I like to live dangerously.
 
user47589
i like to live.
 
RIP Windows Phone :(
> Windows Phone market share sinks below 1 percent
 
user47589
wow i had no idea it was that bad
 
4:22 PM
is that us
US*?
 
You all will bash me but for once, I like TFS > Git :O
 
triggered
 
flagging
 
user47589
i feel sorry for you kala
 
lol
 
4:24 PM
@KalaJ đź‘Ś #1 trolling
 
getting so many git issues that were no problem with TFS :O
 
@KalaJ fix your workflow, then!
;)
srsly you can't work the same way
 
haha
 
     try
                {

                  // throw new OracleException();
                    executar.CommandText = comando;
                    linhas = executar.ExecuteNonQuery();
                    return false;
                }
                catch (OracleException)
                {
                    Logg("Erro a executar o comando:" + comando,log);
                    executar.Dispose();
                    return true;
                }

when it executes the query it gives me an error saying that the table already exists ok I know that but, why doesnt it enter the catch?
 
1) stackoverflow.com/questions/12876350/… 2) Vs2015 hangs when loading solution (only happens with git version control solution for Xamarin!)
 
4:28 PM
@Mr.Toxy because it's not an OracleException?
 
3) If I don't want to include some code changes, I have to stash or commit them
 
I hate it when people mix their own language with APIs written in English
Rubs me totally the wrong way
 
@Squiggle it says it's an oracleException
 
Also, language keywords are English
 
4:29 PM
@Sippy I'l edit it
damn cant edit anymore
 
@Mr.Toxy it liiiiiies! Or you're not running the right code or something it's a caching issue probs
 
Unless you can get C#.es
kappa
 
let's make a fork of roslyn that parses italian csharp
or spanish whatever
 
@KalaJ 1) whitespace issue. Fix your configs. 2) no idea. 3) fix your process
 
@Squiggle So if it says its an oracleException but it doesnt catch it, shouls I change the exception type to catch?
 
4:31 PM
@StevenLiekens "Si Sharp"
 
hahaha
that actually made me laugh
 
@Mr.Toxy no idea. If it is as you say, it should work. Debug harder, report back.
 
Non-English-based programming languages are computer programming languages that, unlike better-known programming languages, do not use keywords taken from, or inspired by, the English vocabulary. == Prevalence of English-based programming languages == There has been an overwhelming trend in programming languages to use the English language to inspire the choice of keywords and code libraries. According to the HOPL online database of languages, out of the 8500+ programming languages recorded, roughly 2400 of them were developed in the United States, 600 in the United Kingdom, 160 in Canada, and...
 
@StevenLiekens oh come on that was an obvious one
 
it's been a long day
I need to write some code first to help me relax
 
4:33 PM
@Squiggle just running into a few issues with git now, hopefully, they'll clear up soon. Btw, besides command line, what's a good gui tool for git? My company is using SourceTree but I am thinking to use the git plugin for VS but idk if it's good or not
 
@KendallFrey yay it lists Piet, my favorite.
An esoteric programming language (sometimes shortened to esolang) is a programming language designed to test the boundaries of computer programming language design, as a proof of concept, as software art, as a hacking interface to another language (particularly functional programming or procedural programming languages), or as a joke. The use of esoteric distinguishes these languages from programming languages that working developers use to write software. Usually, an esolang's creators do not intend the language to be used for mainstream programming, although some esoteric features, such a...
 
this is the error:

"OracleException was unhandled by user code
An exception of type 'Oracle.ManagedDataAccess.Client.OracleException' occurred in Oracle.ManagedDataAccess.dll but was not handled in user code"
 
@KalaJ SourceTree is pretty good
 
wanna bet that exception is thrown in the dispose call?
 
@KalaJ Sourcetree is great, but the built-in stuff for VS2015 is sufficient for most things.
 
4:34 PM
@StevenLiekens nope it's actually on the ExecuteQuery
 
@Mr.Toxy then is it being thrown outside your try {} block?
 
your code says ExecuteNonQuery
 
ok SourceTree is getting a little annoying to use (It's very strict)_ but I suppose I can get used to it
 
OR is it being thrown INSIDE your catch {} block?
 
@Squiggle nope the execute is inside the try
 
4:35 PM
^ that's what I'm thinking
does Logg by any chance log to an oracle database?
 
step through it
 
I honestlty dont have any ideia why its happening
 
> step through it
 
@StevenLiekens the Logg() just loggs to a .txt nothing else, reports the file opened and the command wich gave the error, date, time and number of lines affected, if any
 
> step through it
 
user47589
4:37 PM
use a debugger
 
this is the full function

private bool ExecComando(string comando, CdpsiUpdateSql Updater, string log)
        {
            var executar = new OracleCommand
            {

                Connection = Updater.OraConnection,
                CommandType = CommandType.Text
            };
            try
            {

              // throw new OracleException();
                executar.CommandText = comando;
                linhas = executar.ExecuteNonQuery();
                return false;
            }
I got it debugging a unit test
 
user47589
does the exception have an InnerException?
 
it doesnt make sense why it says its an Oracle Exception but doesnt enter the catch
 
please tell me you're not using string concatenation for creating SQL statements
 
Sometimes you just see the weirdest crap in the office. I just walked in on some guy who filled his coffee cup with coffee and soap, and started scrubbing at it. He looked at me and explained "It's to get the fish smell out".

allmywut.jpg
 
4:39 PM
@Squiggle what? no. the commands come from a parser
 
aha right good-oh!
 
user47589
that parser thing he wrote that removes comments
 
@Mr.Toxy so if you step through it, which line throws the exception?
 
@Amy I will paste the exact error
 
user47589
4:40 PM
@Mr.Toxy i'd rather you answered my question
 
@Squiggle when executing the query on this line: linhas = executar.ExecuteNonQuery();
@Amy No its only one exception
 
user47589
So it doesn't have an InnerException?
 
Unable to execute SQL "\ INSERT INTO Table WHERE Id = --'"/
 
@Amy No I dont think so
 
user47589
You don't think so? Why don't you check
 
4:41 PM
but when I do this: throw new OracleException() it goes in the catch
 
@Squiggle he basically is
 
there is only one clear solution
switch to sql server
 
with the concatenation
 
@Sippy [insert a gif from that vomit scene from Team America here]
 
it only tells me this: An exception of type 'Oracle.ManagedDataAccess.Client.OracleException' occurred in Oracle.ManagedDataAccess.dll but was not handled in user code

And that the column to be added already exsits, but thats an oracleException as well right?
 
4:43 PM
Were you not here when he detailed what the parser does
Lol
Mother of wat
@Mr.Toxy what is the innerexception for that
 
user47589
@Sippy that's what i've been asking him
 
@Mr.Toxy OK. You're catching a System.Data.OracleClient.OracleException but it's throwing a Oracle.ManagedDataAccess.Client.OracleException.
amirite?
 
do you not get an innerexception if you catch the wrong one
oh
no you don't
kappa kekka
 
yes but arent them all OracleEceptions?
 
they aren't the same
 
user47589
4:44 PM
.....
 
all exceptions are oracleexceptions
 
rofl harris
 
yes, no need to look further
 
lol
hahaha
 
@Mr.Toxy namespaces, man!
 
user47589
4:45 PM
just because they share the same name doesn't mean they're the same thing
 
user47589
sigh
 
check the namespaces!
 
I feel like Squiggle is trying to make a reference
 
user47589
same
 
i don't get it, so no count
 
4:46 PM
catch (Exception e)
{
    if (e.GetType().Name != "OracleException") throw;
}
 
Namespaces are the computer equivalent of disambiguating between being able to kick or host a ball.
 
'System.References.ReferenceTooVagueException' occurred in System.References.dll but was not handled in user code
@Squiggle ooo that's nice
 
user47589
So as usual, this problem can be explained with PEBCAK
 
PEBCAK?
 
4:47 PM
@Sippy allow me to bore you on the intricacies of RDF...
 
user47589
Problem Exists Between Chair and Keyboard
 
hahahaha damn you
 
but... but what if he's standing while coding?
 
yeah
what if that happens
?
 
user47589
are you standing between chair and keyboard?
 
4:49 PM
lol thats just brutal
 
I thought that OracleException was like the defaukt exception for every Oracle exception, like Exception is for all exceptions. guess not
 
I'm literally LOL
 
@Amy hmmm hmmm :s hmmm nooo but but :(
I burned my tongue with coffee bare with me TwT
 
"bare with me", no thanks...
 
user47589
you type with your tongue?
 
4:52 PM
you dont?
 
user47589
I faceroll.
 
@NicolásCarlo you pervert person
 
i'm not the one who wrote it
 
user47589
he has a point.
 
yeah he has but but, he also knew what I wanted to write XD
oh it's "Bear"
 
user47589
4:55 PM
never burn your coffee bear
 
weird Bear as patience and not actually bear
 
user47589
waiting for its pic-a-nic basket
 
omg cryengine is open source now.
 
user47589
4:57 PM
yup
 
not just free, actually open source.
that's pretty cool.
 
> "Open Source Visual Basic Classic!" 11,361 upvotes
 

« first day (2047 days earlier)      last day (2901 days later) »