I am working on a project that requires me to code multiple text blocks over an image (a diagram). But the way I coded it will not allow the image to render in any other page view other than full screen. When changing the screen size, the text gets all jumbled up. Can you please help me understand the correct way to code text over an image and have the text convert with the image as the screen size changes?
I've a general (beginner) question about web programming. I'd like to display content graphically on a web page whose data is generated by a permanently running C++ program (in Qt).
For me, the first question is, which technologies do I need for this?
In my naivety I would now assume that the Qt program for generating data would have to run on a server with a fixed IP. It would also have to be able to connect via sockets.
The website would use a PHP script running on a web server, so that it would somehow communicate with the Qt program?
The C ++ executable application under Qt must save its data produced in a BDD Database
(or a file) on the web server side; and the web application (also running on the server), called
by the remote client web browser, will read these data in the DB (or in the file) for then
interpret / decode them then display them as graphics in the client browser.
For example in PHP, there are functions to access the mySQL database.
Under Qt, you can also access mySQL databases in C ++.
Other solutions :
- use (or design) a suitable PHP extension,
- call the executable C ++ program from PHP with the PHP function shell_exec ()
( see an example of "Serial COM port access in PHP" here: https://radiovibrations.com/techblog.php?i=10 )
I am using Kendo Grid in my application and need to implement better paging feature, sorting, Filtering,Groping and customization. Please share if anyone as implemented this feature already.
Every http request has a verb, that's just how http works, the verb lets the service know what action is being done, the theory being that you can use the same url to do different things. If you have the following endpoint
then calling it with GET will return product 5's data, calling it with DELETE will delete product 5 and so on. Because all requests have a verb you have to tell .net which verbs are valid for your method.
The word 'delete' doesn't even exist in the method. What's stopping me from calling it?
If you put a non-delete verb attribute on it then the framework will stop you calling it, it will return a 404. .net has two ways of associating methods with verbs, one is the explicit adding of the attributes which will restrict what can route to that action. It also follows a naming convention so you can put the verb at the start of the action name, so GetProduct, DeleteProduct etc and .net will use that to route your calls to the right method by matching the verb with the action prefix. You can choose to follow neither convention and use bespoke names and no verb attributes and the routing will (I assume) work on the action name only.
So the purpose they serve is that if you want to following proper semantic api conventions where you route your calls to actions based on the verb then the HttpXXX attributes allow you to implement that convention if you don't want to use the names themselves to route your methods.
If you put a non-delete verb attribute on it then the framework will stop you calling it, it will return a 404.
This is what's confusing to me. I have a Web API with NO verbs on it, and I can call it from my WPF app just fine. That's what got me posting this... what's the point of the verbs if I can create and call methods without them?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
Last Visit: 31-Dec-99 19:00 Last Update: 29-Nov-21 8:58