[This post is by Dianne Hackborn, a Software Engineer who sits very near the exact center of everything Android. — Tim Bray] Android is fairly unique in the ways it allows...
I've made a script which copies the alt attribute of an image and puts it into a <span>. It also formulates the information divided by a hyphen. It works like a charm, but only with one image.
I would also like to wrap a <div> around the image to prevent unnecessary markup.
Script snippets:
HTML:
<div id="hoejre">
…
Hello guys and gals...
I have a LI with some information, including some links. I would like jQuery to make the LI clickable, but also remain the links in the LI.
The Clickable part works. I just need the links within to work as well.
NOTE: They work if you right click and choose "Open in new tab".
HTML
<ul id="onskeliste">
…
I am trying to persist an Entity with a @Lob annotated String field. The content of that fiels if bigger than the 40k buffer size limit.
The first problem I had was related to the setString method used internally by the JPA implementation (Hibernate in my case) and the Oracle JDBC Driver. This problem was solved adding
…
Hi guys
With help from you guys I now have a script that works like a charm.. The only thing I need now, is the script to open the URL in a new tab/window.
$(document).ready(function() {
$("#onskeliste li").click(
function()
{
window.location = $(this).attr("url");
return false;
});
…
Hi i am new to ria Services
and i am trying to change the logon from SQL to active-directory and stil using the login form i am using the Silverlight Business Application template as base i have setup ADmembership provider in the website but how do i get Silverlight to use it??
I've recently become a little frustrated with Django as a whole. It seems like I can't get full control over anything. I love Python to death, but I want to be able (and free) to do something as simple as adding a css class to an auto-generated form.
One MVC framework that I have really been enjoying working with is…
I have two classes: Employee and EmployeeGridViewAdapter. Employee is composed of several complex types. EmployeeGridViewAdapter wraps a single Employee and exposes its members as a flattened set of system types so a DataGridView can handle displaying, editing, etc.
I'm using VS's builtin support for turning a POCO…
I'm working on a data import feature and I've been able to load an excel sheet into a DataTable using Ado.NET with the MSJet db engine. I created a simple one-to-one mapping dialog, in which the user drags column headings from their spreadsheet to a list of object properties.
What's stumping me is how to turn each…
I have a stored procedure that runs custom backups for around 60 SQL servers (mixes 2000 through 2008R2).
Occasionally, due to issues outside of my control (backup device inaccessible, network error, etc.) an individual backup on one or two databases will fail. This causes this entire step to fail, which means any…
I'm in the progress of building an web-app that syncs with an iOS client. I'm currently tackling trying to figure out how to go about about syncing. I've come up with following two directions:
I've got a fairly simple server web-app with a list of items. They are ordered by date modified and as such syncing the…
I'm using
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\MyProgram"
As the path to store several files used by my program. I'd like to avoid pasting the same snippet of code all over the my applcation.
I need to ensure that:
The path cannot be accidentally changed once its…
I have two scripts. One calls the other with a list of servers as parameters. The second query is designed to execute a WMI query. When I run it manually, it does this perfectly. When I try to run it as a job it hangs forever and I have to remove it.
For the sake of space here is the relevant part of the…
Hi guys, so im having a UIViewController view with a UITableView.
So the UIViewController class name is SelectionScreen.
The UITableView class name is SelectionScreenTable.
Picture:
http://img717.imageshack.us/i/screenshot20100609atpm0.png/
I have declared a UITableView *selectionTable in…
In porting my app to a universal iPhone / iPad app, the xibs I created by using Interface Builder's "Create iPad Version" will not link to the project properly: They don't pick up on classes and images from the project file.
IB tells me that "there is no xcode project associated with this…
Hi guys and gals
I've made a jQuery animation, which fades through some logoes that all uses PNG transparency. In IE the transparency disappears. I've tried unitpngfix.js but it doesn't work.
The site is: http://tinyurl.com/yc5wdpr
Note: Try using Firefox to see the wanted effect.
Can…
Hi guys
I can't seem to get the appendTo to work. What do I do wrong?
$('div:nth-child(2n) img').appendTo(parent);
Current markup:
<div class="container">
<img src="123.jpg" />
<p>Hey</p>
</div>
<div class="container">
<img src="123.jpg"…
As an experiment I'm trying to write a generic MVP framework.
I started with:
public interface IPresenter<TView> where TView: IView<IPresenter<...
{
TView View { get; set;}
}
public interface IView<TPresenter> where TPresenter:IPresenter<IView<...
{
…
I'm trying to make an audio-sensitive animation, and for that purpose, I'm looking for a way to look up the current audio level. I'm looking for the peak within a set amount of time. (Think the red bar that stays on for a second or so, on an audio meter.)
I've searched around for…
Hi guys, im trying to put a Coreplot graph in a UIView.
Some questions, should i do it in XIB? or should i do it programmically ?
If so how should i write the codes? etc.
I actually have two Classes. one called GraphView which is supposed to hold the Coreplot graph.
Another…
Trying to save a model in Django admin and I keep getting the error:
Transaction managed block ended with pending COMMIT/ROLLBACK
I tried restarting both the Django (1.2) and PostgreSQL (8.4) processes but nothing changed. I added "autocommit": True to my database settings…
I've made a script which copies the ALT-tag of an image and puts it into a SPAN. It also formates the information devided by a hyphen. It works like a charm, but only with one image.
Further more, I would like it to wrap a div around the image, to prevent unnecessary markup,…
This is a problem one of our developers brought to me. He stumbled across an old stored procedure which used 'WHERE col = NULL' several times. When the stored procedure is executed it returns data.
If the query inside the stored procedure is executed manually it will not…
Hey guys, was wondering how do i use the NSXML parser.
so lets say given i have a simple xml file with elements like
1/1/1000
14:15:16
How could i use the NSXMLParser to parse the XML File(Its on locally btw, desktop), check through each element and store each of them…