« first day (167 days earlier)      last day (3982 days later) » 
04:00 - 16:0016:00 - 20:00

04:38
Hi..
 
2 hours later…
06:35
Gooood Moooorning!
06:59
Morning Markus
07:32
hi all
Hello Mr Dunn
how are you today markus?
Well I'm fine thanks, just a little bit tired.... was watching Person of Interest yesterday late...
well I hope its an easy day for you today ;), nothing worse than having to try and think when your tired
Ahaa that's why I had a hard time thinking this last year ;)
07:36
lol
Oh sorry for my manners; and how about you?
haha, don't be silly :P.. but seeing as you asked, im feeling all off balance and horrible. for some reason my left ear feels blocked up, its rather annoying :)
hehe do you have a wax plug?
i don't think so , but it will have to wait till after work :) ive blocked both ears now so i don't feel unbalanced .. but obviously i cant hear a thing lol
Hey there !
07:50
morning sisyphe, hope your well this fine morning
yup :)
motivated
thinking to my project next step
morning guys :)
@E.LDunn lol
yo yo Gregory, how hangs it
Hey El. Yeah okay thanks, yourself?
07:54
hey @gregory.bmclub !
morning @Sisyphe :)
@E.LDunn So how did you block your ear?
originally if it is blocked i dunno just woke up like it, if you mean like 5 minutes ago , i used a lot of tissue paper :P.. hope no one comes in they`ll think im nutts
most def
have you tried ear plugs? (headphones)
08:10
i don't have any ear plugs on me and the only head phones i have tend to give me electric shocks in the ear lol
ehh maybe it's time to do some new investments!
But you said "comes in" does that mean that you have your own office?
no its a shared office space but i should be the only one in today
what kind of office is that?
08:27
lol a rubbish one
but... are they all sick or what?
one is on holiday , the other is at a meeting up north somewhere
count yourself lucky @E.L, I am the whole IT department creating an app for which the account staff would use :/
I'd like to be able to remove the (removed) signes :)
:), don't get me wrong Gregory, im still the only one that does any work , it just happens that the other 2 are not in today :)
08:41
what company is it you work on? (if you want to tell..)
or rather, what is it that you do?
standard programming junk, mostly bespoke mobile data collection applications, nothing exciting :).
mobile data collection? not 3gpp LI then? :)
sounds interresting :)
08:59
very, worked at a company for a while, testing some base station router (the EPSC (I think it was called)) but for all the LI work you had to have a special security clearance and I never got that far :)
now it's lunch time!
which part of world are you guys from?
bon appetit !
Paris, France
sorry phone
09:08
UK :). Yourself?
woohoo ! Got my first Download !
Congratz :D
is your thingy search able sisyphe?
next step is a first review !
thx @gregory.bmclub :)
well not really
you can find it in the codeplex project directory
or if you know the adress
but it's not really advertised anywhere
and I don't think its google indexed for the moment
that's 2 downloads ;)
09:12
the blog article is searchable though
hehe
thx mate :D
ill try not to steal your code :P
looks pretty good Sisyphe :)
thx @gregory.bmclub
still needs a lot of work
@E.LDunn : the code is licensed MIT
you can use it as much as you want :D
i never understand those licences
basically you can use, edit and redistribute this code
as long as you reproduce the license text, that's all
it's the most permissive license
09:24
thats 3!
hehe thx !
what's you advices on that guys ?
anyways i will look at it after i reach home!
great
I need all the feedback possible
coz its time to leave now here!
and developpers too :P but its harder to get
byebye @Mullaly !
09:27
bye @Sisyphe, @E.LDunn and all!..
ciao @Mully
Sisyphe, is that a project you created for the company you work for, or just somethin on the side?
cya dude
its a personal project :)
just for fun
09:42
mornin kind folk
lol nice one @Sisyphe - i liked the title: Call of Mongoose xD
bonjour @Mav :)
ola (?) greg!
@Maverik : lol :D
glad to see you liked it :D
:) yea i made a login and +1'ed it even :)
such an honor it is :D
09:56
well more like recovered - but same thing :D i didn't even know i had one there xD
lol
that happens to me all the time !
i tried to register to a site
we need 1k+ likes on it O.o
taht said it already has my mail
:D
hello mav dude
why do we have two sticky stars?
hey
1x Rudi's and 1x E.Ls
09:57
hu ?
think we should star them but not sticky them O.o
@Maverik : I added some features/tasks on the wiki
where do you see sticky stars ?
@Maverik : and i need your adivec on this : mongoose.codeplex.com/discussions/438900
:)
i don't see them, are you sure there not the ones you stared :P
09:59
yea i mixed up :)
/facepalm
ok then, wow.. so besides 2.. i've starred everything else O.O
you're a chat lover
gotta go eat
10:00
i try to stick around more if nobody else is around :)
so apparently it happens quiet often :P
@Maverik : i want your advice on pinned zoom !!! cya later !
(yup)
there's such a thing as pinned zoom O.o
hey all!
hey @Dot
hey @gregory.bmclub
No motivation at all today :|
10:10
You're not the only one! :)
been writing documentation these past few days, so it's really taking its toll on me
cant think of anything more boring than that
reading documents are quite boring as well...
That too
In this case it's technical documentation so i'm going through every block of code and explaining what it does >.>
In many cases, having to actually remember what it does first xD
huu
hey Markus/DotNet
10:18
I actually have a WPF question!!! Is there any way to sort a TreeView? (it's already containing objects)
hi @Mav
@Markus as soon as you realise that TreeView on its own isn't doing anything besides displaying - sorting becomes easy :) sort the underlying collection however you want
hey @Maverik :)
Depends on what type of sorting you're after @Markus
as maverik said, it's the collection that you'll want to sort
I've had to deal with many TreeViews throughout my application, and most of the time you can just leave the displaying up to WPF, and just focus on the source
Something along these lines:
tviParent.Items.SortDescriptions.Clear()
tviParent.Items.SortDescriptions.Add(new SortDescription("Header", ListSortDirection.Ascending));
tviParent is the TreeView?
It can be a treeviewitem or a treeview
I just tried somethign quick in my application and it can be applied to the treeview itself
Altought I cant test the extent of the sorting as my treeviews are a bit different than the standard
You can basically gain access to the SortDescriptions and go from there from what i can tell
Or else another option could be to work on the item collection itself separately - basically treeview agnostic
i.e. just pretend that your collection is not part of the treeview, cast the itemcollection to its correct data type and play around with it, hence updating the treeview since it would be set as the item source
10:40
//So I was thinking about using the SortDescription but don't really know how to do it
//The data in my TreeView comes from a XmlDataProvider and is something like the following:
MainModule (XElement)
    |-GroupName
    |    |-item1
    |    |-item3
    |    |-item2
    |-GroupName (another)
    |    |-item1
    |    |-item2
Hmm in this case I think it would be best to sort the XmlDataProvider and then bind it to the treeview's source. It might be a bit complex to sort it from the treeview itself otherwise
So the SortDescrtiption is a bad idea?
I personally have never used an XML based data source so I'm not sure how it would be handled. I've just used standard TreeViewItems, inserting and removing as required, due to the nature of my requirements.
When I required sorting, it was a lot simpler than your case - simply extracting the TreeView.Items collection and applying the sorting from there
You could probably still do it and cast to your specific data type, but I wouldn't know how to go about sorting that then. As I said, it would have to be separate from your treeview, which in a sense simplifies things - you could just focus on the collection, rather thanthe visual displaying of it
Is it possible to sort an XmlDataProvider?
Because if so, there's no problem at all as far as I'm concerned
in the worst case scenario, with the worst performance you could just sort and then rebind to the TreeView. If all else fails
And if the collection is relatively small, then the performance overhead would be minimal
10:52
I have thought of that, resorting and rebinding, however that's fairly slow.
Or more correctly that is what I do now, sort them, and then add them in the xml tree (yes I build that also). It's pretty fast, but the switch between my different sortings will need a rebuild of the data
I might be wrong as I've never tried this - but if the treeview item source is bound, and you sort the itemsource seperately, isnt the treeview automatically updated? Or do you have to rebind it?
ok yes, but at this point I can't resort the source, only at rebuild.. I can add that functionality, but I was searching for something more simple
and the SortDescription sounded nice. However I don't understand what the propertyName is in my SortDescription... if I have a XAttribute("shortName") in my items, should the property name then be "shortName"?
or, I have tested that without any success
So what you're wondering is if you can sort it from the TreeView itself, rather than the item collection itself?
SortDescription is very useful, however I didn't know what your data source was, so I'm not sure how to use it with an XmlDataProvider, or if you can even do that. I'd recommend you ask a question on SO, but the requirement is a bit too specific so it might take a while for someone to answer if they've done something similar
hmm nae (or maybe) I was thinking of the this.functionsTreeView.Items.SortDescr...
Maybe @Sisyphe can suggest something when he's online - I remember him mentioning that he had done some extensive work with TreeViews
11:03
back
what's the issue in a few words ?
sorting a treeview (with data from a XmlDataProvider) with the SortDescription
my items contains a XAttribute("shortName"...) and it's the shortName I want to sort by (however I don't want things from one Group to be visible in an other Group
I have event tested myTreeView.Items.SortDescriptions.Add(new SortDescription("@shortName", ListSortDire.....
or do I have to activate the sort on some way?
(the @ comes from this article msdn.microsoft.com/en-us/library/…)
11:22
(phone sorry)
hi all
need a help in sql query
not the best room for it but shoot :)
ok..
i hava table i need iterate through the rows, but i need to take first row value and loop through the remaining rows
that means, i have a table and i need to iterate through it, by taking the first row as my pivot after the loop completes i need set the pivot to second row and again iterate it.. likewise need to loop through the entire table
any idea
i'm using while loop.. but i dono how to set the pivot
what I don't understand is: what are you actually trying to achieve?
Your method is pretty brute force. You can likely do something else to achieve the desired effect
ok.. see i have table with 3 rows
of columns(row number, date, name, value)
take the first row value, and loop through the other 2 rows and find if any value is greater than the value which i already taken
if so then replace the value and store it in another table
then take the another row value and check any of the values greater...
like finding greatest value
11:41
so.. why don't you just do a MAX() on it?
no.. it should be in while loop
why?
i need to manipulate the other data also when looping it
are you only concerned with data of row that has the max value?
no..
11:44
I feel i'm at a loss to properly comprehend your situation. Sorry.
we ll do it in c# the same way i need it in sql query
you could wait and see if somebody else can pick this up, but you'll likely have better luck in C# room
oh ok.. :-(
no writing sql isn't the problem
i dont understand what you're actually doing
generally we prefer to see a small sample project to figure things out, but i doubt that's possible right now
take the row value and check it each row's value column if any one is greater then subtract that value and add that row into another table.
rowNo name value ID
1 a 10 1
2 a 5 2
3 a 20 3
4 a 50 4
this is the table
we need to take the 10 first and compare it with other rows
and if value is greater subtract it
11:51
ok back sorry
@Markus : did you slve your issue ? I actually never used that feature but can have a look
I think the common way to solve that is to use collection views that offers this kind of fetaures
@Tanya subtract from where?
also do you have some code yet?
@Sisyphe that would mean SortDescriptors again no? which where he was :D
well yeah
this was my very interresting contribution of the day
@maverik subtract from the greater value
12:13
@Sisyphe Haven't solved it yet....
12:33
hehehe mongoose
@Tanya Sorry Tanya work has me busy so delayed responses but I'm gonna need to some code that you've already done before I can suggest how to go about this
13:06
Gah, this is bugging me now :/
13:21
gahhhhh, users phoning saying this that and the other is slow and there on machines with pentuim 3`s in... what do they expect :'(
LOL
binding is annoying... fml :/
It seems very long, but it's all necessary code... http://stackoverflow.com/questions/15812561/sorting-of-xmldata-in-a-treeview
Please give it some time if you have :)
@DotNET still around?
@Markus since you've been so kind as to give us a copy pasteable code - imma give it five minutes and hope it doesn't end up taking an hour :)
13:55
Back :)
Haven't solved it yet @Markus?
nope :) neither has Maverik what is seems
If Maverik cant solve it, there's no way i can i'm afraid :P
I'm still a noob :/
posted on April 04, 2013 by Eric Lippert

