|
Blimey way out of my league
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
I should probably write a Code Project Article about it
|
|
|
|
|
I think you should
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
Hi Peter, I have successfully installed my net core service on a Linode box and associated it with a domain name. I'm know looking at how I can push local changes to the service up to the linode box, you say you have yours monitoring GitHub - how do you do that ? Thanks for all your help
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
modified 27-Apr-20 3:01am.
|
|
|
|
|
I don't have it monitoring github, but it could be used to do so.
Basically though, it's quite simple.
Most people think that git/github is just for source code, but if you think outside the box, it's for anything that you want to keep track of "changes".
I have my own private git server, that I run under IIS using the fantastic, and free .NET Bono Git server software.
On my linode I use exactly the same process as I do on my build server, namely I have "Jenkins Continuous Integration Server" watching a specific git repo for changes, then reacting when it sees a change.
That reaction, is simply to shut down the running service, git pull the latest version to the linode server, then start the service back up.
The thing that's different about the git server it pulls from, is that, all that git server holds is the compiled binary. No source code, no nothing, just the files needed to run the app.
When ever the build server makes a successful build, it pushes the new build into the git repo holding the binary s, a minute or so later, jenkins running on the linode server detects this and does what it needs to to deploy the new version.
|
|
|
|
|
Hi Peter, I thought you'd gotten fed up with me pestering you That sounds a very neat way of deploying it - I didn't realise Jenkins works on a Linux box I've only ever used it for building nuget packages I'll check it out - thanks again
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
|
Now there's a thought
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
How to read .dbc file in C#?
Please help me...
|
|
|
|
|
For those that don't know, .dbc files are Visual FoxPro files. With that knowledge, we should be able to guess that you need to perform SQL queries against this, so there is probably some form of .NET database connector. Fortunately, there is - you need to download Microsoft OLEDB for Visual FoxPro; search in Google for VFPOLEDB. See here[^] for details of how to format your connection string. Beyond that, it's now up to you.
|
|
|
|
|
Access to such a rich resource as a simple (and free) google search is being squandered by new programmers...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I was actually just about to jump on Twitter and ask you if this was a foxpro related thing
I sort of recognized the extension name, but it's been a long time since I even saw one in the wild.
Then I noticed your reply...
(This was aimed at mr o'hanlon by the way... in case it gets posted out of order...)
|
|
|
|
|
A .DBC is a "data dictionary" (of sorts) in .DBF format. Use a Visual FoxPro ODBC driver. Not essential to using the files it points to outside the "app" the .DBC relates to.
You could even import it into SQL Server, if that's easier. (Or Excel, Access).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
You can access FoxPro DBC/DBF from .Net app using ADO.net and the VFP Oledb driver.
I found this in another post that may help you:
You can use the FoxPro and Visual FoxPro OLE DB data provider to access your DBFs. A typical connection string for FoxPro "free" tables is "Provider=VFPOLEDB.1;Data Source=C:\Temp\;" In your SQL statements you would refer to the specific DBF you are selecting data from. If there is a DBC (Database Container) file present where the DBFs are, then point your connection string to it, and again, refer to specific tables in your SQL commands. For example, "Provider=VFPOLEDB.1;Data Source=C:\Temp\Test.dbc;"
|
|
|
|
|
I need to develop app that recognizes and tracks a specific object once it's in the Web Cam's fields of view. I found this, which is sort of what I want. That app seems to identify speific colors, then track those colors even when the object is moved.
What I need to is identify a specific object, probably by some identify feature(s), and then track it the whole time it's in the camera's field of view. I'm using a wide angle web cam with a 120 degress FOV.
Anyone have any experience with this? Any ideas on how to get started?
Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
I need to develop app that recognizes and tracks a specific object once it's in the Web Cam's fields of view. I found this, which is sort of what I want. That app seems to identify speific colors, then track those colors even when the object is moved.
What I need to is identify a specific object, probably by some identify feature(s), and then track it the whole time it's in the camera's field of view. I'm using a wide angle web cam with a 120 degress FOV.
Anyone have any experience with this? Any ideas on how to get started?
Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
|
Thanks Pete, I'll take a look
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Have you used this Alturos.Yolo before? It looks really promising, but as soon as I stat the app I get
Cannot found a valid dataset System.IO.FileNotFoundException: Cannot found pre-trained model, check all config files available (.cfg, .weights, .names)
at Alturos.Yolo.YoloConfigurationDetector.Detect(String path)
at Alturos.Yolo.TestUI.Main.Initialize(String path) in C:\Projects\Alturos.Yolo\Alturos.Yolo-master\src\Alturos.Yolo.TestUI\Main.cs:line 255
I'm guessing there's some kind of configuration that I need to do, but there isn't much documentation that I can see
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Object detection is an ML technique that uses pre trained models to identify objects. You need to download the trained models.
|
|
|
|
|
I have tried many things before I found costura.fody and I were hoping that would be the solution to create a single file exe of a cefsharp application that I'm doing.
So the help file for costura.fody says to set the copy local to true of the file you want to embed in the solution explorer. Done that.
So the exe got a little bit bigger when I did that but I notice that the size was not even close to cover libcef.dll so I suspected that this file was not embedded.
I tested this by renaming the dll in the output folder and yes I couldn't run the application.
I would really love for this to work but I'm kind of giving up. I was struggling with AppDomain.CurrentDomain.AssemblyResolve to tap into that event but it was never called. Even when defining it in the static constructor to make sure it is started before anything else.
I'm currently using this code:
[STAThread]
public static void Main(string[] args)
{
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(ResolveAssembly);
}
Just to clarify things, I'm using a windows forms project and I'm trying to make it as close to the examples I can find online. I would prefer to just add it in the Form1 constructor.
It should be calling this function
private static Assembly ResolveAssembly(object sender, ResolveEventArgs args)
{
throw new NotImplementedException();
}
But it never does.
In the .csproj file tried this snippet.
<Target Name="Prebuild">
<CallTarget Targets="Clean" />
<MSBuild Projects="$(SolutionPath)" Targets="Build" Properties="Configuration=Debug;IgnoreRecursion=true" />
</Target>
<Target Name="BeforeBuild">
<ItemGroup>
<_IgnoreRecursion Include="$(IgnoreRecursion)"/>
</ItemGroup>
<CallTarget Targets="Prebuild" Condition="'%(_IgnoreRecursion.Identity)' != 'true'" />
<CreateItem Include="$(TargetDir)\**\*.*">
<Output TaskParameter="Include" ItemName="OutputFiles" />
</CreateItem>
<ItemGroup>
<EmbeddedResource Include="@(OutputFiles)" Condition="('%(OutputFiles.Extension)' == '.dll' Or '%(OutputFiles.Extension)' == '.pdb')">
<LogicalName>%(OutputFiles.DestinationSubDirectory)%(OutputFiles.Filename)%(OutputFiles.Extension)</LogicalName>
</EmbeddedResource>
</ItemGroup>
<Message Importance="high" Text="Embedding: @(OutputFiles->'%(Filename)%(Extension)', ', ')" />
</Target>
This embeds the dll's fine. I just wish ResolveAssembly could be called. If it was I could have this code taking care of the lost dll's
Can anyone please help me with this?
Kind regards andla
|
|
|
|
|
|
I'm sorry this doesn't help me.
The resolve event should be triggered automatically when a dll is missing.
It doesn't trigger at all.
|
|
|
|
|
It is triggered automatically, on every assembly load.
The question is did you wire up the event correctly in your code?
|
|
|
|
|
I can't find any true answer to that only answers that have worked for other people with other setups different from mine.
So I have tried various solutions that have worked for others but it doesn't work for me.
Question is it possible that it is not triggered by recursive loads?
I mean if one dll that I see in the project needs another dll that is missing maybe then the resolve function is not triggered?
I mean in my cefsharp project (embedded chrome for c#) I have one dll named:
libcef.dll
This dll is not visible in the reference section but the application needs it anyway.
Costura.Fody doesn't embed this dll.
|
|
|
|