|
Thank you.
I'll look that up.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Late response here, but look up SignalR. I've used it for just that - PC to PC messages. Really simply code.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Hello Everyone,
We are students from Germany and we are currently studying „Media-Design“.
We were assigned to create an artistic media-installation for the “Ars Electronica” as an entry in their competition. Our Idea is to visualize the process of an A.I. in an experimental way. This means, that we don’t know yet, what the final result is going to be.
However for that, we need some sort of input for our “generative art” project.
I myself am pretty familiar with programming algorithms and data-structures. I had some experience with JavaScript and Processing.
What we need is a simple all-purpose A.I., ideally one with neuro-evolution
(I found NEAT to be looking quite promising).
I want to emphasize, that we don’t require anyone to build or program a new A.I. If someone already built one, even a simple or small one, it would be sufficient. From what I understood from our research, the simplest and most basic form of A.I. is the one “recognizing hand-written digits”. But please no CNN. A simple multilayer-perceptron feedforward or NEAT is enough. We thought that a text-file, ideally some sort of exchange format (like XML or JSON) would be a great start, to understand the data we get out of the process.
Tl;dr:
- For a Project we need a neuronal network
- We want to visualize the learning process
- We need an API to get weights and neurons from an A.I. System that is learning.
- We just need a finished built A.I. (please no C.N.N.) ; No additional Programming needed
If anyone has interest helping us with our problem, feel free to send me a P.M.
Thanks in advance,
Best regards,
The “Sound of Synapse” Group!
|
|
|
|
|
Something like SharpNEAT download | SourceForge.net[^] ?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I am currently doing an EPQ on architecture which is basically a project worth half an a level that goes along side the rest of my subjects where you conduct independent research into an area that interests you. The question I have chosen is "Does a high focus on environmental sustainability restrict the progression of architecture?" because I hope to study architecture at university.
This is the main title for my projects however I would also appreciate any comments/ opinions anyone has on:
Is sustainability of a buildings or its aesthetics more important?
what are your opinions on carbon neutral buildings and do you think its a reliable long term solution to buildings being bad for the environment?
do you have any examples of eco-friendly buildings that look unattractive or attractive?
Does a high focus on how eco friendly a building is push architecture into the future by making architects think in different ways ?
Can beautiful architecture and sustainability always have to "compete" or can they work together?
Any opinions you have on any of these subjects would be very useful in my research into my EPQ project. I will full reference anyone's comment that is used in my project and appreciate any thoughts you have weather you have a career in architecture or sustainability or not. THANKYOU!
|
|
|
|
|
Wrong kind of architecture - this is a software development site and has nothing to do with buildings or sustainability.
Th "architecture" this forum is concerned with refers to the high level structures of a software system and the discipline of creating such structures and systems. Each structure comprises software elements, relations among them, and properties of both elements and relations. No bricks, no steel beams, no concrete, no straw bales, no recycled wood.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
wrote: "Does a high focus on environmental sustainability restrict the progression of architecture?"
Just noting that there are many restrictions on architecture.
In terms of your specific comment one notes that right now one can only build to the best science that is known right now and that which meets codes. So even if you knew of a study that proved that a certain type of wood was bad and yet the codes required it you would be required to use it.
And what really restricts architecture is money.
wrote: ...or its aesthetics more important?
Look at the engineering problems with Frank Lloyd Wright's Fallingwater house as an example of aesthetics that went wrong.
|
|
|
|
|
I have a column in an SQL table, whose values might be updated by multiple clients at the same time.
All clients access DAL through Asp.net WebAPIs + Win Form application.
How do we ensure , only one client updates the value at a time consistently?
If it's a client side code, I would just use locks/Mutex . How do we do this in server?
I guess "static" methods are a poor option.
Should I go for any Queuing mechanism?
Please suggest what's the right method to handle this simple concurrency requirement.
|
|
|
|
|
It looks like you used a "spinner" to generate that "question".
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
I'm an old systems programmer. Now forced to do some fancy DB projects. So trying to figure out, how things work.
|
|
|
|
|
You hit a multitude of topics; related and unrelated.
Without more focus, you made it near impossible to give you a "straight" answer.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
lol I see it now, when I read my question again.
My own experience is all about putting Critical sections & mutex to use to handle similar scenario's without involving DB.
I was all thinking to control just with plain client code. Just like ensuring the entry gate is atomically protected or ensuring the calls reaches sequentially there through a proper queue.
But Linq/SQL providing features out of the box, is awesome.
|
|
|
|
|
You could always use rowversion[^] in the table.
So you're going to edit a record. You first do a SELECT on the recordId you want, getting the data for the record and it's rowversion value. When you go to UPDATE the record, you include the recordId and the rowversion values in the WHERE clause for the update.
If the rowversion matches, the update will proceed and you'll get back a 1 for 1 record updated. If the rowversion doesn't match, you'll get back 0 for no records updated. That means the record has been updated between the time you did the SELECT and the UPDATE.
|
|
|
|
|
Thanks you very much. Will try this out.
But does the transaction in Linq automatically takes care of this issue? dbc.SubmitChanges() will do this automatically?
|
|
|
|
|
Not necessarily. Transactions have nothing to do with concurrency.
EF has a Timestamp attribute you can stick on a byte[8] field in your database class for this.
modified 12-Oct-18 8:13am.
|
|
|
|
|
|
What you're talking about is not handled by Transactions. Transactions make sure a group of operations on the database are handled as a single unit. They makes no claims to concurrency.
|
|
|
|
|
Correct. It's just related, but it needs us to do what you recommended in your first reply. Thats the right answer
It's explained here[^]
modified 12-Oct-18 9:12am.
|
|
|
|
|
Simple; you don't use Access on the server. There's a button in your IDE that upgrades your Access-database to SQL Server.
Wrap your statements in a transaction, and the operation should become atomic.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: Simple; you don't use Access on the server. There's a button in your IDE that upgrades your Access-database to SQL Server.
:=) made me smile.
Eddy Vluggen wrote: Wrap your statements in a transaction, and the operation should become atomic.
This way: ?
.net - How to create a LINQ to SQL Transaction? - Stack Overflow[^]
|
|
|
|
|
|
R1911 wrote: Though 'Transaction' takes care of things, it still needs us to know how to handle the exceptions. You show the error to the user.
Something like "this app lets two people change the same text, and then can only save one of them".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: Something like "this app lets two people change the same text, and then can only save one of them".
Mate, please don't mistake. But I'm not sure why your replies are consistently sarcastic. Do you think I can apply this solution?
|
|
|
|
|
He's not being sarcastic. You are mixing two cases here:
The first case is handled through transactions which is where two records attempt to update the same record at the same time.
The second case requires more of an end user experience type of mindset and relates to the question, what happens when you have two people editing the same record but they save at different times? Consider a stock trading application. You ring trader A and tell him you want to sell a million dollars of stock. So, he gets your stock up and enters a sell order for a million dollars but then gets distracted. Now, you're watching the market and you see that selling that much stock is going to be a bad idea and you also see that you haven't sold it yet so you ring up the same trading company but get put through to trader B instead. Now, you tell trader B to just sell half a million dollars of this stock. That trader gets up the stock, sets it and processes the order and you have just sold half a million. Now trader A comes back from his very enjoyable lunch and notices that he hasn't placed the order so he presses Sell. What happens next is hugely important.
If your application treats each "transaction" atomically and just processes it, you have just sold 1.5 million dollars of stock when you only wanted to sell 1/2 a million. If your system is clever and checks the updates, it detects that another transaction has occurred after you started and prompts you. Hopefully this causes you to ring the customer and check whether they wanted to sell 1/2, 1 or 1 1/2 dollars of stock.
That's what Eddy was getting at.
This space for rent
|
|
|
|
|
Thanks, sorry may be I read him wrong. thanks for the neat explanation. ![Thumbs Up | :thumbsup:](https://www.codeproject.com/script/Forums/Images/thumbs_up.gif)
|
|
|
|