Click here to Skip to main content
15,033,418 members

Comments by Afzaal Ahmad Zeeshan (Top 200 by date)

Afzaal Ahmad Zeeshan 26-Aug-21 18:27pm View
   
500 would mean there is an exception/error in the server-side code. Try to debug the application and see why it is crashing.
Afzaal Ahmad Zeeshan 26-Aug-21 12:11pm View
   
You cannot do that. You need to detect the pop-ups and handle them.

I think the cookie pop-ups are a part of the "antibot" system on a web application. ;-)
Afzaal Ahmad Zeeshan 22-Aug-21 8:56am View
   
And what is the problem with this?
Afzaal Ahmad Zeeshan 22-Aug-21 8:54am View
   
5ed.
Afzaal Ahmad Zeeshan 20-Aug-21 15:38pm View
   
I would try using console.log(JSON.stringify(req.body)) to see what is the structure of the request object.
Afzaal Ahmad Zeeshan 14-Aug-21 16:19pm View
   
1. I would set a debugger and see if the line inside the onTap method gets called or not.
2. Verify if the tap is on the right widget. Sometimes your widget is hidden under another widget, thus not receiving any tap notifications from the framework.
Afzaal Ahmad Zeeshan 14-Aug-21 16:15pm View
   
5ed.
Afzaal Ahmad Zeeshan 3-Jul-21 12:28pm View
   
Maybe you should use the [FromBody] attribute to let ASP.NET know this value has to come from the body; otherwise, it expects a named value (query string, etc.)

Also, it is unclear how you are handling the routing in this situation.
Afzaal Ahmad Zeeshan 19-Jun-21 7:03am View
   
There is no code in your question. Maybe see this SO thread for a similar problem.
Afzaal Ahmad Zeeshan 14-May-21 18:16pm View
   
Try to print the data variable.
Afzaal Ahmad Zeeshan 23-Mar-21 12:38pm View
   
Please create a new thread to ask a new question.

Which ATM is this, are you using some sort of SDK, to write this program or writing your own? Please create a new thread and ask this question there with more details.
Afzaal Ahmad Zeeshan 19-Mar-21 11:15am View
   
Not sure, but I think this part replacements:{id: idParam.id needs to be only replacements:{id: idParam. Because you are reading the ID from the URL, and I would expect it to be a value, not an object.
Afzaal Ahmad Zeeshan 14-Mar-21 15:43pm View
   
You can, but that's overengineering. :)
Afzaal Ahmad Zeeshan 5-Mar-21 17:31pm View
   
What else did you expect this code to show?
Afzaal Ahmad Zeeshan 20-Feb-21 19:10pm View
   
5ed.
Afzaal Ahmad Zeeshan 8-Jan-21 20:58pm View
   
5ed; you beat me to answer.
Afzaal Ahmad Zeeshan 5-Jan-21 18:34pm View
   
What is the output?

See the output and you will be able to see what is wrong. :)
Afzaal Ahmad Zeeshan 5-Jan-21 18:34pm View
   
Do you have the fonts installed on that system?
Afzaal Ahmad Zeeshan 3-Jan-21 10:45am View
   
Without the proper (static) IP address knowledge, it depends on where the PCs are. If on the same network, then you might be able to connect using the hostnames, otherwise, you cannot connect at all.
Afzaal Ahmad Zeeshan 2-Jan-21 23:33pm View
   
Welcome!

If the answer helped, please mark it as a solution as well. :)
Afzaal Ahmad Zeeshan 2-Jan-21 20:32pm View
   
I am not that expert in the RichTextBox type, but I think if you can debug the process you will see where the characters are lost in the process.
Afzaal Ahmad Zeeshan 2-Jan-21 19:47pm View
   
5ed; but he did help filter the authors down by name, Alberto. :laugh:
Afzaal Ahmad Zeeshan 28-Dec-20 11:50am View
   
What is the error?
Afzaal Ahmad Zeeshan 26-Dec-20 18:22pm View
   
And, which SDK are you using?

Most probably, it is your own process' memory so see when/where was it allocated.
Afzaal Ahmad Zeeshan 21-Dec-20 19:53pm View
   
And what is the problem?
Afzaal Ahmad Zeeshan 17-Dec-20 23:28pm View
   
Reply to the author's comment to notify them of your reply.
Afzaal Ahmad Zeeshan 14-Dec-20 9:53am View
   
And what is the problem?
Afzaal Ahmad Zeeshan 13-Dec-20 0:14am View
   
I think the point that you might be missing here is given as a hint in the question. Have you tried using that? :)
Afzaal Ahmad Zeeshan 9-Dec-20 19:59pm View
   
You can ask the question under that article. :-)
Afzaal Ahmad Zeeshan 8-Dec-20 19:36pm View
   
