« first day (1969 days earlier)      last day (2970 days later) » 

1:00 PM
nothing, still the same error
 
what error is that
double to float cannot implicit?
Help.PRECISION is a double and should be float?
 
Cannot implicitly convert double to float. An explicit converiosn exists.(are you missing a cast?)
 
what is the type of winPercent?
 
@TomW Hahahahaha
 
Gahhh... So annoying in method calls in VB that there is no indication if it's byRef or byVal.
 
1:02 PM
@TomW BEES NERD!!!!!!!!!!!!!!!
 
i just forgot the signature yea, Math.Round only takes double/decimal
 
Helper.PRECISION is integer
haha
 
public static double Round(
double value,
int digits
)
 
ugh
Trying to test the runbook and it just hangs on "Queued...................."
much use ty microsoft
 
winPercent is float
 
1:03 PM
Round(value, precision) will return a double.
 
well sippy try to make a console application with azure config nuget and then publish it as a webjob
instead of writing a power shell script that is
 
@Vlad that is the problem
 
yes thank you, haha
 
that is the implicit conversion. .Round returns double, and when You try to give it to a float, precision may be lost
 
1:04 PM
mixing all the types
 
yeah fork it on github
lmao
 
float percent = ((float)numOfCorrect * 100) / (float)numOfTasks;
winPercent = (float)Math.Round((double)percent, Helper.PRECISION);
this works
 
@Vlad why do You want to be float anyway?
leave them all double, and all the explicit conversions go away. And You won't loose precision
 
well double is 64 bit
 
@Vlad winPercent = (float)Math.Round(percent, Helper.PRECISION); ok <-- implicit conversion
 
1:06 PM
that extra memory allocation is still made on conversion
 
not sure, i am making a math quiz game and double seem like a bit too much precise :)
 
lol. Never mind that amount of memory...
 
I need like two digits of precision
 
use decimal
 
or three the most
 
1:08 PM
You can specify this like of precision in decimal
 
Hello
 
Decimal is a type?
Wow: The decimal keyword indicates a 128-bit data type. Compared to floating-point types, the decimal type has more precision and a smaller range, which makes it appropriate for financial and monetary calculations. The approximate range and precision for the decimal type are shown in the following table.
 
Yeah. And Math.Round takes decimal or double
 
more or less, I still have to make separate function for this, so gonna keep my previous one. Less calculations.
:)
from float to double, from double to float hehe
 
Just realize that casting takes time too
 
1:15 PM
I need to prevent a specific process from creating MessageBox so I looked for a solution and found about CBTProc function (msdn.microsoft.com/en-us/library/ms644977(VS.85).aspx) which seems to provide a way to detect a request to the os to create a window and a way to prevent it. Is this the way to go? I would like a C# solution if possible. Note that I'm an absolute newbie in CBTProc and unsafe code. Thanks
 
yes
 
so maybe write your own little "Round" that deals with floats
 
yes I posted it scroll upward.
 
btw 11 == Math.Round(11.5d) <- floating point precision is never best
 
but remove mathf
oh well
 
1:25 PM
Mathf <-- Unity3D
 
I know, I just meant the whole point of writing your own function was removing the original Math.Round. But I guess casting is needed in any case so this isnt such a bright idea
 
MessageBox.Show(Math.Round(new decimal(23) * new decimal(0.5), 0).ToString()); shows 12
 
but still casting float double around 28 times a second (every frame) on a single line kind of sucks
 
MessageBox.Show(Math.Round(new decimal(11.5), 0).ToString()); shows 12 as well
 
decimal is 128 bit, I dont need that amout of precision
 
1:28 PM
MessageBox.Show(Math.Round(11.5d, 0).ToString()); too
 
So should I use UnityEngine.Random.Range (int, int) or System.Random.Next(int int)?
 
use the unity one
since it has no seed it seems
 
yes I guess better UnityEngine.Random.Range since I might port it on other platforms.
Still I need to make a helper function just so I save my self from writing all the time UnityEngine.Random.Range () :)
 
using UnityEngine.Random ;-)
 
1:33 PM
^
 
I do believe mono can compile mscorlib so it is cross platform
 
@Squiggle unless your mixing soap with nodejs, then abandon all hope
 
@CharlieBrown egads man what do you take me for
also "you're".
 
you, i dont worry so much about.... your management on the other hand..
 
Hello o/
 
1:35 PM
@Squiggle what did I tell you...
 
