« first day (1942 days earlier)      last day (3023 days later) » 

12:19 AM
hey guys
not sure if this is more a WPF or C# question
I've returned an XML query in the form of an EntityCollection
Can I bind that directly to a list view? or should it be converted to a list?
I tried the following in order to convert to a list but came across an issue - any thoughts appreciated
0
Q: How to cast an Xrm.EntityCollection to a List?

Brian JOverview: I'm coding a FetchXML query to return users with disabled mailboxes in a Dynamics 2015 online CRM instance. Now I've come to a stage where the query results need to be bound to a ListView. (The project is using the Dynamics SDK 2015 libs.) In order to do this I've tried to cast the r...

 
 
3 hours later…
3:20 AM
posted on February 09, 2016 by Scott Hanselman

I got an interesting email today from Corey P., reprinted in part here, with permission. I’m curious, how you feel about GitHub’s activity graph? I’ve found myself getting increased levels of guilt/stress over that graph. So much so I’m considering not using GitHub for personal projects (only use it for contributing pull requests, reporting issues, etc.).  I can’t help but feel like othe

 
@BrianJ the serialization did not work?
 
3:34 AM
@Jack onedrive.live.com/… there is a PeopleMvvmSample that has a working demo
 
3:51 AM
Hello guys
 
4:22 AM
Hi all
 
 
2 hours later…
6:04 AM
anybody here who has used telerik controls?
 
Can someone help me on this question about monogame?
http://stackoverflow.com/questions/35278457/how-to-draw-every-characters-with-spritefont-in-monogame
 
6:44 AM
@Learning yep
 
ako
7:35 AM
hi there
i have asked a question but no one gives me an answer ( i need it's answer )
0
Q: access denied error when writing into a file in appData folder using c#

akoI have a desktop app in C# that stores it's data in an XML file. When application is installed in "Program Files" folder, its XML file goes to a folder in AppData(CommonApplicationData) folder. When reading from this files there is no problem but when writing into it it goes into exception acce...

i'll be thankful if anyone can help me about that
 
someone was telling me to use oData here
 
ako
oData??
what's that??
 
7:59 AM
a set of rules for exposing queryable data sources on the web
 
Morning all
 
all morning
 
Morning
What can you use as option to SVG on the web?
Vector based option that can handle fonts
 
what do you mean option?
 
I made a text as SVG format, but since it's a custom font, I can't use SVG. so I want to use some other format
 
8:03 AM
Why can't you use SVG?
SVG is the standard for vector graphics on the web
 
Since Google have decided to not support @font-face "I believe"
 
morning
Where would you host your oData services ?
 
It was something that was not supported for chrome anymore.
 
would you just host them like wcf web services ?
 
8:06 AM
@JakobMillah sorry, I'm not sure what you mean. Do you have a font face that you've created, like .woff? Or have you just some SVG images that you want to embed?
because SVG is native to HTML5
 
@StevenLiekens funny is it :)
 
I want to embed an SVG image. But apparently, when an SVG image includes text, the client needs to have that font or it will choose Arial as default
I tried EVERYTHING trying to add @font-face and what not. It didn't work
 
@JakobMillah thought you could embed it
 
apparently you can do msdeploy.exe -verb:sync -source:dirPath=C:\publishedsite -dest:dirPath=\\production\site
 
JavaScript room may have more experience in it
 
8:07 AM
http://stackoverflow.com/questions/26301986/are-svg-fonts-still-working-in-google-chrome

According to this, it's not supported by Chrome to use custom fonts in SVG anymore
 
I think that's quite useful
 
@StevenLiekens is that for me ?
 
no just rambling out loud
(out type?)
 
completely lost
 
I said I decided to learn msdeploy
that was my first little victory
 
8:09 AM
@Mathematics probably. But I avoid all the web dev rooms these days. They are mean AF
 
@JakobMillah aha. So what's the alternative? :-/
 
@Squiggle I don't know. probably add font-face to the CSS and then do a header tag. Or make a bigger PNG and scale it down.. But ye, I wanted a small file size and easily scalable solution.
But PNG is probably the way I have to go
caniuse.com/#feat=svg-fonts not many seem to support SVG fonts
 
