« first day (1081 days earlier)      last day (3882 days later) » 

12:00 AM
@Reed - Okay.
 
Is there any way to really customize a button? Hm...
Never looked into it.
 
what platform?
 
C# xD Visual C#
 
in WPF its trivial
in Windows Forms its a pain
 
Hm, how would I go about it?
 
12:01 AM
what type of customization?
 
@Reed - I versioned my linqpad copy of this lol. I think if I make too many more edits it will become a public wiki :P
Anyway, my time is up. I will be back tomorrow
 
lol
time for me to get going, too
 
Like, adding special effects to text. Or adding image to the button. Or changing the layout of the button, making the hover different or making the button like a "flat" button.
 
@MatthewH If you're using WPF, controls are lookless, so you can stick anything you want into the button, and change it's template in XAML all you need to or want to, and it just works. For example, see: jadeskaggs.com/2009/05/04/…
yeah - in WPF that's all trivial ;)
see that link for one example
anyways - gotta run
 
@ReedCopsey See ya Reed!
 
 
3 hours later…
2:46 AM
 
Pretty impressive numbers
 
 
2 hours later…
4:33 AM
we are rightnow migrating one project from vb to .net,right now little confused of getobjectcontext method msdn library is confusing could u say me the main usage of it
 
 
1 hour later…
5:44 AM
can someone please tell me how can i run this javascript from code behind using ScriptManager ... window.opener.FillTextFromPopup('yourTextString'); window.close();
 
5:55 AM
Anyone here ?
 
6:18 AM
Hey, anyone around?
I have a quick question.
 
need some help with a string process
 
What's up codebrain? Maybe I can help.
 
yep, I have a string of email test@test.com, I want it t**t@test.com
i just didnt want to split and mess it. any easy regex would help
 
Unfortunately I have no idea how regexes in C# work - I've never needed them. Sorry :/
 
oops, thats okay. Post your question too.
 
6:30 AM
If you're doing a purely text-parsing problem though, I'd suggest Perl, it's much more flexible/powerful.
My question is, if I am moving a picturebox when the user clicks on it, and moves the mouse around, the usual way it moves is the upper-left corner of the picturebox is dragged with the mouse; how do I make the picturebox move at the point you clicked on it though?
Like if I clicked it near the center, how could I drag it from near the center, where I clicked, rather than have it jump the corner to my mouse and be dragged by the corner?
 
its a very strange question, why do you want to do that ?
 
Because it's more graphically pleasing to the average person.
 
yeah, you can do it with jquery i think..
 
... Jquery is a JavaScript database connector....
 
what you asked cant be done with picture box with my knowledge
 
6:36 AM
Lol ok
 
codebrain, did you look at this?
http://stackoverflow.com/questions/11708565/regexp-to-partly-hide-email
@codebrain '/(?<=.).(?=.*@)/u'
Well, I have a very basic question.. Anyone here?
 