Thank you, Bill!
Afzaal Ahmad Zeeshan 8-Dec-20 11:26am View
   
Right, what code are you using?

If you are using the example code/SDK, then the problem is with their code; or maybe you missed a step while setting up the SDK.
Afzaal Ahmad Zeeshan 7-Dec-20 11:47am View
   
If you are not using smtplib, then why does your code show the statements from that package?


File "C:/python\email.py", line 3, in <module>
import smtplib
File "C:\Users\Vivek\AppData\Local\Programs\Python\Python38\lib\smtplib.py", line 47, in <module>
import email.utils
ModuleNotFoundError: No module named 'email.utils'; 'email' is not a package
Afzaal Ahmad Zeeshan 2-Dec-20 0:21am View
   
Right, I have multiple applications and I use React for the frontend development. It is my personal choice, as it is very easier to start prototyping the UIs and then host the apps online as well.

But, Angular, Vue.js, and other frameworks such as Blazor (C# based) also work just fine. It depends no what is needed by the framework as well.
Afzaal Ahmad Zeeshan 27-Nov-20 22:00pm View
   
So, ultimately the content is inside the HTML (either as a hyperlink or inside the JavaScript). If the later is the case, then a quick JavaScript contains can check where the file is.

But, whether you will be able to download it is a different question in its own self. :)
Afzaal Ahmad Zeeshan 27-Nov-20 21:57pm View
   
Why not just change the password so your brother cannot access it?
Afzaal Ahmad Zeeshan 21-Nov-20 0:39am View
   
It shows the wrong data or does the query fail to execute?
Afzaal Ahmad Zeeshan 20-Nov-20 22:15pm View
   
What is the code that you are using to perform this?

Show the code as well.
Afzaal Ahmad Zeeshan 19-Nov-20 11:20am View
   
Does the file file2.txt exist, or gets created at all?
Afzaal Ahmad Zeeshan 17-Nov-20 3:18am View
   
I have expanded over my comment in the answer, see Solution 1.
Afzaal Ahmad Zeeshan 15-Nov-20 19:17pm View
   
I think there is a missing space there, it might be std::vector vec.
Afzaal Ahmad Zeeshan 15-Nov-20 14:39pm View
   
Just a quick note: If your binary search performs a sorting (O(N logN)) and then performs a binary search (O(logN)) then I can tell you roughly that linear search will perform fewer operations (O(N)).

Regardless of input, your binary search will be doing a sort.
Afzaal Ahmad Zeeshan 14-Nov-20 17:12pm View
   
This must be a Qt specific feature, check the documentation for this.
Afzaal Ahmad Zeeshan 30-Oct-20 17:01pm View
   
Depends, which file are you using as the entry point for the program?

You should be using TestSandwich, please verify that from the IDE.
Afzaal Ahmad Zeeshan 14-Oct-20 14:59pm View
   
It is possible, and yes, you can write a simple if...else statement to run the commands on your DOM too (a very basic jQuery code $("#firstname").focus(); should be enough for this). But again, what if user says something else? Or what if the microphone doesn't catch the correct statement?

There are more errors and edge cases to catch here.
Afzaal Ahmad Zeeshan 14-Oct-20 13:54pm View
   
What exactly is the problem?

It just says that the file is not found; it might be the main page, it might be a missing DLL etc.
Afzaal Ahmad Zeeshan 28-Sep-20 23:24pm View
   
I think the problem is being caused by the program that is saving your file; it might not be appending an EOF symbol before flushing the stream to a file.
Afzaal Ahmad Zeeshan 28-Sep-20 23:23pm View
   
JSON is just there to help you with the data interchange between the server and the client application. If your client-side part contains the styling, then your server should have that as well.

I would like to recommend using email templates; either custom or mail vendor provided ones. They would help you in many ways.

Oh, and always try to prevent HTML content that is not validated for XSS and other forgery scripts, it would lead to a big trouble for your service in future.
Afzaal Ahmad Zeeshan 6-Sep-20 7:36am View
   
Why are you reading as a stream, why not ReadAsString?

Secondly, why are you even bothering with older technology (WebRequest), I would recommend using HttpClient and its helper methods that return the entire HTML document as a string for you to easily apply a .IndexOf() method on it.
Afzaal Ahmad Zeeshan 3-Sep-20 22:39pm View
   
And I have told you, it is easier to handle that logic with the events so that your Forms notify each other of the states and updates.
Afzaal Ahmad Zeeshan 3-Sep-20 12:42pm View
   
What is the database structure? Please see that the column "id" exists there.
Afzaal Ahmad Zeeshan 3-Sep-20 11:04am View
   
Instead of posting as a Solution, you can always comment on the OP and author will be notified for the message.
Afzaal Ahmad Zeeshan 3-Sep-20 11:02am View
   
