Click here to Skip to main content
12,699,369 members (31,562 online)

Comments by Sergey Alexandrovich Kryukov (Top 200 by date)

   
You are very welcome.
Good luck, call again.
—SA
   
1) Parse JSON, deserialize it into some object; 2) Use ADO.NET and do whatever you what to do with the object obtained.
—SA
   
Here is the key word: debugger.
—SA
   
It does not seem to make any sense. Anyway, it could not be possibly called "create... Windows 10 system".
This is not just your problem. I have an impression that people in your company have nothing to do. :-(
—SA
   
That is enough, thank you.

In this environment, you use raw Windows API (perhaps with a very thing MFC wrapper (see MFC documentation: CImage), or combining it with raw Windows API). The approach I described in my previous comment fully applies. The role of the event handler is played by your handler of the event WM_PAINT. Look the documentation on this event and handling it. See also the Windows API methods Invalidate*..., for completeness.

If you need more detail or cannot find all ends, please post a separate question, on a separate question page. You can give me a link to this question by commenting on this comment; I'll try to answer quickly.

—SA
   
Your idea that "this" is related to the scope is wrong. It is totally irrelevant to the scope.

It is related to the concept of the relationship between an object having property and an object used as a property. Note that 1) a function is also an object, 2) and this object can be a property; in this case, "this" is actually passed as an argument.

It you understand that and dismiss your scope misconception, you can probably easily understand the rest. I describe the functioning of "this" in Solution 6.

—SA
   
I answered in detail in Solution 6. Please see. I hope you will also accept it formally.
—SA
   
I know. That's why I advised what I advised. You need to start with some experimenting, to feel the process of recognition. I can not possibly "satisfy" you, because for that I would need to do all the work you have to do yourself. One more advice: "trying multiple filters" is also not quite right approach. You should first predict what you expect from each filter, then it will make some sense. I tell you: I faced the same problems, which I resolved pretty quickly after I played a bit. And for that, I created the experimental application. The goal was: to play quickly.
—SA
   
Because if non-strict mode. This is just weird obsolete behavior. In strict mode, it's always "undefined" object.
Isn't it obvious why it is undefined? Why should it be anything else? "this" is hidden function parameter, which is missing in this case.
—SA
   
Not true. There is no such thing as "assign this". "This" and "object" is the same. Return "this" is... well, not accurate. To check up up, write "return 3" at the end. You will see that the instance is still returned via new Employee(); that is, there is a separate mechanism for returning a result of construction. There are two ways too call a function f(): var a = f() and var a = new f(). In second case, return is ignored and newly constructed object is taken. "this" is only a name for the object passed to a function. In your case, nothing is passed.
—SA
   
Do you think that if this is not a full screen mode, the generated speech would not interfere with playing the game? :-)
—SA
   
Strictly speaking, even the use of Ajax is not exactly "calling server-side code from client-side code" and not even complete analog of "remote call"; however, it can be done very simple to this concept. (I refer to your earlier comment.)

You know what? would you rather formally post your advice on zip-code services? It may close the question.

—SA
   
The question is way too vague to discuss anything seriously. When one needs to "secure" something, this person needs to understand what problems or exploits can be expected, why, and so on.
—SA
   
I'm just curious: if you "don't know", how you came to the idea that you may need such thing as a function returning an iterator. May I assume that this is because someone requested you to create such thing, gave you an assignment?

This is what I would suggest: learn iterators, their purposes, decide what iterators you need and why, practice in using them, and then just create a function (do you need to learn what is "return" and how it's used?) and return what you need.

—SA
   
There is nothing wrong with this question. We have a lot of stupid questions, but they are usually stupid due to the logical contradiction, most typically wrong baseless assumptions and inadequate ambitions; in other way, false knowledge is stupid, but lack of knowledge isn't. Your question is nothing like that; it's natural on the certain level of learning. Please don't hesitate to ask.

Here is the thing: answering your question heavily depends on 1) your exact platform; 2) UI/graphics framework/library you are using. So answering in too much detail won't make sense until you specify that. Most usual approach is this: the UI is event oriented; the OS provides an event used to handle some graphics rendering event. You handle this event, use the graphical context reference/pointer/handler to draw an image or something else. The OS makes sure there are no redundant calls. For example, if you hide your window behind some some other window or an edge of the screen and then show again, the re-rendering event may be triggered, but not if you simply move the window around. This mechanism may seem overcomplicated, but this is not so; it's very reasonable and efficient. Now, some libraries may do it internally, so you only need to place some object in some container, then it will be rendered. It seems to be much simpler, but it's not necessarily better. Also, modern libraries transparently use hardware acceleration.

With these hints of the background, you would need to ask a separate question, as soon as you provide the required information. If you want me to participate, please give me a link to your new question by adding a comment to this comment.