@Codefun64 :P :(
@VenkatRenukaPrasad Thats a good link, thanks
 
@codebrain you're welcome.. google 'regex to partly obfuscate email address'
you'd get better solutions..
My question is: We do have an official disposal pattern, right.. in the Dispose() method, I understand we will have to clean up unmanaged resources.. but why do we have to clean up managed objects?
Also, how would we clean up Managed Objects in Dispose()? Just by setting the references of the objects to null?
...and then leave the rest to the GC?
Anyone? :(
 
7:05 AM
@VenkatRenukaPrasad Hey I am sorry.
using(object) {process} will dispose the object after the scope of execution. object.dispose() finally would work too.
 
I am aware of the the "using" keyword for Disposable objects.. but the standard Disposal Pattern asks developer to clean up "managed" resources in the Dispose() method, along with the unmanaged ones. My question is: Why should we clean up managed resources at all? And how do we clean em up?
 
huh, Idk .. your question is expert level. you should wait somemore time.
:P
 
okie codebrain.. thank you, will wait an see :-(
 
yep may be an hour, it will be.
 
7:32 AM
another word for instance?
initialize?
instance = create.
initialize = give value.
?
 
instantiation and initialization are two different things
yeah..
you can say, "object"
 
cool, thanks
 
@VenkatRenukaPrasad As far as I am aware, that mainly applies on other instantiated objects implementing the IDisposable interface. I just bother to clean up unmanaged resources and whatever is disposable as well.
 
hi, should IoC Services have always default constructor, even if only property injection used?
 
0
Q: Invalid usage of aggregate function Sum() and Type: String while computing the SUM with DATATABLE in C#

ramanI am getting the below error while computing the SUM with DataTable. Invalid usage of aggregate function Sum() and Type: String. I am using the below code: lblQuestionnaireTotalTime.Text = CalculateMinutes( Convert.ToInt32( ( (DataSet)Session["D...

please help me
 
7:45 AM
Thanks Roel, I think it clarifies..
So, even if the managed object references are set to null in the Dispose() method, they will be cleaned up from the heap when the GC kicks in later?
 
@VenkatRenukaPrasad Yes, clearing references to managed memory does not ensure that the memory is released immediately. Instead, the garbage collector will deal with it when it goes around doing what needs doing.
Forcing release is possible at a performance penalty by manually giving the GC an instruction to clean.
(This is frowned upon so you'd better not do it unless strictly necessary)
 
Gotcha! Thank you @RoelvanUden..
 
8:13 AM
Hi @RoelvanUden ..
one doubt
hi all good noon
anyone is familiar with SQL?
 
yeah
 
Hey guys have a question plz help me....can we load 3 dlls at a time....I will access it using an interface....
 
shall i ask one Question
 
k
 
@Sumukha Sure why not ... ?
 
8:19 AM
can u tel me hw to do it....I mean we can only load a single dll at a time right????...if wrong plz let me know how...new to c#
 
0
Q: Invalid usage of aggregate function Sum() and Type: String while computing the SUM with DATATABLE in C#

ramanI am getting the below error while computing the SUM with DataTable. Invalid usage of aggregate function Sum() and Type: String. I am using the below code: lblQuestionnaireTotalTime.Text = CalculateMinutes( Convert.ToInt32( ( (DataSet)Session["D...

 
@Sumukha loading in the sense, you mean referencing a dll ?
 
please help me
 
using assembly.loadfrom we can load only 1 dll only right?...so what I want is i want to load 3 dlls at a single load function....?
 
in using statement you can include the dll classes in your application, if added to your reference folder in your solution explorer
i don't think that's a problem at all
or have i mis understood your question !
 
8:32 AM
not that....I want to dynamically load it....I have to create an app manager which loads 3 apps(as simply as hello world) n executes them for 1 minute each.....so at the beginning only I want to load all the 3 dlls....
 
@Sumukha You know how to load an assembly, so do that 3 times? :)
 
@Roel U mean that I should put it in a loop....?
 
... Sure if that's what you after? Just load everything you need, what is the problem here?
 
cant we load all the dlls present in a folder at a time without bothering about how many dlls are present in the folder.....assuming that i have all the dlls placed in that folder
 
Sure you can. Just use some reflection (example: github.com/Deathspike/mangarack/blob/mangarack_10/MangaRack/…, look in the constructor) or MEF (msdn.microsoft.com/en-us/library/dd460648.aspx)
I prefer reflection for simple stuff, while MEF is much better to do complex stuff.
 
8:42 AM
@RoelvanUden how painful is MEF?
does it easily load stuff in a separate app domain?
 
@drch It really isn't painful at all. It can easily do whatever you want it to do. It will run code in whatever domain you wish, load whatever you wish, how you want it, it can be used in many ways.
But the down side is the fact that you need attributes to load collections into fields. Basically, a 'populate this class' and then it looks at the fields and attributes and does the magic.
 
@Roel you mean i have to use Directory.GetFiles(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Locatio‌​n))......
 
@Sumukha Yeah, did you even read the comments? I comment like a complete and total madman so it should be pretty self explanatory :)
 
haha
@Sumukha out of curiosity, why are you loading these .dlls at runtime?
 
yup the comments are very helpful....Thanks a lot....
 
8:46 AM
Directory.GetFiles(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Locatio‌​‌​n),"*.dll")
 
anyone know idea about portable area in mvc
 
would be more appropriate
 
@Sumukha, @Leyu makes a good point. Use that ;)
 
anyone know about portable area?
 
@drch Its a task given at my work place to load the dlls dynamically and do it....with reference it would be easy but have no idea about dynamic so scratching my head
@leyu thanks will try it out
 
8:53 AM
@RomilGandhi Context? I can't say if anyone else understands what the hell you want to know, but I sure don't have a clue.
 
morning biznatches
 
@Sumukha if you are using Windows From application Application.StartupPath is good enough for the main path
 
@Roel Van becoz u dont have idea about it
 
@RomilGandhi I've just googled and I now know what it is. That's probably as good as you're going to get here
 
@Leyu I am using wpf application......can u please elaborate upon how to use Application.StartupPath
 
9:09 AM
When and why do we need weak references? any one.. ?
 
9:24 AM
@VenkatRenukaPrasad This sums it up nicely msdn.microsoft.com/en-us/library/ms404247.aspx
 
9:52 AM
1
Q: Prepared MySQL statement from the ASP.NET Web Service

Gelo VolroI have a problem with prepared statement: MySqlCommand cmd = new MySqlCommand("SELECT * FROM `osm`.`buildings` LIMIT 0, ?value", connection); cmd.Parameters.Add(new MySqlParameter("?value", MySqlDbType.Int32, Convert.ToInt32(requestedCount))); cmd.Prepare(); When I'm using it, the web service ...

 
10:18 AM
0
Q: How to use DATETime Column in dynamic query in sql server?

ramanI have a Stored Proc which is using for Search Applicants is written as below: /* AUTHOR : CREATION DATE : NOTES : PURPOSE : MODIFIED BY : MODIFICATION DATE : */ ALTER PROCEDURE USP_GET_ApplicantByFilter ( @ApplicantName VARCHAR(100)='Ram', @AgeFrom INT=0...

please help
 
10:44 AM
can anyone help me around on this issues?
0
Q: Role Provider error in web.config

Sam MMy application is in Asp.Net MVC3, my application was running perfectly but all of a sudden i'm getting an error in my Web.Config in my role manager tag. Below is my RoleManager tag of web.config <roleManager defaultProvider="MASSIARoleProvider" enabled="true" cacheRolesInCookie="true"> <...

 
anyone here knows a good code-editor for javascript? thanks
 
11:01 AM
notepad++ u can use @Elegiac
While running ur application u need to run it on mozilla firefox.. Note that u need to install firebug on Firefox..
 
@All can anyone help me around on my roleprovider issue
 
sublime text , its great :)
 
no i need the one with autocomplete @JasperManickaraj
and tooltips
 
Did u try jsfiddle .. but it doesn't support autocomplete..
 
11:20 AM
i badly need with autocomplete coz ill use it as basis for my control
as well as ill get datas from there
i found 1 but it load 1datas only for objects
 
Ody
You can try Webstorm. Its not free but in my experience worth every penny.
 
11:46 AM
@Ody thanks great control right there ... however doyou know where its object browser located?
 
12:14 PM
having a go with AppHarbor
and WebAPI
git blows for telling you what the problem is
although I have a pretty convincing hello-world MVC project appearing at my apphb url now :D
 
12:30 PM
whats wrong with git
 
@tom yeah apphb is great to get something up quick
 
... or should I not start that
 
git blows for telling you what the problem is
 
@dirt it's not TFS
 
I read that, don't know what that means, never had any problems resolving conflicts
not sure TFS is any better
 
12:32 PM
TFS has fewer buzzwords
 
thus, it's better
 
the first push I tried to do it told me src refspec master does not match any
 
ah you got me there
 
WHAT
that's not even a sentence
 
12:33 PM
429
A: src refspec master does not match any when pushing commits in git

baisongMaybe you just need to commit. I ran into this when I did: $~ mkdir repo && cd repo $~ git remote add origin /path/to/origin.git $~ git add . Oops! Never committed! $~ git push -u origin master error: src refspec master does not match any. All I had to do was: $~ git commit -m 'initial com...

 
saw that
have committed
 
@TomW I found it funny when a person on github told me to rebase my branch so my pull-request could be processed
 
its not rocket science but if cmd line is too much for you just use a gui like SourceTree
 
I was like 'you want me to requack my what?!'
 
@dirt I'm fine with the command line. Subversion emits messages that make sense.
Most of the time.
 
12:35 PM
git has been the easiest and most reliable for me of the ones I have tried
 
the easiest would be SVN
IMHO
also the one I had the least troubles with
 
each of those I found hideous compared to git
 
but I never had to manage a project on that
well, git may be nice. But it's full of buzzwords
I don't like that
 
I dont know what kind of argument that is
 
It's like most OSS. The intention is to actively discourage newbies by overwhelming them with jargon, so that they don't pollute your community
 
12:37 PM
you learn git with 5 commands wtf are you talking about
 
@TomW that didn't went well with Ubuntu now, did it?!
 
git clone
git pull
git add
git commit
git push
real thick buzz words there
 
you forgot fetch
 
I dont use fetch
that just auto merges
 
how do you get changes from upstream?
 
12:38 PM
@dirt and each one stands a good chance of responding with a message that you can interpret as 'no' but gives you no comprehensible reason why
 
@TomW sounds like there's no master branch in your remote repo
git push origin +master (force push)
 
and again use SourceTree and you click 3 buttons
 
I also don't understand why you've commit and push. Or why you can't lock files (like you do in SVN/TFS)
 
git can get a lot more complicated if you want it to be
 
that just cries for problems
 
12:40 PM
@SteffenWinkler commit is local, push is remote
thats the whole point of a distributed vcs
 
because I can commit 5 times before I push, and if I make a mistake I can roll back to commit #3 w/o affecting remote at all
its like a save button
 
@dirt you can also squash multiple commits into one
 
right
and branch off or rebase
 
rebase makes for a cleaner history than merge
 
like I said it can be as simple as 3 buttons in SourceTree or as complicated as any other vcs
 
12:41 PM
just have to make sure you don't rebase public/shared branches
cause all hell breaks loose
 
anyway
 
@drch I got that to go away. Why the appharbor FAQ tells you to commit an empty dir - which apparently doesn't actually do anything - is beyond me. But that seems not to work
 
sup yall
 
@TomW yeah looks like theyre assuming you already have a project that you are trying to commit
definitely not clear
 
I've a problem that I'm not sure how to solve: I'm writing a program that has a module that has quite a lot of options that can be configured. Since the module is instance based (meaning, the module has multiple configurations and each configuration causes a instance to spawn), I'll use a Table-like layout for configuring it (each row is one instance)
now the problem is the sheer amount of options
I don't know how to make them available to the user
 
12:46 PM
how many are we talking?
 
~ 30
and at least 6 to 8 of them have to be configured
 
while the others are more of special case options
you mean I should change row/column assignment?
 
perhaps. i thought you were having problems with how to visually represent this
 
yeah
I' m just
astonished about the fact that I didn't think of that myself
thanks :)
 
12:50 PM
yeah, ive encountered that in the past. just googled 'permissions matrix'
now your google fu has improved and youll never have to remember again!
 
well, I didn't even google
I just thought about how to solve it
colleague had the idea of creating a wizard that opens when you hit a specific column
I thought about using AutoComplete and put most options in a textbox as free-entry. So with a space+ctrl press you get a list of all available options and can set them
the only thing that hold me back was that I thought it would cost too much time
aaaaand I was right.
;)
 
rassum frassum. VS express y u no support workflow
 
1:19 PM
Goooood morning!
 
@JLott goooood evening
well, afternoon
 
Close enough
 
hola jlo
 
Howdy
 
word homes
 
1:30 PM
Hi @JLott gud evening
 
@drch do you know how to do that in/with a DataGridView? The main problem I seem to have currently is that there is no RowHeader and no AllowUserToAddColumns flag...
 
How is everyone this Tuesday?
 
@SteffenWinkler dunno mate. haven't done webforms in some time
 
* winforms
 
even longer
 
1:34 PM
;)
 
Woop, workflow is a go
Obviously the go-to demo topic for any code topic is pizza, so I'm implementing a pizza shop in WF and ripping off rlemon's lorem pizza content
 
it will never be as good.
also if you want the content just ask I'll send you a zip package
 
Different target market
and no thanks, that'd make the exercise too easy
 
was github always $25/mo?
feels like it has gone up
 
In all seriousness, I may deep link an image or two if that's ok, but I was kidding with the rip-off comment
 
1:40 PM
What exercise? Using the birthday problem to make repeated requests to lorem pizza to determine the complete set of pictures?
 
@TomW go for it, but in all seriousness. that is kinda what the service is for.
:P
lorempizza.com/images all of the images belong to you now
let me know when you're done so I can lock out the dir again
 
@KendallFrey I'm just tinkering with workflow services atm, and trying to think of a meaningful topic to model. A pizza kitchen is as good a topic as any, as an activity which involves discrete steps and takes a human-significant amount of time
 
is it very noticeable that I just stole them all from Google Images?
 
@rlemon Not at all
 
it's the ciiiircle of liiiife
 
1:43 PM
@rlemon My knees are getting weak
 
yea and I have them all in higher res too, had to scale them down for the web
 
some people like strange things
 
egg pizza = not uncommon
 
@KendallFrey hey when did you snuck in
 
1:46 PM
@SteffenWinkler almost 2 hours ago
 
whatttsssss uppp
 
oh
do you know how I could display a pivot table in WIndows Forms so that a user can add vertical rows to it? @KendallFrey
 

« first day (1081 days earlier)      last day (3882 days later) »