@JakobMillah is this a logo or something? Or a longer passage of text? Can't you just ignore the font and embed it as <svg>?
 
@Squiggle Yep logo text
So the font is the important part :)
 
@JakobMillah so when you are hungry - you don't want to go to kitchen but to garden to find something to eat :S
 
8:12 AM
eh, use an image with alt text.
 
Ye, probably will. I'll open a question about it to see what people have to say about the matter
 
stackoverflow.com/a/16154726/1034004 if you're concerned about high resolution displays
got a job interview in 45 mins
I should probably get ready
 
Thanks! :)
What's that new job? Any kewl? :)
 
a local consultancy. Just hope they don't mind my lack of German skillz.
 
good (ugt) morning and luck
 
8:16 AM
I'm sick of short-term contracts. Last time I didn't get my contract extension through until 2 hours before the previous one expired.
can't deal with that sort of uncertainty
especially given my residency permit is tied to these contracts
mutter mutter mutter. Also the job was posted on SO Jobs and they give themselves 12/12 on the Joel test
 
it have 2 side of the coin, but yeah. I wouldn't work like that if housing depending on that
 
my housing has a termination clause longer than the length of each contract
 
I haven't heard about Joel test
 
3 month notice period on my apartment
 
@Squiggle money should let this feeling gone ?
 
8:19 AM
@Mathematics hah yeah I can happily say that money isn't the issue for me right now.
 
contract = pay x 3 *at least
 
More like x1.5, but yeah
 
@Squiggle then u are doing it wrong ;)
 
@Mathematics no I'm not, but thanks.
 
btw what that means in Joel test step 2?
-Can you make a build in one step?
Git clone is separate step?
 
8:20 AM
Hi fellows . Is there any C# MVC Expert ?
 
Do you fix bugs before writing new code? +++++
I like this one. I didn't know there is a company ever existed apply that rule...
 
@Squiggle pay x 1.5 is overtime rate not contract rate...
 
Should one use SSL always or not? for e-com
 
@Peck_conyon Lots. Just ask your question
 
@RoelvanUden Can any one tell me why is this code fails ?
@foreach (MVC4_Cemetery.Models.Grave grave in Model)
{
<text>


var data1 =" ",data2=" ";


try
{
data1 = [ @grave.StrokeColor].toString();
data2 = [ @grave.FillColor].toString();

test(data1,data2);
}
catch(err)
{
alert(err.message);
}


</text>
}
 
8:24 AM
@Squiggle Good luck with that. I get my permanent post in march. Feels gut
 
@Peck_conyon What the actual fuck? You're mixing JS with C#? Then you need to escape your variables in JS. The errors are in your JS console. Look at it.
 
also this stuff is in <text></text> block, would'nt it just print that sutff out?
 
@RoelvanUden I want to access Model data inside the javascript and This one is working as I want . It fails when there is any strings . StrokeColor and FillColor are two C# strings
 
Yes you need to turn them into valid JS. Look at your JS console.
 
8:28 AM
But it worked fine with Integers and Doubles ... @foreach (MVC4_Cemetery.Models.Grave grave in Model)
{
<text>


var data = [];


data.push([ @grave.North]);
data.push([ @grave.South]);
data.push([ @grave.East]);
data.push([ @grave.West]);
data.push([ @grave.Id]);
data.push([ @grave.FillOpacity]);
data.push([ @grave.StrokeOpacity]);
data.push([ @grave.StrokeWeight]);



createGrave(data)



</text>
}
 
@Jamaxack I'm reading right that
 
I freakin hate asking questions on SO... So many there just to pick on your question, finding them holes..
 
@Peck_conyon Like I said twice already, you need to look at your JS console.
@Peck_conyon var a = something long; is not valid JS. Your console will tell you.
Look at the errors and deal with them
 
Apparently, I asked my question based on a too "subjective" answer. If I would ask for the ONLY RIGHT WAY of doing what I want to do, people would pick on me and tell me that there is no right solution...
God.
 
haha
 
