« first day (895 days earlier)      last day (3254 days later) » 

12:00 AM
yes, thats what I meant.
 
 
11 hours later…
11:10 AM
hu
hi
did anyone have hands-on Crystal reports
?
 
12:02 PM
Hi, what's your question ? (this chatroom's topic is WPF)
(but I once had to work with Crystal report)
 
12:19 PM
Build build build build build build build. I got the fever.
 
 
3 hours later…
3:07 PM
0
Q: Wpf binding: How to avoid "property not found" runtime errors at design time

LieroI would like to somehow ensure, that all my bindings in xaml binds to existing property. I want to avoid runtime errors like this: BindingExpression path error: 'Fullname' property not found on 'object' ''Person' (HashCode=33132859)'. BindingExpression:Path=Person.Fullname; DataItem='ViewModel'...

 
 
2 hours later…
4:43 PM
quiet today...
 
oi
 
o/ hello guys
I tell you what... if you don't want your question to get views... tag and title it with 'compact framework'
its been up an hour... 4 views
- 1 for myself
 
lol, I would probably avoid such a question :)
 
so would everyone else :P
ffs I don't know if I really want an answer
that just means I have to work with it again
 
@MarkW link?
 
4:48 PM
0
Q: How to load an assembly from byte array in compact framework

Mark WI have legacy clients who use smart scanners with old windows mobile on them. As a result, I'm stuck developing in the compact framework for these smart devices. I am in the process of writing a class library which will provide a plugin type mechanism for an interface to the scanner hardware. I ...

 
Now you are up to 6 views :)
 
lol score!
 
@MarkW Are you loading the assembly to use it, or just get file version info?
 
to use
 
Have an upvote from me because that sounds hard
but ugh for what you are trying to do
 
4:50 PM
lol
well the issue is that its like, the reference chain goes MyCEApp -> Class library with IScanner -> Implementation of IScanner (plugin module) -> third party dependencies
some of them like Motorola for example, as literally dozens that need to be imported
if I reflect over all of the assemblies, including the third party ones, and all of the types in each assembly... its going to be very expensive
so if I can package the assemblies as a resource in that way, I can load those types up at runtime, and only have the types defined in the single plugins assembly that I need to reflect over
which in theory should only ever be derived types of IScanner
 
Stupid question, is it actually too expensive, or are you just afraid that it will be?
Did you try it the easy way and discover the cost was too high?
 
well we have a different code base, sort of a one off thing we wrote for a different client, and there is a huge delay when the scanner starts up, because of this limitation
while it would be a lie to say that I personally have verified that this code in particular is responsible, my coworker here points the blame at loading the interface
which seems reasonable to me
its upwards of 3 minutes for the Motorola ones to start up (that includes a lot of time from the scanner OS itself just starting up, and isn't 100% this code by any means)
but waiting for 3 minutes for your smart scanner to start is just insane
gotta do something
does the class loader in C# search the application directory recursively for assemblies by chance?
maybe I could just set the copy to local to false on the third party references, and include them as content copy to local non-embedded resources in the application
 
5:08 PM
> I'm stuck developing in the compact framework for these smart devices
"smart devices" lol
 
lol yeah, the humor definitely isn't lost on me
 
5:38 PM
I don't believe it searches recursively, no
 
@MarkW is it supposed to be a long running application?
if it takes 3 minutes to start, but the app runs for 1 day, i'd say it's reasonable
 
well it depends
under ideal circumstances yes
but in practice, they have to cold boot the scanners frequently
for one reason or another
 
sounds like they have bigger problems ;)
 
lol yep
but we are talking about a very dirty, and dusty environment with tech being handled by unskilled workers who give zero fucks about treating hardware nicely
 
that's what cases are for :)
we just shipped out a NEMA 6? enclosure. It was our hardware in something like a 6 inch think aluminum casted chest.
 
5:49 PM
lol does it need to survive a plane crash?
 
kind of. needs to be able to stay cool/not melt in a metal foundry above a bucket of melted steel. haha
 
wow
did the terminator theme song just pop into your head to?
 
they said i missed the one like a week before, they needed a crane in order to open up the door to the inside of the enclosure
 
while picturing your hardware being lowered into the molten lava
 
haha
 
5:52 PM
"In the space of 10 minutes, [Stack Overflow's] Atwood called PHP “a shambling monster,” “a pandemic,” and a haunted house whose residents have come to love the ghosts." technologyreview.com/review/536356/toolkits-for-the-mind/…
 