You wrote it in English, now write this exactly the way it is in C#. :-)
Afzaal Ahmad Zeeshan 3-Sep-20 11:02am View
   
5ed.
Afzaal Ahmad Zeeshan 3-Sep-20 11:01am View
   
Simple would be ugly; I am warning again, as that would contain a lot of bad practices, indeterministic branches, quantum fluctuations (okay, I lied with this one! ;-)...), but you get the point.

Learning the events in C# is the best bet for you here. But I have shared a sample code that would give an easier way to do this.

Note: From your code I am assuming that you want to open the test form after the current test form has closed. Which will be possible with the events more easily.
Afzaal Ahmad Zeeshan 2-Sep-20 10:15am View
   
Depends. Any book will do, unless you are doing some research or want to get an area-specific knowledge of TCP/IP applications.
Afzaal Ahmad Zeeshan 2-Sep-20 8:58am View
   
Does it fail, and if so, what error does it give?

Also, you did not show the stored procedure code so it might be a little difficult to debug.
Afzaal Ahmad Zeeshan 2-Sep-20 8:57am View
   
Can you try with the port 25 first?
Afzaal Ahmad Zeeshan 2-Sep-20 6:41am View
   
Why using such an old technology?
Afzaal Ahmad Zeeshan 2-Sep-20 6:41am View
   
Thank you, Maciej!
Afzaal Ahmad Zeeshan 1-Sep-20 23:03pm View
   
Are you using a web project or a desktop project?

And, do you have the license required to run the library? It might be a license-related trouble.
Afzaal Ahmad Zeeshan 1-Sep-20 23:02pm View
   
It is recommended to use Trial version of a product to ensure it fulfills your needs before purchasing a license.
Afzaal Ahmad Zeeshan 31-Aug-20 23:51pm View
   
Yes, they are connected in that deep learning is a subfield of machine learning; the part which deals with the artificial neural networks. Then again, it depends heavily on who is teaching, what course you are taking (beginner/advanced), etc.
Afzaal Ahmad Zeeshan 31-Aug-20 22:25pm View
   
Have you tried to see if they are the same?

Solution 1 gives a good answer on this.
Afzaal Ahmad Zeeshan 27-Aug-20 21:39pm View
   
CodeProject used to have video resources support; now primarily text-based content is published.
Afzaal Ahmad Zeeshan 27-Aug-20 21:37pm View
   
And the problem with the new features is?

If you are interested in learning more about a sample from one of the articles, please ask the question under the article; QA is off-topic for article discussions.
Afzaal Ahmad Zeeshan 20-Aug-20 5:18am View
   
Sounds like an interview/homework question.

Where are you stuck?
Afzaal Ahmad Zeeshan 14-Aug-20 12:17pm View
   
Get where?

Node.js will probably help you develop/deploy all sorts of websites; trust me, I have written stronger and more complex applications in Node.js. How-to is up to you!
Afzaal Ahmad Zeeshan 4-Aug-20 21:33pm View
   
Not sure, but are you allowed to use spot start in the parameters? That should be an error.

Try changing that to:


def cavMove(self, board, start, end):
pass

This should work for you.
Afzaal Ahmad Zeeshan 3-Aug-20 21:36pm View
   
As far as I know, browsers control the zoom and not ASP.NET (regardless of version 2, 4 or the vNext).

Was ASP.NET handling the zoom manually?
Afzaal Ahmad Zeeshan 3-Aug-20 21:35pm View
   
Normally, Entity Framework should be able to check for a duplicate based on the primary key.

But, if you do not have the primary keys and you want to "INSERT" the records but ignore the duplicates, then the first query which records are available.

I would recommend using a stored procedure to improve performance.
Afzaal Ahmad Zeeshan 3-Aug-20 21:34pm View
   
I think that is a question for Google; it is not the device only, but several other factors that you should look into to decide which device you should add.
Afzaal Ahmad Zeeshan 24-Jul-20 22:23pm View
   
And the current problem is?
Afzaal Ahmad Zeeshan 5-Jul-20 20:50pm View
   
"String or binary data would be truncated.\r\nThe statement has been terminated."

The error means that your data (in one of these columns) is larger than the column (in the database) allows. Check which column it is.
Afzaal Ahmad Zeeshan 5-Jul-20 6:40am View
   
That is a complete module that you want to build, and this it is not suggested for Tip/Trick section. I recommend searching for an article here on CodeProject using the search box in top-right corner.
Afzaal Ahmad Zeeshan 3-Jul-20 10:20am View
   
And what code it is?
Afzaal Ahmad Zeeshan 3-Jul-20 5:59am View
   