—SA
   
I just added some analysis closer to the inquirer's situation, in addition to your answer. Please see Solution 3, especially the very last (unrelated) code sample — this is pretty interesting.

...and Solution 6. I credited your use of .call, as I explained other cases of passing "this".

—SA
   
I 5ed the answer, but did not read the articles you referenced. I did not like what I read before on the topic; it's not so clear or helpful.

At the same time, "this" can be understood very easily by one approach which is psychologically somewhat difficult to many, including myself. One would need to clear one's mind from thinking of JavaScript as of "traditional" OOP system with classes. It's very important to understand that JavaScript programming with prototypes and constructors is very far from the illusionary similarity with OOP: none of those concepts are analogous to classes or class instance constructors; in JavaScripts they are... much simpler. It's really all about objects, not types (the JavaScript concept of type is another non-analogous concepts; and the prototypes are just object prototypes, and constructors are just "normal" functions with "this".

I hope you will like my other answer, Solution 2, more exactly, another reference to the article about the "distractions". :-)

—SA
   
Ah, now I understand what you meant, thank you. But then it could be not the console application, but the application without any consoles and any windows. Formally speaking, it is a "window application". Microsoft development model, especially in .NET or just in Visual Studuo, is very confusing. They suggest application types "Console" and "Window applications", but in fact, there are no such things. Those options are actually "Show console" and "Don't show console", without anything like "Windows application". On the server side, I see no point of showing anything at all. There is no one to look at that console. :-)
The output can be just logging.
—SA
   
The message posted by mistake is deleted (please see "Deleted" on right of it); I shorten such messages down, because deleted messages are still visible. Sorry for the inconvenience.
I hope my message about the weather is clear. :-)
—SA
   
That's right, the request is quite unclear. I still think that your information can be very useful, just not quite sure if its relevant in this particular case.

I still have doubts of those console applications. What should start them, when, on what event? With Windows Service, it's more clear; they can auto-start... I mean, if, by some reason, some HTTP request starts a console application, many can be started. Of course I understand how create a single-instance application; the problem is the very principle.

—SA
   
I answered in detail in Solution 2, please see.
—SA
   
Isn't that obvious? You define it once in one place, never repeat. Each enumeration value is converted to string via .ToString() or .ToString().ToUpper(), depending on what you want. It makes code maintainable. Besides, you can have a data structure directly associating input with actions.
—SA
   
I agree, but I just answered the question on its different level, because it was formulated this way: how to "convert" JSON string. This is still a valid question and the problem unresolved by the inquirer; and my answer is still correct.

At the same time, I fully agree with the idea that many questions should not be answered as formulated, and some more reasonable help should be provided based on what the inquirer really needs, not what he thinks he needs (important difference). I just did not dig into it in this case.

—SA
   
You are right, a 5.
—SA
   
This is too much related to the general design of your product. I suggest that the variables should be stored in some data structure representing contexts of execution. Representing context and scope, and also thread context, for stack variable, is the major design problem, and storing the variables themselves if a secondary one. Its important to understand that the same variable name can be used in the different contexts, so they should be not messed up, kept as separate objects.
—SA
   
Use the debugger and/or logging. It could be the undefined object or something else. For some information, test typeof on this object.
—SA
   
This is really useful information and might be even what the inquirer needs. But to start with, it would be important to dismiss the inquirer's "run a form" misconception.
By the way, why console application? And how would you prevent it from starting several times? Just asking...
—SA
   
There is no such concept as "run a form". A form is rendered on HTTP request and generates some HTTP request, that's it.
You can use server push to render something on a page when some event on a server side is handled, but this is a different thing.
—SA
   
5ed. I did not pay attention that the news are supposed to be taken from Google.
Even with a correct solution, don't you think the whole goal is wrong? The massive use of non-original content is the the plaque of the Web, major kind of noise, distraction, waste of bandwidth, garbage... If people don't have enough to say, they should not publish sites...
—SA
   
Deleted
...
   
Due to hot weather, my access to your hard drive is somewhat limited.
—SA
   
Good catch, a 5.
The inquirer's code has many problems; one of them is hard-coded "A", "B", "C" and the like. This is not maintainable. One solution would be using enumeration type, or at least a set of explicitly defined constants, instead of those immediate constants. The code should be neat, nothing should be repeated, and so on...
—SA
   
Why no primary key? Anyway, nothing prevents you from deleting a row. To fix another null exception, follow the steps I described again... :-)
—SA
   
A 5.
—SA
   
Why all that text? Who needs to read all this noise? 1) Keep to the subject of your question, 2) don't mess up the terminology.
—SA
   
Check up if sda is null at the moment of the call... Follow the steps I described in my answer...
—SA
   
This issue is just another reason to avoid Office interop... What to do depends on what do you have to achieve.
—SA
   
