Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
sequence |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3,517,885 | 1 | null | null | 2 | 274 |
## Please scroll down to the "25/08/2010 Update".
I have a query which I have turned into a view. It runs very slowly because (as far as I understand) there are several issues with indexes on the joined tables.
---
```
explain select * from view_ed_abc_print
```

---
As you can see, I have table "a" using where, temporary and filesort with 4659 rows, which from what I understand means it has to run through 4659 rows for every single row it returns.
I have omitted the query because it is really really long and formats horribly here (it comes from a view so thats causing some issues
Anyone have any ideas?
---
Thanks for your answers so far. I have created indexes for all the foreign keys and added a primary key to publicationtypes and audittypes tables (oops, that was silly)
Anyway here is the new explain

And this is the where/from part of the query (sorry the formatting get's lost for some reason)
```
from
(
(
(
(
(
`auau7859_aba`.`ed_abc_publication_audits` `a` use index(pubid)
left join `auau7859_aba`.`public_publications` `p` on
(
(`p`.`pubid` = `a`.`audit_pubid`)
)
)
left join `auau7859_aba`.`ed_aba_frequencies` on
(
(
`auau7859_aba`.`ed_aba_frequencies`.`frequencyid` = `p`.`pub_frequencyid`
)
)
)
left join `auau7859_aba`.`ed_abc_publicationtypes` on
(
(
`auau7859_aba`.`ed_abc_publicationtypes`.`publicationtypeid` = `p`.`pub_type`
)
)
)
left join `auau7859_aba`.`ed_abc_audittypes` on
(
(`a`.`audit_type` = `auau7859_aba`.`ed_abc_audittypes`.`audittypeid`)
)
)
left join `auau7859_aba`.`Members` `m` on((`m`.`MemID` = `p`.`pub_memid`))
) where ((`a`.`audit_active` = 1) and (`p`.`pub_unfinancial` = 0))
order by `a`.`audit_anps` desc
```
---
The query time is much better now, however I am wondering if it is possible to get table "a" to start using that key, instead of "Using filesort" which i've read is really slow.
---
As requested, here are the definition for the relevant tables.
```
CREATE TABLE `ed_abc_publication_audits` (
`auditid` INT(11) NOT NULL AUTO_INCREMENT,
`audit_period` INT(11) NULL DEFAULT '0',
`audit_year` INT(11) NULL DEFAULT '0',
`audit_pubid` INT(11) NULL DEFAULT '0',
`audit_frequencyid` INT(11) NULL DEFAULT '0',
`audit_issues` VARCHAR(50) NULL DEFAULT NULL,
`audit_exclusions` TINYINT(4) NULL DEFAULT '0',
`deprecated_dayspublished` INT(11) NULL DEFAULT '0',
`audit_specialpublishingday` VARCHAR(50) NULL DEFAULT NULL,
`audit_bumperissues` TINYINT(4) NULL DEFAULT '0',
`audit_bumperissuedates` TEXT NULL,
`audit_bumperissuelinked` TINYINT(4) NULL DEFAULT '0',
`audit_excludeddates` TEXT NULL,
`audit_coverprice` DECIMAL(10,2) NULL DEFAULT '0.00',
`audit_coverpriceday` VARCHAR(100) NULL DEFAULT '0',
`audit_coverprice2` DECIMAL(10,2) NULL DEFAULT '0.00',
`audit_coverprice2day` VARCHAR(100) NULL DEFAULT '0',
`audit_coverprice3` DECIMAL(10,2) NULL DEFAULT '0.00',
`audit_coverprice3day` VARCHAR(100) NULL DEFAULT '0',
`audit_osmoney` INT(11) NULL DEFAULT '0',
`audit_type` INT(11) NULL DEFAULT '0',
`audit_anps` INT(11) NULL DEFAULT '0',
`audit_inexcess` TINYINT(4) NULL DEFAULT '0',
`audit_periodadjustment` TINYINT(4) NULL DEFAULT '0',
`audit_periodadjustmentvalue` INT(11) NULL DEFAULT '0',
`audit_nznps` INT(11) NULL DEFAULT '0',
`audit_nzinexcess` TINYINT(4) NULL DEFAULT '0',
`audit_othercountries` INT(11) NULL DEFAULT '0',
`audit_ocinexcess` TINYINT(4) NULL DEFAULT '0',
`audit_inclaccomairlinesales` DOUBLE NULL DEFAULT '0',
`audit_incleducationalsales` DOUBLE NULL DEFAULT '0',
`audit_incleventsales` DOUBLE NULL DEFAULT '0',
`audit_inclmultiplepublicationsales` DOUBLE NULL DEFAULT '0',
`audit_bundledsales` DOUBLE NULL DEFAULT NULL,
`audit_exclaustraliaother` INT(11) NULL DEFAULT '0',
`audit_exclinexcess` TINYINT(4) NULL DEFAULT '0',
`audit_nimcopiesprinted` INT(11) NULL DEFAULT '0',
`audit_nimcopiesdelivered` INT(11) NULL DEFAULT '0',
`audit_nimcopiesmailed` INT(11) NULL DEFAULT '0',
`audit_remarks` TEXT NULL,
`audit_coverprice4day` INT(10) NULL DEFAULT NULL,
`audit_coverprice4` DECIMAL(10,2) NULL DEFAULT NULL COMMENT 'CoverPrice4',
`audit_issuesaudited` INT(10) NULL DEFAULT NULL,
`audit_nonpublishingdates` VARCHAR(45) NULL DEFAULT NULL,
`audit_digital_anps` INT(10) NULL DEFAULT NULL,
`audit_digital_inclaccomairlinesales` DOUBLE NULL DEFAULT NULL,
`audit_digital_incleducationalsales` DOUBLE NULL DEFAULT NULL,
`audit_digital_incleventsales` DOUBLE NULL DEFAULT NULL,
`audit_digital_inclmultiplepublicationsales` DOUBLE NULL DEFAULT NULL,
`audit_digital_bundledsalesdigital` DOUBLE NOT NULL,
`deprecated_FirstSignatoryName` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_FirstSignatoryEmail` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_SecondSignatoryName` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_SecondSignatoryEmail` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_FormStatus` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_dateSubmitted` VARCHAR(255) NULL DEFAULT NULL,
`audit_datecreated` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
`deprecated_dateSignatoryApproved` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_AuditorName` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_AuditorEmail` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_dateAuditorApproved` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_nPeriod` INT(11) NULL DEFAULT NULL,
`deprecated_nYear` INT(10) NULL DEFAULT NULL,
`audit_totalissuesaudited` INT(10) NULL DEFAULT NULL,
`audit_parentpublication` INT(10) NULL DEFAULT NULL,
`audit_auditenddate` VARCHAR(20) NULL DEFAULT NULL,
`audit_digital_bumperissuedates` TEXT NULL,
`audit_digital_bumperissues` TINYINT(4) NULL DEFAULT NULL,
`audit_digital_bumperissueslinked` TINYINT(4) NULL DEFAULT NULL,
`audit_digital_coverprice2` DECIMAL(10,2) NULL DEFAULT NULL,
`audit_digital_coverprice2day` VARCHAR(25) NULL DEFAULT NULL,
`audit_digital_coverprice3` DECIMAL(10,2) NULL DEFAULT NULL,
`audit_digital_coverprice3day` VARCHAR(25) NULL DEFAULT NULL,
`audit_digital_coverprice4` DECIMAL(10,2) NULL DEFAULT NULL,
`audit_digital_coverprice4day` VARCHAR(25) NULL DEFAULT NULL,
`audit_digital_coverprice` DECIMAL(18,2) NULL DEFAULT NULL,
`audit_digital_coverpriceday` VARCHAR(25) NULL DEFAULT NULL,
`audit_daysbetween` INT(11) NULL DEFAULT NULL,
`audit_digital_excludeddates` TEXT NULL,
`audit_digital_issuesaudited` INT(11) NULL DEFAULT NULL,
`audit_digital_issues` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_lodgementstatus` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_lodgementtype` VARCHAR(255) NULL DEFAULT NULL,
`audit_nimaveragecopiesdelivered` INT(11) NULL DEFAULT NULL,
`audit_nimaveragecopiesmailed` INT(11) NULL DEFAULT NULL,
`audit_nimaveragecopiesprinted` INT(11) NULL DEFAULT NULL,
`audit_digital_nonpublishingdates` VARCHAR(45) NULL DEFAULT NULL,
`Remarks` TEXT NULL,
`audit_digital_remarks` TEXT NULL,
`deprecated_s2complete` INT(11) NULL DEFAULT NULL,
`deprecated_s3complete` INT(11) NULL DEFAULT NULL,
`audit_stageid` INT(11) NULL DEFAULT NULL,
`audit_periodenddate` DATE NULL DEFAULT NULL,
`audit_periodstartdate` DATE NULL DEFAULT NULL,
`audit_dayspublished` SET('mon','tue','wed','thu','fri','sat','sun') NULL DEFAULT NULL,
`audit_active` TINYINT(1) UNSIGNED NULL DEFAULT '1',
`deprecated_auditor_name` VARCHAR(255) NULL DEFAULT NULL COMMENT 'abc_status',
`audit_auditor_id` INT(10) NULL DEFAULT NULL COMMENT 'This is the auditor ID that has been pulled from the abc status table. WARNING: THIS IS from abcUSERS',
`deprecated_auditor_email` VARCHAR(255) NULL DEFAULT NULL COMMENT 'abc_status',
`deprecated_publisher_name` VARCHAR(255) NULL DEFAULT NULL COMMENT 'abc_status',
`audit_author_id` INT(10) NULL DEFAULT NULL COMMENT 'the author id from the abc_status. WARNING: ABCUsers TAble, not scmod',
`deprecated_publisher_email` VARCHAR(255) NULL DEFAULT NULL COMMENT 'abc_status',
PRIMARY KEY (`auditid`),
INDEX `pubid` (`audit_pubid`),
INDEX `audit_type` (`audit_type`),
INDEX `audit_periodenddate` (`audit_periodenddate`),
INDEX `audit_periodstartdate` (`audit_periodstartdate`),
INDEX `audit_anps` (`audit_anps`),
INDEX `orderby` (`audit_pubid`, `audit_anps`)
)
COMMENT='aba_cmt'
COLLATE='latin1_swedish_ci'
ENGINE=MyISAM
ROW_FORMAT=DEFAULT
AUTO_INCREMENT=5483
```
```
CREATE TABLE `public_publications` (
`pubid` INT(11) NOT NULL AUTO_INCREMENT,
`pub_memid` DOUBLE NULL DEFAULT NULL,
`pub_ledger_code` VARCHAR(255) NULL DEFAULT NULL,
`pub_title` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_previousname` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_tSummaryTitle` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_bBillPublisher` DOUBLE NULL DEFAULT NULL,
`deprecated_bBillOtherMember` DOUBLE NULL DEFAULT NULL,
`deprecated_BillMemID` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_BBillAdHocAddress` DOUBLE NULL DEFAULT NULL,
`pub_address` VARCHAR(255) NULL DEFAULT NULL,
`pub_suburb` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_state1` VARCHAR(255) NULL DEFAULT NULL,
`pub_mlocation` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_postcode` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_membership_amount` DOUBLE NULL DEFAULT NULL,
`deprecated_receipt_date` VARCHAR(255) NULL DEFAULT NULL,
`pub_abc` DOUBLE NULL DEFAULT NULL,
`pub_unfinancial` TINYINT(1) NULL DEFAULT '0',
`pub_auditmemid` DOUBLE NULL DEFAULT NULL,
`deprecated_auditorid` DOUBLE NULL DEFAULT NULL,
`pub_audittype` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_PubType` DOUBLE NULL DEFAULT NULL,
`pub_classification` INT(11) NULL DEFAULT NULL,
`deprecated_OldPubID` DOUBLE NULL DEFAULT NULL,
`deprecated_OldCompanyID` DOUBLE NULL DEFAULT NULL,
`pub_contactid` DOUBLE NULL DEFAULT NULL,
`pub_auditremarks` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_bGovernment` DOUBLE NULL DEFAULT NULL,
`deprecated_bExGovernment` DOUBLE NULL DEFAULT NULL,
`deprecated_dDateJoined` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_tDaysPublished` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_stateid` VARCHAR(50) NULL DEFAULT NULL,
`deprecated_PublisherCost` DOUBLE NULL DEFAULT NULL,
`pub_magazinecategory` DOUBLE NULL DEFAULT NULL,
`deprecated_dayspublished` DOUBLE NULL DEFAULT NULL,
`pub_frequency` VARCHAR(255) NULL DEFAULT NULL,
`pub_type` INT(11) NULL DEFAULT NULL,
`pub_subtype` VARCHAR(255) NULL DEFAULT NULL,
`deprecated_MYOBExport` DOUBLE NULL DEFAULT NULL,
`deprecated_periodJAN-JUNE` DOUBLE NULL DEFAULT NULL,
`deprecated_periodJUL-DEC` DOUBLE NULL DEFAULT NULL,
`deprecated_periodJAN-MAR` DOUBLE NULL DEFAULT NULL,
`deprecated_periodAPR-JUN` DOUBLE NULL DEFAULT NULL,
`deprecated_periodJUL-SEPT` DOUBLE NULL DEFAULT NULL,
`deprecated_periodOCT-DEC` DOUBLE NULL DEFAULT NULL,
`deprecated_periodApr-Mar` DOUBLE NULL DEFAULT NULL,
`deprecated_periodOct-Sept` DOUBLE NULL DEFAULT NULL,
`deprecated_UnfinancialDate` VARCHAR(255) NULL DEFAULT NULL,
`pub_location` VARCHAR(255) NULL DEFAULT NULL,
`Address` VARCHAR(255) NULL DEFAULT NULL COMMENT 'Address',
`deprecated_AuditorName` VARCHAR(255) NULL DEFAULT NULL COMMENT 'use pub_auditorid instead. ',
`deprecated_AuditorEmail` VARCHAR(255) NULL DEFAULT NULL COMMENT 'use pub_auditorid instead. ',
`pub_auditflag` VARCHAR(45) NULL DEFAULT NULL,
`pub_datemodified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`pub_website` VARCHAR(255) NULL DEFAULT NULL,
`pub_mastheadurl` VARCHAR(255) NULL DEFAULT NULL,
`pub_frequencyid` INT(11) NULL DEFAULT NULL,
`pub_nimparentpubid` INT(11) NULL DEFAULT NULL,
`pub_active` TINYINT(4) NULL DEFAULT NULL,
`remove_datemodified` TIMESTAMP NULL DEFAULT NULL,
`pub_datecreated` TIMESTAMP NULL DEFAULT NULL,
`pub_dayspublished` SET('mon','tue','wed','thu','fri','sat','sun') NULL DEFAULT NULL,
`pub_state` VARCHAR(10) NULL DEFAULT NULL,
`pub_contact_vote` INT(10) NULL DEFAULT NULL,
`pub_contact_auditletter1` INT(10) NULL DEFAULT NULL,
`pub_contact_auditletter2` INT(10) NULL DEFAULT NULL,
`pub_auditorid` INT(10) NULL DEFAULT NULL COMMENT 'Put the user id of the auditor in this field for ABC elodgement. (see sc_module_users user_id, listed in the module > users page in edata backend)',
`pub_next_audit_period` INT(10) NULL DEFAULT NULL,
`pub_next_audit_type` INT(10) NULL DEFAULT NULL,
PRIMARY KEY (`pubid`),
INDEX `Index_2` (`pub_title`),
INDEX `Unfinancial` (`pub_unfinancial`),
INDEX `lPublicationType` (`pub_type`)
)
COLLATE='latin1_swedish_ci'
ENGINE=MyISAM
ROW_FORMAT=DEFAULT
AUTO_INCREMENT=20000
```
table
```
CREATE TABLE `Members` (
`MemID` INT(11) NOT NULL AUTO_INCREMENT,
`ABC` INT(11) NOT NULL,
`Mem_Type_ID` SMALLINT(6) NOT NULL,
`Membership Status` VARCHAR(80) NULL DEFAULT NULL,
`reference` VARCHAR(255) NULL DEFAULT NULL,
`CABReference` VARCHAR(50) NULL DEFAULT NULL,
`Company_Name` VARCHAR(255) NOT NULL,
`Street_Address` VARCHAR(255) NULL DEFAULT NULL,
`Street_Address_Line2` VARCHAR(100) NULL DEFAULT NULL,
`Suburb` VARCHAR(255) NULL DEFAULT NULL,
`State` VARCHAR(255) NULL DEFAULT NULL,
`Post_Code` VARCHAR(255) NULL DEFAULT NULL,
`unfinancial` TINYINT(1) NULL DEFAULT NULL,
`file` VARCHAR(255) NULL DEFAULT NULL,
`Phone` VARCHAR(255) NULL DEFAULT NULL,
`Fax` VARCHAR(255) NULL DEFAULT NULL,
`WebsiteAddress` VARCHAR(70) NULL DEFAULT NULL,
`TempAddress` VARCHAR(255) NULL DEFAULT NULL,
`ABCWebsitePassword` VARCHAR(10) NULL DEFAULT NULL,
`ABCWebsiteUsername` VARCHAR(10) NULL DEFAULT NULL,
`CABWebsiteUsername` VARCHAR(10) NULL DEFAULT NULL,
`CABWebsitePassword` VARCHAR(10) NULL DEFAULT NULL,
`MembershipAmount` DOUBLE NULL DEFAULT NULL,
`MYOBExport` TINYINT(1) NULL DEFAULT NULL,
`MYOBTaxCode` VARCHAR(3) NULL DEFAULT NULL,
`Date_Last_Payment` VARCHAR(40) NULL DEFAULT NULL,
`Date_Admitted` VARCHAR(40) NULL DEFAULT NULL,
`Date_Resigned` VARCHAR(40) NULL DEFAULT NULL,
`masthead_url` VARCHAR(255) NULL DEFAULT NULL,
`masthead_report` TINYINT(1) NULL DEFAULT '0',
`masthead_image` VARCHAR(255) NULL DEFAULT NULL,
`masthead_description` TEXT NULL,
`masthead_title` VARCHAR(255) NULL DEFAULT NULL,
PRIMARY KEY (`MemID`),
INDEX `MemID` (`MemID`)
)
COLLATE='latin1_swedish_ci'
ENGINE=MyISAM
ROW_FORMAT=DEFAULT
AUTO_INCREMENT=12349
```
As for the other tables, they are fairly irrelevant, although happy to post them if you think they are relevant, just comment on it.
Thanks. Here is the latest explain query result:

And a quick summary
1. Added indexes to All foreign keys and added primary keys to publicationtypes and audittypes tables (these are just lookup tables)
2. Added an index on the sort for public_publications and publications_audit table
these have greatly decreased the query time, but it still runs in about 0.4 seconds, and there's only a total of around 4300 rows.
Any advice you have would be greatly appreciated!
---
After a bit more debugging, I realise that if I remove all the guff from my select clause that the query runs quite fast. Now I am wondering if there is something within my select clause that is making it run so slow.
Can anyone point out some slowness to do with this select query:
```
`p`.`pub_memid` AS `pub_memid`,
`a`.`audit_inexcess` AS `audit_inexcess`,
`a`.`auditid` AS `auditid`,
`a`.`audit_period` AS `audit_period`,
year(`a`.`audit_periodenddate`) AS `audit_year`,
`p`.`pub_unfinancial` AS `pub_unfinancial`,
`p`.`pub_title` AS `pub_title`,
concat(`p`.`pub_title`,_latin1'{%}',`p`.`pubid`) AS `pub_title@display`,
`p`.`pubid` AS `pubid`,
`a`.`audit_periodstartdate` AS `audit_periodstartdate`,
date_format(`a`.`audit_periodstartdate`,_latin1'%b %y') AS `audit_periodstartdate@display`,
`a`.`audit_periodenddate` AS `audit_periodenddate`,
date_format(`a`.`audit_periodenddate`,_latin1'%b %y') AS `audit_periodenddate@display`,
`a`.`audit_type` AS `audit_type`,
`auau7859_aba`.`ed_abc_audittypes`.`audittype_title` AS `audittype_title`,
`p`.`pub_state` AS `pub_state`,
`p`.`pub_location` AS `pub_location`,
`p`.`pub_dayspublished` AS `pub_dayspublished`,
`auau7859_aba`.`ed_aba_frequencies`.`frequency_title` AS `frequency_title`,
`a`.`audit_issues` AS `audit_issues`,
`a`.`audit_issuesaudited` AS `audit_issuesaudited`,
if(((`a`.`audit_exclusions` <> 0) or (`a`.`audit_bumperissues` <> 0)),concat(_utf8'*',`a`.`audit_issuesaudited`),`a`.`audit_issuesaudited`) AS `audit_issuesaudited@display`,
`a`.`audit_coverprice` AS `audit_coverprice`,
concat(_utf8'$',`a`.`audit_coverprice`) AS `audit_coverprice@display`,
`a`.`audit_coverpriceday` AS `audit_coverpriceday`,
date_format(`a`.`audit_periodenddate`,_latin1'%b %y') AS `period_ending`,
`a`.`audit_remarks` AS `audit_remarks`,
`p`.`pub_type` AS `pub_type`,
`auau7859_aba`.`ed_abc_publicationtypes`.`publicationtype_title` AS `publicationtype_title`,
`a`.`audit_anps` AS `audit_anps`,
if(`a`.`audit_inexcess`,concat(_utf8'+',format(`a`.`audit_anps`,0)),format(`a`.`audit_anps`,0)) AS `audit_anps@display`,
if((`a`.`audit_inclaccomairlinesales` > 0),concat(format((`a`.`audit_inclaccomairlinesales` * 100),2),_utf8'%'),_utf8'') AS `audit_inclaccomairlinesales@display`,
if((`a`.`audit_incleducationalsales` > 0),concat(format((`a`.`audit_incleducationalsales` * 100),2),_utf8'%'),_utf8'') AS `audit_incleducationalsales@display`,
if((`a`.`audit_incleventsales` > 0),concat(format((`a`.`audit_incleventsales` * 100),2),_utf8'%'),_utf8'') AS `audit_incleventsales@display`,
if((`a`.`audit_inclmultiplepublicationsales` > 0),concat(format((`a`.`audit_inclmultiplepublicationsales` * 100),2),_utf8'%'),_utf8'') AS `audit_inclmultiplepublicationsales@display`,
if((`a`.`audit_bundledsales` > 0),concat(format((`a`.`audit_bundledsales` * 100),2),_utf8'%'),_utf8'') AS `audit_bundledsales@display`,
if((`a`.`audit_nznps` > 0),format(`a`.`audit_nznps`,0),_utf8'') AS `audit_nznps@display`,
if((`a`.`audit_othercountries` > 0),format(`a`.`audit_othercountries`,0),_utf8'') AS `audit_othercountries@display`,
if((`a`.`audit_exclaustraliaother` > 0),format(`a`.`audit_exclaustraliaother`,0),_utf8'') AS `audit_exclaustraliaother@display`,
`a`.`audit_inclaccomairlinesales` AS `audit_inclaccomairlinesales`,
`a`.`audit_incleducationalsales` AS `audit_incleducationalsales`,
`a`.`audit_incleventsales` AS `audit_incleventsales`,
`a`.`audit_inclmultiplepublicationsales` AS `audit_inclmultiplepublicationsales`,
`a`.`audit_bundledsales` AS `audit_bundledsales`,
`a`.`audit_nznps` AS `audit_nznps`,
`a`.`audit_othercountries` AS `audit_othercountries`,
`a`.`audit_exclaustraliaother` AS `audit_exclaustraliaother`,
`p`.`pub_mastheadurl` AS `pub_mastheadurl`,
`a`.`auditid` AS `audit_mastheadlink`,
concat(ifnull(`a`.`audit_bumperissuedates`,_latin1''),_latin1'{%}',ifnull(`a`.`audit_excludeddates`,_latin1''),_latin1'{%}',ifnull(`a`.`audit_remarks`,_latin1'')) AS `audit_remarks@display`,
if((ifnull(`a`.`audit_specialpublishingday`,_latin1'') <> _latin1''),concat(ifnull(`p`.`pub_dayspublished`,_latin1''),_latin1'{%}',ifnull(`a`.`audit_specialpublishingday`,_latin1'')),`p`.`pub_dayspublished`) AS `pub_dayspublished@display`,
`a`.`audit_parentpublication` AS `audit_parentpublication`,
if((ifnull(`p`.`pub_nimparentpubid`,0) > 0),(select `nimpub`.`pub_title` AS `pub_title` from `auau7859_aba`.`public_publications` `nimpub` where (`nimpub`.`pubid` = `p`.`pub_nimparentpubid`)),_latin1'') AS `audit_parentpublication@display`,
`a`.`audit_digital_anps` AS `audit_digital_anps`,
if((`a`.`audit_digital_anps` > 0),format(`a`.`audit_digital_anps`,0),_utf8'') AS `audit_digital_anps@display`,
`a`.`audit_digital_bumperissuedates` AS `audit_digital_bumperissuedates`,
`a`.`audit_digital_bumperissues` AS `audit_digital_bumperissues`,
`a`.`audit_digital_bumperissueslinked` AS `audit_digital_bumperissueslinked`,
`a`.`audit_digital_coverprice` AS `audit_digital_coverprice`,
concat(_utf8'$',`a`.`audit_digital_coverprice`) AS `audit_digital_coverprice@display`,
`a`.`audit_digital_coverprice2` AS `audit_digital_coverprice2`,
`a`.`audit_digital_coverprice2day` AS `audit_digital_coverprice2day`,
`a`.`audit_digital_coverprice3` AS `audit_digital_coverprice3`,
`a`.`audit_digital_coverprice3day` AS `audit_digital_coverprice3day`,
`a`.`audit_digital_coverprice4` AS `audit_digital_coverprice4`,
`a`.`audit_digital_coverprice4day` AS `audit_digital_coverprice4day`,
`a`.`audit_digital_coverpriceday` AS `audit_digital_coverpriceday`,
`a`.`audit_digital_excludeddates` AS `audit_digital_excludeddates`,
`a`.`audit_digital_inclaccomairlinesales` AS `audit_digital_inclaccomairlinesales`,
if((`a`.`audit_digital_inclaccomairlinesales` > 0),concat(format(`a`.`audit_digital_inclaccomairlinesales`,2),_utf8'%'),_utf8'') AS `audit_digital_inclaccomairlinesales@display`,
`a`.`audit_digital_incleducationalsales` AS `audit_digital_incleducationalsales`,
if((`a`.`audit_digital_incleducationalsales` > 0),concat(format(`a`.`audit_digital_incleducationalsales`,2),_utf8'%'),_utf8'') AS `audit_digital_incleducationalsales@display`,
`a`.`audit_digital_incleventsales` AS `audit_digital_incleventsales`,
if((`a`.`audit_digital_incleventsales` > 0),concat(format(`a`.`audit_digital_incleventsales`,2),_utf8'%'),_utf8'') AS `audit_digital_incleventsales@display`,
`a`.`audit_digital_inclmultiplepublicationsales` AS `audit_digital_inclmultiplepublicationsales`,
if((`a`.`audit_digital_inclmultiplepublicationsales` > 0),concat(format(`a`.`audit_digital_inclmultiplepublicationsales`,0),_utf8'%'),_utf8'') AS `audit_digital_inclmultiplepublicationsales@display`,
`a`.`audit_digital_bundledsalesdigital` AS `audit_digital_bundledsalesdigital`,
if((`a`.`audit_digital_bundledsalesdigital` > 0),concat(format(`a`.`audit_digital_bundledsalesdigital`,2),_utf8'%'),_utf8'') AS `audit_digital_bundledsalesdigital@display`,
`a`.`audit_digital_issues` AS `audit_digital_issues`,
`a`.`audit_digital_issuesaudited` AS `audit_digital_issuesaudited`,
if(((ifnull(`a`.`audit_digital_excludeddates`,_latin1'') <> _latin1'') or (`a`.`audit_digital_bumperissues` <> 0)),concat(_utf8'*',`a`.`audit_digital_issuesaudited`),`a`.`audit_digital_issuesaudited`) AS `audit_digital_issuesaudited@display`,
`a`.`audit_digital_nonpublishingdates` AS `audit_digital_nonpublishingdates`,
`a`.`audit_digital_remarks` AS `audit_digital_remarks`,
concat(ifnull(`a`.`audit_digital_bumperissuedates`,_latin1''),_latin1'{%}',ifnull(`a`.`audit_digital_excludeddates`,_latin1''),_latin1'{%}',ifnull(`a`.`audit_digital_remarks`,_latin1'')) AS `audit_digital_remarks@display`,
`m`.`Company_Name` AS `publisher`,
`auau7859_aba`.`ed_abc_publicationtypes`.`publicationtype_abbreviation` AS `publicationtype_abbreviation`
```
| How can I optimise this query in MYSQL? What needs to be done | CC BY-SA 4.0 | null | 2010-08-19T00:40:40.720 | 2020-12-19T19:49:34.327 | 2020-12-19T19:49:34.327 | 1,783,163 | 311,465 | [
"sql",
"mysql",
"view",
"query-optimization"
] |
3,518,766 | 1 | null | null | 2 | 3,510 | I have an HTA that loads up an external webpage inside a nested IFRAME. This webpage (which I don't have control over) throws an "Access Denied" error in my HTA asking the user if they "want to continue running scripts on this page". What I want to do is have my HTA suppress all scripting error messages regardless of where they originate
Here's a very basic idea of how my setup is working:
```
<html>
<head><HTA:APPLICATION ... ... </head>
<body>
...
<div id="navigation">...</div>
<div id="browsers">
<iframe APPLICATION="yes" src="http://myserver/browse.php?src=http://www.example.com/">
<!-- contents of http://myserver/browse.php?src=http://www.example.com/ -->
<html>...
<body>
<div id="titlebar">...</div>
<iframe APPLICATION="no" src="http://www.example.com/">
<!-- contents of http://www.example.com/ with js that causes error -->
</iframe>
</body>
</html>
</iframe>
<iframe APPICATION="yes" src="http://myserver/browse.php?src=somethingelese"></iframe>
</div>
</body>
</html>
```
And here is a screenshot of the error:

| How do you suppress script errors in HTAs? | CC BY-SA 2.5 | 0 | 2010-08-19T04:38:31.203 | 2010-11-11T13:35:51.860 | null | null | 146,897 | [
"vbscript",
"error-handling",
"javascript",
"hta"
] |
3,519,185 | 1 | 3,538,014 | null | 2 | 2,258 | There is a nice feature in the "Open Project..." dialog (see image below) in the NetBeans IDE which uses a custom icon for the folder symbols depending on the project type in that folder.
For example, if a folder contains a pom.xml file, the Maven project symbol appears.
Maybe there also an extension point in the Windows standard dialog or a shell view control which can be used to override the default folder icon.
All solutions I know so far need a system-wide change, but is there also a solution which works without system modifications and only for the current application?

Update: which VCL component would you suggest as a starting point for a custom dialog, could I use TShellTreeView or TcxShellTreeView?
| How can I use custom icons in a "Browse for folder" dialog? | CC BY-SA 2.5 | 0 | 2010-08-19T06:14:55.587 | 2010-08-22T01:23:17.603 | 2010-08-20T08:06:41.443 | 80,901 | 80,901 | [
"delphi",
"winapi",
"dialog",
"icons",
"directory"
] |
3,519,571 | 1 | 3,519,860 | null | 0 | 457 | 
i open a web application in visual studio 2008...
it contain the tree view properties as,
```
TreeNodeType type;
type = new TreeNodeType();
type.Type = "folder";
type.ImageUrl = "Images/" + "folder.gif";
type.ExpandedImageUrl = "Images/" + "folderopen.gif";
```
i dont know how this image tag comes.. and how to chage that...
| tree view properties in web application | CC BY-SA 2.5 | null | 2010-08-19T07:16:08.087 | 2010-08-19T08:15:20.350 | null | null | 411,883 | [
"asp.net"
] |
3,519,835 | 1 | 3,519,910 | null | 16 | 18,053 | I have created a c# windows application and written 75% of the code. The program allows the user to create a flow chart, and will shade the flow chart shapes according to their status. I wanted them to become 3d buttons such as  from the website [Webdesign.org](http://www.webdesign.org/photoshop/drawing-techniques/gel-button.13626.html)
Rather than create a PNG for each button, I wanted to create them in C# using brushes or other technique, such as:
```
// Create solid brush.
SolidBrush blueBrush = new SolidBrush(Color.Blue);
// Create points that define polygon.
PointF point1 = new PointF(50.0F, 50.0F);
PointF point2 = new PointF(100.0F, 25.0F);
PointF point3 = new PointF(200.0F, 5.0F);
PointF point4 = new PointF(250.0F, 50.0F);
PointF point5 = new PointF(300.0F, 100.0F);
PointF point6 = new PointF(350.0F, 200.0F);
PointF point7 = new PointF(250.0F, 250.0F);
PointF[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};
// Define fill mode.
FillMode newFillMode = FillMode.Winding;
// Fill polygon to screen.
e.Graphics.FillPolygon(blueBrush, curvePoints, newFillMode);
```
I know WPF has radial gradients, but can I do something simular in CGI?
| c# radial gradient brush effect in GDI and winforms | CC BY-SA 3.0 | 0 | 2010-08-19T08:05:48.840 | 2015-03-05T13:45:21.127 | 2012-11-29T10:40:17.540 | 571,433 | 392,705 | [
"c#",
"winforms",
"gdi",
"brush"
] |
3,520,050 | 1 | null | null | 9 | 14,186 | HI I'm trying to get a UITextField to look like the google search field available in the safari app on iPad. The purpose of the field will be the same (a search box).
I know i could use a UISearchBar but I would have to use hackish code to get rid of the magnifying glass icon and the background and I don't want that.
I'm attaching an image with the TextField used by apple as their search box. How can I modify an UITextField to look and behave like the search field in this screenshot?

I tried to modified the UITextField's layer roundedCorners property but this doesn't work as expected.
Any help is very much appreciated!
Thank you!
| How can i make a more rounded UITextField? Like the search field in Safari on iPad | CC BY-SA 2.5 | 0 | 2010-08-19T08:42:42.560 | 2012-08-04T19:49:52.557 | null | null | 299,285 | [
"iphone",
"uikit",
"uitextfield",
"uisearchbar"
] |
3,520,665 | 1 | null | null | 1 | 179 | my InApp type is subscription.
once i tap on OK it always call
```
- (void)failedTransaction:(SKPaymentTransaction *)transaction
```
how to handle it call on completeTransaction ?

| how to handle inApp subscription type when it purchesed but not download yet | CC BY-SA 2.5 | null | 2010-08-19T10:06:19.940 | 2011-11-15T14:49:09.407 | null | null | 203,372 | [
"iphone",
"subscription",
"storekit"
] |
3,521,455 | 1 | 3,537,050 | null | 1 | 406 | What tool do I need to generate XML intellisense help file as shown below?

| How to generate external intellisense documentation | CC BY-SA 2.5 | null | 2010-08-19T11:51:15.507 | 2010-08-21T09:07:16.027 | null | null | 4,035 | [
"documentation",
"intellisense",
"xml-documentation",
"developer-tools"
] |
3,521,861 | 1 | null | null | 1 | 5,966 | Is there any way to prevent android webview to scale the rendered web page .
I need to load an url which has links to other pages .When user clicks these links the rendered page is not aligned properly(i mean it cramps all the stuff within the screen width and height ) as compared to default handling of same web page by android browser .
The alignment is proper when i comment shouldOverrideUrlLoading ,but i need the redirects within my app so i can't avoid overriding shouldOverrideUrlLoading.Is there any other options left out.

The first image shows webview rendering page within my app as i override shouldOverrideUrlLoading and the second image shows the same screen after commenting shouldOverrideUrlLoading.
| How to avoid scaling of android webview | CC BY-SA 2.5 | 0 | 2010-08-19T12:43:43.763 | 2011-08-09T06:42:29.193 | null | null | 286,044 | [
"android",
"webview"
] |
3,522,300 | 1 | 3,522,312 | null | 2 | 232 | > How should I handle this situation?
I set the Encoding to UTF8 but I still get errors...

I create that string (that I set to the `WebBrowser.DocumentText`) from a `MemoryStream` object and I'm ending it like this:
```
Byte[] buffer = new Byte[ms.Length];
buffer = ms.ToArray();
return System.Text.Encoding.UTF8.GetString(buffer);
```
What am I missing?
| How to handle Illegal Chars in XML | CC BY-SA 2.5 | null | 2010-08-19T13:34:30.993 | 2010-08-19T13:35:49.520 | null | null | 28,004 | [
"c#",
"xml",
"winforms",
"encoding"
] |
3,522,939 | 1 | null | null | 1 | 198 | I have 100,000 queries, and I need to create a google-like 'Suggestions' system.
Much like this

I need it to be pretty quick, and if possible allow for some more in-depth options (like sorting, etc.).
Can anyone recommend a database system I could use for this that could handle searching through 100k+ queries while still keeping speed, or an existing project that you think would work for my needs?
I've been looking into possibly using MongoDB, but I'm not yet sure if that's the best route.
Any help is appreciated!
| Scalable 'google suggestions'-like system | CC BY-SA 2.5 | 0 | 2010-08-19T14:46:30.237 | 2017-08-03T02:56:26.493 | 2017-09-22T17:57:57.377 | -1 | 425,355 | [
"mysql",
"mongodb",
"search",
"full-text-search",
"database"
] |
3,523,309 | 1 | null | null | 3 | 608 | my `body` has a tiled background (blueness in attached image)
I need to horizontally centre some fixed width and height content (greenness), a fixed distance from the top of the page.
I then need to continue the background image of the centred content to the left and right extremities of the page, however wide the browser is (the purple)
The reason for this is that the green content has a "hole" in it, which allows the `body` background to show through. If this wasnt a requirement id make the purpleness a 100% width div which wraps the content, and simply give it the tiled background image.

So far i've managed this:
```
<div id="Left"></div>
<div id="Right"></div>
<div id="Content"></div>
#Left
{
width: 50%;
margin-right: 480px;
position: absolute;
top: 50px;
right: 50%;
height: 525px;
background: transparent url(/images/purple.png) repeat-x scroll center top;
}
#Right
{
width: 50%;
margin-left: 480px;
position: absolute;
top: 50px;
left: 50%;
height: 525px;
background: transparent url(/images/purple.png) repeat-x scroll center top;
}
#Content
{
position: absolute;
top: 50px;
left: 50%;
margin-left: -480px;
width: 960px;
height: 525px;
background: transparent url(/images/green.png) no-repeat scroll center top;
}
```
Which work, except the page has a horizontal scroll bar with the right hand purpleness extending for some way. How can i overcome this?
I can't spoof the hole by simply duplicating the background, and i'd like to avoid putting an `overflow-x: hidden` on the body.
I also need to have a variable height page, as the given `525px height` may be much larger and therefore the page will need to v-scroll.
This needs to work in IE7+, FF, Safari
Thanks
| tricky css positioning question | CC BY-SA 2.5 | 0 | 2010-08-19T15:21:09.077 | 2010-08-19T18:29:05.653 | 2010-08-19T15:52:48.183 | 28,543 | 28,543 | [
"css"
] |
3,525,473 | 1 | 3,525,492 | null | 2 | 164 | Okay, first, here's my rather poor diagram...

It's worth noting the "Name Me" class may be listening to more than one `RequestNotifier`
It's safe to assume all Work Items that are put on the Work Queue are taken off the work queue by something else not shown and are processed exactly the same.
The only difference between the work items is the name (or id, but the name is my id in this) of the WorkItem that's being requested.
`Name Me` listens to Requests to work on a specific WorkItem, it then asks (a repository or some other data access class) for a WorkItem with that name, if one exists, submits it to the Work Queue. If none is found it ignores it and it's safe to do so.
Any ideas for a name, or if not a name, a better design that would make naming easier?
| Help me name my class | CC BY-SA 2.5 | null | 2010-08-19T19:27:07.853 | 2010-08-19T19:42:51.183 | null | null | 1,610 | [
"oop",
"class",
"naming"
] |
3,525,790 | 1 | 5,111,505 | null | 3 | 1,198 | I simple form which have some fields. So i decided to add few DataField with textboxes and labels. Labels manageable and their length can be changed and i need to place my textboxes on the same distance from left side. How can i do this thing?

| Silverlight datafields content alignment | CC BY-SA 2.5 | 0 | 2010-08-19T20:09:01.267 | 2011-02-24T22:47:01.153 | null | null | 508,330 | [
"c#",
".net",
"wpf",
"silverlight"
] |
3,525,983 | 1 | 3,526,185 | null | 1 | 3,370 | i want to add a SWF metadata tag to an ActionScript Project in Flash Builder 4, that denotes the default size and background color of the swf.
i can do this in Flash Professional, but it doesn't work with ActionScript projects in FB4? can i not include this tag? i know i can set these properties in the properties panel, but i'd like to have them in my code.

| Coded SWF Properties in Flash Builder 4 | CC BY-SA 2.5 | null | 2010-08-19T20:35:28.237 | 2015-10-12T09:49:34.370 | 2015-10-12T09:49:34.370 | 1,213,296 | 336,929 | [
"actionscript-3",
"apache-flex",
"metadata",
"flash-builder",
"flexbuilder"
] |
3,526,134 | 1 | 3,526,352 | null | 0 | 574 | I tried to insert `NSDictionary`'s in a `NSMutableDictionary`. There is no error but it won't work, it remains empty.
Here's my code:
```
NSMutableDictionary *einnahmen = [[NSMutableDictionary alloc] initWithCapacity:20];
NSArray *objects = [NSArray arrayWithObjects:
name,
[NSNumber numberWithInt: x],
[NSNumber numberWithInt: y],
[NSNumber numberWithInt: z],
nil];
NSArray *keys = [NSArray arrayWithObjects:
@"name",
@"startJahr",
@"zins",
@"entnahmefaehig",
nil];
NSDictionary *entry = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
[einnahmen setObject:entry forKey:@"name"]; //seems not to work
```
After `[einnahmen setObject:entry` the Debugger shows this:

| Insert NSMutableDictionary with NSDictionaries | CC BY-SA 2.5 | null | 2010-08-19T20:51:08.310 | 2011-01-22T15:35:34.040 | 2011-01-22T15:35:34.040 | 419 | 347,741 | [
"objective-c",
"nsmutablearray"
] |
3,526,287 | 1 | 3,529,793 | null | 0 | 295 | I downloaded subsonic 3.0.0.4 and i am trying now to configure it to work with mysql and Visual studio 2010.
My project is .net 3.5 and i am creating a data access layer class library to use later in a website.
I can't figure which files i should add to my project and where to edit.
Last step i reached is in this screen shot:

| How to configure subsonic 3.0.0.4 using mysql with Visual Studio 2010? | CC BY-SA 2.5 | null | 2010-08-19T21:12:06.590 | 2010-08-20T09:52:25.933 | null | null | 20,126 | [
"visual-studio-2010",
".net-3.5",
"subsonic",
"data-access-layer"
] |
3,526,566 | 1 | 3,526,603 | null | 1 | 1,265 | I have a problem with Updating Form Element Look and Feel under Update Panel Control.
I Used [Uniform JQuery Plugin](http://pixelmatrixdesign.com/uniform/) to shape form controls such as DropDown. it works very well in a ASP.net form but i used an update panel to generate CheckboxList Items when user selects a dropDownList Item.
The picture Below Shows form Look and Feel:

but when I Select a Category from list to update the UpdatePanel Template and updating CheckBoxes the uniform style removes from controls located inside update panel:

I call uniform function above the form:
```
<script type="text/javascript">
$(function() {
$("input, textarea, select, button").uniform();
});
</script>
```
and Update Panel Markup:
```
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<p>
انتخاب دسته: <myCtrl:CategoryDDL AutoPostback="True" EmptyItemText="همهی دستهها"
ID="CategoryDDL" OnSelectedIndexChanged="CategoryDDL_SelectedIndexChanged" runat="server"
SelectedCategoryId="0" />
</p>
<p>
برند محصولات<br />
<asp:CheckBoxList ID="CheckBoxListBrands" runat="server">
</asp:CheckBoxList>
</p>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="CategoryDDL" />
</Triggers>
</asp:UpdatePanel>
```
| Controls inside Update Panel and JQuery Form Look and Feel Plugin Problem!!! HELP | CC BY-SA 2.5 | 0 | 2010-08-19T21:50:41.833 | 2013-03-12T05:40:21.320 | 2020-06-20T09:12:55.060 | -1 | 86,878 | [
"asp.net",
"jquery",
"jquery-plugins",
"updatepanel",
"look-and-feel"
] |
3,526,753 | 1 | 3,526,769 | null | 1 | 8,493 | I installed VS10 side-by-side with VS9 and created a very simple application using it:
```
#include <cstdlib>
#include <vector>
#include <algorithm>
using namespace std;
class A
{
};
class B : public A
{
};
A* get_a() { return new B; }
int main()
{
vector<A*> a_list;
vector<B*> b_list;
generate_n(back_inserter(a_list), 10, get_a);
return 0;
}
```
This generated a number of very odd compiler errors:
```
1>hacks_vs10.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ) referenced in function "protected: void __thiscall std::vector<class A *,class std::allocator<class A *> >::_Tidy(void)" (?_Tidy@?$vector@PAVA@@V?$allocator@PAVA@@@std@@@std@@IAEXXZ)
1>hacks_vs10.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (__imp_??1_Container_base_secure@std@@QAE@XZ) referenced in function "protected: __thiscall std::_Container_base_aux_alloc_empty<class std::allocator<class A *> >::~_Container_base_aux_alloc_empty<class std::allocator<class A *> >(void)" (??1?$_Container_base_aux_alloc_empty@V?$allocator@PAVA@@@std@@@std@@IAE@XZ)
1>hacks_vs10.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) referenced in function "protected: static void __cdecl std::vector<class A *,class std::allocator<class A *> >::_Xlen(void)" (?_Xlen@?$vector@PAVA@@V?$allocator@PAVA@@@std@@@std@@KAXXZ)
1>hacks_vs10.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) referenced in function "protected: staticvoid __cdecl std::vector<class A *,class std::allocator<class A *> >::_Xlen(void)" (?_Xlen@?$vector@PAVA@@V?$allocator@PAVA@@@std@@@std@@KAXXZ)
1>hacks_vs10.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) referenced in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>hacks_vs10.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) referenced in function "public: virtual char const * __thiscall std::logic_error::what(void)const " (?what@logic_error@std@@UBEPBDXZ)
1>hacks_vs10.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (__imp_??0_Container_base_secure@std@@QAE@XZ) referenced in function "protected: __thiscall std::_Container_base_aux_alloc_empty<class std::allocator<class A *> >::_Container_base_aux_alloc_empty<class std::allocator<class A *> >(class std::allocator<class A *>)" (??0?$_Container_base_aux_alloc_empty@V?$allocator@PAVA@@@std@@@std@@IAE@V?$allocator@PAVA@@@1@@Z)
```
...which made me scratch my head for some time, until I discovered that the wrong headers were being `#include`-ed. Instead of the VS10 version of `<vector>` etc, the VS9 files are `#include`-ed. This, in turn, I assume is because the `$(IncludePath)` variable is defined as:

When I went to to change the global setting for this and all future projects, I discovered an unhappy truth:

So how do I change this global setting? The installer clearly set it incorrectly.
| VS10 "Additional Include Directories" Point to VS9 Includes | CC BY-SA 2.5 | 0 | 2010-08-19T22:20:10.347 | 2010-08-19T22:23:37.310 | null | null | 241,536 | [
"visual-studio-2010"
] |
3,527,738 | 1 | 3,527,744 | null | 1 | 472 | What pattern or view do you use to get the confirmation popup like in Mail where you are prompted to Reply, Forward or Cancel?

| iPhone Popup Confirmation | CC BY-SA 2.5 | null | 2010-08-20T02:21:07.740 | 2010-08-20T02:23:20.120 | null | null | 400,649 | [
"iphone"
] |
3,527,865 | 1 | 3,532,323 | null | 9 | 8,635 | Google Chrome now, and Opera before, shows a "spin box" control beside a input field of type "number". I want to be able to style this, or hide it. Are there ways of controlling this UI element yet?
EG:
 <-- That little ui element with an up and down arrow. It's not that functional and its adding unnedded elements to a form I've created.
I understand I can just not have the type as "number" but it allows built in prevention of entering anything other than a number, and is semantically correct.
| Is there a way to hide the new HTML5 spinbox controls shown in Google Chrome & Opera? | CC BY-SA 2.5 | 0 | 2010-08-20T02:54:33.083 | 2010-08-20T15:22:59.770 | null | null | 98,146 | [
"user-interface",
"html",
"google-chrome",
"input",
"opera"
] |
3,527,859 | 1 | 3,527,966 | null | 6 | 280 | This question is about a specific programming problem I am having - I want to make sure that my code (and software algorithm) are sufficient enough to store user credentials in a database.
```
// Get a 32 character salt like '69Mt6nexL1rsjWnu011S53MpB/WmT4Vl'
$passwordSalt = Security::generateBase64Salt();
$user = new User();
$user->setUsername($_POST['username']);
// $_POST['password'] comes in as a 128 character string
// Client side javascript is used to sha512 the string before sending it over POST
// see http://pajhome.org.uk/crypt/md5/
// This prevents novice eavesdroppers from capturing the raw password in plaintext
$user->setPassword(
hash('sha512', $passwordSalt.$_POST['password'])
);
$user->setPasswordSalt($passwordSalt);
$user->save();
```
Here's the database entry for a particular password:

69a78a7586a111b8a567b2d4f42f93f01fb59d337f7fa3c35949a66b246095778c1fa01ff4026abace476091e1e9a183bbdec1c31b12ce3f786921895c98cf6f
69Mt6nexL1rsjWnu011S53MpB/WmT4Vl
- - - -
I'll PayPal you $5 if you can provide me with the original password using the salt and salt + password hash.
| Does my PHP security algorithm effectively store user credentials? | CC BY-SA 2.5 | 0 | 2010-08-20T02:52:51.287 | 2010-08-20T07:24:38.037 | null | null | 102,635 | [
"php",
"security",
"passwords",
"authentication"
] |
3,527,950 | 1 | 3,528,281 | null | 0 | 403 | [Site here.](http://www.ipalaces.org/hosting/register.php)
If you notice, the checkmarks are align with the table. I want the checkmark next to the port to be just right of it, not all the way aligned to the right as it shows.
Edit:
Here is a picture showing what i'd like.

| Positioning checkmark from JQuery Validation | CC BY-SA 3.0 | null | 2010-08-20T03:18:52.160 | 2011-08-03T12:56:05.230 | 2011-08-03T12:56:05.230 | 128,662 | 130,204 | [
"css",
"positioning"
] |
3,528,082 | 1 | 3,579,991 | null | 1 | 1,005 | We have mirroring set up between 2 SQL Server 2005 standard editions.
There are also mirroring alerts set up as follows:
DB Mirroring (Connection with Mirror Lost)
DB Mirroring (Connection with Principal Lost)
DB Mirroring (Principal Running Exposed)
DB Mirroring (Synchronizing Mirror)
DB Mirroring (Synchronizing Principal)
Mirror commit overhead exceeds the threshold (MIRROR)
Oldest unsent transaction exceeds the threshold (PRINCIPAL)
Unrestored log exceeds the threshold (MIRROR)
Unsent log exceeds the threshold (PRINCIPAL)
"Oldest unsent transaction exceeds the threshold" alert was generated a lot of times in last coupld of days. But this alert wasn't specifically for a database. It was just average value.
I thought that this information should be in a table and I found that it was msdb.dbo.dbm_monitor_data table. It holds data like log_flush_rate ,send_queue_size,send_rate,redo_queue_size,redo_rate,transaction_delay and transactions_per_sec with database names. Then i wondered how is this table populated. For this i found that the mirroring monitoring job that SQL server creates "Database Mirroring Monitor Job" runs an sp sp_dbmmonitorupdate which populated this table from Mirroring perfmon counters. This job runs every minute.
The alert was generated for example at 11:23:52.
The jobs only runs once a minute, still it managed to capture data at 11:23:00 and then at 11:23:52 (when the alert was generated) that is twice in the minute.
I thought that may be, when the alert is generated, it also runs this stored procedure. If it updated the table, then I can just run a select statement. But how can I be sure?
Problem:
how can I find out why this table was updated without schedule? what triggered its population? Does anyone know which table holds alerts history data?
NOTE:No rebuild index jobs were running and the mirroring thresholds have been set as in the following screenshot:

Can anyone help please?
thanks in advance
| sql 2005 mirroring alerts history | CC BY-SA 2.5 | null | 2010-08-20T03:56:29.837 | 2010-08-26T22:19:09.780 | null | null | 125,512 | [
"sql-server-2005",
"mirroring",
"alerts"
] |
3,528,302 | 1 | 3,528,584 | null | 2 | 236 | I'm drawing 2D, concave, sometimes multicontoured, sometimes self intersecting polygons with OpenGL.
Here is a sample:

Right now, I take the points which if connected would result in the polygon's outline. Then I put these into the GLUTesselator where triangles come out. I then make texture coordinates and texture the polygon.
The absolute slowest component is the tessellation / triangulation. Given that I just need to draw these as you see, what are faster alternatives to triangulating? Could I possibly find a painting algorithm that would set the pixel appropriately?
Thanks
| Is there a better way to do this? | CC BY-SA 2.5 | 0 | 2010-08-20T05:01:34.547 | 2010-08-20T06:19:54.663 | null | null | 146,780 | [
"c++",
"c",
"algorithm",
"graphics",
"vector"
] |
3,528,359 | 1 | 3,528,376 | null | 180 | 285,130 | Let's say we have this code:
```
<form action='' method='POST' enctype='multipart/form-data'>
<input type='file' name='userFile'><br>
<input type='submit' name='upload_btn' value='upload'>
</form>
```
which results in this:

When the user clicks the 'Browse...' button, a file search dialog box is opened:

The user will select the file either by double-clicking the file or by clicking the 'Open' button .
Is there a Javascript Event that I can use to be notified after the file is selected?
| HTML <input type='file'> File Selection Event | CC BY-SA 4.0 | 0 | 2010-08-20T05:15:26.367 | 2023-02-01T10:01:47.800 | 2022-08-28T14:54:56.517 | 12,369,920 | 158,455 | [
"javascript",
"html",
"dom-events"
] |
3,528,427 | 1 | 3,528,484 | null | 0 | 404 | I ve applied a background to my page like this,
```
body
{
background:#FFFFFF url('images/color.png') repeat top left;
color:#666666;
font-family:Arial,Helvetica,sans-serif;
font-size:80%;
font-style:normal;
font-variant:normal;
font-weight:normal;
white-space:nowrap;
margin:0 auto;
height:100%;
}
```
This seems to work in IE7,firefox and chrome but certainly not in IE6.

| Background repeat doesn't seem to work in IE6 | CC BY-SA 2.5 | null | 2010-08-20T05:37:47.597 | 2010-08-20T07:32:01.420 | null | null | 146,857 | [
"css",
"internet-explorer",
"png",
"internet-explorer-6",
"background-repeat"
] |
3,528,486 | 1 | null | null | 5 | 865 | I'm using Gamekit to send data via bluetooth between two devices. I want to get the name of the device that sent it, but if the name is "Bob's iPhone" I want to cut off the "'s iPhone". I first check for ending in "iPhone" or "iPod Touch".
```
if ([name hasSuffix:@" iPhone"])
{
name = [name substringToIndex:[name length]-7];
}
else if ([name hasSuffix:@" iPod Touch"])
{
name = [name substringToIndex:[name length]-11];
}
```
But when I do the same for "'s" it never returns true. Also the apostrophe looks slightly different then the default apostrophe.
```
if ([name hasSuffix:@"'s"])
{
name = [name substringToIndex:[name length]-2];
}
```
Is there some trick to detecting apostrophes? Is there a way I can do this?
EDIT:
The apostrophe on the left is what name contains, but is not registering with hasSuffix:@"'s". The apostrophe on the right is the apostrophe I added.

| Detecting an Apostrophe in a NSString? | CC BY-SA 2.5 | null | 2010-08-20T05:54:16.907 | 2010-08-20T18:57:02.567 | 2010-08-20T18:57:02.567 | 426,017 | 426,017 | [
"iphone",
"nsstring",
"substring",
"apostrophe"
] |
3,529,602 | 1 | 3,530,617 | null | 0 | 431 | The coding is in ASP.NET 3.5.
Here is the scenario.
I am modifying a page that populates some data.
In that page there is a table that displays pages.
The pages have sub-pages and these sub-pages again have sub-pages.
So thats three levels of hierarchal data presented.
Example:

Right now its populated using asp:Treeview for easier display of the +(maximise) and -(minimise) images and all.
Is that the best method?
What are the alternatives?
I have some complex calculations and so would like to access all rows, sub-rows and sub-sub-rows easily.
| Display three level hierarchial data display in ASP.NET Web Forms | CC BY-SA 2.5 | null | 2010-08-20T09:18:55.207 | 2010-11-26T02:17:35.283 | 2020-06-20T09:12:55.060 | -1 | 17,447 | [
"javascript",
"asp.net",
"webforms",
"hierarchical-data",
"presentation"
] |
3,529,630 | 1 | 3,544,642 | null | 2 | 1,778 | I use,
```
google.load('visualization', '1', {'packages': ['columnchart']});
//google.setOnLoadCallback(drawChart);
function drawChart(response) {
alert(response.customerlist);
var data = new google.visualization.DataTable();
data.addColumn('string', 'dbZipcode');
data.addColumn('string', 'countusers');
data.addRows(response.customerlist.length);
for (var i = 0; i < response.customerlist.length; i++) {
data.setValue(i, 0, response.customerlist[i].dbZipcode);
data.setValue(i, 1, response.customerlist[i].countusers);
}
var container = document.getElementById('spnChart');
container.innerHTML = "";
var chart = new google.visualization.ColumnChart(container);
chart.draw(data, {width: 800, height: 300, is3D: true, title: 'Page Views',
legend:'none', titleX:'ZipCode', titleY:'Total Users'});
}
```
But my chart doesn't contain the drawn graph. Any suggestion.

and my json data,
```
{
"customerlist": [
{ "dbZipcode": "21313213", "countusers": "1" },
{ "dbZipcode": "2313213", "countusers": "1" },
{ "dbZipcode": "23324324", "countusers": "1" },
{ "dbZipcode": "2342432", "countusers": "1" },
{ "dbZipcode": "32424422343", "countusers": "1" },
{ "dbZipcode": "324324324", "countusers": "1" },
{ "dbZipcode": "324324324324", "countusers": "1" },
{ "dbZipcode": "3244324", "countusers": "1" },
{ "dbZipcode": "3422344", "countusers": "1" },
{ "dbZipcode": "342424324", "countusers": "1" },
{ "dbZipcode": "3424324", "countusers": "1" },
{ "dbZipcode": "435345", "countusers": "1" },
{ "dbZipcode": "627028", "countusers": "1" },
{ "dbZipcode": "641030", "countusers": "2" },
{ "dbZipcode": "642582", "countusers": "1" }
]
}
```
| Iterating over json object for drawing a column chart? | CC BY-SA 2.5 | null | 2010-08-20T09:23:47.440 | 2010-08-23T03:48:33.817 | 2010-08-20T09:39:16.123 | 315,935 | null | [
"json",
"object",
"charts",
"iteration",
"google-visualization"
] |
3,529,788 | 1 | null | null | 1 | 5,325 | I have a Grid object and want to get a specific checkbox out of it.
I can use this syntax:
```
CheckBox cbChange = grid.Children[4] as CheckBox;
```
```
CheckBox cbChange = grid.GetXYChild(2,3) as CheckBox; //PSEUDO-CODE
```

```
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
namespace TestGrid92292
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
List<string> rowNames = new List<string>
{
"Marketing",
"Sales",
"Development"
};
Grid grid = new Grid();
grid.Margin = new Thickness(5);
ColumnDefinition col1 = new ColumnDefinition();
col1.Width = new GridLength(100, GridUnitType.Pixel);
grid.ColumnDefinitions.Add(col1);
ColumnDefinition col2 = new ColumnDefinition();
col2.Width = new GridLength(1, GridUnitType.Star);
grid.ColumnDefinitions.Add(col2);
ColumnDefinition col3 = new ColumnDefinition();
col3.Width = new GridLength(1, GridUnitType.Star);
grid.ColumnDefinitions.Add(col3);
int rowCount = 0;
foreach (var rowName in rowNames)
{
RowDefinition row = new RowDefinition();
grid.RowDefinitions.Add(row);
TextBlock tb = new TextBlock();
tb.Text = rowName;
tb.SetValue(Grid.ColumnProperty, 0);
tb.SetValue(Grid.RowProperty, rowCount);
grid.Children.Add(tb);
CheckBox cb = new CheckBox();
cb.SetValue(Grid.ColumnProperty, 1);
cb.SetValue(Grid.RowProperty, rowCount);
cb.HorizontalAlignment = HorizontalAlignment.Left;
grid.Children.Add(cb);
CheckBox cb2 = new CheckBox();
cb2.SetValue(Grid.ColumnProperty, 2);
cb2.SetValue(Grid.RowProperty, rowCount);
cb2.HorizontalAlignment = HorizontalAlignment.Left;
grid.Children.Add(cb2);
rowCount++;
}
//check a specific box
//CheckBox cbChange = grid.GetXYChild(2,3) as CheckBox;
CheckBox cbChange = grid.Children[4] as CheckBox;
cbChange.IsChecked = true;
MainContent.Children.Add(grid);
}
}
}
```
| How to access children in Grid with x/y coordinates instead of index? | CC BY-SA 2.5 | null | 2010-08-20T09:51:40.773 | 2010-08-20T14:05:32.720 | null | null | 4,639 | [
"c#",
"wpf",
"grid"
] |
3,529,927 | 1 | 3,529,948 | null | 1 | 692 | I need to keep in a collection and access them via .
The following example works but only if I know the size of the matrix , since an array is used.
`Dictionary<>, Tuple<>, KeyValuePair<>`

```
using System;
using System.Windows;
using System.Windows.Controls;
namespace TestDoubarray
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
CheckBox[,] checkBoxes = new CheckBox[10, 10];
for (int x = 0; x < 10; x++)
{
for (int y = 0; y < 10; y++)
{
CheckBox cb = new CheckBox();
cb.Tag = String.Format("x={0}/y={1}", x, y);
checkBoxes[x,y] = cb;
}
}
CheckBox cbOut = checkBoxes[4, 8];
Message.Text = cbOut.Tag.ToString();
}
}
}
```
| What is the best way to save a matrix of Checkboxes when x/y are not known until runtime? | CC BY-SA 2.5 | 0 | 2010-08-20T10:11:38.633 | 2010-08-20T11:53:57.700 | null | null | 4,639 | [
"c#",
"arrays",
"collections",
"multidimensional-array"
] |
3,529,972 | 1 | 3,555,810 | null | 0 | 5,218 | I'm designing an HTML Newsletter and I've run into this problem:

As you can see, the cellspacing is completely out of whack: there shouldn't (and CAN'T) be a space between the rows on the left and right column. I don't really know what the culprit could be, any ideas would be appreciated!
Here's the relevant source code:
```
<table width="740" cellpadding="0" cellspacing="0" border="1">
<tr>
<td colspan="3">
<img src="top.jpg" width="740" height="53">
</td>
</tr>
<tr>
<td colspan="3" height="200" valign="top" id="headerCell">
<img src="header.jpg" width="740" height="200" alt="Headerbild">
</td>
</tr>
<tr>
<td>
L
</td>
<td valign="top" width="600" bgcolor="#ffffff">
CONTENT
</td>
<td>
R
</td>
</tr>
```
| Outlook 2010 displaying inconsistent spacing between table cells | CC BY-SA 2.5 | null | 2010-08-20T10:21:38.203 | 2017-06-10T10:42:41.697 | 2017-06-10T10:42:41.697 | 4,370,109 | 149,438 | [
"html",
"outlook",
"html-table",
"html-email"
] |
3,530,032 | 1 | 3,531,281 | null | 3 | 14,693 | In the Perforce realm, the P4Win GUI is now "legacy" and the new P4V is supposed to fill in the void (and it does, most of the time).
There was one very useful (albeit rather hidden) option in P4Win that allowed adding a depot path to the client specification in a few clicks.
Is there a similar option available in P4V? ... because I can't find it.
(I know I can do it manually.)
Here is the P4Win feature, in all its glory:

| Perforce: P4V option to 'add to client view'? (It exists in P4Win) | CC BY-SA 2.5 | null | 2010-08-20T10:30:20.790 | 2013-04-29T16:44:18.477 | null | null | 11,545 | [
"perforce",
"p4v",
"p4win"
] |
3,530,051 | 1 | 3,537,748 | null | 14 | 8,486 | I have made a TForm derivative that acts like the drop down part of a combo, or a hint window, or a popup menu - a temporary thing. It has no caption - its BorderStyle is set to bsNone. The form is displayed non-modally using Show, having set its position.
To make it stand out, it needs a drop shadow around its border. However, a consequence of setting its border to bsNone is that the drop shadow disappears.
Various Google sources suggest variations of this:
```
procedure TdlgEditServiceTask.CreateParams(var Params: TCreateParams);
const
CS_DROPSHADOW = $00020000;
begin
inherited;
{ Enable drop shadow effect on Windows XP and later }
if (Win32Platform = VER_PLATFORM_WIN32_NT) and
((Win32MajorVersion > 5) or
((Win32MajorVersion = 5) and (Win32MinorVersion >= 1))) then
Params.WindowClass.Style := Params.WindowClass.Style or
CS_DROPSHADOW;
end;
```
but it doesn't work - the shadow is not displayed (unless I also set a resizable border with WS_THICKFRAME set, which looks ). This is a popup window, not a child window, so I don't see why it should fail.
Suggestions please?
NB: this is a similar question to [this](https://stackoverflow.com/questions/2992933/delphi-custom-popup-dropdown-how) question, which remains unanswered.
NB2: There is an obscure VCL component called [TShadowWindow](http://docwiki.embarcadero.com/VCL/en/ShadowWnd.TShadowWindow) that looks like it will do the right thing, but turns out to be too crudely written to be practical.
Following Andreas' comments below, I have investigated this further, and found some niceties.
Under Windows 7, I discovered that the shadow does not appear when the popup window .
Here is a simple Delphi app, which uses CreateParams on a popup window to request a shadow as described above.

See how the drop shadow appears where it extends beyond the main window?
But I want to use the borderless window as a popup over the main window. The drop shadow distinguishes the popup from the window underneath. All my description up above refers to this circumstance. Obviously some Windows mechanism is interfering here.
I have also tried the same application under Windows XP. Here is how it looks.

This works correctly with shadow everywhere*. Gah!
So it would seem to be a Vista/W7 thing, as Andreas suggests.
(*An earlier version of this text and screendump suggested that no shadow appeared. However, this turned out to be because I had the Windows XP display option 'Shadows under menus' turned off. Duh.)
| Borderless TForm with drop shadow | CC BY-SA 2.5 | 0 | 2010-08-20T10:33:14.900 | 2019-07-30T11:33:56.710 | 2017-05-23T11:53:22.447 | -1 | 66,081 | [
"windows",
"delphi",
"windows-7",
"windows-xp",
"delphi-2010"
] |
3,530,125 | 1 | 3,558,980 | null | 0 | 628 | How can I view the source code for the transaction SNOTE? I use the system dialog (System -> Status -> Program name) but the "program" field is empty.

| Program empty in System Status information for transaction SNOTE | CC BY-SA 4.0 | null | 2010-08-20T10:45:24.557 | 2020-12-26T20:49:51.227 | 2020-12-26T20:49:51.227 | 9,150,270 | 344,004 | [
"abap"
] |
3,530,238 | 1 | null | null | 1 | 1,677 | Please have a look at the below image before reading my question.

If you are not able to view the above picture, please click [this](http://1.bp.blogspot.com/_fApGQy6T6OY/TG5cn4lNSyI/AAAAAAAADG4/sIsX1GzQF9c/s1600/Query.JPG) link to view the image of the database design and the table data.
I want to update the columns like "Parking,AC,TV,locallcalls" in the table "Hotels" with the values from the column "Status" in the table "amenity" by matching the column names(Hotel) with AmenityDesc(in amenity).
Hid is the key constraint to relate the tables.
Its like a Transpose. Row values in the one table should update the coulmns in other table beased on some condition.
Please help.
My table is having around 10,000 records. if i am using the dynamic query,cursor or loop. the execution is very slow and performance is very bad.
Pls help.
Thanks
I have used subqueries/dynamic queries.Since the number of records are 10000 its very slow.
Is there any other way of handling multiple update queries faster? i am using sqlserver 2000. Pls help
| Update columns in a row based on the records from the other table | CC BY-SA 2.5 | null | 2010-08-20T11:00:07.693 | 2010-08-24T10:44:27.893 | 2010-08-24T10:44:27.893 | 167,076 | 167,076 | [
"sql-server"
] |
3,530,304 | 1 | 3,532,325 | null | 0 | 1,484 | is it possible to show a "share with friends" dialog with the new Facebook Javascript SDK?
i'm using a frame-based application.
in another app this feature looks something like this:

| show "share with friends" dialog with the new Facebook Javascript SDK | CC BY-SA 2.5 | null | 2010-08-20T11:10:45.047 | 2010-08-25T15:13:09.500 | 2010-08-23T09:16:04.840 | 253,288 | 253,288 | [
"javascript",
"facebook"
] |
3,530,393 | 1 | 3,537,141 | null | 4 | 2,404 | I have a problem with changing my spring/hibernate application from MySql to SQL Server.
When Hibernate is updating the database by starting the server he want to creates(by `hibernate.hbm2ddl.auto` set on `update` ) the database but a foreign-key fails on following error:
```
Unsuccessful: alter table table2 add constraint FKDC2DC97ECEB31922 foreign key (login) references table1
Column 'table1.id' is not the same data type as referencing column 'table2.table1_login' in foreign key 'FKDC2DC97ECEB31922'.
```
the mapping is as follows:
```
@Id
public String getLogin() {
return login;
}
public void setLogin(String login) {
this.login = login;
}
```
```
@ManyToOne
@JoinColumn (name = "table1_login", referencedColumnName = "login", insertable=false, updatable=false)
public Table1 getTable1() {
return table1;
}
public void setTable1(Table1 table1) {
this.table1= table1;
}
```
++edit:
SQL looks likes this:


The table table1 is also used by an other application and therefore this table needs the column 'id' as primary key. So table1.id is primary key of table1. But this table1.id isn't used by hibernate, because hibernate use the table1.login as id (see annotations above). But why is SQL Server trying to set a foreign key to table1.id and not to table1.login ?
Thanks
| Problem adding @ManyToOne mapping on Non primary-key in SQL Server | CC BY-SA 2.5 | null | 2010-08-20T11:28:33.677 | 2010-08-23T13:35:53.377 | 2010-08-23T13:35:53.377 | 23,199 | 193,850 | [
"sql",
"sql-server",
"hibernate",
"hbm2ddl"
] |
3,530,463 | 1 | 3,530,483 | null | 0 | 555 | I have an HTML page. I have created a frame using background repeat function. It is like a dialog box as below :

The HTML Code for this is :
```
<html>
<head>
<title>
Frame
</title>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="frame.js"></script>
<link rel="stylesheet" href="frame.css" type="text/css" media="screen" />
</script>
</head>
<body>
<div id="frame">
<div id="h" style="width:400px" class="h">Frame</div>
<div id="l" style="height:400px" class="l"></div>
<div id="r" class="r"></div>
<div id="b" class="b"></div>
</div>
</div>
</body>
</html>
```
The jQuery is :
```
$(document).ready(function() {
var width = $('#h').width();
var height = $('#l').height();
var pad = $('#h').position().left;
var actWidth = width + pad;
var nHeight = height - (height * 2);
var rLeftMargin = actWidth + 1;
var bWidth = actWidth + 2;
$('#r').css({'margin-top':nHeight});
$('#h').css({'height':25});
$('#r').css({'margin-left':rLeftMargin});
$('#r').css({'height':height});
$('#b').css({'width':bWidth});
$('#b').css({'margin-top':0});
}
)
```
And the CSS is :
```
.h{
background-image:url('images//line.jpg');
background-repeat: repeat-x;
padding-left:10px;
color:white;
}
.l{
background-image:url('images//dot.jpg');
background-repeat: repeat-y;
}
.r{
background-image:url('images//dot.jpg');
background-repeat: repeat-y;
float:top;
}
.b{
background-image:url('images//dot.jpg');
background-repeat: repeat-x;
height:1px;
}
```
Now, the problem is, this frame I can only use once. If I use is once again, then Ids get repeted & all the frame gets affected !!! This should not happen. What can be the solution?
| Can we create any general HTML Component? | CC BY-SA 2.5 | 0 | 2010-08-20T11:39:24.477 | 2010-08-20T11:53:23.863 | null | null | null | [
"jquery",
"html",
"components",
"repeat"
] |
3,530,902 | 1 | 3,531,248 | null | 18 | 7,041 | This is an html page :
```
<html>
<head>
<title>
Frame Set
</title>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<link rel="stylesheet" href="frame.css" type="text/css" media="screen" />
<script language="JavaScript" type="text/javascript">
$(document).ready(function() {
var winSize = $(window).width();
var margin = (winSize-1000)/2;;
$('#main').css({'margin-left':margin,'margin-right':margin});
}
)
$(function() {
$(".frame").each(function() {
var width = ($(this).find('.h').width()),
height = $(this).find('.l').height(),
pad = $(this).find('.h').position().left,
actWidth = width + 10,
nHeight = height - (height * 2),
rLeftMargin = actWidth - 1,
bWidth = actWidth;
$(this).find('.r').css({'margin-top':nHeight, 'margin-left':rLeftMargin, 'height':height});
$(this).find('.h').css({'height':25});
$(this).find('.b').css({'width':bWidth, 'margin-top':0});
});
});
</script>
</head>
<body>
<div id="main" align="center" style="width:1000px; height:100%; text-align:left;">
<div id="inner1" style="width:100%; height:20%; float:top; margin-bottom: 20px;">
<div id="inner11">
<div class="frame">
<div class="h" style="width:100%">Header</div>
<div class="l" style="height:93%"></div>
<div class="r"></div>
<div class="b"></div>
</div>
</div>
</div>
<div id="inner2" style="width:100%; height:60%;">
<div id="inner21" style="width:69%; float:left; margin-left: 1px; margin-right: 1px;">
<div class="frame">
<div class="h" style="width:100%">Left Frame</div>
<div class="l" style="height:93%"></div>
<div class="r"></div>
<div class="b"></div>
</div>
</div>
<div id="inner22" style="width:29%; float:right; margin-left: 1px; margin-right: 1px;">
<div class="frame">
<div class="h" style="width:100%">Right Frame</div>
<div class="l" style="height:93%"></div>
<div class="r"></div>
<div class="b"></div>
</div>
</div>
</div>
<div id="inner3" style="width:100%; height:20%; float:bottom; margin: 2px 2px 2px 2px;">
<div id="inner23">
<div class="frame">
<div class="h" style="width:100%">Footer</div>
<div class="l" style="height:93%"></div>
<div class="r"></div>
<div class="b"></div>
</div>
</div>
</div>
</div>
</body>
</html>
```
This is Mozilla output :

This is IE8 output :

What is the problem ?
| Why do different browsers render the same HTML differently? | CC BY-SA 2.5 | 0 | 2010-08-20T12:42:05.637 | 2011-02-25T06:51:17.640 | 2011-02-25T06:51:17.640 | null | null | [
"jquery",
"html",
"internet-explorer-8",
"rendering",
"mozilla"
] |
3,531,129 | 1 | 3,531,459 | null | 6 | 2,793 | I usually have no problems with making CSS sprites, but this one has got me stumped...and I'm not sure how to solve it. Basically I have a navigation sprite that looks like this:

I'm using the standard convention of laying them out in `<li>` tags such like:
```
<li class="welcome"><a href="#" title="welcome">welcome</a></li>
```
And then applying CSS to adjust the background position:
```
#navigation li.welcome a {
width:155px;
background-position:-0px -46.5px; }
```
Of course I didn't think of this, but the problem happens on hover. Since you can only define "square" areas, when you hover over an element, the "blue" hover state is being carried over to the next navigation item.
I then thought that I'd have to make individual images for each item... but that wouldn't work quite right either because of the overlapping arrow sections.
Maybe I have to seperate out the "in between" arrow seperators? I'm really not sure.
I'm stumped here. Any ideas?
| CSS Navigation Sprite - Odd Shapes (not square) | CC BY-SA 3.0 | 0 | 2010-08-20T13:15:59.717 | 2011-10-28T21:04:23.943 | 2011-10-28T21:04:23.943 | 757,830 | 396,956 | [
"html",
"css",
"xhtml",
"css-sprites"
] |
3,531,161 | 1 | 3,531,247 | null | 0 | 567 | I thought that this would make a table with a set width, and that text would automatically try to fit in by starting on a new line. However, the table still gets stretched by long lines of text.
```
<HTML><center><table width="300" border="1"><tr><td>
<?php
If (file_exists("file.txt")){
Echo nl2br(file_get_contents("file.txt"));
}Else{
Echo "File not found.";
}
?>
</td></tr></table></center></HTML>
```

I think I'm forgetting something absolutely essential here.. 0.o
| How to let text adapt to a set table width instead of stretching the table? | CC BY-SA 3.0 | null | 2010-08-20T13:19:47.447 | 2017-06-10T11:02:33.730 | 2017-06-10T11:02:33.730 | 4,370,109 | 408,089 | [
"php",
"html",
"text",
"html-table",
"stretching"
] |
3,531,183 | 1 | 3,531,366 | null | 0 | 1,117 | you may skip the following HTML code to proceed to actual question
```
<!-- Some HTML Code-->
<table width="100%" height="100%" border="1">
<tr>
<td rowspan="03" width="20%"> </td>
<td width="60%"> </td>
<td rowspan="03" width="20%"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
```
the output of the above code will be somewhat like this

now i want i CSS Layer (a DIV) setup with the center-cell (red bordered cell) as its how to do it...
```
#myLayer{
position: ? ;
left : ? ;
right : ? ;
top : ? ;
bottom : ? ;
padding : ? ;
width : * ;
height : * ;
z-index : 2 ;
}
```
and where to place the `<div id="*"></div>` tag
| Setting\Placing a DIV(CSS Layer) with table cell as reference | CC BY-SA 2.5 | null | 2010-08-20T13:22:09.123 | 2010-08-20T13:41:43.020 | null | null | 158,455 | [
"css",
"html"
] |
3,531,937 | 1 | 3,550,859 | null | 21 | 3,849 | I am trying to map an enum property (instance of System.DayOfWeek) in my model to an integer database field.
Other enum properties in the model should be mapped to strings, so I don't wish to define a convention.
I understand that this should be possible using a fluent mapping like:
```
Map(x => x.DayOfWeek).CustomType<int>();
```
and indeed, at first glance this appears to be working.
However, I noticed that instances of entities with properties mapped in this way are being updated every time the session was flushed, even though no amendments have been made to them.
To find out what is causing this flush, I set up an IPreUpdateEventListener, and inspected the OldState and State of the entity.
See the attached image. In the OldState, the relevant object is an int, whereas in State it is a DayOfWeek.
If I use an HBM XML mapping with no type attribute specified, this issue doesn't arise.
So...
Is this a bug or shortcoming in the GenericEnumMapper?
Is there any way of telling the FNH mapping not to specify any type attribute on the generated HBM?
If not, can I specify the default type that NH uses for enums (and what is that)?

| Enum to integer mapping causing updates on every flush | CC BY-SA 2.5 | 0 | 2010-08-20T14:42:53.467 | 2013-08-16T12:31:49.610 | 2010-08-20T15:14:08.617 | 2,084 | 2,084 | [
"nhibernate",
"fluent-nhibernate"
] |
3,531,998 | 1 | null | null | 0 | 839 | After implement Hibernate Monitoring, i have noticed that hibernate execute too much query than it have on the query string table in statistics.
Screen-shots of statistics:

I think, implement hibernate 2nd level cache and particularly hibernate query cache help me to reduce this amount of query execute.
I searched on the web, on find many provider class for the cache of hibernate. But I'm not succeeded to implement it (infinispan, EhCache).
My questions are :
- -
Thank you in advance for you help.
Best regards,
Florent,
| Hibernate 3.5.5, Second Level Cache Configuration | CC BY-SA 2.5 | null | 2010-08-20T14:48:28.653 | 2010-08-20T15:05:07.037 | null | null | 419,309 | [
"java",
"hibernate",
"second-level-cache",
"query-cache"
] |
3,532,037 | 1 | 3,532,171 | null | -2 | 118 | look at the following image

when searched for some websites... various websites show the above kind of result on google..
like serach for [stackoverflow](http://www.google.com.pk/search?hl=en&q=stackoverflow&meta=&aq=f&aqi=g10&aql=&oq=&gs_rfai=), [flickr](http://www.google.com.pk/search?hl=en&q=flickr&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=), [deviantart](http://www.google.com.pk/search?hl=en&q=deviantart&btnG=Search&meta=&aq=f&aqi=g10&aql=&oq=&gs_rfai=), [Hotmail](http://www.google.com.pk/search?hl=en&source=hp&q=hotmail&meta=&aq=f&aqi=g10&aql=&oq=&gs_rfai=) and so on
HOW TO ACHIEVE THIS...
| Special Google Search Result - How to achieve this? (look at the attached image) | CC BY-SA 2.5 | 0 | 2010-08-20T14:53:19.420 | 2010-08-20T15:09:14.093 | 2010-08-20T14:58:39.530 | 158,455 | 158,455 | [
"html",
"xhtml",
"dhtml"
] |
3,532,604 | 1 | 3,534,053 | null | 0 | 852 | So I suspect this to be a project problem as opposed to a code problem. I am still relatively new to xcode. I am trying to access the ABAddressBook libraries and have included them in the project alright.
![alt text][1][1]: [http://i.stack.imgur.com/lBaW0.png](https://i.stack.imgur.com/lBaW0.png)
Now when I try to say import "ABAddressBook.h", it doesn't know what I am talking about. Is there anything else I need to do to get that set up? Thanks!
| iOS linking to "ABAddressBook.h" | CC BY-SA 2.5 | null | 2010-08-20T15:58:14.660 | 2010-11-21T10:01:07.023 | 2010-08-20T16:05:29.527 | 410,856 | 410,856 | [
"iphone",
"xcode",
"ipad",
"ios4"
] |
3,532,846 | 1 | 3,532,904 | null | 7 | 5,859 | Hi is there any way to detect iPad keyboard hiding button ? i mean when user press this button :

something going to happen !
| detect iPad keyboard Hiding button | CC BY-SA 2.5 | 0 | 2010-08-20T16:27:28.177 | 2014-12-03T18:55:30.257 | 2010-08-20T17:03:31.410 | 224,671 | 199,173 | [
"ipad"
] |
3,532,870 | 1 | null | null | 10 | 8,150 | 
I'm having a problem with getting extra padding on link element with an image inside. It happens in all browsers, Safari, Firefox, IE.
I have a reset stylesheet applied so there shouldn't be any extra margins on padding but upon inspection it's clear that the `a` element has some extra bottom padding from nowhere. Any ideas?
Here's the markup and CSS:
`<div class="movie"><a href=""><img src="img/video01.jpg" alt="" /></a></div>`
```
div.home-col .movie {
padding: 0 0 11px 0;
background: url(../img/bg-shadow-movie.png) bottom no-repeat;
}
div.home-col .movie a {
display: block;
background: url(../img/bg-zoom-movie.png) 50% 5px no-repeat;
}
div.home-col .movie img {
padding: 4px;
margin: 0;
border: 1px solid #d0d0d0;
}
```
| Extra padding on linked images (in every browser) | CC BY-SA 3.0 | 0 | 2010-08-20T16:30:19.353 | 2018-02-04T13:23:01.810 | 2018-02-04T13:23:01.810 | 1,033,581 | 139,468 | [
"html",
"css",
"image",
"hyperlink",
"padding"
] |
3,532,912 | 1 | 3,533,051 | null | 5 | 3,342 | 
Marked my aggregate roots with 1;2;3. Looks quite nice - almost like grapes.

Thing I dislike is an entity that's marked with red arrow.
Let's imagine that:
- - - - `Country`- `company.Countries.Contains(employee.Country)`
I somehow see this quite unimportant part of domain (maybe it does not sound like that in this example one), and I would like to avoid promoting Country to aggregate root.
[Glossary](http://domaindrivendesign.org/node/88) about aggregate roots says:
> Transient references to the internal members can be passed out for use within a single operation only.
So - does introducing something like 'EmployeeCountry', removing reference to company Country and checking if Employee country matches any company country on hiring operation sounds reasonable?
Any other ideas?
How can I get my grapes look like they should?
| DDD modeling, interaction between aggregate roots | CC BY-SA 2.5 | 0 | 2010-08-20T16:35:38.677 | 2010-08-22T18:53:18.230 | 2010-08-20T17:22:06.097 | 82,062 | 82,062 | [
"domain-driven-design",
"modeling",
"aggregateroot"
] |
3,533,244 | 1 | 3,537,985 | null | 4 | 1,849 | Currently implementing vectorial interface elements on iOS is very peculiar, UIImage advertises support only for raster formats but i am able to set a pdf file as the image of a UIButton in IB  and it renders with good antialiasing, however the image is not visible on either iphone or ipad running iOS 4.x and 3.x, the only way to have it show is to recreate the same button in code and leave out the .pdf extension :
```
searchButton = [UIButton buttonWithType:UIButtonTypeCustom];
[searchButton setImage:[UIImage imageNamed:@"search"] forState:UIControlStateNormal];
[self.view addSubview:searchButton];
```
However this only shows the image on iOS 4.x and with considerable resize pixelation and no antialiasing as illustrated:

Besides the obvious questions of why it looks this bad, why it only works in 4.x, and why the IB version does not work at all, does anyone know any ways to properly user vectorial art in apps?
It does not have to be necessarily PDF but I have seen Apple use that a lot on the mac side apps, both the code and IB approaches above work perfectly on OSX apps BTW.
| Vectorial PDF graphic elements on iOS | CC BY-SA 2.5 | 0 | 2010-08-20T17:15:56.903 | 2012-07-16T13:15:20.643 | 2010-08-21T09:45:06.540 | 314,546 | 314,546 | [
"iphone",
"cocoa-touch",
"pdf",
"ipad",
"ios"
] |
3,533,681 | 1 | null | null | 3 | 5,744 | I am developing an iphone app. In the image below I want the first name to be in plain font and the last name to be bold.. How can I do that? Please suggest me.. Please check this image:

Another questio..Now I think the reverse way but the problem here is the first line and second line you see are part of the same string. I want the first line to be bold and the second line to be in plain font. I am storing this in a dictionary. So my dictionary has a key and the value is a string of names and departments. I am unable to set the font. I tried to create two labels and tried to split the string according to the index and assign it to the labels I created. But, in this case the index keeps on changing as there might be a first name for a contact or there might not be any name.
In this case Prinicipal should be in plain font and name should be in bold
Please see the below image:

| Formatting UITableView Cells in iphone | CC BY-SA 3.0 | 0 | 2010-08-20T18:16:01.030 | 2016-10-09T22:49:09.560 | 2016-10-09T22:49:09.560 | 4,370,109 | 420,556 | [
"ios",
"iphone",
"uitableview",
"ios-simulator",
"cell"
] |
3,533,841 | 1 | 3,534,395 | null | 6 | 9,116 | Is there any way to add 0 margin/padding to a JPanel so it fits the WHOLE screen it's suppose?
Here is what I am talking about: (see the little space above the panel? why doesn't it cover that as well?)

Here is the way it's setup:
```
labelStatus = new JLabel("\n\nSorry, the server crashed!");
labelStatus.setForeground(Color.WHITE.brighter());
statusPanel = new JPanel();
statusPanel.setBackground(Color.RED.darker());
statusPanel.add(labelStatus);
statusPanel.setPreferredSize(new Dimension(513,352));
```
and this is how it gets iniated:
```
} catch (Exception rwe) {
// System.exit(0);
game.add(statusPanel);
game.remove(yPanel);
game.remove(xPanel);
game.remove(roomPanel);
game.remove(userPanel);
game.remove(titlePanel);
game.remove(introPanel);
statusPanel.setOpaque(true);
labelStatus.setVisible(true);
System.out.println("Server went down -- crap!");
c.append("\nServer crashed!");
rwe.printStackTrace();
}
```
So.. how do I fix that small gap?
| 0 top margin on JPanel | CC BY-SA 2.5 | 0 | 2010-08-20T18:39:52.020 | 2010-08-21T00:45:53.987 | 2010-08-21T00:45:53.987 | 157,882 | 272,501 | [
"java",
"swing"
] |
3,534,453 | 1 | null | null | 2 | 3,235 | Can someone help me construct the SQL that I need to query the Projects_dim table using the Linked Server "idwd"?
To test the connection, I ran a sample query using the linked server name. To access the tables on the linked server, I used a four-part naming syntax:
linked_server_name.catalog_ name.schema_name.table_name.
replacing the values, you get:
```
idwd.idwd.wimr.PROJECTS_DIM
```
of should it be the following?
```
idwd..wimr.PROJECTS_DIM
```
The database name is "idw" but the grid below shows a blank value under "catalog", which is one source of my confusion, though I believe that the more likely approach is to construct the syntax assuming that the catalog part of the qualified table name should be blank as in the following first example.
```
select * from idwd..wimr.PROJECTS_DIM
Server: Msg 7314, Level 16, State 1, Line 1
OLE DB provider 'idwd' does not contain table '"wimr"."PROJECTS_DIM"'. The table either does not exist or the current user does not have permissions on that table.
select * from idwd.idwd.wimr.PROJECTS_DIM
Server: Msg 7312, Level 16, State 1, Line 1
Invalid use of schema and/or catalog for OLE DB provider 'MSDAORA'. A four-part name was supplied, but the provider does not expose the necessary interfaces to use a catalog and/or schema.
```
Can someone suggest what I need to do to query this table?
I am using the MS OLEDB Driver for Oracle.
I thought perhaps there is an issue with case-sensitivity, so I tried this:
```
select * from IDWD..WIMR.PROJECTS_DIM
Server: Msg 7356, Level 16, State 1, Line 1
OLE DB provider 'MSDAORA' supplied inconsistent metadata for a column. Metadata information was changed at execution time.
```
and this:
```
select * from IDWD.IDWD.WIMR.PROJECTS_DIM
Server: Msg 7312, Level 16, State 1, Line 1
Invalid use of schema and/or catalog for OLE DB provider 'MSDAORA'. A four-part name was supplied, but the provider does not expose the necessary interfaces to use a catalog and/or schema.
```
I tried to create a linked server using each of the two likely drivers:
1. Microsoft OLEDB Provider for Oracle
2. Oracle Provider for OLEDB
..without luck.
Do you think it could be a driver issue?

| How to use a SQL2000 Linked Server to query an Oracle 11G table | CC BY-SA 2.5 | 0 | 2010-08-20T20:01:26.443 | 2012-11-16T17:17:21.653 | 2010-08-20T20:34:48.500 | 109,676 | 109,676 | [
"sql-server",
"sql-server-2000",
"linked-server"
] |
3,534,565 | 1 | null | null | 0 | 158 | I've used [WMD](http://code.google.com/p/wmd/) for `<textarea>`, but it seems I don't get the path of where I've to set the path of the image icon. And how could I edit its CSS code? Though I tried it with Firebug, I didn't get it . =(

Or where do I've to place the menu icon image? I normally placed it under `/public/images`.
| Where can I set the path of the WMD menu icon image? | CC BY-SA 3.0 | 0 | 2010-08-20T20:17:36.950 | 2011-05-15T17:40:50.753 | 2011-05-15T17:40:50.753 | 63,550 | 2,438,460 | [
"markdown",
"wmd"
] |
3,534,597 | 1 | 3,535,735 | null | 0 | 9,057 | I have a mysql query that's taking several minutes which isn't very good as it's used to create a web page.
Three tables are used: poster_data contains information on individual posters. poster_categories lists all the categories (movies, art, etc) while poster_prodcat lists the posterid number and the categories it can be in e.g. one poster would have multiple lines for say, movies, indiana jones, harrison ford, adventure films, etc.
this is the slow query:
```
select *
from poster_prodcat,
poster_data,
poster_categories
where poster_data.apnumber = poster_prodcat.apnumber
and poster_categories.apcatnum = poster_prodcat.apcatnum
and poster_prodcat.apcatnum='623'
ORDER BY aptitle ASC
LIMIT 0, 32
```
According to the explain:

It was taking a few minutes. Poster_data has just over 800,000 rows, while poster_prodcat has just over 17 million. Other category queries with this select are barely noticeable, while poster_prodcat.apcatnum='623' has about 400,000 results and is writing out to disk
| Rewriting mysql select to reduce time and writing tmp to disk | CC BY-SA 2.5 | 0 | 2010-08-20T20:23:18.560 | 2010-10-03T00:50:26.653 | 2010-08-20T20:32:55.383 | 135,152 | 148,225 | [
"sql",
"mysql"
] |
3,534,692 | 1 | null | null | 1 | 1,701 | I seem to be having an issue with some of my css/javascript. I can't seem to be able to get contentEditable to work in my webapp. I was inspired by the answer to [this post](https://stackoverflow.com/questions/882256/how-to-make-a-div-with-a-blinking-cursor-and-editable-text-without-using-input) to try this method.
I've tested my browser [here](http://html5demos.com/contenteditable) and it works fine.
Are there any css rules I should be aware of that may be causing it to not work? I can select the object (it highlights the div) but I can't edit/append/delete any text in the object.
I have also made sure that `document.designMode = "on"`
Unfortunately it's an internal app so I can't get links for everyone to try.
--EDIT--
Code Snipped as requested
```
<div id="textarea_textObject0_preview_container" class="te_preview" style="width: 650px; height: 365px; overflow-x: hidden; overflow-y: hidden; text-align: left; background-image: url(http://172.18.4.249/workspace/tc-a/web/style/images/bgrid.jpg); ">
<div style="display: inline-block; position: relative; cursor: move; font-weight: normal; font-style: normal; text-decoration: none; left: 170px; top: 129px; " class="ui-draggable" contenteditable="true">Start Text</div>
</div>
```
Some of the CSS parameters are reported by chrome:

| How do I figure out why the contenteditable attribute doesn't work? | CC BY-SA 2.5 | 0 | 2010-08-20T20:33:58.393 | 2017-01-07T14:48:09.253 | 2017-05-23T12:01:55.357 | -1 | 95,790 | [
"javascript",
"html",
"contenteditable"
] |
3,534,729 | 1 | null | null | 4 | 1,842 | I'm running into a bit of a weird issue. Whenever I create a new text file in my iOS application, I set its encoding to be `NSUTF8StringEncoding`. If I edit the file and input any characters with diacritics and save the changes, the diacritics render properly in some applications such as BBEdit, TextMate, cat and vi but not in others such as TextEdit, Quick Look and Pages.
I'm using the following code to save the contents of a UITextView to the plain txt files.
```
NSError *error;
NSString *dataString = self.textView.text;
BOOL savedChanges = [dataString writeToFile:fullPath atomically:YES encoding:NSUTF8Encoding error:&error];
if (!savedChanges)
{
// Pop up an alert saying something went wrong.
}
```

The unix `file` command reports that the saved file is indeed "UTF-8 Unicode text, with no line terminators"
What's even weirder is if I save the file again without changing the contents of the text, the file will then render properly in Quick Look & TextEdit on my Mac.
Any help would be appreciated.
| NSUTF8StringEncoding causes file to render improperly in TextEdit/Pages, but not BBEdit/vi | CC BY-SA 2.5 | 0 | 2010-08-20T20:39:18.880 | 2010-08-22T11:36:42.873 | 2010-08-20T20:45:56.727 | 54,201 | 54,201 | [
"cocoa",
"cocoa-touch",
"encoding",
"nsstring",
"uitextview"
] |
3,534,925 | 1 | 3,535,289 | null | 3 | 2,214 | A picture is supposed to be worth a 1000 words, so let's see if that can shorten this post up a bit... Essentially, I'm looking into "how" to code a solution that runs on the web server within the cloud that will send a print command to a printer within office 1 (label printer).
The print job is really part of work flow within the ASP.NET web application and I would like to keep all of the code within a single application if possible. How can I go about doing this?
Due to security, I should avoid creating a new application within Office 1 that pulls data from the "cloud" and have the "cloud" be used to push the command downward. I'm really looking at this from a code standpoint within the ASP.NET app and also potentially transcending into more of a serverfault/superuser question on the printer. I'll save that for a future question there though.

| How to automatically send print job from "Cloud" server to printer? | CC BY-SA 2.5 | 0 | 2010-08-20T21:08:48.527 | 2013-08-30T15:34:09.160 | null | null | 55,747 | [
"asp.net",
"printing",
"networking",
"cloud"
] |
3,535,010 | 1 | 3,535,303 | null | 0 | 1,345 | I would like to create a listbox, with a details pop-up/tooltip kind of window.
Scenario is as following:
- - -
The problem about using tooltips is that they disappear after a while. And the problem about using pop-ups is that they do not move, when the window moves (?)
So I'm just looking for some pointers on how to solve this.

| ListBox with pop-out/popup item details | CC BY-SA 2.5 | null | 2010-08-20T21:27:12.700 | 2010-08-21T12:33:20.440 | null | null | 377,406 | [
"c#",
"wpf"
] |
3,535,226 | 1 | 3,535,288 | null | 1 | 1,999 | Was I was previously messing with Silverlight and RIA, I was using a an ADO.NET Entity Data Model and domain context. I'm teaching myself how to run a stored procedure from RIA, and could not get it to work with the previous setup so I then started to try out using the [LINQ to SQL](http://www.csharpcorner.com/UploadFile/nipuntomar/958/Default.aspx) method. I did the following:
- - - -

Here is my error. The list shows up empty. I have rebuilt many times and even have restarted visual studio.

So here are my questions:
1. Is there an easy way to do a stored proc with ADO.Net that I was missing therfore I could skip adding a LINQtoSQL class.
2. Am I missing something really simple to add the dbml class and add a stored proc that way.
ZipCodeDataClasses.dbml.layout
```
<?xml version="1.0" encoding="utf-8"?>
<ordesignerObjectsDiagram dslVersion="1.0.0.0" absoluteBounds="0, 0, 11, 8.5" name="ZipCodeDataClasses">
<DataContextMoniker Name="/ZipCodeDataClassesDataContext" />
<nestedChildShapes>
<classShape Id="de7acfae-754b-4577-b227-3a33198fdc95" absoluteBounds="7.125, 2.375, 2, 1.3862939453125">
<DataClassMoniker Name="/ZipCodeDataClassesDataContext/ZipCode" />
<nestedChildShapes>
<elementListCompartment Id="8744ad5e-7b77-4770-911d-6dc963876e40" absoluteBounds="7.14, 2.835, 1.9700000000000002, 0.8262939453125" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
</nestedChildShapes>
</classShape>
</nestedChildShapes>
</ordesignerObjectsDiagram>
```
ZipCodeDataClasses.designer.cs
```
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace StoredProcedureTest.Web
{
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Data;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
using System.ComponentModel;
using System;
[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="ZIPCODES")]
public partial class ZipCodeDataClassesDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
#endregion
public ZipCodeDataClassesDataContext() :
base(global::System.Configuration.ConfigurationManager.ConnectionStrings["ZIPCODESConnectionString"].ConnectionString, mappingSource)
{
OnCreated();
}
public ZipCodeDataClassesDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public ZipCodeDataClassesDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public ZipCodeDataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public ZipCodeDataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table<ZipCode> ZipCodes
{
get
{
return this.GetTable<ZipCode>();
}
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.sp_GetCityByZip")]
public int sp_GetCityByZip([global::System.Data.Linq.Mapping.ParameterAttribute(Name="ZIP", DbType="NVarChar(10)")] string zIP, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="Return", DbType="NVarChar(26)")] ref string @return)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), zIP, @return);
@return = ((string)(result.GetParameterValue(1)));
return ((int)(result.ReturnValue));
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZipCodes")]
public partial class ZipCode
{
private string _City;
private string _State;
private int _Zip;
public ZipCode()
{
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_City", DbType="VarChar(25)")]
public string City
{
get
{
return this._City;
}
set
{
if ((this._City != value))
{
this._City = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="VarChar(2)")]
public string State
{
get
{
return this._State;
}
set
{
if ((this._State != value))
{
this._State = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Zip", DbType="Int NOT NULL")]
public int Zip
{
get
{
return this._Zip;
}
set
{
if ((this._Zip != value))
{
this._Zip = value;
}
}
}
}
}
#pragma warning restore 1591
```
| Linq to SQL vs Entity Data Model: Getting a stored proc to run | CC BY-SA 2.5 | null | 2010-08-20T22:09:05.913 | 2011-06-16T05:59:12.763 | null | null | 271,977 | [
"linq-to-sql",
"ado.net",
"silverlight-4.0",
"c#-4.0",
"wcf-ria-services"
] |
3,535,722 | 1 | 3,535,747 | null | 8 | 44,143 | I am trying to compile code checked out of SVN from another developer. Eclipse has been giving me a lot of trouble lately.
Here are my project-specific settings:

This is what the compile section of my ant file:
```
<target name="compile" depends="build-common, init" description="Compile files. ">
<javac srcdir="${src_dir}" destdir="${build_dir}" debug="true" >
<classpath path="${tomcat_home}/lib/servlet-api.jar;" />
</javac>
</target>
```
When I compile ( using Ant ) I get an error message:
```
compile:
[javac] Compiling 3 source files to H:\MYCOMPANY\portlets\build
[javac] H:\MYCOMPANY\portlets\src\com\mycompany\portlets\CourseList.java:3: cannot access java.io.IOException
[javac] bad class file: C:\Program Files\Java\jre1.6.0_07\lib\rt.jar(java/io/IOException.class)
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import java.io.IOException;
[javac] ^
[javac] 1 error
```
What does this error mean?
| Eclipse won't compile, bad class file, wrong version | CC BY-SA 2.5 | 0 | 2010-08-21T00:22:15.987 | 2016-01-19T18:14:54.270 | 2010-08-23T22:00:27.603 | 28,351 | 28,351 | [
"java",
"eclipse"
] |
3,535,738 | 1 | null | null | 2 | 9,723 | I've got a fairly standard username/password entry box on a web site I'm building. The password box has a div containing "Password" overlaid on top of it, which is set to `display: none;` on focus or click.
This works great until the user asks their browser to remember the password: in that case you can end up with the situation in the attached screen shot.
My question then is: is there an event that I can bind to that will trigger when the password field autofills so I can hide the help div?
| DOM event for browser password autofill? | CC BY-SA 2.5 | 0 | 2010-08-21T00:29:19.360 | 2018-12-24T10:34:45.547 | null | null | 91,365 | [
"javascript",
"dom"
] |
3,535,781 | 1 | 3,836,938 | null | 6 | 915 |
## 1. Compiled Assembly from JSC
I've compiled what is intended to be client-side JavaScript using the JScript compiler (jsc.exe) on the server side in an attempt to make something that can be tested from a unit testing project, and maybe even something that can be debugged on the server side.
The compiled file as follows (just for example) and it compiles fine into BitField.exe. Notice, no wrapper class or package in the source code.
------ BEGIN FILE (BitField.js) -------
```
function BitField(){
this.values = [];
}
// more functions ...
```
------- END FILE -------
```
jsc /fast- /out:BitField.exe Bitfield.js
```
Results in a BitField.exe assembly.
Well, kind of ....
---
## 2. Testing Assembly / Access Point?
Secondly I've created a test project (in C#) and referenced in the BitField.exe assembly successfully. (The type of project is irrelevant but I'm providing more description to paint a full picture.)
The problem seems to be: . The assembly doesn't seem to be a "normal".
In other words I need in C#
```
using ???WHAT???
```
: I don't want to use JScript "extensions", meaning keywords that won't run client-side (in a web browser), for example, `class`, `package` etc because I want the code to be clean as possible for copy & paste back into client side script environment (Regardless said "clean" code compiles fine by jsc.exe without use of those extensions). When I try to wrap the functions in `package` and `class` it starts producing compile errors so that's another reason not to use them - because they appear to make me alter my code.
Any suggestions as to how I can use the functions of the compiled JScript assembly (by having it referenced into another assembly) when there are no explicit containers in it?
---
## Update / Proof
.NET Reflector view

| Referencing and using JScript.NET "functions only" exe assembly | CC BY-SA 2.5 | null | 2010-08-21T00:48:47.520 | 2010-12-31T01:55:53.937 | 2010-12-31T01:55:53.937 | 179,972 | 179,972 | [
"namespaces",
"assemblies",
"jscript.net"
] |
3,535,958 | 1 | 3,536,387 | null | 8 | 14,842 | For the app that I'm making, I plan on having a main menu composed of 6 different icons, with 2 per line. This is very similar to the Twitter main menu layout seen here:

So basically... how should I go about setting up the XML? LinearLayout, TableLayout? And then, what do I actually do to get the icons and text to be evenly spaced and such? I've tried everything I can think of so far and to no avail.
| How to setup a main menu layout in Android? | CC BY-SA 2.5 | 0 | 2010-08-21T02:03:47.327 | 2013-10-21T09:30:08.403 | 2010-08-21T02:15:10.060 | 157,882 | 205,910 | [
"java",
"android",
"xml",
"twitter"
] |
3,536,023 | 1 | 3,540,039 | null | 77 | 332,623 | Below is a list of the SQL components that I installed in the Visual Studio 2010 Professional setup. Sadly, while trying to work I could not find [SQL Server Management Studio](https://en.wikipedia.org/wiki/SQL_Server_Management_Studio) 2008.
Is there a way to download SQL Server Management Studio 2008 separately and install only that component?
Since in the past I installed SQL Server Management Studio 2005 with a whole new instance of [SQL Server 2005](http://en.wikipedia.org/wiki/Microsoft_SQL_Server#SQL_Server_2005) and had couple of instances, and it was a bit messy.

| How to install SQL Server Management Studio 2008 component only | CC BY-SA 3.0 | 0 | 2010-08-21T02:34:28.973 | 2015-07-25T14:15:22.003 | 2015-07-25T14:15:22.003 | 63,550 | 350,648 | [
"sql-server-2008",
"visual-studio-2010"
] |
3,537,378 | 1 | 3,537,423 | null | 7 | 721 | I wonder what is the keyboard shortcut for these two combo boxs and specially the right part which list all the members of current class and is very handy for navigating a large class.
I tried to figure it out myself but I do not know the exact names to search for it.

| Keyboard shortcut for Visual Studio code editor Members and Types combos | CC BY-SA 2.5 | 0 | 2010-08-21T11:05:25.643 | 2012-05-29T17:24:05.573 | 2010-08-21T11:33:01.870 | 7,872 | 184,572 | [
"visual-studio",
"keyboard-shortcuts"
] |
3,537,573 | 1 | 3,537,609 | null | 0 | 197 | I am building a blog like application where an author creates a post and the users without registering comment on the post the comment will be displayed if and only approved by the author, the help i want is regarding the database table, i have created a table which will hold the records such as name, email, phone, location etc. i have defined a new_id as foreign key to hold the id of the news to which it belongs.

is this the correct way of doing it as the commenting system will be built on many to one relationship, or do i need to create another table to define foreign keys ? how do i achieve it?
| commenting system in PHP | CC BY-SA 3.0 | null | 2010-08-21T12:14:29.770 | 2012-03-05T14:40:29.523 | 2012-03-05T14:40:29.523 | 396,476 | 396,476 | [
"php",
"mysql"
] |
3,537,750 | 1 | 3,537,778 | null | 1 | 692 | I want to develop a system where a user should be able to post the comments on the author published news.
I am very much confused about the Insert Statement that i should be using to store the user commenting system, i have two mysql table one is `news` and another is `comments` below is the screenshot of two tables.
news

comments

in the comments table i have defined a foreign key (new_id) , in which i want to store the value that is related to the particular news for example a news with id no. 7, how do i achieve this dynamic feat? how do i automatically relate it to the news when a user post the comment (nevertheless to say that the user will be giving the input from the form )?
> ```
EDIT : I want to use One news article on one page.
```
thank you
| SQL Comment table insert statement | CC BY-SA 2.5 | null | 2010-08-21T13:11:30.543 | 2010-08-22T16:17:18.687 | 2010-08-21T13:22:08.487 | 396,476 | 396,476 | [
"php",
"mysql"
] |
3,538,246 | 1 | 3,538,517 | null | 8 | 1,411 | I have a table that defines a hierarchy:
```
Create Table [example] (
id Integer Not Null Primary Key,
parentID Integer Null,
largeData1 nVarChar(max) Null,
largeData2 nVarChar(max) Null);
-- largeData3...n also exist
Insert Into [example] (id, parentID, largeData1, largeData2)
Select 1, null, 'blah blah blah', null Union
Select 2, 1, null, null Union
Select 3, 1, 'foo bar foobar', null Union
Select 4, 3, null, 'lorem ipsum' Union
Select 5, 4, null, null;
```
Hierarchy diagram for this data:

I want to write a query that will return a single row for any given [id] value. The row should contain that row's [id] and [parentID] information. It should also contain the [largeData1...n] fields. However, if a largeData field is null, then it should traverse up the hierarchy until a non-null value for that field is encountered. It should, in short, function like the coalesce function, except across a hierarchy of rows instead of a set of columns.
Example:
```
id: 1
parentID: null
largeData1: blah blah blah
largeData2: null
```
```
id: 1
parentID: 1
largeData1: blah blah blah
largeData2: null
```
```
id: 3
parentID: 1
largeData1: foo bar foobar
largeData2: null
```
```
id: 4
parentID: 3
largeData1: foo bar foobar
largeData2: lorem ipsum
```
```
id: 5
parentID: 4
largeData1: foo bar foobar
largeData2: lorem ipsum
```
So far, I have this:
```
Declare @id Integer; Set @id = 5;
With heirarchy
(id, parentID, largeData1, largeData2, [level])
As (
Select id, parentID, largeData1,
largeData2, 1 As [level]
From example
Where id = @id
Union All
Select parent.id, parent.parentID,
parent.largeData1,
parent.largeData2,
child.[level] + 1 As [level]
From example As parent
Inner Join heirarchy As child
On parent.id = child.parentID)
Select id, parentID,
(Select top 1 largeData1
From heirarchy
Where largeData1 Is Not Null
Order By [level] Asc) As largeData1,
(Select top 1 largeData2
From heirarchy
Where largeData2 Is Not Null
Order By [level] Asc) As largeData2
From example
Where [id] = @id;
```
This returns the results that I am looking for. However, according to the query plan, it is making a separate pass through the hierarchy for each largeData field that I pull back.
This is obviously a simplified version of a more complex problem. The final query will return data in XML format, so any solutions involving the FOR XML clause are perfectly fine.
I can create a CLR aggregate function for this, if doing so would help. I have not yet explored that route.
| SQL Query: Hierarchical Coalesce | CC BY-SA 3.0 | 0 | 2010-08-21T16:50:21.053 | 2015-05-13T19:13:30.907 | 2015-05-13T19:13:30.907 | 4,640,209 | 110,164 | [
"sql-server-2005",
"hierarchy",
"coalesce"
] |
3,538,267 | 1 | 13,637,918 | null | 6 | 2,416 | For clarity - here is a picture of the box I am talking about in this question:

I have built a relatively complex WP site for a client which is more of a CMS than a blog and relies on a hierarchy of pages being built. (Well, they're actually custom post types with `'hierarchical' => true` set)
is it possible to show draft (or pending review) pages in the page attributes 'Parent page' dropdown list? Without this, it means making each page live before the whole section is ready - and that's not a suitable solution.
- - [wp_dropdown_pages](http://codex.wordpress.org/Function_Reference/wp_dropdown_pages)-
| WordPress admin: show draft pages in page attributes parent page dropdown | CC BY-SA 4.0 | null | 2010-08-21T17:00:12.833 | 2022-03-07T10:58:05.610 | 2022-03-07T10:58:05.610 | 123,681 | 123,681 | [
"wordpress"
] |
3,538,299 | 1 | null | null | 0 | 1,080 | I'm having a ton of issues when my ASP.NET sites are using version 2. For example, all my SVC and ASPX files return "file not found". Also when I use IISMgr and navigate to:
ServerName
..... Web Service Extensions
I notice that ASP.NET v2 is not present. I tried aspnet_regiis but no luck. Does anyone have Windows 2003 with .NET 4 installed? Can you tell me what you have for ASP.NET 4.x so I can manually re-add the IIS extension?

aspnet_regiis.exe – i seemed to now have worked. But I'm still having issues with WCF. I just tried reinstalling WCF using ServiceModelReg -i and I get this in the event log

Also, this is what ServiceModelReg -ls looks like (note no Web Host Script Mappings exist)

| Should ASP.NET v2 IIS server extension be missing after .NET 4 is installed? | CC BY-SA 2.5 | 0 | 2010-08-21T17:16:47.043 | 2012-01-10T03:01:25.067 | 2012-01-10T03:01:25.067 | 922,184 | 328,397 | [
"asp.net",
"wcf",
"iis-6"
] |
3,538,546 | 1 | 3,667,852 | null | 7 | 7,975 | I was wondering if there was any way to feature a custom title with my own drawable -- and then subsequently put a progress bar in the title layout so that it acts like the built in android progress bar.
In my code -- I want to be able to call `setProgressBarIndeterminateVisibility(true)` and have that display the progress bar in my custom title bar.
Is this possible?
I have set up my application theme so that it uses a custom title -- but I don't how or where to put the progress bar in that layout.
Thanks in advance.
EDIT: Right now I use my own theme that looks something like this:
```
<style parent="android:Theme.Light.NoTitleBar" name="BaseTheme">
<item name="android:windowBackground">@drawable/splash_bg</item>
<item name="android:windowTitleStyle">@style/TitleBackground</item>
</style>
```
With the title background style as :
```
<style name="TitleBackground" parent="android:WindowTitleBackground">
<item name="android:background">@drawable/title_bar</item>
</style>
```
To give everyone a better idea -- something like this.

| Custom Title Bar with Progress in Android | CC BY-SA 2.5 | 0 | 2010-08-21T19:13:44.980 | 2015-11-02T10:43:46.323 | 2010-08-27T19:01:39.677 | 354,247 | 354,247 | [
"android",
"user-interface"
] |
3,538,733 | 1 | 3,538,773 | null | 0 | 175 | ![alt text][1]Hi, please give me the SQL code to copy and paste. I need to get the desired output, per the photo link [http://i566.photobucket.com/albums/ss105/nrfollowup1/delete.jpg](http://i566.photobucket.com/albums/ss105/nrfollowup1/delete.jpg)
I need to remove all characters after and including the dash
SELECT SYSADM_PURC_ORDER_LINE.PURC_ORDER_ID
FROM SYSADM_PURC_ORDER_LINE;
| strip characters from suffix of record | CC BY-SA 2.5 | null | 2010-08-21T20:02:52.513 | 2010-08-21T20:10:32.737 | null | null | 339,610 | [
"ms-access"
] |
3,538,736 | 1 | null | null | 0 | 707 | My iPhone application has a UITable View implemented with search functionality in it. The values in the table are grouped into sections from A-Z. Whenever a user tap on particular cell in the table it loads a detail view controller which gives all the values of that particular user. Now my problem is whenever I search some contact and tap on a particular user to check his detail view it always returns a contact starting with letter A. So, my doubt is how to implement this search functionality. Is there a way to get the name of the contact I tapped..Please check this screenshot.. For example if I search some contact starting with letter 'B' and tap on that contact it loads the detail view of a contact starting with letter 'A'. I get all the values from the database. Can you please help me out...

This is the code:
The code I wrote here is in a method:
I am getting all the contacts from database and assigning to an array contacts. Then I am grouping all the contacts according to the alphabets and grouping everything into a dictionary with keys as A-Z and values as name of contacts starting with these letters. Now when I search for a particular contact his name may start with either A ,B or Z..so in the search bar when I search for a particular contact for example a contact starting with letter Z, in this case it gives the details of a person with A. I want this to change so that whenever I tap on a particular contact it should load its details. I am unable to figure out how to do it..
```
contacts = [[db getContacts:@"Contacts"] componentsSeparatedByString:@","];
[db cleanup];
NSMutableArray *tempArray = [[NSMutableArray alloc] init];
NSString *charString;
for (int i=65; i<91; i++) {
charString = [NSString stringWithFormat:@"%c",(char *)i];
[tempArray addObject:charString];
}
[charString release];
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
for (int i=0; i<[tempArray count]; i++) {
NSMutableArray *contactsByIndex = [[[NSMutableArray alloc] init]autorelease];
NSString *tempChar = [tempArray objectAtIndex:i];
for (int j=0; j<[contacts count]-1; j++)
{
NSString *test = [contacts objectAtIndex:j];
NSString *tempString = [test substringToIndex:1];
if ([tempString isEqualToString:tempChar]) {
[contactsByIndex addObject:[contacts objectAtIndex:j]];
}
}
[dict setObject:contactsByIndex forKey:[tempArray objectAtIndex:i]];
}
self.contactNames = dict;
NSArray *array = [[contactNames allKeys] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
self.contactKeys = array;
[dict release];
[tempArray release];
//---display the searchbar---
self.tableView.tableHeaderView = searchBar;
searchBar.autocorrectionType = UITextAutocorrectionTypeYes;
listOfContacts = [[NSMutableArray alloc] init];
for (NSString *key in array)
{
NSArray *contactsArray = [contactNames objectForKey:key];
for (NSString *name in contactsArray) {
[listOfContacts addObject:name];
}
}
- (void) searchContactsTableView {
//---clears the search result---
[searchResult removeAllObjects];
for (NSString *str in listOfContacts) {
NSRange titleResultsRange = [str rangeOfString:searchBar.text options:NSCaseInsensitiveSearch];
if (titleResultsRange.length > 0)
[searchResult addObject:str];
}
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
NSString *selectedRow=nil;
if (isSearchOn) {
selectedRow=[searchResult objectAtIndex:indexPath.row];
}
DetailViewController *detailViewController;
int section_index=[indexPath indexAtPosition:[indexPath length]-2];
int sugarid_Index = [indexPath indexAtPosition: [indexPath length]-1];
NSString* sectionName=[contactKeys objectAtIndex:section_index];
NSLog(@"%@",sectionName);
//This is a method which gets the details of a particular contact based on the section and the row selected..Contacts is the table name
NSString *getContact=[db getId:@"Contacts" bySection:sectionName andIndex:sugarid_Index];
id=[db getContact:@"Contacts" id:getContact];
// Pass the selected object to the new view controller.
detailViewController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil];
detailViewController.eachContact=contactForSugarId;
[self.navigationController pushViewController:detailViewController animated:YES];
}
```
When I search for a contact it should search for the name in database and should return its details. Is there a way to do it..please let me know or is there a way to get the name of the cell i.e. the contact name so that I can use that in one of my database methods to retrieve the details of the contact I selected.
| How to implement UITableView search functionality | CC BY-SA 3.0 | 0 | 2010-08-21T20:03:12.107 | 2011-08-21T18:23:08.230 | 2011-08-21T18:23:08.230 | 23,649 | 420,556 | [
"iphone",
"objective-c",
"cocoa-touch",
"uitableview"
] |
3,538,946 | 1 | 3,787,796 | null | 6 | 6,268 | I am trying to create smaller tabs in android -- but I can't seem to get it to work because all that happens when I create a smaller tab is that it shows the bigger tab -- but without a drawable.
This is my layout code for tabs now -- but the height isn't wrapping for some reason -- it just goes to Android's usual layout height.
```
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent" android:layout_height="wrap_content" />
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent" android:layout_height="fill_parent">
</FrameLayout>
</LinearLayout>
</TabHost>
```
It would be great if someone could help me create something like the Facebook application -- I think that looks really clean and I would love to implement something like it:

| Create Smaller Tabs in Android | CC BY-SA 2.5 | 0 | 2010-08-21T20:55:43.733 | 2011-02-23T15:50:28.447 | null | null | 354,247 | [
"android",
"user-interface",
"android-tabhost"
] |
3,539,282 | 1 | 3,539,337 | null | 1 | 6,672 | I have a windows form application, and I have extended the window's frame into the client area using DwmExtendFrameIntoClientArea to get the glass effect.
Now I'm trying to show a transparent PNG image in a picture box, however the background shows up as white instead of the glass effect. How can i make the image show as transparent so that i only see the rounded gray rectangle and not the white background.
My screenshot is below. Thanks.


| Windows Forms Glass Effect, Make ImageBox transparent | CC BY-SA 2.5 | null | 2010-08-21T22:26:30.333 | 2010-08-21T22:54:29.377 | 2010-08-21T22:54:29.377 | 181,579 | 181,579 | [
"c#",
"winforms",
"dwm"
] |
3,539,437 | 1 | 3,540,154 | null | 21 | 9,437 | Thought I could just copy my vimrc from my Windows to my Linux box but running into a few problems with the letter spacing on Ubuntu.

Hope this is the right place to ask this question with all these new stackexachange sites.
The font is correctly installed I think. From the menu I can select it and it works fine.

| Gvim: Ubuntu letter spacing (Consolas font) | CC BY-SA 3.0 | 0 | 2010-08-21T23:25:32.000 | 2013-08-11T13:52:03.003 | 2013-08-11T13:52:03.003 | 145,117 | 145,117 | [
"vim"
] |
3,539,445 | 1 | 3,539,555 | null | 3 | 2,181 | Is it possible to line up the "Register" button to right align it w/in col2?
Here's the markup:
```
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" CreateUserButtonText="Register" ContinueDestinationPageUrl="~/Secure/PromotePandaVisa.aspx">
<SideBarTemplate>
Sidebar template
</SideBarTemplate>
<WizardSteps>
<asp:CreateUserWizardStep runat="server">
<ContentTemplate>
<table border="0" cellpadding="2" cellspacing="2">
<colgroup>
<col width="120px"/>
<col width="150px" />
<col />
<tr>
<td class="CaptionLabel" colspan="3" style="white-space: nowrap; padding-left:10px; padding-top: 5px; padding-bottom: 15px;">
<asp:Label ID="Label1" runat="server" CssClass="LargeCaption LightText" Text="Register as an Affiliate"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="DefaultLabelCaption">User Name:</asp:Label>
</td>
<td>
<asp:TextBox ID="UserName" runat="server" CssClass="DefaultTextBox TextboxWidth"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" Display="Dynamic" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass="DefaultLabelCaption">Password:</asp:Label>
</td>
<td>
<asp:TextBox ID="Password" runat="server" CssClass="DefaultTextBox TextboxWidth" TextMode="Password"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" Display="Dynamic" ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1">Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword" CssClass="DefaultLabelCaption">Confirm Password:</asp:Label>
</td>
<td>
<asp:TextBox ID="ConfirmPassword" runat="server" CssClass="DefaultTextBox TextboxWidth" TextMode="Password"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" CssClass="DefaultLabelCaption">E-mail:</asp:Label>
</td>
<td>
<asp:TextBox ID="Email" runat="server" CssClass="DefaultTextBox TextboxWidth"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email" Display="Dynamic" ErrorMessage="E-mail is required." ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="AnswerLabel1" runat="server" AssociatedControlID="Answer" CssClass="DefaultLabelCaption">Company Name:</asp:Label>
</td>
<td>
<asp:TextBox ID="txtCompanyName" runat="server" CssClass="DefaultTextBox TextboxWidth"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="AnswerRequired1" runat="server" ControlToValidate="txtCompanyName" Display="Dynamic" ErrorMessage="Security answer is required." SetFocusOnError="True" ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1">Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="AnswerLabel0" runat="server" AssociatedControlID="Answer" CssClass="DefaultLabelCaption">Website:</asp:Label>
</td>
<td>
<asp:TextBox ID="txtWebsite" runat="server" CssClass="DefaultTextBox TextboxWidth"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="AnswerRequired0" runat="server" ControlToValidate="txtWebsite" Display="Dynamic" ErrorMessage="Security answer is required." SetFocusOnError="True" ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1">Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr style="display: none;">
<td align="right">
<asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question" CssClass="DefaultLabelCaption">Security Question:</asp:Label>
</td>
<td>
<asp:TextBox ID="Question" runat="server" CssClass="DefaultTextBox TextboxWidth"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr style="display: none;">
<td align="right">
<asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer" CssClass="DefaultLabelCaption">Security Answer:</asp:Label>
</td>
<td>
<asp:TextBox ID="Answer" runat="server" CssClass="DefaultTextBox TextboxWidth"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match." ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
</td>
<td align="center">
</td>
</tr>
<tr>
<td align="center" colspan="2" style="color: Red;">
<asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
</td>
<td align="center" style="color: Red;">
</td>
</tr>
</colgroup>
</table>
</ContentTemplate>
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep runat="server">
<ContentTemplate>
<table border="0">
<tr>
<td align="center">
Complete
</td>
</tr>
<tr>
<td>
Your account has been successfully created.
</td>
</tr>
<tr>
<td align="right">
<asp:Button ID="ContinueButton" runat="server" CausesValidation="False" CommandName="Continue" Text="Continue" ValidationGroup="CreateUserWizard1" OnPreRender="StepNextButton_PreRender" />
</td>
</tr>
</table>
</ContentTemplate>
</asp:CompleteWizardStep>
</WizardSteps>
</asp:CreateUserWizard>
```
Here's the Design View:

I'd like to add code in the code behind to perform additional edits. I added the "ErrorMessage" LiteralControl. How do I access it from the code behind or is there a preffered way to display a custom message using the control's functionality?
| CreateuserWizard, Is it possible to line up the "Register" button to right align it w/in col2? | CC BY-SA 2.5 | 0 | 2010-08-21T23:28:05.927 | 2010-08-22T02:32:50.213 | null | null | 109,676 | [
"asp.net",
"createuserwizard"
] |
3,539,533 | 1 | null | null | 1 | 300 | I'm trying to place a Markdown Editor inside jQuery-UI Tabs, but the editor is not being shown.
```
<% Using Html.BeginForm()%>
<div id="AddEventWizard">
<ul>
<li><a href="#tabs-1">Event Title</a></li>
<li><a href="#tabs-2">Event Description</a></li>
</ul>
<div id="tabs-1">
<%: Html.LabelFor(Function(model) model.Name)%>
<%: Html.TextBoxFor(Function(model) model.Name, New With{.class = "full-width-input"})%>
<%: Html.ValidationMessage("Name", "*")%>
</div>
<div id="tabs-2">
<noscript><h3>Please use
<%: Html.ActionLink("Markdown", "Markdown", "About")%>
to style your input.</h3></noscript>
<div id="wmd-button-bar" class="wmd-panel">
</div>
<%: Html.TextAreaFor(Function(model) model.Description, 5, 10, New With {.id = "wmd-input", .class = "wmd-panel"})%>
<div id="wmd-preview" class="wmd-panel">
</div>
<div class="clear">
</div>
</div>
</div>
<% End Using%>
<script type="text/javascript">
$(document).ready(function () {
$('textarea#wmd-input:not(.processed)').TextAreaResizer();
$("#AddEventWizard").tabs({
});
}); // closes document.ready
</script>
```
There is space where the editor buttons "should" be, but they're not there. Does anyone know if the jQuery-UI stuff somehow blocks WMD Markdown?

---
# Edit:
I'm using the version from
HTML Markup
```
<form action="/events/addevent" method="post">
<div id="AddEventWizard">
<ul>
<li><a href="#tabs-1">Event Title</a></li>
<li><a href="#tabs-2">Event Details</a></li>
<li><a href="#tabs-3">Event Description</a></li>
</ul>
<div id="tabs-1">
<label for="Name">Name</label>
<input class="full-width-input" id="Name" name="Name" type="text" value="" />
</div>
<div id="tabs-2"></div>
<div id="tabs-3">
<noscript><h3>Please use
<a href="/about/markdown">Markdown</a>
to style your input.</h3></noscript>
<div id="wmd-button-bar" class="wmd-panel">
</div>
<textarea class="wmd-panel" cols="10" id="wmd-input" name="Description" rows="5">
</textarea>
<div id="wmd-preview" class="wmd-panel">
</div>
<div class="clear">
</div>
</div>
</div>
</form>
<script type="text/javascript">
$(document).ready(function () {
$('textarea#wmd-input:not(.processed)').TextAreaResizer();
$("#AddEventWizard").tabs({
});
}); // closes document.ready
</script>
<script src="../../Assets/Scripts/wmd.js" type="text/javascript"></script>
<script src="../../Assets/Scripts/showdown.js" type="text/javascript"></script>
<script src="../../Assets/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../../Assets/Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
<script src="../../Assets/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
<script src="../../Assets/Scripts/jquery.textarearesizer.compressed.js" type="text/javascript"></script>
```
| Can't seem to wrap WMD Markdown Editor inside JQuery Tabs | CC BY-SA 2.5 | 0 | 2010-08-22T00:02:08.717 | 2010-08-22T06:41:33.697 | 2010-08-22T01:35:03.313 | 124,069 | 124,069 | [
"asp.net-mvc",
"jquery-ui",
"wmd"
] |
3,539,692 | 1 | 3,539,700 | null | 9 | 10,102 | Can anyone tell me how I can get the number of unread items in my inbox from gmail using imap or something else and display it in a label in C# WinForms?
I tried using atom feeds, but never could get it
Here is what I want to look like, if it helps:

| Count number of emails in gmail using IMAP | CC BY-SA 3.0 | 0 | 2010-08-22T01:08:34.657 | 2014-08-28T06:28:17.313 | 2011-11-17T10:38:34.020 | 232,593 | 426,917 | [
"c#",
"winforms",
"gmail",
"imap",
"inbox"
] |
3,539,760 | 1 | 3,539,813 | null | 0 | 2,770 | I'm using the jQuery UI autocomplete functionality and, while I've found a way to implement the autoFill function, I was looking for functionality like in the Google Chrome address bar. Where the best matching item is auto-filled, but it doesn't interrupt your typing.

Any help is appreciated.
| jQuery UI Autocomplete with Chrome-like autofill | CC BY-SA 2.5 | 0 | 2010-08-22T01:51:27.973 | 2011-04-19T08:59:59.090 | 2010-08-22T02:14:34.297 | 313,758 | 90,718 | [
"jquery",
"jquery-ui",
"autocomplete",
"autofill"
] |
3,539,823 | 1 | 3,539,838 | null | 2 | 39 | 
This is what I get when I select "go to definition" in the ConfigTests.cs. But I expected to go to already opened Config.cs with actual declaration.
What did I do wrong?
| Strange "go to sources" behaviour in VS | CC BY-SA 2.5 | null | 2010-08-22T02:16:35.023 | 2010-08-22T02:25:32.810 | 2010-08-22T02:25:32.810 | 251,311 | 251,311 | [
"visual-studio"
] |
3,539,988 | 1 | 3,540,034 | null | 2 | 3,346 | I was wondering if it was possible to do either in WPF:

I guess the main problem here that I can't embed a textblock in a line in XAML, which is something I'm use to doing. Does anyone have any idea of how I can tackle this problem?
EDIT: It would also have to handle diagonal text.
| Drawing text on/on top of line in WPF | CC BY-SA 2.5 | 0 | 2010-08-22T03:23:41.370 | 2017-07-29T15:46:21.063 | 2010-08-22T03:44:17.327 | 225,650 | 225,650 | [
"wpf",
"line"
] |
3,540,110 | 1 | 3,540,175 | null | 1 | 2,589 | Is there a way with PHP GD to draw a star using [imagefilledpolygon](http://php.net/manual/en/function.imagefilledpolygon.php)?
Where would the points be plotted?
I believe it involves sine and cosine because...

How can I relate those points to the using [sine](http://php.net/manual/en/function.sin.php) and [cosine](http://php.net/manual/en/function.cos.php) in GD?
| Draw a star using imagefilledpolygon (with diagram) | CC BY-SA 2.5 | 0 | 2010-08-22T04:16:14.720 | 2018-06-06T16:28:43.070 | 2015-03-27T02:22:27.483 | null | 1,246,275 | [
"php",
"geometry",
"gd"
] |
3,540,167 | 1 | 3,541,447 | null | 1 | 8,484 | In SQL Server Management Studio, there is an option to set the default database path for a given instance:

This works. When I say
```
CREATE DATABASE test
```
it gets created in the path I specify, `E:\data`. Great.
But how do I get this path in T-SQL (for use in setup scripts)?
[Contrary](http://decipherinfosys.wordpress.com/2008/09/25/sql-server-default-folder-locations/) to what [many pages](http://connect.microsoft.com/SQLServer/feedback/details/532718/ssms-server-properties-change-database-default-locations-does-not-generate-valid-script-commands) [say](http://gvphubli.blogspot.com/2008/04/default-database-file-path.html), there is no registry key (on my machine) for `DefaultData` or `DefaultLog`. I am running SQL Server 2005 Express on XP 64.
This value has got to be stored somewhere. Where?
| How do I get the *actual* default database location in SQL Server? | CC BY-SA 2.5 | null | 2010-08-22T04:34:23.493 | 2017-02-27T16:04:42.937 | null | null | 4,525 | [
"sql-server-2005",
"scripting",
"configuration"
] |
3,540,770 | 1 | 3,542,950 | null | 6 | 10,736 | I've been having the most AWFUL time integrating MailChimp into a site I'm designing!
The problem is that validation is not working for the embedded subscribe form. Instead of inlining error messages, the form is kicking the user over to the MailChimp signup page to correct errors or confirm list opt in.
I've done a heavy amount of customization to the code, so unfortunately going back to the default is not an option.
Here are the errors I'm getting, but I'm a JS n00b so I don't know what they mean:
Break on Error mce_jQuery is not defined:

I don't think it's an error that can be caught with the console though.
The weird thing is this. If I rip out the custom code and just post the static code from MailChimp it somehow works, but I've copied all the relevant code with important functions and still no dice.
You can view the site live at: [http://ranya.net/wp/contact](http://ranya.net/wp/contact)
The MailChimp list signup is in the top right corner sliding dropdown. The relevant scripts are embedded just after div#top_mailing.
| MailChimp jQuery Conflict | CC BY-SA 3.0 | 0 | 2010-08-22T08:41:03.307 | 2014-12-08T11:06:13.547 | 2011-10-28T21:06:14.783 | 757,830 | 187,750 | [
"javascript",
"debugging",
"conflict",
"mailchimp"
] |
3,540,786 | 1 | 3,541,165 | null | 6 | 10,403 | I have a `js` file which is cached between 5-10 minutes, depending on whether I'm using tomcat from the eclipse (via GWT plugin) or starting tomcat as standalone.
This is strange as I'm using `GWT` as my framework and this file should not be cached at all (it's a nocache.js file to those of you who know GWT).
I've read on a [GWT Google group thread](http://groups.google.com/group/google-web-toolkit/browse_thread/thread/5943c8150ade38c7) that it's a container configuration issue, and somewhere else that it's something I need to define in the containing HTML file.
Basically, I'm confused right now as I have no clue on how to get this file to not cache.
Please note that this js is generated by `GWT` and I cannot modify it.
Thanks for any help,
Ittai


| How to set Expires HTTP header on a single JS file in Apache Tomcat? | CC BY-SA 2.5 | 0 | 2010-08-22T08:48:03.240 | 2015-01-07T14:39:28.487 | 2014-01-23T20:43:51.447 | 2,642,204 | 170,013 | [
"tomcat",
"caching",
"gwt",
"http-headers"
] |
3,540,954 | 1 | 3,541,030 | null | 1 | 1,558 | I'm displaying prices on a DataGridView (on a WinForms application developped in C# on VS 2008).
The column type is DataGridViewComboBoxColumn.
The DefaultCellStyle.Format property for this column is set to "C2" and the prices are indeed formatted as currency in the cells of this column.
However, when the user clicks the ComboBox to selected a value, the value on the list are not formatted.
For example, instead of seeing:
```
3.90 €
4.50 €
5.95 €
```
They see
```
3.9
4.5
5.95
```
The values is also left-aligned while I would prefer to have them right-aligned.
Here is a picture showing the current behaviour and we can clearly see that it doesn't look as great as it could.

Is it possible to get the result I'm after?
Thanks.
| Format the list items from the DataGridViewComboBox | CC BY-SA 2.5 | 0 | 2010-08-22T09:40:51.440 | 2010-08-22T10:04:21.007 | null | null | 367,663 | [
"c#",
".net",
"winforms",
"datagridview",
"combobox"
] |
3,541,703 | 1 | null | null | 2 | 1,121 | I created a sample Workflow Service. I am having a problem calling it in unordered. All the receive activity below having same correlation. When the workflow starts on GetData() and the client tries to call 4th or 3rd receive activity it results to timeout. I was expecting to throws back a
> Operation
'Fourth|{[http://tempuri.org/](http://tempuri.org/)}IService'
on service instance with identifier
'04e7f5aa-5e01-47ac-8a6e-b20492c5ac19'
cannot be performed at this time.
Please ensure that the operations are
performed in the correct order and
that the binding in use provides
ordered delivery guarantees.
But when I moved out the second receive activity and delete the pick including the delay, it works fine and throw the expected result.


Thanks,
- Ronald
| Workflow Services ReceiveAndSendReply Unordered Calls Timeout | CC BY-SA 3.0 | 0 | 2010-08-22T13:51:27.930 | 2012-03-29T04:59:14.303 | 2012-03-29T04:59:14.303 | 132,599 | 402,470 | [
"workflow-foundation-4"
] |
3,541,713 | 1 | 3,542,115 | null | 254 | 520,090 | I am using R and I have two data frames: carrots and cucumbers. Each data frame has a single numeric column that lists the length of all measured carrots (total: 100k carrots) and cucumbers (total: 50k cucumbers).
I wish to plot two histograms - carrot length and cucumbers lengths - on the same plot. They overlap, so I guess I also need some transparency. I also need to use relative frequencies not absolute numbers since the number of instances in each group is different.
Something like this would be nice but I don't understand how to create it from my two tables:

| How to plot two histograms together in R? | CC BY-SA 4.0 | 0 | 2010-08-22T13:54:27.283 | 2023-01-13T01:35:46.690 | 2021-05-10T14:00:49.913 | 3,552,975 | 377,031 | [
"r",
"plot",
"histogram"
] |
3,541,741 | 1 | 3,542,010 | null | 8 | 8,226 | I am trying to add a badge to one of my Activity's button. Right now I am trying to do the xml.
The Button with the badge, should look like this:

I have already done the bubble and the text inside using a `RelativeLayout`:
```
<RelativeLayout android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/badge"
android:layout_centerInParent="true"/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:text="2"
android:layout_centerInParent="true" />
</RelativeLayout>
```
But I can't find a way to place it there and making it work on portrait and landscape with the same xml.
The Buttoms in the `Activity` are like this:
```
<Button android:id="@+id/new_releases_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_button_selector"
android:text="@string/new_releases_title"
android:textColor="#FFFFFF"
android:textSize="20sp"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:layout_marginTop="15dp"
android:layout_below="@id/coming_soon_button"
android:onClick="newReleaseClick"
android:layout_centerHorizontal="true" />
<Button android:id="@+id/top_sellers_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_button_selector"
android:text="@string/top_sellers_title"
android:textColor="#FFFFFF"
android:textSize="20sp"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:layout_marginTop="15dp"
android:layout_below="@id/new_releases_button"
android:onClick="topSellersClick"
android:layout_centerHorizontal="true" />
```
and here are the two resources:


How should I do the xml?
EDIT:
Best approach so far, but it still doesn't work:
```
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button android:id="@+id/discounts_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_button_selector"
android:text="@string/discounts_title"
android:textColor="#FFFFFF"
android:textSize="20sp"
android:onClick="discountsClick"
android:layout_marginTop="40dp"
android:layout_marginLeft="20dp"/>
<RelativeLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|left">
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/badge"
android:layout_centerInParent="true"/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:text="20"
android:layout_centerInParent="true" />
</RelativeLayout>
</FrameLayout>
```
| Positioning a badge bubble on the left upper side of a button | CC BY-SA 2.5 | 0 | 2010-08-22T14:01:21.810 | 2010-08-22T16:40:09.230 | 2010-08-22T16:12:11.160 | 119,895 | 119,895 | [
"android"
] |
3,541,823 | 1 | 3,541,926 | null | 0 | 420 | Hey guys, I'm using GWT for a data-driven web application, and I'm having issues with a CellTable embedded in a TabLayoutPanel. As you can see from the screenshot, the scroll bar for the table does not appear inside the bounds of the TabLayoutPanel. (You can see just a couple pixels of it on the right.) If I mouse over the TabLayoutPanel in the inspector, it properly shows the boundary ending at that black border on the right.
For some reason I haven't been able to determine, the TabLayoutPanelContent object is extending outside the bounds of its parent, the TabLayoutPanel. Has anyone run into an issue like this before? Or does anyone see an issue in the HTML/CSS that might suggest a solution? I'm sure it's something minor, but it's frustratingly difficult to find.
TIA!

| Funky Layout Issue using TabLayoutPanel and GWT? | CC BY-SA 2.5 | null | 2010-08-22T14:31:50.453 | 2010-08-22T15:01:59.620 | 2010-08-22T14:46:25.723 | 217,332 | 88,111 | [
"css",
"gwt"
] |
3,541,943 | 1 | 3,543,024 | null | 0 | 1,811 | I have a gridview that is inflated by multiple buttons. I used just a gridview and it worked fine. The grid was in correct order and was centered. Although, I wanted to add a button below the grid of buttons that was different and centered. To do this I decided to section off the gridview and then add the button (therefore it wouldn't be affected by the gridview). I tried the following code to seperate the views:
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout
android:id="@+id/tbl_gridcreator"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center">
<TableRow>
<GridView
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:columnWidth="150px"
android:numColumns="7"
android:stretchMode="spacingWidthUniform"
android:gravity="center">
<!--
android:horizontalSpacing="0px" -->
</GridView>
</TableRow>
<TableRow android:gravity="center">
<Button android:text="Submit"
android:id="@+id/submit"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</Button>
</TableRow>
</TableLayout>
</LinearLayout>
```
The problem is that this code smushes the gridview to the left and oddly it flips it (Position 0 is ont he bottom right and the last button is on the top left pushed off screen). The following image shows what is the result:

Any idea why its pushed to the left and flipped? Or maybe how I could have just the Gridview with the button on the bottom?
| Trouble with getting a button along with gridview | CC BY-SA 2.5 | null | 2010-08-22T15:06:39.900 | 2011-11-22T05:46:30.367 | 2017-02-08T14:30:13.187 | -1 | 278,447 | [
"android",
"gridview"
] |
3,542,907 | 1 | 3,543,398 | null | 1 | 470 | Check the screenshot below from Omnigroup, note the nested cards, how do you think we can implement a similar one in Delphi? Custom draw Virtual treeview? Any other hints? Thanks!

| how to implement this hierarchical UI found in iPad in Delphi? | CC BY-SA 2.5 | 0 | 2010-08-22T19:06:53.673 | 2010-08-23T07:38:31.443 | null | null | 133,516 | [
"delphi"
] |
3,543,335 | 1 | 3,543,720 | null | 7 | 8,065 | I'm new to using the PreferenceActivity.
Allow user to choose the program layout from the Preferences
Selecting an option in the PreferenceList causes a NullPointerException
At android.preference.ListPreference.onDialogClosed()

(Shortened) Code:
```
private static final String PREF_LAYOUT_KEY = "PrefLayout";
private static final int DEFAULT_LAYOUT = LayoutHelper.LAYOUT_DOUBLE ;
private static int mListLayout = DEFAULT_LAYOUT ;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
pref.registerOnSharedPreferenceChangeListener(this);
mListLayout = pref.getInt(PREF_LAYOUT_KEY, DEFAULT_LAYOUT);
}
@Override
public void onSharedPreferenceChanged(SharedPreferences pref,
String key) {
Log.v(TAG, "OnSharedPreferencesChanged run" ); // TODO Testing Purposes
if( key.equals( PREF_LAYOUT_KEY ) ){
mListLayout = pref.getInt(key, DEFAULT_LAYOUT);
}
}
```
[PreferenceActivity]
```
public class Preferences extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.pref);
}
}
```
[res/xml/pref.xml]
```
<PreferenceCategory
android:title="@string/pref_cat1_title">
<ListPreference
android:title="@string/pref_layout_name"
android:summary="@+id/pref_chosen_layout"
android:key="PrefLayout"
android:entries="@array/prefLayoutOptions"
android:entryValues="@array/prefLayoutOptionsValues"
/>
</PreferenceCategory>
```
[Strings.xml]
```
<string name="pref_cat1_title">Layout</string>
<string name="pref_layout_name">"Layout of list"</string>
<array name="prefLayoutOptions">
<item>Layout 1 (single)</item>
<item>Layout 2 (double)</item>
<item>Layout 3 (triple)</item>
<item>Layout 4 (quad)</item>
</array>
<array name="prefLayoutOptionsValues">
<item>50</item>
<item>51</item>
<item>52</item>
<item>53</item>
</array>
```
The bit of code that logs OnSharedPreferencesChanged being run never gets there.
Can anybody see where I've gone wrong?
EDIT. Here's the top of the stack trace:
```
E/AndroidRuntime( 2707): java.lang.NullPointerException
E/AndroidRuntime( 2707): at android.preference.ListPreference.onDialogClosed(ListPreference.java:218)
E/AndroidRuntime( 2707): at android.preference.DialogPreference.onDismiss(DialogPreference.java:384)
E/AndroidRuntime( 2707): at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1047)
E/AndroidRuntime( 2707): at android.os.Handler.dispatchMessage(Handler.java:99)
```
| PreferenceActivity gives a NullPointerException when option selected from ListPreference | CC BY-SA 2.5 | 0 | 2010-08-22T20:50:36.937 | 2010-08-23T08:30:01.697 | 2010-08-22T21:13:39.637 | 295,199 | 295,199 | [
"android",
"nullpointerexception",
"android-preferences"
] |
3,543,393 | 1 | null | null | 0 | 1,751 | I'm having a weird error in my code.
I'm getting an error:
Microsoft JScript runtime error: object doesn't support this action.
I'm using fullcalendar and on an event click I want to open the even details in the same window. Oddly enough, this works fine in Chrome. I also want to note that on an XP system it works fine both in IE8 and Chrome, while in Windows 7 chrome works fine and IE8 gives the error.
Here is a screen shot:

Here is my view code:
```
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HomePagesMaster.Master" Inherits="System.Web.Mvc.ViewPage<Perspectiva.Models.EventViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
פרספקטיבה - לוח ארועים
</asp:Content>
<asp:Content ID="mainContent" ContentPlaceHolderID="PageContent" runat="server">
<!-- jquery scripts needed for for the calendar and datepicker -->
<script src="<%=Url.Content("~/Scripts/jquery-1.4.1.min.js")%>" type="text/javascript"></script>
<script src="<%=Url.Content("~/Scripts/jquery-ui-1.8.1.custom.min.js")%>" type="text/javascript"></script>
<script src="<%=Url.Content("~/Scripts/fullcalendar.min.js")%>" type="text/javascript"></script>
<link href="<%= Url.Content("~/Content/jquery-ui.custom.css") %>" rel="stylesheet" type="text/css" />
<link href="<%= Url.Content("~/Content/fullcalendar.css") %>" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
$(document).ready(function() {
$("#calendar").fullCalendar({
theme: true,
header: {
left: 'month, agendaWeek, agendaDay',
center: 'title',
right: 'next,prev'
},
buttonIcons: {
next: 'circle-triangle-w',
prev: 'circle-triangle-e'
},
monthNames: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני',
'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'דצמבר'],
monthNamesShort: ['ינו', 'פבר', 'מרץ', 'אפר', 'מאי', 'יונ',
'יול', 'אוג', 'ספט', 'אוק', 'דצמ'],
dayNames: ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
dayNamesShort: ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'],
weekend: false,
aspectRatio: 2,
defaultView: 'agendaWeek',
isRTL: true,
axisFormat: 'HH:mm',
minTime: '6:00',
maxTime: '21:00',
events: "/Scheduler/EventData/",
allDaySlot: false,
eventClick: function(event, jsEvent, view) {
window.location(event.url);
}
});
});
</script>
<br />
<div style="padding-bottom: 10px; text-align: center; font-size:xx-large; font-family: David;">לוח ארועים</div>
<div id="calendar" style="font-size: medium"></div>
<% if (Roles.IsUserInRole("manager"))
{ %>
<div id="side" style="font-size:large; text-align: center; text-decoration: none;">
<br />
<%= Html.ActionLink("הוסף ארוע חדש", "CreateEvent", "Scheduler") %>
</div>
<% } %>
</asp:Content>
```
Any Ideas?
| Microsoft JScript runtime error using window.location in IE8 | CC BY-SA 3.0 | null | 2010-08-22T21:04:28.400 | 2011-12-09T23:14:10.543 | 2011-12-09T23:14:10.543 | 489,560 | 351,334 | [
"windows-7",
"internet-explorer-8",
"javascript",
"window.location"
] |
3,543,447 | 1 | 3,543,523 | null | 0 | 990 | Below is an image of the problem.
I've tried correcting the folder permissions to 755, i've tried setting exact paths, i've tried removing all of my styles and nothing works.
Background png images seem to load fine.
There are some flash elements on the page (top and side nav)
Any help would be much appreciated. Thanks in advance.

| IE7 png images loading but appearing with the 'image not found' red x | CC BY-SA 2.5 | null | 2010-08-22T21:20:44.840 | 2010-08-22T21:37:33.687 | 2010-08-22T21:33:09.603 | 31,677 | 31,677 | [
"html",
"css",
"internet-explorer-7",
"png"
] |
3,543,478 | 1 | 6,812,883 | null | 18 | 34,144 | Is it possible to remove the bottom line showed in the tab bar? It is grey when not selected.
And is it possible to change the yellowish color to something else?

layout xml: [http://pastebin.com/M2KqtH1r](http://pastebin.com/M2KqtH1r)
| Remove the bottom line border in tab bar? (And change selected color) | CC BY-SA 2.5 | 0 | 2010-08-22T21:26:49.843 | 2023-01-18T20:13:22.817 | 2010-08-23T05:00:04.940 | 215,088 | 215,088 | [
"android",
"user-interface"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.