5ed.
Afzaal Ahmad Zeeshan 3-Jul-20 5:58am View
   
Which username you are trying to check here?
Afzaal Ahmad Zeeshan 3-Jul-20 5:57am View
   
You can:

1. Remove the browser history using Windows History API
2. Prevent the browser back button event.
3. Close the tab.
4. Run a script on the previous page to check the session or the browser history state (if the next page was log out page, close the tab).

There are several options in which you can control this; and they all depend on the business requirements.
Afzaal Ahmad Zeeshan 29-Jun-20 7:23am View
   
Share the code that you have tried to write and we might be able to help you.
Afzaal Ahmad Zeeshan 24-Jun-20 18:09pm View
   
Although it is highly unlikely that Microsoft would support or provide support for C or anything like COM etc. The focus now is more on "getting-things-done". Also, .NET 5 is still in preview so several libraries/packages will not be available for use, and that means most of .NET related work that helps in this area does not work.

Have you tried creating a bridge between named semaphore/named mutex? :-)
Afzaal Ahmad Zeeshan 24-Jun-20 18:05pm View
   
It means that the user account that you have created either did not have a login set up properly for the database, or the password is incorrect.

Check this thread to learn more on that.
Afzaal Ahmad Zeeshan 22-Jun-20 10:57am View
   
Try removing the say_hello("Gabriela") part, maybe you are not required to call the function as the testing part will do that for you.
Afzaal Ahmad Zeeshan 10-Jun-20 16:30pm View
   
Hey Richard!

Yes, I started working on a few projects with some clients. What has been taking most of my time is my studies—I started my MS in Computer Science.

I am planning to join the community again, but you know how assignments are. :laugh:

Also, I hope you are safe and healthy during this COVID-19.
Afzaal Ahmad Zeeshan 9-Jun-20 22:43pm View
   
If the page is not loading, then you can do two things:

1. Check if the request is being sent to the page you have added (check under the Network tab in your browser developer tools).
2. If the request is being made, then debug the code and see where (and why) it fails.

More likely, it would help you decrease the area of the error. If you see a 500 in the Network tab, then it is a problem with the PHP code execution—otherwise a problem with the SQL logic. These are just a few starters. :-)
Afzaal Ahmad Zeeshan 9-Jun-20 20:35pm View
   
5ed.
Afzaal Ahmad Zeeshan 9-Jun-20 20:32pm View
   
A recursive approach might be prone to stack overflow exceptions, where a loop and iteration based approach (if it works!) is better from runtime's standpoint.

Their algorithmic complexity (more or less) is the same.
Afzaal Ahmad Zeeshan 1-Jun-20 23:14pm View
   
I don't think the error is coming from the code that is being shown in the SQL you have shared.

Maybe try debugging the code, or something, or show the complete code at least the code that has the DECLARE keyword or @adminaccess parameter.
Afzaal Ahmad Zeeshan 1-Jun-20 17:06pm View
   
And the problem is?

Your OP has the title for C, but tag and program in C++. Also, check out the Microsoft documentation to learn how to do this using C++: https://docs.microsoft.com/en-us/sql/connect/odbc/cpp-code-example-app-connect-access-sql-db?view=sql-server-ver15
Afzaal Ahmad Zeeshan 12-May-20 18:12pm View
   
What is this CharacterCount.Count method?
Afzaal Ahmad Zeeshan 11-May-20 14:35pm View
   
Sure,

How are you connecting or establishing the connection over TCP/IP? Can you share the entry points for these two programs?
Afzaal Ahmad Zeeshan 3-May-20 7:45am View
   
Do not repost the questions, that does not help with answers.

If you have more information regarding the problem statement, use the Improve Question button and modify the problem statement in original post.
Afzaal Ahmad Zeeshan 2-May-20 17:05pm View
   
That is because Arabic characters cannot come in ASCII code, you need to have Unicode for that. ASCII can only contain English characters.
Afzaal Ahmad Zeeshan 2-May-20 6:06am View
   
Afzaal Ahmad Zeeshan 1-May-20 6:46am View
   
OP wants to run the code on user machine, which is not going to happen even if they migrate their application to ClickOnce. Plus, he does not want to share his code, even after compilation with fear that customers might redistribute his application.

Please see a different approach in Solution 2 that I suggest.
Afzaal Ahmad Zeeshan 27-Apr-20 15:55pm View
   
Your queries are different. You are not even trying the query you wrote in SQL to be written in LINQ. In LINQ, you are trying to check the value of status, whereas in SQL you are checking the value of "exp". Unless exp and Status are two same things. :-)
Afzaal Ahmad Zeeshan 24-Apr-20 5:33am View
   
And the problem is?
Afzaal Ahmad Zeeshan 22-Apr-20 5:55am View
   
