Local web application without web server and access to SQLite [closed] - sqlite

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to develop an ERP system, but I want it to run on a web browser. I want it to store data in an SQLite database, but I don't want it to have to work as client/server, just local.
I also want to have access to environment variables and the filesystem. Ultimately I want to manipulate the DOM using C instead of JavaScript.
Is there a browser, framework or library for this?

As far as I know, it's impossible to manipulate the DOM with any language other than JavaScript - since that is the only programming language which the browser will run.
I would try to think of one of the following:
1) Run a local web server - why shouldn't you? I am not sure about C, but Python, Ruby, JS and many other languages make these extremely simple to set up.
2) Just write a GUI application, if you are really opposed to having another program running in the network.
3) If you're not opposed to Python (instead of C), you can try out Pyjamas - a framework which allows you to code a web-app in Python, and use it as a desktop app later (without running the server). The non-server version won't actually run inside a browser though (AFAIK - I've never tried it myself).

Related

R machine learning model deployment as webservice [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is there any way to deploy machine Learning model written in R language as a webservice, I know we have Flask in python and many more too, but didnt come across for any such library for R Machine learning code.
As others suggested, you can use R-Shiny to build an app which you can later deploy as a web service easily. Moreover, you can use html code inside shiny so you can customise your layout to your heart's content. If you are using RStudio (which I definitely encourage if you don't), you only need to select File > New File > Shiny Web App... Have a look at documentation and examples here.
However, if you only want to create a compact and fast web service without having to build a layout etc, I would suggest you use R plumber library. This is a good solution if you don't need anything too fancy and also is easily implementable by adding decorators to your current code.
Hope this helps!

how to detect website leaking data [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have recently built a website based on WordPress. I got a free theme from a source in Pakistan.
I have to use this theme because it perfectly serves my purpose. But I want to know that if this theme is quietly establishing a connection with another server and sending my data.
How can I detect that my website is internally sending some codes to the server of developer of theme? Also, I need to know what servers are being communicated with — like, if any image is getting loaded from their server, any code is imported from their server, or anything else is being fetched from their server to run.
Since you have the source code, then you can simply look what this theme does - basically theme should only be HTML and CSS (or mostly it). If there is too much suspicious PHP of Javascript I wouldn't use it.
If you want to see if it connects to some outside sources, run it in your controlled environment and use some network sniffing tool like Wireshark for example.
Generally speaking - if you don't trust the source where you got your theme and you are not good enough in programming to check for malicious code yourselves, don't use it!
I would recommend downloading some of themes provided directly by wordpress.org - those should be safe.

What kind of applications can be written with Qt + Enginio [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm totally confused about what kind of applications can I write If I learn how to use Enginio. This is what the Enginio site says:
With Enginio, you can create stunning Qt applications, add a scalable
and powerful Qt cloud backend as a service in no time and deploy in
minutes without ever bothering about backend servers or scalability
problems.
Can I think of Enginio as a remote QFile or is it much more bigger? Can someone name some samples written with Qt + Enginio.
It looks like this is a new service still in development, hence there isn't a tag for it, yet.
From the website, it looks like they provide you with some of the common things all applications need, and provide an interface for qt. You can basically create whatever you want.
Instead of providing only a remote file, they also let you store json objects, lowering some of the impedance between object and file.
Probably not too many examples with this new thing. Maybe you can ask them to provide more samples.

MsSQL callback function to asp.net website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am looking at the possibilities when it comes to making a trigger on a SQL server, trigger a function on my website (without having to poll it every x minutes).
The reason being, I am attempting to create a caching service for my SQL data to where it will only update the cache when there are changes to the table it is setup for. The idea would be that items which are in the database, rarely changed and used often enough to want to skip the expensive trip to the database.
any ideas would be great, thanks.
SQL Server supports event notifications for just this type of problem.
http://msdn.microsoft.com/en-us/library/ms190427(v=sql.105).aspx
If it's data that you want to put in the application cache then you could consider using the SqlCacheDependency class (http://msdn.microsoft.com/en-us/library/ms178604(v=vs.100).aspx). This will expire the cache when there is a predefined change in the database thus avoiding the need for any kind of polling.
Of course it depends what your exact problem is to whether this will meet your needs
SQL Server has CLR integration (albeit at last check, only with .NET 2.0). This means you can run some assembly marked as such from a function/stored-procedure/query. Here is the documentation:
MSDN SQL Server CLR description
You can write an assembly with an exposed method for SQL Server and run it directly from there, thus completing your loop in C#/VB/.NET language of your choosing. This may be a little heavy handed if none of the above answers have what you're looking for, but I'm pretty sure offers the most flexible approach where you control everything.

Best workflow for iis an vs asp.net development [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm an asp.net developer, but I haven't found a good workflow for deployment. Especially for small quick fixes that might not even require compiling.
The way I work now is to have two VS instances up while copy pasting a lot of code and files between the project and the folder on the IIS server. Is there an automated process that moves changes as I save in the VS project?
Generally speaking, what you are doing is a pretty big no no for a lot of reasons.
When you make changes one of the big advantages ASP.Net has over something like PHP is simply that obvious problems (like misspelling a variable name) are caught during the build phase. This is a huge benefit.
Next, if you are simply modifying a file and copying it's content to the server then it sounds like you are doing your testing in production instead of leveraging your local debugger. Again, very bad practice.
Finally, VS includes a publish command. The purpose of this is to compile and publish your site to the server. It can do so through the regular file system, FTP, web deployment packages or even FPSE. That last one is NOT recommended and is probably kept for backwards compatibility only.
Point is, develop and test locally. When your ready for it to go to the server, use the publish command.

Resources