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
1,672,069
11/04/2009 06:52:50
202,394
11/04/2009 06:52:50
1
0
if else condition for update a table in a storeprocedure in sqlserver2005
actually i have done a table .i want to update some data if certain specified case else these fields r not updated.wat can i write code in a storeprocedure for this .please kindly answer me as soon as possible with my email id.
update
null
null
null
null
null
open
if else condition for update a table in a storeprocedure in sqlserver2005 === actually i have done a table .i want to update some data if certain specified case else these fields r not updated.wat can i write code in a storeprocedure for this .please kindly answer me as soon as possible with my email id.
0
7,871,342
10/24/2011 04:36:08
1,010,240
10/24/2011 04:29:32
1
0
Where can I find Google+ code repository?
First, is Google+ project open source? I readed some time ago that google+ is entirely written in google closure and I would like to ponderate a real big enterprise implementation of closure as could be google+.
open-source
closures
google-code
google-plus
null
10/24/2011 15:09:51
off topic
Where can I find Google+ code repository? === First, is Google+ project open source? I readed some time ago that google+ is entirely written in google closure and I would like to ponderate a real big enterprise implementation of closure as could be google+.
2
5,683,813
04/16/2011 01:16:02
552,067
12/23/2010 06:36:15
556
22
make PHP variable or array not exist out of the function where it was set.
I have the following php functions. function a() { $var = "variable"; return $var; } function b() { $arr = array('a','r','r','a','y'); return $arr; } And some more PHP out of those functions. $var = a(); $arr = b(); print_r($var); print_r($arr); `$var` and `$arr` are defined in functions, but then are redefined outside of the functions. How do I make it so that the variables and arrays out of the functions are separate from the ones that are in the functions, so that the variables and arrays in the function don't exist out of the function?
php
arrays
variables
null
null
null
open
make PHP variable or array not exist out of the function where it was set. === I have the following php functions. function a() { $var = "variable"; return $var; } function b() { $arr = array('a','r','r','a','y'); return $arr; } And some more PHP out of those functions. $var = a(); $arr = b(); print_r($var); print_r($arr); `$var` and `$arr` are defined in functions, but then are redefined outside of the functions. How do I make it so that the variables and arrays out of the functions are separate from the ones that are in the functions, so that the variables and arrays in the function don't exist out of the function?
0
1,546,267
10/09/2009 21:57:07
99,894
05/02/2009 15:41:42
8
0
MySQL DELIMITER and DECLARE use?
I am trying to port some code from MS-SQL to MySQL and there is this code that declares a variable and then executes some select statements - it looks like: USE MarketDB; GO DECLARE @Q0 VARCHAR(16); DECLARE @Q1 VARCHAR(16); SET @Q0 = '05/30/2008' SET @Q1 = '08/29/2008' Now I try to convert this to MySQL and fail totally. Why does the following fail with a syntax error? DELIMITER ;// BEGIN DECLARE Q0 VARCHAR(16); SET Q0 = '05/30/2008'; END; ;// DELIMITER ; Thanks!
mysql
sql
null
null
null
null
open
MySQL DELIMITER and DECLARE use? === I am trying to port some code from MS-SQL to MySQL and there is this code that declares a variable and then executes some select statements - it looks like: USE MarketDB; GO DECLARE @Q0 VARCHAR(16); DECLARE @Q1 VARCHAR(16); SET @Q0 = '05/30/2008' SET @Q1 = '08/29/2008' Now I try to convert this to MySQL and fail totally. Why does the following fail with a syntax error? DELIMITER ;// BEGIN DECLARE Q0 VARCHAR(16); SET Q0 = '05/30/2008'; END; ;// DELIMITER ; Thanks!
0
3,091,743
06/22/2010 09:13:41
316,465
04/14/2010 12:09:26
213
0
ada programming doubts?
I have two ada files shown below **A1.ada** procedure KOR616 is I : Integer := 3; procedure Lowest_Level( Int : in out Integer ); pragma Inline( Lowest_Level ); procedure Null_Proc is begin null; end; procedure Lowest_Level( Int : in out Integer ) is begin if Int > 0 then Int := 7; Null_Proc; else Int := Int + 1; end if; end; begin while I < 7 loop Lowest_Level( I ); end loop; end; Next shown below is **B1.ada** procedure Lowest_Level( Int : in out Integer ); pragma Inline( Lowest_Level ); procedure Lowest_Level( Int : in out Integer ) is procedure Null_Proc is begin null; end; begin if Int > 0 then Int := 7; Null_Proc; else Int := Int + 1; end if; end Lowest_Level; with Lowest_Level; procedure KOR618 is I : Integer := 3; begin while I < 7 loop Lowest_Level( I ); end loop; end; Now my doubt is is there any difference between these two files? Thanks Maddy
ada
null
null
null
null
null
open
ada programming doubts? === I have two ada files shown below **A1.ada** procedure KOR616 is I : Integer := 3; procedure Lowest_Level( Int : in out Integer ); pragma Inline( Lowest_Level ); procedure Null_Proc is begin null; end; procedure Lowest_Level( Int : in out Integer ) is begin if Int > 0 then Int := 7; Null_Proc; else Int := Int + 1; end if; end; begin while I < 7 loop Lowest_Level( I ); end loop; end; Next shown below is **B1.ada** procedure Lowest_Level( Int : in out Integer ); pragma Inline( Lowest_Level ); procedure Lowest_Level( Int : in out Integer ) is procedure Null_Proc is begin null; end; begin if Int > 0 then Int := 7; Null_Proc; else Int := Int + 1; end if; end Lowest_Level; with Lowest_Level; procedure KOR618 is I : Integer := 3; begin while I < 7 loop Lowest_Level( I ); end loop; end; Now my doubt is is there any difference between these two files? Thanks Maddy
0
9,312,835
02/16/2012 14:16:40
482,702
10/21/2010 08:02:16
55
2
CXF 2.5 + Spring 3.0.6 on WAS 7
im trying to use CXF runtime on a WAS 7. I first created the interfaces from a wsdl with the cxf maven plugin and creating the proxy with the JaxWsProxyFactoryBean from cxf. But on application startup I get the following error: I tried several things, like setting classloader to parentLast or disabling IbmJaxWsEngine.. I also read that it could depend on the windows 256 char limitation of files!? Can anyone help me? > Caused by: java.lang.VerifyError at > com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:259) > at java.lang.J9VMInternals.initializeImpl(Native Method) at > java.lang.J9VMInternals.initialize(J9VMInternals.java:200) at > com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:61) > at > com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:129) > at > com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:81) > at > com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:152) > at > com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:89) > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:456) > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302) > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140) > at > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154) > at > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) at > javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:263) at > javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:250) at > javax.xml.bind.ContextFinder.find(ContextFinder.java:447) at > javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:652) at > org.apache.cxf.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:268) > at > org.apache.cxf.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:267) > at > java.security.AccessController.doPrivileged(AccessController.java:251) > at > org.apache.cxf.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:266) > at > org.apache.cxf.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:172) > at > org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:419) > at > org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:291) > at > org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:445) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:682) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:508) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:242) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202) > at > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) > at > org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90) > at > org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:155) > at > org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:153) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) at > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:145) > ... 122 more
java
spring
websphere
jax-ws
cxf
null
open
CXF 2.5 + Spring 3.0.6 on WAS 7 === im trying to use CXF runtime on a WAS 7. I first created the interfaces from a wsdl with the cxf maven plugin and creating the proxy with the JaxWsProxyFactoryBean from cxf. But on application startup I get the following error: I tried several things, like setting classloader to parentLast or disabling IbmJaxWsEngine.. I also read that it could depend on the windows 256 char limitation of files!? Can anyone help me? > Caused by: java.lang.VerifyError at > com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:259) > at java.lang.J9VMInternals.initializeImpl(Native Method) at > java.lang.J9VMInternals.initialize(J9VMInternals.java:200) at > com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:61) > at > com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:129) > at > com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:81) > at > com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:152) > at > com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:89) > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:456) > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302) > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140) > at > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154) > at > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) at > javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:263) at > javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:250) at > javax.xml.bind.ContextFinder.find(ContextFinder.java:447) at > javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:652) at > org.apache.cxf.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:268) > at > org.apache.cxf.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:267) > at > java.security.AccessController.doPrivileged(AccessController.java:251) > at > org.apache.cxf.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:266) > at > org.apache.cxf.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:172) > at > org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:419) > at > org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:291) > at > org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:445) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:682) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:508) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:242) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202) > at > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) > at > org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90) > at > org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:155) > at > org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:153) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) at > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:145) > ... 122 more
0
11,537,919
07/18/2012 09:09:17
452,216
09/20/2010 00:38:21
300
0
Allow subscriber list registration but prevent scripts
Users on my site have a publicly-visible profile where they accept subscriptions via a simple HTML form. Someone could write a script that registers emails constantly to destroy/flood a user's list. This could be mitigated by using IP-based rate-limiting, but this solution does not work if the script runs in a distributed environment. The only strategy I can think of is using a CAPTCHA, but I'd really like to avoid doing this. What else can I try?
security
subscriptions
ddos
malicious
null
null
open
Allow subscriber list registration but prevent scripts === Users on my site have a publicly-visible profile where they accept subscriptions via a simple HTML form. Someone could write a script that registers emails constantly to destroy/flood a user's list. This could be mitigated by using IP-based rate-limiting, but this solution does not work if the script runs in a distributed environment. The only strategy I can think of is using a CAPTCHA, but I'd really like to avoid doing this. What else can I try?
0
9,512,012
03/01/2012 07:07:23
545,966
12/17/2010 11:02:08
70
0
PHP CURL not working on add to basket
I am trying to CURL this URL so that it automatically adds a product to a basket http://www.juno.co.uk/cart/add/440551/01/ When I follow the URL in the browser it adds the product to basket When I CURL it it doesnt add it This is my CURL code $url = "http://www.juno.co.uk/cart/add/440551/01/"; $c = curl_init(); curl_setopt($c, CURLOPT_URL,"$url"); curl_setopt($c,CURLOPT_POST,true); curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 50); curl_setopt($c,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'); curl_setopt($c, CURLOPT_RETURNTRANSFER,1); $complete = curl_exec($c); curl_close($c); Any ideas? CURL is definitely set up on my server as I am successfully using it for other scripts. Thanks in advance
php
curl
null
null
null
null
open
PHP CURL not working on add to basket === I am trying to CURL this URL so that it automatically adds a product to a basket http://www.juno.co.uk/cart/add/440551/01/ When I follow the URL in the browser it adds the product to basket When I CURL it it doesnt add it This is my CURL code $url = "http://www.juno.co.uk/cart/add/440551/01/"; $c = curl_init(); curl_setopt($c, CURLOPT_URL,"$url"); curl_setopt($c,CURLOPT_POST,true); curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 50); curl_setopt($c,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'); curl_setopt($c, CURLOPT_RETURNTRANSFER,1); $complete = curl_exec($c); curl_close($c); Any ideas? CURL is definitely set up on my server as I am successfully using it for other scripts. Thanks in advance
0
7,886,696
10/25/2011 08:36:07
1,006,822
10/21/2011 09:39:48
6
0
Website Page displayed path
A newbie question...sorry for that. I've found some tips but I would need your lights. Many sites allows to create a page on their website like: http://www.foe.com/robert What is needed to configure not to have page displayed like : http://www.foe.com/profiles/robert.html Do I have to manage redirections on my server ? If so, could you tell me how ? Thanks very much for your help.
redirect
null
null
null
null
10/25/2011 11:48:09
not a real question
Website Page displayed path === A newbie question...sorry for that. I've found some tips but I would need your lights. Many sites allows to create a page on their website like: http://www.foe.com/robert What is needed to configure not to have page displayed like : http://www.foe.com/profiles/robert.html Do I have to manage redirections on my server ? If so, could you tell me how ? Thanks very much for your help.
1
2,929,936
05/28/2010 14:38:17
315,491
04/13/2010 13:05:10
682
51
Looking for a good book on SQL
Was wondering if any one could recommend any and all books for learning more about SQL and DB concepts? I found this [one][1] while browsing SO, but was wondering if anyone had other or more up to date recommendations? [1]: http://oreilly.com/catalog/9780596009762/
sql
books
null
null
null
06/04/2012 09:18:21
not constructive
Looking for a good book on SQL === Was wondering if any one could recommend any and all books for learning more about SQL and DB concepts? I found this [one][1] while browsing SO, but was wondering if anyone had other or more up to date recommendations? [1]: http://oreilly.com/catalog/9780596009762/
4
4,708,044
01/16/2011 21:07:46
478,442
10/17/2010 09:41:30
17
0
Problem with mailto links in Gmail
I've encountered a problem with Gmail's web application. For some reason, the mailto links doesn't work when I try to add the body into the link. The links works fine as long as the & separator for the body is not used. For example: href="mailto:?subject=test&body=this is a test" - Doesn't work href="mailto:?subject=testbody=this is a test" - Does work but, obviously, it doesn't generate the desired result as everything goes to the subject. I am running Vista 64bit and I've tried FF, Chrome and IE. Also, I've noticed a difference between how Gmail renders my mail in my Gmail account and Google Apps account. When i view the same email on my iPhone & Outlook everything seems to work fine. Any help will be appreciated.
html
email
hyperlink
gmail
mailto
null
open
Problem with mailto links in Gmail === I've encountered a problem with Gmail's web application. For some reason, the mailto links doesn't work when I try to add the body into the link. The links works fine as long as the & separator for the body is not used. For example: href="mailto:?subject=test&body=this is a test" - Doesn't work href="mailto:?subject=testbody=this is a test" - Does work but, obviously, it doesn't generate the desired result as everything goes to the subject. I am running Vista 64bit and I've tried FF, Chrome and IE. Also, I've noticed a difference between how Gmail renders my mail in my Gmail account and Google Apps account. When i view the same email on my iPhone & Outlook everything seems to work fine. Any help will be appreciated.
0
9,851,903
03/24/2012 12:49:03
461,810
09/29/2010 14:04:36
3
0
MVC component GUI approach
I am interested in general approach for building interactive GUI using MVC3. The idea is to build set of different components that can be integrated (plugged in) into various scenarios. Each **Component** MUST have it's own model definition, controller and views. Component encapsulates not just the view but also behavior through it's controller. All internal implementation details, model, behavior, etc... must reside inside component, so that component becomes independent, modular - black box. This allows component to be changed without breaking anything in context in which component is used. Context in which component runs must not make any assumptions about internal details of component implementation. On the other side the component does not make any assumptions about context in which it will be used. Finally, the component must provide mechanism to "communicate" or "interact" with outside world. Beside internals, component must provide some kind of "external" interface (like parameters, data, functions, events whatever...) which would allow component to be integrated into execution context. The **Context** (or scenario) is part which contains components. Now, the basic challenge for the context is to manage interaction between components. Real-world **Categories component** example: Component displays list of categories and allows user to perform various actions such as sorting, paging and record selection. Internally, it has it's own model which stores relevant information like current page, sort, selection, etc... Internally, it implements all required actions (for basic render, for user actions response, etc...) in it's own controller. Internally, it handles model state persistence in the view and model state restore in it's own controller. Real-world **Products component** example: Component displays list of products and allows user to perform various actions such as sorting, paging and record selection. Internally, it has it's own model which stores relevant information like current page, sort, selection, etc... Internally, it implements all required actions (for basic render, for user actions response, etc...) in it's own controller. Internally, it handles model state persistence in the view and model state restore in it's own controller. Real-world **Dashboard page** (context, scenario) example: Page displays both Categories and Products components. Products component displays all products for the currently selected category and thus must provide external interface (parameter or something) to receive selected category identifier from the context. Categories component must provide some kind of external interface so that context can act when selected category changes and provide selected category identifier for the products component. Technically, communication approach for page updates would mostly go through AJAX but if this is possible without AJAX, it would be even better. In the case of AJAX, I **would like** solution which uses server side controller(s) which decides and renders what should be updated on the client (JSON or something). I would **not like** solution in the client script (client side "like" controller) which decides what actions to call and what parts of page to update - this as said in previous paragraph must be decided by controller(s) on the server. **Important:** It is not necessarily for the components to work when directly called via some route. How would you generally implement described system?
asp.net-mvc-3
mvc
components
modularity
interaction
null
open
MVC component GUI approach === I am interested in general approach for building interactive GUI using MVC3. The idea is to build set of different components that can be integrated (plugged in) into various scenarios. Each **Component** MUST have it's own model definition, controller and views. Component encapsulates not just the view but also behavior through it's controller. All internal implementation details, model, behavior, etc... must reside inside component, so that component becomes independent, modular - black box. This allows component to be changed without breaking anything in context in which component is used. Context in which component runs must not make any assumptions about internal details of component implementation. On the other side the component does not make any assumptions about context in which it will be used. Finally, the component must provide mechanism to "communicate" or "interact" with outside world. Beside internals, component must provide some kind of "external" interface (like parameters, data, functions, events whatever...) which would allow component to be integrated into execution context. The **Context** (or scenario) is part which contains components. Now, the basic challenge for the context is to manage interaction between components. Real-world **Categories component** example: Component displays list of categories and allows user to perform various actions such as sorting, paging and record selection. Internally, it has it's own model which stores relevant information like current page, sort, selection, etc... Internally, it implements all required actions (for basic render, for user actions response, etc...) in it's own controller. Internally, it handles model state persistence in the view and model state restore in it's own controller. Real-world **Products component** example: Component displays list of products and allows user to perform various actions such as sorting, paging and record selection. Internally, it has it's own model which stores relevant information like current page, sort, selection, etc... Internally, it implements all required actions (for basic render, for user actions response, etc...) in it's own controller. Internally, it handles model state persistence in the view and model state restore in it's own controller. Real-world **Dashboard page** (context, scenario) example: Page displays both Categories and Products components. Products component displays all products for the currently selected category and thus must provide external interface (parameter or something) to receive selected category identifier from the context. Categories component must provide some kind of external interface so that context can act when selected category changes and provide selected category identifier for the products component. Technically, communication approach for page updates would mostly go through AJAX but if this is possible without AJAX, it would be even better. In the case of AJAX, I **would like** solution which uses server side controller(s) which decides and renders what should be updated on the client (JSON or something). I would **not like** solution in the client script (client side "like" controller) which decides what actions to call and what parts of page to update - this as said in previous paragraph must be decided by controller(s) on the server. **Important:** It is not necessarily for the components to work when directly called via some route. How would you generally implement described system?
0
9,777,023
03/19/2012 20:01:35
809,745
06/22/2011 05:49:11
319
2
Why some "Types" are References while some are "Primitives"
Types like Movieclip , String, Object act as references when declared and defined, while types like int, Number are primitives. Why such difference has been made. Why not all of them can be primitives ?
actionscript-3
null
null
null
null
03/19/2012 21:31:00
not a real question
Why some "Types" are References while some are "Primitives" === Types like Movieclip , String, Object act as references when declared and defined, while types like int, Number are primitives. Why such difference has been made. Why not all of them can be primitives ?
1
7,561,368
09/26/2011 21:11:16
610,090
02/09/2011 16:37:24
29
7
Android AutoCompleteTextView displays suggestions after unrelated button is clicked
I am having an issue where my `AutoCompleteTextView` is showing its suggestions if keyboard focus is in the ACTV and a button in the activity is clicked. The best I can seem to do is call `.dismissDropDown()` after it appears, but that seems sloppy. How can I keep it from appearing in the first place when the button is clicked?
android
autocomplete
autocompletetextview
null
null
null
open
Android AutoCompleteTextView displays suggestions after unrelated button is clicked === I am having an issue where my `AutoCompleteTextView` is showing its suggestions if keyboard focus is in the ACTV and a button in the activity is clicked. The best I can seem to do is call `.dismissDropDown()` after it appears, but that seems sloppy. How can I keep it from appearing in the first place when the button is clicked?
0
10,689,399
05/21/2012 16:58:55
1,262,909
03/11/2012 22:12:11
69
2
Calculating size of pages and page tables
A physical address is 32 bits and the virtual address is split as 10 bits 'off-set',2 bits 'byte addressability', 20 bits being left for identifying the page. What size are the pages and the page tables? I believe its: 2^10 = 1024. The ones that are reserved pages are 2^2 = 4 I am not sure on how to use the addressbility though... Thanks again guys :)
homework
architecture
operating-system
paging
virtual-memory
null
open
Calculating size of pages and page tables === A physical address is 32 bits and the virtual address is split as 10 bits 'off-set',2 bits 'byte addressability', 20 bits being left for identifying the page. What size are the pages and the page tables? I believe its: 2^10 = 1024. The ones that are reserved pages are 2^2 = 4 I am not sure on how to use the addressbility though... Thanks again guys :)
0
3,855,835
10/04/2010 13:49:53
310,291
03/02/2010 15:22:39
1,019
14
If SOAP is now considered overengineered over REST why isn't WCF ?
I'm amazed that years over years IT pretend to simplify communication or software design and a few years later it declare it was over-engineered. EJB, SOAP, so looking at all the WCF stuffs do we as users (not as Microsoft or IBM who need to sell new stuffs) really need it ?
c#
java
web-services
null
null
10/08/2010 18:02:22
not constructive
If SOAP is now considered overengineered over REST why isn't WCF ? === I'm amazed that years over years IT pretend to simplify communication or software design and a few years later it declare it was over-engineered. EJB, SOAP, so looking at all the WCF stuffs do we as users (not as Microsoft or IBM who need to sell new stuffs) really need it ?
4
9,383,765
02/21/2012 19:20:51
318,620
04/16/2010 15:15:31
11
1
MVC 3 unobtrusive jquery validate - how to add a Dummy message to Vallidation Summary
I get some error messages from the back end service and I want them to be displayed in the Validation Summary control on the page. I am using MVC 3 and ValidationSummary is not on the page till a validation fails due to unobtrusive stuff i believe. I looked at the following [example][1] but it does not work with MVC 3. Does anyone knows how to simply insert an error message in Validation summary control in MVC 3 with all the unobtrusive stuff switched on? Thanks, Dexter [1]: http://stackoverflow.com/questions/2808327/how-to-read-modelstate-errors-when-returned-by-json
asp.net-mvc-3
jquery-validate
unobtrusive-validation
null
null
null
open
MVC 3 unobtrusive jquery validate - how to add a Dummy message to Vallidation Summary === I get some error messages from the back end service and I want them to be displayed in the Validation Summary control on the page. I am using MVC 3 and ValidationSummary is not on the page till a validation fails due to unobtrusive stuff i believe. I looked at the following [example][1] but it does not work with MVC 3. Does anyone knows how to simply insert an error message in Validation summary control in MVC 3 with all the unobtrusive stuff switched on? Thanks, Dexter [1]: http://stackoverflow.com/questions/2808327/how-to-read-modelstate-errors-when-returned-by-json
0
9,322,039
02/17/2012 02:19:08
1,210,399
02/15/2012 02:51:33
13
5
Any Idea for Andriod app development
Just wondering if anyone can help me in andriod app development. Im new to this one and i dont know where to start. andriod app has extension name .apk and im thinking if it uses different language to develop or i can use PHP, JAVA or c++ to create an app then save the app as .apk. Any idea guys??
java
php
c++
null
null
02/17/2012 05:32:58
not constructive
Any Idea for Andriod app development === Just wondering if anyone can help me in andriod app development. Im new to this one and i dont know where to start. andriod app has extension name .apk and im thinking if it uses different language to develop or i can use PHP, JAVA or c++ to create an app then save the app as .apk. Any idea guys??
4
8,573,531
12/20/2011 09:48:17
990,881
10/12/2011 06:45:51
1
0
How to play video in C# application form
Hi I have a one combobox which shows 7 product's list. Now I want to open a specific video on same form based on that combox selectedIndexChanged... So I have 7 videos... Now where can i store my video & how to play them... Thnx in advance... I am using C#, visual studio 2008
c#
windows
winforms
null
null
12/21/2011 02:26:42
not a real question
How to play video in C# application form === Hi I have a one combobox which shows 7 product's list. Now I want to open a specific video on same form based on that combox selectedIndexChanged... So I have 7 videos... Now where can i store my video & how to play them... Thnx in advance... I am using C#, visual studio 2008
1
5,869,366
05/03/2011 12:21:43
734,124
05/02/2011 08:20:01
4
0
Residual Analysis in tobit Modell
is it possible to do a residual analysis of a tobit model? plot(<modxy>) doesn't work? When it's not possible, what's the reason? I appreciate any thought!
r
statistics
null
null
null
05/03/2011 12:57:11
off topic
Residual Analysis in tobit Modell === is it possible to do a residual analysis of a tobit model? plot(<modxy>) doesn't work? When it's not possible, what's the reason? I appreciate any thought!
2
4,914,648
02/06/2011 16:44:24
283,375
03/01/2010 04:13:31
6
1
Disabling accessibility for specific buttons and using custom gestures with accessibility
I am trying provide better accessibility for my iOS app. The app has a "Gesture Pad" UIView that allows users to use gestures (e.g. swipe left, swipe right, swipe up, swipe down) rather than having to press buttons. Users requested a gesture-based control mechanism because the buttons are sometimes hard to use given that users typically doesn't look at the screen when operating the app and they often need to quickly switch from one button to another. I thought the Gesture Pad might be a common element that would be beneficial to both sighted and non-sighted users given that both aren't typically seeing the app screen when they are using it. Unfortunately, I've run into a couple of issues that are making this difficult. The first problem is that my Gesture Pad uses custom gestures. I'd like to allow the use of these custom gestures within the Gesture Pad view but the accessibility gestures override my gestures. I know you can double-tap and then hold to try an use a regular gesture but this doesn't seem to work since the mode disables when you lift your finger. I want to be able to do things like 1 and 2 finger taps and drags. Is there any way to turn off accessibility gestures within the Gesture Pad UIView and use my custom gestures instead? The second problem occurs when the Gesture Pad UIView is displayed. This UIView obscures the UIButton items underneath it. The obscured buttons are activated with gestures rather than touch when the Gesture Pad is enabled. This UIView is semi-transparent so sighted users can see the highlighting of the buttons operating underneath it when they are activated with a gesture. Since the UIView obscures the buttons underneath it, those buttons are essentially disabled from a touch perspective when the Gesture Pad UIView is displayed and are only activated by executing the associated custom gesture. Unfortunately, when voiceover is enabled, all the obscured buttons are still active. When a finger is moved across the Gesture Pad with voiceover enabled, the obscured buttons are still read aloud and can be activated by double tapping even though they are obscured by the Gesture Pad UIView. I have tried to programmatically disable them by setting the isAccessibilityElement property to NO, the userInteractionEnabled property to NO, and the hidden property to YES as well as executing UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil) at various places but not seem to disable the buttons when voiceover is enabled. My app still supports iOS 3 users so I have been trying to avoid iOS 4 specific solutions if possible. Any ideas on how to make this work or alternative implementation ideas would be greatly appreciated. Thanks, phil
iphone
ios
uiview
accessibility
gesture
null
open
Disabling accessibility for specific buttons and using custom gestures with accessibility === I am trying provide better accessibility for my iOS app. The app has a "Gesture Pad" UIView that allows users to use gestures (e.g. swipe left, swipe right, swipe up, swipe down) rather than having to press buttons. Users requested a gesture-based control mechanism because the buttons are sometimes hard to use given that users typically doesn't look at the screen when operating the app and they often need to quickly switch from one button to another. I thought the Gesture Pad might be a common element that would be beneficial to both sighted and non-sighted users given that both aren't typically seeing the app screen when they are using it. Unfortunately, I've run into a couple of issues that are making this difficult. The first problem is that my Gesture Pad uses custom gestures. I'd like to allow the use of these custom gestures within the Gesture Pad view but the accessibility gestures override my gestures. I know you can double-tap and then hold to try an use a regular gesture but this doesn't seem to work since the mode disables when you lift your finger. I want to be able to do things like 1 and 2 finger taps and drags. Is there any way to turn off accessibility gestures within the Gesture Pad UIView and use my custom gestures instead? The second problem occurs when the Gesture Pad UIView is displayed. This UIView obscures the UIButton items underneath it. The obscured buttons are activated with gestures rather than touch when the Gesture Pad is enabled. This UIView is semi-transparent so sighted users can see the highlighting of the buttons operating underneath it when they are activated with a gesture. Since the UIView obscures the buttons underneath it, those buttons are essentially disabled from a touch perspective when the Gesture Pad UIView is displayed and are only activated by executing the associated custom gesture. Unfortunately, when voiceover is enabled, all the obscured buttons are still active. When a finger is moved across the Gesture Pad with voiceover enabled, the obscured buttons are still read aloud and can be activated by double tapping even though they are obscured by the Gesture Pad UIView. I have tried to programmatically disable them by setting the isAccessibilityElement property to NO, the userInteractionEnabled property to NO, and the hidden property to YES as well as executing UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil) at various places but not seem to disable the buttons when voiceover is enabled. My app still supports iOS 3 users so I have been trying to avoid iOS 4 specific solutions if possible. Any ideas on how to make this work or alternative implementation ideas would be greatly appreciated. Thanks, phil
0
4,653,718
01/11/2011 02:51:42
445,312
06/05/2009 00:11:55
1,351
102
xcode: property 'title' 'copy' attribute does not match super class 'UIViewController' property
hi iam currently getting this error message. and by the love of banana, I cannot figure out what I am not doing right. Its just a iboutlet uilabel *title; ive made connected to my xib file Classes/../taskViewController.h:44: warning: property 'title' 'copy' attribute does not match super class 'UIViewController' property I dont understand what it means. Normally i am able to get rid of warning messages. But this one... I dont have a clue whats going on. Can someone please guide me and explain what is happening here.
iphone
xcode
compilation
warnings
null
null
open
xcode: property 'title' 'copy' attribute does not match super class 'UIViewController' property === hi iam currently getting this error message. and by the love of banana, I cannot figure out what I am not doing right. Its just a iboutlet uilabel *title; ive made connected to my xib file Classes/../taskViewController.h:44: warning: property 'title' 'copy' attribute does not match super class 'UIViewController' property I dont understand what it means. Normally i am able to get rid of warning messages. But this one... I dont have a clue whats going on. Can someone please guide me and explain what is happening here.
0
7,498,502
09/21/2011 10:51:58
956,743
09/21/2011 10:51:58
1
0
Mysql insert new entries from one table to another automatically after a certain time
I would like to call trigger to insert new entries in a particular table to another mysql table after a s
mysql
database
null
null
null
09/21/2011 11:20:33
not a real question
Mysql insert new entries from one table to another automatically after a certain time === I would like to call trigger to insert new entries in a particular table to another mysql table after a s
1
4,522,101
12/23/2010 20:07:47
289,246
03/08/2010 23:30:38
29
2
sql server 2005/2008 conditional join
Is there such thing like conditional join: SELECT * FROM TABLE1 A IF (a=='TABLE2') THEN INNER JOIN TABLE2 B ON A.item_id=B.id ELSE IF (a=='TABLE3') THEN INNER JOIN TABLE3 C ON A.item_id=C.id I like to use this in stored procedures without writeing query as string (without EXEC(@query)).
tsql
stored-procedures
view
null
null
null
open
sql server 2005/2008 conditional join === Is there such thing like conditional join: SELECT * FROM TABLE1 A IF (a=='TABLE2') THEN INNER JOIN TABLE2 B ON A.item_id=B.id ELSE IF (a=='TABLE3') THEN INNER JOIN TABLE3 C ON A.item_id=C.id I like to use this in stored procedures without writeing query as string (without EXEC(@query)).
0
10,016,032
04/04/2012 17:10:46
1,031,417
11/05/2011 18:29:08
568
11
How comes a TCP packet doesn't contains the source and destination IPs?
From [here][1] cisco says the TCP packets doesn't contains the source IP and destination IP? how the network layer knows tho thich IP send the packet and who has to get the ack back? ![enter image description here][2] [1]: http://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1907.html [2]: http://i.stack.imgur.com/3bE5L.jpg
ios
tcp
ip
null
null
null
open
How comes a TCP packet doesn't contains the source and destination IPs? === From [here][1] cisco says the TCP packets doesn't contains the source IP and destination IP? how the network layer knows tho thich IP send the packet and who has to get the ack back? ![enter image description here][2] [1]: http://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1907.html [2]: http://i.stack.imgur.com/3bE5L.jpg
0
1,590,506
10/19/2009 19:10:31
151,954
08/06/2009 17:47:10
185
2
Learning by example - terminology (?, :, etc)
When you were a kid, did you ever ask your parents how to spell something and they told you to go look it up? My first impression was always, "well if could look it up I wouldnt need help spelling it". (yeah yeah I know phonetics) ...anyway, I was just looking at some code and I found an example like: txtbx.CharacterCasing = (checkbox.Checked) ? CharacterCasing.Upper : CharacterCasing.Normal; I can figure out what this operation does, but obviously, I cant google for ? or : and I cant find them when searching for "c# operators", LINQ, Lambda expressions, etc. So I have to ask this silly question so I can go start reading about it. What are these operators?
c#
terminology
null
null
null
null
open
Learning by example - terminology (?, :, etc) === When you were a kid, did you ever ask your parents how to spell something and they told you to go look it up? My first impression was always, "well if could look it up I wouldnt need help spelling it". (yeah yeah I know phonetics) ...anyway, I was just looking at some code and I found an example like: txtbx.CharacterCasing = (checkbox.Checked) ? CharacterCasing.Upper : CharacterCasing.Normal; I can figure out what this operation does, but obviously, I cant google for ? or : and I cant find them when searching for "c# operators", LINQ, Lambda expressions, etc. So I have to ask this silly question so I can go start reading about it. What are these operators?
0
119,672
09/23/2008 07:51:07
17,389
09/18/2008 08:14:35
297
15
How would you organize a timezone dropdown?
I'm trying to present the (web) user with a useful subset of Olson timezones, though with a friendlier naming convention. Any recommendations for how to sort and label them for maximum usefulness? By country? Continent? GMT offset? I'm not very concerned about inaccuracy for past dates, so some of the timezones that are only historically different could be winnowed out, but I'm not sure it's worth the effort of identifying which. If someone else already has done so, please let me know.
language-agnostic
user-interface
timezone
user-input
null
12/29/2011 03:24:21
not constructive
How would you organize a timezone dropdown? === I'm trying to present the (web) user with a useful subset of Olson timezones, though with a friendlier naming convention. Any recommendations for how to sort and label them for maximum usefulness? By country? Continent? GMT offset? I'm not very concerned about inaccuracy for past dates, so some of the timezones that are only historically different could be winnowed out, but I'm not sure it's worth the effort of identifying which. If someone else already has done so, please let me know.
4
6,400,702
06/19/2011 05:12:08
805,076
06/19/2011 05:12:08
1
0
Send user comment to twitter, fb, linkedin
Im not sure if this is the place for this question but here goes. I have a member based site with a facebook like wall that works the same way as facebooks does. I would like to give the user an option to send what ever they share on the site to twitter, fb, and linked with check boxes like... Type your message here. This is a user msg Check here if you would like to share on twitter, fb, linked ---------- user can then decide which boxs to tick and then hit send. after submission to the site the same msg is also posted to what ever sites they ticked. I dont expect full code but i would like to know what to start with i.e. what should i google? thanks much!
networking
send
box
social
tick
06/23/2011 07:47:00
not a real question
Send user comment to twitter, fb, linkedin === Im not sure if this is the place for this question but here goes. I have a member based site with a facebook like wall that works the same way as facebooks does. I would like to give the user an option to send what ever they share on the site to twitter, fb, and linked with check boxes like... Type your message here. This is a user msg Check here if you would like to share on twitter, fb, linked ---------- user can then decide which boxs to tick and then hit send. after submission to the site the same msg is also posted to what ever sites they ticked. I dont expect full code but i would like to know what to start with i.e. what should i google? thanks much!
1
9,368,654
02/20/2012 21:26:40
160,574
08/21/2009 06:24:34
659
15
Cannot seem to setEnabled:NO on NSMenuItem
I have subclassed `NSMenu` and connected a bunch of `NSMenuItem`'s via Interface Builder. I have tested via the debugger to see that they really get initialized. The menu is set to not auto enable items. Still when I set any of my NSMenuItem's to `[myMenuItem setEnabled:NO]` they continue to be enabled. Even if I call `[self update]` from within the NSMenu subclass. What am I missing?
cocoa
nsmenuitem
nsmenu
null
null
null
open
Cannot seem to setEnabled:NO on NSMenuItem === I have subclassed `NSMenu` and connected a bunch of `NSMenuItem`'s via Interface Builder. I have tested via the debugger to see that they really get initialized. The menu is set to not auto enable items. Still when I set any of my NSMenuItem's to `[myMenuItem setEnabled:NO]` they continue to be enabled. Even if I call `[self update]` from within the NSMenu subclass. What am I missing?
0
9,756,831
03/18/2012 07:52:30
914,200
08/26/2011 13:45:38
1
0
How to store resultset of a query inside a new table?
query whose resultset i want to store in a new table is of the form ie its self join of a table whose result i want to store Select first.var1,second.var1.... from tablename first, tablename second where first.var1 <> second.var1;
resultset
null
null
null
null
03/18/2012 22:14:36
not a real question
How to store resultset of a query inside a new table? === query whose resultset i want to store in a new table is of the form ie its self join of a table whose result i want to store Select first.var1,second.var1.... from tablename first, tablename second where first.var1 <> second.var1;
1
9,129,644
02/03/2012 13:50:28
203,991
11/05/2009 19:07:02
6
0
Wpf resource can't be found even when it's present
I've got a really weird issue I can't fix within a Wpf Application. We built a Common Library containing many useful components, one of them is a fancy MessageBox which has the company style. There're three dictionaries that contains nearly everything we require: <ResourceDictionary Source="/Library;component/Style/Styles.xaml" /> <ResourceDictionary Source="/Library;component/Themes/Globals.xaml"/> <ResourceDictionary Source="/Library;component/Themes/Controls/Button/Template.xaml"/> There's a footer for the MessageBox into Globals.xaml, footer uses a template from Template.xaml. It works perfectly but not in one case. I have a main window that dinamically create a plugin and open a window. This window is a regular Window Wpf application loaded through reflection. Method to open MessageBox is within the same DLL as Resource Dictionaries. If I call this MessageBox method from the plugin it throws an exception because "Footer" is not found. I set a breakpoint before window.ShowDialog(); And I see MergedDictionaries is empty into window. Also empty everywhere, only owner of this MessageBox contains those resources. Doing window.FindResource("key"); Get a null value as expected. However, if I manually copy merged dictionaries using this code lines before open dialog: foreach (var dict in owner.Resources.MergedDictionaries) { window.Resources.MergedDictionaries.Add(dict); } And then look for window.FindResource("key") I can see the style, but even though it continues throwing an exception: **Cannot find resource named '{Footer}'. Resource names are case sensitive.** Footer style is used in this line of MessageBox: <StatusBar Style="{StaticResource Footer}" DataContext="{Binding ElementName=window}"... I've also tried to declare this resource into the DialogWindow in the library, even when I've not gonna be allowed to change it: <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Library;component/Themes/Generic.xaml" /> <ResourceDictionary Source="/Library;component/Themes/Globals.xaml"/> <ResourceDictionary Source="/Library;component/Themes/Controls/Button/Template.xaml"/> </ResourceDictionary.MergedDictionaries> I've been 2 days knocking my head on the monitor and nothing, everything I tried failed. Despite of breaking a monitor of course. Ran out of ideas... Regards.
asp.net
wpf
resources
null
null
null
open
Wpf resource can't be found even when it's present === I've got a really weird issue I can't fix within a Wpf Application. We built a Common Library containing many useful components, one of them is a fancy MessageBox which has the company style. There're three dictionaries that contains nearly everything we require: <ResourceDictionary Source="/Library;component/Style/Styles.xaml" /> <ResourceDictionary Source="/Library;component/Themes/Globals.xaml"/> <ResourceDictionary Source="/Library;component/Themes/Controls/Button/Template.xaml"/> There's a footer for the MessageBox into Globals.xaml, footer uses a template from Template.xaml. It works perfectly but not in one case. I have a main window that dinamically create a plugin and open a window. This window is a regular Window Wpf application loaded through reflection. Method to open MessageBox is within the same DLL as Resource Dictionaries. If I call this MessageBox method from the plugin it throws an exception because "Footer" is not found. I set a breakpoint before window.ShowDialog(); And I see MergedDictionaries is empty into window. Also empty everywhere, only owner of this MessageBox contains those resources. Doing window.FindResource("key"); Get a null value as expected. However, if I manually copy merged dictionaries using this code lines before open dialog: foreach (var dict in owner.Resources.MergedDictionaries) { window.Resources.MergedDictionaries.Add(dict); } And then look for window.FindResource("key") I can see the style, but even though it continues throwing an exception: **Cannot find resource named '{Footer}'. Resource names are case sensitive.** Footer style is used in this line of MessageBox: <StatusBar Style="{StaticResource Footer}" DataContext="{Binding ElementName=window}"... I've also tried to declare this resource into the DialogWindow in the library, even when I've not gonna be allowed to change it: <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Library;component/Themes/Generic.xaml" /> <ResourceDictionary Source="/Library;component/Themes/Globals.xaml"/> <ResourceDictionary Source="/Library;component/Themes/Controls/Button/Template.xaml"/> </ResourceDictionary.MergedDictionaries> I've been 2 days knocking my head on the monitor and nothing, everything I tried failed. Despite of breaking a monitor of course. Ran out of ideas... Regards.
0
7,143,437
08/22/2011 05:17:49
818,475
06/28/2011 04:03:04
1
0
How marketable is a custom CMS?
This post might seem ridiculous, but I can't sleep right now, wondering if I wasted this summer working on a CMS when I didn't need to. Please feel free to vote this question down! I have a professor that asked me to build a new site for him. No problem. He also wanted something to replace his "Adobe Contribute" method of updating content... without much research, and glad to get a summer gig, I decided to build something on my own. Which I did... a nice basic little CMS using a weird mix of ASP.NET, jQuery, TinyMCE (with some PHP thrown in), etc. It seems to work well for a version 1.0. After a little Googling though, I finally realized that there are a load of open source CMS's already out there. I was really hoping that I could take this custom one that I built and be able to sell it as part of a web site package (custom design, programming, personal tech support, etc., plus this cool content management system). But after seeing all the Joomla, Drupal, WordPress, and other systems out there, I'm wondering if and how much I should be charging for the design/code/CMS package? I did this on the side of my full-time doctoral studies (non-programming related) and put a lot of spare time into the thing... it would be really nice to make some return on the time investment. Sorry this is a little more of a business question, but I knew all the smart Business/Programmers are out there on StackOverflow. Thanks for any input!
content-management-system
customization
business
marketing
null
08/22/2011 18:18:19
off topic
How marketable is a custom CMS? === This post might seem ridiculous, but I can't sleep right now, wondering if I wasted this summer working on a CMS when I didn't need to. Please feel free to vote this question down! I have a professor that asked me to build a new site for him. No problem. He also wanted something to replace his "Adobe Contribute" method of updating content... without much research, and glad to get a summer gig, I decided to build something on my own. Which I did... a nice basic little CMS using a weird mix of ASP.NET, jQuery, TinyMCE (with some PHP thrown in), etc. It seems to work well for a version 1.0. After a little Googling though, I finally realized that there are a load of open source CMS's already out there. I was really hoping that I could take this custom one that I built and be able to sell it as part of a web site package (custom design, programming, personal tech support, etc., plus this cool content management system). But after seeing all the Joomla, Drupal, WordPress, and other systems out there, I'm wondering if and how much I should be charging for the design/code/CMS package? I did this on the side of my full-time doctoral studies (non-programming related) and put a lot of spare time into the thing... it would be really nice to make some return on the time investment. Sorry this is a little more of a business question, but I knew all the smart Business/Programmers are out there on StackOverflow. Thanks for any input!
2
6,718,572
07/16/2011 16:04:52
265,519
02/03/2010 18:06:08
2,274
101
Get number of columns in C++ with _bstr_t and ADO
I am using Visual Studio 2008, and SQL Server, Currently I have a connection using ADO, but would like to retrieve the number of columns a table has... Here is what I have /*CODE FOR connecting to database**/ /*query to know number of columns in table*/ _bstr_t sSQLd="Select Count(*) From INFORMATION_SCHEMA.COLUMNS Where TABLE_NAME='[dbo].[mytable]';"; /*define variable to hold number of columns and print number of coulms as an integer */ int COLS_PER_ROW = wcstod(sSQLd, NULL); printf("COLS_PER_ROW: %d", COLS_PER_ROW); It prints `0` although There are 20 columns in my table How do I fix the query or the logic??
c++
visual-studio
sql-server-2008
bstr-t
null
null
open
Get number of columns in C++ with _bstr_t and ADO === I am using Visual Studio 2008, and SQL Server, Currently I have a connection using ADO, but would like to retrieve the number of columns a table has... Here is what I have /*CODE FOR connecting to database**/ /*query to know number of columns in table*/ _bstr_t sSQLd="Select Count(*) From INFORMATION_SCHEMA.COLUMNS Where TABLE_NAME='[dbo].[mytable]';"; /*define variable to hold number of columns and print number of coulms as an integer */ int COLS_PER_ROW = wcstod(sSQLd, NULL); printf("COLS_PER_ROW: %d", COLS_PER_ROW); It prints `0` although There are 20 columns in my table How do I fix the query or the logic??
0
4,523,920
12/24/2010 02:54:57
242,933
01/04/2010 02:28:02
882
51
How do I brew update a formula?
How do i update a formula? I ran `brew update`. Then, running `brew outdated`, outputs: mongodb (1.4.3-x86_64 < 1.6.5-x86_64) Thus, `mongodb` is outdated. How do I upgrade it? Do I just uninstall and then install?
update
mongodb
formula
homebrew
brew
null
open
How do I brew update a formula? === How do i update a formula? I ran `brew update`. Then, running `brew outdated`, outputs: mongodb (1.4.3-x86_64 < 1.6.5-x86_64) Thus, `mongodb` is outdated. How do I upgrade it? Do I just uninstall and then install?
0
4,055,258
10/29/2010 19:34:03
166,229
07/06/2009 10:14:19
193
8
Compatible boolean data type of various relational databases
I am trying to create a select statement that is compatible with all major relational databases (MySQL, PostgreSQL, Derby, SQLite, ...). Here the simple select statement: `SELECT * FROM taggings WHERE public IS TRUE` The problem is that SQLite for example does not support the boolean data type, so I rewrote my statement to: `SELECT * FROM taggings WHERE public = 1` As far as I know it is valid for SQLite (wich uses some kind of byte for the public field) and also MySQL (which interprets the 1 as true, cause it uses the boolean type for the public field). How about PostgreSQL when also uses a boolean public field? From the manual it looks like that I have to write `SELECT * FROM taggings WHERE public = '1'`. Or is that equivalent in that case to the above statement? (I don't have a chance to setup a PostgreSQL database here.) Thanks for the help!
sql
mysql
database
sqlite
postgresql
null
open
Compatible boolean data type of various relational databases === I am trying to create a select statement that is compatible with all major relational databases (MySQL, PostgreSQL, Derby, SQLite, ...). Here the simple select statement: `SELECT * FROM taggings WHERE public IS TRUE` The problem is that SQLite for example does not support the boolean data type, so I rewrote my statement to: `SELECT * FROM taggings WHERE public = 1` As far as I know it is valid for SQLite (wich uses some kind of byte for the public field) and also MySQL (which interprets the 1 as true, cause it uses the boolean type for the public field). How about PostgreSQL when also uses a boolean public field? From the manual it looks like that I have to write `SELECT * FROM taggings WHERE public = '1'`. Or is that equivalent in that case to the above statement? (I don't have a chance to setup a PostgreSQL database here.) Thanks for the help!
0
10,682,062
05/21/2012 08:47:37
1,112,194
12/22/2011 17:25:09
49
1
Corresponding plugins not removed while unistalling a feature in eclipse?
1) First i installed a feature from eclipse update site via eclipse -> **Help > Install New Software** 2) I unistall the same from eclipse -> **Help > About Eclipse** 3) in <Eclipse Installation Directory>/features uninstalled feature was removed . But the corresponding plugins are exist in <Eclipse Installation Directory>/plugins . why , how can i remove them while unistalling a feature ?
eclipse
eclipse-plugin
null
null
null
null
open
Corresponding plugins not removed while unistalling a feature in eclipse? === 1) First i installed a feature from eclipse update site via eclipse -> **Help > Install New Software** 2) I unistall the same from eclipse -> **Help > About Eclipse** 3) in <Eclipse Installation Directory>/features uninstalled feature was removed . But the corresponding plugins are exist in <Eclipse Installation Directory>/plugins . why , how can i remove them while unistalling a feature ?
0
11,270,344
06/30/2012 00:00:34
1,229,991
02/24/2012 05:13:48
1
1
jQuery: Anything Slider - Multiple Sliders with different CSS styles
I'm trying to utilize 3 instances of Anything Slider on one page, but I'm having problems styling each slider differently from the other. The sliders have id's: slider1, slider2, and slider3 So when I try to style a section of slider2 differently, like: #slider2 .anythingSlider-default.activeSlider .anythingWindow {} it doesn't work. Any ideas on how to achieve this? Thanks in advance for the time and help.
jquery
css
anythingslider
null
null
null
open
jQuery: Anything Slider - Multiple Sliders with different CSS styles === I'm trying to utilize 3 instances of Anything Slider on one page, but I'm having problems styling each slider differently from the other. The sliders have id's: slider1, slider2, and slider3 So when I try to style a section of slider2 differently, like: #slider2 .anythingSlider-default.activeSlider .anythingWindow {} it doesn't work. Any ideas on how to achieve this? Thanks in advance for the time and help.
0
10,996,408
06/12/2012 12:11:42
89,862
04/11/2009 22:27:20
1,074
12
Formatting your code
I'm working on this project with code that is really impossible to read simply because it is formatted so bad. I've tried to format the code with plugins and built-in functionality in VIM, Netbeans, Sublime Text 2 and Eclipse. They just make the code worse... Any other suggestions? We're talking PHP, HTML, Smarty (templates) and Javascript. Thanks.
php
javascript
html
formating
null
06/12/2012 13:31:18
not a real question
Formatting your code === I'm working on this project with code that is really impossible to read simply because it is formatted so bad. I've tried to format the code with plugins and built-in functionality in VIM, Netbeans, Sublime Text 2 and Eclipse. They just make the code worse... Any other suggestions? We're talking PHP, HTML, Smarty (templates) and Javascript. Thanks.
1
10,696,988
05/22/2012 06:41:33
1,182,294
02/01/2012 09:08:46
1
0
VB.Net datatable assign Values
Hi I have some variables assigned with values. i need to read the variables values one by one which is in a loop and assigned them to the datatable which i have created using VB.Net.. Please help me on this..
vb.net
null
null
null
null
05/23/2012 19:28:43
not a real question
VB.Net datatable assign Values === Hi I have some variables assigned with values. i need to read the variables values one by one which is in a loop and assigned them to the datatable which i have created using VB.Net.. Please help me on this..
1
6,446,185
06/22/2011 20:30:08
450,222
09/17/2010 03:50:37
343
25
Any Reason I Shouldn't Use actual Table tags for a Data Grid App?
Everybody does divs for high volume data grids but I haven't noticed a performance issue dealing with dynamically loading in to the viewport + elbow room with tables that are set with table-display:fixed. I'm not quite up to GridNic performance levels yet (very smooth) but I've got enough left to optimize that I think I'll have something that runs that nicely without using absolute positioning and that refreshes with what for now is just innerHTML (I'm going to mess with combo doc frag/innerHTML methods eventually). Just wondering if I'm not thinking something through on this. It will ultimately be a pretty fully-featured data grid. Note: I don't have to worry about IE7 or 6. Just modern browsers. Aside from semantics and easy analogue to a 2D array for data-tracking I see styling by column as a definite win on this one.
javascript
table
grid
null
null
06/25/2011 11:09:01
not a real question
Any Reason I Shouldn't Use actual Table tags for a Data Grid App? === Everybody does divs for high volume data grids but I haven't noticed a performance issue dealing with dynamically loading in to the viewport + elbow room with tables that are set with table-display:fixed. I'm not quite up to GridNic performance levels yet (very smooth) but I've got enough left to optimize that I think I'll have something that runs that nicely without using absolute positioning and that refreshes with what for now is just innerHTML (I'm going to mess with combo doc frag/innerHTML methods eventually). Just wondering if I'm not thinking something through on this. It will ultimately be a pretty fully-featured data grid. Note: I don't have to worry about IE7 or 6. Just modern browsers. Aside from semantics and easy analogue to a 2D array for data-tracking I see styling by column as a definite win on this one.
1
10,447,467
05/04/2012 10:56:03
966,684
09/27/2011 09:20:15
23
5
ultrawebgrid paging using LoadOnDemand as XML
I have an ultrawebgrid with the paging enabled in it. As the data to be displayed is around 10K rows, pagination is carried out by setting the LoadOnDemand="XML" property. The issue I'm facing is when I navigate through the pages, I could see an AJAX call happening but the data displayed is only of the first page. For ex: I have 10 pages of data, when i click on page '3' the grid displays the content of page '1' itself. But if I sort or filter any column, sorting and filtering results are as expected. **.aspx:** <DisplayLayout BorderCollapseDefault="Separate" Name="SampleGrid" RowHeightDefault="20px" SelectTypeRowDefault="Single" Version="4.00" AllowColSizingDefault="Free" SelectTypeColDefault="Single" TableLayout="Fixed" AllowAddNewDefault="Yes" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" AutoGenerateColumns="False" CellClickActionDefault="Edit" ViewType="Hierarchical">. <Pager><PagerStyle CssClass="igwgPgrBlack2k7" /></Pager> </DisplayLayout> **.vb:** Protected Sub SampleGrid_InitializeDataSource(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.UltraGridEventArgs) Handles SampleGrid.InitializeDataSource Dim dsData As System.Data.DataSet Dim sql As String dsData = DataManager.ExecuteDataset(ConnectionType.XXX, Data.CommandType.Text, sql) // getting dataset 'Me.SampleGrid.DisplayLayout.Pager.PageCount = Math.Ceiling(dsData.Tables(0).Rows.Count/Me.SampleGrid.DisplayLayout.Pager.PageSize) //on first load, i'm getting the PageSize as 8 whereas it has to be 50 rows, I tried setting the page size in 'InitializeLayout' but 'InitializeDataSource' event is called first. So where do i set the grid's PageSize. SampleGrid.DataSource = dsData End Sub Protected Sub SampleGrid_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles SampleGrid.InitializeLayout Dim htmlString As New StringBuilder SampleGrid.Browser = BrowserLevel.Xml e.Layout.LoadOnDemand = LoadOnDemand.Xml e.Layout.RowsRange = 50 e.Layout.XmlLoadOnDemandType = XmlLoadOnDemandType.Accumulative SampleGrid.DisplayLayout.Pager.StyleMode=PagerStyleMode.QuickPages SampleGrid.DisplayLayout.EnableInternalRowsManagement=True SampleGrid.DisplayLayout.Pager.AllowCustomPaging=True SampleGrid.DisplayLayout.Pager.AllowPaging = True SampleGrid.DisplayLayout.Pager.PageSize = 50 SampleGrid.DisplayLayout.Pager.QuickPages = 5 htmlString.Append("<table cellspacing='0' cellpadding='0' style='width:100%;border:solid 1px Black;'>") htmlString.Append("<tr>") htmlString.Append("<td width='25%' align='right'>Viewing page [currentpageindex] of [pagecount] </td>") htmlString.Append("<td align='center'>") htmlString.Append("<b>[page:1:First]&nbsp;[prev]</b>") htmlString.Append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;") htmlString.Append("[default]") htmlString.Append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;") htmlString.Append("<b>[next]&nbsp;[page:[pagecount]:Last]</b>") htmlString.Append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;") htmlString.Append("</td>") htmlString.Append("<td width='25%' align='left' title='Enter page number and press Enter'>") htmlString.Append("Go to:<input id='PagerGotoPageNumber' size='5' style='vertical-align:text-bottom;height:20px;font-family:verdana;font-size:8pt;padding:0 0 0 0;border:solid 1px black' onkeydown='return gotoPageKeyDown();' type='text' autocomplete='off' />") htmlString.Append("<button style='height:22px' onclick='gotoPage();'>Go</button>") htmlString.Append("</td>") htmlString.Append("</tr>") htmlString.Append("</table>") SampleGrid.DisplayLayout.Pager.Pattern=htmlString.ToString() End Sub Private Sub SampleGrid_PageIndexChanged(ByVal sender As System.Object, ByVal e As Infragistics.WebUI.UltraWebGrid.PageEventArgs) Handles SampleGrid.PageIndexChanged SampleGrid.DisplayLayout.Pager.CurrentPageIndex = e.NewPageIndex End Sub
web-applications
pagination
infragistics
ultrawebgrid
null
null
open
ultrawebgrid paging using LoadOnDemand as XML === I have an ultrawebgrid with the paging enabled in it. As the data to be displayed is around 10K rows, pagination is carried out by setting the LoadOnDemand="XML" property. The issue I'm facing is when I navigate through the pages, I could see an AJAX call happening but the data displayed is only of the first page. For ex: I have 10 pages of data, when i click on page '3' the grid displays the content of page '1' itself. But if I sort or filter any column, sorting and filtering results are as expected. **.aspx:** <DisplayLayout BorderCollapseDefault="Separate" Name="SampleGrid" RowHeightDefault="20px" SelectTypeRowDefault="Single" Version="4.00" AllowColSizingDefault="Free" SelectTypeColDefault="Single" TableLayout="Fixed" AllowAddNewDefault="Yes" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" AutoGenerateColumns="False" CellClickActionDefault="Edit" ViewType="Hierarchical">. <Pager><PagerStyle CssClass="igwgPgrBlack2k7" /></Pager> </DisplayLayout> **.vb:** Protected Sub SampleGrid_InitializeDataSource(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.UltraGridEventArgs) Handles SampleGrid.InitializeDataSource Dim dsData As System.Data.DataSet Dim sql As String dsData = DataManager.ExecuteDataset(ConnectionType.XXX, Data.CommandType.Text, sql) // getting dataset 'Me.SampleGrid.DisplayLayout.Pager.PageCount = Math.Ceiling(dsData.Tables(0).Rows.Count/Me.SampleGrid.DisplayLayout.Pager.PageSize) //on first load, i'm getting the PageSize as 8 whereas it has to be 50 rows, I tried setting the page size in 'InitializeLayout' but 'InitializeDataSource' event is called first. So where do i set the grid's PageSize. SampleGrid.DataSource = dsData End Sub Protected Sub SampleGrid_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles SampleGrid.InitializeLayout Dim htmlString As New StringBuilder SampleGrid.Browser = BrowserLevel.Xml e.Layout.LoadOnDemand = LoadOnDemand.Xml e.Layout.RowsRange = 50 e.Layout.XmlLoadOnDemandType = XmlLoadOnDemandType.Accumulative SampleGrid.DisplayLayout.Pager.StyleMode=PagerStyleMode.QuickPages SampleGrid.DisplayLayout.EnableInternalRowsManagement=True SampleGrid.DisplayLayout.Pager.AllowCustomPaging=True SampleGrid.DisplayLayout.Pager.AllowPaging = True SampleGrid.DisplayLayout.Pager.PageSize = 50 SampleGrid.DisplayLayout.Pager.QuickPages = 5 htmlString.Append("<table cellspacing='0' cellpadding='0' style='width:100%;border:solid 1px Black;'>") htmlString.Append("<tr>") htmlString.Append("<td width='25%' align='right'>Viewing page [currentpageindex] of [pagecount] </td>") htmlString.Append("<td align='center'>") htmlString.Append("<b>[page:1:First]&nbsp;[prev]</b>") htmlString.Append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;") htmlString.Append("[default]") htmlString.Append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;") htmlString.Append("<b>[next]&nbsp;[page:[pagecount]:Last]</b>") htmlString.Append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;") htmlString.Append("</td>") htmlString.Append("<td width='25%' align='left' title='Enter page number and press Enter'>") htmlString.Append("Go to:<input id='PagerGotoPageNumber' size='5' style='vertical-align:text-bottom;height:20px;font-family:verdana;font-size:8pt;padding:0 0 0 0;border:solid 1px black' onkeydown='return gotoPageKeyDown();' type='text' autocomplete='off' />") htmlString.Append("<button style='height:22px' onclick='gotoPage();'>Go</button>") htmlString.Append("</td>") htmlString.Append("</tr>") htmlString.Append("</table>") SampleGrid.DisplayLayout.Pager.Pattern=htmlString.ToString() End Sub Private Sub SampleGrid_PageIndexChanged(ByVal sender As System.Object, ByVal e As Infragistics.WebUI.UltraWebGrid.PageEventArgs) Handles SampleGrid.PageIndexChanged SampleGrid.DisplayLayout.Pager.CurrentPageIndex = e.NewPageIndex End Sub
0
4,939,831
02/08/2011 23:45:12
500,805
10/21/2010 20:39:28
135
6
Prevent email spoofing?
Is there anyway to stop email spoofing if someone or some bot is sending out emails with my domain name in the from address that do not originate from my server? People have forwarded emails to me stating they received spam from an email address from my domain yet the from email account does not exist on my server nor does it show it originated from my server via the headers.
email-spam
null
null
null
null
02/10/2011 14:47:19
off topic
Prevent email spoofing? === Is there anyway to stop email spoofing if someone or some bot is sending out emails with my domain name in the from address that do not originate from my server? People have forwarded emails to me stating they received spam from an email address from my domain yet the from email account does not exist on my server nor does it show it originated from my server via the headers.
2
3,112,334
06/24/2010 17:24:59
132,374
07/02/2009 16:30:05
1,209
107
Application.xml vs sun-application.xml
I'm developing a JSF2 application using Glassfish which contains some EJB's; is there a reason I should use sun-application.xml versus the standard application.xml file? I would like to deploy my application as an exploded EAR. Do I need to do anything special with the application xml configuration? Thanks in advance!
java
configuration
java-ee
glassfish
null
null
open
Application.xml vs sun-application.xml === I'm developing a JSF2 application using Glassfish which contains some EJB's; is there a reason I should use sun-application.xml versus the standard application.xml file? I would like to deploy my application as an exploded EAR. Do I need to do anything special with the application xml configuration? Thanks in advance!
0
11,019,080
06/13/2012 16:14:45
1,454,189
06/13/2012 16:12:45
1
0
Google Drive as a Chrome App
I am using Mac OSX 10.5 (which is not compatible with the new Chrome Drive application, unless I go online). I wonder instead of making variants for Google Drive for Windows, Linux, OSX; why not just make it a Chrome App (may underestimate the difficulty). Yet I think it is a good idea.
google-drive-sdk
null
null
null
null
06/14/2012 17:41:08
not a real question
Google Drive as a Chrome App === I am using Mac OSX 10.5 (which is not compatible with the new Chrome Drive application, unless I go online). I wonder instead of making variants for Google Drive for Windows, Linux, OSX; why not just make it a Chrome App (may underestimate the difficulty). Yet I think it is a good idea.
1
3,458,384
08/11/2010 12:49:14
156,415
08/14/2009 10:47:46
1,256
71
Does Entity Framework 4 support Batch Inserts?
I found [this similar question here][1], but this is really old. Was it implemented in the latest version? [1]: http://stackoverflow.com/questions/373826/batch-insert-update-with-entity-framework
entity-framework
insert
entity-framework-4
null
null
null
open
Does Entity Framework 4 support Batch Inserts? === I found [this similar question here][1], but this is really old. Was it implemented in the latest version? [1]: http://stackoverflow.com/questions/373826/batch-insert-update-with-entity-framework
0
8,331,099
11/30/2011 18:38:00
707,381
04/14/2011 06:23:33
1,384
11
What is the JavaScript engine that runs mongoDB shell?
Is it V8? Can't seem to find this information.
javascript
mongodb
null
null
null
11/30/2011 19:26:19
off topic
What is the JavaScript engine that runs mongoDB shell? === Is it V8? Can't seem to find this information.
2
6,935,320
08/04/2011 01:57:02
873,691
08/02/2011 01:21:11
6
0
Hey I want to be a 3d game designer for Android so how should i go about doing that?
I know java, but i want to make some cool 3D games like Angry Birds! So will i need to learn more languages? What will i need to learn other than java? People have said to program in objective C and C++ because its faster, is that really true? Will it be possible to prgram a game like Angry Birds using java?
android
3d
null
null
null
08/06/2011 18:42:22
not constructive
Hey I want to be a 3d game designer for Android so how should i go about doing that? === I know java, but i want to make some cool 3D games like Angry Birds! So will i need to learn more languages? What will i need to learn other than java? People have said to program in objective C and C++ because its faster, is that really true? Will it be possible to prgram a game like Angry Birds using java?
4
8,146,838
11/16/2011 04:42:03
838,586
07/11/2011 09:26:00
778
2
Is it possible to share sessions across subdomains which are different applications?
Is it possible to share sessions across subdomains which are different applications without using Sql Server Session mode? I've implemented this concept with help from this link: http://stackoverflow.com/questions/245947/what-options-are-there-for-sharing-data-across-subdomains#1271463 However is it possible without Sql Server mode may be using in proc etc?
c#
asp.net
null
null
null
null
open
Is it possible to share sessions across subdomains which are different applications? === Is it possible to share sessions across subdomains which are different applications without using Sql Server Session mode? I've implemented this concept with help from this link: http://stackoverflow.com/questions/245947/what-options-are-there-for-sharing-data-across-subdomains#1271463 However is it possible without Sql Server mode may be using in proc etc?
0
9,450,333
02/26/2012 03:38:02
1,230,307
02/24/2012 08:39:21
40
1
Periodicity of events
For example, we have event that will go every 3 month. Event have DateStart, DataEnd and Periodicity. Help me to write method that return true/false if event will go at specific date. public bool MonthPeriodicityChecker (DateTime start, DateTime end, DateTime dateCheck, int periodicity) { } For example, record have: start = 02/23/2012 22:00:00; end = 12/31/2012 23:30:00; periodicity = 3; Method must return true when current month = February, May, August, November. Thanks.
c#
null
null
null
null
02/26/2012 04:00:38
not a real question
Periodicity of events === For example, we have event that will go every 3 month. Event have DateStart, DataEnd and Periodicity. Help me to write method that return true/false if event will go at specific date. public bool MonthPeriodicityChecker (DateTime start, DateTime end, DateTime dateCheck, int periodicity) { } For example, record have: start = 02/23/2012 22:00:00; end = 12/31/2012 23:30:00; periodicity = 3; Method must return true when current month = February, May, August, November. Thanks.
1
11,246,382
06/28/2012 14:03:39
1,485,453
06/27/2012 11:21:56
1
0
how to copy mp3 file with Extension .ogg with php file like "eny text here" help please
how to copy mp3 file onother file with Extension .ogg file name like "eny text here" **with php** thank you very much for helping
php
null
null
null
null
06/28/2012 14:06:40
not a real question
how to copy mp3 file with Extension .ogg with php file like "eny text here" help please === how to copy mp3 file onother file with Extension .ogg file name like "eny text here" **with php** thank you very much for helping
1
6,877,658
07/29/2011 18:52:02
869,861
07/29/2011 18:08:16
1
0
Application Directory meaning
i am trying to reference some 3rd part dll's to my silverlight application. The documentation says Add the contents of bin folder(provided by them) to Application directory. What does this mean? How do i do it?
silverlight
dll
application
directory
reference
07/30/2011 18:40:12
not a real question
Application Directory meaning === i am trying to reference some 3rd part dll's to my silverlight application. The documentation says Add the contents of bin folder(provided by them) to Application directory. What does this mean? How do i do it?
1
9,137,090
02/03/2012 23:59:02
445,884
09/13/2010 01:05:37
494
3
How do I refer to the values in this string in javascript
I have an object with one String value in it in javascript. I believe it should be a key value pair but something is changing it so that this doesn't work: $.each(object, function(index, element) { if (element.key) { //do something with element.key and element.value } } The value of element when inspecting with firebug is: [Object { STRING="1=stringValue"}] How do I process this object?
javascript
jquery
null
null
null
null
open
How do I refer to the values in this string in javascript === I have an object with one String value in it in javascript. I believe it should be a key value pair but something is changing it so that this doesn't work: $.each(object, function(index, element) { if (element.key) { //do something with element.key and element.value } } The value of element when inspecting with firebug is: [Object { STRING="1=stringValue"}] How do I process this object?
0
6,758,809
07/20/2011 08:04:12
670,082
03/21/2011 19:52:46
89
2
How to download website using .NET
Is anybody know how to download website using .NET? Is there any open source tool? Thanks.
.net
null
null
null
null
07/20/2011 08:29:31
not a real question
How to download website using .NET === Is anybody know how to download website using .NET? Is there any open source tool? Thanks.
1
10,039,763
04/06/2012 06:05:12
1,316,847
04/06/2012 05:54:10
1
0
MySQL timespan between two times calculation
I am making a project on a restaurant where I have put table reservation. I am having problem calculating the time span between two times. It should be like this: If a person want to book table, he is putting a date and two times. I will have to check whether there are any booking in the time span between these two times. I have put the screenshot of my table structure with this question. Please help me. Image link: http://i.stack.imgur.com/cnSyX.png
php
mysql
null
null
null
04/06/2012 11:58:56
not a real question
MySQL timespan between two times calculation === I am making a project on a restaurant where I have put table reservation. I am having problem calculating the time span between two times. It should be like this: If a person want to book table, he is putting a date and two times. I will have to check whether there are any booking in the time span between these two times. I have put the screenshot of my table structure with this question. Please help me. Image link: http://i.stack.imgur.com/cnSyX.png
1
5,668,963
04/14/2011 19:59:57
604,388
02/05/2011 13:21:24
146
16
Is Google Reader for Android open source project?
Would like to see how they've implemented their widget (at least - widget layout).
android
open-source
null
null
null
04/15/2011 01:45:48
off topic
Is Google Reader for Android open source project? === Would like to see how they've implemented their widget (at least - widget layout).
2
10,534,027
05/10/2012 12:29:14
1,387,072
05/10/2012 12:22:50
1
0
ClickOnce Deployment in .net framework 2.0
I am developing a window based application in .net framework 2.0.And I want to deploy it using click once deployment.How can I create desktop shortcut for my application? And I also want to know that where will my application generated text files get saved after deployment. Any help will be appreciated! Thanks in advance..
clickonce
desktop-application
null
null
null
05/10/2012 21:28:22
not constructive
ClickOnce Deployment in .net framework 2.0 === I am developing a window based application in .net framework 2.0.And I want to deploy it using click once deployment.How can I create desktop shortcut for my application? And I also want to know that where will my application generated text files get saved after deployment. Any help will be appreciated! Thanks in advance..
4
9,582,917
03/06/2012 11:35:16
591,826
01/27/2011 07:46:05
326
4
How to check if all controls added to winform?
How can i check if all controls added to the form?
c#
winforms
null
null
null
03/06/2012 22:42:23
not a real question
How to check if all controls added to winform? === How can i check if all controls added to the form?
1
5,183,975
03/03/2011 17:04:43
578,987
01/17/2011 19:44:34
1
1
Factory Girl - what's the purpose?
This is less technical and more curiousity, but this has been killing me. What's the purpose of Factory Girl in my rspec tests when I could simply use before(:each) blocks? I'm **very** green with Rails, when I was going through the tutorial, it feels like the only difference between Factory Girl and a before(:each) is that the factory prepares object creation outside of the test. Is this right? I have this nagging feeling that I'm missing something. I figured I'd ask seasoned RoR dev's for answers.
ruby-on-rails
ruby
factorygirl
factory-girl
null
null
open
Factory Girl - what's the purpose? === This is less technical and more curiousity, but this has been killing me. What's the purpose of Factory Girl in my rspec tests when I could simply use before(:each) blocks? I'm **very** green with Rails, when I was going through the tutorial, it feels like the only difference between Factory Girl and a before(:each) is that the factory prepares object creation outside of the test. Is this right? I have this nagging feeling that I'm missing something. I figured I'd ask seasoned RoR dev's for answers.
0
354,837
12/10/2008 01:27:31
39,057
11/19/2008 18:46:06
1,187
57
What's Up with Logging in Java?
Why one would use one of the following packages instead of the other? - Java Logging - Commons Logging - Log4j - SLF4j - Logback
java
logging
log4j
slf4j
logback
02/15/2012 01:19:53
not constructive
What's Up with Logging in Java? === Why one would use one of the following packages instead of the other? - Java Logging - Commons Logging - Log4j - SLF4j - Logback
4
9,054,752
01/29/2012 16:35:37
988,367
10/10/2011 20:30:46
48
1
I'm debugging an application in Visual Studio 2010 going step by step and at one point it jumps to an unexpected part of the code. Is this a bug?
I'm debugging an application in Visual Studio 2010 going step by step and, astonishingly, it jumps back to a part of code that doesn't suppose to, in a non linear manner. I run the code in a unit test, with debug (using resharper) and Visual Studio just stops, it doesn't say stackoverflow or anything after waiting for a while. I think it is a bug. I happened at another time as well. Why would it jump code in such an arbitrary manner? Do you know how to prevent this? Is some particular way of coding that makes this bug prone to happen?
c#
visual-studio-2010
null
null
null
01/30/2012 17:56:39
too localized
I'm debugging an application in Visual Studio 2010 going step by step and at one point it jumps to an unexpected part of the code. Is this a bug? === I'm debugging an application in Visual Studio 2010 going step by step and, astonishingly, it jumps back to a part of code that doesn't suppose to, in a non linear manner. I run the code in a unit test, with debug (using resharper) and Visual Studio just stops, it doesn't say stackoverflow or anything after waiting for a while. I think it is a bug. I happened at another time as well. Why would it jump code in such an arbitrary manner? Do you know how to prevent this? Is some particular way of coding that makes this bug prone to happen?
3
7,107,015
08/18/2011 11:55:55
900,519
08/18/2011 11:39:16
1
0
Which Javascript framework? jQuery vs Dojo vs dhtmlx vs Ext Js Sencha
jQuery vs Dojo vs dhtmlx vs Ext Js Sencha ----------------------------------------- ---------- I'm looking at selecting a JS framework for an enterprise solution that will do some heavy client side stuff, from retrieving information to rendering most of the DOM it self. I want it to have customizable skins that are more webby than windows. It needs to of course be cross browser compatible for most major browser release (including IE6) and it needs to perform well on them as well. It would be great if it came with most standard components (combo, grid, chart etc). Good documentation and a good community are also a plus, all four have it but I bet one is better than the other. Also I want to use them on mobile but they all seem to support it (not sure if anyone has any views on that). I know this topic is discussed in several forums and even here on stackoverflow (i.e http://stackoverflow.com/questions/394601/which-javascript-framework-jquery-vs-dojo-vs) and that many comparison and opinions have been expressed. I couldn't find an explicit comparison of these 4 of which I'm between. I know there is no one perfect solution but I would like to hear the opinions of people that already use them and had to deal with their shortcomings or found very cool stuff that rich web apps need. Also if there is a framework I'm not mentioning here that beats the 4 of them please let me know as well Thanks for any help!
javascript
jquery
extjs
dojo
dhtmlx
08/18/2011 12:10:02
not constructive
Which Javascript framework? jQuery vs Dojo vs dhtmlx vs Ext Js Sencha === jQuery vs Dojo vs dhtmlx vs Ext Js Sencha ----------------------------------------- ---------- I'm looking at selecting a JS framework for an enterprise solution that will do some heavy client side stuff, from retrieving information to rendering most of the DOM it self. I want it to have customizable skins that are more webby than windows. It needs to of course be cross browser compatible for most major browser release (including IE6) and it needs to perform well on them as well. It would be great if it came with most standard components (combo, grid, chart etc). Good documentation and a good community are also a plus, all four have it but I bet one is better than the other. Also I want to use them on mobile but they all seem to support it (not sure if anyone has any views on that). I know this topic is discussed in several forums and even here on stackoverflow (i.e http://stackoverflow.com/questions/394601/which-javascript-framework-jquery-vs-dojo-vs) and that many comparison and opinions have been expressed. I couldn't find an explicit comparison of these 4 of which I'm between. I know there is no one perfect solution but I would like to hear the opinions of people that already use them and had to deal with their shortcomings or found very cool stuff that rich web apps need. Also if there is a framework I'm not mentioning here that beats the 4 of them please let me know as well Thanks for any help!
4
8,648,724
12/27/2011 19:59:53
863,951
07/26/2011 17:15:12
11
0
How to loop or to repeat periodically task in Android?
I am quite new to Android, and I am really wondering about is how to loop or to repeat periodically a task. In my program, I have UpdateLoc() that sends my gps location to my databse, but I want it to update periodically (whether it be 3 min or 3 hours) without using too much battery and CPU. The problem is that I have no idea where to start... Is there a simple way to do this?
android
application
repeat
null
null
null
open
How to loop or to repeat periodically task in Android? === I am quite new to Android, and I am really wondering about is how to loop or to repeat periodically a task. In my program, I have UpdateLoc() that sends my gps location to my databse, but I want it to update periodically (whether it be 3 min or 3 hours) without using too much battery and CPU. The problem is that I have no idea where to start... Is there a simple way to do this?
0
9,078,127
01/31/2012 10:39:48
1,162,524
01/21/2012 16:35:45
1
0
about sql query is below query correct?
$query = "INSERT INTO add (`category`,`subcategory`,`selectapet`,`breed`,`title`,`description`,`inthisad`,`sizeatmaturity`,`age`,`gender`,`price`,`picture`,`email`,`name`,`mobile`,`phone`,`address`,`city`,`state`,`country`) VALUES (Now(),'$category', '$subcategory', '$selectapet','$breed','$title','$description','$inthisad','$sizeatmaturity','$age','$gender','$price','$picture','$email','$name','$mobile','$phone','$address','$city','$state','$country')" or die ('Data not inserted.'); id this query correct
sql
null
null
null
null
02/01/2012 02:08:43
not constructive
about sql query is below query correct? === $query = "INSERT INTO add (`category`,`subcategory`,`selectapet`,`breed`,`title`,`description`,`inthisad`,`sizeatmaturity`,`age`,`gender`,`price`,`picture`,`email`,`name`,`mobile`,`phone`,`address`,`city`,`state`,`country`) VALUES (Now(),'$category', '$subcategory', '$selectapet','$breed','$title','$description','$inthisad','$sizeatmaturity','$age','$gender','$price','$picture','$email','$name','$mobile','$phone','$address','$city','$state','$country')" or die ('Data not inserted.'); id this query correct
4
6,098,955
05/23/2011 14:56:33
575,585
01/14/2011 11:09:02
38
4
Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension
When i work on sitecore with tds i got this error. How can i resolve this problem? Server Error in '/' Application. -------------------------------------------------------------------------------- Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Exception: Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [Exception: Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).] Sitecore.Diagnostics.Error.Raise(String error, String method) +129 Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert) +421 Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +67 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +141 Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +424 Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode, String[] parameters, Boolean assert) +194 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +118 Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +930 Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +581 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296 Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +424 Sitecore.Configuration.Factory.GetDatabase(String name, Boolean assert) +185 Sitecore.Configuration.Factory.GetDatabases() +152 Sitecore.Data.Managers.HistoryManager.InitializeEventHandlers() +49 Sitecore.Pipelines.Loader.InitializeManagers.Process(PipelineArgs args) +9 (Object , Object[] ) +80 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +191 Sitecore.Nexus.Web.HttpModule.Application_Start() +146 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +603 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +546 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375 [HttpException (0x80004005): Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
sitecore
null
null
null
null
05/24/2011 15:40:34
too localized
Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension === When i work on sitecore with tds i got this error. How can i resolve this problem? Server Error in '/' Application. -------------------------------------------------------------------------------- Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Exception: Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [Exception: Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).] Sitecore.Diagnostics.Error.Raise(String error, String method) +129 Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert) +421 Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +67 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +141 Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +424 Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode, String[] parameters, Boolean assert) +194 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +118 Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +930 Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +581 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296 Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +424 Sitecore.Configuration.Factory.GetDatabase(String name, Boolean assert) +185 Sitecore.Configuration.Factory.GetDatabases() +152 Sitecore.Data.Managers.HistoryManager.InitializeEventHandlers() +49 Sitecore.Pipelines.Loader.InitializeManagers.Process(PipelineArgs args) +9 (Object , Object[] ) +80 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +191 Sitecore.Nexus.Web.HttpModule.Application_Start() +146 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +603 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +546 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375 [HttpException (0x80004005): Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
3
6,385,556
06/17/2011 12:11:23
486,845
10/25/2010 19:41:19
188
15
When should I request a Facebook access token?
Facebook changed their Graph API recently to require an access token. Therefore I quickly made a Facebook application to be able to retrieve an access token, use a URL similar to the one below, generated my access token and implemented the token in my iPhone application. Lately I have been thinking about if I have done something wrong. Should I request the access token everytime a user of my application retrieves data from the Graph API? I am starting to doubt whether or not the access token is unique to each user or just to the Facebook application. Can I hardcode an access token into my application or should I make a request on the URL below every time I need to retrieve data through the Graph API? I am generating my access token with the following URL: > [https://graph.facebook.com/oauth/access_token?client_id=*MYID*&client_secret=*MY_SECRET*&grant_type=client_credentials][1] [1]: https://graph.facebook.com/oauth/access_token?client_id=*MYID*&client_secret=*MY_SECRET*&grant_type=client_credentials
iphone
facebook
graph
token
null
null
open
When should I request a Facebook access token? === Facebook changed their Graph API recently to require an access token. Therefore I quickly made a Facebook application to be able to retrieve an access token, use a URL similar to the one below, generated my access token and implemented the token in my iPhone application. Lately I have been thinking about if I have done something wrong. Should I request the access token everytime a user of my application retrieves data from the Graph API? I am starting to doubt whether or not the access token is unique to each user or just to the Facebook application. Can I hardcode an access token into my application or should I make a request on the URL below every time I need to retrieve data through the Graph API? I am generating my access token with the following URL: > [https://graph.facebook.com/oauth/access_token?client_id=*MYID*&client_secret=*MY_SECRET*&grant_type=client_credentials][1] [1]: https://graph.facebook.com/oauth/access_token?client_id=*MYID*&client_secret=*MY_SECRET*&grant_type=client_credentials
0
8,515,718
12/15/2011 05:53:37
1,093,326
12/12/2011 08:11:10
4
0
Execution of Hook Script from server
Im using tortoise plink to access the server.if i need to place my new scripts in repository/hooks ...what are the commands should be given?
svn
tortoisesvn
null
null
null
12/16/2011 06:13:50
not a real question
Execution of Hook Script from server === Im using tortoise plink to access the server.if i need to place my new scripts in repository/hooks ...what are the commands should be given?
1
4,981,963
02/13/2011 01:59:05
396,383
07/20/2010 02:13:46
789
2
Where is the __builtin__ module in CPython
I want to get the path and source code of __builtin__ module, where cai i get it?
python
cpython
null
null
null
null
open
Where is the __builtin__ module in CPython === I want to get the path and source code of __builtin__ module, where cai i get it?
0
10,468,865
05/06/2012 07:12:43
1,377,727
05/06/2012 07:03:39
1
0
How to learn about the multicore programming challenges
I am a newer. Now I face some difficulty for my study. I want to learn about the multi-core programming challenges and compose an article about it. but I can't find enough material for it. would you give me some advice about it? thanks.
multicore
null
null
null
null
05/06/2012 09:25:46
not a real question
How to learn about the multicore programming challenges === I am a newer. Now I face some difficulty for my study. I want to learn about the multi-core programming challenges and compose an article about it. but I can't find enough material for it. would you give me some advice about it? thanks.
1
8,844,827
01/13/2012 01:32:49
415,973
08/10/2010 09:22:16
771
10
Appending data into an array when condition is met?
I'm trying to keep a timer for users in my IRC. When a user types a message I'm trying to insert the username & time of the message. This is to stop spammers. if(userList.Contains(username)) { //check the time of message //if last message is 3 seconds ago or greater, continue } else { //Add username & time into the array keeping all other values too } The problem is I don't know how to append data into the array. I don't know how to copy the other existing array data into the new array with the new values. Can this be done? Since array.Contains() doesn't work for two-dimensional arrays, what can I do to record the username and time? Should I insert data in two arrays? Thank you for the help.
c#
null
null
null
null
null
open
Appending data into an array when condition is met? === I'm trying to keep a timer for users in my IRC. When a user types a message I'm trying to insert the username & time of the message. This is to stop spammers. if(userList.Contains(username)) { //check the time of message //if last message is 3 seconds ago or greater, continue } else { //Add username & time into the array keeping all other values too } The problem is I don't know how to append data into the array. I don't know how to copy the other existing array data into the new array with the new values. Can this be done? Since array.Contains() doesn't work for two-dimensional arrays, what can I do to record the username and time? Should I insert data in two arrays? Thank you for the help.
0
8,437,533
12/08/2011 20:50:01
1,088,456
12/08/2011 19:52:15
1
0
Why wont my drupal site/theme render on iphone?
been here quite a few times and there is always valuable information to be found here. I've been building a site using drupal for some months now. I used a website called psd2cssonline.com to make a custom drupal theme. Everything is good except it does not render on iphones properly. the site (psd2cssonline.com) claims that a script included in the html will fix this sort of thing, but unfortunately for me this is not the case. this is the provided code that is supposed to fix my issue, please help me figure out whats going wrong. jQuery.fn.iPhone = { /* Name: jQuery iPhone Plugin Release: 0.1.2 Date: 2008-04-21 15:20:45 About jQuery iPhone Plugin -------------------------- jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML, allowing you to easily include many components that enrich and benefit the developer's coding experience. jQuery iPhone Plugin extends jQuery's functionality for specific iPhone usages. Further documentation for jQuery can be found at: http://docs.jquery.com/Tutorials:How_jQuery_Works Javascript Example of jQuery: $(document).ready( function(){ $('body').html('<p>The entire site body was replaced with this text before you even saw it!</p>'); } ); Object: version --------------- version allows you to detect the current version of Safari and Webkit currently installed on the iPhone. If no version of safari or webkit is present, either will return false. Javascript Example of version: $(document).iPhone.orientchange( alert('Your current version of safari is: ' + $.iPhone.version.safari); alert('Your current version of webkit is: ' + $.iPhone.version.webkit); ); Function: orientchange ---------------------- orientchange allows you to write javascript that is to be executed when the user rotates their iPhone display. By default one function is passed and this function will execute on any iPhone rotation. Javascript Example of orientchange: $(document).iPhone.orientchange( function(){ alert('the iphone has rotated the screen'); } ); By passing in a second function, separated by a comma, you can now specify separate functions for portrait and landscape rotations. Javascript Example of orientchange (two arguments): $(document).iPhone.orientchange( function(){ alert('the iphone has rotated the screen to portrait'); }, function(){ alert('the iphone has rotated the screen to landscape'); } ); By passing in a third function, separated by a comma, you can now specify separate functions for portrait, 90 degree landscape, and -90 degree landscape rotations. Javascript Example of orientchange (three arguments): $(document).iPhone.orientchange( function() { alert('the iphone has rotated the screen to portrait'); }, function() { alert('the iphone has rotated the screen to a 90 degree landscape'); }, function() { alert('the iphone has rotated the screen to a -90 degree landscape'); } ); Function: hideURLbar -------------------- hideURLbar allows you to tuck the URL bar above the visibile portion of the screen if the URL bar is currently visible. By default hideURLbar will check to see if the position of the page would already indicate that the address bar was hidden. Javascript Example of hideURLbar: $(document).ready( function(){ $.iPhone.hideURLbar(); // This will hide the URL bar when the page first appears. } ); By passing an argument into hideURLbar you can now force it to shift the user to the top of the document where the URL bar is still hidden. HTML Example of hideURLbar: <!-- TAKES USER TO THE TOP OF THE PAGE WITHOUT SHOWING THE ADDRESS BAR --> <a href="javascript:$.iPhone.hideURLbar(1);">Back to top</a> Function: disableTextSizeAdjust ------------------------------- disableTextSizeAdjust allows you to keep the iPhone from automatically resizing text on your page. Javascript Example of disableTextSizeAdjust: $(document).ready( function(){ $.iPhone.disableTextSizeAdjust(); } ); If the function is excuted after the page has loaded, the text may resize itself to it's originally intended size, where it will then cease resizing. HTML Example of disableTextSizeAdjust: <a href="javascript:$.iPhone.disableTextSizeAdjust();"></a> Function: enableTextSizeAdjust -------------------- enableTextSizeAdjust allows you to specify or reenable the iPhone to automatically resize text on your page. Javascript Example of enableTextSizeAdjust: $(document).ready( function(){ $.iPhone.enableTextSizeAdjust(); } ); If the function is excuted after the page has loaded and text resizing has been previously disabled, the text may resize itself to it's newly desired size, where it will then continue to resize. HTML Example of enableTextSizeAdjust: <a href="javascript:$.iPhone.enableTextSizeAdjust();"></a> */ version: { safari: (/AppleWebKit\/([^\s]+)/.exec(navigator.userAgent) || [,false])[1], webkit: (/Safari\/(.+)/.exec(navigator.userAgent) || [,false])[1] }, orientchange: function(p,l,r) { p = p||function(){}; l = l||p; r = r||l; window.onorientationchange = function() { switch(window.orientation) { case 0: p(); break; case 90: l(); break; case -90: r(); break; }; }; }, hideURLbar: function(f) { if(window.innerHeight < (window.outerHeight+20)) { $('html').css({'min-height':(window.outerHeight+20)+'px'}); } setTimeout(function() { if(window.pageYOffset<1||f) { window.scrollTo(0, 1); jQuery.iPhone.hideURLbar(); } }, 0); }, disableTextSizeAdjust: function() { jQuery('html').css({'-webkit-text-size-adjust':'none'}); }, enableTextSizeAdjust: function() { jQuery('html').css({'-webkit-text-size-adjust':'auto'}); } }; /* This will slow the timer on jQuery from 13ms to 83ms, or roughly 12fps */ jQuery.timerId = setInterval(function(){ var timers = jQuery.timers; for (var i = 0; i < timers.length; i++) { if (!timers[i]()) { timers.splice(i--, 1); } } if (!timers.length) { clearInterval(jQuery.timerId); jQuery.timerId = null; } }, 83); }) /* This will allow you to call the iPhone plugin as $.iPhone too */ jQuery.iPhone = jQuery(document).iPhone;
jquery
null
null
null
null
12/08/2011 22:13:43
not a real question
Why wont my drupal site/theme render on iphone? === been here quite a few times and there is always valuable information to be found here. I've been building a site using drupal for some months now. I used a website called psd2cssonline.com to make a custom drupal theme. Everything is good except it does not render on iphones properly. the site (psd2cssonline.com) claims that a script included in the html will fix this sort of thing, but unfortunately for me this is not the case. this is the provided code that is supposed to fix my issue, please help me figure out whats going wrong. jQuery.fn.iPhone = { /* Name: jQuery iPhone Plugin Release: 0.1.2 Date: 2008-04-21 15:20:45 About jQuery iPhone Plugin -------------------------- jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML, allowing you to easily include many components that enrich and benefit the developer's coding experience. jQuery iPhone Plugin extends jQuery's functionality for specific iPhone usages. Further documentation for jQuery can be found at: http://docs.jquery.com/Tutorials:How_jQuery_Works Javascript Example of jQuery: $(document).ready( function(){ $('body').html('<p>The entire site body was replaced with this text before you even saw it!</p>'); } ); Object: version --------------- version allows you to detect the current version of Safari and Webkit currently installed on the iPhone. If no version of safari or webkit is present, either will return false. Javascript Example of version: $(document).iPhone.orientchange( alert('Your current version of safari is: ' + $.iPhone.version.safari); alert('Your current version of webkit is: ' + $.iPhone.version.webkit); ); Function: orientchange ---------------------- orientchange allows you to write javascript that is to be executed when the user rotates their iPhone display. By default one function is passed and this function will execute on any iPhone rotation. Javascript Example of orientchange: $(document).iPhone.orientchange( function(){ alert('the iphone has rotated the screen'); } ); By passing in a second function, separated by a comma, you can now specify separate functions for portrait and landscape rotations. Javascript Example of orientchange (two arguments): $(document).iPhone.orientchange( function(){ alert('the iphone has rotated the screen to portrait'); }, function(){ alert('the iphone has rotated the screen to landscape'); } ); By passing in a third function, separated by a comma, you can now specify separate functions for portrait, 90 degree landscape, and -90 degree landscape rotations. Javascript Example of orientchange (three arguments): $(document).iPhone.orientchange( function() { alert('the iphone has rotated the screen to portrait'); }, function() { alert('the iphone has rotated the screen to a 90 degree landscape'); }, function() { alert('the iphone has rotated the screen to a -90 degree landscape'); } ); Function: hideURLbar -------------------- hideURLbar allows you to tuck the URL bar above the visibile portion of the screen if the URL bar is currently visible. By default hideURLbar will check to see if the position of the page would already indicate that the address bar was hidden. Javascript Example of hideURLbar: $(document).ready( function(){ $.iPhone.hideURLbar(); // This will hide the URL bar when the page first appears. } ); By passing an argument into hideURLbar you can now force it to shift the user to the top of the document where the URL bar is still hidden. HTML Example of hideURLbar: <!-- TAKES USER TO THE TOP OF THE PAGE WITHOUT SHOWING THE ADDRESS BAR --> <a href="javascript:$.iPhone.hideURLbar(1);">Back to top</a> Function: disableTextSizeAdjust ------------------------------- disableTextSizeAdjust allows you to keep the iPhone from automatically resizing text on your page. Javascript Example of disableTextSizeAdjust: $(document).ready( function(){ $.iPhone.disableTextSizeAdjust(); } ); If the function is excuted after the page has loaded, the text may resize itself to it's originally intended size, where it will then cease resizing. HTML Example of disableTextSizeAdjust: <a href="javascript:$.iPhone.disableTextSizeAdjust();"></a> Function: enableTextSizeAdjust -------------------- enableTextSizeAdjust allows you to specify or reenable the iPhone to automatically resize text on your page. Javascript Example of enableTextSizeAdjust: $(document).ready( function(){ $.iPhone.enableTextSizeAdjust(); } ); If the function is excuted after the page has loaded and text resizing has been previously disabled, the text may resize itself to it's newly desired size, where it will then continue to resize. HTML Example of enableTextSizeAdjust: <a href="javascript:$.iPhone.enableTextSizeAdjust();"></a> */ version: { safari: (/AppleWebKit\/([^\s]+)/.exec(navigator.userAgent) || [,false])[1], webkit: (/Safari\/(.+)/.exec(navigator.userAgent) || [,false])[1] }, orientchange: function(p,l,r) { p = p||function(){}; l = l||p; r = r||l; window.onorientationchange = function() { switch(window.orientation) { case 0: p(); break; case 90: l(); break; case -90: r(); break; }; }; }, hideURLbar: function(f) { if(window.innerHeight < (window.outerHeight+20)) { $('html').css({'min-height':(window.outerHeight+20)+'px'}); } setTimeout(function() { if(window.pageYOffset<1||f) { window.scrollTo(0, 1); jQuery.iPhone.hideURLbar(); } }, 0); }, disableTextSizeAdjust: function() { jQuery('html').css({'-webkit-text-size-adjust':'none'}); }, enableTextSizeAdjust: function() { jQuery('html').css({'-webkit-text-size-adjust':'auto'}); } }; /* This will slow the timer on jQuery from 13ms to 83ms, or roughly 12fps */ jQuery.timerId = setInterval(function(){ var timers = jQuery.timers; for (var i = 0; i < timers.length; i++) { if (!timers[i]()) { timers.splice(i--, 1); } } if (!timers.length) { clearInterval(jQuery.timerId); jQuery.timerId = null; } }, 83); }) /* This will allow you to call the iPhone plugin as $.iPhone too */ jQuery.iPhone = jQuery(document).iPhone;
1
10,509,989
05/09/2012 04:47:31
1,374,388
05/04/2012 07:41:44
1
0
how to assign separate css for websheet in ipad
I have a web page i want that web page should load two different css one when it is runing on mobile safari and one for when we save it home screen and then runs on web sheet so how to load different css files for both
javascript
css
html5
null
null
05/09/2012 04:49:44
not a real question
how to assign separate css for websheet in ipad === I have a web page i want that web page should load two different css one when it is runing on mobile safari and one for when we save it home screen and then runs on web sheet so how to load different css files for both
1
7,134,103
08/20/2011 19:19:48
904,012
08/20/2011 19:19:48
1
0
Javascript setTimeout() and window functions
The following JavaScript code runs in chrome, and results in the "background" window being resized to the my specifications: var background; function play () { var w = screen.width; var h = screen.height; if( !background || background.closed ) background = window.open("background.html", "It's a pop-up!", "top="+ 100 +",left="+ 770 +",width="+ w/3 +",height="+ h/3 +",location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no"); background.resizeTo(w,724); } When I try to delay the resize function, however, the code breaks. Why does calling `setTimeout("background.resizeTo(w,724)",10000)` have no visible result?
javascript
google-chrome
resize
settimeout
null
null
open
Javascript setTimeout() and window functions === The following JavaScript code runs in chrome, and results in the "background" window being resized to the my specifications: var background; function play () { var w = screen.width; var h = screen.height; if( !background || background.closed ) background = window.open("background.html", "It's a pop-up!", "top="+ 100 +",left="+ 770 +",width="+ w/3 +",height="+ h/3 +",location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no"); background.resizeTo(w,724); } When I try to delay the resize function, however, the code breaks. Why does calling `setTimeout("background.resizeTo(w,724)",10000)` have no visible result?
0
11,631,662
07/24/2012 13:14:17
114,518
05/29/2009 19:36:15
517
6
How can we turn off or get around this app_offline.htm business?
So, we are still attempting to isolate exactly when this file is generated. We are using SQL Server 2008 Express RC (thus not 2005, which apparently can cause the generation). However, we have a remote IT person that periodically backs up our site and redeploys it. I think it's this scenario that causes app_offline's generation. Anyways, while one of us are working, it's no problem to open up the project and delete this file. However, I'm going to be going back to school quite soon and I don't want to have to get calls at 7am letting me know the site is down and it needs to be fixed immediately. Here are a couple useful links. I've fairly scoured the web (and stackoverflow) for information, but no one seems to know how to make IIS ignore this file, or delete it upon generation. http://stackoverflow.com/questions/1973933/opinions-on-msdeploy http://www.beansoftware.com/ASP.NET-Tutorials/Restart-Stop-Application.aspx Meanwhile, we will continue attempting to isolate the instances when it is generated. Thank you
asp.net
vb.net
sql-server-2008
app-offline.htm
null
null
open
How can we turn off or get around this app_offline.htm business? === So, we are still attempting to isolate exactly when this file is generated. We are using SQL Server 2008 Express RC (thus not 2005, which apparently can cause the generation). However, we have a remote IT person that periodically backs up our site and redeploys it. I think it's this scenario that causes app_offline's generation. Anyways, while one of us are working, it's no problem to open up the project and delete this file. However, I'm going to be going back to school quite soon and I don't want to have to get calls at 7am letting me know the site is down and it needs to be fixed immediately. Here are a couple useful links. I've fairly scoured the web (and stackoverflow) for information, but no one seems to know how to make IIS ignore this file, or delete it upon generation. http://stackoverflow.com/questions/1973933/opinions-on-msdeploy http://www.beansoftware.com/ASP.NET-Tutorials/Restart-Stop-Application.aspx Meanwhile, we will continue attempting to isolate the instances when it is generated. Thank you
0
7,223,030
08/28/2011 18:32:40
916,206
08/28/2011 07:49:13
1
0
where should I place .htaccess?
where should I place .htaccess in the public_html folder ??? The .htaccess removes the php extension and converts the URLs into SEO friendly URLs .. here is the content of .htaccess RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.+)$ $1.php [L,QSA]
.htaccess
mod-rewrite
null
null
null
08/29/2011 03:34:19
not a real question
where should I place .htaccess? === where should I place .htaccess in the public_html folder ??? The .htaccess removes the php extension and converts the URLs into SEO friendly URLs .. here is the content of .htaccess RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.+)$ $1.php [L,QSA]
1
10,911,888
06/06/2012 09:52:48
1,084,003
12/06/2011 17:20:12
21
2
How to upload a sound to SoundCloud using the JS API
Apparently you can't simply upload a sound to the SoundCloud API using Javascript. I'd like people to drag and drop their sound to a specific zone which will initiate the Soundcloud upload. Currently, we have to upload the sound to our server first and then upload it to their servers using the PHP SDK. What's the workaround? Just like the Youtube API allows you to upload a video directly to their servers, without wasting your bandwidth.
javascript
api
audio
upload
soundcloud
06/07/2012 13:50:27
not a real question
How to upload a sound to SoundCloud using the JS API === Apparently you can't simply upload a sound to the SoundCloud API using Javascript. I'd like people to drag and drop their sound to a specific zone which will initiate the Soundcloud upload. Currently, we have to upload the sound to our server first and then upload it to their servers using the PHP SDK. What's the workaround? Just like the Youtube API allows you to upload a video directly to their servers, without wasting your bandwidth.
1
7,493,678
09/21/2011 01:40:53
855,005
07/21/2011 00:40:49
17
0
CSS on my mastr page: I just want to add wrap on picture
got a few favor to ask. As you see ive created a package on my css so that i could call it on my master page. My problem is when i i add picture on the package the picture is to big that it is cropped. Could you possibly tell me that code on wrapping it? So that i could use it on jcarussel? Thanks and more power Im just new on this cascading style sheet #featured .sliderImages{ position:absolute; left:30px; text-align:center; width:380px; height:202px; top:30px; } ul.slider-img-list{ width:380px; margin: 0pt; padding: 0pt; position: relative; list-style-type: none; z-index: 1; top: 1200px; } ul.slider-img-list li{ overflow: hidden; float: left; width: 380px; height: 202px; vertical-align:bottom; } a.package1{ width:270px; height:180px; display:block; background:url(images/slideleft-1.png) top left no-repeat; margin:0 auto; } a.package2{ width:270px; height:180px; display:block; background:url(images/slideleft-2.png) top left no-repeat; margin:0 auto; } a.package3{ width:270px; height:180px; display:block; background:url(images/slideleft-3.png) top left no-repeat; margin:0 auto; } a.package4{ width:270px; height:180px; display:block; background:url(images/slideleft-4.png) top left no-repeat; margin:0 auto; } a.package5{ width:270px; height:180px; display:block; background:url(images/slideleft-5.png) top left no-repeat; margin:0 auto; } .sliderImages span, .arrows span{ display:none; }
css
null
null
null
null
09/29/2011 11:03:35
too localized
CSS on my mastr page: I just want to add wrap on picture === got a few favor to ask. As you see ive created a package on my css so that i could call it on my master page. My problem is when i i add picture on the package the picture is to big that it is cropped. Could you possibly tell me that code on wrapping it? So that i could use it on jcarussel? Thanks and more power Im just new on this cascading style sheet #featured .sliderImages{ position:absolute; left:30px; text-align:center; width:380px; height:202px; top:30px; } ul.slider-img-list{ width:380px; margin: 0pt; padding: 0pt; position: relative; list-style-type: none; z-index: 1; top: 1200px; } ul.slider-img-list li{ overflow: hidden; float: left; width: 380px; height: 202px; vertical-align:bottom; } a.package1{ width:270px; height:180px; display:block; background:url(images/slideleft-1.png) top left no-repeat; margin:0 auto; } a.package2{ width:270px; height:180px; display:block; background:url(images/slideleft-2.png) top left no-repeat; margin:0 auto; } a.package3{ width:270px; height:180px; display:block; background:url(images/slideleft-3.png) top left no-repeat; margin:0 auto; } a.package4{ width:270px; height:180px; display:block; background:url(images/slideleft-4.png) top left no-repeat; margin:0 auto; } a.package5{ width:270px; height:180px; display:block; background:url(images/slideleft-5.png) top left no-repeat; margin:0 auto; } .sliderImages span, .arrows span{ display:none; }
3
6,397,221
06/18/2011 16:05:51
735,259
05/02/2011 23:36:55
168
2
Producing an HttpWebRequest ? An ArgumentException Error Occurs
I am trying to post data to `closure-compiler.appspot.com` by using its request header. This is the request header of application. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Charset: ISO-8859-9,utf-8;q=0.7,*;q=0.3 Accept-Encoding: gzip,deflate,sdch Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4 Cache-Control: max-age=0 Content-Length: 269 Content-Type: application/x-www-form-urlencoded Host: closure-compiler.appspot.com Origin: null Connection: keep-alive User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.794.0 Safari/535.1 Thats what I did to create this request in .NET HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://closure-compiler.appspot.com/compile"); req.Connection = "keep-alive"; req.Headers.Add("Cache-Control", "max-age=0"); req.Headers.Add("Origin","null"); req.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.794.0 Safari/535.1"; req.ContentType = "application/x-www-form-urlencoded"; req.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; req.Headers.Add("Accept-Encoding", "gzip,deflate,sdch"); req.Headers.Add("Accept-Language", "tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4"); req.Headers.Add("Accept-Charset", " ISO-8859-9,utf-8;q=0.7,*;q=0.3"); req.Method = "POST"; Stream reqStr = req.GetRequestStream(); //this line give me an argumentexception //Keep-Alive and Close may not be set using this property. //Parameter name: value So how can I produce the header which the application wants me to send ?
.net
httpwebrequest
http-post
null
null
null
open
Producing an HttpWebRequest ? An ArgumentException Error Occurs === I am trying to post data to `closure-compiler.appspot.com` by using its request header. This is the request header of application. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Charset: ISO-8859-9,utf-8;q=0.7,*;q=0.3 Accept-Encoding: gzip,deflate,sdch Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4 Cache-Control: max-age=0 Content-Length: 269 Content-Type: application/x-www-form-urlencoded Host: closure-compiler.appspot.com Origin: null Connection: keep-alive User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.794.0 Safari/535.1 Thats what I did to create this request in .NET HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://closure-compiler.appspot.com/compile"); req.Connection = "keep-alive"; req.Headers.Add("Cache-Control", "max-age=0"); req.Headers.Add("Origin","null"); req.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.794.0 Safari/535.1"; req.ContentType = "application/x-www-form-urlencoded"; req.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; req.Headers.Add("Accept-Encoding", "gzip,deflate,sdch"); req.Headers.Add("Accept-Language", "tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4"); req.Headers.Add("Accept-Charset", " ISO-8859-9,utf-8;q=0.7,*;q=0.3"); req.Method = "POST"; Stream reqStr = req.GetRequestStream(); //this line give me an argumentexception //Keep-Alive and Close may not be set using this property. //Parameter name: value So how can I produce the header which the application wants me to send ?
0
3,583,509
08/27/2010 11:01:43
352,860
05/28/2010 12:06:50
135
1
how the stackoverflow affect variable ?
how the stackoverflow affect variable ?
memory
programming-languages
operating-system
null
null
08/27/2010 11:36:54
not a real question
how the stackoverflow affect variable ? === how the stackoverflow affect variable ?
1
7,124,111
08/19/2011 15:45:39
788,081
06/07/2011 19:04:01
11
0
Need Regular Expressions for asp.net
I have three text boxes. 1. Regular expression to only allow 3 upper case alphabets. No empty strings and no numbers 2.Regular expression to allow only 3 numbers. no empty strings 3. Regular expression for 5 or fewer uppercase alphabets only. no empty strings, no numbers
regex
null
null
null
null
08/19/2011 17:26:32
not a real question
Need Regular Expressions for asp.net === I have three text boxes. 1. Regular expression to only allow 3 upper case alphabets. No empty strings and no numbers 2.Regular expression to allow only 3 numbers. no empty strings 3. Regular expression for 5 or fewer uppercase alphabets only. no empty strings, no numbers
1
6,203,689
06/01/2011 15:27:07
699,850
04/09/2011 10:30:45
13
2
Visual Studio C++ How to get the Form not freezing while calling a time-consuming function?
I am making a C++ Forms application. In the main window of my app I have a button. When I click that button I call the "Load" function. Below there is the C++ code: private: System::Void Button1_Click(System::Object^ sender, System::EventArgs^ e) { Load(); } The function Load() is a time-consuming function. It uses the cURL library to send several HTTP GET request to a website. In the Form I also included a ProgressBar and a textLabel showing the current request being sended. The problem is that when I click the button and call the function the Form just freezes. I can't see the progressBar and Textlabel changing it's value while the function Load() is called, the Form is just freezed. When the function Load() has finished sending request, suddenly the progressBar change It's value to 100%. I hope I described my problem clearly enough to understand it.
c++
visual-studio-2010
visual-c++
function
freeze
null
open
Visual Studio C++ How to get the Form not freezing while calling a time-consuming function? === I am making a C++ Forms application. In the main window of my app I have a button. When I click that button I call the "Load" function. Below there is the C++ code: private: System::Void Button1_Click(System::Object^ sender, System::EventArgs^ e) { Load(); } The function Load() is a time-consuming function. It uses the cURL library to send several HTTP GET request to a website. In the Form I also included a ProgressBar and a textLabel showing the current request being sended. The problem is that when I click the button and call the function the Form just freezes. I can't see the progressBar and Textlabel changing it's value while the function Load() is called, the Form is just freezed. When the function Load() has finished sending request, suddenly the progressBar change It's value to 100%. I hope I described my problem clearly enough to understand it.
0
1,599,914
10/21/2009 10:21:07
103,213
05/07/2009 22:52:27
245
18
Text Typing Effect in iPhone cocos2d Game
In many games, when a character is speaking (dialogue), the text has a typing effect, where it looks like you are watching the character type the text. What would be a good way to achieve this look and (simple) "animation" for an iPhone game which uses cocos2d? It's good if there's a way to do it with cocos2d, but I'm not completely opposed to layering a UIView subclass (UILabel?) on top of cocos2d's EAGL (OpenGL ES) view.
iphone
cocos2d
cocos2d-iphone
text
effect
null
open
Text Typing Effect in iPhone cocos2d Game === In many games, when a character is speaking (dialogue), the text has a typing effect, where it looks like you are watching the character type the text. What would be a good way to achieve this look and (simple) "animation" for an iPhone game which uses cocos2d? It's good if there's a way to do it with cocos2d, but I'm not completely opposed to layering a UIView subclass (UILabel?) on top of cocos2d's EAGL (OpenGL ES) view.
0
2,175,684
02/01/2010 09:33:33
161,505
08/23/2009 08:29:43
8
1
Is there a way to share an in-memory object between multiple stes?
We have about 70 sites on our server that use same application (with different Application Pools) and they use for example a shared skin file. So is there a way to load this file to memory and share for all applications? what I mean is to sharing cache in multiple websites to decrease pressure on server. Thanks in advance
asp.net
share
memory
null
null
null
open
Is there a way to share an in-memory object between multiple stes? === We have about 70 sites on our server that use same application (with different Application Pools) and they use for example a shared skin file. So is there a way to load this file to memory and share for all applications? what I mean is to sharing cache in multiple websites to decrease pressure on server. Thanks in advance
0
9,642,506
03/09/2012 23:49:00
1,043,352
11/12/2011 17:12:37
61
5
JNI Attach/Detach thread memory management
I have a JNI Callback: void callback(Data *data, char *callbackName){ JNIEnv *env; jvm->AttachCurrentThread((void **)&env, NULL); /* start useful code*/ /* end useful code */ jvm->DetachCurrentThread(); } When I run it like this (empty useful code), I get a memory leak. If I comment out the whole method, there is no leak. What is the correct way of attaching / detaching threads? My application processes real-time sound data, so the threads responsible for data processing must be done as soon as possible in order to be ready for another batch. So for these callbacks, I create new threads. There are dozens or even hundreds of them each second, they attach themselves to JVM, call a callback function which repaints a graph, detach and die. Is this a correct way of doing this stuff? How to handle the leaking memory? EDIT: typo
java
jni
null
null
null
null
open
JNI Attach/Detach thread memory management === I have a JNI Callback: void callback(Data *data, char *callbackName){ JNIEnv *env; jvm->AttachCurrentThread((void **)&env, NULL); /* start useful code*/ /* end useful code */ jvm->DetachCurrentThread(); } When I run it like this (empty useful code), I get a memory leak. If I comment out the whole method, there is no leak. What is the correct way of attaching / detaching threads? My application processes real-time sound data, so the threads responsible for data processing must be done as soon as possible in order to be ready for another batch. So for these callbacks, I create new threads. There are dozens or even hundreds of them each second, they attach themselves to JVM, call a callback function which repaints a graph, detach and die. Is this a correct way of doing this stuff? How to handle the leaking memory? EDIT: typo
0
994,950
06/15/2009 07:58:09
74,314
03/05/2009 16:17:05
228
38
solution to search into files (in lamp)
i have site that the user upload files (PDF,WORD,POWER POINT ....) and they want to have the ability to search word in the files, how can i do it ?
file-search
php
lamp
null
null
null
open
solution to search into files (in lamp) === i have site that the user upload files (PDF,WORD,POWER POINT ....) and they want to have the ability to search word in the files, how can i do it ?
0
6,055,736
05/19/2011 08:19:53
515,772
11/22/2010 07:57:03
81
1
ASP.NET GridView - Object reference not set to an instance of an object.
I have a gridview, that I made editable. That works... sort of. Now I'm trying to **update** a row with new data. The row has columns like: ========================= | Time | Date | Project | etc etc | ========================= I'm trying to save the contents of the edit boxes that appear as i **Edit** a row. The way I do it is like this: `TextBox time = (TextBox) GridView1.Rows[e.RowIndex].FindControl("txtTime");` `--linq-object-reference--.time = Convert.ToInt32(time.Text);` But I recieve an error... Anyone know why?
asp.net
linq
null
null
null
null
open
ASP.NET GridView - Object reference not set to an instance of an object. === I have a gridview, that I made editable. That works... sort of. Now I'm trying to **update** a row with new data. The row has columns like: ========================= | Time | Date | Project | etc etc | ========================= I'm trying to save the contents of the edit boxes that appear as i **Edit** a row. The way I do it is like this: `TextBox time = (TextBox) GridView1.Rows[e.RowIndex].FindControl("txtTime");` `--linq-object-reference--.time = Convert.ToInt32(time.Text);` But I recieve an error... Anyone know why?
0
4,802,201
01/26/2011 07:23:01
480,040
10/19/2010 04:43:51
41
2
Find logo in desktop screenshot
I need to develop a desktop application which will 1.) have a list of the Different Application logos (Background Transparent) e.g. IE, FIREFOX, CHROME, PHOTOSHOP ETC. 2.) User will take a screenshot of desktop and save the image. 3.) Now my application need to search all the logos in the screenshot image and tell which all logos are present and where. 4.) I used OPENCV, it's working, but when user changes the desktop background & captures screenshot, it's not working as the transparent area of logo is getting the desktop background content. Can somebody provide a solution or libraries open source, commercial to do this job.
algorithm
image-processing
opencv
computer-vision
null
null
open
Find logo in desktop screenshot === I need to develop a desktop application which will 1.) have a list of the Different Application logos (Background Transparent) e.g. IE, FIREFOX, CHROME, PHOTOSHOP ETC. 2.) User will take a screenshot of desktop and save the image. 3.) Now my application need to search all the logos in the screenshot image and tell which all logos are present and where. 4.) I used OPENCV, it's working, but when user changes the desktop background & captures screenshot, it's not working as the transparent area of logo is getting the desktop background content. Can somebody provide a solution or libraries open source, commercial to do this job.
0
9,163,493
02/06/2012 16:29:05
833,430
07/07/2011 11:41:50
71
0
Is there a script I can use where enter a url and it grabs images?
I'm developing a site where an image needs to be grabbed on the page... e.g. I would present to the end-user a text input - they enter the url....and it finds the images on the page if they are over "x"px dimensions..for example..if they enter a url to an amazon product page - ...it then grabs the product image.... and then saves on my server... Does anyone know of an off-the-shelf script that can do this or an online tutorial? - Think of Facebook..when you enter the url...of somethign to share, it grabs the image...and text on that page. Thanks.
jquery
ajax
null
null
null
02/07/2012 01:50:27
not constructive
Is there a script I can use where enter a url and it grabs images? === I'm developing a site where an image needs to be grabbed on the page... e.g. I would present to the end-user a text input - they enter the url....and it finds the images on the page if they are over "x"px dimensions..for example..if they enter a url to an amazon product page - ...it then grabs the product image.... and then saves on my server... Does anyone know of an off-the-shelf script that can do this or an online tutorial? - Think of Facebook..when you enter the url...of somethign to share, it grabs the image...and text on that page. Thanks.
4
10,435,409
05/03/2012 16:21:05
1,344,766
04/19/2012 18:13:52
3
0
remove battery or sim card in android
Hi i have two questions about android apis: I want to use android apis that when user remove the sim card or remove the battery application saves user actions on database.Can i do these problems in android os? this applications is fleet management gps tracking application.But i don't know how to cover these issues in android system. Can i cover these issues in android device? Or i need other hardware for fleet management system?
android
gps
null
null
null
05/04/2012 12:59:59
not a real question
remove battery or sim card in android === Hi i have two questions about android apis: I want to use android apis that when user remove the sim card or remove the battery application saves user actions on database.Can i do these problems in android os? this applications is fleet management gps tracking application.But i don't know how to cover these issues in android system. Can i cover these issues in android device? Or i need other hardware for fleet management system?
1
11,498,015
07/16/2012 04:13:21
1,452,224
06/12/2012 20:37:25
18
0
jquery ui no selected tab - show static content then tab content when tab selected
Here is what I have so far...I'm trying to have a user come to a page where no tabs are selected but they are present on the page. When no tabs are selected I want the main page content to show. When a tab is selected I want the main page content to hide and the tab content to show for the appropriately selected tab. $(document).ready(function(){ if (location.hash) { $('#tabs').tabs(); $('#campaigns').hide(); } else { $('#tabs').tabs({selected: -1}); $('#campaigns').show(); } }); My HTML is no different then the proper UI Tab procedure. I simply added another below that content with the id #campaigns.
jquery
jquery-ui
null
null
null
07/17/2012 11:36:45
not a real question
jquery ui no selected tab - show static content then tab content when tab selected === Here is what I have so far...I'm trying to have a user come to a page where no tabs are selected but they are present on the page. When no tabs are selected I want the main page content to show. When a tab is selected I want the main page content to hide and the tab content to show for the appropriately selected tab. $(document).ready(function(){ if (location.hash) { $('#tabs').tabs(); $('#campaigns').hide(); } else { $('#tabs').tabs({selected: -1}); $('#campaigns').show(); } }); My HTML is no different then the proper UI Tab procedure. I simply added another below that content with the id #campaigns.
1
9,231,610
02/10/2012 16:57:39
1,135,092
01/06/2012 20:09:59
33
5
Error when installing curl debian squeeze
I have set up an ISPconfig server and am now trying to install curl. Im using apt-get install php5-curl and it seems to be throwing up an error. After i press "y" to accept the install it takes me to a screen that says php5 (5.3.3-7+squeeze5) squeeze-security; urgency=high * The following new directives were added as part of security fixes: - max_input_vars - specifies how many GET/POST/COOKIE input variables may be accepted. Default value is set to 1000. - xsl.security_prefs - define forbidden operations within XSLT stylesheets. Write operations are now disabled by default. -- Ondřej Surý <ondrej@debian.org> Mon, 23 Jan 2012 12:22:26 +0100 php5 (5.3.3-7+squeeze4) squeeze-security; urgency=low * Updated blowfish crypt() algorithm fixes the 8-bit character handling vulnerability (CVE-2011-2483) and adds more self-tests. Unfortunately this change is incompatible with some old (wrong) generated hashes for passwords containing 8-bit characters. Therefore the new salt prefix '$2x$' was introduced which can be used as a replacement for '$2a$' salt prefix in the password database in case the incompatibility is found. -- Ondřej Surý <ondrej@debian.org> Mon, 04 Jul 2011 10:31:16 +0200 /tmp/tmp93fjeS (END) please help me with what i should do
php
curl
debian
null
null
02/13/2012 16:37:06
off topic
Error when installing curl debian squeeze === I have set up an ISPconfig server and am now trying to install curl. Im using apt-get install php5-curl and it seems to be throwing up an error. After i press "y" to accept the install it takes me to a screen that says php5 (5.3.3-7+squeeze5) squeeze-security; urgency=high * The following new directives were added as part of security fixes: - max_input_vars - specifies how many GET/POST/COOKIE input variables may be accepted. Default value is set to 1000. - xsl.security_prefs - define forbidden operations within XSLT stylesheets. Write operations are now disabled by default. -- Ondřej Surý <ondrej@debian.org> Mon, 23 Jan 2012 12:22:26 +0100 php5 (5.3.3-7+squeeze4) squeeze-security; urgency=low * Updated blowfish crypt() algorithm fixes the 8-bit character handling vulnerability (CVE-2011-2483) and adds more self-tests. Unfortunately this change is incompatible with some old (wrong) generated hashes for passwords containing 8-bit characters. Therefore the new salt prefix '$2x$' was introduced which can be used as a replacement for '$2a$' salt prefix in the password database in case the incompatibility is found. -- Ondřej Surý <ondrej@debian.org> Mon, 04 Jul 2011 10:31:16 +0200 /tmp/tmp93fjeS (END) please help me with what i should do
2
8,814,852
01/11/2012 06:00:58
1,113,572
12/23/2011 14:48:08
32
0
is it possible to display2 or more pages on another page when the links on them are clicked?
is it possible to display2 or more pages on another page when the links on them are clicked? I'm wondering if you can display two or more pages or the content of that page on another page when the link to that page I want to display is clicked.. thanks ahead.
php
jquery
html
null
null
01/11/2012 15:35:42
not a real question
is it possible to display2 or more pages on another page when the links on them are clicked? === is it possible to display2 or more pages on another page when the links on them are clicked? I'm wondering if you can display two or more pages or the content of that page on another page when the link to that page I want to display is clicked.. thanks ahead.
1
1,976,335
12/29/2009 19:10:50
121,646
06/11/2009 21:58:42
215
7
Wordpress plug-in to instantly reply to a form?
Does anyone know if there is a wordpress plug-in which lets you set up a form which has an email field, among others. The form, after filled in, would: * send the content of the form fields to an email address (name:joe, phone number: 555 etc) * send an instance response to the email provided ('thanks for your contribution') * add email address to an internal database (which is exportable) within the wprdpress admin Thanks.
wordpress
wordpress-plugin
forms
email
null
null
open
Wordpress plug-in to instantly reply to a form? === Does anyone know if there is a wordpress plug-in which lets you set up a form which has an email field, among others. The form, after filled in, would: * send the content of the form fields to an email address (name:joe, phone number: 555 etc) * send an instance response to the email provided ('thanks for your contribution') * add email address to an internal database (which is exportable) within the wprdpress admin Thanks.
0
9,386,933
02/21/2012 23:26:21
280,772
02/24/2010 22:53:36
196
1
javascript function not being called
I have a function in a separate .js file called jQuery.loadjson.js. and that being called from my htm page with the syntax $('#data').loadJSON(data); #data is a div and data is a JSOn object. Now, when I debig that in Firebug, it just does not go to the definition.
javascript
jquery
firebug
null
null
02/22/2012 02:11:09
not a real question
javascript function not being called === I have a function in a separate .js file called jQuery.loadjson.js. and that being called from my htm page with the syntax $('#data').loadJSON(data); #data is a div and data is a JSOn object. Now, when I debig that in Firebug, it just does not go to the definition.
1
8,985,635
01/24/2012 10:57:20
1,106,336
12/19/2011 16:49:53
1
0
Mschart get multiple series from Database
Hello i'm trying to populate a mschart from sql but even if the series have different values the chart is the same. So all the series have the same line overlapping each other. sqlConnection.Open(); SqlCommand cmd = new SqlCommand(query, sqlConnection); cmd.CommandType = CommandType.Text; cmd.CommandTimeout = 300; rdr = cmd.ExecuteReader(); DataTable table = new DataTable(); // Add three columns to the table. table.Columns.Add("Channel", typeof(String)); table.Columns.Add("Date", typeof(String)); table.Columns.Add("Value", typeof(Int32)); // Add data rows to the table. while (rdr.Read()) { table.Rows.Add(new object[] { rdr[0], rdr[1], rdr[2] }); } chart1.DataSource = table; //add series for (int i = 0; i < table.Rows.Count; i++) { if (chart1.Series.Where(x => x.Name == table.Rows[i][0].ToString()).Count() > 0) { } else { chart1.Series.Add(table.Rows[i][0].ToString()); } } //set x,y axis for each series for (int i = 0; i < chart1.Series.Count; i++) { chart1.Series[i].XValueMember = "Date"; chart1.Series[i].YValueMembers = "Value"; chart1.Series[i].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; } chart1.DataBind(); Thanks in advance
c#
null
null
null
null
null
open
Mschart get multiple series from Database === Hello i'm trying to populate a mschart from sql but even if the series have different values the chart is the same. So all the series have the same line overlapping each other. sqlConnection.Open(); SqlCommand cmd = new SqlCommand(query, sqlConnection); cmd.CommandType = CommandType.Text; cmd.CommandTimeout = 300; rdr = cmd.ExecuteReader(); DataTable table = new DataTable(); // Add three columns to the table. table.Columns.Add("Channel", typeof(String)); table.Columns.Add("Date", typeof(String)); table.Columns.Add("Value", typeof(Int32)); // Add data rows to the table. while (rdr.Read()) { table.Rows.Add(new object[] { rdr[0], rdr[1], rdr[2] }); } chart1.DataSource = table; //add series for (int i = 0; i < table.Rows.Count; i++) { if (chart1.Series.Where(x => x.Name == table.Rows[i][0].ToString()).Count() > 0) { } else { chart1.Series.Add(table.Rows[i][0].ToString()); } } //set x,y axis for each series for (int i = 0; i < chart1.Series.Count; i++) { chart1.Series[i].XValueMember = "Date"; chart1.Series[i].YValueMembers = "Value"; chart1.Series[i].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; } chart1.DataBind(); Thanks in advance
0
5,041,171
02/18/2011 12:18:20
4,653
09/05/2008 00:53:33
1,089
79
how can i replicate the tags textbox in stackoverflow
i am building a website and i want to support tagging on pages. I want to exactly replicate the way it works on stackoverflow questions around autocomplete, blue tag box css. etc. is there any code that i can leverage here?
asp.net-mvc
tagging
null
null
null
null
open
how can i replicate the tags textbox in stackoverflow === i am building a website and i want to support tagging on pages. I want to exactly replicate the way it works on stackoverflow questions around autocomplete, blue tag box css. etc. is there any code that i can leverage here?
0
8,706,226
01/02/2012 23:03:34
758,197
05/17/2011 21:32:57
37
0
fopen won't open remote files
so read the title and look at my code $file = "ftp://username:pw@ip/cstrike/server.cfg"; $fh = fopen($file, "w"); while (!feof($fh)) { $l = fgets($fh); print $l . "<BR>"; } fclose($fh); And it's not working. What I'm doing wrong Note:it works with local files
php
ftp
remote
fopen
null
03/21/2012 12:19:00
not a real question
fopen won't open remote files === so read the title and look at my code $file = "ftp://username:pw@ip/cstrike/server.cfg"; $fh = fopen($file, "w"); while (!feof($fh)) { $l = fgets($fh); print $l . "<BR>"; } fclose($fh); And it's not working. What I'm doing wrong Note:it works with local files
1
9,339,778
02/18/2012 08:28:24
463,380
09/30/2010 23:29:49
11
0
Why does Windows only allow one application to access the webcam?
I've been trying to make a sample webcam app in c#, and I discovered the app cannot run at the same time Skype or Oovoo or any other application is running? (and vice versa) Why do applications get exclusive locks over a webc
c#
windows
webcam
null
null
02/19/2012 14:20:21
off topic
Why does Windows only allow one application to access the webcam? === I've been trying to make a sample webcam app in c#, and I discovered the app cannot run at the same time Skype or Oovoo or any other application is running? (and vice versa) Why do applications get exclusive locks over a webc
2
7,931,914
10/28/2011 16:12:41
1,018,704
10/28/2011 16:02:26
1
0
php echo from different path
I have created a form and pre populatied one field `<?php echo $product_title; ?>` which is declared in the controller.php and is stored in a database. <textarea name="comment" id="product"><?php echo $product_title; ?></textarea> Now if I have this form on the same page it shows the `<?php echo $product_title; ?>` so thats fine. But if I just put a link which pops up and gets the link form the root folder it does not show the prepopullated field. <a href="ask.php" class="colorbox" rel="colorbox">ask a question</a> Whats the best way to go about this ? Thanks
php
echo
null
null
null
11/04/2011 05:41:09
not a real question
php echo from different path === I have created a form and pre populatied one field `<?php echo $product_title; ?>` which is declared in the controller.php and is stored in a database. <textarea name="comment" id="product"><?php echo $product_title; ?></textarea> Now if I have this form on the same page it shows the `<?php echo $product_title; ?>` so thats fine. But if I just put a link which pops up and gets the link form the root folder it does not show the prepopullated field. <a href="ask.php" class="colorbox" rel="colorbox">ask a question</a> Whats the best way to go about this ? Thanks
1
7,437,431
09/15/2011 21:03:48
922,972
09/01/2011 07:02:01
48
1
Bluetooth keyboard software
I have a mac mini here but no usb keyboard. (mac mini has no ps2 ports) I really need to use the mac to make a new build of my ios software (its urgent!) but i even cant login without keyoard. Is it possible to use the ipad or iphone as a bluetooth keyboard for the mac mini? I also have 2 windows laptops here but it seems like theres no software available to make your windows machine act as a bluetooth keyboard :( Any ideas?
iphone
windows
ipad
bluetooth
null
09/16/2011 09:36:25
off topic
Bluetooth keyboard software === I have a mac mini here but no usb keyboard. (mac mini has no ps2 ports) I really need to use the mac to make a new build of my ios software (its urgent!) but i even cant login without keyoard. Is it possible to use the ipad or iphone as a bluetooth keyboard for the mac mini? I also have 2 windows laptops here but it seems like theres no software available to make your windows machine act as a bluetooth keyboard :( Any ideas?
2
7,055,461
08/14/2011 06:43:43
893,665
08/14/2011 06:42:00
1
0
make a POST after Login using httprequest
I want to make a Auto Voting System. I make a POST and login-ed successful, but when i make another POST request, it's not work, i find out the reason. (Must Login before Voting) The reason is the second request (Voting) have PHPSession not same with first Request (Login). <-- This is make the Status of second Request not Login-ed. Here entire my code: **Login Code:** private CookieContainer cookieContainer; string UrlDangNhap = "http://sechiakhoanhkhac.com/live/data.php?mod=member&act=login"; //password=123456&email=dmsang -- password=123456&email=sangdeptrai string strPostDataDangNhap = String.Format("password=123456&email={0}", "sangdeptrai"); //Bắt đầu Login //Tạo Cookie để giữ trạng thái Login //CookieContainer cookies = new CookieContainer(); HttpWebRequest wrDangNhap = WebRequest.Create(UrlDangNhap) as HttpWebRequest; wrDangNhap.Method = "POST"; wrDangNhap.Headers.Add("Accept-Language", "vi-VN"); wrDangNhap.Referer = "http://sechiakhoanhkhac.com/live/main.swf"; wrDangNhap.Headers.Add("x-flash-version","10,3,181,26"); wrDangNhap.ContentType = "application/x-www-form-urlencoded"; wrDangNhap.ContentLength = strPostDataDangNhap.Length; wrDangNhap.Headers.Add("Accept-Encoding", "gzip, deflate"); wrDangNhap.UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)"; wrDangNhap.Host = "sechiakhoanhkhac.com"; wrDangNhap.Accept = "*/*"; wrDangNhap.KeepAlive = true; wrDangNhap.CookieContainer = this.cookieContainer; StreamWriter swDangNhap = new StreamWriter(wrDangNhap.GetRequestStream()); swDangNhap.Write(strPostDataDangNhap); swDangNhap.Close(); Here Voting Code: string UrlVoting = "http://sechiakhoanhkhac.com/live/data.php?mod=xml&act=vote"; //password=123456&email=dmsang -- password=123456&email=sangdeptrai string strPostDataVoting = String.Format("id={0}", "397"); //Bắt đầu Login //Tạo Cookie để giữ trạng thái Login //CookieContainer cookies = new CookieContainer(); HttpWebRequest wrVoting = WebRequest.Create(UrlVoting) as HttpWebRequest; wrVoting.Method = "POST"; wrVoting.Accept = "*/*"; wrVoting.Headers.Add("Accept-Language", "vi-VN"); wrVoting.Referer = "http://sechiakhoanhkhac.com/live/khoetai.swf"; wrVoting.Headers.Add("x-flash-version", "10,3,181,26"); wrVoting.ContentType = "application/x-www-form-urlencoded"; wrVoting.ContentLength = strPostDataVoting.Length; wrVoting.Headers.Add("Accept-Encoding", "gzip, deflate"); wrVoting.UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)"; wrVoting.Host = "sechiakhoanhkhac.com"; wrVoting.KeepAlive = true; wrVoting.Headers.Add("Pragma", "no-cache"); wrVoting.CookieContainer = cookieContainer; StreamWriter swVoting = new StreamWriter(wrVoting.GetRequestStream()); swVoting.Write(strPostDataVoting); swVoting.Close(); how to solve this Problem? i used CookiesContainer but not working.
c#
cookies
httprequest
null
null
08/16/2011 12:20:40
too localized
make a POST after Login using httprequest === I want to make a Auto Voting System. I make a POST and login-ed successful, but when i make another POST request, it's not work, i find out the reason. (Must Login before Voting) The reason is the second request (Voting) have PHPSession not same with first Request (Login). <-- This is make the Status of second Request not Login-ed. Here entire my code: **Login Code:** private CookieContainer cookieContainer; string UrlDangNhap = "http://sechiakhoanhkhac.com/live/data.php?mod=member&act=login"; //password=123456&email=dmsang -- password=123456&email=sangdeptrai string strPostDataDangNhap = String.Format("password=123456&email={0}", "sangdeptrai"); //Bắt đầu Login //Tạo Cookie để giữ trạng thái Login //CookieContainer cookies = new CookieContainer(); HttpWebRequest wrDangNhap = WebRequest.Create(UrlDangNhap) as HttpWebRequest; wrDangNhap.Method = "POST"; wrDangNhap.Headers.Add("Accept-Language", "vi-VN"); wrDangNhap.Referer = "http://sechiakhoanhkhac.com/live/main.swf"; wrDangNhap.Headers.Add("x-flash-version","10,3,181,26"); wrDangNhap.ContentType = "application/x-www-form-urlencoded"; wrDangNhap.ContentLength = strPostDataDangNhap.Length; wrDangNhap.Headers.Add("Accept-Encoding", "gzip, deflate"); wrDangNhap.UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)"; wrDangNhap.Host = "sechiakhoanhkhac.com"; wrDangNhap.Accept = "*/*"; wrDangNhap.KeepAlive = true; wrDangNhap.CookieContainer = this.cookieContainer; StreamWriter swDangNhap = new StreamWriter(wrDangNhap.GetRequestStream()); swDangNhap.Write(strPostDataDangNhap); swDangNhap.Close(); Here Voting Code: string UrlVoting = "http://sechiakhoanhkhac.com/live/data.php?mod=xml&act=vote"; //password=123456&email=dmsang -- password=123456&email=sangdeptrai string strPostDataVoting = String.Format("id={0}", "397"); //Bắt đầu Login //Tạo Cookie để giữ trạng thái Login //CookieContainer cookies = new CookieContainer(); HttpWebRequest wrVoting = WebRequest.Create(UrlVoting) as HttpWebRequest; wrVoting.Method = "POST"; wrVoting.Accept = "*/*"; wrVoting.Headers.Add("Accept-Language", "vi-VN"); wrVoting.Referer = "http://sechiakhoanhkhac.com/live/khoetai.swf"; wrVoting.Headers.Add("x-flash-version", "10,3,181,26"); wrVoting.ContentType = "application/x-www-form-urlencoded"; wrVoting.ContentLength = strPostDataVoting.Length; wrVoting.Headers.Add("Accept-Encoding", "gzip, deflate"); wrVoting.UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)"; wrVoting.Host = "sechiakhoanhkhac.com"; wrVoting.KeepAlive = true; wrVoting.Headers.Add("Pragma", "no-cache"); wrVoting.CookieContainer = cookieContainer; StreamWriter swVoting = new StreamWriter(wrVoting.GetRequestStream()); swVoting.Write(strPostDataVoting); swVoting.Close(); how to solve this Problem? i used CookiesContainer but not working.
3