It seems like there isn't anything on the web on this. In Android I can access the database file by browsing the filesystem in Logcat. However, I don't know how to view the content of my database on iPhone, which is populated using the Phonegap Storage API.
Since the question doesn't contain any code, it would be kind to tell me where to ask the question if I may be wrong here.
Thanks a lot for your time.
Related
I am posting this question as I would need some good advice to start building my very first app.
First, I'd like to share the aim of the app: being able to take pictures from (different) mobile devices' cameras, having a graphic (like a mask, an image) showing up when looking into the camera. The intent is to have a virtual car which I can place next to real people when shooting my pictures, see the preview and save them.
My first thought was, not to cover how to build apps for different specific devices (e.g. android, iOS, windowsphone), to make a web app. I am fairly fine with programming and web frameworks in general. Is it a reccomendable way to go?
Then, I would like some advices on the lanuages I should use. I am using a linux pc and have understanding in HTML, CSS, PHP, Python, and a bit of JavaScript. Would this be enough?
Can you point me to some useful link/tutorial?
Thanks in advance and sorry if the question is broad, I hope my points are specific enough to be answered without too much pain.
As far as i understand your question, you want to konw about web technologies wich provides you access to camera.
Whrer is an special method, thats returns object in JS, thats can capture camera and mic data:
navigator.getUserMedia()
but it requires sequre protocol https for you server.
You should read about them. In this way, you cat get data from device's camra vai js object, and process, share it as you want.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
i have an Educational website and i create always pdf files from my learning and ad them for download
but there is many learchers that download my files and reupload them somewhere else
i used google dmca but is there any way to Prevent from re-uploading my files?
One way is to use your .htaccess to prevent hotlinking, but even if you do that, you'll again have the problem that when someone views the document via an in-browser extension (e.g. Adobe Reader, Foxit PDF Reader), they can save it and you've lost control over what they can do with it. Or, depending on how you've set up your site, they can simply directly download it, leaving you again back at square one.
Hence, the solution is to bypass direct access to the document. And, there are a number of ways to do that, which varies based on technique and web software (platform) used.
However, since you didn't mention a particular platform or technology: you can use web controllers (MVC type controllers) to broker the dynamic viewing and displaying of the documents in tandem with a client-side tool / plugin to do the displaying for you (much like Scribd).
However, Scribd uses a proprietary Flash PDF viewer called iPaper, and while it isn't available for use, you can find many other alternatives on the web. One that comes highly recommended (there's even a tag on SO for it) is FlexPaper, an open source plugin that implements a client-side web-based PDF viewer - which I think will suit your needs perfectly (from here):
This project provides a light weight document viewer component
enabling PDF files to be viewed without having any PDF reader software
installed. This project provides both Flex library and stand-alone web
version.
Here are some demos of it in action:
http://flexpaper.devaldi.com/demo/
Sorry, by mistake posted partial comment. Anyway...
Why do you afraid of reuploading of your files ? Put links to original site into the PDF and get profit of this. More copies, more downloads, more popularity for your resource. If you indeed would like to make PDFs available from your site only, you have to hide files from users and provide some functionality to read them from your web site only (you can use existing sites of this type). That makes duplicating of your resources to be harder task, but be ready that many users reject to read it this way.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm relatively new to the web development scene, so please excuse any frustratingly obvious questions.
What I've found myself to struggle with is understanding how all the different technologies of web design fit together - how they all fit into the flow of development and their heirarchy.
I understand the basic html,css,javascript flow. HTML defines your structure and content, CSS comes in and then defines the presentation of said content, and finally javascript adds a layer of interaction and defines how the website behaves. Given that, it's easy for me to see how jQuery etc fit into the picture.
As I move towards making more dynamic sites though, I find myself inundated with trying to learn/balance many web technologies and frameworks (django, mysql, sql, innodb, drupal, rails, php, wordpress etc, etc). I realize that some of what i just listed overlap and serve the same function, but that just goes to show my general confusion with the topic. For example, the django example: I understand django is a web framework that runs on python to help you develop web apps quickly, however, the relationship between the server, html, and python is cloudy to me.
Does anyone know of a good source that can outline how all these puzzle pieces fit together (or feel like offering their description of such matters)?
Thanks :-)
I don't know of any resources that explains this the way you're looking for so I'll just add my take. Maybe we can see where I've goofed.
I like to split the technologies into two camps, Client Side and Server Side.
Client Side is anything that runs on or in the web browser on a user's computer, tablet, smartphone, etc. These technologies include:
HTML (for structure)
CSS (for designing the structure)
JavaScript (for making the structure do stuff)
Server Side is anything that requires a connection to a web server and resources on said machine. This may be a web server running on your localhost as a development machine or a server connected to the Internet. These technologies include:
Web server (Apache, nginx, ...) This is what the user actually connects to via www.example.com in their browser
Server Side Language (PHP, python, ruby, ASP.net, ...) This is what provides access to a physical data storage, like a...
Database (MySQL, SQLite, PostgreSql, MongoDB, ...) This is where the data about your website or app is stored
So, in your example a user would connect to a web server, access a file holding a python script that connects to the site's database and then produces the appropriate HTML, CSS and JavaScript to generate a webpage on the browser's screen.
Obviously this is overly simplified and there's a lot more that goes into it but this is it in a general nutshell.
I would also definitely read this post a lot.
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
Before I start: I know this is a very broad question, but it is the best way I could phrase it, I have searched around a lot and can only seem to find generic explanations. I searched SO and didn't find much. I have also skimmed through some pages in the wordpress codex, and didn't find anything really useful.
I would like to create a simple database driven blog-style website, it will really only consist of stories (their title, date, content, etc), I just began teaching myself web development and my idea of how database driven websites work has proven to be completely wrong. I figured you would always need a file connecting to the database for each article, but the more I read I learn about mark up being generated on request, and so on, so the actual /year/month/day/article doesn't actually have to exist on the server, or that may be wrong, that is why I am here.
As I said I cannot find much on this topic that isn't a generic graphic of a server interacting with a web page. How does one go about creating a database driven website of this style? Are the files/directories not actually on the server but only created on a case by case basis as someone requests it? If so, then why can you type out a complete url and it be there with out throwing a 404? I have a lot of questions, really all I need is a strong explanation of how these sites work, code examples, and so on. Could someone explain how they work or point me to information (recommended articles, examples or books)?
EDIT: Please don't recommend a framework, I want to understand how these sites work and build one myself.
It's actually quite simple. Wordpress's index page calls wp-blog-header.php. That file calls for other files, and those files call for other files. It goes on for some time until all the contents of the page are actually loaded.
The databases come in when you start thinking about having users. Obviously the user information is stored in the database. Beyond that, Wordpress keeps post titles, dates, and other information in the database for easy loading later on.
Comments are also stored in the database. Each comment is associated with a number, and in the database, just like the posts, the dates/times as well as the usernames associated with the comments are kept.
Further exploration in the actual Wordpress files will reveal a lot of interesting features.
You might want to check out Django. It is an open source Python web framework that provides a lot of the functionality you are talking about. It also has a lot of very good high-level documentation with even a free e-book. It is centered a bit more on newspaper type sites than blogging, but most of the same principles apply. If you are new to python and like to use IDEs I would recommend checking out PyCharm. It has tight Django integration and makes for simple project setup and debugging.
Generally speaking, you'll use a framework that will take input parameters (year/month/day/article), run some code to fetch data from the database, and dynamically create the webpage. There isn't an actual .html file sitting on the webserver. One of the most popular frameworks to do websites like you're describing is Ruby on Rails, which makes it incredibly simple to do.
I know this question has been asked a million times in various ways by different businesses, but I'm wondering the community's opinion on it [There's this question, but in the fast-moving world of tech, a year is a long time]. For hypotheoretical purposes, let's consider a website where users can watch videos, a la YouTube, Hulu, etc. (actually, it's an on-demand transcoding solution, but close enough). The website could deployed:
Using HTML, JavaScript, and HTML5's <video> tag
Using HTML, JavaScript and Flash (like most are right now)
Using HTML, JavaScript and Silverlight just for the video player
Using Silverlight for navigation, creating a rich all-Silverlight experience
(Let's assume, again hypoteoretically, that the all-Silverlight version is not as annoying as most all-Flash pages are today, but instead provides an experience similar to a desktop application)
Which way would be able to reach a large percentage of the population? How would people feel about having to install Silverlight to view a site -- how much would they want to see the content to make them click the install button? What if a user is browsing the site at the library on on another public computer with limited bandwidth, possibly using older hardware and with an unprivileged user account -- how easy would it be for them to install the Silverlight runtime?
I really want to use Silverlight since I like its' model (I've been using it for an internal app at work, and I think it's an excellent platform), however I'm afraid that for a public site, a large percentage of users would not be able to view the site, then Flash may be better option.
EDIT:
Well, the idea is to have a player where users can access videos on their home PCs from the web. So the users usually won't be using a home PC -- they'll be using work PCs, friend's PCs, public PCs, etc. That's why I'm worried about the security/install privileges issue.
Start with what each of technologies can do for you and match that against your requirements re: content delivery. Assuming each is just as good as the other for the purpose at hand, and that you have the requisite skills in each or dont mind learning them to produce your content, then dont see player distribution as a problem.
Users not having the priviledges to install the player should it be absent would generally be considered an edge case. If your site is specifically targeting a user group to which this is more likely to apply then obviously it requires deeper consideration but at the end of the day you're always going to have a percentage of surfers who cant do something, or use something, for some reason. In this case it's likely a small percentage and good design dictates some form of graceful degradation regardless of the technology being deployed.
Your other questions re: user preferences is difficult to gauge. Here is a list of sites that clearly dont think its an issue. You'd have to extrapolate the adoption rate numbers but this link, albeit to an MS blog entry, suggests the adoption rate is high, especially considering Silverlights relatively short life.
You also have to factor in that it's an MS technology so you're going to benefit from Windows Update, etc and the strength of the MS marketing machine.
Recommendation: Go for it. The more the merrier.
..
Richard
This line is the decider for me:
I really want to use Silverlight since I like its' model
If you like Silverlight enough to really want to use it, go for it. The UI will be as useful or as annoying as you make it, so Flash has nothing intrinsic over Silverlight there. It comes down to whether Silverlight will do what you want it to.
HTML5 and its suite of technologies are a far better fit at this level. I went to a Microsoft confrence recently and the HTML5 talks where all booked out and the Silverlight talks had hardly any attendees. You can get a web application to almost have a normal application experience with JQuery ajax and HTML5.
Due it is an MS technology, Silverlight is successful for its short life, like Bing (i believe if it wasn't developed by MS most people wouldn't even know its name). But i would not use it for a website actually, most people dont want to install new things unless they have to. And if your site does not have a content that they will desire, they can go away from your site. I'm a Java developer but i dont use JavaFX for web apps, because most user machines have Flash installed it is a better choice for accessibility reasons. Silverlight is a new field for MS but Flash is around for years and it's one of the main focuses of Adobe.