« first day (726 days earlier)      last day (4215 days later) » 

12:27 AM
Is passing a stream as a parameter dangerous
My parameter threw an exception of type 'System.ObjectDisposedException'
 
1:27 AM
@zneak You work at Ubisoft?
 
1:43 AM
Anyone around work with Mono?
 
Yes!
 
Yay!
Do you have any idea what I can do to get it to find System.Data.SQLite?
Or some substitute thereof?
 
using System.Data.SQLite;?
 
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. The system cannot find the file specified.
 
3
Q: How to use System.Data.SQLite under mono?

prosseekI downloaded System.Data.SQLite, and tried to compile the following sample code. using System; using System.Data; using System.Data.Common; using System.Data.SQLite; namespace test { class Program { static void Main(string[] args) { SQLiteConnection.CreateFile("/Users/smcho/...

 
1:47 AM
I assume that the compiler is already using gmcs - but if not, how can I switch it?
 
Are you using MonoDevelop?
 
Yeah.
 
Actually, go to Project->Edit References->Then add the .dll
Do you use unity?
 
Adding the DLL doesn't help.
 
Hmmm....
 
1:54 AM
And no, this is straight MonoMac.
 
Whoa
 
Admittedly, I haven't tried referencing SQLite directly. But I've had the same error from two different ORMs.
Er, let me rephrase. I haven't tried coding against SQLite directly.
 
?
 
new SQLiteConnection()...
Or whatever.
 
Can't say I am an expert (or amateur) in monodevelop
 
2:00 AM
Ok, I replaced everything with SQLiteConnection conn = new SQLiteConnection("/Users/bobson/YAPFRdb.db3");. That failed too, but it gave me more error logging than everything else so far.
Does this mean anything to you? It's from the mono debug log:
Mono: DllImport attempting to load: 'System.Data.SQLite.dll'.
Mono: DllImport loading library: '/Users/bobson/Projects/YAPFR/SQLTest/bin/Debug/libSystem.Data.SQLite.dll'.
Mono: DllImport error loading library 'dlopen(/Users/bobson/Projects/YAPFR/SQLTest/bin/Debug/libSystem.Data.SQLite.dll, 9): image not found'.
I don't know where the "lib" in there is coming from...
 
 
3 hours later…
4:48 AM
Hey guys am i able to ask a question here?
private void UpdateForm()
{

this.Update(this.custName, this.custBal, this.custSub, this.custYear);

customers[id].Name = custName.Text.ToString();
customers[id].Suburb = custSuburb.Text.ToString();
customers[id].Balance = double.Parse(custBal.Text);
customers[id].Year_used = double.Parse(custYear.Text);
}
my update function is currently not working when i try to change the name, suburb or balance
any ideas?
 
 
2 hours later…
6:34 AM
good morning!
@LewsTherin morning!
 
Hello Rob :)
 
Agh, off to college lol.
Talk soon!
 
yea, have a good one!
 
You too :P
 
6:42 AM
thnx
 
Hi @RobAngelier and @LewsTherin
 
@MRS1367 morning!
 
7:34 AM
morning all
 
Hi @E.LDunn
 
hey, hows you today?
 
I'm Fine and funny...
 
not many people on this mornign
 
Yeah....
 
7:43 AM
Hi there, it's 03:43 PM China time
 
wish it was here, id be getting ready to go home :D
 
wow you guys get off so early, I wish I can leave at 6pm
 
yea i dont take a lunch break so i cut off an hour at the end of the day, but 9 times out of 10 i get home and end up working till midnight anyways.
 
ha, that's normal
 
Jez
aaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGH
 
7:50 AM
seems all IT guys over time working around the world
 
meow
 
Jez
windows RESTARTED MY F*CKUNG MACHINE when my VISUAL STUDIO WAS OPEN
microsoft you BASTARDSSSSSSS
 
restarded for an update?
 
Jez
you disable auto-restarts for updates, they dont respect your settings
"do i want to recover my work", oh yes, that might be nice
 
lol
 
7:53 AM
you know my company using domain policy to force windows update installed every day 1am, and you can't change that settings, so if you work late you will be bothered or later next day you found your machine automatically restarted
 
Jez
domain policy
evil invention
i dont get to control the PC i use all the time
suckage
 
and our vpn require us do a anti-virus software full scan on your PC every 15 days, FULL SCAN guys!, it take hours, every 15 days!
 
Jez
sigh
i hope i havent lost much work
ive disabled auto-restart in gpedit.msc now. maybe it will prevent it.
 
8:10 AM
anybody drink tea here?
 
Jez
yep
anybody else here have annoying coworkers who think it's a good idea to subject the whole office to their damn music?
apparently headphones passed them by
 
wow, I'd kill him
 
no, i'm also listening to music but not supplying the whole office
 
my boss does that
 
Jez
it's painfully common in the UK
 
8:12 AM
Hi, I was wondering what would be the best way to put this:
.headercontent em {
font-weight:bold;
}
.breadcrumb td {
padding-left: 2px;
padding-right: 2px;
}
.breadcrumb a{
font-family: tahoma;
font-size: 8pt;
}

in a string variable, and keeping it readable. or is there no other way then putting it all on one line?
 
Jez
you aaaalways get somebody chirping in with "what this place really needs is some music"
 
haha lol
 
Jez
no, idiot, what it needs is peace and quiet so i can concentrate
 
you want keep css string in C# code?
 
yeah, its to build an email later on
 
8:13 AM
why not store it in resources, or a real template file
 
a template stored as an xml then?
 
someone feels like helping a bit? I have a textBox with a binding to a database object. When editing the textBox I want to mark for the user that the text has been changed (changing background or whatever). So I thought that textBox.TextChanged would be a great place....
 
Jez
Hey, everyone, i have a question: why do people say "skinny controllers" in MVC are a good idea? I mean, you can unit-test controllers, can't you?
say you want to get viewmodel information from a repository. is the model supposed to fetch itself?
 
Turns out it wasn't.. every time i change record in my db the text is "changed" and the user get's notified....
 
so when the guy say you need some music, what kind of music he play? Heavy Metal? ;)
 
Jez
8:16 AM
i dunno. i have my headphones on now so i dont hear it
headphones were invented by a Mormon. about the only good thing they came up with.
 
@Oxillery maybe, it's up to you, but I don't feel hard code it in the code looks good
 
@simo
 
ideas?
 
'morning
 
Jez
@SimonWang it's not as bad as my last place. they had big speakers in the room and always turned on the radio for the day
usually Radio 6 Music, where the DJs constantly congratulate themselves on how wonderful they and their station are
 
8:19 AM
Markus, is there a keydown you can use?
 
Jez
interspersed with bouts of atrocious noise
 
@Simon Wang : Ok, then i'll will have to find out how to work with the templates

It will be used in SharePoint, so I'll try to use the default template that already exists (alerttemplates.xml)
 
@Jez it's terrible
 
@E.LDunn I have looked at the KeyDown as well, the problem is that if someone paste a text that won't be seen... However the text will change, even in the database.
 
Jez
luckily it was just a 2 week contract
 
8:20 AM
@Markus you mean you want do some auditing?
 
@SimonWang don't really know what you mean with auditing... (english is not my main language), not auditing as you see in CIA movies...
:)
 
@Markus me too, I mainly speak Chinese
 
Is anyone familiar with this error:
Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.

In MVC.. I can't seem to find the problem.. Since my objects actually contain default constructors: http://pastebin.com/RxdKgxSx
 
well I wan't to show for the user that they have made a change in that textBox
 
@Markus so before they exit they know they have pending changes?
 
8:24 AM
spot on
 
@Markus I'd go ahead use something like onblur in JS
 
@Mittchel does it tell you what object it means?
@SimonWang onBlur.. does that exist in c#
 
mm but I need to know if the user have actually changed the text in any way.
btw I use wpf
 
then somehow you need store the previous value somewhere and compare with it
 
8:36 AM
hi,can any tell me how to write update query for update more than one row at a time
 
you mean T-SQL? or LINQ?
 
Linq
 
for T-SQL use UPDATE FROM, for LINQ, I don't know, ;)
ha, sorry
I didn't use LINQ much
 
markus. if its wpf it should be easy to bind to a property ( for your string value) that uses onpropertychange in there when the value changes you can validate and return a true or false depending on if its a real change. if its true then fire an event that the textbox listens too to change its background.
 
ok thank u
 
@E.LDunn Hmm I don't quite follow... The property itself is not changed...
 
Good morning all
 
one sec markus ill just write sometihng out
 
Starting my day with a "'Sys' is undefined" js error in an old ASP.Net website. Going to be a long day. =(
To make it all the more interesting, the website is littered with Telerik. Argh!
 
@Smudge202 is Telerik a bad thing? (I never used it)
 
8:55 AM
I'm sure some people find it useful, I personally detest and hate it.
I would say 60% of the issues I've had from this website were caused in some way by Telerik, and the other 40% caused by the previous developer not understanding how to use Telerik (which I wouldn't blame him for to be honest).
 
public class MyTextBoxModel : INotifyPropertyChanged, INotifyPropertyChanging
{
        public virtual string value
        {
            get { return _value; }
            set
            {
                if (value != _value)
                {
                    OnPropertyChanging("value");
                    _value = value;

                    // Validate before here before firing PropertyChanged
                    background = Colors.Red;

                    OnPropertyChanged("value");
then bind the text of your textbox to the value and the background color to the background property
 
@E.LDunn I didn't see what that code snippet is reference to, but doesn't it contain side-effects within a property? (Pet peave)
Or did you name the proeprty incorrectly (Should read "background" instead of "value"?)
 
But it has ninjas! telerik.com
 
Want Ninjas? Use Ninject, not Telerik =)
 
using ninjas is so idiotic too promote development-stuff
ppl thinking they have ninja like coding skillz
 
9:01 AM
@David Why? You prefer they all use topless models?
Because as fun as that might be at first, I'm sure it'd soon get tedious
 
Yes I want something other childish thing
 
The ninja promotes agility, invisibility and mystery. Something we all can relate to as a developer
 
because I'm only 10 years old
@LeClerq lols
 
especially the agility part
 
Well Telerik fits the Ninja image if you include "stabs you in the back"...
 
9:04 AM
Well there you go. Perfect marketing strategy, if you ask me
 
which reminds me -> ndcoslo.oktaset.com/t-4863
"Developers: The Prima Donnas of the 21st Century"
 
Ok my colleagues just wondered why I started rolling on the floor laughing
I like how the introduction talks about Mike Zuckerberg. Is that the guy behind MySpace?
 
@Smudge202 yea i really shouldnt try and help people when im doing other things hopefully though it will give @Markus something to think about and he will be able to adapt it too sort his issue.
 
"Level: Why Experts of Course"
 
9:16 AM
just a quick vote who in here is developing a) web app b) desktop app c) mobile app.... just wanna see what the spread is like
 
b
 
i am b also
 
Anyone familar with the MVP pattern? Specifically im creating the instance of all my classes in program.cs. Now ive been told this is extremely stupid
 
well smallest vote in history but im glad to see that desktop apps are still alive and kicking was expecting more a`s
 
9:22 AM
if you need to handle a lot of data then a web app is not always a good idea
 
@David I completely and utterly dispute that last statement =P
 
I'm display a grid with 6665 rows and 485 columns right now in my desktop app
 
isn't this a very bright afternoon....
:d
hie all...:)
 
"the pomodoro technique: taking your self discipline away and putting it in the hands of a tomato"
 
Arguably far more data than the user needs, regardless of what they think. You think a web app couldn't display 6665 rows and 485 columns?
 
9:28 AM
I like this video, @DavidDV
 
Its just a rant video :p
 
That's why I like it!
 
"Is It Just Me Or Is Everything $#!t?" :P
 
@DavidDV good video! Prima donnas
 
How everyone looks at the benefits and no-one at the price
 
9:32 AM
Scrumodora
:)
scrumodoro offcourse
 
SAMY!!!
 
can any tell me how to write update query for update more than one row at a time
in linq
 
yeah
Dunn
 
hows it goin dude?
 
you know wht.....i solved my memory leak problem to a fair deal :D
submitted the new version just this morning
:)
so yeah, m walking on sunshine today :P :D
 
9:45 AM
sweeeet, where did you find the issue in the end?
 
there was fragmentation in my large object heap
too many large string objects
 
great now im gonna have that walking on sunshine song in my head all day lol
 
lawl :D
how bout u,
how'r u guys doin today
 
Still fighting a "'sys' is undefined" issue in and around Telerik in a 5 year old ASP.Net website. The weather right now quite correctly reflects my mood... and it certainly isn't sunny.
 
cant complain i guess , could be better though it could be friday .. damn you thursday getting in the way of my weekend
 
9:48 AM
@E.LDunn But we are quite close to the weekend, thanks for reminding me. That genuinely perked me up a little. =)
 
we had a b'day celebration today
:D
had cake :P
nd Pizza
hehehe...:)
 
damn it :(. i want cake and pizza
 
meh, I'd prey for a memory leak over this Telerik stuff...
let alone pizza and cake
 
keep calm nd check your code :)
 
Not my code - inherited. =(
My code has never and will never involve Telerik. ;)
Or EntitySpaces
Or Csla
 
9:51 AM
whooops...now that is trouble...:/
 
All of which are present in this thing. =/
 
@SamyS.Rathore Congrats!
 
hey rob, thanxx a lot man
 
your welcome!
:)
 
i owe u, u helped me a lot throughout the debugging
:)
 
9:53 AM
@E.LDunn Hmm I'll have to have a look at this. Thanks
 
@SamyS.Rathore that's why we all are here right? You owe me your help in the future, that's all ;-) :P
 
offcourse i will :)
 
i'm off for lunch
see ya 1 hour or so
 
10:09 AM
Morning / Afternoon :)
 
anyone know if vs will automatically generate a class diagram from a solution?
 
So I took the plunge and ordered an unknown korean company monitor and its getting here on monday! - woo .. exciting times.. will it work? will it blow up in hours? how good will it! so many questions! sips coke to calm down
@HansRudel I remember seeing that in past, not sure if it was VS on its own or through some addin
 
@Maverik ok cool. Just wondering if someone knew off the top of their heads?
 
Well VS Ultimate is the only capable version I think and I unfortunately don't have that flavour otherwise I could confirm the theory
But I believe since Ultimate supports architecture, It should be able to generate class diagrams
 
Yes it can, from project or class (it shows in the context menu if I remember correctly). Can connect to my home PC if you need details.
 
10:14 AM
@Smudge202 cool, let me give it a shot first.
 
probably wrong place to ask but anybody has experience with Haskell ?
 
is it possible to know if the results of an aggreagte func in sql query is even or odd
i want to do that in a nested query
 
refrains from giving a less than useful answer
but on a helpful note, you could use CASE with division ?
 
@Samy Can you not do a modulus 2 on it? (mtResult % 2)?
 
yeh, sorry my bad,
i asked the wrong que.
thanxx smudge
 
10:22 AM
@Smudge202 were u talking about this? msdn.microsoft.com/en-us/library/dd409453.aspx
i cant find a context menu
 
@HansRudel Yup. Think so (based on a 1 second scan of the pictures)
 
@Smudge202 ok np. It doesnt seem to show the program.cs. Ive been told ive fu-ked up how i instantiate my classes when trying to follow the mvp pattern in winforms
 
@HansRudel How are you instantiating your classes?
 
i create them all in my progam.cs
 
what i want to do is select odds from the result of an aggregate query
 
10:27 AM
Ok, that's less than ideal. Is it a particularly big project though?
 
i want to aggrgate the no of records with a count() func groub by visitor id
 
Samy, use the modulus trick over ROW_NUMBER()?
 
but i get an error from resharper saying that one of my variables is not used anywhere and is redundant.

No its not big, <5k loc but id like to not get into any bad habits
 
Oh, ignore my last Samy, not understanding you yet =)
"Needless Complexity" falls under bad habits too @Hans. =)
 
@Smudge202 yeah thats very true. i personally like the FFP (Fit For Purpose) approach but...
 
10:29 AM
Oh yeh, I see why people might complain
I would get a dependency hierarchy sorted between those classes
Even if you don't end up keeping it, put in a DI container just to force you to think about responsibilities and dependencies?
 
i have no idea what that is though
 
Ah, I see
I'll see if I can explain it nicely on your post.
 
@Smudge202 thanks bro
 
justt a sec, m processing
@Smudge202 this is my aggrgate query,
select count(int_log_id) from Log_records where int_visitor_type=1 group by int_type_visitor_id
i want to pick the odd results of this query
can u help pls,
 
Loading up SSMS. ;) Also, am writing out what I hope be too-long-winded of an answer to Hans' question.
 
10:39 AM
any clue would be helpful
 
@Samy The odd results? You mean where int_type_visitor_id is an odd number?
 
@Smudge202 looking forward to it! I need to get into DI too! But i haven't been forced into it yet :)
no i think he wants odd counts
 
Oh, I see
Ok, easy enough
not tested of course, but just do:
 
yeah??
 
@samy... patience
 
10:41 AM
(Typing it into SSMS to ensure it's vaguely runnable instead of just typing it into here ^^
 
lol shh..
 
while hes typing, can't you just throw a HAVING clause in there?
imma launch my trusty linqpad!
 
sorry, but why?? can u explain pls
 
Yup, having would work I think
Though... not sure
Because it's relying on the results of the query within the query
So I'm going CTE to ensure it works =P
 
10:43 AM
i'll too give it a try
 
WITH logCounts (LogCount)
AS
(
SELECT COUNT(int_log_id)
FROM Log_records
WHERE int_visitor_type = 1
GROUP BY int_type_visitor
)
SELECT LogCount
FROM logCounts
WHERE LogCount % 2 = 0
Think that'd do it
If SqlServer is smart enough to evaluate the result of the query within the query, then Mav's suggestion would work too
i.e.
SELECT COUNT(int_log_id)
FROM Log_records
WHERE int_visitor_type = 1
GROUP BY int_type_visitor
HAVING COUNT(int_log_id) % 2 = 0
 
i'll try both,
thanxx a ton
 
Don't thank me until you've tried it =D
 
thanxx for ur time,
 
Ah, fair one. Most welcome. ;)
 
10:46 AM
i'll thank you again when it works
:P
 
Infact, Mav's one makes total sense, should be much cleaner his way
 
well aparently linqpad disagrees. it generated this:

-- Region Parameters
DECLARE @p0 Int SET @p0 = 2
DECLARE @p1 Int SET @p1 = 1
-- EndRegion
SELECT [t1].[Organisation] AS [Key], [t1].[value] AS [Count]
FROM (
    SELECT COUNT(*) AS [value], [t0].[Organisation]
    FROM [tblOrganisations] AS [t0]
    GROUP BY [t0].[Organisation]
    ) AS [t1]
WHERE ([t1].[value] % @p0) = @p1
GO
guess thats what he had in mind. I'm gonna attempt handcrafting
 
Yeh, it nested the select, so the CTE version is probably a good enough apparoach
Shame =(
 
Select Organisation From tblOrganisations Group By Organisation Having COUNT(Organisation) % 2 = 1;
thats hand crafted
and works
 
Maybe linqPad just doesn't like HAVINGs?
It looked like it made sense
 
10:51 AM
or isn't smart enough ? its not supposed to be sql optimised :)
its also possible that its my fault. I probably didn't write it correctly to get correct sql translation
 
Fair one. @Samy Given the choice of CTE, Nested, or HAVING, I'd go HAVING
 
opportunity to learn!
 
=)
 
TblOrganisations.Select(o => o.Organisation).GroupBy (o => o).Select (o => new {Org = o, Count = o.Count()}).Where (org => org.Count %2 ==1 ).Dump();
thats what I wrote .. pretty sure its that L2O conversion that messed it up
so my fault!
 
It's because of the .Where I'm guessing, it assumes you want it in the actual where criteria?
section*
 
10:55 AM
yea, but I can't figure how to force a having
TblOrganisations.GroupBy(o => o.Organisation).Where(oo => oo.Count() % 2 == 0) <-- even this isn't working
 
Well you did the right thing, Where after a Group By should be considered as a Having
Maybe LinqPad just doesn't use them
It's method of nesting is totally viable
And means they don't have to teach the converter/optimiser about Having
 
possibly. but i'm gonna google to see if theres a particular way to force linq to use having
yup that is my gut feeling but just to be sure
 
@SamyS.Rathore sql-ex.ru/learn_exercises.php?LN=1 although u have to sign up, its pretty cool. i havent used it in over a few months though, so im very rusty
 
i thought about "IN" operator the same way and then learned you have to do it a bit differently to get linq to generate IN operator
 
Yes, you can of invert it when doing it in linq
the "IN (1, 2, 3)" becomes {1, 2, 3}.Contains(x)
 
10:57 AM
yea now its seems totally logical, that I'm used to it but when I was starting out my brain didn't consider it logical
i was looking at glass half empty :)
 
Yeh, same. I wonder if it's the same for people going from experience with Linq to start with SQL?
 
I'm referring to msdn.microsoft.com/en-us/library/a19191fh.aspx to defining events for custom controls, however these events are not appearing in the events list for the custom control in the designer.
 
thanxx for the link hans, working with the having for now :P
 
Section Applying Attributes. What is still missing?
 
got to insert some rows to check
 
10:59 AM
@GentiSaliu Have you posted a question so we can see what you've tried / have already?
 
Smudge20: No
@Smudge202: I can post the code I have though (Gist)
 

« first day (726 days earlier)      last day (4215 days later) »