@CharlieBrown here it's WCF all the way. In {{vm.newJob}} there's no SOAP at all.
also good morning Mr. Brown.
 
Is anyone using Telerik MVC Grid?
 
Is testing "save file to disk" functionality considered integration test?
 
@Squiggle wcf xml?
 
anybody worked with asp classic?
 
1:43 PM
14+ yrs ago
 
same
 
Yeah, something like that, yes. 15 years or so. :)
 
permission denied error occured while sending email
 
@CharlieBrown Sorry, what's the question?
 
@Vlad Probably, since it relies on an external dependency that's not part of the test itself.
 
1:45 PM
wcf lets you do soap (isnt that the default, idk, its been a while)
 
Yeah SOAP is the default. It doesn't make sense to use much else in most scenarios. However, we've mostly transitioned to JSON WebAPI now.
 
Damn this MonoBehavior, I cannot instantiate it with "new" keyword :)
 
@misha130 I hope you do realize that being able to compile something does not necessarily mean it runs/works as intended.
 
:^)
 
@CharlieBrown We used WCF over SOAP, then switched to a REST/plain old HTTP call model. Our server is now WebAPI/JSON, and our client still uses WCF, but the calls are mapped to JSON HTTP calls.
 
1:49 PM
c# webapi + nodejs + redis + mongo + ng = best tech stack right now, imo
 
@CharlieBrown Wait, why would you need both nodejs and webapi?
 
golang?
instead of c# webapi
 
They're on comparable places on the stack.
 
Web api for heavy lifting, but node is better for lightweight services and serving content
in other words, nodejs instead of MVC (or plain IIS)
 
Ok. Seems like having two different languages and platforms for your server-side can be a bit of a pain, though. You have to have two sets of middleware providers for auth, logging or whatever.
 
1:52 PM
Nah I think I see where CB's coming from.
 
its oauth, so its not a problem
also, you cant serve static content from webapi, so you still need something for that
 
Even if nodejs isn't used server-side it's still incredibly useful for tooling
 
@Squiggle Just Use JicamaJS tooling
 
@Failsafe but of course! - this nodejs is just a nice little side-project tho
 
best stack: JicamaJS + JicamaJS + JicamaJS + one panini
 
1:54 PM
node handles our cdn, js, css builds, static html serving, etc etc. Most of it has no auth, for performance
 
I've just started playing around with nodejs, setting up a little site/app using Express.
 
i stopped messing with nodejs when it created a folder that couldn't be deleted
 
Its also a document storage server backed by mongodb, and rest logging endpoint for analytics
@Failsafe fixed in node 4.5+
 
@CharlieBrown do you like mongo?
 
mongo is great, for doc storage its my primary choice
 
1:57 PM
Sometimes I wonder why the F there are aspx files in webforms.. Why not just write every single damn line in the c# file... Jesus ****** christ
 
@CharlieBrown nice
 
@CharlieBrown what's the scale of your system?
 
I use hapi.js instead of express, created by Erin Hammer / walmart team
@Squiggle more specific?
 
@JakobMillah you can technically
in page_load
 
@CharlieBrown do you have to consider performance and scaleability as a core feature? do you have thousands of concurrent users?
 
1:58 PM
yes @Failsafe... It would cause less confusion in my case..
 
Our load is about 6800 hits/min
 
@CharlieBrown swap ng for react and you got something much sweeter going on.
 
'cos my background is internal business apps, so generally ~100 concurrent users max. Totally monolithic server environment.
neat
 
@RoelvanUden swap react for jicama and you got something much potatoer going on
 
react is fun and all, but i don't want to retrain 16 devs for something that is in so much flux
 
2:01 PM
what about ng 2.0?
 
will be moving to it, eventually
 
i have some stuff i would love to migrate
 
good morning and happy monday
 
its hard to get funding for things like "upgrade to next version"... silly, but thats enterprise for you
 
@SteveG get out
no monday is happy
 
2:02 PM
lol
dude, i slept for like 10 hours last night, i am one chipper mother fucker
 
Hello, again.
 
@SteveG you're twisting my melon, man
 
lmao
 
@Squiggle Ew dude
keep it PG in here
damn
 
So how can you unit test a function that has functionality to save file to disk?
Fake a creation of a file?
 
2:04 PM
@CharlieBrown Oh, I've only spent 10 minutes on each "major" upgrade so far. Then again, I do abstract components a little bit.
 
@Vlad you should pull out the actual saving to disk functionality, use DI, and mock it
 