The C# compiler has a /langversion switch that is rarely used; most people do not know what it is for, and if asked to guess, most guess wrong. So let me disabuse you of your wrong guess right away: the … Continue reading →

@DotNET lol no - i've never had to deal with xml
i'm merely curious to learn so trying out his code
but i wanted to ask you something :) I'm in sort of similar situation as you
did you use EF to sort your sql blues?
I'm not sure my approach would be of much relevance though. Since my project is a query builder, it merely generates SQL rather than uses it
14:04
if i can generate it, i can use it too :P
so i'm trying to start from a situation where a table has 40 columns
each column name corresponds to a tablename
first i need to write a query that basically says WhereAnyColumnContains("x") and get all the rows
and then depending on values in columns i have to join them to the actual table
this far is ugly but i can do it in brute-force manner
Hmm I've never used EF before, however in my internship last summer I used to use a sort of in-house bespoke version of it and found it quite useful
problem starts after the 40 tables have been identified -- they're different and i'm syncing two DBs
so i dont know in advance how many columns or even their column names in advance
These are pretty strange requirements xD
>.> you're getting a glimpse into my day job
i'm Automations developer
everything i end up doing is strange xD
information schema!!
and good morning :D
14:09
hey @Julien
hey @Julien :)
let me dig up an old question which i had asked @Maverik
it's not completely relevant to your problem, but I once had a dilemma about whether to use EF or not
2
Q: SQL vs. Entity Framework for databases at run-time

