ids

Hibernate and IDs

Is it possible in hibernate to have an entity where some IDs are assigned and some are generated? For instance: Some objects have an ID between 1-10000 that are generated outside of the database; while some entities come in with no ID and need an ID generated by the database. ...

ASP.NET Multiple controls with the same ID 'x' were found. FindControl

Hey Guys, Getting the following error Multiple controls with the same ID 'ltlItemCode' were found. FindControl requires that controls have unique IDs. This Error does not happen on page loads but when I change the value of a drop down which has AutoPostBack="true". Code is `//Number of Services numberofServices = Int32.Pa...

Nonblocking algorithm to generate unique negative numbers

I recently refactored a piece of code used to generate unique negative numbers. edit: Multiple threads obtain these ids and add as keys to a DB; numbers need to be negative to be easily identifiable -at the end of a test session they're removed from the DB. My Java algorithm looks like this: private final Set<Integer> seen = Collec...

jquery IDs with spaces

Does anyone know how to select an item in the DOM by ID with jQuery, when that ID has a space? For example, the id of my item would be <div id="content Module">Stuff</div> How would I select this with jQuery? If I just do $("#content Module").whatever() jQuery will try to find an item with both the id of content and the id of...

Reference asp.net control by ID in javascript?

When asp.net controls are rendered their ids sometimes change, like if they are in a naming container. Button1 may actually have an id of ctl00_ContentMain_Button1 when it is rendered, for example. I know that you can write your javascript as strings in your cs file, get the control's clientID and inject the script into your page using ...

Another ID generation queston

I'm trying to generate unique IDs for use in a Google App Engine application and would like feedback on the feasibility of the approach I'm thinking of using (questions at the end). I've read quite a few questions on this topic, but I don't remember coming across this particular approach. I'd like random-looking IDs, e.g., MD5 hashes, ...

What type of ID does Youtube use for their videos

I am curious what type of ID that youtube uses for identifying their videos? They seem to be the same type of IDs used for short urls on sites like Digg and Bit.ly. ...

A similar tool like AGENT: Automatic Generation Analysis of NIDS Attacks

Dear all, We build a small signature generation tool for IDS's. We want to test it to against to a tool like AGENT, for network traffic attacks and check rules generated. AFAIK the author's of AGENT don't provide the code or program. Can you recommend similar kind of a tool? ...

Working around LinqToSQls "queries with local collections are not supported" exception

So, I'm trying to return a collection of People whose ID is contained within a locally created collection of ids ( IQueryable) When I specify "locally created collection", I mean that the Ids collection hasnt come from a LinqToSql query and has been programatically created (based upon user input). My query looks like this: var qry =...

Adding ids to HTML tags for QA automation

I have a query In our application we have lots of HTML tags. During development many tags were not given any id because of no requirement.Now the QA team wants to automate the test cases using QTP. In most of the cases this tool doesn't recognizes because it does not find ids for most of the HTML tags.Now we are asked to add ids to all t...

jquery javascript overlapping id's

Hi All, I am dragging and dropping elements using jquery. I have two div's div a and div b and divc. I am dropping div a and div b over div c But when i drop div a over div c then it says it has been dropped on div c. How can i find out that div a has been dropped o div b. ...

create an array from similarly named id's

I have a group of id's with similar names (ex: div1, div2, div3) that are all going to perform the same function. is there an easy way in jQuery to create an array by calling the prefix of the id ("div")? ...

Can different users have same USER ID in MOSS 2007

Hi I am just curious to know whether different users can have same user ID in MOSS 2007. I have two SharePoint groups with different set of permission levels. SharePointGroup1 is in root site. The subsite has unique permissions, i.e., it is having SharePointGroup2 with different set of users. Is there any chance to have same user ID for...

Whats the best way to name id & classes in CSS and HTML

When naming classes and ids for CSS what is the best method to use. In this case I need there to be some kind of naming convention so that other people can pick up rules and understand how to name their own ids and classes using the same pattern. Any suggestions? Some of the sites we create can get pretty complex but use an overall struc...

MySQL - JOIN 2 tables with 2 ID's in common

Hi, I have 2 tables that I need to get information from, and would like to get the information in one single query. The situation is this : table "matches" : id team_A_id team_B_id table "teams" : id name The objective is to retrieve information from table "matches" (football matches) and join the information with the table "team...

Storing IDs between pages for up to a day?

I need to store IDs (Contact IDs, Claim IDs, etc.) between multiple .aspx pages. At the moment I am storing the ID in the Session and have set the Session timeout to 300 minutes. However, I am still getting errors because users are attempting to perform operations after the Session has expired. I think users are leaving their web bros...

NHibernate with informix database "IBM IDS"

Hi All, which NHibernate driver can i use with informix database "IBM Informix Dynamic Server" ? Thanks, Amjad. ...

Wrapping ID's in CSS Classes?

Hi Guys, I am relatively new to CSS and wondering whether its possible to "Wrap" ID's so you don't have to repeat them over and over ? i.e. #home { some stuff } #home .header { some stuff } #home .sub_header { some stuff } Is it possible to "wrap" the .header and .sub_header so I don't have to keep repeating #home all the time ? ...

ids in the form

hi, i have a event model that has_and_belongs_to_many artists class Event < ActiveRecord::Base has_and_belongs_to_many :humans, :foreign_key => 'event_id', :association_foreign_key => 'human_id' end in the form for the event inserting, i put an hidden field for the artists ids: <%= event_form.text_field :artist_ids %> If i insert...

snort rule: logging access to site containing the word "Malware"

i am trying to create a rule for snort to basically log any packets once a user try to access a page with the word "malware" in it. This is what I have, just asking for some guide. So basically once a webpage contain the phrase it show GO CRAZY!!!!!!! alert tcp any any -> any any (content:"malware"; msg:"Someone clone is accessin...