our sites are actually not large at all, but the legacy ones are pure over-architected java nightmares
gutting out that junk is so painfully slow
 
Java Nightmares
sounds like a food network show
it's on right after Kitchen Nightmares
@SteveG How do you even DI that though
 
good call, it could be a reality show for developers
the challenge is to write a decent java app in the same amount of time as any other language
 
@Failsafe use memorystream?
 
2:07 PM
@CharlieBrown IMHO, java is really easy to not fuck up in
@ntohl I was thinking of something like > /dev/null
haha
i don't think that exists though
 
@Failsafe that's why Java developers invented "Enterprise Architecture" - they invented a whole new way to fuck up completely
 
@CharlieBrown I've never really had any major problems with java, besides it being behind on functionality
 
traditionally, java is written in a tiring way
c# web api compared to java spring is like 2099 vs 1985
 
I can't update the Foreign Key value in Telerik MVC Grid (Popup edit). When I create any record I'm able to add value for Foreign Key but when it comes to updating, it updates all other fields but Foreign Key. I've searched everywhere and also opened a support ticket and so far I got nothing back.
 
user47589
before I picked up .Net, I thought Java and C# was too verbose
 
user47589
2:13 PM
now i just think Java is too verbose
 
@Amy define verbose
 
user47589
!!define verbose
 
@Amy verbose Abounding in words, containing more words than necessary; long-winded.
 
!!redefine verbose java
 
@AvnerShahar-Kashtan That didn't make much sense. Maybe you meant: define
 
2:16 PM
yeah, read the source code for WSS4J (Java Soap library). It's an absolute shame
 
Sorry I should've said give me an example
 
Haven't messed with Java 8, but when I first saw how to write anonymous types in Java 7 I was horrified.
 
factory of factory of factory of adapter of factory
 
ahh
 
user47589
2:17 PM
@CharlieBrown understands.
 
I have 23 fileds which are public but not static and this returns length 0 :)
FieldInfo[] fields = typeof(SaveLoadGameDataController).GetFields(BindingFlags.Public);
fields.Length = 0
 
@Vlad BindingFlags.Public | BindingFlags.Instance?
 
bools, ints, floats hehe
 
user47589
Avner is right. You have to pass in the Instance binding flag
 
this sounds like bad design though
 
2:21 PM
@misha130 Which one? The 23 fields or the having to pass in the BindingFlag? I can agree to both. :)
 
well the 23 fields is something he can change
 
Its a test.
 
The BindingFlag thing makes sense
otherwise, how would you exclude those?
 
The whole BindingFlags thing is a bit of a mess, since it's a huge enum with a lot of flags that only make sense in certain contexts.
 
that is true
 
2:23 PM
For instance, BindingFlags.InvokeMethod makes sense when you're calling Type.InvokeMember. Less so when you're calling Type.GetFields.
But since reflection is all about throwing caution and type safety to the wind, I've gotten used to it over the years.
 
just like javascript
 
@KendallFrey Wow, they should totally have implemented reflection in .NET as a domain-specific language written in Javascript.
"You want no type safety? We'll give you no type safety!"
 
so... type danger
which would put you in a zone
 
stop while you're behind
 
a zone... of danger
 
2:26 PM
pls
 
!!dangerzone
 
user47589
the danger zone!
 
highway to the danger zone :)
 
fucking apple store bullcrap is bugging the fuck up again, how the fuck does anyone appreciate this apple crap?! its a fucking mystery.
2
 
