« first day (1529 days earlier)      last day (3426 days later) » 

12:05 AM
@CharlieBrown TFS is painful at best
 
Hi all. Anyone got an idea how to achieve the following?: I have a camera that prints images real time to a bitmap object. The camera is showing a pooltable, while two players are playing. I need to detect the balls that are currently on the table, so when the balls disappear from the field (they are in the pocket), I can create some logic. The problem lies in the shape recognition. Anyone did something similar or can advise me a library?
 
"I have a camera that prints images real time to a bitmap object" sweet
 
swap camera for kinect, much easier
 
Well, I created a c# forms app that uses the camera's data. Like you didn't know ;D
 
@ErwinOkken - What is the pixel dimension of the table? Does the table also include the side pockets and beyond? Is it exactly on the green portion only?
Is the table "official" sized?
 
12:08 AM
@TravisJ Not sure yet. Does that make a huge difference?
Yes it is. But I will never know how high the camera is being placed
 
A simple approach: store a picture of the empty table, and compare it with what you're getting from the camera. Everywhere it's different, there's a ball.
unless the camera isn't in a fixed spot
 
@KendallFrey - How to determine if a cluster is 4 balls or 2?
 
since the field/table is generally an even color, you can use edge detection on the image as well
 
@TravisJ size and shading
specular reflection esp
 
would be tough without a fixed camera position
 
12:11 AM
@KendallFrey - What about when a player is inbetween the ball and camera?
 
What I did: get the color of the table and use a small threshold (lights). Then get all pixels on the screen and determine where there are balls. Store all balls in a list, and if one ball left the "table", points are scored
 
@TravisJ "ahhhh noise! must be a player"
 
I think I'm looking for a unique approach that I didn't think of yet, or otherwise a pattern library that I don't know of :)
 
1
Q: Image recognition: Detecting billiard balls on Android

urishI am trying to create an android app which can recognize Billiard balls on a pool table in an image coming from the camera. What would be the best approach to do this? We can assume that the camera and the pool table are in fixed positions, but there could be object other than the balls on the p...

 
12:54 AM
eheheheheh
 
kekeke
 
 
2 hours later…
3:06 AM
Anybody want to talk about some code?
 
 
2 hours later…
5:14 AM
Anyone alive on here now?
 
5:27 AM
How to get textbox value in code behind. Textbox value is set in javascript and it is readonly.
 
 
3 hours later…
8:19 AM
Morning all
 
8:50 AM
Morning
Can I delete a folder regardless of whom it's being used by in C#
 
j0
 
9:08 AM
@CustomizedName: Think you'll get an IOException if you try to delete something that is in use by another process.
 
9:36 AM
hey @TomW
 
I almost gave up in c#
1
A: Allow me being new to app domain, how can i run a constructor using app domain

Dirk Trilsbeekyou can use an overloaded definition of AppDomain.CreateInstanceFromAndUnwrap() that accepts additional parameters, an array of objects to pass through to the constructor amongst them. Your code could then look like this: AppDomain domain = AppDomain.CreateDomain("New domain name"); string pathT...

 
yo
 
Ready for christmas?
:p
 
not quite
you?
 
meh, a bit
Last day of work before vacation though
 
9:43 AM
Aah, fair. I've been off since last Friday, and not back until jan
 
lucky you :)
Will be nice spending some time with the whole family, and just having a good time
That is until my mother-in-law makes some noise
hehe
 
Nothing changes
:)
Wherever you go in the world
 
