« first day (1498 days earlier)      last day (3453 days later) » 

12:00 AM
Will they need a 32-bit version?
 
Native DLLs
 
@Greg - SOunds right to me
 
Any CPU seems reasonable then
 
can't load a DLL compiled for 32bit in a 64bit process
 
Surely Windows will automatically load the right version?
I've successfully done P/Invoke with Any CPU, I'm pretty sure.
 
12:03 AM
for example when i tried to load Awesomium (which is 32bit) in a Any CPU application. i get an exception .. something like "an attempt was made to load a program with an incorrect format"
 
@TravisJ I think that will be best.
 
 
6 hours later…
6:23 AM
Hello All :)
 
 
1 hour later…
7:36 AM
hi everyone
on the following link there is some amiguioty about support of .net framework on top of the page is written that supported in 4.5.1 and at the end of page the supported version is .net 4.5.3 ???? :::::::
http://msdn.microsoft.com/en-us/library/system.runtime.gcsettings.largeobjectheapcompactionmode(v=vs.110).aspx
 
 
2 hours later…
9:52 AM
@KendallFrey Additional information: Could not load file or assembly 'Awesomium.Windows.Controls, Version=1.7.4.2, Culture=neutral, PublicKeyToken=7a34e179b8b61c39' or one of its dependencies. An attempt was made to load a program with an incorrect format.
 
 
2 hours later…
11:41 AM
Trying out VS2015 on an Azure box :)
not provisioned yet; will report back about how it goes
 
That's out? o:
 
preview
 
mmm
 
well that was fucking pointless. It won't accept my password for RDP, the one I set when I created it
I used a password manager, I can't be typing it wrong
and now it works. wtf.
well #1 annoying: it bitches when you sign in with a microsoft account
yes, I am using it on a machine you don't recognise, but I'm remoting into it from my own desktop
one of your machines. Idiots.
Well, VS2015 has gone back to 2008 era grey
looks like an old fashioned windows forms app
 
12:32 PM
after some 200 pages of learning, this question is starting to bother me: is learning c# as your first language a mistake?
 
No, I don't think so. I suppose it has a lot of features and collateral, probably the most of any language apart from java, so it can be difficult to distinguish what's fundamental and what's fluff
Conversely with a simpler language you'll end up habituating doing things (badly) by hand rather than learning to use libraries
It's difficult to do pretty much everything in a language like Fortran
(my first)
 
@Meraj99 Absolutely not. I think it is good to learn a static typed object orientated language as your first language. That could be Java or C#, in my humble opinion. As @TomW mentioned, however, it is entirely possible to pick up the bad habits you are forced to do in Java and apply them in C# because you don't know any better. Learning C# as your first language will give you an extremely strong fundamental basis for application development, and possibly for learning other languages later.
(And learning other programming languages is extremely easy, unlike spoken languages)
 
Wasn't really what I meant, but yes, any language can teach bad habits. I was more talking about old languages with poor support for modern techniques - everyone I know who grew up with Fortran stores everything in flat files, for example
They don't 'get' the notion that there's a package for [x]
 
That's what I said too, e.g. using getter and setter methods in C# because you learned to do so in Java, even though we have properties for that.
 
I could see an argument for avoiding Visual Studio project templates where possible, I suppose. They try to be 'helpful' by dumping a ton of unidentifiable clutter on you
Learning to build applications with csc.exe and a text editor would be a very tedious exercise but would get the concepts secured pretty well. Not that I'd ever want to do that
 
 
1 hour later…
2:11 PM
Hi Everyone !
 
2:22 PM
Morning
 
2:35 PM
Can anyone can help me in my problem?
 
got to ask to find out
 
Ex.
Input 1: 10
Input 2: 15
Input 3: 12
Input 4: 17
Input 5: 20
Input 6: 30
Input 7: 24
Input 8: 6
Input 9: 3
Input 10: 36

Output:
Number of counts.
1-10: 3
11-20: 4
21-30: 2
31-40: 1
41-50: 0
Out of range: 0
I will enter 10 numbers and display the count of number according to ranges. Ranges are 1-10, 11-20, 21-30, 31-40, 41-50, Greater than 50: OUT OF RANGE
 
:20085541 im gonna try to answer this with no idea what im doing:
int count0, count1, count2, count3, count4, countOUT;
int input = console.readline();
input /= 10;
if(input == 0)count0++;
if(input == 1)count1++;
//etc. etc, you get the idea
 