2:28 PM
@RoelvanUden I tried to upgrade an old Macbook to El Capitan the other day. A free upgrade. They still wanted my CC details. :(
 
public class ILog {
   void Ins(string message);
}
...
ILog kennyLog = new Logger();
kennyLog.Ins("danger zone!");
 
That's... clever
 
no it's dumb
 
I refused. Turns out you can create a new Apple Id with no payment details if you start the workflow by clicking on a free app and choose Create New Apple Id from that window only. IT let me choose "No Payment", had a terrible user-details form, and then failed with an "Unspecified error".
 
but it's the only C#-related pun I could think of.
 
2:29 PM
Quick question, what's the best way to show excel sheet data on a mvc website?
 
I once had a friend and he told me, to respect Apple is like being part of a worship clan. Don't rmemeber the right word.
 
@SamyS.Rathore With a <table>
 
@AvnerShahar-Kashtan I dont even dare to upgrade this crap machine
 
^ +1 for <table> unless your requirements are "make it do Excel things, too"
 
@SamyS.Rathore Find a 3rd party control that renders Excel.
 
2:31 PM
@AvnerShahar-Kashtan thanks i've been considering that
 
Shit my team lead says - "The cool thing about MEAN is that it's JavaScript from head to toe."
 
@Vlad "cult"?
 
@kendall like I have the actual file. Shall we create the whole layout from the data?
 
>cool thing
>JavaScript
One of those words does not mean what he thinks it means.
 
2:31 PM
sounds exciting
 
@SamyS.Rathore vOv
 
@mikeTheLiar he probably has some issues
or likes being tortured
 
@mikeTheLiar Hey, I love JS
 
@KendallFrey who hurt you?
 
My job
 
2:33 PM
lol
 
I used to write JScript scripts for a living
 
I wouldn't call that living
 
I was paid
that makes it a living
 
@KendallFrey yes a cult, or the other thing, when you need to die for you cult if they ask for it :)
 
more like purgatory
 
2:34 PM
@Vlad Doesn't that generally mean any religion?
 
Sect, secta, dont remember the english word, but yes a religion would sufice
 
user47589
i dont see a meaningful difference between standard religions and cults, just a difference of size.
 
all cults eventually become religions?
its like a pokemon evolution thing
 
Pantheons become religions
 
2:39 PM
hahah
 
Not all. Some die out. I guess there's some sort of cult-capacity event horizon that needs to be met.
 
That's the most inappropriate use the of the phrase "event horizon" I've ever seen.
 
user47589
my brain hurts
 
[@KendallFrey has started worshiping Pantheon of Haskell]
 
become is a strong word, i prefer "be renamed"
 
2:41 PM
main = printLn "All hail Haskell!" >> main
 
hello
hello, i have changed data file on my wpf app so the app need every time to check on internet if is there is new version o the data file that i made, is there a free service to store my changing file on internet with having a direct link that doesn't change/expire. and thanks
?
 
dropbox?
github maybe
via rawgit
 
dropbox no i ask them they say you can't , github i will check this thank you
 
user47589
all links expire in time.
 
This too shall rot.
 
2:43 PM
@Bilal You're asking for source control?
 
user47589
from the aether the links came to us. to the aether they will return
 
user47589
some links come from sausage, but we do not speak of these.
 
mmmm sausage
 
That's not sausage.
 
that is not sausage, that is kebab
 
2:47 PM
404 Sausage not found
 
a kebab with a strawberry, wtf?
 
am starvin
 
who shat on the grill
 
awww yiss that's a sausage
 
2:48 PM
@KendallFrey judging by the size I'd say it had to be your mother
 
@KendallFrey the correct term is "extrude"
 
@Squiggle I'll never be able to do 3D modeling innocently again
 
german sausages...so good
 
And for lunch I want ze viener
schnitzel, ooh yaah
 
@Squiggle: i search for a free host that save my changed data file (if the host gives a framework will be great) , and my app(on the users side) check that host every time if she found a newer file version she download the newer ones. like on some apps that updates automatically if new version exists
 
2:50 PM
!!youtube das beer boot
 
@Bilal Don't rely on free hosts. Pay for a little server.
Or, if open source, GitHub or similar solution is fine.
 
or hook up to dropbox api and run a check
I dont know why they told you they dont offer that
 
@Bilal yeah I have done that is v nice
Also checked the loading app when the app launched to make sure it was latest also
 
@Ggalla17 ok
 
2:54 PM
Anyone got any recommendations for IT hardware inventory management software? ~500 people, multiple sites...
 
thank you all , i will try this with GitHub ,specially my app is open source
 
Then just host an update branch (or in master if you're brave enough) that you check. Can't be more simple than that.
 
@Squiggle are you asking to buy a product
or make a product
 
@Failsafe To buy. Asking for a friend.
 
> asking for a friend
yea ok
 
2:59 PM
OMG. Apple let their signing certificates expire. You have to manually go into the key chain and ditch the expired certificates, then fetch new certificates manually, revoke your existing certificates and then generate new certificates for your apps, restart the Mac, and then try signing again. Bonus points for hiding invalid certificates and not updating them automatically. Gg Apple. Making life miserable since the 80's
 
user47589
@Squiggle if you have a problem you can talk to us.
 
lord help me
 
@CharlieBrown Tel me son, what can I do? :P
 

« first day (1969 days earlier)      last day (2970 days later) »