You forgot to mention the 2 questions as well as the problems you are having.
Afzaal Ahmad Zeeshan 11-Apr-20 22:48pm View
   
I believe you are hardcoding the content, that is weird. You should come up with a dashboard or front-end that will manage the layer for data creation and query.
Afzaal Ahmad Zeeshan 11-Apr-20 22:46pm View
   
That is a question for Google.
Afzaal Ahmad Zeeshan 9-Apr-20 20:45pm View
   
Yes, it makes sense.

Although, you can add more detail to the program by adding indentation and using the parameters and other hardcoded values. Such as, If the second argument is a version or v, then print the Delly version. Something like that so that the user can know what is going on.
Afzaal Ahmad Zeeshan 9-Apr-20 13:31pm View
   
You are not printing anything else on the console, so how can you see anything else in the console?

Secondly, the logical aspect of the program can only debug using a debugger. Run the program with Visual Studio and set a breakpoint in this if statement. Then move step by step to check what is missing.
Afzaal Ahmad Zeeshan 9-Apr-20 10:13am View
   
Please study the C++ control structures, the one you are looking for is a do...while to perform an input capture and then re-execute the code until the user continues to provide 'y' in the input.
Afzaal Ahmad Zeeshan 8-Apr-20 22:29pm View
   
His JavaScript is incorrect which prevents anything from being printed on the screen. I wrote a solution to their problem in Solution 1, please see.
Afzaal Ahmad Zeeshan 1-Apr-20 5:09am View
   
The error is on line 5 and 6. It comes from events.js. Pretty sure something is wrong with this configuration in your React app. Did you follow the steps as they were mentioned?
Afzaal Ahmad Zeeshan 1-Apr-20 4:52am View
   
Are you sure echo can be upper case? I believe you need to use it as a lower case. Not a PHP expert though.
Afzaal Ahmad Zeeshan 1-Apr-20 4:50am View
   
How did you publish the package for the client to use it? Perhaps, you missed packaging some dependencies.
Afzaal Ahmad Zeeshan 31-Mar-20 9:38am View
   
Then you can use logging with try...catch block to find where the exception gets triggered. Try using ELMAH (ELMAH) and capture when an error is triggered.
Afzaal Ahmad Zeeshan 30-Mar-20 2:55am View
   
Thank you.
Afzaal Ahmad Zeeshan 29-Mar-20 16:53pm View
   
Is the path correct? Also, try to see what output is being generated on the browser.
Afzaal Ahmad Zeeshan 28-Mar-20 17:12pm View
   
Yes, it is possible.

You just need to write a Prt Scr handler and then write the code to save the graphics as an image in Excel.

Try this tool for the handler part, https://www.autohotkey.com/, and then write your code to save a file in Excel.
Afzaal Ahmad Zeeshan 28-Mar-20 10:50am View
   
Use the inspect element tools of the browser to know why the image is outside the bounds. We cannot access the application, nor the image.
Afzaal Ahmad Zeeshan 20-Mar-20 22:05pm View
   
The application is created, there is a logic error. Share the error that you see as well as the code in Java that you have written.
Afzaal Ahmad Zeeshan 17-Mar-20 7:57am View
   
That means the password is incorrect. Are you using single quotes around the password? Try that.
Afzaal Ahmad Zeeshan 17-Mar-20 7:02am View
   
As I said, try using a front-end framework and distribute the work among different components that load the data as needed and discard it (or save it in localStorage APIs) as needed.

Loading the full batch of data in a single instance of DOM is not good. By this I mean rendering the data in the DOM, just downloading and keeping the batch in memory is a different story.
Afzaal Ahmad Zeeshan 6-Mar-20 13:51pm View
   
Is the button greyed-out, not showing altogether, or you cannot find the button?
Afzaal Ahmad Zeeshan 31-Jan-20 14:57pm View
   
It means that your ASP.NET web application does not have access to the user's machine (including their hard drives). The best thing to do is to allow the users to download a file, which browser will allow them to save on their device.

Otherwise, a web application cannot access the user's machine due to sandboxing applied by browsers for security and privacy reasons.
Afzaal Ahmad Zeeshan 9-Jan-20 8:04am View
   
That is a JavaScript function and Angular uses that. So check MDN documentation for that.
Afzaal Ahmad Zeeshan 9-Jan-20 8:03am View
   
Do you want to do that in the physical data or in a view or something?
Afzaal Ahmad Zeeshan 6-Jan-20 8:16am View
   
Yep, that is possible too. But, sadly covering all that is beyond the scope of this forum. You might find something in the articles section (top right corner to search).
Afzaal Ahmad Zeeshan 12-Dec-19 7:07am View
   
Never mind

And what gets stored in the database after this code executes?
Afzaal Ahmad Zeeshan 11-Dec-19 2:44am View
   
