16,005,389 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Thomas.D Williams (Top 51 by date)
Thomas.D Williams
14-Oct-18 14:26pm
View
Forms.cs on Reference Source
[
^
]
Thomas.D Williams
30-May-18 17:12pm
View
That's pretty hard to read when it's not English, but...
I think you may want:
if(!zeka.korunuyorMuRakipTaslarTarafindan(this.Rengi ,komsuLokasyon ,tahta))
You may need to use "super.Rengi" I haven't used Java for over 3 years.
Thomas.D Williams
11-May-18 3:36am
View
What Asp.Net software? You need to provide significant information for someone to help. Also, you have it tagged as C++11 which it is not.
Thomas.D Williams
10-May-18 4:06am
View
It's been years since I've used Web Forms. I don't have a solution to your problem, we used to have lots of headaches ourselves, but we moved to Web Api hosting an Angular (4+) SPA. If you can change technology, I would take it.
Thomas.D Williams
6-Apr-18 14:50pm
View
Are you using Entity Framework? Is "home" a DbSet property on your HomeContext? Normally you would not need to call Database.Connection.Open() in EF, it's handled automatically when it's injected into your controller.
Thomas.D Williams
24-Mar-18 12:14pm
View
Entity Framework has a "Code First Migrations" tool which allows you to create migrations code files from a database context (the context is just the EF class used to interact with the database).
You can use:
dbContext.Database.Migrate();
to make sure all the tables are created.
You may want to look through their overview.
https://docs.microsoft.com/en-us/ef/core/
Thomas.D Williams
30-Mar-15 17:29pm
View
What happens when you remove the LIMIT 1 from the query?
Thomas.D Williams
16-Oct-11 10:03am
View
Both computers are running x64 windows 7. Running in admin seems to help
Thomas.D Williams
16-Oct-11 10:02am
View
I just tried it. It seems to be less temperamental when run as admin on both computers. It only seems to be the host that need to run under admin for it to all work as expected
Thomas.D Williams
5-Aug-11 17:44pm
View
The problem was that the image would just show as black the same as the picture box.
Thomas.D Williams
5-Aug-11 11:50am
View
I tried this in a solution a while back, that had the same exception. 'Parameter is not valid'
Thomas.D Williams
5-Aug-11 11:49am
View
TypeConverter tc = TypeDescriptor.GetConverter(typeof(Bitmap));
Bitmap bitmap1 = (Bitmap)tc.ConvertFrom(ARGBcollection);
where ARGBcollection is the same byte[] that the slow function uses
Thomas.D Williams
5-Aug-11 11:17am
View
Thanks for the quick reply, however this doesn't work. It just throws an exception on the second line 'Parameter is not valid'
Thomas.D Williams
31-Jul-11 6:43am
View
I've now got it working. It even shows percentage progress as it goes. Had to add a little to my ray tracing class to report how much it had done + a timer to check the progress every second :) Thanks for your help
Thomas.D Williams
30-Jul-11 15:01pm
View
Looks like the right tool for the task :) Thank you
Thomas.D Williams
30-Jul-11 14:51pm
View
So your suggesting using threads. I've never used threads before. Will it be a big learning curve?
Currently its just a class, no threads that I have made
Thomas.D Williams
13-Jul-11 4:37am
View
Thank you for your response. Going to have to make some changes to the system. Teaches me a lesson for relying on such 'presumed safe' method
( P.S If you remember the Neural Network I was making thats been put on hold for a commercial project).
Thomas.D Williams
9-May-11 16:18pm
View
I've only been programming since summer before college(Not college as you know it in the states... its whatever is before your higher ed) :p and i'm going to uni this september. Wanting to learn all the formal techniques(and clarity on others) and holes in my knowledge. :)
I suppose I consider myself a practical programmer... I program to solve an intriguing problem and pick up skills on the way (probably not the best way).
Any way yeah... Thank you once again for the good answer. I voted it five for a reason :)
Thomas.D Williams
9-May-11 13:19pm
View
Thank you for your alternative solution. There are a lot of new concepts in the above code I am going to have a go at researching. I think they would be good for me to learn about. E.g interface I have never used. At the top you also append
= System.Int64;
to what you are using. Don't quite know how or what that affects with sed library your using.
I'll have a go at implementing something like this above.
I'm getting the feeling as I am entirely self taught... I never have used keywords like internal and interface.
I'll get back to you if I get stuck or need something clarifying :)
Once again, a great thank you for all the effort :)
Thomas.D Williams
6-May-11 16:52pm
View
I need a rank 2 array because the first dimension respresents the layer in the network and the second rank is the Neurons in that layer. Ohhh... if your refrencing my other question about the keys and the imputs that was a different project :p I don't know an awful lot about algorithms related to neural networks. I just researched some neural networks theories before this project. If you don't mind showing your algorithm... It would be a good insight :)
Thomas.D Williams
6-May-11 15:33pm
View
I estimate that the training of the Neural Network will use 100GB hard drive space and take 20hours to complete :) A lot less than I anticipated :)
Thomas.D Williams
6-May-11 15:31pm
View
I'm not to familiar with other file types or writing my own. This part of the system will only be needed temporarly any way. Just for training :)
Thomas.D Williams
6-May-11 15:29pm
View
My system is x64... By disk-based if you mean like a text file I have just made it a simple CSV structure. Initial tests seem promising. My test program using my neural network class builds a random network everytime on startup saving to a txt file.
Don't know if it was the right choice but it allowed me to set the buffer size down low using StreamWriter. I'm sure there are more elegant solutions. However it will be used in training.
Famous Last Programmers Words: Shouldn't need changing in the future, hopefully
I plan to attempt to now train a network by attempting breeding. Generating 100 networks. Keeping the top performing. Killing the rest (Deletion)
Should all be automated once i'm done.
Lets hope this doesn't go Terminator on us :p
I'll let you know my progress her at some point
Once again thank you... Saved me hours once again :) :) :)
Thomas.D Williams
6-May-11 15:06pm
View
To all those interested a 90,000,000 neuron network saved to a CSV file of 348mb... I think it must have stopped writing to the file in the last few repetitions/notepad++ doesn't work as it only shows lines up to 87,043,237. 3 millish less than expected :)
Thomas.D Williams
6-May-11 14:47pm
View
Yep... With successfull early networks like 1000 it was fine.
I then had an idea of how I could train it to be more intelligent... but required a lot more neurons
so 90,000,000 neurons as a result :)
Thomas.D Williams
6-May-11 14:41pm
View
They all sound good. As you say this is hard to search through a large dictionary which would be hard with my 90,000,000 neurons... Forgive me I don't know much if anything at all about Windows memory management. All I know is i'm allowed up 1.5GB of memory for my application regardless of how much RAM i have.
The program already suffers from lack of available memory and is slow to run. Each cycle of the big network takes 3ish mins.
Resourse manager says I use 1.2GB
Would it be worth in the constructor neuron to force it to be passed its location within the array (consuming an x & a y value worth more memory for each neuron).
I have only really started on neural networks but had great success with my early stages :) And with the large networks and how I plan to train them requires they be wrote to a file first.
Thank you for you constant help here on the Code Project :)
Thomas.D Williams
6-May-11 14:21pm
View
That would be a better solution still :) My 5
However, I still would have to get the array position of each neurons linked neuron.
I don't do much with database but i'm willing to try :p
I accepted defeat a long time ago in this project of having a small save file size
Thats not including the multiple networks i'll use to train it
On that topic is there anyway I could estimate an object size programmaticly in c#?
Thomas.D Williams
5-May-11 16:02pm
View
haha lol... on a wim at 30mins processing time it works out at 400,000,000 neurons which is about the same as a cat. So probably not lol. Maybe with a quicker processor and memory techniques :)
Thomas.D Williams
5-May-11 15:15pm
View
I have decided to compromise at a mere 40,000,000 neurons. Even then it took 5mins to run through that network once :)
Thomas.D Williams
5-May-11 14:58pm
View
Thank you for the feedback :) I'm going to have a go with smaller networks :p
Thomas.D Williams
5-May-11 14:57pm
View
Haha :) I don't have that much RAM. I am currently running Win 7 64bit. I may have to use a clever way of writing to and from files. I have 1TB Hard Disk space so that wouldn't be an issue. Thank you for the feedback :)
Thomas.D Williams
7-Apr-11 12:18pm
View
Ok, I used the tool in the link to track down the given field in my custom class. Worked well... Basically gave a field name for me to hunt down with Ctrl + F :p
Thank you for the help
Thomas.D Williams
7-Apr-11 11:45am
View
I shall have a look into this and report you on my progress. Thank you for the link :)
Thomas.D Williams
31-Mar-11 14:21pm
View
I think you should look into databases for your project
But seeing as you are using a .txt file I recommend that you use a 'List'/Array of students. You will have to define your own class of what a 'Student' is. Then Serializing the List into a file.
If you persist in the way that you are doing now. Google
1. Reading and writing a text file.
2. CSV delimiting (Comma Separated Values)
If you want help like examples etc. Im happy to lend a hand but i'm not building it all for you
+ im a c# programmer. But I have used vb and can translate.
Thomas.D Williams
31-Mar-11 9:27am
View
That's me not seeing lines of code :p Anyway thank you for your time :)
Thomas.D Williams
31-Mar-11 9:18am
View
Also would I not have to make the triangle normal a unit vector before multiplying it by a factor from an integer?
Thomas.D Williams
31-Mar-11 9:16am
View
Thank you for the mathematical explanation.
It actually made sense. Just finished covering them in maths in my education (Obviously not at this depth). Luckily my triangle class has methods for normal vector(Pre-calculated so doesn't have to be calculated). Colouring is handled by the lights in a "real time" sense.
Thomas.D Williams
31-Mar-11 9:10am
View
Thank you for your solution. It makes perfect sense now (and also quite logical) :)
Now going to have go at implementing this on a per-triangle basis and then to work on all triangles in a selection.
Thank you once again for making this clear :)
Thomas.D Williams
30-Mar-11 15:27pm
View
I'm also thinking of possibly making an article here on the CP for people who want to achieve a similar pointless challenge even though there are plenty of reliable systems like directx.
Going all the way from taking simple 3d point and plotting them on the screen
All the way to navigating a 3D world with the use of your keyboard and mouse.
Thomas.D Williams
30-Mar-11 15:19pm
View
I did think of something similar. The only problem I can think of is how would the new points know what direction to extrude in.
E.g. if this was a 2D triangle the xy plane then the extruded points would be just increased in the z-axis. What if the triangle had been tilted in that 3rd dimension. It wouldn't be clear the new coordinates of even the vertex of a triangle.
Thank you for your suggestion. I'll see if I can work on it and possibly get the components of the triangle normal to increase each vector component with
Thomas.D Williams
30-Mar-11 15:12pm
View
A code dump... More detail to question please. Can't really think of anyone I know who would go through this. Any build errors etc? What problem does it have? Just the little bit of source code that is causing a problem would be fine.
Thomas.D Williams
30-Mar-11 14:08pm
View
This is purely a standard windows forms project, so its a no. No use of anything that would give me a 3D advantage :p (Still a student) I do believe you helped me a while back when I queried about mouse keys or something and it came down to something simple like form key preview.
Thomas.D Williams
20-Jan-11 2:52am
View
Thank you. I never thought of doing it like this. From what I can make of your code you re-draw every pixel from a texture to a different location you calculate in 'GetIntersection'. I have already seen I can speed it up in my Engines draw sequence, Mainly by using pre-defined graphics objects. I have found it rather interesting how slow 'CreateGraphics' is.
I will be looking at it later when I get back from college. Thank you so much :) and thank you for the time you put in getting a solution :) :)
Thomas.D Williams
19-Jan-11 16:48pm
View
I have looked, however it has not been that useful. I have only found it useful in retrieving a part of an image/texture (e.g a triangle shape) to draw but not actually drawing it 3D. I'm not aware that it can actually transform an image. I may have to research more into paths.
Thank you for the suggestion :) :)
Thomas.D Williams
19-Jan-11 2:59am
View
Thank you all for the feedback. Once I come up with a solution to this problem I can post source up here for those interested. :)
Thomas.D Williams
19-Jan-11 2:56am
View
Very useful links. I shall look through them later once I have done my Maths exam :p I only consider it third party in the sense DirectX has dropped c# support in VS 2010. Very annoying as I wanted to learn DirectX (Still learning to program really).
Thank you for the links. I'm sure i'll put them to good use :) :)
Thomas.D Williams
19-Jan-11 2:52am
View
This link is very useful for extracting the part of the image that is being used as a texture. This is accomplishes the first part of what needs to be done. It just now needs to map it to 3d points (I have already calculated there 2d representation of them). It should be a bit like the warp transform tool in Photoshop.
Thank you for your help. Very useful :)
Thomas.D Williams
13-Jan-11 10:43am
View
Thank you for your response. I have now implemented a solution that works well. You can now navigate the 3d scene without the issues. Great answer :)
Thomas.D Williams
13-Jan-11 10:13am
View
I've never thought of doing it that way. Sometimes a simple solution is the best. I was thinking of when detecting a key down storing it as down in some boolean. And then once it is released setting it as not down in the boolean. Then it's processes could be handled in the main game loop.
Thank you for your quick response, its a great help :)
Thomas.D Williams
26-Dec-10 15:59pm
View
Thank you for your comment. All useful information. I outlined that the program was a quick creation outlining my problem. My problem in hand is actually creating an undo function for a larger program by means of storing instances of an object in a list.
I am very new to actually using CodeProject and presumed this was the place for such matter. I shall have to Google ByRef and ByVal. I seem to remember them from my VB.Net days :p
Thomas.D Williams
26-Dec-10 15:15pm
View
Thank you so much. Had me stumped for ages :p This worked perfectly and a very speedy reply. I think it will be researching into pointers :)
Show More