so i get suggested edit notifications even after i reviewed 20? that's dumb
 
6:15 PM
[printdialog] questions are my favorite
and goes to say that MS needs to improve friendliness of its printdialog or something
 
lol, I wish it would improve a lot about its dialogs, at least on the API side
 
as a java developer, I envy the problems that you guys have with .NET... don't get me wrong, I love java... but at least you don't have to deal with shit like years starting at zero in the java Calendar implementation
instead its just shitty dialogs
err that's months* not years that start at 0
so its 0 - 11
unless you use something like Joda time
 
Go Jon Skeet!
 
I remember almost getting into an argument with Jon Skeet about class loading in java... then I remembered who is he, and just stfu and went away
 
good plan
 
6:26 PM
most definitely
 
I once answered a question right after he posted his. Guess which one fared better?
 
well I suspect you had a snowballs chance in hell of getting more votes than the skeet
ffs... hes the fuggin skeet man
 
yeah, you could say that
I got a couple upvotes, but I think he was at 12 by that point
 
but to be fair
ive seen skeet post and answer and then retract shortly there after after he realized he was wrong
but get dozens of upvotes in the mean time
people don't think critically about his answers more often than not
its just 'oh its skeet, hes automatically right'
 
it doesn't hurt that he is right 99% of the time
with all the answers he posts, its amazing he's not wrong more often
 
6:29 PM
lol agreed... but it doesn't prevent people from upvoting what could be a bad answer.... argument from authority is still a falacy
 
no question about it
 
6:41 PM
Hello every one, I am working on web scraping app in WPF, where I can able to fetch the data from a website but the problem was on the initial button click it is fetching data which is the home page, but on the consecutive clicks it is fetching the actual data. was unable to trace where goes wrong, the code to my sample demo app was found at this link pastie.org/10070344
 
Can you be a bit more specific about what is going wrong?
 
@BradleyDotNET
are you asking me?
 
I am fetching data from imdb.com website for testing purpose which fetches the movie names on a button click (where user needs to enter some movie name in the textbox named textbox1)
the data fetches in the second click event and on the first click the URL of the page was imdb.com and not with the search results
was unable to know where exactly goes wrong... as I know the DocumentCompletedEvent was fires async but looking for an alternative to fix this
 
So... you just want to know how to make your user wait for the initial download to complete?
 
6:46 PM
was that also good and on the button click it needs to fetch the data as what I have entered in the textbox
which is not happening in the initial button click which I guess of what you said like needs to wait till the download completes
but how to do that?
Should I need to use any timer for that?
 
The web browser has several events to let you know when a page load is done
I'd have to go look them up to say which one you are looking for
LoadCompleted seems like a good one: msdn.microsoft.com/en-us/library/…
 
What I should do with this method?
I mean how can it help me in my case?
sorry if this was a really a dumb question...
 
well hellloooo
 
Empty user name mean user deleted profile or something
@BradleyDotNET ha, I had the same thing happen! or maybe it was HansPassant... i think it was Hans.
 
7:02 PM
@Ganesh Ummm... put the processing that is dependent on the page being loaded into the event handler?
Its not exactly rocket science...
Perhaps you should clarify where you care confused
Hi @DrewR
 
been a while since I was last here
 
@Ganesh I think what is happening is you are clicking the button, and its entering text into navbar-submit-button and invoking the button click for you. then its executing, and in the the mean time, WebScraping is immediately called and it finishes before the page is action from invoking button click finishes.
so there are 0 results.... when you click it the next time, all the information is readily available
 
yes, I guess that was the issue and now because of the reason my search works next on next click
yes, yes,
so what would be the fix for this
 
@Ganesh what I think you need to do is, set a flag after the button is clicked, then have an event handler for when the webBrowser is done loading, at that point run WebScraping.
 
I tried with LoadCompleted event for webbrowser which I could not able to find the match event for the same
 
7:09 PM
in the event handler would be:

if(scrapeSite)
{
    WebScraping(webBrowser);
    scrapeSite = false;
}
 
but when I'll set the scarpeSite to true?
I tried with ProgressChanged event as there is no LoadCompleted event on windows Browser control
 
7:24 PM
@Ganesh there should be a loadcompleted
bradley even linked the event
 
I am using System.Windows.Forms.WebBrowser control
 
make sure you're using the System.Windows.Controls
yeah, don't do that. use the WPF one
 
Okay, but it does not have methods like GetElementByID and some other stuffs
 
