« first day (1225 days earlier)      last day (3949 days later) » 
00:00 - 21:0021:00 - 00:00

00:00
C or c++?
@ReedCopsey if both windows have the same DataContext (same VM), could this be the problem?
potentially, if one does something odd
put a breakpoint in the setter for the property, and look at the stack trace when it changes
you can see where it gets killed
For opencv
I'd ask elsewhere ;)
my preference would be C++ (or python) though, for doing OpenCV dev
but I'd personally use C++AMP instead, since I like the syntax so much better
00:11
@TravisJ You think it'd be that hard? What if I didn't make em real time?
@Greg I think @TravisJ left
Blah!
user1804599
@OutlawLemur Always C++, never C.
user1804599
Never use C.
@rightfold I like C :(
user1804599
00:17
C is even worse than C++ and Java combined.
user1804599
It’s even more primitive than most politicians are.
@rightfold Sometimes it takes a caveman to pwn your face!
user1804599
And then I pwn him back with blazing genericness, extraordinary libraries and beautiful abstractions.
Is there a way to turn off code analysis for a file? Vs finds much bs in the files generated by R#
@rightfold Hmm.. I thought so
00:25
got sleepy, nite sirs
@Reed Python? Aren't there more limited libraries for it though?
user1804599
Explicit resource management is a horrible idea, and C++ is one of the few languages that get it right.
Later everyone.
later man
thats right, i'm lurking
@rightfold Hmmmm thanks
Im only considering c even because my textbook is written in it haha:)
00:32
@OutlawLemur Are you joking? Python has one of the richest sets of libraries of any language :p
@Reed I meant specifically for OpenCv
@OutlawLemur it's supported int he official opencv dist. - docs.opencv.org/trunk/doc/py_tutorials/py_tutorials.html
@Reed I knew it was... I guess I just thought it was in the development stage... Thanks though
again, though - this is really not an appropriate room for that discussion in general ;)
Thats true...
00:37
@ReedCopsey found out my problem. I forgot I set the DataContext of the new window to a new instance of the VM, instead of the current one, thus the SelectedIndexFile would not exist
makes sense
why are you sharing the same context in multiple views?
The second view is just a "view details" window
it gets the SelectedItem of a listbox, and binds to some of its properties
But do you think it should have a VM of its own?
Sorry for the typos, I'm almost falling asleep xD
01:22
@RodrigoSilva Yeah, that's how I'd normally do it - since you're showing "Details" you would typically have different information exposed to the view
@ReedCopsey but what if those details are in the same object?
well, in your case, it sounds like it's in a single object of a collection from the main VM
so it's not the "same"
For example: LogObject(string description, string details)
but you could always share a model
if that's it - there's no need for details
That'st just an example
Imagine the following scenario, the main window would show the description property
and the details window, the details property
In this scenario, would it be worth having another VM?
Or just have the details window bind to the "details" property?
01:28
depends - but it's often nicest to have a 1-1 View->VM relationship
On what would it depend, considering this scenario?
It's much like it, just a few more properties
yeah - it's the "few more properties" that makes it depend a lot
Have a good weekend, all!
You too, see you :)
And thanks
@ReedCopsey later
02:13
so go I go to azure to browse their support forums, and they just link to stackoverflow.com :/
user1881400
03:09
Can anybody explain exactly what the purpose of delegates and events are and the functionality they bring? I've been lost on this topic for about a full month, now. I looked up countless articles, including msdn and even SE questions on the topic (found one with 30+ votes, too) and came up empty-handed.
03:33
Can anyone recommend a resource to learn MVVM? I've tried several and I understand the concept, but am having issues applying it.
@Stopforgettingmyaccounts... When an event is raised, it notifies anyone who's signed up to it and they perform actions either based on the fact that event was raised on based on particular value from the event. A delegate is simply a reference to a method, that's all.
@Stopforgettingmyaccounts... It's like referencing variables, but you're referencing a method. The great part, though, is that any method that matches the signature can be used.
@Stopforgettingmyaccounts... You can even pass delegates as arguments to other methods. Best way to get them is to start using them, though.
OpenCV has made me hate open source so far
 
3 hours later…
06:50
hey @linguini
hej @JohanLarsson
hw r u?
pretty good, and you?
as u, in good mood :)
07:01
@JohanLarsson -> hw's it going?
code not working :)
but my code is working now ;)
@JohanLarsson -> do u work on a project for now?
yeah I'm working as a programmer since two weeks
07:14
Hi Guys..GAN
i need learn .net.. any one guide me.. guys
user1881400
@saravanan This is the book that got me started on C#: ebooks.programmersheaven.com/csharp_ebook.pdf
user1881400
And it's free and online as a pdf
@JohanLarsson -> congrats
@Stopforgettingmyaccounts... what are the component.. need to install bro..
user1881400
07:27
To install? For C#, you need the .Net Framework: microsoft.com/net/downloads and an IDE (Integrated Development Environment) which helps you program. I suggest getting a copy of Visual Studio Express: visualstudio.com/downloads/… or maybe SharpDevelop: icsharpcode.net/opensource/sd/download
2
user1881400
It's a wonder how they managed to get an entire website just about recommendations into beta. @MRS1367 Why are you typing that repeatedly?
I don't type repeatedly
@MRS1367 Hi
it repeats automatically not by mine
hey @linguini
07:33
@MRS1367 Morning & How r u?
user1881400
That's interesting. @saravanan I answered your question above.
posted on February 22, 2014 by Scott Hanselman

I was talking to a young (<25) Front End Developer recent who actively hated Microsoft. Sometimes I meet folks that are actively pissed or sometimes ambivalent. But this dude was pissed. The ones I find the most interesting are the "Microsoft killed my Pappy" people, angry with generational anger. My elders hated Microsoft so I hate them. Why? Because, you wronged me. "Y

in that day, when I came back again, u were gone.
Can anyone give me a name, definition, or style of this class instantiation technique? I am having a hard time finding info on it. ` public sealed class Communications
{
private static Communications instance;

public static Communications Instance
{
get
{
if (instance == null)
{
lock (instanceSync)
{
if (instance == null)
instance = new Communications();
}
}
return instance;
}
}

} `
I'm fine @linguini. hw's about u?
07:36
@MRS1367 Good, thank u.
@atomSmasher -> use Ctrl+K for apply style-code to ur codes :)
thank you!
@MRS1367 Still i haven't fixed the timer issue. But i fixed the problem of BGW.
I'll help u when I'm free. for 4-5 PM in my local time :)
@MRS1367 ok. I debugged many times but the event is not firing after 2 times. I'm gonna post a question here later & i'll leave you a message. Is that fine? Thank you
07:45
good :)
@MRS1367 Thanks
@MRS1367 Have a great day!
@linguini -> u too :)
Turns out "Factory Method" is what I am looking for
 
1 hour later…
09:20
Hello
 
2 hours later…
11:40
@Marcin do you have an example of the locator thing you suggested for using ioc with wpf?
 
1 hour later…
12:59
@MRS1367 Hi, ru there?
@MRS1367 : I have posted the issue, please have a look:stackoverflow.com/questions/21954668/…
@linguini -> hey again
@MRS1367 Hi
I'll help u till 1 next hour
I checked ur Question
@MRS1367 ok, thanks
and If I can't help u in here in this time
I'll write a code for u when I go to home and share with u tomorrow
13:06
@MRS1367 ok Thank you very much.
sry mate. I'm busy for my tasks for my job now
@MRS1367 I truly understand :)
13:35
gmorning
Hi.
what's going on?
Hello
is there any possibility that a Background thread can effect the performance of GUI ?
14:10
@Harish oh not much, what about yourself
Hi,
@Steve its night here.
awesome
would you tell me some.
if i can
what lang. you like to code best?
14:14
i know this might be shocking... but c#
how long you're using it?
about 2 years
great/
what about you?
so you have enough knowledge in it?
14:16
like everything else in life, theres always more to learn
are you in job or something else
I just started my first job after earning my degree about 3 weeks ago :)
does that belongs to tech?
@Steve, its very nice talking to you,I'll talk you again ater few hours.
tada!
yep
later
hey! I need a little help with DownloadFileAsync. How can I save file from URL inside directory of program's binary? Thank you!
my code for now is:
webClient.DownloadFileAsync(new Uri(urlPath, @"c\file.txt"));
i want to change @"c\file.txt" to binary's folder
anyone?
lol @ found :D
just "file.txt"
bye!
14:48
@Steve hi again!
MGE
MGE
15:00
Hello
I've a problem trying to use AddText in unity
Assets/common/scripts/splash.cs(22,25): error CS0103: The name `AddText' does not exist in the current context
I'm using: using System;
using System.Text;
using System.IO;
15:44
@Steve You have a degree? In what?
computer science
neato
@MGE Show us the code?
what did you think i was going to school for the whole time you've known me?
I didn't know you were in school.
Neither did I
So is that the kind of computer science degree where you write compilers and design ICs?
15:50
ICs? That sounds like EE to me.
former colleague of mine did that in software engineering, by degree title
they put whatever the hell they want in basically, so that's why I'm asking
MGE
MGE
I have a problem with Unity
somebody knows using unity?
I know a bit about Unity
Can you share your code?
I couldn't find a reference to anything called AddText in the docs
presumably that's Unity the graphics engine, and not Unity the IoC container
Given there's an Assets folder, that's probable.
15:57
@Steve Hello again!
If someone has no degree in IT how he can get the job for sure?
MGE
MGE
@KendallFrey
Even if you do have a degree you're not guaranteed a job
@MGE That's my name
@Harish impress the interviewer with both technical and soft skills.
MGE
MGE
I have this code
16:01
what guaranteed a job for sure?
MGE
MGE
working perfectly in unity
it opens the score.txt file
read the score and compare the current points vs the highscore
if its higher, save the new highscore
and is working fine
but in Android device
it always is 0 (as the default score.txt when the app is installed9
but when you score points the file doesn't udpdate
Maybe you don't have permission to write to the file
MGE
MGE
how can I make it?
I don't have experience with Android
MGE
MGE
okey
thanks anyway
16:06
I wanna work from home but I have no exp. what I've is basic knowledge.
Suggest some!
suggest some what?
@ Kendall to start the earning money from home as a asp.net web developer.
You have to get hired, or advertise yourself as a freelancer
I've no exp. so I have empty portfolio.
You might want to do something about that.
16:10
In that case how I can get hired.
Apply for a job
how did you learn how to program? you have to have at least something to throw in there....
How I can make my portfolio to freelance job?
You first need some work to show off
@Harish are you a web-designer or just do the coding part?
If you want experience as a web developer, make a website.
16:13
I'm in coding/
Do you do full-stack?
If not, it's going to be hard to get a freelancing job
full-stack ?
front-end, code, db
Or whatever is needed
I'm in backend ,code, db
Do you do HTML, JS, CSS?
16:16
I understand these.
More work I do in c# and sql as db.
and asp.net.
If you want to be a freelancer, start by making a website for your portfolio, and then look for people with bad websites that you can improve or replace.
bad websites ?
So according to you first I find bad sites and then make the improvement to them.
So how this will get me work?
You have to contact the owner of the website and see if they want to hire you.
I like this idea very much.
So first I have to develop the complete site with improvements?
No, that would be a waste of time
16:23
So?
But you will have to show them what you are capable of
Starting with your personal website
What I should show them in my personal site?
All the cool stuff you put in it
I've the basic knowledge in development.
Suggest me to develop my personal site.
I can't
16:27
okay.
anything else that can be helpful for me?
Experience
how to get it from home?
Make a website for yourself
That's cool/
you are in job?
16:30
for how long?
couple years
what you think which is better future freelace or job?
a full time job probably
if I work full time from home, is it bad idea?
16:34
hey @linguini -> you solved ur problem. congrats!!!
but without exp. and the degree there is no lot of opportunities?
@MRS1367 Hi thank you very much for the follow up. Click 1st time on Start button:: 1 File is transferred. Clicked on Stop Button Click 2nd time on Start button: 2 Files are transferred. Clicked on Stop Button Click 3rd time on Start button: 3 Files are transferred. Clicked on Stop Button etc....
@MRS1367 Just one problem because of the variable.
and what's?
@MRS1367 I don' t no...how to deal with the variable. If not i need to find another approach.
with the variable?!!!
16:40
@MRS1367 Yes. The variable that keeps the index of the files to be transfered is printed like it was the count of files transfered in a single tick event. The message should be something like "Transfered the " + TransferCount.ToString() + " file of " + SourceFiles.Count.ToString() + " to be transfered"
@Kendall, Thanks for all you best advices for me.
@MRS1367 That is what Steve told me.
and what's the problem?
you want the mentioned message in ur last Posted message
@MRS1367 yes
and what's the problem with the Transferred Files Counter Variable
16:44
@MRS1367 In a single tick, it t takes on file, in the second tick it takes 2 files in tick event.
lemme tell u about what I understand about ur words and if it's not correct, correct my view about ur problem
@MRS1367 yes
@linguini -> u said that when one tick runs, the Transferred Files Counter Variable is one and when second tick runs, the Transferred Files Counter Variable has the previous value and doesn't add by 1 step and so on, right?
@MRS1367 The variable has no previous value...it simply increments the file number for exmaple when second tick runs, the Transferred Files Counter takes 2 files each 3 seconds.
aha
so, if the third tick runs, the Transferred Files Counter variable takes 3 or more or less files (not 1 files) in each 3 seconds and so on, right?
16:58
@MRS1367 exactly.
now, I know ur problem. So, can I see ur codes?
@MRS1367 just a sec
:14885122 DispatcherTimer dispatcherTimer = new DispatcherTimer();
private static List<string> SourceFiles = new List<string>();
private static readonly string SourceDir = @"C:\TestFiles\Images\";
private static readonly string DestinationDir = @"C:\Files\Images\3_5x5\";
private static int TransferCount = 0;
public Window3()
{
InitializeComponent();
this.Loaded += Window3_Loaded;
}
void Window3_Loaded(object sender, RoutedEventArgs e)
{
LoadSourceFiles();
StartTimer();
}
void StartTimer()
{
dispatcherTimer.Interval = new TimeSpan(0, 0, 3);
Press Ctrl+K to apply code-style
@MRS1367 I did. (usually Ctrl + K or Fixed Font)
@MRS1367 Do you able to see it.
17:19
I'm testing ur codes @linguini
@MRS1367 ok
18:01
what's with the plural?
codes, not code?
18:18
hello! can you please help me with background worker and create directory. i want to create directory inside worker's dowork, but there's no anything after worker finish. what could be wrong?
@linguini -> do u want to run codes when the form loads?
sry for my late answer
but if u comment the StartTimer(); in void Window3_Loaded, it will work correctly.
I changed some parts of ur codes as following:
18:33
@MRS1367 No. I don't want o run the code when the form loads.
@MRS1367 Please paste the code over here or in the question. Thank you.
I removed these lines:
void Window3_Loaded(object sender, RoutedEventArgs e)
{
    LoadSourceFiles();
    StartTimer();
}
and this:
this.Loaded += Window3_Loaded;
in the public Window3()
cuz u don't need them in the loading of ur application window
@linguini -> and these lines:
19:13
sry @linguini. I'm improving codes
@MRS1367 ok
19:44
sry @linguini -> my HDD is in bad situation and when I want doing something that need to write to my HDD, my system hangs for a while such as running the solution that needs to save the solution first.
@MRS1367 ok take ur time. no problem
I must go to its legal agency and give them my HDD for checking as soon as possible
sry if I late to answer u
@MRS1367 no problem
check the below lines now:
I changed the global static variables to:
DispatcherTimer dispatcherTimer = new DispatcherTimer();
private static List<string> SourceFiles = new List<string>();
private static List<string> DestinationFiles = new List<string>();
private static readonly string SourceDir = @"C:\TestFiles\Images\";
private static readonly string DestinationDir = @"C:\Files\Images\3_5x5\";
private static int TransferCount = 0;
private static int intPrevFilesCount = 0;
private static int intPrevSourceFilesCount = 0;
private static int intFilesCntr = 0;
private static List<string> DestinationFiles = new List<string>();
private static int intPrevFilesCount = 0;
private static int intPrevSourceFilesCount = 0;
private static int intFilesCntr = 0;
I've added above variables
DestinationFiles is for storing current files in the destination folder for use in the next steps
u will see its usage in the next steps
@MRS1367 ok
19:54
intPrevFilesCount is for storing number of current files in the source and destination folders for checking the all current files in the next steps with it
intPrevSourceFilesCount is for storing number of current files in the source folder for checking the current files in the next steps with it
intFilesCntr is for storing number of transferred files from source to the destination folder
I replaced intFilesCntr with TransferCount variable in some lines
now, Click Event of the Start button
private void Start_Click(object sender, RoutedEventArgs e)
{
    if (System.IO.Directory.Exists(SourceDir))
    {
        if (Directory.GetFiles(SourceDir).ToList().Count != intPrevSourceFilesCount)
        {
            SourceFiles = Directory.GetFiles(SourceDir).ToList();
            DestinationFiles = Directory.GetFiles(DestinationDir).ToList();
            intFilesCntr = SourceFiles.Count;
        }
    }

    StartTimer();
}
for understanding the codes above StartTimer();, pay attention to the following scenario:
imagine that, when the end-user clicks on the Start button and codes are executing
for some reasons (known or unknown reasons), some of the files in the source folder is reduced or increased
so, if transferring is completed, and if some new files is added to the source files between the transferring process
all files not transferred completely
for this reason, I added a checking for altering the files in the source folder
i'm reading it
20:09
when the end-user Clicks the STOP button for first time or more, that checking code will be very useful when (s)he clicks on the START button again
if some new files have been added to the source folder, it checks the prev number of the files in the source folder with the current files in that
and if the current number not equal with the prev number, it changes the index for transferring files
can u got it?
corrected -> so, if transferring is completed, and if some new files have been added to the source files between the transferring process
now, Click Event of the Stop button
private void Stop_Click(object sender, RoutedEventArgs e)
{
    intPrevSourceFilesCount = Directory.GetFiles(SourceDir).ToList().Count;
    dispatcherTimer.Stop();
}
@MRS1367 yes.
I've added the first line in this event
@MRS1367 i'll put everything & i'll compile it. Thank you for your help & time :)
u r awesome :)
it stores the current number of files when the end user clicks Stop button for checking in this situation that the end user clicks on the Start button again
and I said the scenario for the Start button in this situation in the prev part of my words
now, dt_Tick procedure
void dt_Tick(object sender, EventArgs e)
{
    LoadSourceFiles();

    if (Directory.GetFiles(SourceDir).ToList().Count > 0)
    {
        var fileName = System.IO.Path.GetFileName(SourceFiles[intFilesCntr - 1]);
        var destFile = System.IO.Path.Combine(DestinationDir, fileName);
        try
        {
            //System.IO.File.Copy(SourceFiles[intFilesCntr - 1], destFile, true);
            //System.IO.File.Delete(SourceFiles[intFilesCntr - 1]);
            System.IO.File.Move(SourceFiles[intFilesCntr - 1], destFile);
Tip: I replaced the Console.WriteLine codes lines to fit to my new created solution for testing codes and not need to alter in ur codes ;) // I know that u know that
in u see that in my codes
I changed the code line of the calling the LoadSourceFiles method.
cuz u don't need to run it in the loading time of the window
may be u think that we can add it to the start button, it's a good idea
but for some reason, it's not ideal idea
I call that function in here cuz I want to run it every time (every 3 seconds) for checking and changing the variables that are important for the next steps of code executing
now, let's check the modified LoadSourceFiles procedure:
void LoadSourceFiles()
{
    if (!System.IO.Directory.Exists(DestinationDir))
    {
        System.IO.Directory.CreateDirectory(DestinationDir);
    }

    if (System.IO.Directory.Exists(SourceDir))
    {
        if (Directory.GetFiles(SourceDir).ToList().Count + Directory.GetFiles(DestinationDir).ToList().Count != intPrevFilesCount)
        {
            SourceFiles = Directory.GetFiles(SourceDir).ToList();
            DestinationFiles = Directory.GetFiles(DestinationDir).ToList();
            intPrevFilesCount = SourceFiles.Count;
after checking the codes in this method, we will back to the prev code lines ;)
I've changed the body of the second condition for the below reason:
@linguini -> I know that u may be know something or all things about code lines and if u don't want that I describe it, tell me
I only want to tell that why I've changed ur codes and my thoughts
20:31
@MRS1367 ok, please explain
ok mate
Hint: may be u think that why I use something like Directory.GetFiles(SourceDir).ToList().Count in somewhere instead of something like SourceFiles.Count
I must say that If I was using that, cuz SourceFiles has nothing in the first run of the clicking Start button every time
@MRS1367 Would you please post the complete code at the end?
yes
the completed code is:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
so, it's better I don't tell anything :)
I hope that it can help u for achieving faster to ur goal.
@MRS1367 Yes man indeed. I'm going through everything since from the beginning:)
did u check it?
20:42
VS is too slow man
20:55
@linguini -> did u see it?
@JohanLarsson you there?
00:00 - 21:0021:00 - 00:00

« first day (1225 days earlier)      last day (3949 days later) »