Where exactly you get the error?

I am doubting that you should be getting the error inside the last foreach because a = x.a, b = x.b,... is invalid.

Try:


foreach( var x in inter) // this is okay.
{
a=x.a;
b=x.b;
c=x.c;
d=1; // might need to use var d = 1;
e=2; // might need to use var e = 2;
}
You need to check more on the C# language grammar to understand how these are processed.
Afzaal Ahmad Zeeshan 8-Dec-19 2:38am View
   
Pass the reference of the first form to the second form's constructor. This way you will be able to make changes to the member fields of the first form (use encapsulation). This is the easiest approach.
Afzaal Ahmad Zeeshan 29-Nov-19 0:18am View
   
Just curious, what is the difference in simply doing this?

oldstring.replace(" ", "");
Afzaal Ahmad Zeeshan 28-Nov-19 7:53am View
   
I would highly recommend using SQL relations and perform a delete on child tables automatically as the parent data gets removed. That is the benefit of using a SQL database.
Afzaal Ahmad Zeeshan 27-Nov-19 22:15pm View
   
You might have to rebuild the project for the control to be visible.

See more on this here.
Afzaal Ahmad Zeeshan 27-Nov-19 11:44am View
   
Thank you.
Afzaal Ahmad Zeeshan 27-Nov-19 2:36am View
   
What is the problem that you are facing?

Check the browser console to find any issues or errors.
Afzaal Ahmad Zeeshan 26-Nov-19 6:17am View
   
We cannot help you this way, we need to see the code you used so that we might know what is happening.
Afzaal Ahmad Zeeshan 22-Nov-19 18:27pm View
   
There is a difference in ExecuteScalar and ExecuteQuery, please read their documentation to know about the difference — a quick answer is that ExecuteQuery would return the records and ExecuteScalar would return a count of the rows that were processed.

To fill the data to rows, you use the DataReader, then you can simply use indexers ([]) to access the column value. Please check the link I provided for DataReader it has the answer to your question. :-)
Afzaal Ahmad Zeeshan 22-Nov-19 18:00pm View
   
How is dynamically created SQL statements not SQL?
Afzaal Ahmad Zeeshan 22-Nov-19 17:23pm View
   
I don't know how you are comparing pivot to a stored procedure? A stored procedure is just a function, where the pivot is something that you are looking for here.

I guess a pivot around PropertyName is something that you want... Because there is no way to return the columns based on properties like ... [PropertyValue] as 'PropA' since the data is intertwined.

Read more on PIVOT here and see if that sample tells you something.
Afzaal Ahmad Zeeshan 21-Nov-19 17:42pm View
   
It would be great if you can check with the tutor and tell them what is wrong with the code.

I have updated the answer and added an explanation to use the code, and also to overcome the null pointer problem. Please see the last section in the answer.
Afzaal Ahmad Zeeshan 21-Nov-19 1:32am View
   
If the data is not showing then there would be some useful information in the browser console. Please use F12 to check console and share what the exact error message is.
Afzaal Ahmad Zeeshan 20-Nov-19 23:03pm View
   
In this case, where the access to the fields cannot be determined, you can use if...else blocks to prevent these exceptions.

This also shows the code is not being covered by tests properly.
Afzaal Ahmad Zeeshan 19-Nov-19 9:44am View
   
5ed.
Afzaal Ahmad Zeeshan 19-Nov-19 9:43am View
   
5ed. A good alternative if OP needs to use a single value as a comparison.
Afzaal Ahmad Zeeshan 19-Nov-19 9:42am View
   
He means to say, that your HTML does not contain an element with id temperature. Are you sure this is the complete code?
Afzaal Ahmad Zeeshan 16-Nov-19 18:00pm View
   
Why are you doing a lot of GC collection?
Afzaal Ahmad Zeeshan 14-Nov-19 18:29pm View
   
You can unsubscribe from the newsletters.
Afzaal Ahmad Zeeshan 14-Nov-19 17:29pm View
   
Did you try?
Afzaal Ahmad Zeeshan 12-Nov-19 9:55am View
   
This seems to be a problem in cases where you want to show that a program crashes. Happens with me several times when I am authoring a course or book or article, I want the program to crash so badly, but it is like, "Not today!". :laugh:
Afzaal Ahmad Zeeshan 9-Nov-19 15:35pm View
   
I don't see where you are submitting the user id in the request.
Afzaal Ahmad Zeeshan 9-Nov-19 15:33pm View
   
And how is it not responsive? Did you try using CSS3 media query?
Afzaal Ahmad Zeeshan 9-Nov-19 15:22pm View
   
If there is a problem, please share the error message.
Afzaal Ahmad Zeeshan 9-Nov-19 15:22pm View
   