8:31 AM
I like the rules 1, 3, 4, 5, 8, 9, 12 in Joel test
 
SO community is ruthless
 
That's why I ask questions in here.. Jesus, the greed for the SO points is like Ebola..
 
And that's why I don't answer questions on main SO.
 
yeap, folks of this town are great :)
 
@JakobMillah just ask here instead.
 
8:35 AM
I like the thrill of the fight for SO points :D You can't make mistakes
pick an easy question and be creative with alternative solution. You can gamble for Your alternative solution will be considered answer.
 
I hate answering questions, because people can't give appropriate feedback, or even mark an answer as the solution.
 
I hate the second part too. If they don't mark it answered
 
its been months, i haven't answered questions.
My lack of knowledge is the primary factor. But yea, I dont usually get the feedback.
 
I've seen so many answers that covers the question and give a more in depth description of the problem, and yet it isn't marked as the solution.
 
But it is good when you open Stakeoverflow page and there is green saying +10
 
8:39 AM
good feeling xD
 
common feedback: "i dont understand, give code please"
 
I like the +75 when answering a bountied question :d
@scheien than You write half a novel to elaborate, and the feedback is still. Giff me codz
 
I got my most points on the most stupid and simple answer ever. Anything semi complicated will get ignored forever.
 
@ntohl yep :(
 
has anyone here used Finnair before?
 
8:45 AM
@RoelvanUden lol. 29 upvotes for telling someone there is someting like for..in :D
 
There you go.
Stupid answers..
 
@scheien I did :) Question was more suited for web chat anyway, but ye. They are #rude
 
Great :)
 
@scheien chat.stackoverflow.com/transcript/message/28647850#28647850 You can take a look at it here if you like. TL;DR. I want scalable logo text based on screen width.. What's the way to go
 
9:01 AM
Like in a responsive context? Different size for mobile, tablets and desktop?
 
looool. Joel talking about estimations... The next part is gold:
"But you can never get 3n from n, ever, and if you think you can, please email me the stock ticker of your company so I can short it."
 
@scheien Ye, but not static like; screen width min 700px -> font-size: 1.2REM. I want it like font-size:50vw; "which isn't the way to go obsviously. An idea was to just add a high res png and scale it down. But the more I can reduce page load, the better
 
@RoelvanUden Hi I tried with js console and tried all possible ways add double quotation. string text1 = @"""inside quotes"""; string text2 = "\"inside quotes\"";
 
JS does not have "string"
 
@RoelvanUden it is inside c#
 
9:14 AM
@JakobMillah Sounds a bit outside the usual way of doing it
 
Did you actually look at the errors?
 
@RoelvanUden ya
 
And did you see the problem?
 
@RoelvanUden yes even they are strings when assigning them to a js variable at run time it needs to have double quotations like this var data1 = [ "some text"]; but at js console it is like this var data1 = [ some text];
 
So make the strings like var data1 = '@razorvalue' and call it a day
 
9:21 AM
@RoelvanUden so how I set C# string variable like string text = ?????
 
@JakobMillah: like this: jsfiddle.net/r72u5c8v/2
 
@scheien Pretty much, but as you see. It's not the way you want it ;) I want it to scale just like it would be an image
doing like that is like font-size: {screen width} pt;
 
So you want to scale height as well?
You could do it in js though. Not sure what you want right now
:p
 
Nope, just the width to be a percentage of the screen. If you set font-size:50vw; it won't be half of the new
It will be much much larger
View***
So.. Question is.. does font-size:50%; work.. hmm, I'll borrow your fiddle
I could use font-size:vw;, but since fonts are based on it's height, it won't feel.. right :P It's weird setting something to be half of something when the result won't be that :)
 
9:40 AM
You could manipulate it with js, updating the css with font-size, width, height, line-height or whatever other property you need.
based on a viewport change
Not quite as neat, but it does the job if you really need it to be like that
 
https://jsfiddle.net/r72u5c8v/9/

As shown, not quiet right :)

Ye I am avoiding javascript for that matter. I will probably just do it using an image
 
@RoelvanUden I found it . in c# string StrokeColor = "'#FF000'" ; inside view js var data1 = [@Html.Raw( @grave.StrokeColor)];
 