5ed.
—SA
   
Why text box? why not date time picker? Just checking...
—SA
   
In what line?
—SA
   
Using iFrame is not the best idea. You can much better use some element on the same page, such as div.
iframe works like a page inside a page; this is a page with different URL, so you don't control its content. So why using it? The only problem is: on what events do you want to refresh the news content? What initiates the change of content? The rest of the problem is trivial...
—SA
   
Essentially, with modal pop-ups, there is no "close". "Closing" is just ending the (simulated) modal state of the page, which does some changes on the page, in particular, modal dialog gets hidden. As far as I can understand, you don't want to end it. You just need to hide the element you "close". I cannot see all your detail, but this is the idea.
—SA
   
There is no such thing as "java script". This is one of the cases where spelling is critically important, because there is "Java" and totally unrelated "JavaScript". Java is not a scripting language.
—SA
   
How is that related to JavaScript? You have the files on the server side, you can read them there, present their content as Content type "text/plain" or "text/html". If you want to represent a set of files on the same page and navigate it on the same page, yes, add some JavaScript with a tree of something, as well as some navigation code. I cannot imagine what help would you need. This is just work to be done; needs some effort.

I also cannot understand "jango server... receives the file" part. Do you mean that you also need to edit a file and send it back? (Why sending anything on "user click" if the file originally came from the server side? probably you mean editing it, or supplying by the user, but then you add a node to the tree, not just "click".) If you want to edit the file, just edit it in a control or contenteditable HTML element and send required content using Ajax...

—SA
   
PDF has nothing to do with Web and is not a part of W3 standard. It's just a file you can generate on your server side, it can have any content at all. It has nothing to do with any JavaScript editors.
—SA
   
It looks like you are right, thank you very much; I'll fix the code sample.
Anyway, the purpose it to share some directory with assemblies by several applications; which is perfectly possible. How can it make my approach "useless"?
—SA
   
You are very welcome.
—SA
   
Then do exactly that. Will you accept my answer formally? Do you have any further questions?

Again, you do not allow or deny pages; you just present different page content in response to different requests from different users. It's better not even show anything like "access denied", even if it is denied, but show something useful, or redirect.

—SA
   
Sorry, no, it's not about code. You need to understand what exactly you need to achieve, at least for yourself.
—SA
   
Oh, right. I can see your point.
—SA
   
The inquirer never mentioned segmentation fault. The question was about fragmentation, which is totally different thing. Fragmentation is unrelated to the access to memory; it happens as a result of allocations and deallocations.
—SA
   
Do you mean that you have to add some text to drawing?
—SA
   
I voted 4 in this case. The answer is not quite complete.

First, the option of using OnFormClosing is not mentioned, but it has certain benefits. More importantly, CloseReason property is important but is often forgotten, so it's important to point it out. Please see Solution 2.

—SA
   
Here is the idea: your database is still unique, the same one for all the client systems and users. So, you can change the status of the authenticated user. When the user tries to authenticate from a different system (by the way, even the same system but with different browser, which is equivalent to using a different system), your server-side code can read that flag check it up, and respond accordingly.
—SA
   
I cannot understand what "archive" may possibly mean, in this context. And what would it possibly mean, to "get an event"? Event instances can be defined as members of some type, invoked in the declaring type; and event handlers can be added to the invocation lists of event instances. Basically, this is all you can do with events. Which part of it is your problem?

Yes, many inquirers have problems with exposing events of nesting controls. The solution is to create appropriate events in the top-level control and add handlers to the inner nested control which invoke those events of the top-level controls. But I'm not sure this is what you try to do.

—SA
   
The problem is unclear; I can only tell you for sure: nothing in any applications is related to "command prompt". The "prompt" is nothing as one of the many other applications which can start other applications; the command interpreter.
The creation of the files should be described in the AutoCAD API documentation; from your code, I cannot see where you try to save any file at all.
—SA
   
Okay, but you have very little change to get any help at all. I cannot see how your post may make any sense; and you are not really explaining it, — sorry.
—SA
   
Then it makes no sense. Your C# code can only detect the WiFi on the server side, which is totally irrelevant.
In principle, GPS can be accessed by JavaScript, on the client side, but, to best of my knowledge, W3 is only recently started to work at the standards related to this topic; we cannot use it with any of the major present-day browsers.
—SA
   
You did not show the definition of the type with your bug. But what's unclear in this error message? Visual Studio should show you then problematic code. Find out the members with the same name as the type...
—SA
   
I would not be a problem if you explained the scenario. You send encrypted data, but how the addressee can read it? Where the keys come from? It has nothing to do with certificate or anything like that, this is pure logic. With public-key encryption, the communication in one way can be done with two messages, but then no one who spy on all the communications cannot read the message. With symmetric, the problem would be the key distribution. Perhaps you have to learn cryptography in general, just the main ideas.
—SA
   