thank you
 
Welcome :D
However, you might want to make the ranges 0-9, 10-19, etc. x.x
 
2:53 PM
Hello guys, need some help here, i just started with wpf extended toolkit, here:
https://code.msdn.microsoft.com/windowsapps/Chart-Control-in-WPF-c9727c28
My problem is that i can't use the "Chart" any help pleease ?
it says that chart was not found . make sure that reference are added ... i added the wpf toolkit reference, and i added the namespace too
 
3:22 PM
Did you drag and drop it on the form?
 
4:02 PM
Um. Wrong chat.
 
Is there any particular source control that is good with VS.
In the past I've used Source Tree, but that was for standard web projects.
I'm not sure if the type of project or IDE really matterS?
 
4:22 PM
the built-in one isn't bad
 
5:08 PM
Morning. I'm trying to create a new database from C# code. I have seen various posts how to do it. I'm getting a permissions error "CREATE DATABASE permission denied in database master" .... I can understand the issue! Within SSMS, in the User Mapping, for Master, I don't know which check box to check. Currenlty only public is checked. I checked Owner, same issue persists
Or do I need 'server roles' to be able to do this
 
I think I remember hearing something about not creating application databases in master
eaten by a grue or something
 
hmmm. I did this because of MS article support.microsoft.com/kb/307283
 
I'm afraid I don't know, but what little I do know about SQL server permissions this should be easy to solve i.e. there should be a decent doc somewhere
 
OK, I have found it
I opened up the SA account to see what server roles it had! Really should have thought about it first :(
 
that was an extremely well-phrased and researched question by the standard of the nonsense we get in here, btw
thank you, in other words
 
5:14 PM
well, no. I should be saying thank you for taking the time :)
:)
 
5:36 PM
currently installing the asp.net 5 beta docker image on a centos VM hosted in azure
#composition
I have never used any of these things before
 
Maybe Roel has?
 
Sim
does anyone know where i can get help for excel?
 
@Sim Excel help documents?
 
Sim
i need help on formula using google spreadsheet
 
What does that have to do with Excel?
 
Sim
5:42 PM
it does because the formulas are the same
 
he's got you there
superuser is probably the right site for that
 
just ask here
@KendallFrey so did you click?
 
Sim
i'm trying to generate random letters & numbers for entire c column through my research i found =char seems to the trick however its not stable every time the page is refreshed the value changes
 
6:00 PM
@JohanLarsson click?
 
try the controls
 
no
Got enough on my plate today
 
guys! anyone have ever dealt with async things?
 
some
not a lot
Reed is your man for that
 
unfortunately he isn't here
basically I want to async my directory.GetFiles()
but even if I have apply the async, the program still "stopped" when Getting the Files
 
6:11 PM
code sample?
what sort of program?
 
private async void ButtonRefresh_Click(object sender, RoutedEventArgs e)
        {
            string s = (DataContext as MainWindowVM).ParentFolder;
            List<string> exts = (DataContext as MainWindowVM).ExtensionToSearch;

            List<string> queriedPaths =
                await Task.Run<List<string>>(() => GetAllAccessibleFiles(s, exts));

            (DataContext as MainWindowVM).RefreshList(queriedPaths);
            SaveSearch();
        }
