single

HIBERNATE: Load multiple collections in single select.

Hello, I have the following class-mapping that contains multiple collections mapped as : Code: <class entity-name="tab_a" table="tab_a" lazy="true" schema="dbo" dynamic-update="false" dynamic-insert="false" select-before-update="false"> <id name="tabid" type="string" column="`TABID`"> <generator class="nativ...

Single column, long index pages in LaTeX

Been having some trouble implementing a single-column index in LaTeX. I've been employing the idxlayout package along with multind in order to create an index that is catenated from a slew of other source idx files. First, the index is ALWAYS set to use two columns. Even though the idxlayout package is set to columns=1, and the itemla...

How to pull specific directory with git

hello, I have a project with git, and I just want to clone or pull a specific directory, like myproject/javascript just like subversion does. make some changes, commit and push back again. It's possible? ...

"Authentication Failure" when calling a method on Remote Object in wpf

I am developing an application which uses WindowsFormsApplicationBase to enforce Single Instance. I get the following error when calling a method on a Remote object. It works fine if I don't use Single Instance approach. System.Runtime.Remoting.RemotingException: Authentication failure ---> System.IO.IOException: Unable to read data fro...

Reducing decimal places in Delphi

I am storing a list of numbers (as Double) in a text file, then reading them out again. When I read them out of the text file however, the numbers are placed into the text box as 1.59993499 for example, instead of 1.6. AssignFile(Pipe, 'EconomicData.data'); Reset(Pipe); For i := 1 to 15 Do ReadLn(Pipe, SavedValue[i]); Close...

Get a single element with PHP and XPath

Lots of tutorials around the net but none of them can explain me this: How do I select a single element (in a table, for example), having its absolute XPath? Example: I have this: /html/body/table/tbody/tr[2]/td[2]/table/tbody/tr/td/table[3]/tbody/tr/td/table/tbody/tr[3]/td/table/tbody/tr[4]/td[5]/span What's that PHP function to ge...

.htaccess code to protect a single url?

Is it possible to achieve this? For example I will have "website.com/index.php?skin=name" can I password protect only this url? (with no php changing only htaccess) P.S. "website.com/index.php" or "website.com/index.php?skin=other_name" should not be restricted.. Thanks! ...

HTML Frameset with just one frame and a body

Hello, I am trying to create the following layout: an HTML file with a body, that has a certain width, and a frame, that fills the rest, so, more or less like this: <frameset cols="150px,*"> <body></body> <frame src="source.html" /> </frameset> The thing is, I need the body to have a certain width, not wider, but I also need its ele...

How to loop through a specific category on single.php in Wordpress?

I've created a custom page and it is set as my homepage, within this custom page I am pulling out the latest post from a specific category, I've also created a form of pagination which when clicked upon will take the user to single.php. My intention for the single.php is to have two custom loops. Custom loop one I want single.php to dis...

jQueryUI Tabs: how to keep them on a single line?

Hi all, Maybe my question is wired: is there a way to prevent jQueryUI tabs from floating if browser window is too small? Explanation: I have a simple horizontal tab using CSS only. The content is floating but not the tabs. Important: there is no width set manually, the current width is taken automatically. Here is the code: <!DOCTYPE...

Dictionary with single item

In the case where Dictionary<object, object> myDictionary happens to contain a single item, what is the best way to retrieve the value object (if I don't care about the key) ? if (myDictionary.Count == 1) { // Doesn't work object obj = myDictionary.Values[0]; } Thanks ...

WPF TreeView PreviewMouseDown on TreeViewItem

If I handle the PreviewMouseDown event on TreeViewItem, I get events for everything I click on that TreeViewItem include the little +/- box to the left (Windows XP). How can I distinguish that? I tried the following: // We've had a single click on a tree view item // Unfortunately this is the WHOLE tree item, including the +/- // symbo...

If I want to create multiple forms, possible to have one main in C#?

If I want to have multiple forms in an appication, can I do it with only one main? I am working with Visual Studio C# (Windows Application). Thank you. ...

asp.net mvc2 - two (or more) views using same controller?

Is it possible that two different views use the same controller? I have very complex controller that displays some data. Now I need to display this data (which is retrieved using ajax) in two partial views because I want to place them on different positions in layout. ...

Multiple listview in single Activity

Hi i have activity in my project which contatin below xml file But Problem is that when i run my activity it display lsitview only in some part of the screen. i want both listview scrollable and also the whole layout should be scrollable to anyone know how can i do this? Regards jay. ...

Daily Backups for a single table in Microsoft SQL Server

Hello, I have a table in a database that I would like to backup daily, and keep the backups of the last two weeks. It's important that only this single table will be backed up. I couldn't find a way of creating a maintenance plan or a job that will backup a single table, so I thought of creating a stored procedure job that will run the...

How do I change the footer/footline of a single frame in Beamer?

So basically I've got something like this at the top of my tex file: \setbeamertemplate{footline}{Number \insertframenumber} This applies "Number <#>" to the footer/footline of all frames. Now what I want to do is change the footline for one single frame. Surprisingly, the following doesn't work: \begin{frame} \setbeamertemplat...

Does doctrine allow 2 models to use the same table

I have an abstract class User and 2 classes which inherit from it, namely BEUser and FEUser. Information about all users (FEUser and BEUser) is stored in a single table. Does Doctrine allows this kind of mapping? Any examples? Also if doctrine supports it which object does the table class return (FEUser or BEUser)? Thank You ...

Saving Multiple Images in a Single File

In my program i want the user to be able to take some images from a directory, and save them under a single file, that can be transferred to another computer possibly, and actually read and displayed(using the same program). How would i go about doing this, especially if i want to save other data along with it, perhaps objects and such....

Robocopy filter not working?

Hi I'm trying to use robocopy to copy a single file from my computer to another computer over the network. The file I'm going to copy is named setup.exe and the directory it rests in also has a directory called "setup". I only want to copy over the executable, so I tried applying a filter to the robocopy command at the end listing the fi...