« first day (1944 days earlier)      last day (3010 days later) » 

11:00 AM
resharper does take away lots of intellisense stuff
 
@RoelvanUden get a proper hard drive
 
@Wardy Did you read? It's a tablet.
 
@juanvan depends how you configure it ... last itme i had it installed it was popping up its own stuff and the usual Vs stuff
 
@RoelvanUden I learned my lesson when I purchased a cheap one.. Don't do it... Nor with phones <.<
 
if i hover over something i was getting like 3 popups
 
11:01 AM
propfull never comes in for me
 
rediculous
 
@JakobMillah Never had a problem with cheap phones so far. They're so boxed in and update easily (Windows Phone, that is).
 
Woo! Just accepted the job.
7
 
@RoelvanUden yeh ... so each time you want to upgrade you're doing to have to do a clean install
@Squiggle gratz man ... good job?
 
@Wardy I'm fine with that. How do I do that?
@Squiggle Grats with the new job!
 
11:02 AM
@RoelvanUden build a usb based installation source and boot from it
 
@Wardy yeah. More exciting than here. I get to play with mobile stuff and do a bit of R&D as well.
 
@Squiggle congrats
 
ta @RoelvanUden :)
^_^
 
@Wardy I don't have a Windows 10 key since it's pre-installed and all.
 
@RoelvanUden no1 does any more ... I don't think microsoft issue keys any more
 
11:04 AM
So.. Windows 10 is a free download now then? I doubt that.
 
@RoelvanUden you might be able to put a cert file / something on the install usb stick to have it auto licence the OS after install ... you'll have to look in to that
@RoelvanUden yeh i believe so
just go to MS and download the windows 10 iso
 
16gbs is nothing
 
> Qualified Windows 7 or Windows 8.1 devices can upgrade for free.
It's not an upgrade. A clean install still requires a key.
 
@RoelvanUden I believe there is a way to do it, you will have to contact microsoft support though
 
11:08 AM
This is some fucked up shit.
 
I have it working on my pc ... although my main workstation is an insider build
I have it upgrading on the slow track
pretty stable
 
@Ggalla1779 So how do I extract the key?
 
Yeah it just says how keys are structured. If I completely format the machine and need to install Windows 10 again, I need a key. I don't have one.
 
11:11 AM
How to find your product key depends on how you bought your copy of Windows 10:
which are you
 
> If you bought a new PC running Windows 10, the product key will be pre–installed on your PC and your PC will automatically be activated, included with the packaging the PC came in, or included on the Certificate of Authenticity (COA) attached to the PC.
Yeah great. If I format it, it's gone.
 
sorry looks like your going to have to call them
 
It's a tablet for gods sake.
 
lawl
 
I think I may have made a mistake buying this device.
 
11:12 AM
not sure why its got 16gb ssd with windows 10
can you not take it back and say not fit for purpose
 
Because it's the minimum required for Windows 10. 16GB.
It's on their system requirements.
They just botched updates.
 
@RoelvanUden My problem with cheap phones has been the storage

@Squiggle Congrats!
 
can you see about pulling the key from the system?
 
11:32 AM
0
Q: Better or optimized way to filter customer records by 3 dropdown filters

LearningI have one page name as:CustomerList.aspx on which i am displaying list of customers. This is my table and class files too: public partial class Customer { public int CustomerID { get; set; } public string FullName { get; set; } public string EmailId { get; set; } ...

 
11:45 AM
@Wardy I disagree. Yeah, it slows down VS a bit. But its navigation tools (jump to class/file/method from one fast textbox) more than makes up for it.
 
@AvnerShahar-Kashtan right click > go to definition
not sure why you need a heavy framework of crap for that
 
@Wardy Ctrl-T - type anything. Not necessarily a type I have on screen right now.
Also, context-switching to a mouse is bad. Shift-F12 would do that, but it's still a lot less effective.
 
ok maybe i have a better optimised way of working ... since I'm working on a mostly linear stack of related components
 
There's Ctrl-,/Ctrl-; in VS, but they're much slower than Resharper's implementation, and not as flexible (no CamelCase auto-expansion)
 
I guess I can see how it might help if you have a messy codebase
 
11:47 AM
*tips hat to a fine backhanded compliment*
 
this is why coding standards are important
 
If you want to open a specific class to work on, how do you do it?
 
I find it in my very small solution of about 10 projects
usually I can just do ctrl + F and search for it
and because all my types use the same casing / naming standards I just type the name correctly
 
For me, pressing Ctrl-T + typing initials of class and Enter. Less than a second. Just going to the Solution Explorer to look for it would take more, even before I found it.
Resharper's refactorings are nice, but it's the navigation tools that sell it for me.
 
then if i didn't search for "class Foo" instead searched for "Foo" i could right click > go to def on that
@AvnerShahar-Kashtan that I agree on
its refactoring abilities imo should be core VS functionality
 
11:49 AM
@Wardy It literally takes me less time to navigate to a class than it would for my hand to reach the mouse. :)
@Wardy VS catches up to it, version by version. Which is as it should be, because they probably don't want to alienate a relatively major player in their ecosystem.
 