private List<string> GetAllAccessibleFiles(string rootPath, List<string> exts, List<string> alreadyFound = null)
        {
            if (alreadyFound == null)
            {
                alreadyFound = new List<string>();
            }

            DirectoryInfo dI = new DirectoryInfo(rootPath);
            var dirs = dI.EnumerateDirectories().ToList();

            foreach (DirectoryInfo dir in dirs)
            {
                if (!((dir.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden))
 
That suggests to me that the file inspection isn't the part that's slow
although it shouldn't block the UI
 
yeah, for example if I choose D drive, for example, the UI blocked
 
I suppose you'd want some way of profiling what the UI thread is doing
never used it, so I can't help
but it doesn't look difficult
 
Hmm, strange. I just tried it and it no longer blocked
Hahaha.. I feel silly :/
Thank you anyway Tom!
 
6:17 PM
no prob
 
 
3 hours later…
9:00 PM
Hello everyone!
 
 
1 hour later…
10:26 PM
0
Q: Change the text in a TextBox so it is undoable

Johan LarssonI have a custom control that is a TextBox and a Button. When I click the button it changes the text in the TextBox. I want it to look like if the user typed in the new text. ClipBoard and textBox.Paste() is too ugly. Link to code

 
@JohanLarsson What do you mean, too ugly? You should probably add more details
 
Hmm, maybe it can be a way. Dunno how the clipboard works.
Don't want the clipboard to change if the user has something there when clicking the button.
Using it for a quick push > pop would be ok.
 
Hey, any recommendations on domain-registar websites? I've heard namecheap was good but that was just from one person
 
@CCInc I use namecheap, and like it
 
Cool, thanks
 
10:34 PM
I need recommendations for a free (or very cheap) web host
Requirements: PHP, custom domains
 
Updated the question.
Clipboard.SetText("Test");
TextBox.SelectAll();
TextBox.Paste();
^ does not work
did not read the docs :)
 
Seems as though it would just be easier to TextBox.Text = "Test";
 
Wow.. that really scared me. I thought somebody took my domain name but turns out I was smarter than I am now and already registered it
I use 000webhost.com for simple php script tests but I really doubt that it'd hold up to standard for a live website
 
@KendallFrey yes but then it can't be undone from what I have seen
 
@CCInc I was using them, but they deleted my site with no warning, and their support was utterly incompetent
 
10:40 PM
Wow, owch
 
hmm, maybe it works
 
apparently they changed the policy on deleting 'inactive' sites, and support didn't seem to know anything about it
 
hmm, tested it worked now
dunno how I tested it before so it did not work
It does not work in the control
Clipboard.SetText("Test");
TextBox.SelectAll();
TextBox.Paste();
^works, had the wrong eventhandler
it does not push/pop on the clipboard
        var dataObject = Clipboard.GetDataObject();
        Clipboard.SetText("Test");
        TextBox.SelectAll();
        TextBox.Paste();
        Clipboard.SetDataObject(dataObject);
maybe ^
no idea how dumb it is
dunno what would happen if user has his entire porn collection in clipboard.
 
Looks to me like just setting Text would work: stackoverflow.com/questions/9059343/…
 
textBox.Text = "text" will kill bindings no?
textBox.Text is bound
@KendallFrey I tried it and it works in a simple case. Not in my control for some reason.
 
10:55 PM
oh, bindings are a different story
If you're using bindings, doesn't that mean your question is irrelevant?
 
Your question is about setting text directly, not with a binding
 
I can set the bound value but then I can't undo it.
Think it makes sense for the click edit to be undoable.
 
If I am checking for that the string has the following: 009-121, what regex pattern would I use? I can't figure out how to check if the string has three digit int, a hyphen and another three digit int.
 
Which part are you having trouble with?
It should be fairly straightforward if you read about regex
 
11:02 PM
@DemCodeLines regexr.com/39uu6
maybe \d{3} is cleaner
 
How come does the d only match an int and not letters?
 
oh wait, d means digit
 
Those are extremely basic questions that the tutorial will answer
 
11:04 PM
@DemCodeLines '\d'
you can also write [0-9]
 
So I know I'm asking Java question in C# room, I'll probably not get the most helpful response, but here it goes:
With the scanner class, is it possible to get the entire string before the integer?
Basically I'm reading from a file and it goes like this:
Alabama 009-121
New York 100-324
If I use the .next() method and then deal with the numbers, it does exactly as asked, but as soon as it hits New York, it fails, because .next() only sees "New" and York throws a mismatch exception
 
textBox.Text = "text"; <- does not kill the binding
 
11:28 PM
but undo breaks when it is bound
@KendallFrey rewrote the q, describes the problem better now.
Or worse :)
 
> The buttons changes the text and I want it to be undoable.
How does it change the text?
 
35 mins ago, by Johan Larsson
user image
 
That's not an answer
 
up/down I don't like them but kept them not to break hings
 
There are many ways of changing text
Which one is it?
 
11:34 PM
 textBox.SetCurrentValue(TextBox.TextProperty, text);
I do that ^ now.
tried different combos .Text etc. Only thing that works with undo is paste so far.
 
Better add that to the question
 
var dataObject = new DataObject(typeof (string), "text");
var pastingEventArgs = new DataObjectPastingEventArgs(dataObject, false, DataFormats.Text);
textBox.RaiseEvent(pastingEventArgs);
This did not update the textbox
was optimistic
Found this gem when I peeked :)
I'm raising it on the wrong thing.
 

« first day (1498 days earlier)      last day (3453 days later) »