> WPF/HTML Interoperability: InvokeScript and ObjectForScripting, and Document.
0
Q: How to read element content from web page using the WPF WebBrowser component

Irakli LekishviliHow can I get the element value from the web page in C#, with the WPF WebBrowser component? For example I want to get this value 1.7655 from this page http://www.forexpros.com/currencies/usd-gel. Thanks

 
is ther ea reason you can't just use HttpClient and similar to scrape the data and not display it?
 
7:32 PM
but looking at what you're scraping is fun!
 
@ReedCopsey there is nothing like that
 
all I need to read the data of the website but some how I did faced issues with loading the data
 
@BradleyDotNET so about this... i get what your saying, but still question
 
7:38 PM
@NETscape lol - fun, and slow :p
 
just like me! =D
 
lol
 
@BradleyDotNET anyways, the SpecialFileParser would parse into SpecialFile object which has a filename. Then hand it back up into the project model. then I would have to parse the literally file which would give me an entirely new model, so I would need have a different parser, i think.
 
@NETscape I think you're stuck in OO hell
 
dunno if you've read any of the transcript @ReedCopsey but feel free to chime in
definitely
i'm trying to do to much at once, or something.
 
7:42 PM
so break out of it - don't use OO techniques. Not everything needs to be a model
step back, design the data (not classes, but core strucutre), write some simple methods, flow it through the system
 
which I agree with, but it's this domain thing franssu got me hooked on
and i realize its a domain issue as well
 
how are you defining "domain" here?
(there are different ways to define it - want to get ont he same page)
 
I'm still trying to figure that out as well :)
So far, there are theoretical separate processes
 
i guess my sub/systems
i have a Views, ViewModels, Models, Services, Parser, Common projects right now, and i realized, that's probably not how it should be
 
@NETscape If a project file can't handle a SpecialFile object, then you have something wrong with that design
 
7:52 PM
what do you mean handle it?
a ProjectModel would have collection of SpecialFileModels lets say. it can be represented in XML so there is a structure. but a ProjectModel is kind of intermediate data. It holds no real value other than it contains the file names of the files that were opened for a given project
when I open a SpecialFile (file name), it contains a bunch of data. That will then have to be parsed into other, possibly multiple, models. And after all the models are created, I can then generate compose my TreeView, which is a representation of a Project, but in a different way.
 
again, OO hell
forget "models"
just design the data you need
then write things to import it to those structures, and work wtih it as needed
don't overcomplicate it
 
yeah. and i blame it on stupid external designs of the files and the way they want this application to operate lol
i feel dirty when i just write code to get things done lol
because maintaining the legacy VB6 software is horrible, I don't want to have to read all the code to understand the application, nor hand it off it an ugly state.
thanks for the input Reed, I think I might have to start doing what feels natural
 
8:25 PM
natural design, when done by someone who understands good design, is usually better
 
well now that i have a handle on good design, or at letter better than before... i'm trying to design whats already done to follow good design when it may not be worth it in the long run
 
yeah, refactoring is tough
You have to decide what's likely to change enough in the future that its worth the time and pain of changing it now.
 
9:21 PM
@Netscape said "because maintaining the legacy VB6 software is horrible" Amen brother...
btw netscape... if you ever need to convert fixed length files from VB6 data types to .NET ones, I have some code you could steal
took a while to get right, but shes bullet proof now
 
wahh?
 
our old VB6 apps tend to write out their structures to files of fixed length
or some multiple of the size in bytes of the underlying structure
 
all of them?
structures
 
like say... we have a structure for an Order with a VB6 int, string, long, and date... we may right out an order header file that contains the binary for that structs values
I wrote an app that you can paste the structure from your source code into it
and will build a data table from it, read the bytes from the file, and populate the table
the tool is written in .NET
so it can do conversions of the data types for you
because in .NET and int can get bigger than 32k or whatever
lol
I doubt you would have a need for that aspect in particular
but if you ever needed to read VB6 binary files in .NET
 
don't think so haha, but sounds fun
 
9:27 PM
I have a class that can do the data type conversions for you
it was pretty fun to figure out ill be honest
not super hard
just... took a while
so long suckers!
three day weekend for me!
muhahaha
 
9:41 PM
@MarkW shoulda took off Monday... tsk tsk. what kind of wisconsinite are you
 
 
2 hours later…
11:55 PM
I just confronted the great Jon Skeet
and came away with a tie I guess :)
could have done a lot worse
 

« first day (895 days earlier)      last day (3254 days later) »