@AvnerShahar-Kashtan yeh ... me too usually ... because generally speaking i'm already in the right place for most common tasks
again there's no tool to replace good coding standards
hard though when you have a lot of legacy code
so I see why people turn to resharper
but it just gripes me with its overly resource hungry attitude to my VS instance
 
In my experience, the biggest resource hog in VS is the XAML designer.
It's awful.
 
i mean VS is already doing a quality job without it so why load in all that weight for a few minor perks unless you really need it but imo you really need it only when your code needs refactoring
I don't do anything with xaml
im all web apps / services
 
@Wardy I find that the more I use it, the more useful it becomes. A lot of shortcuts and improvements.
 
I would however like to find a way to embed the WF designer in to a web page
 
11:53 AM
I dont think development is a fast process
 
@AvnerShahar-Kashtan I found that I spent more time configuring it than I did using it
@Ggalla1779 it can be
@Ggalla1779 I can go from bug raised to in production in under an hour
with testing and release management on the builds for each environment
 
I mean development not bugs
 
that was 1 example of a dev process
 
support process
 
development in your case means "creating something new" i guess
@Ggalla1779 support is not development
 
11:55 AM
lol we are agruging over words
 
I refuse to admit that any person with the term "support" in their role is a developer
 
I been developing and supporting for like 20 years now
in the modern world yes it is
 
I've seen it before and its a companies way of making devs to support work and pay them less as a result because support roles are not paid as well as dev roles
 
in some areas yes
I know testers that make more than dev supports
 
they use terms like "3rd line support"
 
11:57 AM
or in fact developers
 
to justify shit hours
I'm not a support person im a software developer the two are distinct from each other imo
 
am a professional I do what I am told lol
day rates apply
 
so do i ... just don't take roles that make me a support person ... are you a contractor @Ggalla1779 ?
 
uhuh some 16 years
 
i think contracting is different again ... you're basically everything in that situation
 
11:59 AM
and sometimes noting
its fun
 
each to their own i support
 
yes that's true..if it works and your happy why change
 
I prefer perm ... no tax returns to fill in for a start and what i earn is mine instead of having to then pay my own tax
 
I made change as I was fired
 
I have considered doing a short stint for a couple years contracting in london
 
12:01 PM
you have people for that
cattlemarket
would rent not be terriable
 
serious money for the same job but a shit social life / none for a bit
I wouldn't live there
 
my mate went there from Glasgow
 
I could commute on the train from here
 
he got great rate
 
eh, London is fine. Social life is great there, surely?
 
12:02 PM
yeh if you're contracting in london the sky is the limit
@Squiggle its the hours spent commuting
no quality of life at all
 
urgh yeah commutes are dreadful
 
my mate got flat in Canary warf... prob silly money eh
 
or you live there and the cost offsets the benefit of doing it in the first place
 
This new job reduces my commute from 15 minutes to 13 minutes by foot :D
 
seems kinda stupid to live and work in london imo
 
12:03 PM
aye
 
@Squiggle got ya beat .. 6 min walk :)
 
am in dublin commute not bad at all 15 mins
 
@Wardy I think my contract position is going to open up here in Switzerland. Want first dibs? ;)
 
and i bring the dog with me each day
 
nice
 
12:04 PM
lol
 
@Squiggle sure ... does it allow for telecommuting ?
 