Dot NETI'm currently building a query builder in C#, which first starts by prompting the user to specify which database they would like to query on their local machine. Thus, the program allows databases to be "plugged-in" to it, rather than have a number of databases with tables that are always used. ...

yeah coming from php i was really surprised that i couldnt do anything dynamic with EF
sorta sucks
and my problem basically involved not knowing anything about the database schema in advance, similar to yours
@Julien information schema will tell what columns are there yes - but then how do you propose i do ForEach(var col in record.Columns) db1.record.Columns[col] = db2.record.Columns[col];
14:12
SMO is the solution for that @Maverik
that assumes i have MSSQL :)
i have to sync MSSQL with MySQL
so next! :P
Damn :p
if i had MSSQL, i'd just setup replication
I'd go with entity framework in that case
unless it's a requirement like mine where every aspect of the schema is completely unknown until runtime
well i sort of know the schema
but 40 tables with 20ish columns per table -- it may as well be unknown!
cos i dont wanna write a huge switch statement
that handles every table according to its columns (not that i'm lazy - i can generate that switch statement automatically)
14:15
SQL strings might be your only choice in that case. Unless there's some sort of library which replicates SMO functionality for other DBMS
yea i'm thinkin DataTable is my best bet
at least i know fields by index are same
It could get ugly because you'll be dealing with the DBMS' metadata a lot
but there are some modules of my application where i had no choice but to do that
as SMO doesn't cover everything
think i can skip smo since i do know the table names
@Maverik foreach (var db_row in db_result_set)
{
var column = t.GetProperty("column_name");
var columnValue = column.GetValue(db_row);
}
where t = typeof(db_row)
just pray you wont have to play with views
14:17
Julien is that EF code?
yes
O.o
there's no GetProperty on my record
what is t ?
I had a requirement to find the original tables which columns in a view belong to, and it's near impossible from the database's metadata
var t = typeof(db_row);
lol i remember Dot
14:18
my table is called offline_schdule
t = typeof(offline_schedule)
@Julien you have my curious now! thanks for an idea i hadn't explored
brb!
I'll talk to you all later, good luck with your design choice @Maverik!
:) see ya
++ @DotNET
14:25
today i have to try and make a system activity based away timer that works on a TS server using undocumented winapi calls :D fun fun
looks like fun yeah :P
@Julien been there :)
hook a brother up
I haven't used Idle but i've been messing with a Task Manager that operates on a farm of TSs
not pretty stuff!
my one example is vb code from 9 years ago. hahaha.
has anyone worked with cassia
14:32
nope, sorry
yea Julien
compared to the horrible mess thats WinAPI, Cassia is a life saver
seems like it, but i couldnt find anything about idle time in their docs or source, just gonna try it now
I'm shamelessly advertising Mongoose on SO answers...
well actually I'm a bit ashamed
I shouldnt do that :P
@Markus : i'll have a look at your issue this evening if I'm not home too late
Time to read about OData
cassia = awesome. has everything i need
14:49
@Sisyphe Sweet!
ya i solved it.. thanks @Maverik
cool beans Tanya :)
Gratz !
at least somebody is having luck! lol
i solved it using ROW_NUMBER() OVER (PARTITION BY Id,ORDER by Id)
14:51
@Maverik is our precious lifesavior :D
it will give me the row number
nah she sorted it herself
so we can loop it easily
while i'm trying to wrestle with mysql in EF
i hate it!
:-)
14:57
well good by for today, see ya
@Maverik fun eh? it can be painful but some of it is neat
Byebye @Markus !
Yea - I've been in a mixture of WMI Event Subscription & Cassia
Good Bye for today.. see u all.. :)
byebye :)
14:58
i'm going to switch over to Agent Services on each TS and pull the information from there instead of WMI Events in my next version
bbye
of course Agent Services will then pull information through Cassia and p/invoke where i really have to dive down to that level
15:16
ive worked with wmi never heard of agent services
15:30
actual wpf question: how can i get all the images out of a flow document? specifically i need their datacontexts in code behind
that's a very sisyphe question :)
g'luck!
well...
visitor pattern among Visuals
you'll have to browse the visual tree, stop at each Image and retrieve their dataContext
Visitor Design pattern is especially adapted for this kind of work
04:00 - 16:0016:00 - 20:00

« first day (167 days earlier)      last day (3982 days later) »