Hehe, it's so funny reading the comments to newspaper articles
The best thing is that every newspaper use the fb comment system
And people just give a fuck about what they say, and how stupid they look
Then you can just view their fbprofile (because they don't know how to change the privacy settings) and just peek into their life
 
"Aha, so that person has this glaring personality flaw. That explains a lot..."
 
hehe
Those same people tend to post everything that happens in their life to facebook. Like: "I had an appontment with the doctor today, about the <insert random disease here>"
It's great that people speak their opinion
 
10:00 AM
...really?
 
but some lack filters
:p
 
Seriously, can we delete a folder regardless of permissions or if anyone on this earth using it, even bill gates...
 
What do you mean by 'using'?
Probably not, btw. For files at least, locks seem to be unbreakable
I'm not sure what locks a process can take on a folder
Although a comment here does seem to imply that it is possible to forcibly close a handle on a file or folder, and watch the program that acquired it burn if you like
This article acknowledges that it's possible, but only to tell you "No, seriously - don't"
 
hmmmm, maybe i need to find some other solution then
 
What are you trying to solve? Why do you need to delete a folder/file which is in use?
Is it in use by a 3rd party application, another process in your solution or something else?
 
10:11 AM
Basically, I am using Aspose to convert Word documents to PDFs
but sometimes any document leaks the memory and never returns
I tried aborting the thread but it didn't released the resources in memory then
I tried appdomain but it throws class not serialize-able
when I delete the files process downloads after stopping another service (Third Party which runs this code) I can delete the files
and everything gets back to normal
so I thought deleting files from the process might fix the issue, but it doesn't let me delete them
 
If you're paying for this component you should be able to do some serious yelling at them to fix the bug
 
Is the Aspose something you've paid for?
 
that's the ideal solution
 
yup, like 14,000 $
 
serious yelling.
for $14,000
 
10:14 AM
Then you'd be like "your stuff's not working, I would like my money back"
 
Already did, but my task is to fix the production server, manager woudl do that
 
that is a lot of money
If you fix that memory leak in your code, what about the next bug?
 
this is the main issue at this point
maybe i need something like this
3
Q: Unwrapping a non-serializable class from an appdomain

albertjanBecause not all the classes used in the class I want to instantiate are serializable I can't unwrap. Is this possible? var appdom = AppDomain.CreateDomain(amServiceable.GetType().ToString()); var objectHandle = appdom.CreateInstance(amServiceable.GetType().Assembly.FullName, ...

for this
0
Q: Allow me being new to app domain, how can i run a constructor using app domain

Customized NameI am trying to create a new app domain to convert document, but I am not getting familiar to the syntax of it, this is what I am trying to convert a document, Aspose.Words.Document doc = new Aspose.Words.Document(inputFileName); doc.Save(Path.ChangeExtension(inputFileName, ".pdf")); I want t...

but i am not sure what this means
In order to use the Unwrap method on an object it must derive from MarshalByRefObject. If the object you want to manipulate doesn't then the only other choice is to use a different MarshalByRefObject to manipulate the object in the other domain
 
Sorry mate, that's outside what I can answer off the top of my head
 
@CustomizedName i had the exact same problem, i solved it by changing my function to require a command object which contains all the parameters to run the function. The command object will then be serialized, instead of the Aspose.Word.Document object
So instead of passing the Aspose.Word.Document, create an object that contains all the required data to create an Aspose.Word.Document in the new AppDomain, instead of passing the Aspose.Word.Document between appdomains
also, creating appdomains is really slow, and not very thread safe, so you could create an object pool which reuses appdomains instead of creating new ones
i can check if i have the code somewhere
 
10:30 AM
@CustomizedName so really what you're trying to do is work around a bug in the Aspose component by being able to abort it and clean up all its resources if it fails, and...try again? Log an error?
 
That's a jar I would'nt put my hand into.
 
@CustomizedName this looks like a similar issue: aspose.com/community/forums/thread/449703/…
+ they do sort of imply that it might be down to the component failing to properly deal with other error conditions that really are errors, like missing files or inadequate folder permissions. So it's still a bug, but one that might be resolvable
 
@Rovak Thanks, I am going to look into command objects now, as I have no clue about them :(
@TomW I already did, but i still need to do something for production environment
 
not sure if they are really called command objects, it just replaced function(parameter1, parameter2) with object Command { parameter1 = value, parameters2 = value }
 
@CustomizedName: Something for production? Have you checked that files exist, paths are correct and they have the permission needed? as @TomW said.
 
10:41 AM
@CustomizedName I mean that the problem in your production environment might be solvable with some combination of folder permissions, available files and so on, because the memory leak is the component's (incorrect) response to errors like not being able to find resources. So you may not have to write any code, if you can find out exactly what causes it to do that
 
yup, it converts all other documents but few, so no perimssions or path issue
it's just aspose's internal issues
 
Are the documents that converts the same type/structure as the one failing?
identical
in other words, you can rule out that there are any fault within the failing document?
 
Nope, I can't tell company users to not upload certain documents
problems comes at document page level
 
bogus formatting, encoding etc
 
e.g. table too big
fonts etc
only possible way for me is to kill the process
 
10:47 AM
But if it does that all the time, is continuously logging an error for certain documents any better than rejecting them before trying, or just telling the users not to?
There is no least-worst scenario there but there is one that uses less effort
 
I made a component for an accounting system once, which used interop. The customer always complained that it failed and that we had done something wrong. We rewrote the entire thing, and as it turned out, it was the customers stored procedures that screwed up things in the database.
That was joyful
You cannot always fix other people mistakes
 
11:05 AM
going back to basics,
None of this answer works for me
4
Q: How can I add timeout to this code

Customized NameI am trying to add timeout to this code, but because I am new to this, I can't figure out, Task.Factory.StartNew(() => { Aspose.Words.Document doc = new Aspose.Words.Document(inputFileName); doc.Save(Path.ChangeExtension(inputFileName, ".pdf")); }); Also I want main thread to wait he...

 
user377628
Hey quick question for anyone here: how do I add windows runtime to a visual studio project?
 
user377628
Like I can't access the Windows.Devices namespace
 
user377628
I don't know which reference I need to add to be able to
 
user377628
Anyone have any idea?
 
e.g. Windows.Devices.Enumeration ?
 
user377628
11:10 AM
Yes
 
user377628
I'm trying to use Windows.Devices.Scanners, but I can't actually get to any of them
 
You're using Windows8 / server 2012?
 
user377628
Windows 8.1
 
hi any one sharepoint 2013 adding rss feed web parts
 
@Hassan: I would assume you just add it just like any other reference, but I'm using win7, so I can't try it out.
 
user377628
11:14 AM
Yeah that's what I though but I can't find it in the list of references
 
why does javascript dominate SO...
 
Hello Guys
 
user377628
Thanks anyway scheien
 
I am here looking some help in installing .net development environment
 
@Hassan: No problem. Found this sample from msdn
 
user377628
11:16 AM
For some reason those don't work for me
 
Any error?
 
user377628
I think they have a different visual studio
 
user377628
Like there's one for metro and one for desktop or something like that
 
user377628
The error is just that the version of visual studio is not compatible with this project
 
user377628
The visual studio I have is for desktop apps because that's what I need to develop
 
11:17 AM
 
Think you need VS2013
 
user377628
I do
 
user377628
But they have two versions
 
user377628
One for desktop and one for metro apps
 
user377628
I think I need to go get the metro version
 
user377628
11:18 AM
To run those samples
 
I've never heard that there are different versions other than the usual pro, ultimate, test etc
 
is anyone else's VS extremely slow while saving/opening projects?
 
or community edition
 
user377628
okay maybe i'm mistaken
 
AnyOne
 
user377628
11:21 AM
But there were two versions, one labeled "Windows", and one labeled "Windows Desktop", or something to that effect
 
user377628
Sorry, Saad, I have no idea
 
The express versions
 
user377628
Yeah
 
Then you would need to install a different one yes.
 
user377628
11:22 AM
I got "Express 2013 for Windows Desktop"
 
I thought you had the full package
:)
 
user377628
Ah
 
user377628
You think that's the problem?
 
user377628
I didn't know I needed the full version
 
The express versions are only a "subset" of the visual studio you buy
 
11:23 AM
Its ok Hassan
 
you could go for the community edition
 
someone else
 
user377628
Okay let me try that
 
user377628
Thanks!
 
user377628
11:25 AM
I appreciate it :)
 
