content

Canadian to US English

Does there exist something like Canadian to US english e-dictionary which I can use in my application ? ...

crawling folder content in sharepoint

Hi everyone, I have a sharepoint site that gives me trouble with the search, it somehow crawls everything in the site but when I make a search for a document and I select one of those documents after the search is complete, instead of bringing up the documents it brings me back to the search page that I created. When I check the crawl lo...

JS: Hiding DIV based on another DIVs content

I am looking to hide a number of DIVs based upon the specific text of another DIV. My Javascript (below) isn't working. The HTML: <div id="LEGEND">abAB</div> <div id="small-a"></div> <div id="small-b"></div> <div id="big-a"></div> <div id="big-b"></div> If the LEGEND DIV contains the text a, then I want it to show only DIV small...

content URLs regexp

I receive a block of code from db which occasionally contains urls, e.g, http://site.tld/lorem.ipsum/whatever Now I want to turn this into nice clickable link for the user, with a helper method. Such as: <a href="http://site.tld/lorem.ipsum/whatever"&gt;http://site.tld/lorem.ipsum/whatever&lt;/a&gt; Of course, anyone can do this, [^\s...

Reusable Content Box Data In ASP.NET MVC?

If I create a PartialView for a box that holds a header, image and content what is the best way to store the content without using a database? Example: TurboTax I doubt the content for the boxes in the sidebar are stored in a database but to make reusable code it would be beneficial to create the structure in a PartialView and populate...

Raw list of person names

I need to have a long list of people names ("Robert", "Jeniffer", "Andrew", etc.) How long? 100 will be sort of okay, but thousands would be better. I'd like it raw, not in an HTML webpage or something, so I can easily import it to my code. ...

IFrame access updated content Firefox issue

The src file of my iframe has 3 textboxes. Entering 2 values in the first 2 textboxes displays the sum in the 3rd textbox. The sum calculation AND display is done using javascript inside the src file. Frame1.contentWindow.document.body.innerHTML in Firefox gives the src file's content and not the updated content (that is, with the value...

Change the whole content of site depending on monitor resolution

In my site I am applying a stylesheet depending upon the resolution of the viewer's monitor. By using screen.width in javascript i do this. But now I have a doubt that can I use the same technique to change the whole content of the site depending upon the resolution, i.e, for higher resolutions more contents and for lesser, fewer. Or you...

Finding terabytes of data and using in oracle for learning purposes

Hey all, I am learning to be a dba, and the one thing i am missing is good quantity of data to handle a database with. Someone on irc said if you cant handle few terabytes of data then you are still not good enough. My question is, is there a way i can have terabytes of data from somewhere that i can use it for my learning pu...

Best way to track changes on a website for visitors' information

So I've been saddled with furthering a website, in which it is crucial that the visitors are able to see exact changes that were made in content since the last time they visited (i.e., some form of tracking system that keep pervious versions that can also be accessed). In my mind, I'm thinking of something like the history tabe in wiki...

Possible to write custom content provider for existing system database?

Hi folks, Not sure of the absolute utility of this but seems as though it should be possible and useful. Can you extend ContentProvider to provide URIs representing new queries (i.e., joins across multiple tables not specified by existing URIs) for an existing system database? The alternative seems to be that I need to write a series o...

Scripts/Stylesheets: Consolidate locally or use CDN?

I can obviously do some limited testing of my own, but I'm hoping to hear from some people with real-world experience on at least medium-scale web sites. Two of the items on every "top 10" list for optimizing sites/bandwidth are: Consolidate as much JS and CSS as possible into a single file (to reduce round trips); and Use a Content D...

Is there anything wrong with this Google App Engine url-fetching code that I have here?

When I view the source of the page in my browser (FireFox) (View->Page Source), copy it and paste it into my HTML editor, I view almost the same page (In this example it is www.google.com) as it appears in my browser. But when I get the HTML source through this code (through Googles App Engines) from google.appengine.api import urlfetch...

MVVM ListBox controlling a Content Control

I've been going round in circles with this for a couple of days, and I'm hoping a WPF guru can see where I'm going wrong. I'm setting CurrentViewModel in code. The Selected item of my ListBox and the Content of my ContentControl bind correctly. But when changing the selected item in the Listbox via the UI the CurrentViewModel is being ...

how to add controls to the masterpage's content placeholder programmatically

On the base.master: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Base.master.cs" Inherits="WebApplicationControlTest.Base" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <...

Dynamique image of a view inside a button

Hi, I would like to add an image inside a button,but this image shows the current view of one of my views. If anyone knows how to do. Thanks a lot. ...

How to include an ampersand (&) in the content of a ComboBoxItem

I currently have a Combobox like the following: //XAML <ComboBox> <ComboBoxItem> Awake & Alive</ComboBoxItem> </ComboBox> This raises an error: Entity references or sequences beginning with an ampersand '&' must be terminated with a semicolon ';'. I assume I am missing an escape sequence of some sort to allow me to use a &. How ca...

XNA: Dynamic content loading without Game Studio installed?

Hi. I'd like to enable my game to load content (such as a model, a jpg file, etc.) during run-time and display them. I looked at the sample on XNA website (http://creators.xna.com/en-US/sample/winforms%5Fseries2), however this method requires Game Studio (which means Visual Studio too) installed on the client computer. What are the ap...

cgi-bin directory contents: What else can be stored there, apart from the CGI scripts/executables?

What files should/should not be stored in the cgi-bin folder/directory on a web server? Obviously, executable scripts/files that make up a web application, called from a web browser can be stored there. But is there a common industry opinion about what else can be stored there? Is there a very strong reason why nothing else apart than...

How to change HTML tag content in Java?

How can I change HTML content of tag in Java? For example: before: <html> <head> </head> <body> <div>text<div>**text**</div>text</div> </body> </html> after: <html> <head> </head> <body> <div>text<div>**new text**</div>text</div> </body> </html> I tried JTidy, but it doesn't support ...