15,891,813 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 Python 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 Oliver Bleckmann (Top 27 by date)
Oliver Bleckmann
12-Mar-22 6:33am
View
I think he/she is trying to reassemble a graph-database that was serialized to a hierarchy with additional rules. The problem is that reference cycles can occur. So, two problems here restoring a graph is hard e.g. Newtonsoft Json reports on self referencing loops. Second, implementing a rule engine is hard, because a practical approach heavily depends on the rules to consider AND a mathematically DETERMINISTIC description of the information to be restored. It may be impossible to restore due to conceptional mistakes. A person 'has' a house AND a person 'has' a car AND the car 'isin' the house. Loop! Person->house->car->person, but a car can also be in the house of another person, no loop, go on traversing... So, it heavily depends on the implementation. No general answer how to resolve this. I can see one way here, as the work items have a unique id, traversing should stop as soon as a work item has been FULLY processed. So you need to 'await' on each work item till its descendants have a back reference to the item OR the whole list of items has been processed. Possibly inefficent. This could be a perfect example that SHOULD NOT be solved recursivly! The problem is, depending on the rules you may have what I would call 'path dependencies'. As soon has there are 'hasMany' relations, all possiple paths of a matrix of all workItems can be related to (maybe) all other matrices by the specific path taken by the applied rules. If these rules introduce bidirectional interdependencies or complex rules like a person can only have a car if there is a garage. GAME OVER! A deterministic approach: process each item just one level of depth applying each rule THEN repeat with the next depth and just STOP at a certain depth.
Oliver Bleckmann
12-Mar-22 5:31am
View
also may help
https://www.howtogeek.com/howto/39532/how-to-enable-stereo-mix-in-windows-7-to-record-audio/
Oliver Bleckmann
11-Oct-16 15:47pm
View
did your forget the permission in the manifest? Else, try this http://stackoverflow.com/questions/7305089/how-to-load-external-webpage-inside-webview and see if it works. that do the dev tools tell you using a browser? try using window.location.replace instead. And, check if a CSP is violated. Serve jquery from your domain. Refactor to not use inline scritps. see this issue http://stackoverflow.com/questions/5110916/android-cant-get-javascript-to-work-on-webview-even-with-setjavascriptenabled
Oliver Bleckmann
11-Dec-15 11:40am
View
And, there is another good reason to stick to the C#/ASP.NET Stack, money! These developers are rare and better payed. Though I switched to node.js for good reasons, I would bet in the near future all the script-kiddy-js-developers will call them self's node.js developers. OMG!
Oliver Bleckmann
28-Aug-14 17:02pm
View
What do you mean by "transfer"?
See the example! As it is valid JavaScript, it is as clear as it could be (in a mathematically sense)!
Oh, OK, got it. This could be misleading. I am not talking about parsing. It's about object transformation like there dozens of samples at the underscore website e.g.
var stooges = [{name: 'moe', age: 40}, {name: 'larry', age: 50}, {name: 'curly', age: 60}];
_.pluck(stooges, 'name');
=> ["moe", "larry", "curly"]
Oliver Bleckmann
24-May-14 8:40am
View
As I said, I knew about MultipartContent, but it is not working in .net 3.5. At the moment my best bet is implementing parts of the specification myself. There are Libraries like RESTSharp, but they don't help me with multipart/mixed. Most libs out there concentrate on "multipart/form-data" - often in a hard coded way - so they don't work either for me. And, I would not call them libraries, more snipplets. The problem is, multipart/mixed is just an envelop for different content types, so it would be nice to have a library to handle all the mime types and file extensions, correctly. I think there are payed libs (think I found something at chilkat software), but closed source is not an option... Search is going on, but thanks for your help, man! I know you are really busy here ;-)
Oliver Bleckmann
24-May-14 7:26am
View
Think this is the right solution. I remember it to be necessary to deal with some WinApi calls and System.Runtime.InteropServices to get a real full screen experience working.
Oliver Bleckmann
24-May-14 6:24am
View
certainly possible, kind like a heartbeat implementation. Or, depending on what you consider an "external application", just the other way round, use a loader or monitor (e.g. as a windows service) like "pinging your application" to see if it is still there and responding. This way you could even tell if it freezes for some time. Maybe you can spawn a decoupled task for this job. hope this helps.
Oliver Bleckmann
24-May-14 5:51am
View
Deleted
As I said, I knew about MultipartContent, but it is not working in .net 3.5. At the moment my best bet is implementing parts of the specification myself. There are Libraries like RESTSharp, but they don't help me with multipart/mixed. Most libs out there concentrate on "multipart/form-data" - often in a hard coded way - so they don't work either for me. And, I would not call them libraries, more snipplets. The problem is, multipart/mixed is just an envelop for different content types, so it would be nice to have a library to handle all the mime types and file extensions, correctly. I think there are payed libs (think I found something at chilkat software), but closed source is not an option... Search is going on, but thanks for your help, man! I know you are really busy here ;-)
Oliver Bleckmann
23-May-14 22:22pm
View
but MultipartContent is .net 4.5, I asked for 3.5. And, I know it's standardized, that's why I ask. Implementing standards yourself than using libraries is like reinventing the wheel, right?
Oliver Bleckmann
23-May-14 22:15pm
View
for a REST Service, as mentioned. It's for Postal API Client.
Oliver Bleckmann
23-May-14 22:08pm
View
This Domain is called Natural Language Processing, search for NLP. This solves the basic problem of interpreting a language programmatically. The next step would be figuring out if there is an algorithm to reassemble the desired result...
Oliver Bleckmann
23-May-14 22:01pm
View
This seems to be related to the server ("The underlying connection was closed"), maybe you hit some limits like script runtime or post request maximum size!? Go and check your php.ini. Eventually your POST is corrupted(due to encoding, length measurement issues) and PHP waits for more streaming data on the request (buffer underflow)!?
hope this helps.
Oliver Bleckmann
19-May-14 3:47am
View
well, most commonly you will name the inputs like <input type=checkbox name="whatever"> put a <form id="form"> tag around the whole thing and use $("#form").ajaxForm({url: 'blabla', type: 'post'}) or $("#theForm").ajaxSend(...) to submit it via post. and your done. now their state will be submitted and they can be accessed on the server by their names.
Oliver Bleckmann
19-May-14 3:31am
View
well, deserializing json should not be an issue. depending on your html and the way you construct it (e.g. use string builder) may be a minor issue (as you are not doing any stress/ load tests, where this becomes important). so there is the request of expedia data to be measured (json data) and the time of the response, your html data, to the client. as I assume, you are testing locally, the client gets it's data as fast as possible. so I bet the request to expedia is your bottleneck. measure that! but sadly to say, if their api has a extra ordenary response time, you can do nothing to improve that. but maybe you can gain higher priority for money.
Oliver Bleckmann
18-May-14 14:02pm
View
I think this is simply not true! Please correct me if I am wrong (I am no mobile developer). Well, let's say, in ancient times, you were totally right, where js security policy followed the sandbox idea. But time has changed! Two name some examples: Today, you can access the camera through JS, Web Storage lets you persist Data on the client, what was prohibited or better limited to cookies before (in most cases the browser will ask you to allow such actions, like turning on the camera and storing more than 50mb). OK, there is no full file access in a browsers JS engine, but there are plenty of SDK's (iOS, Android BlackBerry and WindowsPhone) let you use arbitrary/vendor specific JavaScript to access other "critical" device specific functions. To name some more, and that is exactly what these frameworks are made for, Apache Cordova and PhoneGap, see for yourself http://docs.phonegap.com/en/1.0.0/phonegap_events_events.md.html.<br>
And that is where HTML5 comes into play by standardizing some of these features. And, according to Silverlight, the need of a framework capable of accessing system functions (file access) and running out of the browser (screen access) was seen like what, 8 year ago!? What I am trying to say is: multi screen support should be on the list of HTML5 capabilities, maybe as enhancement to the Full-screen API.
Oliver Bleckmann
24-May-12 2:15am
View
Well, correct me if I am wrong, but SqlConnection is for SQL Server Connections only, so in my case, there is no chance to connect a csv or text file. Provide me a connection string for csv and I will give it a try. And yes, you maybe right, but elsewhere I do use SqlConnection...
Oliver Bleckmann
23-May-12 6:07am
View
Well, as I said, "a non-tuned / optimized SQL Server", means no db index involved here and, neither text files are cached, nor paged, fragmented or presorted!
Oliver Bleckmann
20-May-12 8:52am
View
anyone?
Oliver Bleckmann
10-Nov-11 5:09am
View
oh one more thing, recently i read about a problem on apache there seem to be a max of 10000 parallel tcp request for one instance. maybe packed sniffing helps debugging.
Oliver Bleckmann
10-Nov-11 5:06am
View
Just a guess, but these many PARALLEL calls made me think of unexpected behavior due to webserver configuration. maybe your requests are blocked as DOS attack, something like that!?
Oliver Bleckmann
4-Nov-11 17:19pm
View
Perfect. Thanks.
Oliver Bleckmann
23-Oct-11 14:00pm
View
"backing-fields", thanks for the term, Bill. See my comments a both for clarification. Regards, Hans.
Oliver Bleckmann
23-Oct-11 13:58pm
View
Inresting, if this is a prooven fact, there should be no diffrences in the testing loops ( see http://www.codeproject.com/KB/cs/FastLessCSharpIteration.aspx) best wishes, hans
Oliver Bleckmann
23-Oct-11 13:54pm
View
I found the article (http://www.codeproject.com/KB/cs/FastLessCSharpIteration.aspx) it says "I take this to mean that reading a property in a loop condition costs an extra cycle per iteration." and I remember having read similar statemens elsewhere.
Oliver Bleckmann
23-Oct-11 13:50pm
View
Correct so far, but maybe I missed the point. I finally found the article here that says there is a performance difference http://www.codeproject.com/KB/cs/FastLessCSharpIteration.aspx. And yes, maybe the performance is a negligible factor, so it might be complaining on a high level. And, now that I know the correct english term, I was talking about consequently using backing-fields (thanks Bill, hope this is correct ;-) vs. the option to use lazy initiation of properties (set; get;) whenever possible.
If we use backing-fields for simple properties (means no further logic than set; get;), why should we do so? If there are no performance advantages and it is prohibited to access the private backing-fields within a class (I was not talking about using public fields). Why does a c# guru recommend using backing-fields principally/ consequently? I don’t see the advantage. On the contrary, we produce more and less maintainable code. Why not stick to cases we have to use backing-fields?
At this point I have to expose myself as a fan of the lazy approach. I consequently use properties because I was taught to do so, but from what I know now, it is time to call your conventions into question.
Oliver Bleckmann
9-Sep-11 2:13am
View
Well, but how can I do that. I found several examples doing things just the other way round, mapping an entity that comes from an existing database. in my case it comes from the webservice and there is no database to map to.
Show More