Not clear at all.
—SA
   
What have you tried so far?
Please don't be surprised with my question. Yes, you've shown mySQL statement (but did not explain what's the problem), but your question was also about mailing. What have you done to send a mail?
—SA
   
Could you first format your code? Did you even look at it after you posted it? It starts with some "#include"...
This is just HTML...
—SA
   
What have you tried so far?
Help with what? How to access the element of an array? How to read an element or assign something to it? It's all described in the language documentation.
—SA
   
Why so much of irrelevant code (not formatted, by the way)? You had to some 5 lines or so: one single method like void SwipeArray<element>(ELEMENT[] array). Where is all that? You are not even trying to solve your problem. And what would be the use of any help you may get?
—SA
   
What have you tried so far?
—SA
   
Just truncate it according to the format you've used for recording the numbers in the database. You are the one who may know this format.
—SA
   
Sorry, this is not a question.
—SA
   
Use the debugger, find out what exactly happens, and so on...
—SA
   
Help with what, exactly?
What have you tried so far?
—SA
   
Help with what? I have no idea what is your application type, platform, UI framework, language, nothing.
What have you tried so far?
—SA
   
Good ideas. I didn't think about it. I improved code according to these suggestions and credited them — thank you very much.
—SA
   
This is the re-post of http://www.codeproject.com/Questions/1109296/How-can-I-change-this-Cplusplus-to-C.

Please don't re-post; it is considered as abuse, by obvious reasons, and cannot help you. Instead, continue the discussion of the page of your original question.

You already got an answer. You should not assume that someone write required C code for you. This is your job.

—SA
   
What exactly do you want to access and why? What's the problem?
—SA
   
I don't think it makes sense. Nothing should be passed via query string; and the worst idea is to pass credentials.

I formally answered your question on getting URL query parameter; gave you fully operational code; will you accept the answer formally now?

—SA
   
Platform? Application type? Language? Anything?
—SA
   
This is not even a question. If you know how to draw a line, what prevents you from drawing a circle?
What have you tried so far?
And the question makes no sense without telling us your application type and what you are using for drawing.
—SA
   
I don't think it make any practical sense, especially if you "have no idea", but I gave you some code in Solution 2. It it what you need?
—SA
   
Sorry, this is not a question. This forum is not a code-writing or code-finding service.
Let me note: major modern browsers have standard spell checkers. Why would you need to develop anything on ASP.NET? By the way, it will be slower in all cases.
—SA
   
All right, but why password then? May I know what do you want to do in production?
—SA
   
What do you want to achieve?
—SA
   
This is a wrong idea; such password "protection" would make no sense; it cannot protect anything.
—SA
   
What have you tried so far?

Yes, it can be easily done via getting attribute, if you have a control reference, but it defeats the purpose of "id". Normally, id is used in JavaScript as input data, to find a control.

—SA
   
What does it mean? What is "HWID"?
—SA
   
Not a solution, not even close.
—SA
   
I up-voted the answer, it's correct. Perhaps you should better ignore the morons voting in idiotic ways; that happens all the time...
—SA
   
Sorry, this is not a question.
All the help you need is one magic word: the debugger.
—SA
   
How to run? — off-topic. This is a site for software developers, engineers.
—SA
   
Good idea to get rid of bad idea, isn't it? :-)
—SA
   
Do you want an idea how to update just one table on some event? If so, what difference the second table may make?
—SA
   
I never noticed any underscore used like that. But don't you think that having such rendering would be plain bad? Using something looking like a character to render non-character information is just wrong. I would rather think at keeping such underscore from happening. I mean, habits are important, but some habits should better go.
—SA
   
I know. Can you see my point? Anyway, your question does not explain what's wrong with B. The last sentence is related to A.
—SA
   
:-)
   
Ah... thank you for the note. I did not realize that...
—SA
   
Yee... In addition to what I say: I know that Hungarian language is one of the most complicated...
—SA
   
I can assure you: if you do it well, it would be, by far, much more interesting than majority of the articles on the site (By "well", I mostly mean the quality and comprehensiveness of demo/test code, tests, not so much of the normal article text, but everything should be properly explained.)

If you do, please don't forget to notify me by adding another comment on this comment.

—SA
   
Do you? Then pleas see Solution 2. :-)
—SA
   
It looks like a very early starting point. Checking for a prime number should be a part of the process, not a separate "check for being a prime number" algorithm. In particular, prime numbers should be stored in memory as they are found, as they are used for the check up.

Also, the inquirer should stop hard-coding numbers like 50 and 3...

—SA
   
Which code?..
—SA
   
Thank you again. Really, think of writing an article. Would you?
—SA
   
I perfectly understand. This code fragment is just irrelevant to the problem, which is quite difficult.
—SA
   