@SaadChaudhry Chaudhry, skype day yaar
 
skype, is everything alright :P
 
haha, why you are so surprised :P
 
I thought you know me.
maybe some college university frnd :P
 
Lol no, just random
 
11:29 AM
aah k
 
skype says "aah k" not exists :O
 
got it
lol
@CustomizedName there
 
@SaadChaudhry yeah, I find it, i will add you at some point
 
@CustomizedName have you looked at the issue above
 
er, for the event handler KeyDown, how do i check if the pressed key is "A" or "E", etc.
 
11:43 AM
Is attribute routing the way to go in webapi2? If yes, then can I remove the default route and use only attribute routes?
 
e.KeyCode is apparently not a thing, according to IntelliSense
 
We are designing a project as follows;

We have a list of MasterProducts, and of which have a SupplierId, that we use to get the prices from more than 1 3rd Party supplier.

The problem I have is I can send a request to the supplier for X number of products, but the response comes back without our MasterProduct Id.

How best should I manage this mapping issue
I was considering to use a dictionary
 
11:54 AM
private void Form1_KeyDown(object sender, KeyEventArgs e){if(e.Key == Key.Right){...}}
is there something wrong with the if's condition?
it should execute when i press the right arrow, but it doesnt
 
Isn't it Keys.Right?
e.KeyCode == Keys.Right
 
