different

SQL 2005 Foreign key between another base

Is it possible to create in a table of database a foreign key to a column of table in another database in SQL 2005 ? ...

jQuery different pages with different actions with one .js file

Hi, My webpage with diffrent sites should just load one .js file for cache optimizing. The problem comes up, when the file is loaded. It applies the listener on every page to the form elements (for example) so, just the last page's form acts like it should, the others does not cause their actions were overwritten. So my question, how c...

jQuery UI Drag a element from one list and put it into an other

I am using jQuery UI and can create an simple drag 'n drop list. But now, I want to drop the element into an other list. jQuery always thinks the item has been droppen on the false place and slides it back into the origin list. ...

The file 'C:\....\.....\.....\bin\debug\128849991926295643' already exists

Hi, I'm using Visual C#2008 Express Edition and an Express SQL database. Every time I build my solution, I get an error like the one above. Obviously the file name changes. A new file is also created every time I hit a debug point. I have a stored proc that gets every row from a database table, it gets these rows every time the main for...

Applet loads jars from different domains; has problem loading resouces (e.g. images) from jars.

Hi, I have a sandboxed Applet, but that should not make a difference. The Applet consists of 2 jars. If I host both files on the same domain1 all is fine. Due to certain special circumstances I need to host jar2 on a different domain2. In the applet tag I list both files archive="jar1.jar, http://domain2.com/jar2.jar". First it seem...

how can I have more than a UI for a QMainWindow?

I would like to have a QMainWindow that can change it's look at runtime, i.e when a user clicks a button. Besides keeping references to different UI classes generated by the QtDesigner, is there another way of doing that? Maybe by storing each UI in a layout ? What do you think ? ...

Possible to use different templates for different countries

is it possible to use different templates for different countries, i use WP but can't get much support from their forums. I have a site for Baby Rockers And i get traffic from different countries, is it possible to say have a china visitor see a different template with Chinese writing rather than them having to use google translator. ...

How can I chronologically stack different height divs in two columns?

I have two columns and want to stack divs of different heights in order of appearance. The divs are dynamically created. I have tried to do this by floating the first story to the left and the second to the right, but their still seem to be some anomalies. Have a look at this demo, it should explain it all. http://dl.getdropbox.com/...

Apply CSS to jQuery Dialog Buttons

Hello, So I currently have a jQuery dialog with two buttons: Save and Close. I create the dialog using the code below: $dialogDiv.dialog({ autoOpen: false, modal: true, width: 600, resizable: false, buttons: { Cancel: function() { // Cancel code here }, 'Save': function() { // ...

grep output different on two servers

Hello, everyone. I am trying to create a script, and one part requires showing lines with numeric values. My basic syntax is: echo $i | grep [0-9] For example, I set i=12345, it should output 12345. But on one server, it doesn't output anything (exactly the same commands). I do not know how to Google this issue, I have tried "grep...

jqGrid 2 grids on page with different theme/skin

I have a master/detail setup using jqGrid and jQuery. Is it possible to have the detail grid use a different theme/skin than the master grid? I see a setting to change the images folder, but it looks to me like grid.css would have to be the same for the entire page. Has anyone tried? Or do you have any suggestions for a workaround? ...

Sessions or Constants for storing data, which is better in this situation...

Hi, I would like some advice on storing data for different languages on my website. I've spent hours searchin and can't seem to find what I need. Here's my situation, so let me know what you think. I have a website that multiple users can log into to view and store information. I use php, Mysql, Apache, on a FreeBSD operating system (...

How to scan a file in a different directory in java?

How do you scan a file with java that isn't in the directory the java file is in? For example: The java file is located at "C:\Files\JavaFiles\test.java" However, the file I want to scan is located at "C:\Data\DataPacket99\data.txt" Note: I've already tried putting another java file in the "C:\Data" directory and using the test.java fi...

Cookies not working on different pages

Ok I have a cookie set, and I can clearly see it if I go to private data in Firefox... ok so when I echo it on one page in a certain directory it works, (www.example.com/dir), but on the index page of the site (www.example.com), it wont echo, it says the cookie is not set. Yes I have cookies enabled, yes I tried clearing cache and all th...

Enterprise Library Logging Application Block different sources

We have many assemblies (class libraries) which our main application uses. I want to route the logs of some assemblies to different destinations, but I have one App.Config file, so how may I achieve this? I'm pretty much sure there is a setting like this in Logging Application Block which I'm unaware of. Also I want to route logs based o...

What's the easiest way to find out if two files are different programmatically?

What's the easiest way to find out if two text files are different programmatically? Given two files I just need to know whether they are different or not. This is for a quick tool to help with a particularly nasty merge (switched languages from VB to C# in one branch (yay!) and made many changes in the other), it won't be going into pro...

Reaching listview from another form

I create my listview in my design part, not programmatically. Then I want to reach this listview's content when I pressed some button. In my main form, I created a public listview to return listview2 as in my design. public ListView lst { get { return listView2; } set { listView2 = value; } } Then in my other...

Return to same view from two different action methods.

Hi, i have a quick search and advance search pages, both are controlled by search controller, i have 2 action methods quick(...) and advanced (....) in my controller. Both pages have sumbit buttons and they are calling two different action method "qucikresults(...)" and "advancedresults(....)".when both method executes they return produ...

Load external style sheets on request from a different origin

Hi, Is there a plugin or feature in jQuery that enables the dynamic loading of stylesheets from different origins similar to $.getJSON() or $.getScript()? I am able to dynamically integrate a style sheet from the same origin, but I need to be able to dynamically inject a jQuery UI theme from a different origin into a page. I guess I can...

.Net MEF newbie question

I am missing something basic when it comes to using MEF. I got it working using samples and a simple console app where everything is in the same assembly. Then I put some imports and exports in a separate project which contains various entities. I want to use these entities in an MS Test, but the composition is never actually done. When ...