@Wardy nope :(
 
pyjama working nice
 
@Squiggle £10k per day ... i'll do it
i'm still gonna commute
lol
 
@Wardy would you accept 10k per month instead?
 
12:05 PM
ow god 10k a day...the taxes
 
hah. Swiss taxes FTW
 
@Squiggle in GBP
na im already on half that walking to work
 
nice
 
why take on the hassle
lol
although £5k a month for the hassle is tempting
 
whats it like in switzerland?
 
12:06 PM
but na ... im comfy here
 
@Ggalla1779 very clean, nice. The languages are weird, the mountains are high and everyone eats cheese.
also the flag is a big plus
THE FLAG IS A BIG PLUS
...no? nobody?
 
I chuckled
 
Kappa, is all I have to say
:P
And all people look like the one in your image!
 
Can someone help me out with async/await? I just cant figure out how to use it.. :(
 
12:15 PM
@Eminem call await. Then wait.
 
I agree suppoort aint development unless you are supporting a developed product which still has bugs/hidden features, usually called engineering support
 
Hmm. "Call async, then sync"? No, doesn't work.
 
anyone know how to work with inter process mutexes?
 
@Eminem why not ?
 
I have a doubt reg the code here: stackoverflow.com/a/30205711/145682
 
12:21 PM
@AvnerShahar-Kashtan Say in winforms, i have a button and 4 textboxes. When i press the button first text box runs from 0 to 20 in an infinite loop. When the button is pressed again the first text box stops, and the second one start etc. Something like this - pastie.org/10717793
 
:28695794 ...
async Task Foo()
{
      var result = await DoStuff();
}

Task<T> DoStuff() { ... }
@Eminem like that
 
@Eminem This doesn't seem like the scenario for async/await
 
Suppose you spawn multiple instances of that process...how will the program behave?
 
Threading is better?
 
12:22 PM
eh...
 
Launch your infinite loop inside a long-running task, and use a cancellation token to signal it to stop.
 
HAMMERTIME!
 
!!wtf
 
What?
@AvnerShahar-Kashtan Can you give me a simple example? Bvakasha :)
 
12:28 PM
@Squiggle Inverted red cross!
 
@scheien the Swiss flag came first, aye.
 
    :28696060
void LongRunningMethod()
        {
             while (!_cancellationToken.Token.IsCancellationRequested)
             {
                   // Do whatever.
             }
        }

        void Button1_Click(..)
        {
              _cancellationToken = new CancellationTokenSource();
              Task.Run(LongRunningMethod, _cancellationToken.Token);
        }

        void Button2_Click(...)
        {
              _cancellationToken.Cancel();
        }
 
@Squiggle They liked it so much that they copied it, probably because the people of switzerland are so helpful. (no, that is not sarcasm)
 
@Squiggle I laughed but once I came back from lunch!
 
Better yet, instead of Task.Run use Task.Factory.StartNew(LongRunningMethod, _cancellationToken.Token, TaskCreationOptions.LongRunning);
 
12:47 PM
get me out of here
 
@AvnerShahar-Kashtan pastie.org/10717814#
 
@AvnerShahar-Kashtan whats the difference?
something i never actually bothered to look up
 
they're making me find resource strings that are used in the site but not defined
 
i tend to use Task.Run more though ... just because it means i write cleaner code
 
@Wardy Passing in TaskCreationOptions.LongRunning to the default TaskScheduler will make it spawn a brand new thread for the task, rather than using a threadpool thread.
Not guaranteed, though. It's a hint. Different task schedulers can ignore it or do something else.
This way a long-running task doesn't swallow up a threadpool thread.
 
12:49 PM
which namespaces i need? it gives me errors.
 
They're all in System.Threading.Tasks.
 
@AvnerShahar-Kashtan running a task != create new thread and execute Action ... seems like an odd behaviour
 
@Wardy The whole point of tasks is to abstract the threads used. Running a task will often use a threadpool thread. Sometimes, if there's no other activity and there's no code following the Task.Run, it might even run on the same thread that launched it.
The whole point is not to care, by default.
 
@AvnerShahar-Kashtan the whole point of tasks is to make async execution easy ... it has nothing to do with threading
async != threading
 
@AvnerShahar-Kashtan Do i need the structure or the class?? ?It gives me conversions errors..
 
12:54 PM
@Wardy Async operations != threading, I agree, but Tasks are for more than just async.
@Eminem Dunno without knowing your errors.
> The purpose of the TPL is to make developers more productive by simplifying the process of adding parallelism and concurrency to applications.
 
@AvnerShahar-Kashtan yeh ... but to say the whole point of tasks is to abstract threading is just plain wrong
 
@Wardy Fine. To abstract parallelism and concurrency. In the context of long-running tasks, it's the threading that is abstracted.
 
async for example could mean "don't hold this thread whilst i wait for a web request to come back"
that literally does nothing with threads
 
Task.Factory.StartNew(LongRunningMethod, _cancellationToken.Token, TaskCreationOptions.LongRunning);

cannot convert from method group to Action<object>

cannot convert from system.threading.task.taskcreationoptions to system.threading.cancallationtoken
 
@Wardy Agreed. That's why I mentioned earlier to @Eminem that async/await weren't the right tools for that scenario. Async/await are a further abstraction/syntactic sugar on top of Tasks, covering only the async execution, not concurrency.
@Eminem Oh, it seems that there's a fourth parameter to add as well.
 
12:58 PM
@Wardy But that is what i pretty much want - dont freeze the ui(hold this thread) while i update text boxes.
 
@Eminem Not really, since you're running an infinite loop that will never return unless manually managed.
 
@Eminem thats a good reason to use async which may mean using threading behind the task api but you won't have to worry about that by simply using a task
but I also agree with @AvnerShahar-Kashtan
 
morning
 
@AvnerShahar-Kashtan that feels like a good fit for threading
@Failsafe morning
 
@Wardy ...or LongRunning tasks. :)
The case for tasks - if you wrap your threadfunc in a Task, you can easily query its state, or use ContinueWith/await to continue after it's (manually) cancelled.
 