CURSOR was also something that I thought about by reading the first few lines of the code.

5ed.
Afzaal Ahmad Zeeshan 9-Nov-19 15:19pm View
   
This is not a good question: We do not know what you mean by "switch turns back and forth constantly". How do you define an action?
Afzaal Ahmad Zeeshan 7-Nov-19 18:32pm View
   
5ed!
Afzaal Ahmad Zeeshan 7-Nov-19 7:33am View
   
That problem is with the server-side code, your jQuery is fine.

Add a breakpoint on the Create function and debug it.
Afzaal Ahmad Zeeshan 1-Nov-19 7:11am View
   
Just like you would use any other package for a .NET Core 3.0 based projects, just download the NuGet package and get started.

What's the question?
Afzaal Ahmad Zeeshan 1-Nov-19 7:10am View
   
Binding is a complex topic for starters, but it is always the best.

5ed.
Afzaal Ahmad Zeeshan 1-Nov-19 7:09am View
   
Maybe try setting a font. Although I am not an expert in iTextSharp, but I feel like you are only getting the font, not setting it anywhere. Maybe I am wrong, but the error says something like that.
Afzaal Ahmad Zeeshan 31-Oct-19 6:05am View
   
Apart from the assignment, in C# it will also give a compilation error since if expects a boolean value—that will work just fine in C++ based on the resulting value.
Afzaal Ahmad Zeeshan 31-Oct-19 5:45am View
   
Not necessarily, no. But it is always good to test the functions individually—that is the purpose of unit testing. If you test a single function, say, main, then the entire purpose of unit testing fails. Similarly, not mocking and testing internal functions also leaves the room for bugs to enter your code.
Afzaal Ahmad Zeeshan 31-Oct-19 5:44am View
   
Then try to debug a wrapping function that further calls this method.
Afzaal Ahmad Zeeshan 31-Oct-19 5:43am View
   
Would be great to debug the code and see what causes it to return null.
Afzaal Ahmad Zeeshan 29-Oct-19 6:41am View
   
What error do you get?
Afzaal Ahmad Zeeshan 26-Oct-19 18:25pm View
   
That does not help us understand the problem, please run the program with a debugger.
Afzaal Ahmad Zeeshan 25-Oct-19 15:26pm View
   
On which line does it give a null pointer exception?
Afzaal Ahmad Zeeshan 21-Oct-19 4:51am View
   
Fetching the first 50 records would still need you create a runtime object (deserialize the XML), which as already mentioned in Solution 1 needs a valid XML document.
Afzaal Ahmad Zeeshan 14-Oct-19 5:59am View
   
That is not a section, merely a background color for a row. You can add a background color to the row almost in any way—data binding, hardcoding, storing the row color in the database.
Afzaal Ahmad Zeeshan 11-Oct-19 2:49am View
   
First thing: Why is this not working? Is it because every 6+ row is black?

It would be amazing to use a converter that converts a string-based value to a brush instance.

The benefit? This way you will get rid of this foreach loop, and you can pass the value for a brush along with the instance from the data source.
Afzaal Ahmad Zeeshan 10-Oct-19 4:02am View
   
If you have passed down correct Gmail username/password, this code would work just fine, can you try using the port 25 for this and see how that works?
Afzaal Ahmad Zeeshan 10-Oct-19 2:08am View
   
How are you mapping the routes here?
Afzaal Ahmad Zeeshan 10-Oct-19 2:01am View
   
Try to reinstall, and do not turn your machine, or internet connection off during the process.
Afzaal Ahmad Zeeshan 9-Oct-19 2:46am View
   
I am not sure if that is possible, but if a dll can load the content of the device then perhaps try emulating that dll in Linux—if written in C#, then use Mono, or something other like that.
Afzaal Ahmad Zeeshan 8-Oct-19 15:25pm View
   
What do you mean one under one? You are adding rows, they show up one under one.
Afzaal Ahmad Zeeshan 8-Oct-19 2:07am View
   
Can you share the reference for that SDK approach? Maybe we can guide you better from there.
Afzaal Ahmad Zeeshan 8-Oct-19 2:04am View
   
I think that is too bad, if Python cannot handle even small amount of data, don't you think?

OP would need to use an iterative solution to this. :facepalm:
Afzaal Ahmad Zeeshan 8-Oct-19 1:32am View
   
What is the error?
Afzaal Ahmad Zeeshan 8-Oct-19 1:32am View
   
I am not sure if the SDK supports this feature, but there are a bunch of options available for in-app configurations.
Afzaal Ahmad Zeeshan 8-Oct-19 0:35am View
   
You are using codesankbox ./, the name should be codesandbox ./—note the k in sandbox.
Afzaal Ahmad Zeeshan 7-Oct-19 5:36am View
   