I just imagined the programming language with the "smile" compilation directive, ":-)".
It means: "compile this line if possible; if not, just don't take it seriously". :-)
—SA
   
So, VB or VB.NET? VB6 or VB v.8 (.NET)?
All grid view controls are "dynamic" enough. It's hard to see what kind of help you may need.
—SA
   
Please read this:
What have you tried so far?

Do you mean Microsoft file sharing service? Anything else? Is the share to be used by a .NET application on Windows? Anything else? What does it mean, exactly: "not share"? What happens?

—SA
   
Fair enough, a 5.
—SA
   
You should use Unicode-aware data types.
—SA
   
Hard? Well, nothing is too hard here, not even developing appropriate skills. My whole point is: this is one of the easiest problems to solve. This is the main goal of the way I answer such questions as in Solution 1...
—SA
   
Didn't I answer in full already? Just read it carefully, understand, and see what's going on under the debugger. Are you going to accept my answer formally?
—SA
   
They are not different enough to make separate question posts. As I said before, you hardly need binarization. Splitting the discussion into two different pages is not helpful at all; and it would be very helpful to keep it all on the same page. You did not accept my previous answer and already asking a separate one. That was me who pointed out that image filtering is more relevant to your problem than image classification, and I agreed that both approaches might be needed.

I clearly understand added complexity of your problem, but I'm sure it's solvable with some acceptable fidelity.
Please see my answer on this page. This is a really good idea which helped me a lot.

—SA
   
Sorry, algorithms of such complexity is not something which can be possibly "given". Given — in what sense?

It looks like you are using System.Speech.Synthesis.SpeechSynthesizer. If so, how is that related to your "own TTS"? (If it's really yours, I'm sorry for my mistake.)

—SA
   
I'm afraid we already live in interesting time, way too interesting. I can compare it with the life in relatively dull times of the past, which looked much more stable and promising.
—SA
   
This is not what I meant. Wikipedia can be opinion-forming enough, it's respectful enough, too. I mean, that this all arguments based on authority (<a href="https://en.wikipedia.org/wiki/Argument_from_authority"Argumentum ad verecundiam, a "logical fallacy") are invalid in principle.
I don't argue against existence of some entity in principle — please see the beginning of my post. I tried to clarify the context and emphasize the relative nature of "existence".

Here, the practical aspect is important: I wanted to warn against targeting "Data Scientist" "profession". It's too narrow and too unreliable to be practical, especially taking into account that this is a modern trend. The trendy is the unreliable.

—SA
   
Please don't re-post. Instead, continue the discussion on the page of your original question.
—SA
   
It has nothing to do with SQL. SQL "knows" nothing about any drives or file systems. Of course, you can store information on files in your SQL, exactly as any other information.
—SA
   
It will make a fair answer. Will you post it with proper attribution as a formal answer using "Add your solution here"?
—SA
   
The link I provided will lead you to examples. This is a very simple thing in use.
If you have some concerns, write the code yourself and ask questions if you face any problems. It's too early to ask for samples when you did no try anything. Start from the documentation; this is the fastest way.

If it doesn't work out well, I'll gladly try to help.

—SA
   
Again, very good information. How about building of CMUSphinx or Google's (are they related somehow?) on Windows?
—SA
   
Just a note for others: we are now discussing speech recognition (not text to speech, which is the topic of the original question), but this is what I'm interested in.

I only tried recognition I installed on Android, in the form of a virtual keyboard in two different languages (I don't know the origin of source code); and was pleased by the quality even in dictation; it can even make "speech typing of text" practical.

Before, I tried recognition supplied my Microsoft for Windows; it does work; but overall I characterized it as "spectacular failure". It can recognize things based on tiny grammar, but dictation, formally existing, is better should be forgotten.

So, my other question is: does Windows build work? Did you try it, too?

Perhaps your experience would be very useful if you develop good demo applications with complete build instructions and one-click batch build, tests, discuss results, etc. — in a fairly detailed article.

—SA
   
I doubt you really need binarization. Reasonably good OCR libraries work with gray-scale images. You just need to improve contrast, sometimes reduce noise (those two kinds of transform are kinds of opposites). Your images certainly need processing (yes, I looked at your example). Here is what I did: created an application with several important transformations applied interactively with different parameters and played with them. It gave me certain experience. You really need to create such experimental application.

Will you accept my answer formally now? In all cases, I'll gladly try to answer if you have other follow-up questions.

—SA
   
Use the text search on the page. Did you notice the smile in my comment?
—SA
   
Very interesting link; thank you for sharing. Did you test the recognition itself, its quality?
—SA
   
The second line, "my project is three Layer" won't compile because round brackets () are not balanced. :-)
—SA
   
From scratch? In my rough estimate, you need to meet at least one of the two requirements:
1) get so much talent for the task;
2) get a life span of several hundreds years.
Meeting the second requirement is much more likely.
—SA
   