1:05 PM
What about something like this pastie.org/10717836?
 
32
Q: What's wrong with using Thread.Abort()

Jan BannisterSo I know that you shouldn't use Thread.Abort() But I've never been given a good explanation. Is there a performance penalty or some hidden gotcha? I know you can't ignore/swallow the ThreadAbortException (which makes sense)

 
pfff..So how would you do that?
 
Even if you were to use a Thread directly (which I do not believe you should), you should use a shared flag - like the CancellationToken, or a ManualResetEvent, or even a boolean, to signal to the thread that it should quit, rather than aborting it from the outside.
 
TFW john skeet answered a java question that you asked
3 years ago
 
I like the idea of threading but never used in in an app
 
1:19 PM
So....
 
so give me an example of where you would use threading
 
so I need a kid and laptop
 
I'll give You one: .NET 3.5 framework is only accepted
 
I meant "So" as what should i do about my code, not for the fact you have never used threading :)
 
1:26 PM
@Ggalla1779 Do you mean "threading" as in "concurrency and parallelization", or specifically "threading" as opposed to "Tasks"?
@Eminem I would use the previous (TaskFactory) version, and just pass in the required fourth parameter, which is probably null or TaskScheduler.Default or something like that.
 
@Eminem VS helps which parameter is which. What is missing?
I agree, You should use at least cancellation token
async/await > TaskFactory > new Thread()
 
It gives me cross thread error when i try to update the ui
 
UI needs a specific thread to use
 
@Eminem By design
 
@Eminem Oh, right. Forgot to even look at the inside of your thread method. :-/
 
1:31 PM
16
Q: Accessing UI (Main) Thread safely in WPF

l46kokI have an application which updates my datagrid each time a log file that I'm watching gets updated (Appended with new text) in the following manner: private void DGAddRow(string name, FunctionType ft) { ASCIIEncoding ascii = new ASCIIEncoding(); CommDGDataSource ds = ne...