@JakobMillah I see. Seems to scale well though, but you want it to scale the same way as the picture?
 
@scheien Ye exactly :)
It works with SVG, but font-face is not supported in SVG, which means that I can't use my custom font
 
Then use a normal font. :)
No, I'm just kidding.
 
9:45 AM
Haha
My lovely brand font :<
 
@RoelvanUden Thanks :)
 
10:03 AM
Hi all
 
Hey you
 
10:20 AM
I'm trying to use the [Deserialize] attribute in a method parameter, but I am getting the error message Inheritance security rules violated by type: 'Microsoft.Web.Mvc.DeserializeAttribute'. Derived types must either match the security accessibility of the base type or be less accessible. pastebin.com/uaCLDrRU
 
10:34 AM
Well fuck, I changed nothing and now can't save shit.
 
10:48 AM
Hii all,
Is it Possible to send sms through my smart phone that is connected to network but not to pc using C# application
 
But How ? Do You have any Idea
 
It depends entirely on what your definition of "C# application" is. Give us context.
 
Normal Application to send Greeting Messages
 
"Normal"...?
 
10:52 AM
so to run C#... it's going to either be on a pc, or in mono on the smartphone. 'Not to use PC' means on smartphone right?
 
sorry i don't get you?
No the application would run on pc
 
ok so what do you mean by 'Not to PC' ?
you mean the phone isnt connected to the pc
 
well you need to communicate with teh phone somehow
internet/bluetooth/usb/something
 
if i connect it with internet then is it ok
 
10:54 AM
you'll need some kind of app on the phone
 
and is it necessary that both the devices should be on same network
 
It's quite simple really. You just send a push message to the device from your PC, handle it in a task responder on the device, transform it to a SMS, and send it. It's really EXTREMELY roundabout since you can just SMS via a telephone back-end (they are super cheaply accessible via API online)
 
nice answer ... but what do you mean by
task responder
 
It depends on the Phone OS. In Android it's a service, in Windows Phone it's a task, in iPhone I don't know the correct name.
 
and ja, why not just use an online SMS service
 
10:56 AM
But really just send it over a gateway..
 
jup.
 
but i want to show my number to the recipient
 
You can do that by setting the correct field.
 
then is it possible through gateway
 
yes
 
10:58 AM
ok, if you don't mind do you have any example
 
No, just buy an online SMS API and use their examples.
We use our own back-end.
 
@Squiggle thx for the pointer to the Joel test. Enjoyed the last half hour reading the blogs of him.
 
We use www.vine.co.za ... but I wouldn't recommend them perse ... just giving an example
theres so many of them
you'll want to shop for best price with decent API
 
ok Thanks All :)
@RoelvanUden Thank you :)
 
11:08 AM
looks like a nice one
 
@ntohl :)
 
11:24 AM
excuse me.. I want to ask something about microsoft access library
lets say I referenced an ACEDAO library from microsoft office 2010 64 bit
if I deploy it to an environment which has microsoft office 2007 64 bit, will it work out of the box?
 
11:45 AM
firstly yuck. secondly, not sure.
 
i want to say no
i've never used ACEDAO but let's just say no
 
last time i tried you had to have the exact same version installed
 
I have asked a question stackoverflow.com/questions/35290848/… but would some one be kind enough to let me know if they think if this is answerable or if the asnwer is more likely to be "it is because that's the way it is"
 
12:07 PM
@MyDaftQuestions I'm not sure why is it this way, but it is easier to implement modularity this way. You can extract the style tag into a resource and You still have the information that the style is for a ComboBox. That is my guess
@Squiggle how did the interview went?
 
Morning
 
12:22 PM
how on earth is this possible ?
 
Evening
Haha Mathematics
 
@Mathematics Threading?
 
@ntohl not bad. They made me write some javascript pseudocode to reverse a string.
my first reaction was to just write _.reverse(s);
 
isn't there a function for that already?
yeah :D
 
@Squiggle Well done. Don't over do it.
@Squiggle why did You have second reaction?
 