5ed.
By the way, I never tried, not to Microsoft. The opinions of how responsive to reports Microsoft is have been usually very skeptical. :-)
—SA
   
Future telling? I think it's not hard to tell the future; it's just make harder to live in that future when it comes. :-)
—SA
   
If the inquirer's observations are correct, that very exception could be only in the third line, because first two lines would throw out-of-range exception instead.
—SA
   
Maciej,

Do you think that a Wikipedia can make an argument for me? The word "science" does not make a subject a science. Also, read the "Criticism" section in the same article. But more essentially, it all depends on what sense of the word "exists" we imply. "Astrology" does exist, right? And all myths do exist. The question is: where? I'm just talking of different things.

You see, the names of "sciences" is a very relative thing. This is a purely social phenomena. They appear as social institutions, such as university courses, books, associations of specialists, conferences, etc. There are very different views on what exists and what not, and what is science. One of the sound positions is that none of the technical sciences (including "computer science") is really a science, in true epistemological sense... For example, compare solid-state physics and strength of materials... All that matter can be a subject of argument.

It's important to see that commercialization badly distorts the picture.

A while ago, I personally started to note that a number of modern computing disciplines is a actually some pseudo-science, a kind of modern astrology/alchemy. And this is where the lack of understanding may hurt in practical terms. As to the "Data Science", I noticed that this name became a name of a position in companies. This is the trend, and the observation of a trend along should be indicative, some reason to look critically at the subject...

—SA
   
The question doesn't make sense. If you just close a window, nothing is refreshed unless you intentionally program it.
It's not always possible to close a window; popup is generally bad in most cases; many users will block it.
—SA
   
You are very welcome.
Good luck, call again.
—SA
   
Please see my previous comment.
—SA
   
You are trying to get performance counters on the server side. May I ask you what's the goal of this activity?
—SA
   
You described the whole syndrome, very precisely. Too bad so many inquirers don't understand it; and it's pretty hard to explain to such people; and they are not only the beginners. It's a big thing: to identify a problem which should not be solved, instead of solving it.

One problem is that sometimes it's not even X/Y, but A/.../X/Y, and perhaps even X should not be solved. I always try to ask the inquirer: what is A, but they rarely answer.

—SA
   
Golden words. The next comment, by enhzflep is also very good, please see.
—SA
   
Look at it in wider context: computer science. I'm not sure that "data science" exists. It cannot be taken out of context of computer science, informatics, mathematics. "Data Scientists" do exist, because this is a trend, to create positions named this way, not sure about "data science" in reality.
Future? I can roughly explain why future is theoretically unpredictable. You act at your own risk. One remedy: avoid to narrow specialization.
—SA
   
It happens, sorry; please don't hesitate to remind. Voted.
—SA
   
I cannot imagine a single valid case of using sleep in UI thread. Why?
—SA
   
5ed.
—SA
   
And what is the data type do you use for your Arabic text? I hope it's Unicode compatible.
—SA
   
Thank you, Maciej.
—SA
   
Hm... Use the debugger and you will see what's wrong.
—SA
   
If you cannot open the file, how it can possibly be related to PDF? The file could be defective, or document format version is not compatible with the software version.
Can you open the same document in some other way?
—SA
   
You simply have to read the whole file in 1 (one) string. Assign the string to the property android:text.
If the text was created in different OS, it may so happen that you have to "normalize" end-of-line characters, but first let's assume it's not the case.
—SA
   
In what line?
—SA
   
...besides, it's not clear what "explain" should possibly mean. If I write code, I can explain it; you should be able to do the same.
—SA
   
This irrelevant to your question. Did you try multiline view with multiline text, according to my answer?
—SA
   
This is not a question, sorry.

It can gather information on the class, metadata and can be used to invoke some method/property, in particular, to instantiate a class.
What exactly do you want to achieve?

—SA
   
Right. Without description of the scenario, the question makes little to no sense. It should be made clear who gets access to what and who is blocked to access, what action should give the access, and so on.
—SA
   
This is not a solution. Such content should rather go to your question, the section "What I have tried". Please use "Improve question".
—SA
   
My question was: why? why do you need it? and why only a path to the module showing active windows? what do you want to do with it ans why? Being an active window has little to do with its functionality, especially for a foreign process.
—SA
   
What exactly do you mean by "grid view"? Exact full type name, please.
—SA
   
May I ask you: why? What would be the purpose of it?
—SA
   
Probably the inquirer means the path name of the mail executable module of the process presently showing active window.
—SA
   
Deleted
...
   
Wow! If your observations are really correct, I would already reinstall the whole OS...
—SA
   
Do you need to start CMD.EXE (command interpreter)? (Would be a bad idea.) Or you really need to some command itself? If so, it has nothing to do with "cmd".
—SA
   