(if it's wpf)
 
Whats the best VM software to use? Hyper V? VirtualBox? etc?
 
Define "best"
I use VMWare
 
VirtualBox is fine
 
Free and good lol
 
works fine with Vagrant. I'm happy.
 
1:36 PM
final version? pastie.org/10717878
 
isnt hyperV built in?
 
I used virtualbox, but it was not used for any serious thing
 
@Michael That can't define "best"
 
@KendallFrey true
 
@Michael what's your use-case?
 
1:37 PM
Just something basic to test software via different OSs
 
Then you definitely want Bochs /s
 
@Michael scaffold your VMs with JicamaJS
 
I need a tool to generate reference assemblies
 
and actually I wanted to mess around with installing some server environements, AD SCCM
 
@StevenLiekens Check the Java room
 
1:39 PM
@Squiggle I closed your issue
 
I'm serial
 
Hi
 
@Squiggle what is that?
 
I am having a question
 
@StevenLiekens I'm parallelizable
 
1:40 PM
Does anyone know a simple way to statically determine whether a string is a valid CLR typename?
* assembly-qualified typename
 
@TomW statically as in at compile time?
 
Not necessarily that the type can be loaded
Sorry, no, I mean, as a static method
Ideally
 
That's an odd requirement
 
I do some calculations I get the result infinity in some cases and its correct.
When I store in excel it is stored as 65535
 
given that any code can be wrapped in a static method
 
1:41 PM
BizTalk.
Should I say more?
 
I want an if statement so that if result==infinity then skip
how can this be done
 
@Shahzaib that's over 9000, therefore, infinite
@Shahzaib exactly like you just said
 
what, 9000?!
 
no, infinity is replace by 65535 in excel
any idea, how can I proceed?
 
What does Excel have to do with the question?
 
1:43 PM
^
 
I am storing the result in an excel file
 
irrelevant
 
its a big mathematical function that stores the result in an excel file using c#
 
you're asking about something that happens before you save it as a spreadsheet
so don't give us details we don't need
So, what's your question?
 
my question is how should I write the if statement
 
1:44 PM
good. Tho I would use Task.Factory.StartNew((object Boxes) => LongRunningMethod, _cancellationToken.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);

And private void LongRunningMethod(List<TextBox> boxes)
I'm not sure about the syntax on the Action part
 
@Shahzaib Can you be more specific? You seem to have answered your own question.
 
Wow ok, MSDN actually provides a BNF for typenames. So, a quite high-brow, neckbeardy way of saying "Write it yourself"
 
in other words how to check infinity
 
@TomW just regex it up
3 mins ago, by Shahzaib
I want an if statement so that if result==infinity then skip
 
@KendallFrey but I'm lazy
 
1:45 PM
So ping me at some time when I'm bored
 
On stack overflow give less details and people say that you havent done anything and getting work done from us. If you give more details then people say its irrelevant.... CONFUSING
 
!!tell Shahzaib mcve
 
@Shahzaib If you would like assistance, please create a Minimal, Complete, and Verifiable Example
 
That might help you know what you need
 
@Shahzaib if(Double.IsInfinity(d)). Ints can't be infinity, but if your calculation returns doubles, that should work
 
1:47 PM
I am working in doubles
so I expect the result to be a double all the time
 
then use that or double.PositiveInfinity
 
ok... let me try it
 
@Ggalla1779 computer games are often a good case for threading
per frame lots of stuff needs to happen
network updates, component updates, meshing, rendering, sounds, physics, ect, ect
makes sense to have a thread for each so none of them slow the others
@Shahzaib yeh and the other one about "this question should be closed because ... " I bet you could if you looked hard enough find a reason to close every question on every stack site
 
aha ok Wardy.... I tend to do UI and present data to users
 
close-reason: I know this, so why don't you. Noob.
 
1:53 PM
sometimes i feel like the peeps moderating the site should let a few things go, for example if a question is a duplicate, so what, having new rolling content ensures that new answers are readily available in search engines that use publishing dates
 
are you suggesting that
if(result==double.PositiveInfinty)
{
skip
}
 
I did have a recent case of trying to thread word objects but that ended in disater as Word lost the plot
 
@TomW might as well add that to the list ... lets vote it in on meta
@Ggalla1779 word is not thread safe
 
Thanks all... double.NegativeInfinity worked for me
 
1:56 PM
@Wardy I agree strongly with this Wardy.... new user feel bullied
 
@Ggalla1779 Its really harsh when you have like >1000 rep and some 500k rep user says "go away this question was asked 6 years ago" (that's basically how it comes across anyway)
 
I joined this site and was basically a looking for years...then started joining in
 
@Failsafe !!womm
!!womm
 
its actually soul dewstroying to post a question on here and get a negative reaction
 
1:58 PM
I don't exactly have a high rep but I have been around a long time, can't remember the last time I actually even saw a search function on here lt alone used one ... (yes i know there's one at the top right) but the point is i'm used to the UI a new user isn't
 
@Wardy does it being 6 years ago stop the question coming up in search?
 
@Ggalla1779 i know right!
@TomW it might do on google which is how the user got here in the first place
 
so this site can come across as elitist ...which in truth its not
 
@Ggalla1779 Chat is a much friendlier place.
 
this is my first time trying chat
 
1:59 PM
who removed my happy friday post
you son of a bitches
 

« first day (1944 days earlier)      last day (3010 days later) »