How to capture the android device screen content and make an image file using the snapshot data?which api I should use or where to find related resource? thanks in advance!
Hello,
In Drupal, i want to know how to notify translator that the content they translated, was modified.
What is the easiest way to do it? Is there a module for that? Maybe workflow can help but i think this needs too much adminsitration
Bonus Question : Do you already work with the same language in several countries? Exemple : English US, Englis UK, English CA?
Thanks.
Hello, I'd like to align text in right cell of table created below, to be vertically align to the top. How to do that ?
\begin{tabular}{l|p{3cm}}
\rule{2cm}{5cm} & Top align content ? \\
\end{tabular}
Regards
I want the wordpress sidebars got an specific height, NOT equal to the content to the post/page. Just 400px, for example. I`m working with atahualpa.
Which code in wich php i got to hack?
Thanks
Hi All,
I want an Open File Dialog with *.class ,*.jar filters.
I want that *.jar files will be treated as folders (pressing OK or double-click should display the jar file content [ *.class] ). This capability is very similar to the TotalCommander archive plugin that let you browse inside archive files in-place (without the need to extract them, etc...)
Any ideas how it could be done? Can I use something that is already implemented?
Thanks,
Guy
I'm trying to prevent users from uploading (accidentally or maliciously) very large files to my website.
I have nginx max_client_body_size set to 4M, but if a file larger than this is uploaded, then it uploads the entire file before returning 413 (entity too large).
I want to make nginx check the Content-Length header, so that it rejects the request before it's uploaded.
Alternatively, a Rails solution would also be acceptable.
Any help appreciated.
Hi all,
see 'http://ballpointradio.com/new/index.php', how do I get the footer (the Lorum Ipsum) to go below the lowest content, rather than moulding around it?
Thanks!
Hi,
I'm trying to get my wrapper to hold my content but it won't. I've taken out the floats and added "overflow: visible" no no avail. I'm thinking it's because of my z-indexing and negative margins, but have tried taking these out and still no change. Any ideas?
http://www.jenniferhope.com/bio
(the float is still in this example.)
Thanks for any help you can offer!
I have a .Net web application that for performance issues gets all the static data (CSS, Images, JS) from an external server that is on different location and different hosting company.
I want to enable SSL on my site without the users getting a message:
"Page contains both secure and insecure elements"
Does this means I’ll have to get two SSL Certificates one for each server?
If I want the users to continue getting the static content from the external server what other options do I have?
Thanks.
I'm trying to load some dynamic content after the user has logged in, using $.ajax, like so:
$.ajax({
url: "functions.php",
type: "GET",
data: login_info,
datatype: 'html',
async: false,
success: function (response) {
$('#main').html(response);
}
});
The problem is, that some events don't work, when loaded this way. I fixed the buttons with the .live() method, but a sortable list for example, doesn't work. How can I somehow refresh the DOM, and let jquery know of these new added elements?
Thanks!
I am looking to find out if a web page has changed, I was going to use the content length of the web page but have not seen a way to do so. Any ideas? Or can anyone think of another way to check periodically if a web page has changed?
Any ideas are appreciated.
Thanks,
Chris
I've got a site with some administrative pages in it's root directory. Question: Is there any possible way for a visitor to see all the pages and/or subdirectories in the root directory of this (or any other) site?
If yes, what has to be done to conceal the directory's content?
Thank you!
Hi
For my iPhone application I need to read some content of a plain html file on the web. It's just some text within a pre-tag. However I don't want to download the whole file and then get the line I need.
The format is:
TextTextTextTextTextTextTextText
TextTextTextTextTextTextTextText
TextTextTextTextTextTextTextText
TextTextTextTextTextTextTextText
I only need the first line and then close the connection to that resource.
Thanks in advance.
I'm trying to convert a asp.net website to asp.net web application. I need to change the build action for every file from "content" to "compile". How can i do this site width. I have a too many files to do this manually.
Is there a simple way to shift cell content to the right? Like a horizontal alignment or some sort of offset?
I'd rather not
include a blank cell.imageView.image, or
add spaces to each cell.textLabel.text.
Any ideas please. Thanks.
I have an li navigation with dividers created using the code shown below. I'd like to have two of these | elements but different colours, is it possible to define different colours for both?
#navigation li:before {
content: "|";
color: #800836;
}
I'd like another but with #F2659A and right next to the existing.
Here is the live url to see how things look right now:
http://www.jordancharters.co.uk/nakedradish/
Hi ,
I am switching content template of a ListViewItem at run mode to enable editting the item.For that i am showing a panel with Ok and Cancel options and i need the user to select any of those option before moving to anotheritem. Means i want that panel to behave like a modal dialog.
Any suggestions ?.
Advanced Thanks,
Das
I use an iframe in my site ,
How i can let the search engines robots read and index the content , and the results point to the page including the iframe ?
thanks.
Trying to use regex refind tag to find the content within the brackets in this example using coldfusion
joe smith <[email protected]>
The resulting text should be
[email protected]
Not having any luck. Any suggestions?
Windows Phone 7 uses Silverlight as one of its "native" development APIs. But does the Windows Phone 7 version of Internet Explorer support Silverlight as a plugin so you can view web-hosted Silverlight content?
I have an ASP.Net website which uses a MySQL database for the back end. The website is an English e-commerce system, and we are looking at the possibility of translating it into about five other languages (French, Spanish etc). We will be getting human translators to perform the translation - we've looked at automated services but these aren't good enough.
The static text on the site (e.g. headings, buttons etc) can easily be served up in multiple languages via .Net's built in localization features (resx files etc).
The thing that I'm not so sure about it how best to store and retrieve the multi-language content in the database. For example, there is a products table that includes these fields...
productId (int)
categoryId (int)
title (varchar)
summary (varchar)
description (text)
features (text)
The title, summary, description and features text would need to be available in all the different languages.
Here are the two options that I've come up with...
Create additional field for each language
For example we could have titleEn, titleFr, titleEs etc for all the languages, and repeat this for all text columns. We would then adapt our code to use the appropriate field depending on the language selected. This feels a bit hacky, and also would lead to some very large tables. Also, if we wanted to add additional languages in the future it would be time consuming to add even more columns.
Use a lookup table
We could create a new table with the following format...
textId | languageId | content
-------------------------------
10 | EN | Car
10 | FR | Voiture
10 | ES | Coche
11 | EN | Bike
11 | FR | Vélo
We'd then adapt our products table to reference the appropriate textId for the title, summary, description and features instead of having the text stored in the product table. This seems much more elegant, but I can't think of a simple way of getting this data out of the database and onto the page without using complex SQL statements. Of course adding new languages in the future would be very simple compared to the previous option.
I'd be very grateful for any suggestions about the best way to achieve this! Is there any "best practice" guidance out there? Has anyone done this before?
Hello!
This is my first post!
I have a question about javascript...here is my code:
<html>
<head>
<title>Geolocation Demo</title>
</head>
<body>
<h1>Geolocation Demo</h1>
<p>Latitude: <span id="lat">0.00</span> Longitude: <span id="lon">0.00</span> City: <span id="city">Loading...</span></p>
<p><a id="city_link" href="http://tinygeocoder.com/" target="_blank">View City</a></p>
<p><a id="gmaps_link" href="http://maps.google.co.uk/" target="_blank">View on Google Maps</a></p>
<script language="javascript">
// show the position on the page and make a google maps link
function showPosition(position) {
var lat = position.coords.latitude;
var lon = position.coords.longitude;
document.getElementById("lat").innerHTML = lat;
document.getElementById("lon").innerHTML = lon;
var gmaps_url = "http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=" + lat + "+" + lon;
var city_url = "http://tinygeocoder.com/create-api.php?g=" + lat + "," + lon;
document.getElementById("gmaps_link").href = gmaps_url;
document.getElementById("city_link").href = city_url;
}
</script>
</body>
</html>
As you can see, this script target my geolocation. Specifically, Lat and Lon are working perfectly. In addinition, i want to display and region info (like city). So, i found a website which i provide the coordinates and it returns me a region name. My question is if i can display the name of region without clicking the link "View city" but in the field "city"...is it possible to pass the webpage content (http://tinygeocoder.com/create-api.php?g=" + lat + "," + lon;) into my webpage? The content of this page is only the name as i said...no html tags!
Thank you!
[DllImport("user32.dll")]
public static extern int SetScrollPos(IntPtr hWnd, int nBar, int nPos, bool bRedraw);
[DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)]
public static extern int GetScrollPos(int hWnd, int nBar);
So those are the externs im using to move the scroll position, what im doing, is i get the current position, and add or substract an exact amount of pixels, and the scroll bar on my form moves perfectly how i want it, but the content in the control stays stationary. What is the problem here?
My application is supposed to be a single page application and I have the following code that works fine:
home.php:
<div id="container">
</div>
accordion.php:
//Click functions: load content
$('#parents').click(function(){
//Load parent in container
$('#container').load('http://www.blabla.com/entities/parents/parents.php');
});
parents.php:
<div class="entity_wrapper">
Some divs and selectors
</div>
<script type="text/javascript">
$(document).ready(function(){
//Some jQuery / javascript
});
</script>
So the content loads fine, while the scripts dynamically loaded execute fine as well.
I apply this system repetitively and it continues to work smoothly.
I've seen that there are a lot of frameworks available on SPA's (such as backbone.js) but I don't understand why I need them if this works fine.
From the backbone.js website:
When working on a web application that involves a lot of JavaScript,
one of the first things you learn is to stop tying your data to the
DOM. It's all too easy to create JavaScript applications that end up
as tangled piles of jQuery selectors and callbacks, all trying
frantically to keep data in sync between the HTML UI, your JavaScript
logic, and the database on your server. For rich client-side
applications, a more structured approach is often helpful.
Well, I totally don't have the feeling that I'm going through the stuff they mention.
Adding the javascript per page works really well for me.
They are html containers with clear scope and the javascript is just related to that part.
More over, the front end doesn't do that much, most of the logic is managed based on Ajax calls to external PHP scripts. Sometimes the js can be a bit more extended for some functionalities, but all just loads as smooth in less than a second.
If you think that this is bad coding, please tell me why I cannot do this and more importantly, what is the alternative I should apply. At the moment, I really don't see a reason on why I would change this approach as it just works too well.
I'm kinda stuck on this question because it just worries me sick as it seems to easy to be true. Why would people go through hard times if it would be as easy as this...