um, this is for wpf btw
 
Ah
It's called Form1, so I assumed winforms :p
 
12:08 PM
@Meraj99 Well, what is e.Key when you press the right arrow?
 
it should be key.right?
can it be something else?
 
I asked what it is, not what it should be
 
well, a watch says it IS key.right
 
does it enter the if block?
 
Yes... does that mean something inside isn't doing what it's supposed to do?
 
12:15 PM
probably
 
12:47 PM
@KendallFrey there
 
1:02 PM
i'm currently having 2 differnt contexts, DBcontext & IdentityContext. will i be able to use these two different contexts for different operations ?
 
1:17 PM
Yes.
Why wouldn't you?
 
        public class ApplicationDbContext : DbContext
        { .. }

          public class IdentiDbContext : IdentityDbContext<User, CustomRole, int, CustomUserLogin, CustomUserRole, CustomUserClaim>
    { .. }
@scheien while i try scaffolding the dbset from applicationDbcontext i get this error " one or more validation error" = > entityType customUserLogin has no key defined, define key for this EntityType
But i have already declared the keys for the above in the IdenitityDBcontext
and these are in two different namespace with appropriate references
 
user377628
1:38 PM
Downloading the full version of visual studio didn't change anything unfortunately
 
user377628
I still can't figure out how to include windows runtime
 
user377628
Anyone have any idea how to include it in a c# project?
 
Cheaters never win. Unless, of course, they persistently circumvent your anti-cheating measures. Which they probably will. Because they are cheaters.
2
 
Hehe
 
@scheien anyideas ?
 
1:48 PM
Not really.
 
okay cool :)
 
Have you rebuilt the project after assigning entitykey, before trying to scaffold it?
 
yep
 
2:07 PM
What's the easiest way to test a restful api?
 
2:17 PM
Nothing like debugging by process of elimination
 
restconsole
extension in chrome rocks
 
i find it particularly interesting that you both answered at almost the same time, 10 minutes after the question was asked... dunno why
 
@Meraj99 answered?
 
well, replied?
 
Can't get that webapi to bind data to model
 
2:19 PM
not even
 
@Meraj99 lol yea
 
Must every property be present for it to bind correctly?
 
i dont believe so
 
Ok, Processes are in Threads
Then what is in a Thread..
 
I wish we used a db where "reindex" wasn't a thing
 
2:20 PM
I would assume there is nothing above processes
 
@CustomizedName what?
processes contain appdomains, which contain threads
 