Perhaps you need to use Bootstrap's JavaScript features in this, while building the view using Vue.js.

Here is a thread that discusses how you can show the tab, javascript - Twitter Bootstrap Tabs: Go to Specific Tab on Page Reload or Hyperlink - Stack Overflow[^]

This is a code sample that demonstrates this, https://codepen.io/rnr/pen/dMNZmx[^]
Afzaal Ahmad Zeeshan 6-Oct-19 7:46am View
   
5ed.

You forgot to say, "And that'd be 50 bucks"! :laugh:
Afzaal Ahmad Zeeshan 5-Oct-19 4:21am View
   
Please do not do this; you might get reported as abusive/troll on the platform.
Afzaal Ahmad Zeeshan 4-Oct-19 9:00am View
   
This:
But if I remove the validator such as
Did you try this?
Afzaal Ahmad Zeeshan 3-Oct-19 23:21pm View
   
Try this in the browser and see what happens.
Afzaal Ahmad Zeeshan 3-Oct-19 2:38am View
   
I think you can simply route all the traffic to a particular file on the server. No?
Afzaal Ahmad Zeeshan 3-Oct-19 2:37am View
   
Desktop or Web based solution?
Afzaal Ahmad Zeeshan 3-Oct-19 2:36am View
   
The question has a complete solution mentioned inside it. :-)
Afzaal Ahmad Zeeshan 2-Oct-19 23:06pm View
   
5ed.
Afzaal Ahmad Zeeshan 2-Oct-19 6:54am View
   
Can you check if the browser console logs any errors. Check that using F12.

The code seems okay to me, but any errors might help debugging the problem. :-)
Afzaal Ahmad Zeeshan 2-Oct-19 6:52am View
   
You can do that simply using JavaScript, or otherwise, you will need to include the URL rewriting in the application.

Which framework/runtime/version are you using to develop and host the web application.
Afzaal Ahmad Zeeshan 2-Oct-19 6:51am View
   
Does it return Task<datatable>? Your question is a lot confusing as it stands.
Afzaal Ahmad Zeeshan 27-Sep-19 20:39pm View
   
What error do you get?
Afzaal Ahmad Zeeshan 27-Sep-19 16:38pm View
   
And?
Afzaal Ahmad Zeeshan 27-Sep-19 16:38pm View
   
That is for a new question thread. :-)

Create a new thread, and we can answer these there. But in most cases, you can simply Google that.
Afzaal Ahmad Zeeshan 26-Sep-19 19:30pm View
   
Thank you, Maciej!
Afzaal Ahmad Zeeshan 26-Sep-19 19:30pm View
   
Change the data type of your column to a number type instead of a character type.
Afzaal Ahmad Zeeshan 26-Sep-19 16:20pm View
   
Where do you get the error?
Afzaal Ahmad Zeeshan 26-Sep-19 12:10pm View
   
Does this help?
Afzaal Ahmad Zeeshan 26-Sep-19 10:25am View
   
Using the same concept, you just need to perform a SQL query to get the menu and then render it as I have shown using a foreach loop.

You should read my article to learn about the SQL query and C# code, and use the foreach to render the output. Try and show the code that you have used.
Afzaal Ahmad Zeeshan 26-Sep-19 10:24am View
   
Right, sorry if I misunderstood you.

If you have had experience working with the software previously, then you can either use the older version to perform this action, or you can read what might have changed in the coming versions that is causing this issue.
Afzaal Ahmad Zeeshan 25-Sep-19 15:32pm View
   
Virtual 5!
Afzaal Ahmad Zeeshan 25-Sep-19 15:31pm View
   
Maybe you need to grant the access rights to the process. :-)
Afzaal Ahmad Zeeshan 25-Sep-19 15:31pm View
   
Maybe you need to grant the access rights to the process. :-)
Afzaal Ahmad Zeeshan 25-Sep-19 13:56pm View
   
Thank you, Bill! :-)
Afzaal Ahmad Zeeshan 25-Sep-19 13:54pm View
   
Hi Bill, I posted this as answer and included your suggestion for SortedDictionary with a heads up for the OP.
Afzaal Ahmad Zeeshan 24-Sep-19 13:26pm View
   
If the library does not exist, then why not just import it there?
Afzaal Ahmad Zeeshan 24-Sep-19 13:25pm View
   
5 smallest shapes in the list, or 5 shapes smaller than a size, or what?

A simple answer would be, list the shapes with their area, and then sort them in descending order based on their area, finally get the top 5.
Afzaal Ahmad Zeeshan 24-Sep-19 13:20pm View
   
Best bet would be to debug the function and step through it line by line. Only then you can see when an HTTP request is made.

Ignore the comment, please see Solution 1.