PostId
int64 13
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 3
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -33
210k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
5.77k
| Title
stringlengths 10
250
| BodyMarkdown
stringlengths 12
30k
| Tag1
stringlengths 1
25
⌀ | Tag2
stringlengths 1
25
⌀ | Tag3
stringlengths 1
25
⌀ | Tag4
stringlengths 1
25
⌀ | Tag5
stringlengths 1
25
⌀ | PostClosedDate
stringlengths 19
19
⌀ | OpenStatus
stringclasses 5
values | unified_texts
stringlengths 47
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5,114,696 | 02/25/2011 07:29:54 | 633,731 | 02/25/2011 07:29:54 | 1 | 0 | c or any other language | hi can you teach me about how to get the following result during the runtime
(ex:) input: the men is the hen on when
out put : the number of 'he' in the above input is 4
| c | null | null | null | null | 02/25/2011 07:52:55 | not a real question | c or any other language
===
hi can you teach me about how to get the following result during the runtime
(ex:) input: the men is the hen on when
out put : the number of 'he' in the above input is 4
| 1 |
3,200,622 | 07/08/2010 04:13:13 | 381,699 | 07/02/2010 03:09:50 | 8 | 0 | Linux(Ubuntu) Terminal-how to view previous pages not visible anymore | When you scroll up, say to see a log, the first portion of it will not be visible since the terminal only supports a limited no. of lines. So if you want to scroll up and be able to see everything, at least a few pages up, how do you do it? | linux | terminal | null | null | null | null | open | Linux(Ubuntu) Terminal-how to view previous pages not visible anymore
===
When you scroll up, say to see a log, the first portion of it will not be visible since the terminal only supports a limited no. of lines. So if you want to scroll up and be able to see everything, at least a few pages up, how do you do it? | 0 |
5,706,771 | 04/18/2011 17:47:58 | 708,689 | 04/14/2011 20:08:20 | 157 | 22 | Best way to convert html entities to html characters | What I need to do is convert any html entities to the actual html character. It can be in javascript or preferable php.
Here's the senario. When I save content to the database from TinyMCE it converts it to html entities for me. That's all good and great when the webpage is rendered, but when I also what to put it in a text input the html entities stick and to a normal user it looks a little wonky.
The only way I can think of doing it is have an array with the entity as the key and character as the value. When an entity is found, check that array and spit out the value.
Does anyone have a better/more efficient solution, possibly using regex? | php | javascript | html-entities | null | null | null | open | Best way to convert html entities to html characters
===
What I need to do is convert any html entities to the actual html character. It can be in javascript or preferable php.
Here's the senario. When I save content to the database from TinyMCE it converts it to html entities for me. That's all good and great when the webpage is rendered, but when I also what to put it in a text input the html entities stick and to a normal user it looks a little wonky.
The only way I can think of doing it is have an array with the entity as the key and character as the value. When an entity is found, check that array and spit out the value.
Does anyone have a better/more efficient solution, possibly using regex? | 0 |
5,325,005 | 03/16/2011 12:07:30 | 402,681 | 07/26/2010 19:45:21 | 121 | 4 | Control size of the output of seqLogo? | I am using the `seqLogo` package to draw some sequence Logos. I need to make the logos wider, the default drawing makes the logos into square graphs. Is there a way to do this? | r | bioinformatics | sequence-diagram | logo | null | null | open | Control size of the output of seqLogo?
===
I am using the `seqLogo` package to draw some sequence Logos. I need to make the logos wider, the default drawing makes the logos into square graphs. Is there a way to do this? | 0 |
11,714,534 | 07/30/2012 01:45:00 | 798,937 | 06/15/2011 05:01:21 | 332 | 4 | MySQL database with Unique fields ignored ending spaces | My projects requires to start inputs from the user with the spacing on the left and spacing on the right of a word. for example 'apple', if the user types in ' apple' or 'apple ', whether it is one space or multiple space on the left or right of the word. I need to store it that way.
This field has Unique attribute. but i attempt to insert the word with spacing on the left it works fine. but when i attempt to insert the word with spacing on the right it trims off all the spacing from the right of the word.
So i am thinking of adding a special character to the right of the word after the spacing. but iam hoping there is a better solution for this issue. | mysql | mysql5 | null | null | null | null | open | MySQL database with Unique fields ignored ending spaces
===
My projects requires to start inputs from the user with the spacing on the left and spacing on the right of a word. for example 'apple', if the user types in ' apple' or 'apple ', whether it is one space or multiple space on the left or right of the word. I need to store it that way.
This field has Unique attribute. but i attempt to insert the word with spacing on the left it works fine. but when i attempt to insert the word with spacing on the right it trims off all the spacing from the right of the word.
So i am thinking of adding a special character to the right of the word after the spacing. but iam hoping there is a better solution for this issue. | 0 |
11,087,685 | 06/18/2012 17:08:22 | 1,353,070 | 04/24/2012 07:15:39 | 1 | 0 | Do we need paging Concept if we have more RAM size.....? | <html>
<body>
<p>`We use paging concept for memory virtualization concept right...?
If Have More RAM Size(About 60Gb it will not be there but if we have) Then do we need to use the paging concept for improving the performance....?`</p>
</body>
</html> | operating-system | paging | null | null | null | 06/18/2012 17:19:07 | off topic | Do we need paging Concept if we have more RAM size.....?
===
<html>
<body>
<p>`We use paging concept for memory virtualization concept right...?
If Have More RAM Size(About 60Gb it will not be there but if we have) Then do we need to use the paging concept for improving the performance....?`</p>
</body>
</html> | 2 |
936,735 | 06/01/2009 20:54:03 | 93,416 | 04/20/2009 20:31:26 | 25 | 1 | Updates to Records not allowed - Write Conflict | This stems from a previous question I asked - about a write conflict with a form, but the problem seems to be originating from the fact that I can update existing records in a linked table provided by one System DSN, but not another linked table provided by another DSN (different database) - allowing me to enter records at first, but then preventing me from making any changes to the records as if another user has changed the data before me. There are no check constraints defined on the server for default values, no triggers, no views, no other users accessing the same table.
Both DSNs are set up IDENTICAL except for the default database they open - the first opening gtdata_test, while the second one opens instkeeper_test. Both databases on the SQL Server instance are owned by me, I am the only logged in user.
I have tested this, and this problem occurs at the table level (no VBA in the program written, nothing) with manual updates.
In case it helps, I will include the CREATE statements for the good table, and for the affected tables below it. I hope someone can help me, as I am fresh out of ideas.
*Code to create Supplier_Master table in gtdata_test*:
USE [gtdata_test]
GO
/****** Object: Table [dbo].[Supplier_Master] Script Date: 05/27/2009 15:58:17 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Supplier_Master](
[Supplier_Code] [nvarchar](50) NOT NULL,
[Supplier_Master_Name] [nvarchar](50) NULL,
[Salutation] [nvarchar](50) NULL,
[Contact] [nvarchar](50) NULL,
[Phone] [nvarchar](50) NULL,
[Fax] [nvarchar](50) NULL,
[EMail] [nvarchar](50) NULL,
[Address] [nvarchar](50) NULL,
[City] [nvarchar](50) NULL,
[State] [nvarchar](50) NULL,
[Zip] [nvarchar](50) NULL,
[Country] [nvarchar](50) NULL,
[Last_Review] [datetime] NULL,
[Last_Rating] [datetime] NULL,
[Last_Received] [datetime] NULL,
[Last_Reject] [datetime] NULL,
[Enabled] [int] NULL,
[User1] [nvarchar](50) NULL,
[User2] [nvarchar](50) NULL,
[SupType] [nvarchar](50) NULL,
CONSTRAINT [Supplier_Master$PrimaryKey] PRIMARY KEY CLUSTERED
(
[Supplier_Code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Address$disallow_zero_length] CHECK ((len([Address])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Address$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$City$disallow_zero_length] CHECK ((len([City])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$City$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Contact$disallow_zero_length] CHECK ((len([Contact])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Contact$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Country$disallow_zero_length] CHECK ((len([Country])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Country$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$EMail$disallow_zero_length] CHECK ((len([EMail])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$EMail$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Fax$disallow_zero_length] CHECK ((len([Fax])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Fax$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Phone$disallow_zero_length] CHECK ((len([Phone])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Phone$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Salutation$disallow_zero_length] CHECK ((len([Salutation])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Salutation$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$State$disallow_zero_length] CHECK ((len([State])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$State$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Supplier_Code$disallow_zero_length] CHECK ((len([Supplier_Code])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Supplier_Code$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Supplier_Master_Name$disallow_zero_length] CHECK ((len([Supplier_Master_Name])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Supplier_Master_Name$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$SupType$disallow_zero_length] CHECK ((len([SupType])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$SupType$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$User1$disallow_zero_length] CHECK ((len([User1])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$User1$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$User2$disallow_zero_length] CHECK ((len([User2])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$User2$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Zip$disallow_zero_length] CHECK ((len([Zip])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Zip$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] ADD DEFAULT ((0)) FOR [Enabled]
GO
*Code to create tblSupplierInfo in instkeeper_test*:
USE [instkeeper_test]
GO
/****** Object: Table [dbo].[tblSupplierInfo] Script Date: 05/27/2009 15:57:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tblSupplierInfo](
[strSupplierID] [nvarchar](50) NOT NULL,
[bolSupAltShipAddyRep] [bit] NULL,
[bolSupAltShipAddyCal] [bit] NULL,
[bolSupInsistNet30] [bit] NULL,
[bolRMARequireRepair] [bit] NULL,
[bolRMARequireCalibration] [bit] NULL,
[bolSupShipOrCourier] [bit] NULL,
[bolSupRequireMSDS] [bit] NULL,
[bolSupBlanketPO] [bit] NULL,
[bolSupRequirePricing] [bit] NULL,
[bolSupBlankPricing] [bit] NULL,
[bolSupFaxPOSend] [bit] NULL,
[bolAdditionalPaperworkRepair] [bit] NULL,
[bolAdditionalPaperworkCalibration] [bit] NULL,
[strRMARepairWordage] [nvarchar](100) NULL,
[strRMACalibrationWordage] [nvarchar](100) NULL,
[intBlanketPO] [int] NULL,
[bolUseFedExNumber] [bit] NULL,
[strFedExNumber] [nvarchar](150) NULL,
[bolUseUPSNumber] [bit] NULL,
[strUPSNumber] [nvarchar](150) NULL,
[bolSupA2LAAccredited] [bit] NULL,
[bolSupFreightAllow] [bit] NULL,
[bolSupFreightOnly] [bit] NULL,
[bolSupUseMiscNum] [bit] NULL,
[strSupMiscFreightNum] [nvarchar](150) NULL,
CONSTRAINT [tblSupplierInfo$PrimaryKey] PRIMARY KEY CLUSTERED
(
[strSupplierID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
*Code to create tblSupplierNote in instkeeper_test*:
USE [instkeeper_test]
GO
/****** Object: Table [dbo].[tblSupplierNote] Script Date: 06/01/2009 12:34:28 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tblSupplierNote](
[intSupNoteID] [int] IDENTITY(1,1) NOT NULL,
[strSupplierID] [nvarchar](50) NULL,
[datDateNoteEntered] [datetime] NULL,
[datTimeNoteEntered] [datetime] NULL,
[strNoteBy] [nvarchar](255) NULL,
[memSupNote] [nvarchar](max) NULL,
CONSTRAINT [tblSupplierNote$PrimaryKey] PRIMARY KEY CLUSTERED
(
[intSupNoteID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tblSupplierNote] WITH CHECK ADD CONSTRAINT [tblSupplierNote$tblSupplierInfotblSupplierNote] FOREIGN KEY([strSupplierID])
REFERENCES [dbo].[tblSupplierInfo] ([strSupplierID])
ON UPDATE CASCADE
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[tblSupplierNote] CHECK CONSTRAINT [tblSupplierNote$tblSupplierInfotblSupplierNote]
GO
Just to overview - any table I pull into the application I am developing using the first DSN are read/write-able, records can be created, removed, and updated without any problem. With the second DSN, any table I pull into the application can be written to ONCE. Any further changes are lost, and a Write Conflict dialog box appears whenever data is updated in the table in datasheet view.
Software I am using:
- Microsoft Access 2003
- SQL Server Express 2008
- Windows XP Professional SP3 | ms-access | sql-server-2008-express | null | null | null | null | open | Updates to Records not allowed - Write Conflict
===
This stems from a previous question I asked - about a write conflict with a form, but the problem seems to be originating from the fact that I can update existing records in a linked table provided by one System DSN, but not another linked table provided by another DSN (different database) - allowing me to enter records at first, but then preventing me from making any changes to the records as if another user has changed the data before me. There are no check constraints defined on the server for default values, no triggers, no views, no other users accessing the same table.
Both DSNs are set up IDENTICAL except for the default database they open - the first opening gtdata_test, while the second one opens instkeeper_test. Both databases on the SQL Server instance are owned by me, I am the only logged in user.
I have tested this, and this problem occurs at the table level (no VBA in the program written, nothing) with manual updates.
In case it helps, I will include the CREATE statements for the good table, and for the affected tables below it. I hope someone can help me, as I am fresh out of ideas.
*Code to create Supplier_Master table in gtdata_test*:
USE [gtdata_test]
GO
/****** Object: Table [dbo].[Supplier_Master] Script Date: 05/27/2009 15:58:17 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Supplier_Master](
[Supplier_Code] [nvarchar](50) NOT NULL,
[Supplier_Master_Name] [nvarchar](50) NULL,
[Salutation] [nvarchar](50) NULL,
[Contact] [nvarchar](50) NULL,
[Phone] [nvarchar](50) NULL,
[Fax] [nvarchar](50) NULL,
[EMail] [nvarchar](50) NULL,
[Address] [nvarchar](50) NULL,
[City] [nvarchar](50) NULL,
[State] [nvarchar](50) NULL,
[Zip] [nvarchar](50) NULL,
[Country] [nvarchar](50) NULL,
[Last_Review] [datetime] NULL,
[Last_Rating] [datetime] NULL,
[Last_Received] [datetime] NULL,
[Last_Reject] [datetime] NULL,
[Enabled] [int] NULL,
[User1] [nvarchar](50) NULL,
[User2] [nvarchar](50) NULL,
[SupType] [nvarchar](50) NULL,
CONSTRAINT [Supplier_Master$PrimaryKey] PRIMARY KEY CLUSTERED
(
[Supplier_Code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Address$disallow_zero_length] CHECK ((len([Address])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Address$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$City$disallow_zero_length] CHECK ((len([City])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$City$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Contact$disallow_zero_length] CHECK ((len([Contact])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Contact$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Country$disallow_zero_length] CHECK ((len([Country])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Country$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$EMail$disallow_zero_length] CHECK ((len([EMail])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$EMail$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Fax$disallow_zero_length] CHECK ((len([Fax])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Fax$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Phone$disallow_zero_length] CHECK ((len([Phone])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Phone$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Salutation$disallow_zero_length] CHECK ((len([Salutation])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Salutation$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$State$disallow_zero_length] CHECK ((len([State])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$State$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Supplier_Code$disallow_zero_length] CHECK ((len([Supplier_Code])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Supplier_Code$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Supplier_Master_Name$disallow_zero_length] CHECK ((len([Supplier_Master_Name])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Supplier_Master_Name$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$SupType$disallow_zero_length] CHECK ((len([SupType])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$SupType$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$User1$disallow_zero_length] CHECK ((len([User1])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$User1$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$User2$disallow_zero_length] CHECK ((len([User2])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$User2$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] WITH NOCHECK ADD CONSTRAINT [SSMA_CC$Supplier_Master$Zip$disallow_zero_length] CHECK ((len([Zip])>(0)))
GO
ALTER TABLE [dbo].[Supplier_Master] CHECK CONSTRAINT [SSMA_CC$Supplier_Master$Zip$disallow_zero_length]
GO
ALTER TABLE [dbo].[Supplier_Master] ADD DEFAULT ((0)) FOR [Enabled]
GO
*Code to create tblSupplierInfo in instkeeper_test*:
USE [instkeeper_test]
GO
/****** Object: Table [dbo].[tblSupplierInfo] Script Date: 05/27/2009 15:57:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tblSupplierInfo](
[strSupplierID] [nvarchar](50) NOT NULL,
[bolSupAltShipAddyRep] [bit] NULL,
[bolSupAltShipAddyCal] [bit] NULL,
[bolSupInsistNet30] [bit] NULL,
[bolRMARequireRepair] [bit] NULL,
[bolRMARequireCalibration] [bit] NULL,
[bolSupShipOrCourier] [bit] NULL,
[bolSupRequireMSDS] [bit] NULL,
[bolSupBlanketPO] [bit] NULL,
[bolSupRequirePricing] [bit] NULL,
[bolSupBlankPricing] [bit] NULL,
[bolSupFaxPOSend] [bit] NULL,
[bolAdditionalPaperworkRepair] [bit] NULL,
[bolAdditionalPaperworkCalibration] [bit] NULL,
[strRMARepairWordage] [nvarchar](100) NULL,
[strRMACalibrationWordage] [nvarchar](100) NULL,
[intBlanketPO] [int] NULL,
[bolUseFedExNumber] [bit] NULL,
[strFedExNumber] [nvarchar](150) NULL,
[bolUseUPSNumber] [bit] NULL,
[strUPSNumber] [nvarchar](150) NULL,
[bolSupA2LAAccredited] [bit] NULL,
[bolSupFreightAllow] [bit] NULL,
[bolSupFreightOnly] [bit] NULL,
[bolSupUseMiscNum] [bit] NULL,
[strSupMiscFreightNum] [nvarchar](150) NULL,
CONSTRAINT [tblSupplierInfo$PrimaryKey] PRIMARY KEY CLUSTERED
(
[strSupplierID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
*Code to create tblSupplierNote in instkeeper_test*:
USE [instkeeper_test]
GO
/****** Object: Table [dbo].[tblSupplierNote] Script Date: 06/01/2009 12:34:28 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tblSupplierNote](
[intSupNoteID] [int] IDENTITY(1,1) NOT NULL,
[strSupplierID] [nvarchar](50) NULL,
[datDateNoteEntered] [datetime] NULL,
[datTimeNoteEntered] [datetime] NULL,
[strNoteBy] [nvarchar](255) NULL,
[memSupNote] [nvarchar](max) NULL,
CONSTRAINT [tblSupplierNote$PrimaryKey] PRIMARY KEY CLUSTERED
(
[intSupNoteID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tblSupplierNote] WITH CHECK ADD CONSTRAINT [tblSupplierNote$tblSupplierInfotblSupplierNote] FOREIGN KEY([strSupplierID])
REFERENCES [dbo].[tblSupplierInfo] ([strSupplierID])
ON UPDATE CASCADE
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[tblSupplierNote] CHECK CONSTRAINT [tblSupplierNote$tblSupplierInfotblSupplierNote]
GO
Just to overview - any table I pull into the application I am developing using the first DSN are read/write-able, records can be created, removed, and updated without any problem. With the second DSN, any table I pull into the application can be written to ONCE. Any further changes are lost, and a Write Conflict dialog box appears whenever data is updated in the table in datasheet view.
Software I am using:
- Microsoft Access 2003
- SQL Server Express 2008
- Windows XP Professional SP3 | 0 |
8,772,309 | 01/07/2012 19:14:53 | 532,501 | 12/06/2010 15:39:26 | 1 | 0 | C++/CLI and Compiler Choice | Does Visual Studio produce only C++/CLI? I was told to avoid C++/CLI and the Ms compiler like plague.
I'd like to learn how to program platform independent software, so what 'true c++' compiler would you recommend? (Since from what I've gathered so far it seems that C++/CLI would bind me to Windows with it's dependence on some Windows libraries)
Thanks in advance. | c++-cli | platform | null | null | null | 01/08/2012 23:33:58 | not constructive | C++/CLI and Compiler Choice
===
Does Visual Studio produce only C++/CLI? I was told to avoid C++/CLI and the Ms compiler like plague.
I'd like to learn how to program platform independent software, so what 'true c++' compiler would you recommend? (Since from what I've gathered so far it seems that C++/CLI would bind me to Windows with it's dependence on some Windows libraries)
Thanks in advance. | 4 |
9,556,175 | 03/04/2012 15:33:49 | 349,853 | 05/25/2010 11:47:41 | 339 | 12 | Blocking all incoming sms expect for one on Android | I am wondering if there is an application on android that can help me block all incoming sms expect for one number.This number is the sender id which can be a number or a name. | java | android | qt | null | null | 03/04/2012 18:11:55 | off topic | Blocking all incoming sms expect for one on Android
===
I am wondering if there is an application on android that can help me block all incoming sms expect for one number.This number is the sender id which can be a number or a name. | 2 |
2,074,145 | 01/15/2010 19:19:35 | 251,807 | 01/15/2010 19:19:35 | 1 | 0 | Clasification Tree Plug-in Algorithm for SQL Server 2008 | I am facing a Data Mining problem and I'm forced to use MSSQL Server with Analysis Server. I have to implement CHAID algorithm in a way that once It is done, it'll be included in the Analysis Services available set of algorithms.
I want to use SQL Server Data Mining Managed Plug In. So I'm programming with C#. The documentation I have available is a tutorial that shows what methods and interfaces have to be overridden in order to develop a clustering algorithm. What I need is the equivalent sample or tutorial for a Clasification Tree algorithm.
Can anyone help me on that? or is there anyone with some expirience developing managed plug ins for analysis services?
Thanks. | c# | sql-server-2008 | data-mining | null | null | null | open | Clasification Tree Plug-in Algorithm for SQL Server 2008
===
I am facing a Data Mining problem and I'm forced to use MSSQL Server with Analysis Server. I have to implement CHAID algorithm in a way that once It is done, it'll be included in the Analysis Services available set of algorithms.
I want to use SQL Server Data Mining Managed Plug In. So I'm programming with C#. The documentation I have available is a tutorial that shows what methods and interfaces have to be overridden in order to develop a clustering algorithm. What I need is the equivalent sample or tutorial for a Clasification Tree algorithm.
Can anyone help me on that? or is there anyone with some expirience developing managed plug ins for analysis services?
Thanks. | 0 |
2,815,945 | 05/12/2010 03:24:53 | 231,002 | 12/14/2009 04:42:27 | 173 | 1 | Compile error when calling ToList() when accessing many to many with Linq To Entities | I can't figure out what I am doing wrong. I have the following method:
public IList<WObject> GetRelationshipMembers(int relId)
{
var members = from r in _container.ObjectRelationships
where r.Id == relId
select r.WObjects;
return members.ToList<WObject>();
}
This returns the following error:
Instance argument: cannot convert from 'System.Linq.IQueryable<System.Data.Objects.DataClasses.EntityCollection<Project.DomainModel.Entities.WObject>>' to 'System.Collections.Generic.IEnumerable<Project.DomainModel.Entities.WObject>'
How can I convert the EntityCollection to a list without lazy loading? | linq | c# | linq-to-entities | entity-framework | null | null | open | Compile error when calling ToList() when accessing many to many with Linq To Entities
===
I can't figure out what I am doing wrong. I have the following method:
public IList<WObject> GetRelationshipMembers(int relId)
{
var members = from r in _container.ObjectRelationships
where r.Id == relId
select r.WObjects;
return members.ToList<WObject>();
}
This returns the following error:
Instance argument: cannot convert from 'System.Linq.IQueryable<System.Data.Objects.DataClasses.EntityCollection<Project.DomainModel.Entities.WObject>>' to 'System.Collections.Generic.IEnumerable<Project.DomainModel.Entities.WObject>'
How can I convert the EntityCollection to a list without lazy loading? | 0 |
9,004,096 | 01/25/2012 14:13:33 | 1,058,077 | 11/21/2011 15:32:16 | 11 | 0 | Magento not taking new database details | Just moved a magento installation to a local server so I can do some work on it.
Changed my DB details in /app/etc/local.xml
Cleared cache and session by deleting the /var/cache/* and /var/session/*
Magento still throwing an error saying it can't connect to the database using theolduser@localhost.
This is driving me insane. What might I be missing. | php | mysql | database | magento | null | 02/01/2012 17:04:16 | not a real question | Magento not taking new database details
===
Just moved a magento installation to a local server so I can do some work on it.
Changed my DB details in /app/etc/local.xml
Cleared cache and session by deleting the /var/cache/* and /var/session/*
Magento still throwing an error saying it can't connect to the database using theolduser@localhost.
This is driving me insane. What might I be missing. | 1 |
6,535,934 | 06/30/2011 13:59:03 | 46,914 | 12/17/2008 03:40:18 | 13,304 | 415 | Is an ID allowed to be empty in an HTML tag? | Is the ID attribute on an HTML element allowed to be empty?
<div id=""></div>
I'm using a template where the ID of the element is set by a variable which may not always have a value and I'm wondering if this could cause any unforeseen problems. | html | empty | html-attributes | null | null | null | open | Is an ID allowed to be empty in an HTML tag?
===
Is the ID attribute on an HTML element allowed to be empty?
<div id=""></div>
I'm using a template where the ID of the element is set by a variable which may not always have a value and I'm wondering if this could cause any unforeseen problems. | 0 |
6,416,084 | 06/20/2011 19:03:37 | 441,935 | 09/08/2010 00:39:21 | 108 | 5 | how to pass a list between views in django | I have a list in one view that I would like to pass to another view to be parsed.
This is what I currently have.
The views:
def view1(request):
if request.method=='POST':
list = request.POST.values()
HttpResponseRedirect('/urls/'+ str(list))
def view2(request, *list):
#do something with list
the urls:
urlpatterns = patterns('',
url(r'^urls/$', views.view1),
url(r'^urls/(?P<list>[-/\w]+)$', views.view2),
)
so the questions are:
1. how do I form the url regex to recognize the list
2. how do I concatenate the list with the rest of the url in the HttpResponseRedirect so that it will read
3. how do i pass the list in the second view (I vaguely remember using * last time I did this but I couldn't find any useful reference material) | python | django | null | null | null | null | open | how to pass a list between views in django
===
I have a list in one view that I would like to pass to another view to be parsed.
This is what I currently have.
The views:
def view1(request):
if request.method=='POST':
list = request.POST.values()
HttpResponseRedirect('/urls/'+ str(list))
def view2(request, *list):
#do something with list
the urls:
urlpatterns = patterns('',
url(r'^urls/$', views.view1),
url(r'^urls/(?P<list>[-/\w]+)$', views.view2),
)
so the questions are:
1. how do I form the url regex to recognize the list
2. how do I concatenate the list with the rest of the url in the HttpResponseRedirect so that it will read
3. how do i pass the list in the second view (I vaguely remember using * last time I did this but I couldn't find any useful reference material) | 0 |
7,728,799 | 10/11/2011 15:45:38 | 340,464 | 05/13/2010 16:07:05 | 1 | 0 | Mailchimp API (v1.3): addresses added with listSubscribe() don't appear in dashboard | I'm using Mailchimp's API (v1.3) to add email addresses to a subscriber list on one of our sites. Obviously, I'm using listSubscribe() and everything is working fine, for the most part (read: API call returns true, all of the data I'm sending to Mailchimp gets added/updated correctly).
The problem, however, is that whenever a new address is added, the things that are normally supposed to happen (in particular: email notifications to list manager, addresses showing up in the dashboard list status stream) aren't happening.
I've looked around for quite a bit and haven't found anyone with the same issue. Any ideas? | api | mailchimp | null | null | null | null | open | Mailchimp API (v1.3): addresses added with listSubscribe() don't appear in dashboard
===
I'm using Mailchimp's API (v1.3) to add email addresses to a subscriber list on one of our sites. Obviously, I'm using listSubscribe() and everything is working fine, for the most part (read: API call returns true, all of the data I'm sending to Mailchimp gets added/updated correctly).
The problem, however, is that whenever a new address is added, the things that are normally supposed to happen (in particular: email notifications to list manager, addresses showing up in the dashboard list status stream) aren't happening.
I've looked around for quite a bit and haven't found anyone with the same issue. Any ideas? | 0 |
11,330,543 | 07/04/2012 13:57:26 | 1,501,756 | 07/04/2012 13:48:49 | 1 | 0 | google places not working well when using type option | when i try to use google places and mark the url type option parameter as food, i get many results in most of them the type is establishment, i tried that in many places around the world, and the result is the same.
here is one example:
https://maps.googleapis.com/maps/api/place/search/xml?location=40.759611,-73.982105&radius=500&type=food&sensor=false&key=mymey
(need to add the key)
thank you for your time. | google-places-api | null | null | null | null | 07/05/2012 15:19:04 | not a real question | google places not working well when using type option
===
when i try to use google places and mark the url type option parameter as food, i get many results in most of them the type is establishment, i tried that in many places around the world, and the result is the same.
here is one example:
https://maps.googleapis.com/maps/api/place/search/xml?location=40.759611,-73.982105&radius=500&type=food&sensor=false&key=mymey
(need to add the key)
thank you for your time. | 1 |
4,190,134 | 11/16/2010 00:20:07 | 458,960 | 09/26/2010 21:45:36 | 501 | 0 | Syntax of a return statement in Java | This is in one of my practice exams.
return search(p,key,0,p.length-1) !=null;
How would this look with if statements? | java | syntax | return-value | null | null | null | open | Syntax of a return statement in Java
===
This is in one of my practice exams.
return search(p,key,0,p.length-1) !=null;
How would this look with if statements? | 0 |
10,468,903 | 05/06/2012 07:23:30 | 1,377,738 | 05/06/2012 07:14:30 | 1 | 0 | RegEx for <title> with leading, trailing, linebreak | Most website I can parse its title easily with RegEx "<title>(.*)</title>" or "<title>\s*(.+?)\s*</title>". However some sites have a bit different formatting, like http://www.youtube.com (see below). The expression above does not work. Any help catching this kind of format and any other HTML formats?
Thanks
-Tim.
<title>
YouTube - Broadcast Yourself.
</title>
| regex | null | null | null | null | null | open | RegEx for <title> with leading, trailing, linebreak
===
Most website I can parse its title easily with RegEx "<title>(.*)</title>" or "<title>\s*(.+?)\s*</title>". However some sites have a bit different formatting, like http://www.youtube.com (see below). The expression above does not work. Any help catching this kind of format and any other HTML formats?
Thanks
-Tim.
<title>
YouTube - Broadcast Yourself.
</title>
| 0 |
404,735 | 01/01/2009 08:44:51 | 50,477 | 12/31/2008 12:22:50 | 39 | 3 | Who doesn't trust a language whose sytax doesn't terminate with a semicolon? | A GENERAL question to programmers about how they feel about languages that terminate with a semicolon vs languages that don't (Ruby). | ruby | semicolon | terminate | null | null | 01/02/2009 04:58:40 | not constructive | Who doesn't trust a language whose sytax doesn't terminate with a semicolon?
===
A GENERAL question to programmers about how they feel about languages that terminate with a semicolon vs languages that don't (Ruby). | 4 |
10,467,556 | 05/06/2012 02:06:36 | 1,349,600 | 04/22/2012 13:59:56 | 1 | 0 | matplotlib installation in ubuntu 11.04 | I am new to programming. I am trying to install matplotlib in ubuntu 11.04. I want to plot simple graphs between 2 arrays. What do I need to type in ubuntu terminal to install matplotlib. | python | ubuntu | matplotlib | null | null | 05/07/2012 11:49:41 | off topic | matplotlib installation in ubuntu 11.04
===
I am new to programming. I am trying to install matplotlib in ubuntu 11.04. I want to plot simple graphs between 2 arrays. What do I need to type in ubuntu terminal to install matplotlib. | 2 |
10,062,857 | 04/08/2012 12:41:25 | 1,131,467 | 01/05/2012 06:10:26 | 2,039 | 82 | Algorithm: Compressing symbols into bitstrings by expected frequencies? | I have a table of 1 million symbols and their expected frequency.
I would like to compress sequences of these symbols by assigning each symbol a unique (and prefix unique) variable length bit string, and then concatenating these together to represent the sequence.
I would like to assign these bitstrings such that the expected bit length of an encoded sequence is minimized.
For example if the symbols and expected frequencies were:
foo 0.5
bar 0.25
baz 0.25
Than one of the best encodings would be:
foo 0
bar 10
baz 11
So "foobarbazfoo" translates to 010110.
By what algorithm can I translate the table of expected frequencies into a best encoding scheme?
| algorithm | encoding | compression | null | null | null | open | Algorithm: Compressing symbols into bitstrings by expected frequencies?
===
I have a table of 1 million symbols and their expected frequency.
I would like to compress sequences of these symbols by assigning each symbol a unique (and prefix unique) variable length bit string, and then concatenating these together to represent the sequence.
I would like to assign these bitstrings such that the expected bit length of an encoded sequence is minimized.
For example if the symbols and expected frequencies were:
foo 0.5
bar 0.25
baz 0.25
Than one of the best encodings would be:
foo 0
bar 10
baz 11
So "foobarbazfoo" translates to 010110.
By what algorithm can I translate the table of expected frequencies into a best encoding scheme?
| 0 |
8,319,262 | 11/29/2011 23:30:59 | 1,004,143 | 10/19/2011 22:36:16 | 13 | 0 | C Programming - Command Line Arg - Trying to take an IP Address | Our assignment is to have a server-client model....
We're supposed to check for a command line arg, if there is not one(argv = 1), we set up as a server. otherwise we use the argc[1] to setup the client socket...
It seems to run fine if I just use randomness for the argument, but when I try to put an address in, 1.2.3.4 for example, it doesnt give any output, just starts the program and does nothing.
I guess my question is what's the best way to handle a command line argument in the form of an IP address.
Here is my main function.
int main( int argc, char *argv[] )
{
printf("Whatthefuck");
printf("%i",argc);
if(argc==1)
{
printf("Welcome to the ZOG Virtual Probe Game! You have choosen to take the role of a server.");
printf("\nPlease wait for an opponent to connect.");
runServer();
}else if(argc==2)
{
printf("Welcome to the ZOG Virtual Probe Game! You are now connecting to specified IP.");
runClient(argv[1]);
}else
{
printf("You used an invalid command line argument. You can input an IP address or leave no command arg to host a game.");
}
}
| c | ip | argv | argc | null | null | open | C Programming - Command Line Arg - Trying to take an IP Address
===
Our assignment is to have a server-client model....
We're supposed to check for a command line arg, if there is not one(argv = 1), we set up as a server. otherwise we use the argc[1] to setup the client socket...
It seems to run fine if I just use randomness for the argument, but when I try to put an address in, 1.2.3.4 for example, it doesnt give any output, just starts the program and does nothing.
I guess my question is what's the best way to handle a command line argument in the form of an IP address.
Here is my main function.
int main( int argc, char *argv[] )
{
printf("Whatthefuck");
printf("%i",argc);
if(argc==1)
{
printf("Welcome to the ZOG Virtual Probe Game! You have choosen to take the role of a server.");
printf("\nPlease wait for an opponent to connect.");
runServer();
}else if(argc==2)
{
printf("Welcome to the ZOG Virtual Probe Game! You are now connecting to specified IP.");
runClient(argv[1]);
}else
{
printf("You used an invalid command line argument. You can input an IP address or leave no command arg to host a game.");
}
}
| 0 |
6,808,748 | 07/24/2011 18:22:31 | 860,441 | 07/24/2011 17:33:32 | 1 | 0 | WORDPRESS - PHP - STORELOCATOR - VIADAT | I've been racking my brains trying to sort this out but it doesn't seem to help.
I'm using this plugin http://www.viadat.com/store-locator/ and ive added a custom form field which is category.. But now i want to be able to search via that custom form field.
Below is the code:
$form="
<div id='sl_div'>
<form onsubmit='searchLocations(); return false;' id='searchForm' action=''>
<div class='left_map_sidebar'>
";
if (get_option('sl_use_city_search')!=1) {$form.=" colspan='2' ";}
$form.=" <input type='text' class='postcode' value='Enter Post Code' id='addressInput' size='50' />
";
/*if ($cs_array && get_option('sl_use_city_search')==1) {
$form.="
<td id='addressInput2_container'>";
$form.="<select Class='city' id='addressInput2' onchange='aI=document.getElementById(\"searchForm\").addressInput;if(this.value!=\"\"){oldvalue=aI.value;aI.value=this.value;}else{aI.value=oldvalue;}'>
<option value=''>--Search By City--</option>$cs_options</select></td>";
}*/
if ($category_array && get_option('sl_use_category_search')==1) {
$form.="
<td id='addressInput2_container'>";
$form.="<select Class='city'>
<option value=''>--Search By Category--</option>$category_options</select></td>";
}
/*if ($name_array && get_option('sl_use_name_search')==1) {
$form.="<td valign='top'><nobr> <b>OR</b> </nobr></td>";
}
if ($name_array && get_option('sl_use_name_search')==1) {
$form.="
<td valign='top'>";
$form.="<select id='addressInput3' onchange='aI=document.getElementById(\"searchForm\").addressInput;if(this.value!=\"\"){oldvalue=aI.value;aI.value=this.value;}else{aI.value=oldvalue;}'>
<option value=''>--Search By Name--</option>
$name_options
</select>";
$form.="<input name='addressInput3'><input type='hidden' value='1' name='name_search'></td>";
}*/
$sl_radius_label=get_option('sl_radius_label');
$form.="
</tr><tr>
".__("$sl_radius_label", $text_domain)."<br/>
<td id='radiusSelect_td' ";
if (get_option('sl_use_city_search')==0) {$form.="colspan='2'";}
$form.="><select id='radiusSelect'>$r_options</select>
</td>
<td valign='top' ";
if (get_option('sl_use_city_search')!=0) {$form.="colspan='2'";}
$form.=" >
<td valign='top' ";
if (get_option('sl_use_category_search')!=1) {$form.="colspan='3'";}
$form.=" >
<input type='submit' class='search_map_button' value='Search Locations' id='addressSubmit'/> </td>
'</div>'
<table width='100%' cellspacing='0px' cellpadding='0px' style='/*border:solid silver 1px*/'>
<tr>
<tr id='cm_mapTR'>
<td width='' valign='top' style='/*display:hidden; border-right:solid silver 1px*/' id='map_sidebar_td'> <div id='map_sidebar' style='width:$width$width_units;/* $height$height_units; */'> <div class='text_below_map'>$sl_instruction_message</div></div>
</td></tr>
</table></form> | php | wordpress | null | null | null | 07/24/2011 19:59:47 | not a real question | WORDPRESS - PHP - STORELOCATOR - VIADAT
===
I've been racking my brains trying to sort this out but it doesn't seem to help.
I'm using this plugin http://www.viadat.com/store-locator/ and ive added a custom form field which is category.. But now i want to be able to search via that custom form field.
Below is the code:
$form="
<div id='sl_div'>
<form onsubmit='searchLocations(); return false;' id='searchForm' action=''>
<div class='left_map_sidebar'>
";
if (get_option('sl_use_city_search')!=1) {$form.=" colspan='2' ";}
$form.=" <input type='text' class='postcode' value='Enter Post Code' id='addressInput' size='50' />
";
/*if ($cs_array && get_option('sl_use_city_search')==1) {
$form.="
<td id='addressInput2_container'>";
$form.="<select Class='city' id='addressInput2' onchange='aI=document.getElementById(\"searchForm\").addressInput;if(this.value!=\"\"){oldvalue=aI.value;aI.value=this.value;}else{aI.value=oldvalue;}'>
<option value=''>--Search By City--</option>$cs_options</select></td>";
}*/
if ($category_array && get_option('sl_use_category_search')==1) {
$form.="
<td id='addressInput2_container'>";
$form.="<select Class='city'>
<option value=''>--Search By Category--</option>$category_options</select></td>";
}
/*if ($name_array && get_option('sl_use_name_search')==1) {
$form.="<td valign='top'><nobr> <b>OR</b> </nobr></td>";
}
if ($name_array && get_option('sl_use_name_search')==1) {
$form.="
<td valign='top'>";
$form.="<select id='addressInput3' onchange='aI=document.getElementById(\"searchForm\").addressInput;if(this.value!=\"\"){oldvalue=aI.value;aI.value=this.value;}else{aI.value=oldvalue;}'>
<option value=''>--Search By Name--</option>
$name_options
</select>";
$form.="<input name='addressInput3'><input type='hidden' value='1' name='name_search'></td>";
}*/
$sl_radius_label=get_option('sl_radius_label');
$form.="
</tr><tr>
".__("$sl_radius_label", $text_domain)."<br/>
<td id='radiusSelect_td' ";
if (get_option('sl_use_city_search')==0) {$form.="colspan='2'";}
$form.="><select id='radiusSelect'>$r_options</select>
</td>
<td valign='top' ";
if (get_option('sl_use_city_search')!=0) {$form.="colspan='2'";}
$form.=" >
<td valign='top' ";
if (get_option('sl_use_category_search')!=1) {$form.="colspan='3'";}
$form.=" >
<input type='submit' class='search_map_button' value='Search Locations' id='addressSubmit'/> </td>
'</div>'
<table width='100%' cellspacing='0px' cellpadding='0px' style='/*border:solid silver 1px*/'>
<tr>
<tr id='cm_mapTR'>
<td width='' valign='top' style='/*display:hidden; border-right:solid silver 1px*/' id='map_sidebar_td'> <div id='map_sidebar' style='width:$width$width_units;/* $height$height_units; */'> <div class='text_below_map'>$sl_instruction_message</div></div>
</td></tr>
</table></form> | 1 |
610,699 | 03/04/2009 14:05:11 | 41,420 | 11/27/2008 16:42:26 | 193 | 17 | How to redirect to login page from a web service in an AJAX call? | I am using jQuery to call web service (*.asmx) methods. The web service uses FormsAuthentication to determine whether the calling user is authenticated. I am unable to return a redirect status code from the web method, e.g.
[WebMethod(EnableSession=true)]
public Dictionary<string, object> GetArchivedFiles(int pageSize, int page)
{
if(HttpContext.Current.User.Identity.IsAuthenticated && Session["UserId"] != null)
// Do some computing and return a Dictionary.
// Method will fall through here if the user is not authenticated.
HttpContext.Current.Response.StatusCode = (int) HttpStatusCode.Unauthorized;
return null;
}
The redirect does not work, I always get 500 Internal Server Error when doing this. I tried different codes. What would be the recommended way to go here? I need to read the redirect information from JavaScript and load the new page (or maybe display a login control AJAX way). | asp.net | ajax | redirect | null | null | null | open | How to redirect to login page from a web service in an AJAX call?
===
I am using jQuery to call web service (*.asmx) methods. The web service uses FormsAuthentication to determine whether the calling user is authenticated. I am unable to return a redirect status code from the web method, e.g.
[WebMethod(EnableSession=true)]
public Dictionary<string, object> GetArchivedFiles(int pageSize, int page)
{
if(HttpContext.Current.User.Identity.IsAuthenticated && Session["UserId"] != null)
// Do some computing and return a Dictionary.
// Method will fall through here if the user is not authenticated.
HttpContext.Current.Response.StatusCode = (int) HttpStatusCode.Unauthorized;
return null;
}
The redirect does not work, I always get 500 Internal Server Error when doing this. I tried different codes. What would be the recommended way to go here? I need to read the redirect information from JavaScript and load the new page (or maybe display a login control AJAX way). | 0 |
8,992,925 | 01/24/2012 19:34:30 | 1,074,077 | 11/30/2011 19:16:31 | 64 | 0 | ipa extension on iphone app | I'm new to iPhone/iPad development. I wonder why apple use ipa extension instead zip (which is file actually) for mobile apps.
Here is output from file app.ipa
app.ipa: Zip archive data, at least v1.0 to extract
Why don't they just use zip ? | iphone | null | null | null | null | 01/25/2012 18:01:37 | not a real question | ipa extension on iphone app
===
I'm new to iPhone/iPad development. I wonder why apple use ipa extension instead zip (which is file actually) for mobile apps.
Here is output from file app.ipa
app.ipa: Zip archive data, at least v1.0 to extract
Why don't they just use zip ? | 1 |
3,281,622 | 07/19/2010 13:48:44 | 6,291 | 09/13/2008 18:02:58 | 301 | 17 | When to include format inside file name for view templates | I have two identical controllers Submissions and Activities, both using the default resource mapping for routes. I want to use some RJS for the show method, both of which can be accessed as such as a GET request:
/submissions/1.js
/activities/1.js
I have show.rjs inside their respective view folders like so:
../submissions/show.rjs
../activities/show.rjs
Out of the box, this works for activities but not for submissions. To fix it, I had to rename show.rjs to show.js.rjs.
Why is this so? I have noticed a similar occurrence for HTML files but am not able to reproduce it. Is there some configuration apart from the routes that I am unaware of that is doing this?
Thanks. | ruby-on-rails | rjs | null | null | null | 01/20/2011 14:59:50 | too localized | When to include format inside file name for view templates
===
I have two identical controllers Submissions and Activities, both using the default resource mapping for routes. I want to use some RJS for the show method, both of which can be accessed as such as a GET request:
/submissions/1.js
/activities/1.js
I have show.rjs inside their respective view folders like so:
../submissions/show.rjs
../activities/show.rjs
Out of the box, this works for activities but not for submissions. To fix it, I had to rename show.rjs to show.js.rjs.
Why is this so? I have noticed a similar occurrence for HTML files but am not able to reproduce it. Is there some configuration apart from the routes that I am unaware of that is doing this?
Thanks. | 3 |
4,859,018 | 02/01/2011 04:51:30 | 59,494 | 01/27/2009 20:14:23 | 2,471 | 70 | What is a good C# PDF library for form-heavy webapp? |
I am in need of recommendations for a good C# .NET PDF library for a web application that will make heavy use of PDF forms. First, the library needs to have commercial licensing. Also, it needs to have robust features for merging data into PDF forms, extracting data, flattening form fields that have data, etc. If the library includes barcoding, that'd be great. | c# | pdf | forms | null | null | 07/24/2012 12:42:55 | not constructive | What is a good C# PDF library for form-heavy webapp?
===
I am in need of recommendations for a good C# .NET PDF library for a web application that will make heavy use of PDF forms. First, the library needs to have commercial licensing. Also, it needs to have robust features for merging data into PDF forms, extracting data, flattening form fields that have data, etc. If the library includes barcoding, that'd be great. | 4 |
2,502,270 | 03/23/2010 17:43:19 | 55,366 | 11/12/2008 20:15:20 | 148 | 5 | Put an AuiManager inside a AuiNotebook page. | Is it possible ho put an AuiManager inside an AuiNotebook page?
Have tested with a small sample code, but I only get a 'Segmentation fault'.
Is this possible to begin with? The reason why I want this is to split a notebook page in two parts and get the caption field and the maximize field in the top of each part of the two parts. A simple splitterwindow would work but does not look as good and cannot be maximized as easily. And nor does it have the caption field.
Sample code below.
import wx
import wx.aui
import wx.lib.inspection
class MyFrame(wx.Frame):
def __init__(self, *args, **kwargs):
wx.Frame.__init__(self, *args, **kwargs)
self.mgr = wx.aui.AuiManager(self)
self.left = wx.Panel(self, -1, size = (200, 150))
self.right = wx.aui.AuiNotebook(self, -1, size = (200, 150))
self.bottom = wx.Panel(self, -1, size = (200, 150))
self.mgr.AddPane(self.bottom, wx.aui.AuiPaneInfo().Bottom())
self.mgr.AddPane(self.left, wx.aui.AuiPaneInfo().Left().Layer(1))
self.mgr.AddPane(self.right, wx.aui.AuiPaneInfo().CenterPane())
self.new_panel('Panel 1')
self.mgr.Update()
self.Update()
def new_panel(self, nm):
pnl = wx.Window(self)
pnl.identifierTag = nm
self.right.AddPage(pnl, nm, select = True)
self.sizer = wx.BoxSizer()
self.sizer.Add(self.right, 1, wx.EXPAND)
self.SetSizer(self.sizer)
pnl.SetFocus()
mgr = wx.aui.AuiManager(pnl)
left = wx.Panel(self)
right = wx.Panel(self)
mgr.AddPane(left, wx.aui.AuiPaneInfo().Left())
mgr.AddPane(right, wx.aui.AuiPaneInfo().Right())
mgr.Update()
class MyApp(wx.App):
def OnInit(self):
frame = MyFrame(None, -1, '07_wxaui.py')
frame.Show()
self.SetTopWindow(frame)
return 1
if __name__ == "__main__":
app = MyApp(0)
wx.lib.inspection.InspectionTool().Show()
app.MainLoop() | python | wxpython | wxwidgets | null | null | null | open | Put an AuiManager inside a AuiNotebook page.
===
Is it possible ho put an AuiManager inside an AuiNotebook page?
Have tested with a small sample code, but I only get a 'Segmentation fault'.
Is this possible to begin with? The reason why I want this is to split a notebook page in two parts and get the caption field and the maximize field in the top of each part of the two parts. A simple splitterwindow would work but does not look as good and cannot be maximized as easily. And nor does it have the caption field.
Sample code below.
import wx
import wx.aui
import wx.lib.inspection
class MyFrame(wx.Frame):
def __init__(self, *args, **kwargs):
wx.Frame.__init__(self, *args, **kwargs)
self.mgr = wx.aui.AuiManager(self)
self.left = wx.Panel(self, -1, size = (200, 150))
self.right = wx.aui.AuiNotebook(self, -1, size = (200, 150))
self.bottom = wx.Panel(self, -1, size = (200, 150))
self.mgr.AddPane(self.bottom, wx.aui.AuiPaneInfo().Bottom())
self.mgr.AddPane(self.left, wx.aui.AuiPaneInfo().Left().Layer(1))
self.mgr.AddPane(self.right, wx.aui.AuiPaneInfo().CenterPane())
self.new_panel('Panel 1')
self.mgr.Update()
self.Update()
def new_panel(self, nm):
pnl = wx.Window(self)
pnl.identifierTag = nm
self.right.AddPage(pnl, nm, select = True)
self.sizer = wx.BoxSizer()
self.sizer.Add(self.right, 1, wx.EXPAND)
self.SetSizer(self.sizer)
pnl.SetFocus()
mgr = wx.aui.AuiManager(pnl)
left = wx.Panel(self)
right = wx.Panel(self)
mgr.AddPane(left, wx.aui.AuiPaneInfo().Left())
mgr.AddPane(right, wx.aui.AuiPaneInfo().Right())
mgr.Update()
class MyApp(wx.App):
def OnInit(self):
frame = MyFrame(None, -1, '07_wxaui.py')
frame.Show()
self.SetTopWindow(frame)
return 1
if __name__ == "__main__":
app = MyApp(0)
wx.lib.inspection.InspectionTool().Show()
app.MainLoop() | 0 |
7,950,956 | 10/31/2011 07:31:49 | 1,021,415 | 10/31/2011 04:58:32 | 1 | 0 | Stack based array in Objective-C declaration? | In Objective-C, I declare a C array like this:
>int length = 10;
>int a[length];
This does not cause any error in Xcode but other compliers like Visual Studio.
Please tell me how it works. Should I use it or use malloc/calloc instead?
| objective-c | arrays | stack-based | null | null | null | open | Stack based array in Objective-C declaration?
===
In Objective-C, I declare a C array like this:
>int length = 10;
>int a[length];
This does not cause any error in Xcode but other compliers like Visual Studio.
Please tell me how it works. Should I use it or use malloc/calloc instead?
| 0 |
7,549,013 | 09/25/2011 22:16:28 | 964,092 | 09/25/2011 21:54:11 | 1 | 0 | cannot REinstall VSTO 3 runtime after VSTO 4 is installed (hence office addins that need vsto3 wont work) | the background is I have a bog std win7 hp 32bit pc /kaspersky internet security with office 2k10 pro plus (electronic download if thats relevant) all genuine software kept patched fully to date
a couple of weeks ago i was looking for an outlook addin to update google tasks and tried one gogtasks which installed but failed to load (crash error) .. i tried many things to get this to work
vsto 3 was showing as installed as well as vsto 4 so i uninstalled vsto 3 but it would not reinstall
I then tried another product spinx outlook addin which had a more sophisticated delivery method, firstly checking for the vsto 3 install and attempting to install it (failed)
I then spent a couple of evenings googling solutions but after trying deleting residual vsto3 registry keys, reinstalling o2k7, deleting visual studio 2k8, i find it still impossible to install vsto 3 which it seems i need to be there for these outlook addins to run
I have pasted what logs i can see at the end and would be immensly greatful if anyone had any other suggestions i could try other than a complete rebuid which i am keen to avoid
many thx in advance
Component Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1 has failed to
install with the following error message:
"Fatal error during installation. "
The following components failed to install:
- Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1
See the setup log file located at 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\install.log' for
more information.
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and
value '3.1': true
Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Running checks for package '.NET Framework 3.5 SP1', phase BuildList
Reading value 'SP' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5'
Read integer value 1
Setting value '1 {int}' for property 'DotNet35SP'
The following properties have been set for package '.NET Framework 3.5 SP1':
Property: [DotNet35SP] = 1 {int}
Running checks for command 'DotNetFX35SP1\dotNetFx35setup.exe'
Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet35SP' and value '1': true
Result of checks for command 'DotNetFX35SP1\dotNetFx35setup.exe' is 'Bypass'
'.NET Framework 3.5 SP1' RunCheck result: No Install Needed
Running checks for package 'Microsoft Office 2007 Primary Interop Assemblies', phase BuildList
Running external check with
command 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\Office2007PIARedist\ComponentCheck.exe' and
parameters ''
Process exited with code 1
Setting value '1 {int}' for property 'PIAInstallAction'
The following properties have been set for package 'Microsoft Office 2007 Primary Interop
Assemblies':
Property: [PIAInstallAction] = 1 {int}
Running checks for command 'Office2007PIARedist\o2007pia.msi'
Result of running operator 'ValueNotEqualTo' on property 'PIAInstallAction' and value '0': true
Result of checks for command 'Office2007PIARedist\o2007pia.msi' is 'Bypass'
'Microsoft Office 2007 Primary Interop Assemblies' RunCheck result: No Install Needed
Running checks for package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack
1', phase BuildList
Reading value 'Install' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v9.0.21022'
Read integer value 0
Setting value '0 {int}' for property 'VSTORuntimeInstalled'
Reading value 'Update' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v3'
Unable to read registry value
Not setting value for property 'VSTORuntimeUpdateInstalled'
The following properties have been set for package 'Visual Studio Tools for the Office system
3.0 Runtime Service Pack 1':
Property: [VSTORuntimeInstalled] = 0 {int}
Running checks for command 'VSTOR30\vstor30.exe'
Result of running operator 'ValueGreaterThanEqualTo' on property 'VSTORuntimeInstalled' and
value '1': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'VSTOR30\vstor30.exe' is 'Install'
Running checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe'
Skipping ByPassIf because Property 'VSTORuntimeUpdateInstalled' was not defined
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe' is 'Install'
'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' RunCheck result: Install
Needed
EULA for components 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' was
accepted.
Copying files to temporary directory "C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\"
Downloading files to "C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\"
(25/09/2011 04:09:12) Downloading 'VSTOR30\vstor30.exe' from 'http://go.microsoft.com/fwlink/?
LinkId=95146' to 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\'
Download completed at 25/09/2011 04:09:13
Verifying file integrity of C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\VSTOR30\vstor30.exe
WinVerifyTrust returned 0
File trusted
(25/09/2011 04:09:13) Downloading 'VSTOR30\vstor30sp1-KB949258-x86.exe'
from 'http://go.microsoft.com/fwlink/?LinkId=120187'
to 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\'
Download completed at 25/09/2011 04:09:13
Verifying file integrity of C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\VSTOR30\vstor30sp1-
KB949258-x86.exe
WinVerifyTrust returned 0
File trusted
Running checks for package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack
1', phase BeforePackage
Reading value 'Install' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v9.0.21022'
Read integer value 0
Setting value '0 {int}' for property 'VSTORuntimeInstalled'
Reading value 'Update' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v3'
Unable to read registry value
Not setting value for property 'VSTORuntimeUpdateInstalled'
The following properties have been set for package 'Visual Studio Tools for the Office system
3.0 Runtime Service Pack 1':
Property: [VSTORuntimeInstalled] = 0 {int}
Running checks for command 'VSTOR30\vstor30.exe'
Result of running operator 'ValueGreaterThanEqualTo' on property 'VSTORuntimeInstalled' and
value '1': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'VSTOR30\vstor30.exe' is 'Install'
Running checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe'
Skipping ByPassIf because Property 'VSTORuntimeUpdateInstalled' was not defined
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe' is 'Install'
'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' RunCheck result: Install
Needed
Verifying file integrity of C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\VSTOR30\vstor30.exe
WinVerifyTrust returned 0
File trusted
Installing using command 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\VSTOR30\vstor30.exe'
and parameters ' /q:a /c:"install /q /l"'
Process exited with code 1603
Status of package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' after
install is 'InstallFailed'
Windows Installer installed the product. Product Name: Visual Studio Tools for the Office system
3.0 Runtime. Product Version: 9.0.21022. Product Language: 0. Manufacturer: Microsoft
Corporation. Installation success or error status: 1603.
| outlook | vsto | outlook-addin | office | null | 05/01/2012 22:52:28 | too localized | cannot REinstall VSTO 3 runtime after VSTO 4 is installed (hence office addins that need vsto3 wont work)
===
the background is I have a bog std win7 hp 32bit pc /kaspersky internet security with office 2k10 pro plus (electronic download if thats relevant) all genuine software kept patched fully to date
a couple of weeks ago i was looking for an outlook addin to update google tasks and tried one gogtasks which installed but failed to load (crash error) .. i tried many things to get this to work
vsto 3 was showing as installed as well as vsto 4 so i uninstalled vsto 3 but it would not reinstall
I then tried another product spinx outlook addin which had a more sophisticated delivery method, firstly checking for the vsto 3 install and attempting to install it (failed)
I then spent a couple of evenings googling solutions but after trying deleting residual vsto3 registry keys, reinstalling o2k7, deleting visual studio 2k8, i find it still impossible to install vsto 3 which it seems i need to be there for these outlook addins to run
I have pasted what logs i can see at the end and would be immensly greatful if anyone had any other suggestions i could try other than a complete rebuid which i am keen to avoid
many thx in advance
Component Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1 has failed to
install with the following error message:
"Fatal error during installation. "
The following components failed to install:
- Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1
See the setup log file located at 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\install.log' for
more information.
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and
value '3.1': true
Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Running checks for package '.NET Framework 3.5 SP1', phase BuildList
Reading value 'SP' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5'
Read integer value 1
Setting value '1 {int}' for property 'DotNet35SP'
The following properties have been set for package '.NET Framework 3.5 SP1':
Property: [DotNet35SP] = 1 {int}
Running checks for command 'DotNetFX35SP1\dotNetFx35setup.exe'
Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet35SP' and value '1': true
Result of checks for command 'DotNetFX35SP1\dotNetFx35setup.exe' is 'Bypass'
'.NET Framework 3.5 SP1' RunCheck result: No Install Needed
Running checks for package 'Microsoft Office 2007 Primary Interop Assemblies', phase BuildList
Running external check with
command 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\Office2007PIARedist\ComponentCheck.exe' and
parameters ''
Process exited with code 1
Setting value '1 {int}' for property 'PIAInstallAction'
The following properties have been set for package 'Microsoft Office 2007 Primary Interop
Assemblies':
Property: [PIAInstallAction] = 1 {int}
Running checks for command 'Office2007PIARedist\o2007pia.msi'
Result of running operator 'ValueNotEqualTo' on property 'PIAInstallAction' and value '0': true
Result of checks for command 'Office2007PIARedist\o2007pia.msi' is 'Bypass'
'Microsoft Office 2007 Primary Interop Assemblies' RunCheck result: No Install Needed
Running checks for package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack
1', phase BuildList
Reading value 'Install' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v9.0.21022'
Read integer value 0
Setting value '0 {int}' for property 'VSTORuntimeInstalled'
Reading value 'Update' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v3'
Unable to read registry value
Not setting value for property 'VSTORuntimeUpdateInstalled'
The following properties have been set for package 'Visual Studio Tools for the Office system
3.0 Runtime Service Pack 1':
Property: [VSTORuntimeInstalled] = 0 {int}
Running checks for command 'VSTOR30\vstor30.exe'
Result of running operator 'ValueGreaterThanEqualTo' on property 'VSTORuntimeInstalled' and
value '1': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'VSTOR30\vstor30.exe' is 'Install'
Running checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe'
Skipping ByPassIf because Property 'VSTORuntimeUpdateInstalled' was not defined
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe' is 'Install'
'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' RunCheck result: Install
Needed
EULA for components 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' was
accepted.
Copying files to temporary directory "C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\"
Downloading files to "C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\"
(25/09/2011 04:09:12) Downloading 'VSTOR30\vstor30.exe' from 'http://go.microsoft.com/fwlink/?
LinkId=95146' to 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\'
Download completed at 25/09/2011 04:09:13
Verifying file integrity of C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\VSTOR30\vstor30.exe
WinVerifyTrust returned 0
File trusted
(25/09/2011 04:09:13) Downloading 'VSTOR30\vstor30sp1-KB949258-x86.exe'
from 'http://go.microsoft.com/fwlink/?LinkId=120187'
to 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\'
Download completed at 25/09/2011 04:09:13
Verifying file integrity of C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\VSTOR30\vstor30sp1-
KB949258-x86.exe
WinVerifyTrust returned 0
File trusted
Running checks for package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack
1', phase BeforePackage
Reading value 'Install' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v9.0.21022'
Read integer value 0
Setting value '0 {int}' for property 'VSTORuntimeInstalled'
Reading value 'Update' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v3'
Unable to read registry value
Not setting value for property 'VSTORuntimeUpdateInstalled'
The following properties have been set for package 'Visual Studio Tools for the Office system
3.0 Runtime Service Pack 1':
Property: [VSTORuntimeInstalled] = 0 {int}
Running checks for command 'VSTOR30\vstor30.exe'
Result of running operator 'ValueGreaterThanEqualTo' on property 'VSTORuntimeInstalled' and
value '1': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'VSTOR30\vstor30.exe' is 'Install'
Running checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe'
Skipping ByPassIf because Property 'VSTORuntimeUpdateInstalled' was not defined
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe' is 'Install'
'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' RunCheck result: Install
Needed
Verifying file integrity of C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\VSTOR30\vstor30.exe
WinVerifyTrust returned 0
File trusted
Installing using command 'C:\Users\ian\AppData\Local\Temp\VSD20E8.tmp\VSTOR30\vstor30.exe'
and parameters ' /q:a /c:"install /q /l"'
Process exited with code 1603
Status of package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' after
install is 'InstallFailed'
Windows Installer installed the product. Product Name: Visual Studio Tools for the Office system
3.0 Runtime. Product Version: 9.0.21022. Product Language: 0. Manufacturer: Microsoft
Corporation. Installation success or error status: 1603.
| 3 |
2,964,248 | 06/03/2010 08:14:11 | 266,115 | 02/04/2010 11:10:36 | 469 | 33 | Optimal rotation of 3D model for 2D projection | I'm looking for a way to determine the optimal X/Y/Z rotation of a set of vertices for rendering (using the X/Y coordinates, ignoring Z) on a 2D canvas.
I've had a couple of ideas, one being pure brute-force involving performing a 3-dimensional loop ranging from 0..359 (either in steps of 1 or more, depending on results/speed requirements) on the set of vertices, measuring the difference between the min/max on both X/Y axis, storing the highest results/rotation pairs and using the most effective pair.
The second idea would be to determine the two points with the greatest distance between them in Euclidean distance, calculate the angle required to rotate the 'path' between these two points to lay along the X axis (again, we're ignoring the Z axis, so the depth within the result would not matter) and then repeating several times. The problem I can see with this is first by repeating it we may be overriding our previous rotation with a new rotation, and that the original/subsequent rotation may not neccesarily result in the greatest 2D area used. The second issue being if we use a single iteration, then the same problem occurs - the two points furthest apart may not have other poitns aligned along the same 'path', and as such we will probably not get an optimal rotation for a 2D project.
Using the second idea, perhaps using the first say 3 iterations, storing the required rotation angle, and averaging across the 3 would return a more accurate result, as it is taking into account not just a single rotation but the top 3 'pairs'.
Please, rip these ideas apart, give insight of your own. I'm intreaged to see what solutions you all may have, or algorithms unknown to me you may quote. | math | 3d | canvas | 2d | rotation | null | open | Optimal rotation of 3D model for 2D projection
===
I'm looking for a way to determine the optimal X/Y/Z rotation of a set of vertices for rendering (using the X/Y coordinates, ignoring Z) on a 2D canvas.
I've had a couple of ideas, one being pure brute-force involving performing a 3-dimensional loop ranging from 0..359 (either in steps of 1 or more, depending on results/speed requirements) on the set of vertices, measuring the difference between the min/max on both X/Y axis, storing the highest results/rotation pairs and using the most effective pair.
The second idea would be to determine the two points with the greatest distance between them in Euclidean distance, calculate the angle required to rotate the 'path' between these two points to lay along the X axis (again, we're ignoring the Z axis, so the depth within the result would not matter) and then repeating several times. The problem I can see with this is first by repeating it we may be overriding our previous rotation with a new rotation, and that the original/subsequent rotation may not neccesarily result in the greatest 2D area used. The second issue being if we use a single iteration, then the same problem occurs - the two points furthest apart may not have other poitns aligned along the same 'path', and as such we will probably not get an optimal rotation for a 2D project.
Using the second idea, perhaps using the first say 3 iterations, storing the required rotation angle, and averaging across the 3 would return a more accurate result, as it is taking into account not just a single rotation but the top 3 'pairs'.
Please, rip these ideas apart, give insight of your own. I'm intreaged to see what solutions you all may have, or algorithms unknown to me you may quote. | 0 |
11,711,702 | 07/29/2012 18:08:51 | 1,286,130 | 03/22/2012 14:01:36 | 47 | 1 | SecurityError: Error #2010: Local-with-filesystem SWF files are not permitted to use sockets | I have just tried this tutorial: http://rhuno.com/flashblog/2011/05/22/tutorial-socket-server-with-flash-and-node-js/
It's working all fine when I test it in CS6. But when I try to just run the .swf file, I get this error.
SecurityError: Error #2010: Local-with-filesystem SWF files are not permitted to use sockets.
at flash.net::Socket/internalConnect()
at flash.net::Socket/connect()
at flash.net::Socket()
at flash.net::XMLSocket()
at Stickform_fla::MainTimeline/doConnect()
anyone who can help me with this?
Thanks! | flash | sockets | null | null | null | null | open | SecurityError: Error #2010: Local-with-filesystem SWF files are not permitted to use sockets
===
I have just tried this tutorial: http://rhuno.com/flashblog/2011/05/22/tutorial-socket-server-with-flash-and-node-js/
It's working all fine when I test it in CS6. But when I try to just run the .swf file, I get this error.
SecurityError: Error #2010: Local-with-filesystem SWF files are not permitted to use sockets.
at flash.net::Socket/internalConnect()
at flash.net::Socket/connect()
at flash.net::Socket()
at flash.net::XMLSocket()
at Stickform_fla::MainTimeline/doConnect()
anyone who can help me with this?
Thanks! | 0 |
6,570,489 | 07/04/2011 10:54:07 | 827,973 | 07/04/2011 10:54:07 | 1 | 0 | coldfusion Rereplace function | I am using the following coldfuiosn REreplace function
<cfset variables.sAddress = #left(trim(REReplace(arguments.address, "[^-0-9a-zA-Z_/-/']", "", "ALL")),50)#/> where arguments.address is coming from the form.
I am using the rereplace function to remove the special characters , which is working fine on other pages , but in this case before using the rereplace function it is first converting the special characters into their html equivalent and then applying the rereplace function.
so if i pass 'test&test' as the arguments.address1, the result i am getting is 'testamptest'.
I have tried everything and searched a lot but i am going no where.
Please help. | coldfusion | null | null | null | null | null | open | coldfusion Rereplace function
===
I am using the following coldfuiosn REreplace function
<cfset variables.sAddress = #left(trim(REReplace(arguments.address, "[^-0-9a-zA-Z_/-/']", "", "ALL")),50)#/> where arguments.address is coming from the form.
I am using the rereplace function to remove the special characters , which is working fine on other pages , but in this case before using the rereplace function it is first converting the special characters into their html equivalent and then applying the rereplace function.
so if i pass 'test&test' as the arguments.address1, the result i am getting is 'testamptest'.
I have tried everything and searched a lot but i am going no where.
Please help. | 0 |
6,230,950 | 06/03/2011 18:08:16 | 565,968 | 01/06/2011 19:34:37 | 1,231 | 19 | linq insert: getting the row number | I have a table with the primary key as the identity column. I'm doing an insert with linq-to-sql and I was wondering if there's a way to return the ID of the row that was inserted and how we know for sure that the insert happened.
Thanks for your suggestions. | c# | linq | linq-to-sql | null | null | null | open | linq insert: getting the row number
===
I have a table with the primary key as the identity column. I'm doing an insert with linq-to-sql and I was wondering if there's a way to return the ID of the row that was inserted and how we know for sure that the insert happened.
Thanks for your suggestions. | 0 |
5,032,002 | 02/17/2011 16:57:35 | 434,218 | 08/29/2010 13:00:14 | 322 | 6 | Modify jQuery function to add onload | I have a page with several drop-down selectors. When an option is selected a matching piece of HTML is found and placed in the <div> immediately following the drop-down. When selection is made a function checks to make sure that not of the previously selected options is selected again. Here's what I have now:
$('.mySelect').bind('change', function(el) {
var _this = $(this),
newVal = filter.val();
$('select.mySelect:not([name=' + _this.attr('name') + ']) option[value=' + filter.data('oldVal') + ']').attr('disabled', false);
$('select.mySelect:not([name=' + _this.attr('name') + ']) option[value=' + newVal + ']').attr('disabled', true);
filter.data('oldVal', newVal);
// fetch div with the same id from external file
$(this).closest('tr').next().find('.addHTML').html($('.' + newVal).html());
});
<select name="select1" class="mySelect">
<option value="selectOne">Select one</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<div class="addHTML">
</div>
<select name="select2" class="mySelect">
<option value="selectOne">Select one</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<div class="addHTML">
</div>
I need to modify this function to:
1. fetch matching HTML and display based on selected options on page load and
2. disable options that have been selected.
I can load previously selected options in an array or list. What is the best way to accomplish this? | jquery | null | null | null | null | null | open | Modify jQuery function to add onload
===
I have a page with several drop-down selectors. When an option is selected a matching piece of HTML is found and placed in the <div> immediately following the drop-down. When selection is made a function checks to make sure that not of the previously selected options is selected again. Here's what I have now:
$('.mySelect').bind('change', function(el) {
var _this = $(this),
newVal = filter.val();
$('select.mySelect:not([name=' + _this.attr('name') + ']) option[value=' + filter.data('oldVal') + ']').attr('disabled', false);
$('select.mySelect:not([name=' + _this.attr('name') + ']) option[value=' + newVal + ']').attr('disabled', true);
filter.data('oldVal', newVal);
// fetch div with the same id from external file
$(this).closest('tr').next().find('.addHTML').html($('.' + newVal).html());
});
<select name="select1" class="mySelect">
<option value="selectOne">Select one</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<div class="addHTML">
</div>
<select name="select2" class="mySelect">
<option value="selectOne">Select one</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<div class="addHTML">
</div>
I need to modify this function to:
1. fetch matching HTML and display based on selected options on page load and
2. disable options that have been selected.
I can load previously selected options in an array or list. What is the best way to accomplish this? | 0 |
8,007,557 | 11/04/2011 10:03:12 | 885,798 | 08/09/2011 11:03:58 | 57 | 0 | selenium export file options php missing | I am using selenium for my php applicaiton, I am using php script to test, I am unable to find the option in file export file as php, I get java and other etc. Can anyone please help on this.
Thanks a lot
Max | selenium | null | null | null | null | null | open | selenium export file options php missing
===
I am using selenium for my php applicaiton, I am using php script to test, I am unable to find the option in file export file as php, I get java and other etc. Can anyone please help on this.
Thanks a lot
Max | 0 |
10,264,647 | 04/22/2012 02:11:34 | 1,349,022 | 04/22/2012 02:06:36 | 1 | 0 | Facebook deactivation doesn't work | I have been trying to deactivate my Facebook account since last week. When I click the "Deactivate your account" link on the security section, it doesn't work. I clicked many times but nothing happened. I tried on my friend's computer but didn't work. PLEASE HELP ME....... | facebook | deactivate | null | null | null | 04/22/2012 03:41:30 | off topic | Facebook deactivation doesn't work
===
I have been trying to deactivate my Facebook account since last week. When I click the "Deactivate your account" link on the security section, it doesn't work. I clicked many times but nothing happened. I tried on my friend's computer but didn't work. PLEASE HELP ME....... | 2 |
10,153,138 | 04/14/2012 11:12:50 | 1,328,639 | 04/12/2012 09:07:29 | 29 | 0 | nearest number as a list class | int targetnumber = 5;
I Wanna sort the list2 by nearest number Toplam to targetnumber
i.e :
list2.add(3,5,+,toplam = 8)
list2.add(3,5,-,toplam = -2)
list2.add(3,5,*,toplam = 15)
list2.add(3,5,/,toplam = 0)
The result is : 8, 0, -2, 15 (as a list class of course)
can you help ?
| c# | list | class | sorting | null | 04/15/2012 13:42:29 | not a real question | nearest number as a list class
===
int targetnumber = 5;
I Wanna sort the list2 by nearest number Toplam to targetnumber
i.e :
list2.add(3,5,+,toplam = 8)
list2.add(3,5,-,toplam = -2)
list2.add(3,5,*,toplam = 15)
list2.add(3,5,/,toplam = 0)
The result is : 8, 0, -2, 15 (as a list class of course)
can you help ?
| 1 |
6,314,403 | 06/11/2011 06:06:12 | 66,686 | 11/07/2008 21:58:32 | 7,409 | 375 | How do you avoid fixed resource | [Roy Fielding writes][1]
> A REST API must not define fixed
> resource names or hierarchies (an
> obvious coupling of client and
> server). Servers must have the freedom
> to control their own namespace.
> Instead, allow servers to instruct
> clients on how to construct
> appropriate URIs, such as is done in
> HTML forms and URI templates, by
> defining those instructions within
> media types and link relations.
How do you do this for system-to-system interfaces? Say the client wants to create an order in the server at http://my.server.org How is it supposed to learn that for creating an order it is supposed to use the url http://my.server.org/newOrder and not http://my.server.org/nO or anything else?
For a human interface (i.e. browser), I guess the server would provide some form of link (possibly in a `form` element) and the text around and in that link would tell a user which of the forms on that page is the correct one for creating an order (as supposed to creating a user or navigating to some search result)
What are the mechanics used for implementing this on the client side? And also: are they actually used or does the majority of people just hardwire the urls into the client?
[1]: http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven | rest | rest-client | null | null | null | null | open | How do you avoid fixed resource
===
[Roy Fielding writes][1]
> A REST API must not define fixed
> resource names or hierarchies (an
> obvious coupling of client and
> server). Servers must have the freedom
> to control their own namespace.
> Instead, allow servers to instruct
> clients on how to construct
> appropriate URIs, such as is done in
> HTML forms and URI templates, by
> defining those instructions within
> media types and link relations.
How do you do this for system-to-system interfaces? Say the client wants to create an order in the server at http://my.server.org How is it supposed to learn that for creating an order it is supposed to use the url http://my.server.org/newOrder and not http://my.server.org/nO or anything else?
For a human interface (i.e. browser), I guess the server would provide some form of link (possibly in a `form` element) and the text around and in that link would tell a user which of the forms on that page is the correct one for creating an order (as supposed to creating a user or navigating to some search result)
What are the mechanics used for implementing this on the client side? And also: are they actually used or does the majority of people just hardwire the urls into the client?
[1]: http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven | 0 |
11,268,792 | 06/29/2012 20:52:45 | 1,492,135 | 06/29/2012 20:41:49 | 1 | 0 | "mediastreamvalidator" reports "segment duration is not finite" error | I'm currently working on converting h.264 elementary stream(es) to transport stream(ts), and then stream the ts file to ipad using http live streaming. Now I've finished the conversion part, the generated ts file works well on VLC and windows media player, but it doesn't work for quicktime or safari. When I use ffmpeg to convert the same input h.264 file, the generated ts file works just fine using quicktime. So I know there is nothing wrong with the h.264 file's codec, there must be something wrong with my ts configuration and my conversion code.
I have used apple's "mediastreamvalidator" tool to validate my ts file, it reports error like: segment duration is not finite. According to apple document, this is an apple known bug, I've reported this bug, but still no reponse. So what does this "segment duration not finite" mean?
I will also attached my test sample files here:
This is the link for the ts file that generated by the conversion code, it doesn't play on quicktime:
http://www.datafilehost.com/download-d135a839.html
This is the link for the ts file that generated by ffmpeg (with the same input h.264 file), it plays well on quick time:
http://www.datafilehost.com/download-b03b9081.html
I really wish to understand this, then I can modify my esToTs conversion code. Can anyone see what's the problem with it? Thanks very much. | ios | video-streaming | null | null | null | null | open | "mediastreamvalidator" reports "segment duration is not finite" error
===
I'm currently working on converting h.264 elementary stream(es) to transport stream(ts), and then stream the ts file to ipad using http live streaming. Now I've finished the conversion part, the generated ts file works well on VLC and windows media player, but it doesn't work for quicktime or safari. When I use ffmpeg to convert the same input h.264 file, the generated ts file works just fine using quicktime. So I know there is nothing wrong with the h.264 file's codec, there must be something wrong with my ts configuration and my conversion code.
I have used apple's "mediastreamvalidator" tool to validate my ts file, it reports error like: segment duration is not finite. According to apple document, this is an apple known bug, I've reported this bug, but still no reponse. So what does this "segment duration not finite" mean?
I will also attached my test sample files here:
This is the link for the ts file that generated by the conversion code, it doesn't play on quicktime:
http://www.datafilehost.com/download-d135a839.html
This is the link for the ts file that generated by ffmpeg (with the same input h.264 file), it plays well on quick time:
http://www.datafilehost.com/download-b03b9081.html
I really wish to understand this, then I can modify my esToTs conversion code. Can anyone see what's the problem with it? Thanks very much. | 0 |
8,764,253 | 01/06/2012 20:44:39 | 623,850 | 02/18/2011 22:03:05 | 321 | 7 | Google Chrome crashes without any log | I wrote a Chrome pop-up extension and it works fine. But when click else where to close pop-up, it crashes Chrome. I need some info as to why it is crashing to fix this issue. I tried looking at both the locations mentioned in this [question][1], but the directories are empty! Following are the errors I get.
>**Google Chrome has stopped working**
> A problem caused the program to stop working correctly. Windows will
> close the program and notify you if a solution is available.
and then I get another window saying
>Whoa! Google Chrome has crashed. Relaunch now?
[1]: http://superuser.com/questions/624/where-is-google-chrome-crash-dump-located | google-chrome-extension | null | null | null | null | null | open | Google Chrome crashes without any log
===
I wrote a Chrome pop-up extension and it works fine. But when click else where to close pop-up, it crashes Chrome. I need some info as to why it is crashing to fix this issue. I tried looking at both the locations mentioned in this [question][1], but the directories are empty! Following are the errors I get.
>**Google Chrome has stopped working**
> A problem caused the program to stop working correctly. Windows will
> close the program and notify you if a solution is available.
and then I get another window saying
>Whoa! Google Chrome has crashed. Relaunch now?
[1]: http://superuser.com/questions/624/where-is-google-chrome-crash-dump-located | 0 |
1,641,859 | 10/29/2009 06:04:13 | 96,898 | 04/28/2009 05:10:13 | 94 | 3 | what is portlet programming in java can offer to us??? | even i do search in google, and read some of the article, but i still not clear what portlet in java can do for us (english is not my native language, sometime is hard to totally understand what people wrote)
i was discussing with my friend between java and php.
most of the php forum, they allow user to install forum plug-in on the fly within the forum system. some of the forum system even have a plugin list in the backend, the list is displaying all the plugin offer from that forum system, after clicking install, the system will download all the file need and install into the local forum system.
just like we purchase iphone app from app store
while in java, we all know if we want to add any functionality into a web application, we have to recompile build the war again, and deploy onto the server container.
Seems it is not possible to do things like php did.
however, there is a application JIRA, seems it was writen in java technology, and they allow their user to do things justs like the php application i descrip above.
and i happened to know the term "portlet", both spring and apache have such kind of project as well. Spring Portlet MVC and Apache Jetspeed
so does it real those portlet framework can offer us to build web application like those php forum did???
| java | portlet | web-applications | null | null | null | open | what is portlet programming in java can offer to us???
===
even i do search in google, and read some of the article, but i still not clear what portlet in java can do for us (english is not my native language, sometime is hard to totally understand what people wrote)
i was discussing with my friend between java and php.
most of the php forum, they allow user to install forum plug-in on the fly within the forum system. some of the forum system even have a plugin list in the backend, the list is displaying all the plugin offer from that forum system, after clicking install, the system will download all the file need and install into the local forum system.
just like we purchase iphone app from app store
while in java, we all know if we want to add any functionality into a web application, we have to recompile build the war again, and deploy onto the server container.
Seems it is not possible to do things like php did.
however, there is a application JIRA, seems it was writen in java technology, and they allow their user to do things justs like the php application i descrip above.
and i happened to know the term "portlet", both spring and apache have such kind of project as well. Spring Portlet MVC and Apache Jetspeed
so does it real those portlet framework can offer us to build web application like those php forum did???
| 0 |
3,865,737 | 10/05/2010 16:33:00 | 424,883 | 08/19/2010 06:42:13 | 26 | 1 | 2D Bounding box collission | i'm having some problems with collission in a small 2D game i'm writing. I'm currently working on a function that i want to find if the player character collides with a block, and which side of the block he collided with.
Currently i have something like (psuedo-code):
if(PLAYER_BOX IS WITHIN THE BLOCKS Y_RANGE)
{
if(PLAYER_BOX_RIGHT_SIDE >= BLOCK_LEFT_SIDE && PLAYER_BOX_RIGHT_SIDE <= BLOCK_RIGHT_SIDE)
{
return LEFT;
}
else if(PLAYER_LEFT_SIDE <= BLOCK_RIGHT_SIDE && PLAYER_LEFT_SIDE >= BLOCK_LEFT_SIDE)
{
return RIGHT;
}
}
else if(PLAYER_BOX IS WITHIN BLOCK X_RANGE)
{
if(PLAYER_BOTTOM_SIDE >= BLOCK_TOP_SIDE && PLAYER_BOTTOM_SIDE <= BLOCK_BOTTOM_SIDE)
{
return ABOVE;
}
else if(PLAYER_TOP_SIDE <= BLOCK_BOTTOM_SIDE && PLAYER_TOP_SIDE >= BLOCK_TOP_SIDE)
{
return BELOW;
}
}
Do i have some logic error here? Or have i simply wrote something wrong in my code?
ABOVE collission works, but it doesn't recognize sideways collission when it should, and sometimes it does when it should'nt.
The game is a SuperMario clone, so it's a sidescroller 2D platformer. | c++ | 2d | bounding-box | null | null | null | open | 2D Bounding box collission
===
i'm having some problems with collission in a small 2D game i'm writing. I'm currently working on a function that i want to find if the player character collides with a block, and which side of the block he collided with.
Currently i have something like (psuedo-code):
if(PLAYER_BOX IS WITHIN THE BLOCKS Y_RANGE)
{
if(PLAYER_BOX_RIGHT_SIDE >= BLOCK_LEFT_SIDE && PLAYER_BOX_RIGHT_SIDE <= BLOCK_RIGHT_SIDE)
{
return LEFT;
}
else if(PLAYER_LEFT_SIDE <= BLOCK_RIGHT_SIDE && PLAYER_LEFT_SIDE >= BLOCK_LEFT_SIDE)
{
return RIGHT;
}
}
else if(PLAYER_BOX IS WITHIN BLOCK X_RANGE)
{
if(PLAYER_BOTTOM_SIDE >= BLOCK_TOP_SIDE && PLAYER_BOTTOM_SIDE <= BLOCK_BOTTOM_SIDE)
{
return ABOVE;
}
else if(PLAYER_TOP_SIDE <= BLOCK_BOTTOM_SIDE && PLAYER_TOP_SIDE >= BLOCK_TOP_SIDE)
{
return BELOW;
}
}
Do i have some logic error here? Or have i simply wrote something wrong in my code?
ABOVE collission works, but it doesn't recognize sideways collission when it should, and sometimes it does when it should'nt.
The game is a SuperMario clone, so it's a sidescroller 2D platformer. | 0 |
5,777,398 | 04/25/2011 10:18:50 | 493,619 | 11/01/2010 13:30:58 | 1 | 0 | Codeigniter global constant | I have define one variable inside the costants.php file of codeigniter but i want to know how to use that variable into the view file.
define('UPLOAD_PATH', "/var/www/vhosts/dev/htdocs/p/");
I want to use 'UPLOAD_PATH' variable in my view file but i dont know how to use it. | codeigniter | null | null | null | null | null | open | Codeigniter global constant
===
I have define one variable inside the costants.php file of codeigniter but i want to know how to use that variable into the view file.
define('UPLOAD_PATH', "/var/www/vhosts/dev/htdocs/p/");
I want to use 'UPLOAD_PATH' variable in my view file but i dont know how to use it. | 0 |
1,415,592 | 09/12/2009 17:02:54 | 160,258 | 08/20/2009 18:14:58 | 187 | 24 | What is the major difference between a framework and a toolkit? | Does a framework allow you to abstract generic code - but not in a complete way (Ex: Abstract a network connection - but not what you actually do with the data), and does not solve any particular common requirement whereas a toolkit has solutions to generic problems(Ex: Dialog box widget)?
Real world Example: [Prototype][1] is a "framework", but [Dojo][2] is a "toolkit".
So my question is, what is the criteria to call something a framework vs calling it a toolkit?
[1]: http://www.prototypejs.org/
[2]: http://dojotoolkit.org/ | javascript | toolkit | frameworks | difference | null | 07/23/2012 01:07:00 | not constructive | What is the major difference between a framework and a toolkit?
===
Does a framework allow you to abstract generic code - but not in a complete way (Ex: Abstract a network connection - but not what you actually do with the data), and does not solve any particular common requirement whereas a toolkit has solutions to generic problems(Ex: Dialog box widget)?
Real world Example: [Prototype][1] is a "framework", but [Dojo][2] is a "toolkit".
So my question is, what is the criteria to call something a framework vs calling it a toolkit?
[1]: http://www.prototypejs.org/
[2]: http://dojotoolkit.org/ | 4 |
8,688,406 | 12/31/2011 13:35:42 | 846,050 | 07/15/2011 08:16:35 | 63 | 9 | How can I make XCursor Themes "lefty" | I have some XCursor themes I like. But since I'm a left hander I want to know if I can use some setting option in Xdefaults that make "Lefty" cursors the default.
Or do I have to get specific lefty themes, or do I have to hack those themes do some rename|symlink trick? | linux | xorg | null | null | null | null | open | How can I make XCursor Themes "lefty"
===
I have some XCursor themes I like. But since I'm a left hander I want to know if I can use some setting option in Xdefaults that make "Lefty" cursors the default.
Or do I have to get specific lefty themes, or do I have to hack those themes do some rename|symlink trick? | 0 |
10,453,186 | 05/04/2012 17:06:16 | 239,168 | 12/27/2009 13:28:29 | 4,216 | 121 | Is there a JavaScript API to send logs to a cloud logging service (like papertrail)? | I have some key events that are captured on the client side, and I would like to aggregate them easily. Instead of sending them to my server and pushing to [Papertrail][1], is there any service out there that has a RESTful API to send logs? (or a JQuery plugin for Papertrail?)
[1]: http://papertrailapp.com | javascript | jquery | logging | papertrail | null | null | open | Is there a JavaScript API to send logs to a cloud logging service (like papertrail)?
===
I have some key events that are captured on the client side, and I would like to aggregate them easily. Instead of sending them to my server and pushing to [Papertrail][1], is there any service out there that has a RESTful API to send logs? (or a JQuery plugin for Papertrail?)
[1]: http://papertrailapp.com | 0 |
3,353,496 | 07/28/2010 13:48:56 | 233,421 | 12/17/2009 00:41:31 | 816 | 0 | What is Locking in MySQL and when would you use it? | What is Locking in MySQL (or any RDBMS) and when would you use it? A Layman explanation with a Example would be great!
Thank you in advance;-) | sql | mysql | sql-server | oracle | postgresql | 07/19/2012 02:02:30 | not constructive | What is Locking in MySQL and when would you use it?
===
What is Locking in MySQL (or any RDBMS) and when would you use it? A Layman explanation with a Example would be great!
Thank you in advance;-) | 4 |
8,886,997 | 01/16/2012 22:11:09 | 189,336 | 10/13/2009 18:22:59 | 561 | 4 | Being 'nice' with I/O: limiting a processes I/O resources in *nix | I'm working on a big shared Ubuntu server and am annoying my colleagues. One of my processes is making a lot of inserts into a MySQL database and it's bogging the whole server down.
MySQL is not using much of the CPU resources nor much of the RAM. If that were the case I could use the tools 'nice' and 'ulimit' to throttle the process (in fact I am using nice on MySQL and it's not helping). Instead, MySQL seems to be making lots of random disk read and write operations and so whenever anyone else wants to read or write a file from disk, they have to wait a second or two, which is not acceptable for interactive use.
Any thoughts on what I can do to limit MySQL's disk I/O?
What I need is well described in a message board [here][1].
[1]: http://forums.fedoraforum.org/showthread.php?t=255886 | unix | null | null | null | null | 01/17/2012 00:50:59 | off topic | Being 'nice' with I/O: limiting a processes I/O resources in *nix
===
I'm working on a big shared Ubuntu server and am annoying my colleagues. One of my processes is making a lot of inserts into a MySQL database and it's bogging the whole server down.
MySQL is not using much of the CPU resources nor much of the RAM. If that were the case I could use the tools 'nice' and 'ulimit' to throttle the process (in fact I am using nice on MySQL and it's not helping). Instead, MySQL seems to be making lots of random disk read and write operations and so whenever anyone else wants to read or write a file from disk, they have to wait a second or two, which is not acceptable for interactive use.
Any thoughts on what I can do to limit MySQL's disk I/O?
What I need is well described in a message board [here][1].
[1]: http://forums.fedoraforum.org/showthread.php?t=255886 | 2 |
11,283,701 | 07/01/2012 16:25:36 | 811,335 | 06/22/2011 23:50:49 | 1,268 | 92 | how to specify the length of edge in graphviz | In a directed graph, if there is a cycle, the graphviz makes that edge really short.
Is there a parameter that would let me change the length of the cyclic edge, so that
the graph looks a bit uniform.
| graphviz | null | null | null | null | null | open | how to specify the length of edge in graphviz
===
In a directed graph, if there is a cycle, the graphviz makes that edge really short.
Is there a parameter that would let me change the length of the cyclic edge, so that
the graph looks a bit uniform.
| 0 |
1,436,476 | 09/17/2009 02:41:23 | 174,718 | 09/17/2009 02:41:23 | 1 | 0 | Internship in ColdFusion? | I am a programming student in college. A company that uses ColdFusion has offered me an internship. Would it be a wise move, career wise, to take this internship? | coldfusion | internship | career-development | null | null | 01/23/2012 03:47:51 | off topic | Internship in ColdFusion?
===
I am a programming student in college. A company that uses ColdFusion has offered me an internship. Would it be a wise move, career wise, to take this internship? | 2 |
10,740,143 | 05/24/2012 15:04:07 | 1,014,237 | 10/26/2011 09:05:09 | 1,427 | 96 | Get current active Window title in C | I want to write an X-Chat plugin where users will be able to perform a CTCP request to my client, whereby the plugin/X-Chat will respond with my current active window title.
This would be really cool for fellow IRC users to see what I'm up to to allow them to determine what I'm doing if I'm full screen (playing a game, watching a video etc).
Plugins for X-Chat are written in C, so I need a way of determining the current active Window title using Windows API calls from C. Can anyone advise on how this might be done?
Thanks. | c | windows | winapi | null | null | null | open | Get current active Window title in C
===
I want to write an X-Chat plugin where users will be able to perform a CTCP request to my client, whereby the plugin/X-Chat will respond with my current active window title.
This would be really cool for fellow IRC users to see what I'm up to to allow them to determine what I'm doing if I'm full screen (playing a game, watching a video etc).
Plugins for X-Chat are written in C, so I need a way of determining the current active Window title using Windows API calls from C. Can anyone advise on how this might be done?
Thanks. | 0 |
9,179,128 | 02/07/2012 15:39:49 | 352,821 | 05/28/2010 11:15:24 | 300 | 6 | PHP Algorithm help - math |
I am messing around with some php game development and I'm horrible at math and really need help with this algorithm.
I have the number 28 and 94 and I want the outcome of this algorithm to be 27,050.
Can use any equation possible to get to that that outcome...
BUT using the exact same math path above I have 34 and 85 and those need to equal 2,510.
(or as very close as possible to the outcomes)
A) 28 and 94 = 27,050
B) 34 and 85 = 2,510
I hope that makes sense? I'm really crappy and explaining things :p
| php | algorithm | math | null | null | 02/08/2012 16:16:52 | not constructive | PHP Algorithm help - math
===
I am messing around with some php game development and I'm horrible at math and really need help with this algorithm.
I have the number 28 and 94 and I want the outcome of this algorithm to be 27,050.
Can use any equation possible to get to that that outcome...
BUT using the exact same math path above I have 34 and 85 and those need to equal 2,510.
(or as very close as possible to the outcomes)
A) 28 and 94 = 27,050
B) 34 and 85 = 2,510
I hope that makes sense? I'm really crappy and explaining things :p
| 4 |
5,453,618 | 03/28/2011 00:46:40 | 629,417 | 02/23/2011 02:06:43 | 28 | 0 | generate recovery script oracle for database | I have been told I need to create an sql script that recreates all of the tables/procedures/triggers/views/sequences, etc of my current database. Does anybody have any idea how I go about doing this? It is an oracle 10g express database. | oracle10g | null | null | null | null | 03/28/2011 13:05:24 | off topic | generate recovery script oracle for database
===
I have been told I need to create an sql script that recreates all of the tables/procedures/triggers/views/sequences, etc of my current database. Does anybody have any idea how I go about doing this? It is an oracle 10g express database. | 2 |
8,203,043 | 11/20/2011 16:53:27 | 195,445 | 10/23/2009 16:36:40 | 1 | 0 | What is the right way to develop a HTML5 poker application with .NET and Asp.NET MVC backend? | i would like to develop a HTML5 poker game with .net and Asp.Net MVC backend. What i would like to learn is that there are a lot of sections in the application that needs to be refreshed all the time.
Here is a sample scenario :
Let's assume there's an active poker table. Players must decide what to(call, check, fold, etc.) in 20 seconds. Player A decided to put all his chip in 10th second. How can all the other players see that the Player A has decided to all-in in 10th second?
What i'm trying to ask is that how can i populate all the informations about the poker games, tables, users? What are the concepts, APIs i need to learn about HTML5?
Thanks for your help... | .net | html5 | poker | null | null | 11/20/2011 17:15:10 | not constructive | What is the right way to develop a HTML5 poker application with .NET and Asp.NET MVC backend?
===
i would like to develop a HTML5 poker game with .net and Asp.Net MVC backend. What i would like to learn is that there are a lot of sections in the application that needs to be refreshed all the time.
Here is a sample scenario :
Let's assume there's an active poker table. Players must decide what to(call, check, fold, etc.) in 20 seconds. Player A decided to put all his chip in 10th second. How can all the other players see that the Player A has decided to all-in in 10th second?
What i'm trying to ask is that how can i populate all the informations about the poker games, tables, users? What are the concepts, APIs i need to learn about HTML5?
Thanks for your help... | 4 |
3,345,215 | 07/27/2010 15:28:03 | 144,140 | 07/23/2009 23:38:33 | 91 | 14 | jQuery tools date time picker | can anyone recommend me some jQuery tools date time picker, on official jQuery tools site there is only date picker but I am looking for plugin that has time extension.
Thanks a lot. | jquery | date | time | picker | null | null | open | jQuery tools date time picker
===
can anyone recommend me some jQuery tools date time picker, on official jQuery tools site there is only date picker but I am looking for plugin that has time extension.
Thanks a lot. | 0 |
4,873,926 | 02/02/2011 11:31:33 | 448,078 | 09/15/2010 06:58:29 | 23 | 1 | Is there any kind of 'enterprise container' needed in java? | Have philosophic question.<br>
Why is it worth to have kind of 'enterprise container' in java. Why not support enterprise container features on JVM level?<br>
For example what if I want to use some of EJB features in my desktop application. Is here something wrong in architecture point of view?<br>
You CAN use Spring 'enterprise features' without 'enterprise container' like Glassfish even without 'servlet container' like Tomcat. And this is good, isn't it?<br>
Could you point source (books, articles etc.) of our arguments if any please?<br>
Thanks. | java | java-ee | philosophy | null | null | 02/04/2011 02:48:12 | not a real question | Is there any kind of 'enterprise container' needed in java?
===
Have philosophic question.<br>
Why is it worth to have kind of 'enterprise container' in java. Why not support enterprise container features on JVM level?<br>
For example what if I want to use some of EJB features in my desktop application. Is here something wrong in architecture point of view?<br>
You CAN use Spring 'enterprise features' without 'enterprise container' like Glassfish even without 'servlet container' like Tomcat. And this is good, isn't it?<br>
Could you point source (books, articles etc.) of our arguments if any please?<br>
Thanks. | 1 |
8,529,943 | 12/16/2011 04:55:44 | 1,101,249 | 12/16/2011 04:53:14 | 1 | 0 | invalid literal for int() with base 10: ' ' | Why isn't this working?
f = open("dna.txt", "r")
data = f.readlines()
sequence1 = data[1]
sequence2 = data[2]
f = open ("matrix.txt", "r")
data = f.readlines ()
for i in range (0, len(data), 1):
data[i] = data[i].strip("\n")
subst_matrix = {}
nuc = [' ', 'A', 'R', 'N', 'D', 'C', 'Q', 'E', 'G', 'H', 'I', 'L', 'K', 'M', 'F', 'P', 'S', 'T', 'W', 'Y', 'V', 'B', 'Z', 'X']
for j in range (1, len(data), 1):
l = data[j].strip()
for i in range (1, len(l), 1):
key = nuc[j] + nuc[i]
subst_matrix[key] = int(l[i])
g = -20
score = 0
for i in range (0, len(sequence1), 1):
ch1 = sequence1[i]
ch2 = sequence2[i]
if (ch1 == '_' or ch2 == '_'):
score = score + gaps
else:
key = ch1 + ch2
score = score + subst_matrix [key]
print ("Alignment score is", score)
| python | bioinformatics | null | null | null | 12/16/2011 13:12:26 | not a real question | invalid literal for int() with base 10: ' '
===
Why isn't this working?
f = open("dna.txt", "r")
data = f.readlines()
sequence1 = data[1]
sequence2 = data[2]
f = open ("matrix.txt", "r")
data = f.readlines ()
for i in range (0, len(data), 1):
data[i] = data[i].strip("\n")
subst_matrix = {}
nuc = [' ', 'A', 'R', 'N', 'D', 'C', 'Q', 'E', 'G', 'H', 'I', 'L', 'K', 'M', 'F', 'P', 'S', 'T', 'W', 'Y', 'V', 'B', 'Z', 'X']
for j in range (1, len(data), 1):
l = data[j].strip()
for i in range (1, len(l), 1):
key = nuc[j] + nuc[i]
subst_matrix[key] = int(l[i])
g = -20
score = 0
for i in range (0, len(sequence1), 1):
ch1 = sequence1[i]
ch2 = sequence2[i]
if (ch1 == '_' or ch2 == '_'):
score = score + gaps
else:
key = ch1 + ch2
score = score + subst_matrix [key]
print ("Alignment score is", score)
| 1 |
3,217,606 | 07/10/2010 02:41:44 | 345,579 | 04/07/2010 22:13:03 | 43 | 2 | is there any site for broadcasting live shows? | please delete the question if this site is not the right place to post this question
I am looking for a site where I can log in and create events that I can broadcast. broadcast will be live and users who come to the site can watch it . And when an user logs on to watch my broadcast I can see the list of users and then have chat option , block bad users etc. If there is a site like this, is there any clone script(preferably php mysql) for that? i am in an urgent situation to use some clone script instead of creating from scratch.
thanks
| php | mysql | broadcast | null | null | 07/10/2010 02:52:21 | off topic | is there any site for broadcasting live shows?
===
please delete the question if this site is not the right place to post this question
I am looking for a site where I can log in and create events that I can broadcast. broadcast will be live and users who come to the site can watch it . And when an user logs on to watch my broadcast I can see the list of users and then have chat option , block bad users etc. If there is a site like this, is there any clone script(preferably php mysql) for that? i am in an urgent situation to use some clone script instead of creating from scratch.
thanks
| 2 |
2,941,408 | 05/31/2010 04:47:12 | 321,008 | 04/20/2010 06:05:00 | 30 | 1 | How to get a detailed report of scans performed by spam-assassin? | I am planning to setup spam-assassin in my mail server for filtering out spam mails. I would like to get a detailed report of spam checks performed on incoming mails. This will help me in creating custom rules , so that legitimate mails wont be labeled as spam. Please tell me how to configure spam-assassin so that i get a detailed report of scans ? | spam | email-spam | spamassassin | spam-blocking | null | 05/31/2010 12:55:36 | off topic | How to get a detailed report of scans performed by spam-assassin?
===
I am planning to setup spam-assassin in my mail server for filtering out spam mails. I would like to get a detailed report of spam checks performed on incoming mails. This will help me in creating custom rules , so that legitimate mails wont be labeled as spam. Please tell me how to configure spam-assassin so that i get a detailed report of scans ? | 2 |
8,199,053 | 11/20/2011 02:40:04 | 376,947 | 06/26/2010 12:43:39 | 1,477 | 7 | How to detach jquery event (function) from element | I want to remove this click event if my ajax request is succesful:
$('.el a').live('click', function(event){
event.preventDefault();
$.ajax({
url: $(this).attr('href'),
type: 'GET',
success: function(response){
// how to detach this function here? (the live click event)
}
});
});
| javascript | jquery | events | null | null | null | open | How to detach jquery event (function) from element
===
I want to remove this click event if my ajax request is succesful:
$('.el a').live('click', function(event){
event.preventDefault();
$.ajax({
url: $(this).attr('href'),
type: 'GET',
success: function(response){
// how to detach this function here? (the live click event)
}
});
});
| 0 |
10,966,485 | 06/10/2012 05:06:29 | 1,086,778 | 12/08/2011 00:38:13 | 6 | 0 | Jquery Layout ui overflow:hidden | Hi there I am currently using jquery.layout and i am wanting to change the overflow of ui-layout-container to visable, any suggestions would be greatly appreciated !
Thanks | jquery-ui | jquery-layout | null | null | null | 06/10/2012 22:50:59 | not a real question | Jquery Layout ui overflow:hidden
===
Hi there I am currently using jquery.layout and i am wanting to change the overflow of ui-layout-container to visable, any suggestions would be greatly appreciated !
Thanks | 1 |
7,516,715 | 09/22/2011 14:44:41 | 959,288 | 09/22/2011 14:08:12 | 1 | 0 | Custom Post "Variations" | I'm a relatively new WP developer in the process of putting together a new website and am looking for some advice on "strategy."
For simplicity, this will more or less be a "product catalog," or a listing of many items and their attributes. Thus far I have developed a custom post type (items), the associated taxonomy and some custom meta (eventually for the SKU of each item), and have succesfully developed the barebones pages to display the post type/taxonomy/meta.
The final part is basically figuring out how to develop "variations" into this post type. Each item would require something like: length, width, color, shape, where each length may have a different width/color/shape. Currently, I have this information saved into a CSV, and then a little PHP script pulls up the CSV (concatenates the filename based on the title of the post), and then displays the data as an HTML table. This is great, except there's no (good) way for a user to search/query (ie - "I want to see all items with a color of X").
I've tried digging into an existing ecommerce plugin/theme I have (Express Store), but the code is a bit "thick" for my skill level. As far as I can tell, this plugin builds its own tables that are used for the products/categories/variations, but this seems overkill for my needs.
Therefore, my question is, what's the best way to accomplish this? Should this just be another custom meta for this post type? Or do I need to start looking into building a custom table? Is there any way to incorporate using a CSV, to avoid having to manually enter this data for each item?
My thinking is maybe I can develop the custom meta (size/width/color/shape), and then have a small PHP script that inserts the CSV into the meta. Does this sound correct? How can I be sure that the width/color/shape will correspond to the correct size (ie - maintain hierarchy)?
Thanks. | wordpress | wordpress-plugin-dev | null | null | null | 10/03/2011 12:12:07 | too localized | Custom Post "Variations"
===
I'm a relatively new WP developer in the process of putting together a new website and am looking for some advice on "strategy."
For simplicity, this will more or less be a "product catalog," or a listing of many items and their attributes. Thus far I have developed a custom post type (items), the associated taxonomy and some custom meta (eventually for the SKU of each item), and have succesfully developed the barebones pages to display the post type/taxonomy/meta.
The final part is basically figuring out how to develop "variations" into this post type. Each item would require something like: length, width, color, shape, where each length may have a different width/color/shape. Currently, I have this information saved into a CSV, and then a little PHP script pulls up the CSV (concatenates the filename based on the title of the post), and then displays the data as an HTML table. This is great, except there's no (good) way for a user to search/query (ie - "I want to see all items with a color of X").
I've tried digging into an existing ecommerce plugin/theme I have (Express Store), but the code is a bit "thick" for my skill level. As far as I can tell, this plugin builds its own tables that are used for the products/categories/variations, but this seems overkill for my needs.
Therefore, my question is, what's the best way to accomplish this? Should this just be another custom meta for this post type? Or do I need to start looking into building a custom table? Is there any way to incorporate using a CSV, to avoid having to manually enter this data for each item?
My thinking is maybe I can develop the custom meta (size/width/color/shape), and then have a small PHP script that inserts the CSV into the meta. Does this sound correct? How can I be sure that the width/color/shape will correspond to the correct size (ie - maintain hierarchy)?
Thanks. | 3 |
6,493,821 | 06/27/2011 13:45:28 | 752,322 | 05/13/2011 12:05:01 | 1 | 0 | reload/update page javascript | I think that my question is actually very simple and I thought the answer was somewhere hidden in some related questions. But I couldn't get my code to work, so here is my problem:
I need to read a file that is non-periodically chanced and do really nice stuffs with the data in it. So far, I've been doing this "locally" (this file will be on a server later) and it works just fine. Just for testing to see if the data was being read correctly, the changes on the file were done by me and I just hit F5 on the browser to get the "new page". All this is fine!
The thing is, I need the webpage to reload itself only when the file was changed. So I read the file, check if update!= lastupdate to reload the page. The problem is that it doesn't matter if the condition is true or false the page always reloads!! not cool! This is one of the approaches I've done so far:
setInterval(function() {
$.getJSON('object.json', function(data) {
if ( data.update != lastUpdate ){
lastUpdate = data.update;
window.location.reload();
});
}, 2000);
This functions checks every 2 seconds if the file was changed and then if true reload the page. But it reloads every 2 seconds instead of each time the file is changed ... Could anyone tell me what am I doing wrong?
Thanks and regards,
Julls | reload | setinterval | null | null | null | null | open | reload/update page javascript
===
I think that my question is actually very simple and I thought the answer was somewhere hidden in some related questions. But I couldn't get my code to work, so here is my problem:
I need to read a file that is non-periodically chanced and do really nice stuffs with the data in it. So far, I've been doing this "locally" (this file will be on a server later) and it works just fine. Just for testing to see if the data was being read correctly, the changes on the file were done by me and I just hit F5 on the browser to get the "new page". All this is fine!
The thing is, I need the webpage to reload itself only when the file was changed. So I read the file, check if update!= lastupdate to reload the page. The problem is that it doesn't matter if the condition is true or false the page always reloads!! not cool! This is one of the approaches I've done so far:
setInterval(function() {
$.getJSON('object.json', function(data) {
if ( data.update != lastUpdate ){
lastUpdate = data.update;
window.location.reload();
});
}, 2000);
This functions checks every 2 seconds if the file was changed and then if true reload the page. But it reloads every 2 seconds instead of each time the file is changed ... Could anyone tell me what am I doing wrong?
Thanks and regards,
Julls | 0 |
5,665,504 | 04/14/2011 15:19:05 | 597,388 | 01/31/2011 19:44:20 | 93 | 1 | devise - show required fields | is there a way to get devise to show * for required fields on sign up page in views?
rails 3.0.5 devise 1.2 | ruby-on-rails | devise | null | null | null | null | open | devise - show required fields
===
is there a way to get devise to show * for required fields on sign up page in views?
rails 3.0.5 devise 1.2 | 0 |
1,759,798 | 11/18/2009 23:10:22 | 214,167 | 11/18/2009 22:51:34 | 1 | 0 | Visual Studio 2008 Report Server Project Design View not working. | When I create a new report or try to open an existing report that has been working in Visual Studio 2008 Report Server Project. I cannot view the design. All I get is html of the report. I've tried reinstalling VS2008 and BIDS, but hasn't worked. This was all working when I last used it 2 weeks ago.
-nate | visual-studio-2008 | reporting-services | designview | bids | null | null | open | Visual Studio 2008 Report Server Project Design View not working.
===
When I create a new report or try to open an existing report that has been working in Visual Studio 2008 Report Server Project. I cannot view the design. All I get is html of the report. I've tried reinstalling VS2008 and BIDS, but hasn't worked. This was all working when I last used it 2 weeks ago.
-nate | 0 |
11,424,540 | 07/11/2012 02:01:24 | 1,516,407 | 07/11/2012 01:56:08 | 1 | 0 | Verify if String is hexadecimal | sorry for mi english, i'm from Argentina, and my question is because i have an String like "09a" and i need a method to confirm if the text is hexadecimal, i'm gonna put one code similar, but it verify if a string its an decimal number, i want the same, but for hexadecimal.
thank you very, very mutch !
private static boolean isNumeric(String cadena) {
try {
Long.parseLong(cadena);
return true;
} catch (NumberFormatException nfe) {
JOptionPane.showMessageDialog(null,"Uno de los números, excede su capacidad.");
return false;
}
} | string | hex | null | null | null | null | open | Verify if String is hexadecimal
===
sorry for mi english, i'm from Argentina, and my question is because i have an String like "09a" and i need a method to confirm if the text is hexadecimal, i'm gonna put one code similar, but it verify if a string its an decimal number, i want the same, but for hexadecimal.
thank you very, very mutch !
private static boolean isNumeric(String cadena) {
try {
Long.parseLong(cadena);
return true;
} catch (NumberFormatException nfe) {
JOptionPane.showMessageDialog(null,"Uno de los números, excede su capacidad.");
return false;
}
} | 0 |
8,556,592 | 12/19/2011 02:40:16 | 826,671 | 07/03/2011 07:16:25 | 51 | 2 | How would I make an if statement for if a UILabel says a perticuallr phrase? | I have a UILabel that I want to add an 'if' statement to using an NSTimer. When the UILabel says @"3" I want the 'if' statemnt to bring up a UIAlertView. How would I do this?
Any help thanked,
user829971 | iphone | xcode | xcode4.2 | uialertview | ios5-sdk | null | open | How would I make an if statement for if a UILabel says a perticuallr phrase?
===
I have a UILabel that I want to add an 'if' statement to using an NSTimer. When the UILabel says @"3" I want the 'if' statemnt to bring up a UIAlertView. How would I do this?
Any help thanked,
user829971 | 0 |
11,574,668 | 07/20/2012 07:19:05 | 1,528,508 | 07/16/2012 09:55:19 | 1 | 0 | what is wrong with the logic of my code? i need to find the oldest and youngest student. the end user has to enter the bday into a string | DateTime young = DateTime.MinValue;
DateTime old = DateTime.MinValue;
foreach (var d in students)
{
try
{
DateTime dt = Convert.ToDateTime(d.dob);
int result = DateTime.Compare(young, dt);
if (result < 0)
{
old = dt;
}
if (result > 0)
{
young = dt;
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message.ToString());
}
}
Console.WriteLine("the youngest age is {0}",young);
Console.WriteLine("the oldest age is {0}", old);
There is something wrong with the logic and im unable to get the exact output! please do help! | c# | datetime | null | null | null | null | open | what is wrong with the logic of my code? i need to find the oldest and youngest student. the end user has to enter the bday into a string
===
DateTime young = DateTime.MinValue;
DateTime old = DateTime.MinValue;
foreach (var d in students)
{
try
{
DateTime dt = Convert.ToDateTime(d.dob);
int result = DateTime.Compare(young, dt);
if (result < 0)
{
old = dt;
}
if (result > 0)
{
young = dt;
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message.ToString());
}
}
Console.WriteLine("the youngest age is {0}",young);
Console.WriteLine("the oldest age is {0}", old);
There is something wrong with the logic and im unable to get the exact output! please do help! | 0 |
5,835,641 | 04/29/2011 18:05:23 | 565,635 | 01/06/2011 15:21:05 | 4,076 | 246 | SDL_TTF system font | Is there any way to use the default system font with SDL_TFF, without writing platform-specific code? Currently I just use one of the [GNU FreeFont's](http://www.gnu.org/software/freefont/), but I would like to be able to use the default system font. | c++ | cross-platform | system-font | sdl-ttf | null | null | open | SDL_TTF system font
===
Is there any way to use the default system font with SDL_TFF, without writing platform-specific code? Currently I just use one of the [GNU FreeFont's](http://www.gnu.org/software/freefont/), but I would like to be able to use the default system font. | 0 |
7,703,854 | 10/09/2011 13:34:52 | 476,756 | 10/15/2010 10:12:33 | 305 | 4 | Large out-of-range numbers appear in C++ rand() | Need to have an array full of random numbers within range. Code:
void fillArray(int *arr){
for(int i=0;i<(sizeof arr);i++){
arr[i] = rand() % 2 - 2;
}
}
int *arrPoint(int *arr, int max){
for (int i=0;i<max;i++){
printf("%d is %d\n",i,arr[i]);
}
return arr;
}
int main(int argc, char *argv[]){
srand ( time(NULL) );
int arr_f[15];
fillArray(arr_s);
arrPoint(arr_s, 15);
system("PAUSE");
return EXIT_SUCCESS;
}
Output:
0 is -2
1 is -1
2 is -2
3 is -1
4 is 0
5 is 0
6 is 4633240
7 is 2686652
8 is 1973724226
9 is 1974338216
10 is 2686716
11 is 1973744850
12 is 8
13 is 1973752206
14 is 1973752162
Press any key to continue . . .
What the hell? Putting rand() % 2 into brackets doesn't help either. What these numbers are and how do I get rid of them?
**P.S.** Tried this in crappy Dev-C++ and Code::Blocks with the same result. Need the program to be small sized (putting it to dropbox), so no, I *can't* use 100mb boost lib. | c++ | random | null | null | null | null | open | Large out-of-range numbers appear in C++ rand()
===
Need to have an array full of random numbers within range. Code:
void fillArray(int *arr){
for(int i=0;i<(sizeof arr);i++){
arr[i] = rand() % 2 - 2;
}
}
int *arrPoint(int *arr, int max){
for (int i=0;i<max;i++){
printf("%d is %d\n",i,arr[i]);
}
return arr;
}
int main(int argc, char *argv[]){
srand ( time(NULL) );
int arr_f[15];
fillArray(arr_s);
arrPoint(arr_s, 15);
system("PAUSE");
return EXIT_SUCCESS;
}
Output:
0 is -2
1 is -1
2 is -2
3 is -1
4 is 0
5 is 0
6 is 4633240
7 is 2686652
8 is 1973724226
9 is 1974338216
10 is 2686716
11 is 1973744850
12 is 8
13 is 1973752206
14 is 1973752162
Press any key to continue . . .
What the hell? Putting rand() % 2 into brackets doesn't help either. What these numbers are and how do I get rid of them?
**P.S.** Tried this in crappy Dev-C++ and Code::Blocks with the same result. Need the program to be small sized (putting it to dropbox), so no, I *can't* use 100mb boost lib. | 0 |
8,930,427 | 01/19/2012 17:21:37 | 401,828 | 07/25/2010 23:45:11 | 860 | 44 | Is it possible to use HTML5 canvas API to batch generate images non-interactively via script? | Currently, when I need to create some images for scientific visualization (generally, from CSV files or other data-container), I use Python as scripting language, and Cairo as drawing API. It allows me to run a script, and have a directory full of .png files.
Although Cairo is a very nice drawing API, I see Canvas, besides being more mainstream, has some operations (like compositing and swadowing), which would make possible to create more sophisticated graphics, among other potential advantages.
The main problem I see is being browser-based, so I think the script would have to call a scriptable browser, which has the actual canvas rendering engine. I don't even know if the concept of "scriptable browser" (via command line) exists at all.
Other not-so-big problem would be the need for a running HTTP server, but I think Python provides `SimpleHTTPServer` which should work fine.
Any idea?
Thanks for reading, hope it helps more people in the future. | python | browser | script | html5-canvas | batch-processing | null | open | Is it possible to use HTML5 canvas API to batch generate images non-interactively via script?
===
Currently, when I need to create some images for scientific visualization (generally, from CSV files or other data-container), I use Python as scripting language, and Cairo as drawing API. It allows me to run a script, and have a directory full of .png files.
Although Cairo is a very nice drawing API, I see Canvas, besides being more mainstream, has some operations (like compositing and swadowing), which would make possible to create more sophisticated graphics, among other potential advantages.
The main problem I see is being browser-based, so I think the script would have to call a scriptable browser, which has the actual canvas rendering engine. I don't even know if the concept of "scriptable browser" (via command line) exists at all.
Other not-so-big problem would be the need for a running HTTP server, but I think Python provides `SimpleHTTPServer` which should work fine.
Any idea?
Thanks for reading, hope it helps more people in the future. | 0 |
10,337,119 | 04/26/2012 16:02:02 | 1,072,345 | 11/29/2011 22:56:10 | 1 | 0 | jQuery content loading script - Help finding the code | Afternoon all,
Im trying to find a jquery content loading script,
im currently developing a video site,
(for example if the user clicks most viewed it will change the videos getting the source of the videos from a php document)
<div id="video-section" class="with-ads">
<!-- Videos Go Here -->
</div>
can someone point me of a decent script that will work?
Thank you. | jquery | dynamic | content | loading | null | 04/27/2012 11:18:36 | not a real question | jQuery content loading script - Help finding the code
===
Afternoon all,
Im trying to find a jquery content loading script,
im currently developing a video site,
(for example if the user clicks most viewed it will change the videos getting the source of the videos from a php document)
<div id="video-section" class="with-ads">
<!-- Videos Go Here -->
</div>
can someone point me of a decent script that will work?
Thank you. | 1 |
8,886,020 | 01/16/2012 20:44:08 | 298,172 | 03/20/2010 21:23:46 | 88 | 1 | Browser statistics, do any major sites publish them | Do any major sites publish their web stats, specifically browser information?
| browser-compatibility | web-statistics | null | null | null | 01/17/2012 12:11:36 | off topic | Browser statistics, do any major sites publish them
===
Do any major sites publish their web stats, specifically browser information?
| 2 |
7,882,267 | 10/24/2011 21:32:08 | 958,880 | 09/22/2011 10:21:02 | 11 | 0 | is it possible to change the values of RotateAnimation in android while it's running? | I'm using RotateAnimation and i want to change the animation while it's running, for example, changing the "toDegrees" parameter and thous making the animation shorter or longer.
Thanks. | android | animation | rotateanimation | null | null | null | open | is it possible to change the values of RotateAnimation in android while it's running?
===
I'm using RotateAnimation and i want to change the animation while it's running, for example, changing the "toDegrees" parameter and thous making the animation shorter or longer.
Thanks. | 0 |
8,042,074 | 11/07/2011 20:17:25 | 288,032 | 03/07/2010 02:26:49 | 758 | 25 | How can I watch LDAP traffic on port 389? | I use Charles Web Debugging Proxy to watch traffic on ports 80 / 443 for HTTP and HTTPS requests. With Mac OS X, what program can I use to watch traffic on port 389 / 636 for `ldap://` and `ldaps://`? I'm interested in seeing the actual requests / responses, partially to see how secure they are and what the differences are, and partially just because I'm curious as to what the requests look like. | debugging | proxy | ldap | packet-sniffers | sniffing | null | open | How can I watch LDAP traffic on port 389?
===
I use Charles Web Debugging Proxy to watch traffic on ports 80 / 443 for HTTP and HTTPS requests. With Mac OS X, what program can I use to watch traffic on port 389 / 636 for `ldap://` and `ldaps://`? I'm interested in seeing the actual requests / responses, partially to see how secure they are and what the differences are, and partially just because I'm curious as to what the requests look like. | 0 |
9,804,065 | 03/21/2012 11:49:47 | 1,283,252 | 03/21/2012 11:41:31 | 1 | 0 | I need facebook button click event | I have one page on which I placed FB login button.
It works like, user will click on button and popup will display in which user will enter fb details and log in.
Now if I will come on that page again on which I had fb login button, it is redirecting me to some page (which I have mentioned in script). But what I need is, it should redirect only if user clicks on fb button. It should not automatic.
Any help please. | facebook | null | null | null | null | 03/21/2012 12:08:53 | not a real question | I need facebook button click event
===
I have one page on which I placed FB login button.
It works like, user will click on button and popup will display in which user will enter fb details and log in.
Now if I will come on that page again on which I had fb login button, it is redirecting me to some page (which I have mentioned in script). But what I need is, it should redirect only if user clicks on fb button. It should not automatic.
Any help please. | 1 |
1,626,325 | 10/26/2009 18:00:26 | 170,013 | 09/08/2009 07:05:58 | 43 | 3 | How to begin working with GwtQuery? | I've dived into the GWT world a couple of months ago and find it quite interesting.
I'm currently developing a web application which is to be used internally and so we need to resize the browser window, which can only be done by JSNI. After hitting [some problems][1]
regarding the JSNI I was advised to look into `jquery` and I found that it's counterpart in `GWT` is `GwtQuery`. I've tried looking on the project page and googling for tutorials but I can't seem to find a clear beginners tutorial on how to use `GwtQuery` on `GWT` but I keep find references to how it's very similar to `jquery`.
I think it's important to state that I'm not a js developer but rather a java developer who likes the idea of `GWT` and I just need to use `GWTQuery` in a very small part of my application.
Thanks in advance for any leads or links.
Ittai
[1]: http://stackoverflow.com/questions/1573855/resizeto-in-js-gives-me-access-is-denied-error-how-to-know-if-browser-is-ready | gwt | jquery | javascript | tutorials | null | null | open | How to begin working with GwtQuery?
===
I've dived into the GWT world a couple of months ago and find it quite interesting.
I'm currently developing a web application which is to be used internally and so we need to resize the browser window, which can only be done by JSNI. After hitting [some problems][1]
regarding the JSNI I was advised to look into `jquery` and I found that it's counterpart in `GWT` is `GwtQuery`. I've tried looking on the project page and googling for tutorials but I can't seem to find a clear beginners tutorial on how to use `GwtQuery` on `GWT` but I keep find references to how it's very similar to `jquery`.
I think it's important to state that I'm not a js developer but rather a java developer who likes the idea of `GWT` and I just need to use `GWTQuery` in a very small part of my application.
Thanks in advance for any leads or links.
Ittai
[1]: http://stackoverflow.com/questions/1573855/resizeto-in-js-gives-me-access-is-denied-error-how-to-know-if-browser-is-ready | 0 |
4,551,783 | 12/29/2010 05:47:47 | 184,730 | 10/06/2009 04:02:06 | 7,116 | 636 | No grammar constraints (DTD or XML schema) detected for the document. | I have this dtd : http://fast-code.sourceforge.net/template.dtd
But when I include in an xml I get the warning :
No grammar constraints (DTD or XML schema) detected for the document.
The xml is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE templates PUBLIC "//UNKNOWN/" "http://fast-code.sourceforge.net/template.dtd">
<templates>
<template type="type">
<description>Some</description>
<variation></variation>
<variation-field></variation-field>
<allow-multiple-variation></allow-multiple-variation>
<class-pattern></class-pattern>
<getter-setter>setter</getter-setter>
<allowed-file-extensions>java</allowed-file-extensions>
<number-required-classes>1</number-required-classes>
<template-body>
<![CDATA[
Some Data
]]>
</template-body>
</template>
</templates>
Any clue? | xml | validation | dtd | null | null | null | open | No grammar constraints (DTD or XML schema) detected for the document.
===
I have this dtd : http://fast-code.sourceforge.net/template.dtd
But when I include in an xml I get the warning :
No grammar constraints (DTD or XML schema) detected for the document.
The xml is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE templates PUBLIC "//UNKNOWN/" "http://fast-code.sourceforge.net/template.dtd">
<templates>
<template type="type">
<description>Some</description>
<variation></variation>
<variation-field></variation-field>
<allow-multiple-variation></allow-multiple-variation>
<class-pattern></class-pattern>
<getter-setter>setter</getter-setter>
<allowed-file-extensions>java</allowed-file-extensions>
<number-required-classes>1</number-required-classes>
<template-body>
<![CDATA[
Some Data
]]>
</template-body>
</template>
</templates>
Any clue? | 0 |
6,497,553 | 06/27/2011 18:57:02 | 665,446 | 03/18/2011 03:24:45 | 16 | 1 | Exclusive processes, running into a virtual desktop in MACOSX | the problem here it's that I need to run one process inside an Instance of a virtual desktop on MACOSX snow leopard. But for example when I make a test on SPACES which is the default desktop manager wich comes with MACOSX I realize that processes are shared between the desktops, so eventually I could kill any process running inside the other desktops, lets say desktop number 01, from the root desktop. But I would like that my process only could be executed or launched into the virtual desktop that I choose, while the root desktop it's unable to see it or interact with it in any way.
I know that in Microsoft windows this its perfectly reachable, so i think that in MACOSX it could be too.
any idea?
its there some guidelines in order to get this ?
Thanks in advanced. | osx | parallel-processing | desktop | quartz-graphics | osx-leopard | 11/11/2011 09:40:40 | off topic | Exclusive processes, running into a virtual desktop in MACOSX
===
the problem here it's that I need to run one process inside an Instance of a virtual desktop on MACOSX snow leopard. But for example when I make a test on SPACES which is the default desktop manager wich comes with MACOSX I realize that processes are shared between the desktops, so eventually I could kill any process running inside the other desktops, lets say desktop number 01, from the root desktop. But I would like that my process only could be executed or launched into the virtual desktop that I choose, while the root desktop it's unable to see it or interact with it in any way.
I know that in Microsoft windows this its perfectly reachable, so i think that in MACOSX it could be too.
any idea?
its there some guidelines in order to get this ?
Thanks in advanced. | 2 |
6,268,167 | 06/07/2011 16:02:33 | 73,804 | 03/04/2009 17:14:23 | 1,128 | 88 | Help DataBinding to Checkbox in WPF |
I have a CheckBox in a ListBox. I set the ListBox ItemsSource to a List of Agency. Agency has a property
public class Agency
{
public bool isSelected { get; set;}
}
<ListBox> <!-- ItemsSource set in codebehind to List<Agency> -->
<CheckBox IsChecked="{Binding Path=isSelected, Mode=TwoWay}" />
</ListBox>
I have a function to check all the checkboxes
//SelectAll button
private void SelectAll_Click(object sender, RoutedEventArgs e)
{
List<Agency> list = this.AgencySubListBox.ItemsSource as List<Agency>;
for (int i = 0; i < list.Count; i++)
{
Agency d = list[i];
d.isSelected = true;
}
}
When I hit the select all button I expect the checkboxes to all be checked. But nothing happens.
| wpf | data-binding | null | null | null | null | open | Help DataBinding to Checkbox in WPF
===
I have a CheckBox in a ListBox. I set the ListBox ItemsSource to a List of Agency. Agency has a property
public class Agency
{
public bool isSelected { get; set;}
}
<ListBox> <!-- ItemsSource set in codebehind to List<Agency> -->
<CheckBox IsChecked="{Binding Path=isSelected, Mode=TwoWay}" />
</ListBox>
I have a function to check all the checkboxes
//SelectAll button
private void SelectAll_Click(object sender, RoutedEventArgs e)
{
List<Agency> list = this.AgencySubListBox.ItemsSource as List<Agency>;
for (int i = 0; i < list.Count; i++)
{
Agency d = list[i];
d.isSelected = true;
}
}
When I hit the select all button I expect the checkboxes to all be checked. But nothing happens.
| 0 |
7,209,055 | 08/26/2011 18:29:49 | 408,947 | 08/02/2010 18:34:44 | 88 | 12 | custom button on uinavigationbar not respnding | Ive working on an ios app and i am currently trying to add custom buttons to my navbar.
UIBarButtonItem *optButton = [[UIBarButtonItem alloc]
initWithTitle:@"Option1"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(Option:)];
UINavigationItem *item = [[UINavigationItem alloc] initWithTitle:title];
item.leftBarButtonItem = backButton;
[navBar pushNavigationItem:item animated:YES];
[optButton release];
[item release];
-(void)Option:(id)sender{
NSLog(@"****Look at me!*****");
}
Now this works in that it displays the button on my navbar on the left as hoped but nothing happens when i click on the button. it doesnt react to touch at all. How do i get the custom button to react to user input? the navbar is created in code and im not using a nav controller or IB at all. I have the navbars delegate set with
[ navBar setDelegate: self ];
within the view controller that owns it. any help would be appreciated | iphone | objective-c | ios | null | null | null | open | custom button on uinavigationbar not respnding
===
Ive working on an ios app and i am currently trying to add custom buttons to my navbar.
UIBarButtonItem *optButton = [[UIBarButtonItem alloc]
initWithTitle:@"Option1"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(Option:)];
UINavigationItem *item = [[UINavigationItem alloc] initWithTitle:title];
item.leftBarButtonItem = backButton;
[navBar pushNavigationItem:item animated:YES];
[optButton release];
[item release];
-(void)Option:(id)sender{
NSLog(@"****Look at me!*****");
}
Now this works in that it displays the button on my navbar on the left as hoped but nothing happens when i click on the button. it doesnt react to touch at all. How do i get the custom button to react to user input? the navbar is created in code and im not using a nav controller or IB at all. I have the navbars delegate set with
[ navBar setDelegate: self ];
within the view controller that owns it. any help would be appreciated | 0 |
5,014,078 | 02/16/2011 08:23:22 | 615,733 | 02/14/2011 05:16:14 | 1 | 0 | SQL UPDATE : You can't specify target table 'nilai_mhs' for update in FROM clause " | i have query like:
UPDATE nilai_mhs
SET status_nilai = 3
where
id_kode_mk =
(SELECT e.id_kode_mk
FROM nilai_mhs c, tbl_mhs d,master_mk e,tbl_mk_pertahun f
WHERE
c.nim = d.nim
AND
c.id_kode_mk = e.id_kode_mk
AND
e.id_kode_mk = f.id_kode_mk
AND
c.nim = '20081001010125'
AND
c.status_nilai =2
AND
sem_ganjil_genap = 'ganjil')
but the result display error
"You can't specify target table 'nilai_mhs' for update in FROM clause "
Can any body help me...
thanx | mysql | null | null | null | null | null | open | SQL UPDATE : You can't specify target table 'nilai_mhs' for update in FROM clause "
===
i have query like:
UPDATE nilai_mhs
SET status_nilai = 3
where
id_kode_mk =
(SELECT e.id_kode_mk
FROM nilai_mhs c, tbl_mhs d,master_mk e,tbl_mk_pertahun f
WHERE
c.nim = d.nim
AND
c.id_kode_mk = e.id_kode_mk
AND
e.id_kode_mk = f.id_kode_mk
AND
c.nim = '20081001010125'
AND
c.status_nilai =2
AND
sem_ganjil_genap = 'ganjil')
but the result display error
"You can't specify target table 'nilai_mhs' for update in FROM clause "
Can any body help me...
thanx | 0 |
8,735,134 | 01/04/2012 22:39:30 | 69,654 | 02/22/2009 19:42:51 | 1,129 | 44 | Sort by rate from homes with multiple rates | I am developing a holiday rentals site and each home has multiple rates. So I have a table homes and a table rates . When I fetch the using this sql `SELECT * FROM homes INNER JOIN rates ON rates.home_id = homes.id GROUP BY homes.id ORDER BY rates.price ASC` the results are not correct. I get mixed prices and from minimum to maximum. I think the problem is that there are mupltiple rates for each home. So how can I find the minimum rate and sort by it?
Thanks in advance | mysql | sorting | order-by | null | null | null | open | Sort by rate from homes with multiple rates
===
I am developing a holiday rentals site and each home has multiple rates. So I have a table homes and a table rates . When I fetch the using this sql `SELECT * FROM homes INNER JOIN rates ON rates.home_id = homes.id GROUP BY homes.id ORDER BY rates.price ASC` the results are not correct. I get mixed prices and from minimum to maximum. I think the problem is that there are mupltiple rates for each home. So how can I find the minimum rate and sort by it?
Thanks in advance | 0 |
11,747,149 | 07/31/2012 19:02:44 | 1,462,243 | 06/17/2012 18:49:58 | 5 | 1 | jQuery consuming JSON WCF DataContractJsonSerializer | How do I consume the following json web service in jQuery ?
public static string Serialize(object obj)
{
if (obj == null)
{
string temp = "";
temp = "";
obj = temp;
}
var jsonSerializer = new DataContractJsonSerializer(obj.GetType());
string returnValue = "";
using (var memoryStream = new MemoryStream())
{
using (var xmlWriter = JsonReaderWriterFactory.CreateJsonWriter(memoryStream))
{
jsonSerializer.WriteObject(xmlWriter, obj);
xmlWriter.Flush();
returnValue = Encoding.UTF8.GetString(memoryStream.GetBuffer(), 0, (int)memoryStream.Length);
}
}
return returnValue;
}
public string HelloWorld()
{
return "Hello World";
} | c# | jquery | wcf | null | null | 07/31/2012 19:32:06 | not a real question | jQuery consuming JSON WCF DataContractJsonSerializer
===
How do I consume the following json web service in jQuery ?
public static string Serialize(object obj)
{
if (obj == null)
{
string temp = "";
temp = "";
obj = temp;
}
var jsonSerializer = new DataContractJsonSerializer(obj.GetType());
string returnValue = "";
using (var memoryStream = new MemoryStream())
{
using (var xmlWriter = JsonReaderWriterFactory.CreateJsonWriter(memoryStream))
{
jsonSerializer.WriteObject(xmlWriter, obj);
xmlWriter.Flush();
returnValue = Encoding.UTF8.GetString(memoryStream.GetBuffer(), 0, (int)memoryStream.Length);
}
}
return returnValue;
}
public string HelloWorld()
{
return "Hello World";
} | 1 |
11,491,039 | 07/15/2012 10:02:15 | 1,526,722 | 07/15/2012 09:54:26 | 1 | 0 | How to give this context grammar | How to create a context free grammar for L={w∈{a,b,c}*|w has more as than bs} | homework | context-free-grammar | null | null | null | 07/16/2012 12:14:55 | off topic | How to give this context grammar
===
How to create a context free grammar for L={w∈{a,b,c}*|w has more as than bs} | 2 |
4,316,531 | 11/30/2010 17:21:59 | 525,503 | 11/30/2010 17:21:59 | 1 | 0 | Neosurge and Termination of my Service However I Paid | I have a complex problem. I bouth two vps service from neosurge. One of them billed at 15th and other 26th. I paiding form paypal. I paided twice the 15th one. Hence i have funds to pay the 26th one. Neosurge send a bill to say you have to pay $0. My credit card expired however i did not change settings at paypal to prevent paying. however paypal tried to pay my subcription. Today i get a mail from paypal we will send notice to neosurge that the payment failed. Then noesurge terminate my service and delete my data. I opened a ticked any try to talk with "brian easley" Here the chat log:
Now online: We're online now to help!
Tuesday, November 30, 2010
kazim
hi, i am angry that my service terminated
Brian Easley has joined
You are currently being served by
Brian Easley
Brian Easley [agent]
Hello
I'm looking into the issue..
kazim
i paid twice at 15.11.2010 then
Brian Easley [agent]
It seems the billing system has made an error and automatically terminated your VPS :(
kazim
if i loose my any data
i will be very very angry
Brian Easley [agent]
I'm looking to see if we can restore.
It doesn't look like a backup was made :(
kazim
what!!!!
how can you delete my data if i paid you!
Brian Easley [agent]
I'm sorry
I can provide a few months of free service
kazim
no it can not resotre my important mails my datas
Brian Easley [agent]
I understand the frustration :(
I am very sorry
kazim
what i did? i paid, every bills.
and you said
that sorry
we deleted
there is an error.
Brian Easley [agent]
A mistake was made on our end with the paypal cancellation
I can provide you with 6 months of free service if this can help
kazim
restore my data or i will leave all my services. what can i do? i see that you can not provide any guaranttee for my datas if your system have problems. after three months you can delete my datas again you will say: sorry there is an error.
------------
I paided. I did not do anytihng for termination. It is not my fault. However they deleted the data without saying anything like "we will delete your data please check them". I live at Turkey. I wanna go law for my data deletion. It give damage to me. I lost a lot of mail etc. How can I do? | service | payment | law | null | null | 12/01/2010 01:44:21 | off topic | Neosurge and Termination of my Service However I Paid
===
I have a complex problem. I bouth two vps service from neosurge. One of them billed at 15th and other 26th. I paiding form paypal. I paided twice the 15th one. Hence i have funds to pay the 26th one. Neosurge send a bill to say you have to pay $0. My credit card expired however i did not change settings at paypal to prevent paying. however paypal tried to pay my subcription. Today i get a mail from paypal we will send notice to neosurge that the payment failed. Then noesurge terminate my service and delete my data. I opened a ticked any try to talk with "brian easley" Here the chat log:
Now online: We're online now to help!
Tuesday, November 30, 2010
kazim
hi, i am angry that my service terminated
Brian Easley has joined
You are currently being served by
Brian Easley
Brian Easley [agent]
Hello
I'm looking into the issue..
kazim
i paid twice at 15.11.2010 then
Brian Easley [agent]
It seems the billing system has made an error and automatically terminated your VPS :(
kazim
if i loose my any data
i will be very very angry
Brian Easley [agent]
I'm looking to see if we can restore.
It doesn't look like a backup was made :(
kazim
what!!!!
how can you delete my data if i paid you!
Brian Easley [agent]
I'm sorry
I can provide a few months of free service
kazim
no it can not resotre my important mails my datas
Brian Easley [agent]
I understand the frustration :(
I am very sorry
kazim
what i did? i paid, every bills.
and you said
that sorry
we deleted
there is an error.
Brian Easley [agent]
A mistake was made on our end with the paypal cancellation
I can provide you with 6 months of free service if this can help
kazim
restore my data or i will leave all my services. what can i do? i see that you can not provide any guaranttee for my datas if your system have problems. after three months you can delete my datas again you will say: sorry there is an error.
------------
I paided. I did not do anytihng for termination. It is not my fault. However they deleted the data without saying anything like "we will delete your data please check them". I live at Turkey. I wanna go law for my data deletion. It give damage to me. I lost a lot of mail etc. How can I do? | 2 |
5,559,099 | 04/05/2011 22:02:00 | 460,448 | 09/28/2010 10:03:03 | 55 | 1 | Best iphone and iPad HTML5 bookd | Witch books would you recommend reading about html5, css & javascript iPhone and iPad development? | iphone | ipad | html5 | books | null | 04/05/2011 22:31:38 | off topic | Best iphone and iPad HTML5 bookd
===
Witch books would you recommend reading about html5, css & javascript iPhone and iPad development? | 2 |
6,777,784 | 07/21/2011 14:34:10 | 856,167 | 07/21/2011 14:34:10 | 1 | 0 | Is there a free C++ IDE for Linux with these features? | 1. List all methods in a class, preferably with options to enable/disable methods from superclasses.
2. Option for a "go to source" once you select a variable.
I'm trying to use <a href="http://www.cgal.org/">CGAL</a> and I can't make sense of a whole lot from the documentation or the compiler errors, despite using as many flags as possible in GCC, so I downloaded the source code to take a look at it to try to see if I can find the methods I need. These two options would make things a lot easier.
When I used netbeans for Java it had both options, so maybe it'd have for C++ as well? Or am I expecting too much out of it? Or maybe another IDE would work better? I have no idea. Normally I just use gedit with make. | c++ | linux | ide | cgal | null | 07/22/2011 04:08:06 | off topic | Is there a free C++ IDE for Linux with these features?
===
1. List all methods in a class, preferably with options to enable/disable methods from superclasses.
2. Option for a "go to source" once you select a variable.
I'm trying to use <a href="http://www.cgal.org/">CGAL</a> and I can't make sense of a whole lot from the documentation or the compiler errors, despite using as many flags as possible in GCC, so I downloaded the source code to take a look at it to try to see if I can find the methods I need. These two options would make things a lot easier.
When I used netbeans for Java it had both options, so maybe it'd have for C++ as well? Or am I expecting too much out of it? Or maybe another IDE would work better? I have no idea. Normally I just use gedit with make. | 2 |
7,078,217 | 08/16/2011 12:30:21 | 355,507 | 06/01/2010 14:20:21 | 919 | 49 | UIButton setImage not working? | I have following code and when I call this method, it doesn't change the image of the button although there are images in the resources.
-(void)changeButton:(NSString*)button withURL:(NSString*)url {
timetableURL = url;
UIImage *btnImage;
if ([button isEqual:@"Browser"]) {
btnImage = [UIImage imageNamed:@"browser-button.png"];
[safariBtn addTarget:self action:@selector(onSafariButtonPress:) forControlEvents:UIControlEventTouchUpInside];
}
else if ([button isEqual:@"Timetable"]) {
btnImage = [UIImage imageNamed:@"browser-timetable.png"];
[safariBtn addTarget:self action:@selector(onTimetableButtonPress:) forControlEvents:UIControlEventTouchUpInside];
}
[safariBtn setImage:btnImage forState:UIControlStateNormal];
[btnImage release];
} | iphone | objective-c | uibutton | uiimage | null | null | open | UIButton setImage not working?
===
I have following code and when I call this method, it doesn't change the image of the button although there are images in the resources.
-(void)changeButton:(NSString*)button withURL:(NSString*)url {
timetableURL = url;
UIImage *btnImage;
if ([button isEqual:@"Browser"]) {
btnImage = [UIImage imageNamed:@"browser-button.png"];
[safariBtn addTarget:self action:@selector(onSafariButtonPress:) forControlEvents:UIControlEventTouchUpInside];
}
else if ([button isEqual:@"Timetable"]) {
btnImage = [UIImage imageNamed:@"browser-timetable.png"];
[safariBtn addTarget:self action:@selector(onTimetableButtonPress:) forControlEvents:UIControlEventTouchUpInside];
}
[safariBtn setImage:btnImage forState:UIControlStateNormal];
[btnImage release];
} | 0 |
8,702,273 | 01/02/2012 14:58:25 | 844,872 | 07/14/2011 15:13:52 | 381 | 2 | Will the new Twitter framework work for iOS 4.3 | Will the new `Twitter API` (framework) included in `iOS 5` work for `iOS 4.3` and above ? | iphone | objective-c | twitter | ios5 | null | null | open | Will the new Twitter framework work for iOS 4.3
===
Will the new `Twitter API` (framework) included in `iOS 5` work for `iOS 4.3` and above ? | 0 |
8,693,194 | 01/01/2012 12:58:10 | 1,125,079 | 01/01/2012 12:55:07 | 1 | 0 | what are weaknesses of Object-Relational database | what are weaknesses of ***Object-relational*** model? | database | dbms | object-relational-model | null | null | 01/01/2012 13:24:55 | not constructive | what are weaknesses of Object-Relational database
===
what are weaknesses of ***Object-relational*** model? | 4 |
1,295,104 | 08/18/2009 16:43:56 | 38,734 | 11/18/2008 23:03:39 | 95 | 3 | SharePoint Approval | I need to add sharepoint approval to a list... and I was hoping to use the default approval process... but... I need to run some code once an item is approved. Do I have to then use VS to create a custom workflow? | sharepoint2007 | sharepoint | null | null | null | null | open | SharePoint Approval
===
I need to add sharepoint approval to a list... and I was hoping to use the default approval process... but... I need to run some code once an item is approved. Do I have to then use VS to create a custom workflow? | 0 |
2,363,116 | 03/02/2010 12:42:56 | 63,309 | 02/06/2009 13:02:26 | 5,448 | 226 | Teaching Python to a Law Student | Im trying to teach python to a Law student (happens to be my fiance). She doesn't know anything about programming.
I was thinking on starting with [dive into python][1], but i'm worried most not about the python part, but the "she does not know anything about programming" problem.
How can I keep her interested? I'm worried because she will have to learn if/else - poo - functions and stuff as she learns the python syntax, and she might get bored.
Maybe a project we can work together? Some simple django app?
Any ideas will be appreciated.
Related? :[http://stackoverflow.com/questions/111857/what-did-you-use-to-teach-yourself-python][2]
[1]: http://diveintopython.org/
[2]: http://stackoverflow.com/questions/111857/what-did-you-use-to-teach-yourself-python | python | teaching | non-programmers | null | null | 03/08/2012 23:01:08 | not constructive | Teaching Python to a Law Student
===
Im trying to teach python to a Law student (happens to be my fiance). She doesn't know anything about programming.
I was thinking on starting with [dive into python][1], but i'm worried most not about the python part, but the "she does not know anything about programming" problem.
How can I keep her interested? I'm worried because she will have to learn if/else - poo - functions and stuff as she learns the python syntax, and she might get bored.
Maybe a project we can work together? Some simple django app?
Any ideas will be appreciated.
Related? :[http://stackoverflow.com/questions/111857/what-did-you-use-to-teach-yourself-python][2]
[1]: http://diveintopython.org/
[2]: http://stackoverflow.com/questions/111857/what-did-you-use-to-teach-yourself-python | 4 |
4,708,998 | 01/17/2011 00:12:50 | 238,948 | 11/15/2008 04:36:47 | 1,876 | 45 | How to write a Lucene.Net RAMDirectory back to disk? | I have been working with Lucene.Net and `FSDirectory` for some time now, so I am familiar with the basics of working with it. However, I am now attempting to rewrite some key code by using `RAMDirectory`'s when possible to speed up index use.
Loading an existing FSDirectory into a RAMDirectory is easy enough, just by using the appropriate constructor. However, I can't seem to figure out how I write it back to disk again.
I've seen some mention of a static Directory.copy() method in the Java version, but this doesn't seem to exist in Lucene.Net.
Is this possible? | c# | .net | lucene | lucene.net | ramdirectory | null | open | How to write a Lucene.Net RAMDirectory back to disk?
===
I have been working with Lucene.Net and `FSDirectory` for some time now, so I am familiar with the basics of working with it. However, I am now attempting to rewrite some key code by using `RAMDirectory`'s when possible to speed up index use.
Loading an existing FSDirectory into a RAMDirectory is easy enough, just by using the appropriate constructor. However, I can't seem to figure out how I write it back to disk again.
I've seen some mention of a static Directory.copy() method in the Java version, but this doesn't seem to exist in Lucene.Net.
Is this possible? | 0 |
5,542,268 | 04/04/2011 17:46:29 | 691,550 | 04/04/2011 17:40:57 | 1 | 0 | Do I need the "Android unlocked dev phone" to test my android projects? | I bought an Android phone to use flash, but for my surprise, flash does not run on adroid devices with arm v6. So I do want to make something useful and develop for it.
Do it need to be "unlocked" for this purpose?
Thanks, | android | null | null | null | null | null | open | Do I need the "Android unlocked dev phone" to test my android projects?
===
I bought an Android phone to use flash, but for my surprise, flash does not run on adroid devices with arm v6. So I do want to make something useful and develop for it.
Do it need to be "unlocked" for this purpose?
Thanks, | 0 |
5,465,251 | 03/28/2011 21:24:13 | 680,981 | 03/28/2011 21:19:17 | 1 | 0 | How come when i enter gcc -framework foundation files -o progname into gnu shell it says command not found? | can somone figure this out i used a guide and did everthing and it still wont work | c | gcc | gnu | null | null | 03/28/2011 22:57:43 | not a real question | How come when i enter gcc -framework foundation files -o progname into gnu shell it says command not found?
===
can somone figure this out i used a guide and did everthing and it still wont work | 1 |
718,780 | 04/05/2009 11:20:49 | 6,164 | 09/12/2008 18:11:51 | 206 | 10 | Conversion tool comparisons for visual basic 6.0 | Has anyone here used either of the following (or any other tool) to convert your vb6 code to a .net language?
**Artinsoft's upgrade companion** (converts to c# and vb.net)
**vbmigration partner** (converts to vb.net)
How effective were they and what size project did you convert?
How much work was left to do afterwards?
How happy are you with the resultant .net project.
What was the support like?
Is there a support forum anywhere for users of tools like these, neither
vendor seems to offer one.
What did they charge, their prices are not published and I have heard wildly differing prices from different sources for both the above examples | vb6-conversion | vb6-migration | vb6 | vb.net | c# | 09/12/2011 03:44:02 | not constructive | Conversion tool comparisons for visual basic 6.0
===
Has anyone here used either of the following (or any other tool) to convert your vb6 code to a .net language?
**Artinsoft's upgrade companion** (converts to c# and vb.net)
**vbmigration partner** (converts to vb.net)
How effective were they and what size project did you convert?
How much work was left to do afterwards?
How happy are you with the resultant .net project.
What was the support like?
Is there a support forum anywhere for users of tools like these, neither
vendor seems to offer one.
What did they charge, their prices are not published and I have heard wildly differing prices from different sources for both the above examples | 4 |
2,200,828 | 02/04/2010 15:24:57 | 40,933 | 11/26/2008 06:37:26 | 2,479 | 63 | How to insert multiple row of data to sqlite database by iphone programming | I am new to iphone development.I want to insert multiple values into my sqlite3 database and display the content in the tableview.I am able to insert single row of data in to my database and retrieve it and display the data but i am not able to do with inserting multiple row of data.Here is my code...
-(void)initializeTableData{
sqlite3 *db=[DatabaseTestAppDelegate getNewDBConnection];
sqlite3_stmt *statement=nil;
sqlite3_stmt *statement1=nil;
if (insert_MyObj_statement == nil)
{
const char *sql2="DELETE FROM user";
sqlite3_prepare_v2(db, sql2, -1, &statement1, NULL);
sqlite3_step(statement1);
//const char *sql1 = "INSERT INTO user (id,name) VALUES ('0','ash'),('3','karna'),('2','pugal'),('5','siva')";
const char *sql1 = "INSERT INTO user (id,name) VALUES ('0','xxx')";
int result=sqlite3_prepare_v2(db, sql1, -1, &insert_MyObj_statement, NULL);
NSAssert1(result == SQLITE_OK, @"addMyObjectIntoDatabase: failed to prepare statement with err '%s'", sqlite3_errmsg(db));
}
sqlite3_step(insert_MyObj_statement);
const char *sql="select * from user";
if(sqlite3_prepare_v2(db, sql, -1, &statement, NULL)!=SQLITE_OK)
NSAssert1(0,@"error in preparing staement",sqlite3_errmsg(db));
else{
while(sqlite3_step(statement)==SQLITE_ROW)
[tableData addObject:[NSString stringWithFormat:@"%s",(char*)sqlite3_column_text(statement,1)]];
}
sqlite3_finalize(statement);
}
Is there any other way to insert multiple row of data in to my table .Please help me out.Thanks.
| iphone | objective-c | sqlite3 | insert | null | null | open | How to insert multiple row of data to sqlite database by iphone programming
===
I am new to iphone development.I want to insert multiple values into my sqlite3 database and display the content in the tableview.I am able to insert single row of data in to my database and retrieve it and display the data but i am not able to do with inserting multiple row of data.Here is my code...
-(void)initializeTableData{
sqlite3 *db=[DatabaseTestAppDelegate getNewDBConnection];
sqlite3_stmt *statement=nil;
sqlite3_stmt *statement1=nil;
if (insert_MyObj_statement == nil)
{
const char *sql2="DELETE FROM user";
sqlite3_prepare_v2(db, sql2, -1, &statement1, NULL);
sqlite3_step(statement1);
//const char *sql1 = "INSERT INTO user (id,name) VALUES ('0','ash'),('3','karna'),('2','pugal'),('5','siva')";
const char *sql1 = "INSERT INTO user (id,name) VALUES ('0','xxx')";
int result=sqlite3_prepare_v2(db, sql1, -1, &insert_MyObj_statement, NULL);
NSAssert1(result == SQLITE_OK, @"addMyObjectIntoDatabase: failed to prepare statement with err '%s'", sqlite3_errmsg(db));
}
sqlite3_step(insert_MyObj_statement);
const char *sql="select * from user";
if(sqlite3_prepare_v2(db, sql, -1, &statement, NULL)!=SQLITE_OK)
NSAssert1(0,@"error in preparing staement",sqlite3_errmsg(db));
else{
while(sqlite3_step(statement)==SQLITE_ROW)
[tableData addObject:[NSString stringWithFormat:@"%s",(char*)sqlite3_column_text(statement,1)]];
}
sqlite3_finalize(statement);
}
Is there any other way to insert multiple row of data in to my table .Please help me out.Thanks.
| 0 |
7,264,703 | 08/31/2011 23:40:46 | 922,603 | 08/31/2011 23:35:36 | 1 | 0 | Pass variable in page which has pagination | I am having a page (epipla.php) which is displaying some data (names of companies & their information) and when a user clicks on a company name, he gets redirected in another page (meta.php). On the redirection the epipla.php passes the company id via a link which contains the id (example : <a href="meta.php?id={$row['id']}"></a>).
The meta.php displays the company's information and then the comments added for the certain company.
The comments are displayed using pagination. And here comes the problem. The first page works just fine displaying all the 4 first comments but when i click on the second or any other next page to see the rest comments i got the error :
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\epipla\meta.php on line 36
Any help would be appreciated,
Thanks in advance! | php | null | null | null | null | 09/01/2011 11:20:25 | not a real question | Pass variable in page which has pagination
===
I am having a page (epipla.php) which is displaying some data (names of companies & their information) and when a user clicks on a company name, he gets redirected in another page (meta.php). On the redirection the epipla.php passes the company id via a link which contains the id (example : <a href="meta.php?id={$row['id']}"></a>).
The meta.php displays the company's information and then the comments added for the certain company.
The comments are displayed using pagination. And here comes the problem. The first page works just fine displaying all the 4 first comments but when i click on the second or any other next page to see the rest comments i got the error :
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\epipla\meta.php on line 36
Any help would be appreciated,
Thanks in advance! | 1 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.