Is it even possible to understand the hierarchy tree of Processes, Threads, and whatevers inside and around them :)
 
yes
it's simple
34 secs ago, by Kendall Frey
processes contain appdomains, which contain threads
 
this pictures says something else
i need to understand runtime as well now
 
the runtime is just what runs a .NET process
that picture is right
 
2:23 PM
the picture doesn't mention threads, or appdomains, so how do you know if it says something else? :)
 
appdomains also contain threads, it just doesn't show them
@Steve errr... you blind?
 
yes
apparently :p
 
it will take me forever to know everything in C'
 
yes, that's how programming works
you never learn everything
you just have to decide what to learn first
 
What actually is CLR
is it just a program developed in assembly language with its own library
 
2:29 PM
It's the program that runs your .NET code
 
The Common Language Runtime (CLR), the virtual-machine component of Microsoft's .NET framework, manages the execution of .NET programs. A process known as just-in-time compilation converts compiled code into machine instructions which the computer's CPU then executes. The CLR provides additional services including memory management, type safety, exception handling, garbage collection, security and thread management. All programs written for the .NET framework, regardless of programming language, are executed by the CLR. All versions of the .NET framework include CLR. CLR implements the Virtual...
 
Yes, but how :/
 
C# doesn't compile to machine code, so the CLR JIT-compiles it
 
getting jitting with it
 
The CLR includes things like the JIT compiler and the garbage collector.
 
2:34 PM
argh, webapi wont bind to model, but I can read the content from the request manually and JsonConvert.DeserializeObject<T>(content) without any problem. Crap :(
 
ok, so it's just a package of compilers
 
sort of
 
and compliers are developed using assembly language
 
the .NET compilers aren't part of the CLR
@CustomizedName no way
C# compiler is C++ or C, but the future one is C#
you can write a compiler in any language
 
LOLCODE is an esoteric programming language inspired by lolspeak, the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University. The language is not clearly defined in terms of operator priorities and correct syntax, but several functioning interpreters and compilers already exist. One interpretation of the language has been proven Turing-complete. == Language structure and examples == LOLCODE's keywords are drawn from the heavily compressed (shortened) patois of the lolcat Internet...
:D
 
2:36 PM
this is the "question" i always wanted to ask
355
Q: How do I create my own programming language and a compiler for it

DaveI am thorough with programming and have come across languages including BASIC, FORTRAN, COBOL, LISP, LOGO, Java, C++, C, MATLAB, Mathematica, Python, Ruby, Perl, JavaScript, Assembly and so on. I can't understand how people create programming languages and devise compilers for it. I also couldn't...

 
I suggest you create an interpreter instead
If you do create a compiler, compile to another high-level language or assembly, but not binary
 
See who has the answer to that question @CustomizedName. Google him.
 
the executable binary format is really complicated
 
@scheien Eric Lippert ?
 
yep
@Steve: tnx for the tip on restconsole!
 
2:39 PM
yep np
 
In fact, if you want a really simple compiler, write a brainfuck compiler that outputs C
 
@scheien just another block who worked at Microsoft really
 
wikipedia has everything but the code on how to do that
 
ye, he's a nobody at microsoft
 
@CustomizedName He used to be the head of the C# compiler team
 
2:42 PM
@KendallFrey Yes "Used to be"... not surprised why he left
 
why?
He didn't leave because making a compiler is hard
If anything, he left for a harder job
 
@CustomizedName: Why would you say that? Have you worked at Microsoft?
You got any reason for not being surprised?
 
@scheien Microsoft the last invention from them I remember is windows...
 
Which has how many % of the global market?
Why hating so much? You are coding in a language created by the very same company.
 
i don't hate, it's the fact that company lacks inventions, that's it really :)
 
2:48 PM
no
 
lol "oh, eric, yeah how smart can he really be"
 
So they have not invented anything?
after Windows?
 
they have windows, C#, VB.NET, Xbox, Windows Phone, Surface, and more that I can't even think of
 
@NETscape: hehe yeah, spot on ;)
 