12:26 PM
@AdrianK. yeah :-/ this is why I dislike these sorts of interview questions.
@ntohl I caved in and wrote a for loop.
 
why reinvent the wheel again
but maybe they've wanted to check algorythmic skills
 
then there was a code review, and some Angular stuff. It was mostly OK. Nice people, interesting work.
 
I don't know JS much. Is there a possibility of error when You go with a for loop through a 2 byte long char? like ő?
 
@Squiggle keeping my fingers crossed
 
nope. It's still a char.
although I think some diacritics can cause headaches
 
12:28 PM
yeah. That is the word I searched for :D
 
Hi everyone. I have dilemma about performance issue.
Does excessive use of ConcurrentDictionary has performance issue or leads to memory leakage.
For example I want to keep all connected users to my website in a ConcurrentDictionary until they logout. Number of users logged in at a time may reach to 40K or above.
 
@Squiggle Array.from('aabbcc').reduce((c, p) => p + c, '')
:-P because fuck interviews, that's why
 
@RoelvanUden +1
 
@RoelvanUden Sand King Approves
 
12:32 PM
@RoelvanUden Array.from not supported in IE ;)
 
@Squiggle ohh. The pain...
 
Array.from = function(a) {
  var r = [];
  for (var i = 0; i < a.length; i++) r.push(a[i]);
  return r;
};
>_<' I dislike stupid interviews. I'm allergic to them.
Sorry. It went well though? :P
 
btw what was the question about code review?
 
hah yeah. It was fine.
 
hey people, can I make update sql statement only if argument of the procedure has specified value? Something like (in c#): if(number == 1) update ... without else
 
12:35 PM
@ntohl "Here's a tiny Angular app with a few mistakes in it. Identify mistakes and provide constructive feedback."
no C# questions at all, unfortunately
 
@Dess update where
 
@ShishirKushwaha sorry for a late reply - you have a bit of a vague question. What have you tried, and what problems have you experienced?
 
@RoelvanUden heh thanks, so easy:P
 
@RoelvanUden calling this class library in a console app, in a single thread
 
@Mathematics Then is rvInstance a property? show the body.
 
12:38 PM
@Squiggle ohh. I thought they were asking about how a good code review is done.
 
@RoelvanUden this is the full class
 
Does ReportViewer live in a non-source available assembly? in that case it could have originated in there
 
That is my tinder today
 
Bots everywhere.
 
12:41 PM
Yep...
 
@JakobMillah is that Swedish for "I want to add you to my Linked In contacts"?
 
Hi Thommy, I am very playful.......
 
aww
time for a coffeeeee
 
coffee!?
:o
 
@RoelvanUden this is how I am using it
 
12:44 PM
@Mathematics Any idea what that dispose in ReportViewer looks like? Is it a class you have code for?
 
@Squiggle I slept 2 hours. Drinking my monster since the morning
 
@PlaceboZA what report viewer :S
 
I'm afraid when it's empty my head will hit the keyboard
 
@Mathematics rvInstance is a 'ReportViewer' type
 
@ntohl if you end up posting "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" into the chat I'll be sure to let you know
 
12:46 PM
that you're calling dispose on, in your dispose
 
@Squiggle Have You tested it? It will be sticky keys...
:D
 
@PlaceboZA I am still not sure what's the question :S , sorry
how dispose looks like in report viewer ?
 
@Mathematics Yes. If you don't have source for it, and it throws a NullReferenceException, it's displayed like you see it now.
 
am completely lost :(
 
Why, you can read English can't ya?
 
12:49 PM
If you don't have source for it, what source :S
 
The dispose of the ReportViewer
 
report viewer is just a instance and should be disposed off with class
 
...
Do you have the source code of ReportViewer.Dispose or not??
 
oh, it's a .Net control
Microsoft.Reporting.WebForms.ReportViewer
 
Thank you! So you don't have the source code and ReportViewer.Dispose is throwing this error!
 
12:55 PM
yes, that's right :)
 
なぜ私も気にしませんでした >_<'
 
I understood ">_<'"
 
I'm just raging
 

« first day (1942 days earlier)      last day (3023 days later) »