Please, who needs such extensions? You will make it for Chrome, and what to do with people who want to use some other browser? And even if you develop such extension, who will agree to install it? especially the extension doing such a trivial thing, while everyone can use regular on-page search?
—SA
   
The question, as formulated, does not seem to make whole lot of sense, and not really understandable, but the root is understanding of how Web works, not specifically MVC.
—SA
   
You are very welcome.
—SA
   
It shows how to add bookmarks to PDF. It says nothing about import/export. Now, you say "import bookmarks from XML to existing PDF". It means that bookmarks are added to PDF.
—SA
   
You are very welcome. :-)
—SA
   
Deleted
There is a number of Android file recovery applications. which you don't have to copy on your drive with the problem; in particular, it can be done from a separate computer. Some data could be lost forever, some recoverable...
—SA
   
In what line?
—SA
   
These days, you cannot feel safe (and should not), if you have no possibility to quickly backup all your asserts to an empty hard drive. It's the best to have some SATA drive dock (USB3, eSATA, USB2...). Practically, having good amount of data, it should be a hard drive. You can do it using your current system (it should better be virus-free), or some other computer, than you have to unmount a hard drive from your existing computer. It's also good to have everything is source code.
—SA
   
Do be serious.

In principle, you can, but on what set of files? Do you understand how Google works? It's a huge cache, "a copy of Internet", indexed with great redundancy, updated on regular basis. It is supplied to the users just as a service. Want to do the same? Or do you want to do scrapping and recurrent search on the fly? How much time do you want the user to spend? Days? years?

But if you want to perform the search only on your site, it would not be a problem.

—SA
   
Are you sure that the path is a sub-directory of the root directory set up for your site?
—SA
   
PHP "has a database" in the same sense as ASP.NET. But PHP is a kind of ersatz language and technology, just the cheap stuff...
—SA
   
Gosh, mind reading again... :-)
My understanding was something like "the rest of the data", the data not yet handled so far, which is really can be something handled by recursive code.

Thank you, Richard.
—SA
   
1) Java makes no difference. Instead of pointers, there are reference types and references, which you already tried to use; 2) "excess data" is unclear, I can only guess what it is. Anyway, I cannot see any problems so far. If you need further help, please write: what have you tried so far?
—SA
   
What "$ symbol", where?
—SA
   
The major problem I can see: you never disconnect the client.
—SA
   
You did not show any relevant code, no handling of those click, redirection, nothing.
You only manipulate localStorage, which does not update anything. By the way, why not sessionStorage?
—SA
   
There is no one-to-one correspondence between these two languages, so you need to add additional translate rules to your input. You may need some artificial rules used to express something which does not exist in JSON: attributes, namespace...

Let's say, you design all that. Now, what do you mean "how"? By designing and writing some implementation. This is just work of software development. It's not clear what kind of help would you need.
Idea? What idea? Either write it or find some suitable available solution.

—SA
   
All right, we panicked in vain. :-)
Thank you for your information.
—SA
   
Thank you, Prasad.
—SA
   
What you say is not true. Not even close.

I don't even know how to explain it. The byte has nothing to do with ASCII. ASCII is encoding for text (and it's only for code points below 128). When you read a file, you read bytes, not text. Sorry, you are lost. This is you who don't understand. There are no any problem reading those bytes. Generally, to understand writing or reading file, it would be the best to forget that char or string even exist. Later on, you may learn how to combine text data with the rest. The idea is: you define some structure, get it's binary size and them write it all as a buffer; and symmetrically read, when you need to read...

—SA
   
You are welcome, and thank you for your understanding. But... don't you follow the same line? I advise seriously: do everything independently. You are wrong about "don't want to help". It's just the opposite: I want to help, but you are not trying to help us to help you. You really need to realize it. We will gladly help you if you have some real questions.
—SA
   
The question would really make sense if you explained 1) the purpose, 2) the problem.
Just reading a file hardly makes any sense. The whole idea of "convert" is wrong. There is no such thing as "not binary" file; all files are "binary". You just read raw data, that's it; there is nothing to "convert". But reading — to what data structure? It depends on purpose and some other factors.
—SA
   
First of all, you have to chose between the two: "coding by example" or programming. If you want just "coding by example", asking any programming question would be nearly useless. You just cannot "try all sorts of combinations" or something like that. When you are blindfolded, you cannot expect anything good.

One problem is: I cannot see a single line of PHP code in your post. I'm not really sure you realize it. I can only see some HTML which does not seem to make any sense. The content inside <div> resembles some code, but it isn't.

—SA
   
Apparently, your implied architecture is not linear, so your schema Servers.. VMware is unclear, and, obviously, part if it is irrelevant (WMware). You are just rushing too much, jumping from really abstract (and perhaps too
non-specific) architecture to "clicking on a tab". You really need to explain everything slowly and systematically.

