« first day (2265 days earlier)      last day (2909 days later) » 

00:05
Hello, i was wondering if anyone here knew of a library/framework/UI for managing projects/files? Something similar to the solution explorer in visual studio but for custom applications.
00:17
Isnt it just a treeview with icons?
 
2 hours later…
02:19
its a treeview with icons that reads from a folder, does saves, renames, folder renames etc
has context menus associated with these things
So far you're describing Windows Explorer
no
im describing solutions explorer
generally it would have an api for persisting
etc
yes
you are describing Windows Explorer
kendall, you should spend more time doing work and less time trying to be snarky in this room
:D
but seriously, what do you actually want?
02:22
i was just wondering if their was a library people use for that sort of thing, project persistence management similar to solutions explorer. I have my own I rolled a few years back, but need additional functionality so i was wondering if there was a library for it
A library that does... what?
Displays objects or files in a multilevel treeview, handles renaming and synchronizing them with the file system, has revert, save load, etc built in
it seems like a pretty standard thing, so i imagined their might be a library that is common
I suspect you want something more than file I/O
yes a UI component that does this
So like embedded Windows Explorer
02:26
n/m
essentially like solutions explorer in visual studio, except also maps objects as well as files
What are "objects"?
objects are instances of classes.
And what link does that have with a filesystem?
i think im just going to ignore you.
Feel free
03:25
So my class has a private list. In my class, I currently have a property called ElementAtOrDefault() to call List<Of T>.ElementAtOrDefault(), wouldn't it make more sense for that to be named Exists() or something of that nature? That name seems crazy roundabout.cal;l
04:12
Does anyone want to help me solve an impossible C# problem? Im running in Xamarin.iOS and my getters disappear at runtime
05:02
05:13
In case anyone wants to know the answer, I figured it out, the compiler optimized out the getters, because I never explicitly called them (but I was relying on them for an Azure connection)
 
4 hours later…
08:50
I have a problem about oracle.manageaccessdata commandtimeout problem
Did you experience about it?
0
Q: Oracle.ManagedDataAccess CommandTimeout not worked

Fatih ŞimşekI am trying to change the command timeout for a OracleCommand query, but it is not worked. Oracle.ManagedDataAccess.dll using (OracleConnection _connection = new OracleConnection(connectionString)) { using(OracleCommand command = _connection.CreateCommand()) { command.Command...

 
2 hours later…
10:44
Hello friends i'm new to here!
Glad to find more nerds!
:)
 
3 hours later…
13:51
Good Coding People
14:03
Hey this is pretty cool. A SO employee was on 538's list of "thing we wish we had written last year": fivethirtyeight.com/features/…
14:24
I have an issue where I've noticed IE doesn't display any of my webfonts (referenced via a CDN) nor glyphicons. There are errors such as: "CSS3111: @font-face encountered unknown error." or "CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable."

I've googled this for a while and come across answers such as "without an explicit "Access-Control-Allow-Origin" header, Firefox and Internet Explorer won't display your webfonts"

I've added the following line to my Web.Config, but the fonts still dont work.
14:39
I'm getting errors on Release build in VS 2015 that don't exist for Debug build... researched it and can't find an answer as to what's causing it
@Michael are you seeing this in FF as well or just IE? What version of IE? From the googling that I just did this looks like a deep dark pit of cross-browser compatibility that sounds like a giant pain in the ass.
@Alex what errors are you getting in release?
Cat can not be found - check under the bed
@mikeTheLiar Give me one sec and I'll paste an example...
This is a WPF app, and I'm using Material Design for Xaml. One of the 40+ errors is this: The name "DialogHost" does not exist in the namespace "http://materialdesigninxaml.net/winfx/xaml/themes".
It's throwing it in a XAML file
I regret asking. That sounds unpleasant.
<materialDesign:DialogHost HorizontalAlignment="Stretch"
                               VerticalAlignment="Stretch"
                               Identifier="GenericDialog">
14:55
hello all
greetings.first(x => x.GreetingType = GreetingType.Hello);
15:23
Hello :D
16:21
Howdy.
Hey guys/gals. Learning a bit about LINQ and wondering if anyone can help me understand the following example.

from p in db.tbl_prods.ToList()
from v in db.tbl_code.ToList()
where p.Lot.Contains(v.value)
select p
grrr wanna burn twatter but that would be considered bad
Is this literally saying to select all p where any v.value exists in p.lot?
@SeventhSon I believe it's doing a Cartesian join
@Bardicer Burn twatter?
our website sharing isn't working on twitter or linkedin now
i went to twitter and put in www.oilpro.com in a tweet and got "this request looks automated"
because manually typing something is so frickin automated
lol
From what I know as anti-spam defenses have gotten better, spammers have moved on to literally paying people to post spam.
@Bardicer from what I can tell it looks like that's an account-level ban, not a tweet-level check. You might have to put in a support ticket.
16:43
so... they have my personal account borked?
i was able to tweet a bit.ly link
Hmm. Dunno then. Most of what I saw on the internet was basically "oh, the twunts thought my account was compromised so they locked it"
16:59
I'm having such a difficult time doing my job some days with LINQ.
Stop with that query syntax shit, your LINQ experiences will improve immensely.
Is there ever a time as a developer when you go to management and say that the previous coder sucked so badly that you suggest rewriting their code rather than troubleshooting it? The previous dev seemed to abuse LINQ so much that it's a giant pain in the ass to fix anything. Or... is it just me?
@mikeTheLiar What syntax shit?
Query syntax. Method syntax is where it's at.
I'm so used to T-SQL that this stuff seems so... stupid.
@mikeTheLiar I can google it (query vs method syntax) but can you elaborate?
@SeventhSon I'm mainly trolling, it's largely personal preference but I find method syntax so much easier to work with.
17:06
LINQ? stupid?
and that's not T-SQL anyways
"SELECT x FROM table" !== "from table select x"
imo there's no point in learning multiple sql syntaxes
list.Where(l => l.property == something).OrderBy(l => l.someOtherProperty)
one liners ftw
The example that @SeventhSon posted appears to be doing a cross join and I don't think I've ever need to do one of those in the real world.
db.tbl_prods.ToList().Where(p => p.Lot.Contains(db.tbl_code.ToList().Select(p => p.Value)) ?
i've done something similar in the past... albeit very rarely
y u ToList
y u no lazy evaluate
i guess if it's an IEnumerable already no need for that
i was just using what the example was doing
^_^
What's the best way to associate an object with a thread and then later retrieve that object? I want to do roughly this:
List<Thread> Threads;

for (var i = 0; i < 5; i++)
{
	var threadFoo = new {Foo = 1};
	var thread = new Thread(() => Thread.Sleep(10000));
	thread.Start();
	Threads.Add(thread);
	// Somehow associate threadFoo with thread.
}

foreach (var thread in Threads)
{
	Console.WriteLine(thread.Get("threadFoo").Foo);
}
17:16
Dictionary<SomeType, Thread>? I'm not sure I understand the question
I've look at [ThreadStaticAttribute], but that seems to assume I'm instantiating a separate class instance for each thread.
I should've expanded more. My threads are already in a dictionary with a different key.
I also may want to associate multiple pieces of data with the thread.
17:38
Another Greg, sweet generic name.
 
1 hour later…
19:03
@mikeTheLiar I just installed firefox to test and it worked fine. So it appears to only be IE. I agree this is going to be awful.. I dont even know
You will know eventually
did you try in edge? or IE
19:22
I'm an addict. An addict to the feeling you get when you put something together and it works just fine first try.
@Codeman I need to stop trolling your Facebook. People get so upset, straight up hostile and condescending.
They don't like you there?
No, they take anti Trump sentiment to a whole new level.
Hail the Drumf
I think that's called "being a decent human being" but what do I know, I'm just a cat.
19:30
Apparently if your neutral, you're wrong.
A lot of decent people voted for Trump, people scared they'd lose their jobs to automation.
or outsourcing*
Fun fact about the Carrier deal, it included a stipulation that Carrier invests quite a lot of money into modernizing their American factory. Which means automation. All those "saved" jobs are going to be lost anyway.
Oh yeah, do not misunderstand me, automation IS GOING to happen, it's immutable, you can't win against technology, but Trump told these people who are scared of being laid off he'd protect them.
Honestly, I don't care. If the world suddenly ended, I still don't think I'd care. I mean, honestly were a small insignificant life form, who pretends to be God. We're so superior, that we contrive ourselves to a society simply bent on control.
That was their concern, keeping food on their table, not propagating malice and hatred that a lot of people seem to think of anyone who thinks otherwise.
19:32
@hilli_micha I think you mean "inevitable" not "immutable"
Or I suppose immutable could work, as in "you can't change it"
Yup, that's what I was referring to.
Short of some great societal reset, automation will happen, that is unchanging, at least in my opinion.
I hesitate to even bring it up but that's one of the major arguments in favor of universal income. The simple fact of the matter is that low-skill jobs are becoming a thing of the past.
They are indeed, but I think universal income will be bad too, from personal experience when I dropped out of school I had a roof, food, and my guardian would pay for whatever I wanted, but I wasn't happy.
It's not a question of happiness. It's a question of having basic needs met so you can worry about things that aren't on the bottom of Maslow's pyramid.
You think we will have a robot picking cotton, grapes, blueberries, in the future?
19:38
It's still relevant though, I fear you'll have a society who's just unmotivated to do a whole lot. Admittedly for me, getting out there and meeting my basic needs on my own and building life on top of that keeps me going. I enjoy it.
It's stressful yes, but I feel you can't enjoy a lot of things unless you have some shitty times in your life every now and again. The juxtaposition helps!
@mikeTheLiar True but in the mean time they don't have 300 people collecting unemployment all at once
@Greg it's only a matter of time before it's either completely automated or it's just one guy
in 1900 40% of the work force was farmers, today it's 4%
On the other hand it's not going to be too long before all the bees are dead and then we can put people to work manually pollinating plants.
so things will change in the way we make everything else
wonder if we can make a man made pollinator
sounds like the next million $ product
19:40
Necessity is the mother of all invention. We'll make it happen. lol
@juanvan the fundamental sickness remains.
Can we please replace farming and factorying (which are being automated) with caring (which cannot be)
Kids today don't care, they are all honey badgers
Desperately short of care for everyone, not least the elderly
@TomW something something monkeys with wire mothers
19:41
they will lose their jobs
Plus rising class sizes, need more teachers
Either way, I'm in software development because I know the last guy to have his job automated is the guy making the automation.
Screw it make education to be a system of personal mentoring, class sizes of four
Plenty of jobs
@hilli_micha why do you think I quit cooking?
@mikeTheLiar Olives are easy to determine if it is good or bad, ripe or not. Plum's are drastically harder.
19:44
@mikeTheLiar Yup, we're already automating a butt load of that.
@Greg we solved that problem a long time ago. They don't wait for them to ripen.
Ever wonder why so much of the fruit in the grocery store is shit? Because there's no money in waiting for them to be ripe to pick them, you wait for them to look good.
And yes, that is easily automated. We've already done it with frozen french fries. A camera identifies brown spots, removes them from the conveyor belt, excises the bad piece, and returns the fry to the conveyor belt.
Hello
Does anyone answer C++ questions here?
A quick one
So yeah. We can make a machine that can identify when a plum looks good. Never mind that, just analyze the surrounding benzene gas levels directly.
@LucasDryer you're a lot more likely to get a C++ question answered in the C++ room but shoot.
@LucasDryer Just ask, no need to ask to ask. If someone knows, they'll answer.
Ok
I wanted to know how to return an int value from std::count
I just need to find an int value of how many times a certain character appears in a string
19:49
107
Q: Count character occurrences in a string

andre de boerHow can I count the number of "_" in a string like "bla_bla_blabla_bla"?

I looked there and have tried using that
But I get an error
Error C2446 '==': no conversion from 'const char *' to 'int'
^
Can you share your code please?
I looked for how to fix it but haven't found anything yet
Ok
			int dash_count;
			bool is_negative = false;
			if (temp.find("-"))
			{
				dash_count = std::count(temp.begin(), temp.end(), "-");
				if (dash_count == 1)
				{
					is_negative = true;
				}
			}
Hit Ctrl+K to format your code
Press up to edit the last message
This is the segment that is causing the problem
Ok
Did I edit it correctly?
19:52
Yes
Cool
I am looking to find how many times there is a dash in a string
Well according to that question that I linked the third argument to std::count is a char not a string ('-' instead of "-")
Also what is temp?
So that is the problem?
Well it's at least a problem
I don't know if that's the problem
Wow, didn't know that could be such a hazard! Thanks for spotting that.
Yeah, the error did not appear
Thanks a ton
19:54
Did you get the correct int value?
Strongly typed languages, how do they work?
😀
I think I did hilli
Lol, so much precision involved in these languages!
C++ syntax is pretty unforgiving, but it's for a reason.
I am learning C++ and Java and they are demanding with the syntax but I love it
Yeah, it is always for a reason
One last follow up to my question is, I got the error removed, but it just returns 0
Even though I put dashes
Where is temp declared? Can you use a debugger to confirm that it's contents are what you expect?
20:01
Let me look
I have a program that uses temp but maybe it is changing it
Very possibly. Can you reproduce the issue in a MCVE?
That way you can find out if the problem is with how you think std::count works or if something else is wrong.
What is MCVE
string s = "aaa";
cout << std::count(s.begin(), s.end(), 'a');
!!tell lucas mcve
@lucas If you would like assistance, please create a Minimal, Complete, and Verifiable Example
Ok
I think I might know what the problem is, one sec
Ok, I have a question
If I wanted to remove the '-' from the string, what would I do?
20:07
70
Q: How to remove characters from a string

SD.For example I have a user input a phone number. cout << "Enter phone number: "; INPUT: (555) 555-5555 cin >> phone; I want to remove the "(", ")", and "-" characters from the string. I've looked at the string remove, find and replace functions however I only see that they operate based on posi...

Honestly though I'm just Googling your questions for you.
Lol, I was just doing that now!
Thanks for the link though!
I will let you know in a few minutes if I have solved it
20:20
I think that std::count only returns 0 for '-' because I tried other characters and they worked
I find that hard to believe. I think it's much more like that the string that you're checking has unexpected data in it.
Hmm
Cause I changed the char I was looking for to 'a' and it worked but not when I have '-'
I don't know if std::count doesn't register '-'?
Would '-' on the main keyboard and '-' on the numpad show up as separate entities during comparisons?
It is funny because I have a cout under the std::count line and it doesn't print afterwards
They shouldn't @hilli_micha
20:24
Don't know hilli
It is strange
@LucasDryer can you post your most recent code?
I thought they shouldn't as well, but that's the first question that came to mind.
Ok
Do you want me to post the whole progject (144 lines) or just the snippet?
project*
ideone is telling me "prog.cpp:6:10: error: 'count' is not a member of 'std'" so that's not helpful
20:26
@LucasDryer just the part that's relevant. I want to see this cout statement that doesn't run
Are you using a debugger?
Now the 'a' doesn't register anything other than 0
I'm guessing the cout is actually in an if statement that isn't being entered
There is no error
			int dash_count = 0;
			bool is_negative = false;
			if (temp.find("-"))
			{
				dash_count = std::count(temp.begin(), temp.end(), '-');
				cout << dash_count;
				if (dash_count == 1)
				{
					temp.erase(std::remove(temp.begin(), temp.end(), '-'));
					is_negative = true;
				}
			}
Here
yeah I'm guessing if (temp.find("-")) isn't entered
Ok, so the a works, but the dash doesn't
20:28
Can you just add cout << temp about the if statement?
What do you mean?
			int dash_count = 0;
			bool is_negative = false;
            cout << temp; // add this line
			if (temp.find("-"))
			{
Which IDE are you using?
It prints the exact same thing that I enter
Eclipse
Whoa sorry
Visual Studio
2015
Lol, I use Eclipse for Java, Visual Studio 2015 for C++
20:31
Can you put a break point on that line?
Ok, I can try it
Which line do you want the breakpoint?
Put it on the if statement for now
Ok
What should I look for with it?
I curious to know 1) the value of temp and 2) if you step into the code if the if statement is entered
The temp value is same as the input
I put the breakpoint at the if statement so it didn't run
20:36
Click "Step-Into". It's probably in your toolbar somewhere.
F11 is the default shortcut I believe
Oh, the other thing you could do - look for something called the "Immediate Window"
I steped into it
And it pulled up...
the xstring class
Debug -> Windows -> Immediate
20:37
Ok
What do you want me to do with it
Copy temp.find("-") and press enter
Ok, one moment
It says:
The expression cannot be evaluated while in design mode.
Oh sorry, the code needs to be running - do this while you're paused on the breakpoint
The Immediate Window is basically just a little scratch-pad area - you can access variables that are in scope and enter statements and they're immediately evaluated and the results printed
20:41
Ok, this is what it says:
no instance of overloaded function "std::basic_string<char,std::char_traits<char>,std::allocator<char> >::find" matches the argument list
That.....makes no sense.
That should be a compiler error.
I know
It shows no errors if I don't do the immediate thing though
just do temp and paste the results here
Put temp into immediate?
20:43
Ok
It's not that I don't believe you but I want to see it myself
Here are the results:
"---"
[size]: 3
[capacity]: 15
[allocator]: allocator
[0]: 45 '-'
[1]: 45 '-'
[2]: 45 '-'
[Raw View]: {...}
Well that's definitely a string with dashes in it
Yup!
What is the program doing
lol
And std::count still returns 0?
20:44
It doesn't return anything when I put dashes
Let me try again thouhg
though
Okay. I'm starting to run out of ideas here though, you might have to find an actual C++ developer. I've forgotten most of the C++ I ever learned.
brb
I have a cout << code_part but it doesn't even print it
Ok, thanks for all your help though!
I think you seem pretty knowledgeable about C++ though
At least Visual Studio IDE
What's code_part?
Where the hell did VS 2015 hide the C++ CLI project template?
Oh fuck me this sample is a C++ Winforms project. No thanks, I had cancer for lunch.
3
21:07
Dose o Cancer
There is a C room they might hate the question by they love 2 cout
Sorry, was playing with my dogs.
I got to go, thanks for the help and good luck guys!
lol have fun with the dogs
21:52
hell
pls frend no swering u doin me a heckin anxiety
22:15
o
I'm just a slow typist

« first day (2265 days earlier)      last day (2909 days later) »