Zune!
 
2:50 PM
lol
 
@KendallFrey Windows Phone, Surface they are all copies of other products around...
 
I have news for you, big boy
Windows is a copy of Mac
 
it's not process of invention, it's called improvements
 
They kind of have the best console controller, way better than playstation.
 
They stole most of their ideas from Mac
true story
 
2:51 PM
Look, I am not against Microsoft, it's just they didn't put enough effort into inventions, as if i was the boss... but it's just an opnion
 
Name a successful tech company that did actually invent something
 
errrmmmm, lets change the topic :D
 
hehe
@KendallFrey: Good question!
Well, I'm off.
Merry christmas to everyone!
 
Cheers, and Merry Christmas
 
3:07 PM
anyone have exp with a wifi signal and cell phone towers
 
No, but I'm pretty sure those don't have anything to do with each other
 
That is what I though too - But can't get the wifi signal more then 5ft outside the door of the building
wondering if the cellphone tower 300 ft from the building might be causing it
 
they shouldnt interfere with each other
 
humm then what could be causing it?
I download WiPry for my iphone going to see what kind of signal strength is shows
 
metal, water pipes, high voltage lines running through walls in most buildings block wifi effectively. esp water
 
3:20 PM
They are right next to a creek too
 
water between sender and receiver will block
we used to have a problem with all the cast iron in old military buildings blocking everything
 
ya building is kinda old and metal
 
why in the name of satan am i working today?
 
cheers
 
for the xmass party this afternoon
 
3:24 PM
@CharlieBrown Because you have a data corruption emergency?
 
yeah, were having a xmas party... except I work remotely for a company about 1000miles away
 
^ Sending Digital Eggnog >>>
 
3:42 PM
throw new InvalidSenderOperation("Digital Eggnog cannot travel over creek");
 
Catch(Booze allTheBooze) {
    allTheBooze.DrinkTilSheLooksGood();
}
 
IEnumerable<Booze>().ForEach(o => o.swallow())
I was assigned the dumbest qa tester available. i should really start drinking now, this guy is making the day before vacation rough
 
3:59 PM
@CharlieBrown this is what is needed to be done, because you can take it, because youre not a manager, youre a silent programmer, in dark light
 
i doubt anyone i have worked with in the past would call me 'silent'...more like, 'guy who rocks the boat every chance he gets'
 
@CharlieBrown :D
@CharlieBrown ive seen a glass tut on your blog. Do you own a glass?
 
I did glass research for an insurance company a few months ago
 
@CharlieBrown testers are a mixed bunch for sure.
Some I've worked with are really sharp, programmers in disguise really. Actually, programming against test frameworks is sometimes harder, ditto for reproing bugs. Then there are some who are too stupid to be in I.T. full stop
 
HAMMERTIME!
 
4:13 PM
this one has trouble with concepts like js and css cache... it makes it worse b/c they have the testers use VS instead of a qa server, so they fumble through building projects and source control
 
stop
 
HAMMERTIME!
 
i totally forgot about that
 
whenever anyone says stop, she does it?
or just at the end of a sentence...stop.
 
HAMMERTIME!
 
4:17 PM
not a clue :/
 
4:42 PM
@ton.yeung for each item in an ng-repeat, i need to fire off an $http request... any ideas?
yeah, its not for production, just a testing page
its a list of charts for a patient
for each chart that is bound, i need to $http to get the items on the chart, and then ng-repeat them under each chart
im thinking i could prob _lodash it and append the data i guess
nesting $q.all(), this should be fun
 
you could use an ng-init to call a function that has the same filter as the ng repeat, and does the http's from there (i think? :) )
 
thats an interesting thought, placing init in repeat
 
interesting as bad?
 
4:59 PM
@LewsTherin You should get Dragon Age Inquisition. Pretty sweet game.
 

« first day (1529 days earlier)      last day (3426 days later) »