Generally, if you are a "novice programmer", I would advise to do something much simpler. Anyway, this is quite unclear what help you may probably need. We have no information of your background, on the structure of the articles, nothing. At the same time, I cannot see a single problem here. Rather, it's just a matter of building architecture, design and implementation, in a regular and systematic manner. Probably you have some UI design in your head, but even this part you did not describe; you did not describe how the article should look (based in the logical structure we don't know), not your described the upper level of the UI (how the set of articles is represented, organized, tagged, searched).

—SA
   
Then perhaps you need to embrace the idea "better less but better". We don't mind giving you a hand, but you have to do your homework first. So far, you did not reach us with your hand.
You ought to get to much simpler tasks first, to get some experience and confidence. If you cannot understand how to work with API, you need experience working with API. How else?

I have no idea why would you need to "convert" from C# to VB.NET, but it's easy to do automatically. On sure tool is ILSpy. But this is not really important. Main thing is to write code, not to copy it, no matter if it is in the translated form or not. I know from long experience: you don't learn much reading some code you don't understand. You learn when you read on theory, documentation and try to study this matter by writing code. Few lines written by yourself beat many pages you get from other developers. You will read code written by others when you have something written by you, when you want to compare and weight quality of your work; only then it will be useful.

—SA
   
I'm sorry if I'm wrong, but this is how it looks to me: you are not trying to do any development effort, only trying to find some code samples and hope they do what you want to achieve. If so, you probably need to understand that it is pretty much counter-productive.
—SA
   
You, see, you hardly can expect that someone write a code sample of such request. I suggest you read the documentation and write some code. At least you could show what is the problem, if you face any.
—SA
   
Ah, Access... Perhaps, to me it's a bit hard to spot "access" as "Access". :-)
Thank you.
Well, right; as I say, no relationship is indicated in any way...
—SA
   
If you are using a SQL database, you should use not month number or name, but appropriate data types related to time: date, time, datetime, etc.
—SA
   
Not clear. Do you have a relational database? If you want to express some relationship, you have to describe the relationship somehow. In your example, there is no any sign of any relationships.

It's also hard to help you, because it's hard to understand what is your background and what you are using. In relational model, the relationships is established by using unique keys and foreign keys...

—SA
   
That's the whole idea: perhaps it means that fixed-size form makes no sense. Here is the idea for you: instead of dealing with ill-posed problems, it's better to do better UI design.

Calculation of metric during runtime is possible: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724385%28v=vs.85%29.aspx.

But it does not mean that you can pick all the information. A form class can have it's own layout elements which are not exposed to any API. Calculate at runtime? Sure, but where you get input data?

—SA
   
Again, it's hard to see what help would you may need. It's hard to teach understanding.
—SA
   
I would not do it. You cannot get reliable results from such calculations. Why not allowing the user to change the size and splitter positions? After all, this is the whole purpose of this layout technique.
—SA
   
I see. Anyway, thank you for answering. Did you try to install the pack for second language and use two (or more)?
—SA
   
What part of Google documentation is a problem? I mean, it's hard to figure out what kind of help you may possibly need. I hope writing the whole bunch of documentation on your request is not an option.
What have you tried so far?
(Apparently, what you wrote in your "What I have tried" section is no longer applicable. What else?)
—SA
   
5ed.
—SA
   
5ed.
—SA
   
Split or add? Those are opposite things. :-)
—SA
   
5ed, but I think the inquirer needs to understand some PDF background. Also, your expression "no DIRECT way" is not quite accurate. Instead, you would need to explain that this is out of control of a Web application/site.

Please see Solution 2.

—SA
   
If you want to do it per application, applications of your own, this is not a problem at all; the solution depends on what you use for printing. (I don't know why you call what you described "watermark".)
But you cannot interfere with all other applications.
—SA
   
Thank you, Karthik.
—SA
   
I also added Solution 3, to explain some background and provide more links.
—SA
   
Not clear: "numbers" is also text. Filtering of characters should be done in JavaScript, on the client side, not PHP. Your server side can sanitize the whole text after it is posted to the server side, if you need it.
—SA
   
5ed.
—SA
   
What "normal players"? Do you mean that you can play the file with the *play utility provided with the library but not other players?
What is your platform?

Note that there is no such thing as "MP4" file. Each media file is a combination of the media container and one or more channels based on different codecs. MPEG-4 is a whole set of different (and alternative standards). What exactly you are using? (You can find an answer if you use your *probe utility, in FFMpeg, it's called ffprobe, ffprobe.exe.) It can be such a simple thing as lack of codecs installed on your system. And some players, such as Windows Media Players are notoriously poor in terms of support of a set of modern standards.

—SA

Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid