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
4,539,167
12/27/2010 13:54:11
324,895
04/24/2010 11:16:49
6
1
Rotate picturebox
how in windows forms rotate picturebox element at 45 degrees
c#
winforms
null
null
null
07/18/2012 17:02:24
not a real question
Rotate picturebox === how in windows forms rotate picturebox element at 45 degrees
1
7,673,043
10/06/2011 10:25:56
608,772
02/08/2011 20:37:44
4,940
346
Trouble with WMI filter
I've got a notepad.exe started in my session : gwmi -Query "Select CommandLine from Win32_Process where CommandLine='C:\Windows\system32\notepad.exe'" gives Get-WmiObject : Demande non valide Au niveau de ligne : 1 Caractère : 5 + gwmi <<<< -Query "Select CommandLine from Win32_Process where CommandLine='C:\Windows\system32\notepad.exe'" + CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand I test : gwmi -Query "Select CommandLine from Win32_Process where CommandLine='C:\\Windows\\system32\\notepad.exe'" It gives nothing gwmi -Query "Select CommandLine from Win32_Process where CommandLine LIKE '%C:\\Windows\\system32\\notepad.exe%'" Works perfectly Perhaps it's a trouble with wildcards caracters between PowerShell and WMI, but anyone can help me make filter `CommandLine='C:\Windows\system32\notepad.exe'` working
powershell
wmi
powershell-v2.0
wmi-query
null
null
open
Trouble with WMI filter === I've got a notepad.exe started in my session : gwmi -Query "Select CommandLine from Win32_Process where CommandLine='C:\Windows\system32\notepad.exe'" gives Get-WmiObject : Demande non valide Au niveau de ligne : 1 Caractère : 5 + gwmi <<<< -Query "Select CommandLine from Win32_Process where CommandLine='C:\Windows\system32\notepad.exe'" + CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand I test : gwmi -Query "Select CommandLine from Win32_Process where CommandLine='C:\\Windows\\system32\\notepad.exe'" It gives nothing gwmi -Query "Select CommandLine from Win32_Process where CommandLine LIKE '%C:\\Windows\\system32\\notepad.exe%'" Works perfectly Perhaps it's a trouble with wildcards caracters between PowerShell and WMI, but anyone can help me make filter `CommandLine='C:\Windows\system32\notepad.exe'` working
0
9,396,212
02/22/2012 13:56:38
972,889
09/30/2011 10:18:03
8
1
Error in Attribute value of build xml
I am getting an error for the following code: <?xml version="1.0"?> <!-- ***************Demo.build****************** --> <project name="Mybuild"> <include buildfile="config.xml" /> <target name="build_my_solution"> <mkdir dir="C:\Done" /> <exec program="${NAntBuildPath}" output="${dir}> <arg line="${solution_file}" > <arg line="/property:Configuration=Release;AllowUnsafeBlocks=true" /> <arg value="/target:Rebuild" /> <arg value="/verbosity:normal" /> <arg value="/nologo" /> <arg value="/maxcpucount:2" /> </exec> </target> </project> ERROR(In Internet Explorer): The character '<' cannot be used in an attribute value. Error processing resource 'file:///C:/xxx/MyProject/... <arg line="${solution_file}" > -^
xml
xslt
build-automation
nant
null
null
open
Error in Attribute value of build xml === I am getting an error for the following code: <?xml version="1.0"?> <!-- ***************Demo.build****************** --> <project name="Mybuild"> <include buildfile="config.xml" /> <target name="build_my_solution"> <mkdir dir="C:\Done" /> <exec program="${NAntBuildPath}" output="${dir}> <arg line="${solution_file}" > <arg line="/property:Configuration=Release;AllowUnsafeBlocks=true" /> <arg value="/target:Rebuild" /> <arg value="/verbosity:normal" /> <arg value="/nologo" /> <arg value="/maxcpucount:2" /> </exec> </target> </project> ERROR(In Internet Explorer): The character '<' cannot be used in an attribute value. Error processing resource 'file:///C:/xxx/MyProject/... <arg line="${solution_file}" > -^
0
11,086,380
06/18/2012 15:47:27
682,869
03/29/2011 21:04:12
846
4
testing php website on wampserver using android web browser
I am trying to test a php website using the web browser in android device (Google Nexus S). The Android version is 4.0.3. I have installed WampServer on my machine (running Windows 7) and have copied my php code in the wamp/www directory. I am able to test the code by browsing to localhost from the web browser on my machine. To test from my android device I tried browsing to my machine's public IP address, but the browser just gets stuck and doesn't load the page. Does anyone know a solution to this problem ? Thanks.
php
android
browser
ip-address
null
null
open
testing php website on wampserver using android web browser === I am trying to test a php website using the web browser in android device (Google Nexus S). The Android version is 4.0.3. I have installed WampServer on my machine (running Windows 7) and have copied my php code in the wamp/www directory. I am able to test the code by browsing to localhost from the web browser on my machine. To test from my android device I tried browsing to my machine's public IP address, but the browser just gets stuck and doesn't load the page. Does anyone know a solution to this problem ? Thanks.
0
6,018,374
05/16/2011 13:47:06
603,536
02/04/2011 17:23:40
23
8
Swap two rows using sql query
I am having a table name ticket in which I want to swap two rows when user click up/down button from front end. for this i added a auto-generated field called ticket_index.but i am not able to perform this action. I wrote the following query UPDATE ticket as ticket1 JOIN ticket as ticket2 ON ( ticket1.ticket_index = 1 AND ticket2.ticket_index = 4 ) OR ( ticket1.ticket_index = 4 AND ticket2.ticket_index = 1 ) SET ticket1.ticket_index = ticket2.ticket_index , ticket2.ticket_index = ticket1.ticket_index Can anyone give me the right sql query.please let me know if extra information is needed for this. Thanks
sql
null
null
null
null
null
open
Swap two rows using sql query === I am having a table name ticket in which I want to swap two rows when user click up/down button from front end. for this i added a auto-generated field called ticket_index.but i am not able to perform this action. I wrote the following query UPDATE ticket as ticket1 JOIN ticket as ticket2 ON ( ticket1.ticket_index = 1 AND ticket2.ticket_index = 4 ) OR ( ticket1.ticket_index = 4 AND ticket2.ticket_index = 1 ) SET ticket1.ticket_index = ticket2.ticket_index , ticket2.ticket_index = ticket1.ticket_index Can anyone give me the right sql query.please let me know if extra information is needed for this. Thanks
0
9,170,623
02/07/2012 03:30:56
1,193,696
02/07/2012 02:45:36
1
0
php explode() a variable from MySQL database - proper syntax?
I have a form where users choose from a checklist of jobs (Instructor, Translator, Interpreter). The results are stored as a variable ($employment) and sent to a MySQL database. They are separated by a comma-space delimiter. Administration can login through a backend page and is sent to a directory where the different jobs are listed. When the Instructors link is clicked, they are taken to a page where all the users who clicked 'Instructors' are listed. For this, I have used the code: $sql = "select * from GDI_teacher WHERE $employment='Instructor'"; But if the user has selected more than one job (say, Instructor and Translator), this user does not show up as having clicked Instructor using the code above. I believe I have to use the explode() function, but am unsure of the syntax. I have been guessing at the code (from other forum posts) but have been unsuccessful. I hope this is clear. Thanks in advance!
php
mysql
variables
explode
null
null
open
php explode() a variable from MySQL database - proper syntax? === I have a form where users choose from a checklist of jobs (Instructor, Translator, Interpreter). The results are stored as a variable ($employment) and sent to a MySQL database. They are separated by a comma-space delimiter. Administration can login through a backend page and is sent to a directory where the different jobs are listed. When the Instructors link is clicked, they are taken to a page where all the users who clicked 'Instructors' are listed. For this, I have used the code: $sql = "select * from GDI_teacher WHERE $employment='Instructor'"; But if the user has selected more than one job (say, Instructor and Translator), this user does not show up as having clicked Instructor using the code above. I believe I have to use the explode() function, but am unsure of the syntax. I have been guessing at the code (from other forum posts) but have been unsuccessful. I hope this is clear. Thanks in advance!
0
11,736,852
07/31/2012 09:18:45
1,429,987
06/01/2012 06:04:28
1
0
i didn't get my folder path
$tempPHPSELF = explode("\\",dirname(__FILE__)); array_pop($tempPHPSELF); array_pop($tempPHPSELF); in first line i got path Array ( [0] => /media/wind/nits/Apache2/htdocs/products/campus_school/portal/parents ) but lost line array is empty,i am using linux server
php
null
null
null
null
07/31/2012 15:49:33
not a real question
i didn't get my folder path === $tempPHPSELF = explode("\\",dirname(__FILE__)); array_pop($tempPHPSELF); array_pop($tempPHPSELF); in first line i got path Array ( [0] => /media/wind/nits/Apache2/htdocs/products/campus_school/portal/parents ) but lost line array is empty,i am using linux server
1
11,391,373
07/09/2012 08:23:08
1,511,387
07/09/2012 08:20:29
1
0
How to show sqlite database data in a graph?
I wanted to retrive the data from sqlite database based on the values i wanted to display on a graph. can anyone help me?
objective-c
null
null
null
null
07/10/2012 11:43:33
not a real question
How to show sqlite database data in a graph? === I wanted to retrive the data from sqlite database based on the values i wanted to display on a graph. can anyone help me?
1
10,954,683
06/08/2012 19:05:57
902,313
08/19/2011 11:05:56
46
0
HTML form works out of table, but not in table
Just simple and dumb question. I am working at a simple website using HTML and PHP. Today I added the option to change your avatar and put the upload form in a table. I spent 5 minutes to create it, but then, about 5 hours trying to debug it, when suddenly, something hit me. I just copied and pasted the from out of the table, and everything worked as it should. But still, it doesn't work if my form in a table. PS: When my form is in the table, the submit button just refreshes the page. Can someone give me a logical reason for this?
php
html
null
null
null
06/08/2012 20:58:49
not a real question
HTML form works out of table, but not in table === Just simple and dumb question. I am working at a simple website using HTML and PHP. Today I added the option to change your avatar and put the upload form in a table. I spent 5 minutes to create it, but then, about 5 hours trying to debug it, when suddenly, something hit me. I just copied and pasted the from out of the table, and everything worked as it should. But still, it doesn't work if my form in a table. PS: When my form is in the table, the submit button just refreshes the page. Can someone give me a logical reason for this?
1
9,904,226
03/28/2012 09:00:04
384,115
07/06/2010 02:54:57
1,235
43
Is Apple charing publishers of free applications?
Let’s start with this statement: “We have published couple of free applications on the App Store and everything goes fine”. Now when approaching one customer, he told us that he heard that even we publish a free application, Apple can charge you as publisher. Well, we said, we never heard about that and it is not true and it never happens to us - but he insisted on this – therefore the questions is: “Is it possible that Apple is charging publishers of free applications under some circumstances (except of the annual fee for developer.apple.com)? ” Thanks Regards, STeN
iphone
ios
ios5
apple
null
03/28/2012 09:05:33
off topic
Is Apple charing publishers of free applications? === Let’s start with this statement: “We have published couple of free applications on the App Store and everything goes fine”. Now when approaching one customer, he told us that he heard that even we publish a free application, Apple can charge you as publisher. Well, we said, we never heard about that and it is not true and it never happens to us - but he insisted on this – therefore the questions is: “Is it possible that Apple is charging publishers of free applications under some circumstances (except of the annual fee for developer.apple.com)? ” Thanks Regards, STeN
2
11,726,900
07/30/2012 17:54:31
1,467,778
06/19/2012 23:30:46
1
0
iOS - touchesMoved called only once in subclassed UIScrollView
I am trying to drop movable UIImageViews within a subclassed UIScrollView so that I can drag them around my UIScrollView. I subclassed UISCrollView and the dropping behavior is working, but when I try to drag the images, touchesMoved is only evaluated once. The touchesMoved method in my subclass of UIScrollView looks like this: -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ if (!self.dragging) { [self.nextResponder touchesMoved: touches withEvent:event]; }else{ [super touchesEnded:touches withEvent:event]; } } It is being called continuously during a moving touch, as it should. Can anyone think of a reason that the touchesMoved method in my view controller would only be called once?
objective-c
ios
uiscrollview
subclass
touchesmoved
null
open
iOS - touchesMoved called only once in subclassed UIScrollView === I am trying to drop movable UIImageViews within a subclassed UIScrollView so that I can drag them around my UIScrollView. I subclassed UISCrollView and the dropping behavior is working, but when I try to drag the images, touchesMoved is only evaluated once. The touchesMoved method in my subclass of UIScrollView looks like this: -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ if (!self.dragging) { [self.nextResponder touchesMoved: touches withEvent:event]; }else{ [super touchesEnded:touches withEvent:event]; } } It is being called continuously during a moving touch, as it should. Can anyone think of a reason that the touchesMoved method in my view controller would only be called once?
0
9,820,976
03/22/2012 11:01:45
1,273,419
03/16/2012 07:07:58
1
0
Error whil trying to launch tomcat.bat
Hello everybody I'm trying to develop a SOAP based webservice. While trying to launch Tomcat.bat I get the following error: ERROR reading C:\SOAP\jakarta-tomcat-3.2.4\webapps\axis\WEB-INF\web.xml At org.apache.crimson.parser/P-082 http://java.sun.com/dtd/web-app_2_3.dtd ERROR reading C:\SOAP\jakarta-tomcat-3.2.4\webapps\axis\WEB-INF\web.xml java.net.UnknownHostException: java.sun.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) This is the content of mystartup.bat: set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_25 set TOMCAT_HOME=C:\SOAP\jakarta-tomcat-3.2.4 set CLASSPATH=C:\SOAP\axis-1_4\lib\axis.jar set CLASSPATH=%CLASSPATH%;C:\SOAP\javamail-1.2\mail.jar set CLASSPATH=%CLASSPATH%;C:\SOAP\javafx-sdk2.0.3\activation.jar set CLASSPATH=%CLASSPATH%;C:\SOAP\xerces-1_2_3\xerces.jar set CLASSPATH=%CLASSPATH%;C:\SOAP\mysql-connector-java-5.1.18\C:\mysql-connector-java-5.1.18-bin.jar %TOMCAT_HOME%\bin\startup.bat Could someobody have any idea what im doing wrong here? Thanks in advance!
java
web-services
tomcat
soap
netbeans
null
open
Error whil trying to launch tomcat.bat === Hello everybody I'm trying to develop a SOAP based webservice. While trying to launch Tomcat.bat I get the following error: ERROR reading C:\SOAP\jakarta-tomcat-3.2.4\webapps\axis\WEB-INF\web.xml At org.apache.crimson.parser/P-082 http://java.sun.com/dtd/web-app_2_3.dtd ERROR reading C:\SOAP\jakarta-tomcat-3.2.4\webapps\axis\WEB-INF\web.xml java.net.UnknownHostException: java.sun.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) This is the content of mystartup.bat: set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_25 set TOMCAT_HOME=C:\SOAP\jakarta-tomcat-3.2.4 set CLASSPATH=C:\SOAP\axis-1_4\lib\axis.jar set CLASSPATH=%CLASSPATH%;C:\SOAP\javamail-1.2\mail.jar set CLASSPATH=%CLASSPATH%;C:\SOAP\javafx-sdk2.0.3\activation.jar set CLASSPATH=%CLASSPATH%;C:\SOAP\xerces-1_2_3\xerces.jar set CLASSPATH=%CLASSPATH%;C:\SOAP\mysql-connector-java-5.1.18\C:\mysql-connector-java-5.1.18-bin.jar %TOMCAT_HOME%\bin\startup.bat Could someobody have any idea what im doing wrong here? Thanks in advance!
0
6,605,671
07/07/2011 04:04:53
828,472
07/04/2011 16:31:47
1
0
page-reload send data with php in shopping cart.
in my shopping im using session to store user's product. However after a user add an item upon refresh it is adding another item. So i was wondering if theres a way to remove the url from cart.php?actionaddid=1 to just cart.php. In this case it should not be adding anymore quantity.
php
cart
shopping
null
null
07/08/2011 01:47:16
not a real question
page-reload send data with php in shopping cart. === in my shopping im using session to store user's product. However after a user add an item upon refresh it is adding another item. So i was wondering if theres a way to remove the url from cart.php?actionaddid=1 to just cart.php. In this case it should not be adding anymore quantity.
1
5,906,585
05/06/2011 03:53:00
381,351
07/01/2010 17:36:00
400
27
Change database collation
our previous programmer set wrong collation at table (Mysql). He use Latin collation, but is should be UTF8, and now i that get the problem. Every record with Chinese and Japan character turn to ??? character. Is possible to change collation and get back the detail of character?
mysql
database
collation
null
null
null
open
Change database collation === our previous programmer set wrong collation at table (Mysql). He use Latin collation, but is should be UTF8, and now i that get the problem. Every record with Chinese and Japan character turn to ??? character. Is possible to change collation and get back the detail of character?
0
1,307,244
08/20/2009 16:10:04
114,441
05/29/2009 17:22:28
6
1
Asign a existing array to a property in object notation javascript
I'm localizing a menu and I want to assign a declared array to an object property in that way: var menuListLocal=["Home","Play","Options","Exit"]; var menu_Controller={ _menuList: menuListLocal, // .... // } Sorry if it is too obvious. Thanks
javascript
json
null
null
null
null
open
Asign a existing array to a property in object notation javascript === I'm localizing a menu and I want to assign a declared array to an object property in that way: var menuListLocal=["Home","Play","Options","Exit"]; var menu_Controller={ _menuList: menuListLocal, // .... // } Sorry if it is too obvious. Thanks
0
3,515,320
08/18/2010 18:22:25
337,247
05/10/2010 13:00:10
214
1
Django CMS which is the best?
I read Djangos cms comparison page and it seems http://www.django-cms.org/ may be what I was looking for. Any experience with that? Recommendation? Especially on how to install it. I cant find any installation info for it. Apart from: "Make sure that cms, mptt and publisher folders are on your pythonpath. They all should come with the distribution." Or what is the best and easiest to install cms for django with the least dependencies?
django
content-management-system
null
null
null
09/13/2011 12:39:45
not constructive
Django CMS which is the best? === I read Djangos cms comparison page and it seems http://www.django-cms.org/ may be what I was looking for. Any experience with that? Recommendation? Especially on how to install it. I cant find any installation info for it. Apart from: "Make sure that cms, mptt and publisher folders are on your pythonpath. They all should come with the distribution." Or what is the best and easiest to install cms for django with the least dependencies?
4
7,037,639
08/12/2011 08:44:30
38,055
11/16/2008 17:14:14
12,716
620
JS references not "propagating" through referenced files
I have a file named `references.js`, in which I've added xml comments to reference all the js files I'm using in various places in my project. /// <reference path="/js/jquery-1.4.1-vsdoc.js"/> /// <reference path="/js/jquery-ui-1.8.5.custom.min.js"/> /// <reference path="/js/jquery.validate-1.7.js"/> /// etc... In another file, `somepage.js`, I have a reference to this file: /// <reference path="/js/references.js" /> According to the [documentation](http://blogs.msdn.com/b/webdevtools/archive/2007/11/06/jscript-intellisense-a-reference-for-the-reference-tag.aspx), the references should now be available in `somepage.js`. However, I don't get any intellisense for jQuery (or anything else I've updated). I do have intellisense in `references.js`. `references.js` and the library files all reside in `~/js/`, and `somepage.js` resides in `~/js/pages/`. Why isn't this working?
visual-studio-2010
javascript-intellisense
null
null
null
null
open
JS references not "propagating" through referenced files === I have a file named `references.js`, in which I've added xml comments to reference all the js files I'm using in various places in my project. /// <reference path="/js/jquery-1.4.1-vsdoc.js"/> /// <reference path="/js/jquery-ui-1.8.5.custom.min.js"/> /// <reference path="/js/jquery.validate-1.7.js"/> /// etc... In another file, `somepage.js`, I have a reference to this file: /// <reference path="/js/references.js" /> According to the [documentation](http://blogs.msdn.com/b/webdevtools/archive/2007/11/06/jscript-intellisense-a-reference-for-the-reference-tag.aspx), the references should now be available in `somepage.js`. However, I don't get any intellisense for jQuery (or anything else I've updated). I do have intellisense in `references.js`. `references.js` and the library files all reside in `~/js/`, and `somepage.js` resides in `~/js/pages/`. Why isn't this working?
0
6,144,842
05/26/2011 20:46:29
247,038
01/09/2010 11:36:54
473
21
As a Java developer which PAAS offering should I consider?
Currently there are lot of new and existing PAAS offerings in the market for Java developers. VMWare has come up with CloudFoundry which is really awesome and RedHat has come up with OpenShift (I have not played with it) and we have also Google App Engine. So in today's time which PAAS or Open PAAS platform should a Java developer choose? Please provide reasons which are developer oriented. Thanks Shekhar
java
cloud
paas
null
null
05/27/2011 00:40:27
not constructive
As a Java developer which PAAS offering should I consider? === Currently there are lot of new and existing PAAS offerings in the market for Java developers. VMWare has come up with CloudFoundry which is really awesome and RedHat has come up with OpenShift (I have not played with it) and we have also Google App Engine. So in today's time which PAAS or Open PAAS platform should a Java developer choose? Please provide reasons which are developer oriented. Thanks Shekhar
4
5,505,794
03/31/2011 20:19:38
686,465
03/31/2011 20:16:51
1
0
java assertion botch negative time
I am getting this erro in this environment java 1.5 update 22 websphere 6.1.013 oracle 11.1.07 kodo do you know what it could be
java
null
null
null
null
03/31/2011 20:49:35
not a real question
java assertion botch negative time === I am getting this erro in this environment java 1.5 update 22 websphere 6.1.013 oracle 11.1.07 kodo do you know what it could be
1
10,561,372
05/12/2012 05:41:25
1,390,667
05/12/2012 05:37:54
1
0
How I can grab javascript enable data of website in php
How I can grab javascript enable data of website in php.
php
null
null
null
null
05/12/2012 07:23:52
not a real question
How I can grab javascript enable data of website in php === How I can grab javascript enable data of website in php.
1
4,935,113
02/08/2011 15:43:54
475,329
10/14/2010 04:35:24
60
13
What would you want in an ideal debugger?
Just food for thought: What features would you consider in an ideal debugging tool? What about debugging tools for distributed systems? What do you think is missing from current debugging tools?
debugging
ideal
null
null
null
02/08/2011 16:15:02
not constructive
What would you want in an ideal debugger? === Just food for thought: What features would you consider in an ideal debugging tool? What about debugging tools for distributed systems? What do you think is missing from current debugging tools?
4
10,211,073
04/18/2012 14:04:24
844,538
07/14/2011 12:20:05
6
2
create setup project include Sql Server express 2008 R2
<br/> i already used Visual Studio to making SETUP Project , it has prerequirements such as **SQL EXPRESS 2008** etc <br/> now i want to create Setup Project that include **SQL EXPRESS 2008 R2** , but Visual Studio 2010 doesnt have it . how can i add it to Visual Studio 's prerequirements or InstallShield2010?
visual-studio-2010
sql-server-express
setup-project
installshield-2010
null
null
open
create setup project include Sql Server express 2008 R2 === <br/> i already used Visual Studio to making SETUP Project , it has prerequirements such as **SQL EXPRESS 2008** etc <br/> now i want to create Setup Project that include **SQL EXPRESS 2008 R2** , but Visual Studio 2010 doesnt have it . how can i add it to Visual Studio 's prerequirements or InstallShield2010?
0
8,324,471
11/30/2011 10:29:50
104,085
05/09/2009 14:45:18
1,424
24
if coder count not enough to start steps at the same time?
For ex i drow a job will take 5 days for one coder. Like this: ----- And other step doesnt has to wait to finish first one. This second one will take 10 days. Like: ----- ---------- But there is only one developer who can finish these jobs. How should i draw the orders of these steps. If i could have one developer more i would write them one under the other at the same time as they will be start. How should i draw the chart and order of the steps of project according to the developer count?
project-management
management
null
null
null
12/04/2011 22:59:17
off topic
if coder count not enough to start steps at the same time? === For ex i drow a job will take 5 days for one coder. Like this: ----- And other step doesnt has to wait to finish first one. This second one will take 10 days. Like: ----- ---------- But there is only one developer who can finish these jobs. How should i draw the orders of these steps. If i could have one developer more i would write them one under the other at the same time as they will be start. How should i draw the chart and order of the steps of project according to the developer count?
2
9,890,746
03/27/2012 13:43:20
531,199
12/05/2010 12:59:48
640
12
How to use or expand environmental variable in the command instantiated by CreateProcess?
The following code utilizes `CreateProcess` to run commands with environmental variables. Here, it tries to run `notepad %APPDATA%\test.txt`. If I run `notepad %APPDATA%\test.txt` directly within `Windows' CMD`, %APPDATA% will be expanded. However, the environmental variable can not be expanded when executed by `CreateProcess`. Could you help to comment on the reason and the workaround? Any comment will be appreciated! ![directly within cmd][1] ![use CreateProcess][2] program TestConsole2; {$APPTYPE CONSOLE} uses Windows, SysUtils; var I: Integer; ProgramName: String; StartInfo : TStartupInfo; ProcInfo : TProcessInformation; CreateOK : Boolean; begin try FillChar(StartInfo, SizeOf(StartInfo), #0); FillChar(ProcInfo, SizeOf(ProcInfo), #0); StartInfo.cb := SizeOf(StartInfo); ProgramName := 'NOTEPAD %APPDATA%\test.txt'; CreateOK := CreateProcess( nil, PChar(ProgramName), nil, nil, True, 0, nil, nil, StartInfo, ProcInfo); if CreateOK then WaitForSingleObject(ProcInfo.hProcess, INFINITE); Readln(ProgramName); except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; end. [1]: http://i.stack.imgur.com/RKzRQ.png [2]: http://i.stack.imgur.com/E2x4k.png
delphi
environment-variables
createprocess
null
null
null
open
How to use or expand environmental variable in the command instantiated by CreateProcess? === The following code utilizes `CreateProcess` to run commands with environmental variables. Here, it tries to run `notepad %APPDATA%\test.txt`. If I run `notepad %APPDATA%\test.txt` directly within `Windows' CMD`, %APPDATA% will be expanded. However, the environmental variable can not be expanded when executed by `CreateProcess`. Could you help to comment on the reason and the workaround? Any comment will be appreciated! ![directly within cmd][1] ![use CreateProcess][2] program TestConsole2; {$APPTYPE CONSOLE} uses Windows, SysUtils; var I: Integer; ProgramName: String; StartInfo : TStartupInfo; ProcInfo : TProcessInformation; CreateOK : Boolean; begin try FillChar(StartInfo, SizeOf(StartInfo), #0); FillChar(ProcInfo, SizeOf(ProcInfo), #0); StartInfo.cb := SizeOf(StartInfo); ProgramName := 'NOTEPAD %APPDATA%\test.txt'; CreateOK := CreateProcess( nil, PChar(ProgramName), nil, nil, True, 0, nil, nil, StartInfo, ProcInfo); if CreateOK then WaitForSingleObject(ProcInfo.hProcess, INFINITE); Readln(ProgramName); except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; end. [1]: http://i.stack.imgur.com/RKzRQ.png [2]: http://i.stack.imgur.com/E2x4k.png
0
4,244,761
11/22/2010 11:06:14
319,027
04/17/2010 03:01:51
25
3
how to upload image using nusoap
hi to all i am using Nusoap class for making the webservice. i am newer to webservice . can u help me how to upload image using Nusoap. thanks in advance.
php
nusoap
null
null
null
06/13/2011 21:45:26
not a real question
how to upload image using nusoap === hi to all i am using Nusoap class for making the webservice. i am newer to webservice . can u help me how to upload image using Nusoap. thanks in advance.
1
1,466,460
09/23/2009 14:43:38
30,786
10/23/2008 12:56:57
284
7
JRuby - Tempfile.rb
Does anyone know how tempfile.rb is handled in JRuby. It is in Ruby but not in JRuby. Anyone got anyideas? Cheers Eef
jruby
tempfile
null
null
null
null
open
JRuby - Tempfile.rb === Does anyone know how tempfile.rb is handled in JRuby. It is in Ruby but not in JRuby. Anyone got anyideas? Cheers Eef
0
8,423,964
12/07/2011 23:09:07
1,086,682
12/07/2011 23:06:15
1
0
How to use mediaelement.js for a shoutcast webradio?
can anyone please help me to use streamelement.js for my webradio 68.68.28.167:8542 this is the adresse for the server
mediaelement.js
null
null
null
null
12/09/2011 15:50:25
not a real question
How to use mediaelement.js for a shoutcast webradio? === can anyone please help me to use streamelement.js for my webradio 68.68.28.167:8542 this is the adresse for the server
1
5,383,696
03/21/2011 21:02:51
595,200
01/29/2011 18:49:02
1
1
ASP.NET MVC Converting null to zero-length string
I'm using MVC 3 and attempting to get fields left blank to be sent to the database as zero-length strings instead of nulls. Is this possible to do with attributes? If not, what is the most appropriate place to convert from nulls, during model validation?
validation
asp.net-mvc-3
null
null
null
null
open
ASP.NET MVC Converting null to zero-length string === I'm using MVC 3 and attempting to get fields left blank to be sent to the database as zero-length strings instead of nulls. Is this possible to do with attributes? If not, what is the most appropriate place to convert from nulls, during model validation?
0
7,562,815
09/27/2011 00:10:53
852,910
07/19/2011 22:24:08
6
0
Dynamic radio button onclick not visible in IE7
I got a weird problem with IE7.The radio button onclick functionality works fine, But the problem is with its display. It shows up as if its not clicked even if i click a particular button. Its only in IE7. It works fine in IE8. Could you guys please help me hpw to get around this CSS problem.
css
null
null
null
null
null
open
Dynamic radio button onclick not visible in IE7 === I got a weird problem with IE7.The radio button onclick functionality works fine, But the problem is with its display. It shows up as if its not clicked even if i click a particular button. Its only in IE7. It works fine in IE8. Could you guys please help me hpw to get around this CSS problem.
0
1,542,027
10/09/2009 06:01:24
120,322
06/10/2009 05:54:55
20
0
How to password protect an application process
Can somebody tell me how to protect an application using password. I mean suppose I start an application (say uTorrent) then I want to provide a password so that nobody can close it or change any thing without password. Thanks Ashwani
passwords
windows
null
null
null
01/27/2012 18:28:57
off topic
How to password protect an application process === Can somebody tell me how to protect an application using password. I mean suppose I start an application (say uTorrent) then I want to provide a password so that nobody can close it or change any thing without password. Thanks Ashwani
2
6,234,863
06/04/2011 05:13:22
305,357
03/30/2010 17:55:33
184
11
Professional development-deployment strategy for a lone freelancer working on a website?
I'm a freelancer and prefer working on large projects all by my own self. Till now, I've been using FileZilla to upload the projects I work and after discovering bugs, I used to edit the file with FileZilla. I wish to use SVN ( or GIT? is it better for this particular scenario? ) to develop and deploy my projects or push the bug fixes as I discover them. I don't have much experience using SVN but I have used it as I have contributed to the core WordPress development a bit. Recently, I launched a site and it is fairly popular now. I use the `Ctrl+S and F5` strategy for my development. I want to get a bit more professionalized. How do I setup local SVN, Eclipse and the production web server to use SVN with? Any link to a good tutorial would be greatly helpful.
php
eclipse
svn
deployment
project-management
06/04/2011 16:46:00
not a real question
Professional development-deployment strategy for a lone freelancer working on a website? === I'm a freelancer and prefer working on large projects all by my own self. Till now, I've been using FileZilla to upload the projects I work and after discovering bugs, I used to edit the file with FileZilla. I wish to use SVN ( or GIT? is it better for this particular scenario? ) to develop and deploy my projects or push the bug fixes as I discover them. I don't have much experience using SVN but I have used it as I have contributed to the core WordPress development a bit. Recently, I launched a site and it is fairly popular now. I use the `Ctrl+S and F5` strategy for my development. I want to get a bit more professionalized. How do I setup local SVN, Eclipse and the production web server to use SVN with? Any link to a good tutorial would be greatly helpful.
1
3,465,489
08/12/2010 07:16:45
396,608
07/20/2010 09:10:12
1
0
fastest way to search text value for words in SQL Server 2008
I have a requirement to identify keywords stored in a table column in text passed to a stord procedure, at present I'm pasing the text in as rows in a table value, however as populating the table value is hideously slow, I'm going to scrap this approach. I looked at the full text search option, however based on my very limited understanding of this, specifically:- 1. The data has to already reside in a database table column. 2. I cannot see any obvious way of using freetext or contains such that the words / expressions you are searching for can be passed into this en mass from another database table. Can someone please give me some ideas and suggestions here.
sql
sql-server-2008
server
null
null
null
open
fastest way to search text value for words in SQL Server 2008 === I have a requirement to identify keywords stored in a table column in text passed to a stord procedure, at present I'm pasing the text in as rows in a table value, however as populating the table value is hideously slow, I'm going to scrap this approach. I looked at the full text search option, however based on my very limited understanding of this, specifically:- 1. The data has to already reside in a database table column. 2. I cannot see any obvious way of using freetext or contains such that the words / expressions you are searching for can be passed into this en mass from another database table. Can someone please give me some ideas and suggestions here.
0
3,727,800
09/16/2010 14:44:26
161,395
08/22/2009 21:40:29
17
3
Making my own Carbon Footprint Calculator
I'm trying create my own carbon footprint calculator, but I'm having trouble finding all the proper equations and such online, anyone know of any decent resources?
jquery
html
calculation
equation
calculator
09/18/2010 12:18:26
off topic
Making my own Carbon Footprint Calculator === I'm trying create my own carbon footprint calculator, but I'm having trouble finding all the proper equations and such online, anyone know of any decent resources?
2
8,654,931
12/28/2011 10:53:23
650,237
03/08/2011 17:36:01
118
8
How do the Antivirus Companys find new viruses?
I could't found any information about Antivirus companys find new viruses? My intention is, i would start a opensource Antivirus project for a mobile platform. But i dont know how to setup a static signature database? How can i find new viruses for exactly this mobile platform? Would be great if someone could explain how big player like Norton, AVG, Kaspersky can find thousand of viruses daily. Thank you!
security
antivirus
virus
null
null
12/28/2011 17:37:34
off topic
How do the Antivirus Companys find new viruses? === I could't found any information about Antivirus companys find new viruses? My intention is, i would start a opensource Antivirus project for a mobile platform. But i dont know how to setup a static signature database? How can i find new viruses for exactly this mobile platform? Would be great if someone could explain how big player like Norton, AVG, Kaspersky can find thousand of viruses daily. Thank you!
2
6,307,692
06/10/2011 14:22:39
120,322
06/10/2009 05:54:55
196
7
Getting user local setting in Android
I am creating an application which shows some data on the basis of user country. Currently, I am asking the user to select the country and then storing it. Is there any way, so that the application can get the user local setting from the device and automatically select the corresponding country for the user? Thanks Ashwani
android
timezone
null
null
null
null
open
Getting user local setting in Android === I am creating an application which shows some data on the basis of user country. Currently, I am asking the user to select the country and then storing it. Is there any way, so that the application can get the user local setting from the device and automatically select the corresponding country for the user? Thanks Ashwani
0
10,364,646
04/28/2012 14:55:33
277,368
02/19/2010 22:00:35
618
7
How do I automatically login to StackOverflow from a server?
As I remembered there is a StackOverflow badge for 300 consecutive days login. This one is really hard to win. Even though I have set my homepage to SO, but I might not open browser at all when I am on holiday. Is there a way to create a script that I can login daily from a server? I have a Ubuntu instance on EC2.
login
automation
stackoverflow
null
null
null
open
How do I automatically login to StackOverflow from a server? === As I remembered there is a StackOverflow badge for 300 consecutive days login. This one is really hard to win. Even though I have set my homepage to SO, but I might not open browser at all when I am on holiday. Is there a way to create a script that I can login daily from a server? I have a Ubuntu instance on EC2.
0
7,080,544
08/16/2011 15:12:46
781,669
06/02/2011 18:46:28
310
10
Hidden features of Objective-C?
What are some lesser known features of Objective-C or weird syntax that works?
objective-c
c
null
null
null
08/16/2011 15:15:35
not constructive
Hidden features of Objective-C? === What are some lesser known features of Objective-C or weird syntax that works?
4
8,404,946
12/06/2011 18:34:32
1,075,777
12/01/2011 15:46:20
11
0
What is wrong with this google direction request?
What is wrong with this google direction request? https://maps.googleapis.com/maps/api/directions/xml?origin=42.3584,-71.0598&destination=41.7637,-72.6851&waypoints=43.6575,-71.5003|44.4759,-73.2121&sensor=false The origin is Boston,MA the destination is Hartford,CN the two waypoints are Merridth,NH and Burlington,VT. It returns results in my browser but sent from my program returns a send Synchronous Request error -1000
objective-c
mapkit
nsurlconnection
google-api
null
12/06/2011 22:37:57
not a real question
What is wrong with this google direction request? === What is wrong with this google direction request? https://maps.googleapis.com/maps/api/directions/xml?origin=42.3584,-71.0598&destination=41.7637,-72.6851&waypoints=43.6575,-71.5003|44.4759,-73.2121&sensor=false The origin is Boston,MA the destination is Hartford,CN the two waypoints are Merridth,NH and Burlington,VT. It returns results in my browser but sent from my program returns a send Synchronous Request error -1000
1
4,395,712
12/09/2010 07:02:41
510,425
11/17/2010 06:23:14
11
0
Divide and Conquer - Revised
From this thread: http://stackoverflow.com/questions/4394442/divide-and-conquer-comparing-all-possible-combinations A better explaination is: We have a list of DNA sequences, we want to know whether at least half the DNA sequences come from the same animal. We can compare two DNA sequences together quickly to see if they're from the same animal. But finding which animal corresponds to that DNA sequence is much slower. Divide and conquer is a must. Thanks.
algorithm
divide-and-conquer
null
null
null
12/10/2010 03:38:28
not a real question
Divide and Conquer - Revised === From this thread: http://stackoverflow.com/questions/4394442/divide-and-conquer-comparing-all-possible-combinations A better explaination is: We have a list of DNA sequences, we want to know whether at least half the DNA sequences come from the same animal. We can compare two DNA sequences together quickly to see if they're from the same animal. But finding which animal corresponds to that DNA sequence is much slower. Divide and conquer is a must. Thanks.
1
9,515,945
03/01/2012 12:08:42
230,430
12/12/2009 20:58:04
554
4
Is it possible to monitor calls to keybd_event, mouse_event, SetKeyboardState and SetWindowsHookEx?
I'm trying to develop an anti-cheating system. The system will work by identifying applications which make use of the keybd_event, mouse_event and SetKeyboardState in Windows. These applications are to be compared against a database of applications which are allowed by the system to make calls to those functions. To do this, I need to know if there's any way I can monitor calls to certain WinAPI functions. I would also need to monitor calls to SetWindowsHookEx.
winapi
null
null
null
null
null
open
Is it possible to monitor calls to keybd_event, mouse_event, SetKeyboardState and SetWindowsHookEx? === I'm trying to develop an anti-cheating system. The system will work by identifying applications which make use of the keybd_event, mouse_event and SetKeyboardState in Windows. These applications are to be compared against a database of applications which are allowed by the system to make calls to those functions. To do this, I need to know if there's any way I can monitor calls to certain WinAPI functions. I would also need to monitor calls to SetWindowsHookEx.
0
9,087,470
01/31/2012 21:50:26
1,082,281
12/05/2011 20:24:41
15
0
stopping embedded videos from playing once hidden
I have a slider that contains three frames. Each frame represents a play button for an embedded video behind it. When the user clicks the image, it is hidden and the embedded video is shown and starts autoplaying in the same location. When the user clicks to the next slide, the video is supposed to stop playing and the play frame for the next video should come up. I can get the first video to stop when the user clicks the next arrow, but then the second video starts playing behind the play frame, even though the video is hidden. I've tried a bunch of different methods, but nothing can stop that hidden video from playing. I'm using vimeo and I have the api turned on. $(".holdFrame").show();$(".hiddenVideo").hide(); $('.holdFrame').click(function(){ $(".hiddenVideo").show(); $(".holdFrame").hide(); }); That sets it up initially. And this runs when the next arrow is clicked. var setVideos = (function() { $(".hiddenVideo").hide('fast', function(){ $(".holdFrame").show('fast', function(){ pauseVideos(); }); }); });
javascript
jquery
video
embedding
vimeo
null
open
stopping embedded videos from playing once hidden === I have a slider that contains three frames. Each frame represents a play button for an embedded video behind it. When the user clicks the image, it is hidden and the embedded video is shown and starts autoplaying in the same location. When the user clicks to the next slide, the video is supposed to stop playing and the play frame for the next video should come up. I can get the first video to stop when the user clicks the next arrow, but then the second video starts playing behind the play frame, even though the video is hidden. I've tried a bunch of different methods, but nothing can stop that hidden video from playing. I'm using vimeo and I have the api turned on. $(".holdFrame").show();$(".hiddenVideo").hide(); $('.holdFrame').click(function(){ $(".hiddenVideo").show(); $(".holdFrame").hide(); }); That sets it up initially. And this runs when the next arrow is clicked. var setVideos = (function() { $(".hiddenVideo").hide('fast', function(){ $(".holdFrame").show('fast', function(){ pauseVideos(); }); }); });
0
6,238,405
06/04/2011 17:46:36
710,316
04/15/2011 18:03:07
442
0
Calling PHP classes from a URL
I'm using a class called `Group_Attributes()` in my project. I have it placed in my project and I call it the usual way. $gt = new Group_Attributes(); This class is also accessible as text on `http://myurl.com/files/Group_Attributes.php` which outputs the class as text. I'm thinking to call this class directly from there without without saving this file directly to my project. - How can I do this? - Are there any disadvantages to doing something like this, especially if the number of files grows to 100 or more
php
oop
class
null
null
07/11/2012 14:19:26
not constructive
Calling PHP classes from a URL === I'm using a class called `Group_Attributes()` in my project. I have it placed in my project and I call it the usual way. $gt = new Group_Attributes(); This class is also accessible as text on `http://myurl.com/files/Group_Attributes.php` which outputs the class as text. I'm thinking to call this class directly from there without without saving this file directly to my project. - How can I do this? - Are there any disadvantages to doing something like this, especially if the number of files grows to 100 or more
4
11,478,418
07/13/2012 21:09:04
1,524,584
07/13/2012 20:24:43
1
0
javascrit RegEx
I want validate person name and phone number in javascript. person name and phone number saved into array field: "Evergreen Valley College; 274-7900" and replace with: (408) 274-7900 Evergreen Valley College I most used one RegEx. Help me, Pleas.
javascript
regex
validation
replace
null
07/14/2012 01:34:40
not a real question
javascrit RegEx === I want validate person name and phone number in javascript. person name and phone number saved into array field: "Evergreen Valley College; 274-7900" and replace with: (408) 274-7900 Evergreen Valley College I most used one RegEx. Help me, Pleas.
1
5,504,642
03/31/2011 18:37:29
148,814
08/01/2009 01:19:28
1,202
10
How to convert date from one format to another
Im having the date in this format in a Excel worksheet 03-Dec-10. So its not compatible while inserting it into the database. How to convert the date to the acceptable format. Experts please help
php
mysql
date
null
null
null
open
How to convert date from one format to another === Im having the date in this format in a Excel worksheet 03-Dec-10. So its not compatible while inserting it into the database. How to convert the date to the acceptable format. Experts please help
0
5,804,908
04/27/2011 13:28:44
727,356
04/27/2011 13:28:44
1
0
java.sql.SQLRecoverableException: IO Error: Got minus one from a read call
java.sql.SQLRecoverableException: IO Error: Got minus one from a read call at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at bean.dbbean.main(dbbean.java:10) Caused by: oracle.net.ns.NetException: Got minus one from a read call at oracle.net.ns.Packet.receive(Packet.java:286) at oracle.net.ns.NSProtocol.connect(NSProtocol.java:287) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1054) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308) ... 7 more
java
database
connection
null
null
04/27/2011 13:52:31
not a real question
java.sql.SQLRecoverableException: IO Error: Got minus one from a read call === java.sql.SQLRecoverableException: IO Error: Got minus one from a read call at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at bean.dbbean.main(dbbean.java:10) Caused by: oracle.net.ns.NetException: Got minus one from a read call at oracle.net.ns.Packet.receive(Packet.java:286) at oracle.net.ns.NSProtocol.connect(NSProtocol.java:287) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1054) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308) ... 7 more
1
4,551,789
12/29/2010 05:50:20
555,790
12/28/2010 08:39:39
1
0
Discusses some issues related to mvc2.0
此文只写给遇到同样问题的人看的,因此写得会有点短 问题:    有个项目需要到:1、用户管理后台、2、开发人员后台、3用户前台    拿其中的文章列表这模块来举例    预计访问路径:1、用户管理后台:http://demo.com/admin/News/index          2、开发人员后台:http://demo.com/s7mmer/News/index           3、用户前台:http://demo.com/News/index       使用asp.net mvc1.0做这个是非常麻烦的事情,网上查了下,发现asp.net mvc2.0提供了Areas特性 解决: 网上查了下用法,上面说给项目添加一个名字为Admin的areas,打开VS右键项目或者文件夹都找不到areas这个选项,不知道是我理解错误还是补丁没装好? 于是只能采取如下步骤: 1、在根目录下新建个Areas文件夹的 2、在Areas 中手动建目录如下 3、添加映射,在Areas文件夹下新建一个类MyAreaRegistration.cs 代码如下: 代码 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace S7mmer.Web { public class AdminAreaRegistration : AreaRegistration { public override string AreaName { get { return "Admin"; } } public override void RegisterArea(AreaRegistrationContext context) { //匹配规则可以自己修改 context.MapRoute( "AdminController_default", "Admin/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" }, // Parameter defaults new string[] { "S7mmer.Web.Areas.Admin.Controllers" }//controllers的命名空间 ); } } public class S7mmerAreaRegistration : AreaRegistration { public override string AreaName { get { return "S7mmer"; } } public override void RegisterArea(AreaRegistrationContext context) { //匹配规则可以自己修改 context.MapRoute( "S7mmerController_default", "S7mmer/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" }, // Parameter defaults new string[] { "S7mmer.Web.Areas.S7mmer.Controllers" }//controllers的命名空间 ); } } public class WebSiteAreaRegistration : AreaRegistration { public override string AreaName { get { return "WebSite"; } } public override void RegisterArea(AreaRegistrationContext context) { //匹配规则可以自己修改 context.MapRoute( "WebSiteController_default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" }, // Parameter defaults new string[] { "S7mmer.Web.Areas.WebSite.Controllers" }//controllers的命名空间 ); } } } 4、在Areas文件夹下的Admin文件夹下新建一个NewsController.cs 5、在NewsController.cs中的public ActionResult Index()中右键添加view,发现在 已经在news中添加了index.aspx 6、修改根目录下的Global.asax文件,在Application_Start()里面添加AreaRegistration.RegisterAllAreas(); protected void Application_Start() { AreaRegistration.RegisterAllAreas(); // RegisterRoutes(RouteTable.Routes); } 编译、访问 http://localhost:1108/admin/News/index,用户管理后台访问成功! 其他按照上面的步骤来就可以达到了效果,这样子可以实现前后台文件的分离,方便管理
c#
mvc
null
null
null
12/29/2010 05:52:45
not a real question
Discusses some issues related to mvc2.0 === 此文只写给遇到同样问题的人看的,因此写得会有点短 问题:    有个项目需要到:1、用户管理后台、2、开发人员后台、3用户前台    拿其中的文章列表这模块来举例    预计访问路径:1、用户管理后台:http://demo.com/admin/News/index          2、开发人员后台:http://demo.com/s7mmer/News/index           3、用户前台:http://demo.com/News/index       使用asp.net mvc1.0做这个是非常麻烦的事情,网上查了下,发现asp.net mvc2.0提供了Areas特性 解决: 网上查了下用法,上面说给项目添加一个名字为Admin的areas,打开VS右键项目或者文件夹都找不到areas这个选项,不知道是我理解错误还是补丁没装好? 于是只能采取如下步骤: 1、在根目录下新建个Areas文件夹的 2、在Areas 中手动建目录如下 3、添加映射,在Areas文件夹下新建一个类MyAreaRegistration.cs 代码如下: 代码 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace S7mmer.Web { public class AdminAreaRegistration : AreaRegistration { public override string AreaName { get { return "Admin"; } } public override void RegisterArea(AreaRegistrationContext context) { //匹配规则可以自己修改 context.MapRoute( "AdminController_default", "Admin/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" }, // Parameter defaults new string[] { "S7mmer.Web.Areas.Admin.Controllers" }//controllers的命名空间 ); } } public class S7mmerAreaRegistration : AreaRegistration { public override string AreaName { get { return "S7mmer"; } } public override void RegisterArea(AreaRegistrationContext context) { //匹配规则可以自己修改 context.MapRoute( "S7mmerController_default", "S7mmer/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" }, // Parameter defaults new string[] { "S7mmer.Web.Areas.S7mmer.Controllers" }//controllers的命名空间 ); } } public class WebSiteAreaRegistration : AreaRegistration { public override string AreaName { get { return "WebSite"; } } public override void RegisterArea(AreaRegistrationContext context) { //匹配规则可以自己修改 context.MapRoute( "WebSiteController_default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" }, // Parameter defaults new string[] { "S7mmer.Web.Areas.WebSite.Controllers" }//controllers的命名空间 ); } } } 4、在Areas文件夹下的Admin文件夹下新建一个NewsController.cs 5、在NewsController.cs中的public ActionResult Index()中右键添加view,发现在 已经在news中添加了index.aspx 6、修改根目录下的Global.asax文件,在Application_Start()里面添加AreaRegistration.RegisterAllAreas(); protected void Application_Start() { AreaRegistration.RegisterAllAreas(); // RegisterRoutes(RouteTable.Routes); } 编译、访问 http://localhost:1108/admin/News/index,用户管理后台访问成功! 其他按照上面的步骤来就可以达到了效果,这样子可以实现前后台文件的分离,方便管理
1
9,267,641
02/13/2012 20:37:40
1,133,145
01/05/2012 21:42:04
256
48
Accuracy of Absolute Length Units
So, here is my first question on Stack Overflow. It sounds perhaps kind of silly, but I'm wondering how accurate the Absolute Length Units (in, cm, mm, pt, pc) are. I use now since years pixel for the height, margins, padding, indents, and so on, of elements. The problem I somehow have is that pixel are only more or less accurate. The CSS specification recommends a "reference pixel" of roughly 90ppi. So far so good. But every screen has different ppi values. Some going down to 72 other go far higher then the 90. This fact shows me that using pixels is not very accurate and I'm thinking about switching over to Absolute Units. It sounds silly, but I want to know if a mm for example has exactly the same size on every screen, or are there also differences from screen to screen, how big a mm is? This question is not a joke. I can't find anything about this topic and want to know if I can optimize my layout in the high end when using another Unit than pixel. Thank you in advance for sharing your knowledge.
html
css
null
null
null
null
open
Accuracy of Absolute Length Units === So, here is my first question on Stack Overflow. It sounds perhaps kind of silly, but I'm wondering how accurate the Absolute Length Units (in, cm, mm, pt, pc) are. I use now since years pixel for the height, margins, padding, indents, and so on, of elements. The problem I somehow have is that pixel are only more or less accurate. The CSS specification recommends a "reference pixel" of roughly 90ppi. So far so good. But every screen has different ppi values. Some going down to 72 other go far higher then the 90. This fact shows me that using pixels is not very accurate and I'm thinking about switching over to Absolute Units. It sounds silly, but I want to know if a mm for example has exactly the same size on every screen, or are there also differences from screen to screen, how big a mm is? This question is not a joke. I can't find anything about this topic and want to know if I can optimize my layout in the high end when using another Unit than pixel. Thank you in advance for sharing your knowledge.
0
11,235,082
06/27/2012 21:29:33
1,483,316
06/26/2012 15:55:04
1
0
Contextual Menu item method swizzling
Any idea how do I handle contextual menu click inside finder via method swizzling ? I am trying to find which method needs to be overridden from Finder.h for this?
osx
methods
finder
null
null
null
open
Contextual Menu item method swizzling === Any idea how do I handle contextual menu click inside finder via method swizzling ? I am trying to find which method needs to be overridden from Finder.h for this?
0
7,058,882
08/14/2011 18:41:03
85,385
03/31/2009 22:07:03
5,657
477
How to display a Drupal 6.20 menu in WordPress?
Is is possible to display (via php) the main menu of a Drupal 6.20 site in a WordPress theme template file located in a subdirectory on the same domain? Right now, I'm displaying the menu by copying the static html from the Drupal site and adding it to header.php in the WordPress template in the site located in mydomain.com/blog/. But of course that's not going to work when another menu item is added to the Drupal site, or the Drupal menu is changed in any way. So is there a Drupal php function that will pull the menu into the WP file? Failing that, is there a way with php to parse a Drupal page for the html of the menu (yes, this would be ugly) and display it in WP?
php
wordpress
drupal-6
null
null
null
open
How to display a Drupal 6.20 menu in WordPress? === Is is possible to display (via php) the main menu of a Drupal 6.20 site in a WordPress theme template file located in a subdirectory on the same domain? Right now, I'm displaying the menu by copying the static html from the Drupal site and adding it to header.php in the WordPress template in the site located in mydomain.com/blog/. But of course that's not going to work when another menu item is added to the Drupal site, or the Drupal menu is changed in any way. So is there a Drupal php function that will pull the menu into the WP file? Failing that, is there a way with php to parse a Drupal page for the html of the menu (yes, this would be ugly) and display it in WP?
0
11,604,763
07/22/2012 23:16:50
1,099,432
12/15/2011 08:36:49
370
10
Activity always starting in 2 instances on ZTE Skate
I have two activities: a Preload activity and the "main" activity. My preload activity basically just spawns the "main" activity and then exits. My problem appears *only* on ZTE Skate (all other devices work fine). When I start my application by tapping its icon, the logcat output of my application is duplicated. Each log line appears twice, but at different times. I read some topics on stackoverflow that assume it's only a logcat issue (and adb should be reset to solve it), but later, my "main" activity dies with a "bitmap size exceeds VM_BUDGET" error. This is probably because both activities are runnning at the same time, so memory gets low when it loads bitmaps. **The VM_BUDGET error does not appear on any other devices**, including HTC Desire, Samsung Galaxy Mini etc. (Of course, the duplicate logcat error also doesn't appear on any devices except ZTE Skate.) As a trial & error, I tried the `FLAG_ACTIVITY_CLEAR_TOP` flag for the `Intent`, but no success. I haven't tried the `singleTask` launch mode yet, but actually I don't think the behavior is correct anyway on ZTE Skate. Therefore, I would like to understand why double spawning happens. (The other possibility is that I've two independent errors: double logcat output anomaly, plus VM_BUDGET error. The problem is, I get no VM_BUDGET errors on other devices at all, and e.g. HTC Desire is not a better device than ZTE Skate so I doubt it's a memory leak or similar issue.)
java
android
android-activity
null
null
null
open
Activity always starting in 2 instances on ZTE Skate === I have two activities: a Preload activity and the "main" activity. My preload activity basically just spawns the "main" activity and then exits. My problem appears *only* on ZTE Skate (all other devices work fine). When I start my application by tapping its icon, the logcat output of my application is duplicated. Each log line appears twice, but at different times. I read some topics on stackoverflow that assume it's only a logcat issue (and adb should be reset to solve it), but later, my "main" activity dies with a "bitmap size exceeds VM_BUDGET" error. This is probably because both activities are runnning at the same time, so memory gets low when it loads bitmaps. **The VM_BUDGET error does not appear on any other devices**, including HTC Desire, Samsung Galaxy Mini etc. (Of course, the duplicate logcat error also doesn't appear on any devices except ZTE Skate.) As a trial & error, I tried the `FLAG_ACTIVITY_CLEAR_TOP` flag for the `Intent`, but no success. I haven't tried the `singleTask` launch mode yet, but actually I don't think the behavior is correct anyway on ZTE Skate. Therefore, I would like to understand why double spawning happens. (The other possibility is that I've two independent errors: double logcat output anomaly, plus VM_BUDGET error. The problem is, I get no VM_BUDGET errors on other devices at all, and e.g. HTC Desire is not a better device than ZTE Skate so I doubt it's a memory leak or similar issue.)
0
9,163,508
02/06/2012 16:30:27
1,192,730
02/06/2012 16:23:31
1
0
Stange messages in logfile
I got strange messages in my log file when server crashed: [...] ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ [...] What does it mean ? i'm running Linux debian stable and up-to-date: 2.6.38.2 Thanks
linux
error-message
logging
syslog
reboot
02/07/2012 19:28:20
off topic
Stange messages in logfile === I got strange messages in my log file when server crashed: [...] ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ [...] What does it mean ? i'm running Linux debian stable and up-to-date: 2.6.38.2 Thanks
2
4,173,196
11/13/2010 15:16:05
415,876
08/10/2010 07:24:47
54
4
How to handle html templates in MVC2?
My (MVC2) application displays several addresses in a View. Each address contains just a subset of information, like first- and lastname. The request is that the complete address information should be displayed when the mouse is over a result. An html template should be used therefor. This template defines how(!) the complete address should be displayed – but it doesn’t defines what(!) should be displayed. Means it can be assumed that the complete address is always “firstname“, “lastname”, “street”, “zipcode” and “city” (for example and to keep it simple). This will never be changed. But for example the background color can be changed in the html template from white to green or the size of the lastname can be changed from `<h1>` to `<h2>` … What is the best way to solve it? I would prefer to write some shared code (keyword: ascx). This shared code should wrap the template, would be very easy and would look like this: <div id=”mouseOver” style="display: none;" > X_REPLACE_X </div> The template would look like this simplified example: FirstName: {Name}<br/> Lastname: <h1>{Lastname}/<h1><br/> ZipCode: {ZipCode}<br/> I would then render the ascx code via “Html.RenderPartial” on the View and map each address to a javascript mouseover function. The javascript function would replace the placeholder (like {FistName}, {LastName} , etc.) in the template, position and display it. And thats my problem: The template should NOT be put directly in the wrapper (ascx - code)! Means at runtime must “X_REPLACE_X” be replaced with a somewhere on the server stored template. Because this gives me the ability to change the template without changing and publishing the code! How can this be managed? Is there a much better way to solve it? Should I use instead ajax calls to get the template in a variable? Any help would be really great! thxs in advance!
asp.net-mvc-2
null
null
null
null
null
open
How to handle html templates in MVC2? === My (MVC2) application displays several addresses in a View. Each address contains just a subset of information, like first- and lastname. The request is that the complete address information should be displayed when the mouse is over a result. An html template should be used therefor. This template defines how(!) the complete address should be displayed – but it doesn’t defines what(!) should be displayed. Means it can be assumed that the complete address is always “firstname“, “lastname”, “street”, “zipcode” and “city” (for example and to keep it simple). This will never be changed. But for example the background color can be changed in the html template from white to green or the size of the lastname can be changed from `<h1>` to `<h2>` … What is the best way to solve it? I would prefer to write some shared code (keyword: ascx). This shared code should wrap the template, would be very easy and would look like this: <div id=”mouseOver” style="display: none;" > X_REPLACE_X </div> The template would look like this simplified example: FirstName: {Name}<br/> Lastname: <h1>{Lastname}/<h1><br/> ZipCode: {ZipCode}<br/> I would then render the ascx code via “Html.RenderPartial” on the View and map each address to a javascript mouseover function. The javascript function would replace the placeholder (like {FistName}, {LastName} , etc.) in the template, position and display it. And thats my problem: The template should NOT be put directly in the wrapper (ascx - code)! Means at runtime must “X_REPLACE_X” be replaced with a somewhere on the server stored template. Because this gives me the ability to change the template without changing and publishing the code! How can this be managed? Is there a much better way to solve it? Should I use instead ajax calls to get the template in a variable? Any help would be really great! thxs in advance!
0
8,695,691
01/01/2012 21:30:58
662,605
12/20/2010 17:40:54
554
33
Core Data and SQLite ideal usage scenarios
I've been programming for the iPhone for about 2 years now, and as part of the applications I have programmed I've used SQLite and Core Data for persistence, however there are some cases where one is better and more optimised as a solution then the other, firstly I would like to stress that I am fully ware that Core Data is not and was not designed to be a RDBMS as is SQLite, however the APIs are very handy and you can get some real benefits from using it. So across my applications I've used SQLite directly with no wrapper, and I didn't really enjoy interacting directly with the C functions within my lovely OO app. Then I decided to learn Core Data for two reasons, firstly I wanted to familiarise myself with this framework as it is a very useful and present framework within the iOS developing environment and in terms of my career I wanted to ensure that I knew this framework, but also at a first glance it seemed like the perfect solution for my application. In a nut shell it was an app where the user generated their own content, so creating data sets based on user interaction was quite satisfyingly achieved with Core Data, but then another layer got added to my application which was some sort of remote API sync, so now I had an remote API endpoint that could tell me some data from other users, then I had to save this to the app and refresh, update etc from the remote source from time to time, but as soon as I started integrating the concept of downloading batches of data from the remote source, I realised that Core Data wasn't really as great as I hoped, so for example my application needed a login and then I would load your friends data from the remote source (based on Facebook friends using this application). So when I log out from the application, I would have to pass on all the objects in the Core Data store and delete them, because assuming the next login is by a different user, you wouldn't want to show that user the previous users friends information. There was one feature of Core Data I loved and that was the Fetched Results Controller for table views, this worked great and optimised to the max the object faulting etc... However the problem still remained about the remote sync, downloading batches of data and saving then one by one, the deleting them to keep up to date, seemed like a lot of looping, loading and operations, especially when you consider that this would only be one SQL command to delete all the records of your friends if I had chosen SQLite for this... So my question is, according to you what are the optimal contexts when Core Data should be preferred to SQLite and vice versa, to kick off and I'm still trying to really figure tho one out, I made a short list of apps and what I think they use: • FaceTime for mac: it seems the data store for all the calls / missed calls, call duration, favourites, would be Core Data. • Twitter iOS app: given the enormous set of data that a user could have in this app, I an guessing that it uses SQLite, however I could be wrong... It seems to me that you would consider Core Data more in a user content generation scenario, and an SQLite solution in a more large set/remote data sync scenario, but sometimes these two scenarios come together in the same application, I do know of some developers mixing and matching both in the same application but I would like to get your take on this, and could anyone say for any particular apps they know one or the other is being used, as a matter of curiosity. Lastly I am aware or other Stack Overflow questions titled "Core Data vs SQLite" etc but this is really about analysing it, thank you.
ios
sqlite
core-data
null
null
01/03/2012 13:56:11
not a real question
Core Data and SQLite ideal usage scenarios === I've been programming for the iPhone for about 2 years now, and as part of the applications I have programmed I've used SQLite and Core Data for persistence, however there are some cases where one is better and more optimised as a solution then the other, firstly I would like to stress that I am fully ware that Core Data is not and was not designed to be a RDBMS as is SQLite, however the APIs are very handy and you can get some real benefits from using it. So across my applications I've used SQLite directly with no wrapper, and I didn't really enjoy interacting directly with the C functions within my lovely OO app. Then I decided to learn Core Data for two reasons, firstly I wanted to familiarise myself with this framework as it is a very useful and present framework within the iOS developing environment and in terms of my career I wanted to ensure that I knew this framework, but also at a first glance it seemed like the perfect solution for my application. In a nut shell it was an app where the user generated their own content, so creating data sets based on user interaction was quite satisfyingly achieved with Core Data, but then another layer got added to my application which was some sort of remote API sync, so now I had an remote API endpoint that could tell me some data from other users, then I had to save this to the app and refresh, update etc from the remote source from time to time, but as soon as I started integrating the concept of downloading batches of data from the remote source, I realised that Core Data wasn't really as great as I hoped, so for example my application needed a login and then I would load your friends data from the remote source (based on Facebook friends using this application). So when I log out from the application, I would have to pass on all the objects in the Core Data store and delete them, because assuming the next login is by a different user, you wouldn't want to show that user the previous users friends information. There was one feature of Core Data I loved and that was the Fetched Results Controller for table views, this worked great and optimised to the max the object faulting etc... However the problem still remained about the remote sync, downloading batches of data and saving then one by one, the deleting them to keep up to date, seemed like a lot of looping, loading and operations, especially when you consider that this would only be one SQL command to delete all the records of your friends if I had chosen SQLite for this... So my question is, according to you what are the optimal contexts when Core Data should be preferred to SQLite and vice versa, to kick off and I'm still trying to really figure tho one out, I made a short list of apps and what I think they use: • FaceTime for mac: it seems the data store for all the calls / missed calls, call duration, favourites, would be Core Data. • Twitter iOS app: given the enormous set of data that a user could have in this app, I an guessing that it uses SQLite, however I could be wrong... It seems to me that you would consider Core Data more in a user content generation scenario, and an SQLite solution in a more large set/remote data sync scenario, but sometimes these two scenarios come together in the same application, I do know of some developers mixing and matching both in the same application but I would like to get your take on this, and could anyone say for any particular apps they know one or the other is being used, as a matter of curiosity. Lastly I am aware or other Stack Overflow questions titled "Core Data vs SQLite" etc but this is really about analysing it, thank you.
1
11,355,733
07/06/2012 04:12:13
1,339,473
04/17/2012 18:13:20
26
1
When i was busy while Incoming call I wanted to play my select mp3 to anohter party
> Suppos someone calling me but i did't get beacause i am busy but my > selected songs was play to another party.Please Give me answer if is it possible?
android
android-emulator
null
null
null
07/06/2012 05:38:46
not a real question
When i was busy while Incoming call I wanted to play my select mp3 to anohter party === > Suppos someone calling me but i did't get beacause i am busy but my > selected songs was play to another party.Please Give me answer if is it possible?
1
11,033,383
06/14/2012 12:49:19
1,396,323
05/15/2012 13:43:58
67
4
Windows Azure Pricing precisions
I am trying to estimate the cost of the development of a project on Windows Azure. But some stats are a bit vague. Here are my questions: **Storage**<br/> How can you calculate/estimate your number of storage transactions. Let's take an example, if one user downloads one file of 1Mo, how many transaction(s) ? **Web and Worker Role Instances**<br/> If you have a Web role (staging) and you deactivated it, I mean, his status is stopped. Do you pay for it ? Do you just need to stop it or delete the entire hosted service. **Bandwidth**<br/> How can you estimate your bandwidth. (Maybe others questions will come after) Thanks a lot for your answers !
asp.net
windows
azure
pricing
null
06/15/2012 14:53:54
off topic
Windows Azure Pricing precisions === I am trying to estimate the cost of the development of a project on Windows Azure. But some stats are a bit vague. Here are my questions: **Storage**<br/> How can you calculate/estimate your number of storage transactions. Let's take an example, if one user downloads one file of 1Mo, how many transaction(s) ? **Web and Worker Role Instances**<br/> If you have a Web role (staging) and you deactivated it, I mean, his status is stopped. Do you pay for it ? Do you just need to stop it or delete the entire hosted service. **Bandwidth**<br/> How can you estimate your bandwidth. (Maybe others questions will come after) Thanks a lot for your answers !
2
11,650,541
07/25/2012 13:14:37
1,472,405
06/21/2012 14:22:46
11
0
adding new checkboxes
I'm trying to add a new checkbox for each String in alist. The code is: void MainFormLoad(object sender, EventArgs e) { ArrayList alist = new ArrayList(); alist.Add("First"); alist.Add("Second"); foreach (String s in alist) { // add new checkbox with different name for each string in alist } } please help
c#
null
null
null
null
07/26/2012 07:45:33
not a real question
adding new checkboxes === I'm trying to add a new checkbox for each String in alist. The code is: void MainFormLoad(object sender, EventArgs e) { ArrayList alist = new ArrayList(); alist.Add("First"); alist.Add("Second"); foreach (String s in alist) { // add new checkbox with different name for each string in alist } } please help
1
2,183,523
02/02/2010 11:14:24
264,268
02/02/2010 11:14:24
1
0
how to create a very large matrix using matlab
I have a problem with matlab when I'm trying to create a a matrix with a very large size such as 40000x40000. for example: x=zeros(40000,40000); the error message is "??? Maximum variable size allowed by the program is exceeded. " is there any solution. Also I have another question, can we have a matrix with variable column size such as in java.
matlab
null
null
null
null
null
open
how to create a very large matrix using matlab === I have a problem with matlab when I'm trying to create a a matrix with a very large size such as 40000x40000. for example: x=zeros(40000,40000); the error message is "??? Maximum variable size allowed by the program is exceeded. " is there any solution. Also I have another question, can we have a matrix with variable column size such as in java.
0
7,474,162
09/19/2011 16:25:59
94,608
04/22/2009 20:33:40
517
75
Control references in jQuery
function eegetdropdownvalue_str(ctl){return ctl.selectedIndex>=0&&ctl[ctl.selectedIndex]?ctl[ctl.selectedIndex].value:''} The above function is called with co.p1A10=eegetdropdownvalue_str(document.formc.p1A10); I want to switch the call over to jQuery to drop the document.form reference however doing this co.p1A10=eegetdropdownvalue_str($('p1A10')); Does not reference the control correctly - How should I do this?
javascript
jquery
null
null
null
null
open
Control references in jQuery === function eegetdropdownvalue_str(ctl){return ctl.selectedIndex>=0&&ctl[ctl.selectedIndex]?ctl[ctl.selectedIndex].value:''} The above function is called with co.p1A10=eegetdropdownvalue_str(document.formc.p1A10); I want to switch the call over to jQuery to drop the document.form reference however doing this co.p1A10=eegetdropdownvalue_str($('p1A10')); Does not reference the control correctly - How should I do this?
0
11,593,092
07/21/2012 14:41:28
1,159,192
01/19/2012 18:31:12
153
5
Android Converting HTML Tagged String to String While Identifying HTML Tags
I know there a bunch of threads going on the general topic of HTML inline tagged string and parsing it, but over the last 2 days of digging through them I am still unable to piece together code to execute what I am trying to do. What I would like to do is take an HTML tagged string that is created by the HTML.to(Spanned Text). See the picture below it takes the text from the editText and runs it through HTML.to and then populates the TextView below. ![enter image description here][1] [1]: http://i.stack.imgur.com/IlqRu.jpg What I would like to do is break that tagged HTML string into sections of text. So the sections would be for example: hello world @ &amp, Got it! &#8730. Furthermore I would need to know what the tags were that belonged to each section so that I can format the string appropriately for output to a file. ****My questions are: 1) How do I do what I described above and is there anything that already is part of the android sdk that does this. I was thinking maybe XMLParser, but I am not very familiar with it? 2)How would I handle two tags for a certain section. For example maybe bold and italic such as `<b><i>Hello World</i></b>`?**** Thanks and if you need more information please let me know.
android
string
formatting
html-parsing
html-tag
null
open
Android Converting HTML Tagged String to String While Identifying HTML Tags === I know there a bunch of threads going on the general topic of HTML inline tagged string and parsing it, but over the last 2 days of digging through them I am still unable to piece together code to execute what I am trying to do. What I would like to do is take an HTML tagged string that is created by the HTML.to(Spanned Text). See the picture below it takes the text from the editText and runs it through HTML.to and then populates the TextView below. ![enter image description here][1] [1]: http://i.stack.imgur.com/IlqRu.jpg What I would like to do is break that tagged HTML string into sections of text. So the sections would be for example: hello world @ &amp, Got it! &#8730. Furthermore I would need to know what the tags were that belonged to each section so that I can format the string appropriately for output to a file. ****My questions are: 1) How do I do what I described above and is there anything that already is part of the android sdk that does this. I was thinking maybe XMLParser, but I am not very familiar with it? 2)How would I handle two tags for a certain section. For example maybe bold and italic such as `<b><i>Hello World</i></b>`?**** Thanks and if you need more information please let me know.
0
2,403,786
03/08/2010 18:42:50
289,068
03/08/2010 18:32:21
1
0
What's the best technology for a medium complexity web application?
I'm planning to work on a web application of reasonable complexity and am wondering what technology to go with. It will probably start with one person, but there will be 2 or 3 more eventually. My first requirement is to be able to do this as quickly as possible - preferably with as less code as possible. Secondly requirement is that it should be able to scale easily. I have worked with .NET and PHP. So, I am thinking about ASP .NET MVC or CakePHP. It appears to me that CakePHP might be quicker. I did look at Ruby on Rails, but the learning curve is a little steep (which is not an issue if I can be convinced that this is the best tool for the task), I'm not too crazy about the huge number of files generated and I have heard about scalability issues as well as it's applicability to complex situations. I look forward to your opinions on your favorite technology and why.
application
technology
c#
php
null
03/08/2010 18:59:30
not constructive
What's the best technology for a medium complexity web application? === I'm planning to work on a web application of reasonable complexity and am wondering what technology to go with. It will probably start with one person, but there will be 2 or 3 more eventually. My first requirement is to be able to do this as quickly as possible - preferably with as less code as possible. Secondly requirement is that it should be able to scale easily. I have worked with .NET and PHP. So, I am thinking about ASP .NET MVC or CakePHP. It appears to me that CakePHP might be quicker. I did look at Ruby on Rails, but the learning curve is a little steep (which is not an issue if I can be convinced that this is the best tool for the task), I'm not too crazy about the huge number of files generated and I have heard about scalability issues as well as it's applicability to complex situations. I look forward to your opinions on your favorite technology and why.
4
3,273,925
07/18/2010 01:08:51
133,208
07/04/2009 20:43:22
448
7
How do I implement custom Principal and Identity in ASP.NET MVC?
I want to store extra information in the authenticated user so that I can have it easily accessible (like User.Identity.Id, for example). So far I've gathered that I should look to implement custom Principal and/or Identity, but I'm not sure how to go about it. I've been looking for documentation and tutorials on the matter, but I've found related stuff in different places and I've found it a bit confusing. I don't want anything too complicated, I'm willing to use most of the defaults. So, what exactly do I need to do in this scenario?
asp.net-mvc-2
forms-authentication
identity
principal
null
null
open
How do I implement custom Principal and Identity in ASP.NET MVC? === I want to store extra information in the authenticated user so that I can have it easily accessible (like User.Identity.Id, for example). So far I've gathered that I should look to implement custom Principal and/or Identity, but I'm not sure how to go about it. I've been looking for documentation and tutorials on the matter, but I've found related stuff in different places and I've found it a bit confusing. I don't want anything too complicated, I'm willing to use most of the defaults. So, what exactly do I need to do in this scenario?
0
10,817,283
05/30/2012 13:27:20
1,031,232
11/05/2011 15:14:31
13
0
How does a server verify game scores from a client?
I've seen lots of flash games with online highscores. Not just flash games, gamemaker games as well. How does the server side verify that the client has REALLY received the score that it has claimed to make?
security
verification
null
null
null
06/01/2012 08:18:00
off topic
How does a server verify game scores from a client? === I've seen lots of flash games with online highscores. Not just flash games, gamemaker games as well. How does the server side verify that the client has REALLY received the score that it has claimed to make?
2
5,968,913
05/11/2011 18:33:11
549,226
12/20/2010 21:57:15
166
11
Trying to figure out meta refresh in web page
I'm trying to programmatically extract some data from this url: [http://www.treasurydirect.gov/NP/BPDLogin?application=np][1] The issue is that it does a meta refresh back on to itself, and I'm trying to figure out what it is passing to the second request to get it to display the final page (rather than conitnually refreshing on to itself). In order to help with the analysis, I've put the first page that peforms the refresh here: [http://www.testpikefin.com/datadev/tdirect.html][2] There are a couple of javascript errors that can be ignored. The refresh happens after 8 seconds. [1]: http://www.treasurydirect.gov/NP/BPDLogin?application=np [2]: http://www.testpikefin.com/datadev/tdirect.html
javascript
html
null
null
null
null
open
Trying to figure out meta refresh in web page === I'm trying to programmatically extract some data from this url: [http://www.treasurydirect.gov/NP/BPDLogin?application=np][1] The issue is that it does a meta refresh back on to itself, and I'm trying to figure out what it is passing to the second request to get it to display the final page (rather than conitnually refreshing on to itself). In order to help with the analysis, I've put the first page that peforms the refresh here: [http://www.testpikefin.com/datadev/tdirect.html][2] There are a couple of javascript errors that can be ignored. The refresh happens after 8 seconds. [1]: http://www.treasurydirect.gov/NP/BPDLogin?application=np [2]: http://www.testpikefin.com/datadev/tdirect.html
0
4,365,787
12/06/2010 11:13:41
532,171
12/06/2010 11:11:07
1
0
How create sub menus using html
How create sub menus using html or i have to use java scripts
javascript
html
null
null
null
12/06/2010 11:46:10
not a real question
How create sub menus using html === How create sub menus using html or i have to use java scripts
1
5,993,017
05/13/2011 13:59:11
752,501
05/13/2011 13:54:22
1
0
Help? Why the output is like this???
#include<iostream> using namespace std; int a=8; int g(){ a++; return a-1; } int f(){ a++; return a; } int main() { cout << g() << " " <<f() << " " << g() + f() << endl; system("PAUSE"); return 0; } > Output is "11 11 18"
c++
global-variables
null
null
null
null
open
Help? Why the output is like this??? === #include<iostream> using namespace std; int a=8; int g(){ a++; return a-1; } int f(){ a++; return a; } int main() { cout << g() << " " <<f() << " " << g() + f() << endl; system("PAUSE"); return 0; } > Output is "11 11 18"
0
6,662,999
07/12/2011 10:49:21
773,389
05/27/2011 15:39:43
89
3
Model with Foreign keys not behaving as expected - Django
I have a model with two foreign keys to create many to many relationship - I am not using many to many field in Django class Story(models.Model): title = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __unicode__(self): return self.title class Category(models.Model): categoryText = models.CharField(max_length=50) parentCat = models.ForeignKey('self',null=True,blank=True) def __unicode__(self): return self.categoryText class StoryCat(models.Model): story = models.ForeignKey(Poll,null=True,blank=True) category = models.ForeignKey(Category,null=True,blank=True) def __unicode__(self): return self.story I would like to query for a category like 'short', and retrieve all the unique keys to all stories returned. >>>c=Category(categoryText='short') >>>s=StoryCat(category=c) when I try this I get errors "AttributeError: 'NoneType' object has no attribute 'title'. How can I do this?
django
django-models
null
null
null
null
open
Model with Foreign keys not behaving as expected - Django === I have a model with two foreign keys to create many to many relationship - I am not using many to many field in Django class Story(models.Model): title = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __unicode__(self): return self.title class Category(models.Model): categoryText = models.CharField(max_length=50) parentCat = models.ForeignKey('self',null=True,blank=True) def __unicode__(self): return self.categoryText class StoryCat(models.Model): story = models.ForeignKey(Poll,null=True,blank=True) category = models.ForeignKey(Category,null=True,blank=True) def __unicode__(self): return self.story I would like to query for a category like 'short', and retrieve all the unique keys to all stories returned. >>>c=Category(categoryText='short') >>>s=StoryCat(category=c) when I try this I get errors "AttributeError: 'NoneType' object has no attribute 'title'. How can I do this?
0
4,262,433
11/24/2010 00:26:25
508,377
11/15/2010 14:47:43
27
1
how to download souce code from svn server ?
I want to download the source code of this open source project but i don't know how ?!
android
svn
google
null
null
11/24/2010 04:14:03
not a real question
how to download souce code from svn server ? === I want to download the source code of this open source project but i don't know how ?!
1
6,671,631
07/12/2011 21:51:29
841,626
07/12/2011 21:48:45
1
0
mysql REPLACE query with multiple primary keys
so MYSQL's REPLACE command (not to be confused with the string replace function) replaces a row if there exist a column with the same primary key with the inserted data... but what if I have two primary keys and I want to use both to specify the row to replace not just one of them....how do I specify mysql to use both keys rather than just one
mysql
query
replace
null
null
null
open
mysql REPLACE query with multiple primary keys === so MYSQL's REPLACE command (not to be confused with the string replace function) replaces a row if there exist a column with the same primary key with the inserted data... but what if I have two primary keys and I want to use both to specify the row to replace not just one of them....how do I specify mysql to use both keys rather than just one
0
8,619,116
12/23/2011 17:50:44
1,056,635
11/20/2011 17:54:48
38
0
Is it possible read the content of a variable with gdb?
Is it possible without any file.out and source code, but just the binary? Is it possible, knowing the name of a var, found and read at runtime the value?
gdb
reverse-engineering
null
null
null
null
open
Is it possible read the content of a variable with gdb? === Is it possible without any file.out and source code, but just the binary? Is it possible, knowing the name of a var, found and read at runtime the value?
0
11,299,205
07/02/2012 18:30:53
1,319,033
04/07/2012 12:11:16
124
8
Onsite commenting solutions
I am at the stage of development for my website where i am designing my commenting system. My question is should i choose between a self-coded comment system or use a premade system? Like facebook comments or Disqus I am guessing the key factors to answer this question are such as, is my website facebook dependent and does it require users to link their account? Well, currently no. But i am thinking if i enabled this then posting comments through facebook would help me have a social presence? And also if i choose disqus they offer a whole range of features that would take me a long while to create. What would you guys recommend?
php
html
comments
facebook-comments
disqus
07/02/2012 18:52:41
not constructive
Onsite commenting solutions === I am at the stage of development for my website where i am designing my commenting system. My question is should i choose between a self-coded comment system or use a premade system? Like facebook comments or Disqus I am guessing the key factors to answer this question are such as, is my website facebook dependent and does it require users to link their account? Well, currently no. But i am thinking if i enabled this then posting comments through facebook would help me have a social presence? And also if i choose disqus they offer a whole range of features that would take me a long while to create. What would you guys recommend?
4
10,486,721
05/07/2012 17:53:21
1,212,813
02/16/2012 01:49:12
21
0
OpenGL Render to texture Coordinates
I want to be able to render to a texture (for shaders, fonts), but I've got a problem a problem to position the quad properly (the framebuffer itself does what it should do). The resulting (copied) texture shows in most cases the upper left corder, the rest gets cropped. That's worser for rectangular textures, nearly no effect for square textures (so I happen to not recognize this behaviour for days) Example code: public Texture copy(final Texture tex) { final int tempTex = glGenTextures(); Draw.bindTexture(tempTex); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, tex.getImageWidth(), tex.getImageHeight(), 0, GL_RGB, GL_UNSIGNED_BYTE, (ByteBuffer)null); // Adjust projection matrix glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); glViewport(0, 0, tex.getSize(), tex.getSize()); // Change blendmode to ignore the transparent background Draw.blendingMode(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); // Prepare fbo, add the texture as backend and clear it final int fbo = glGenFramebuffers(); glBindFramebuffer(GL_FRAMEBUFFER, fbo); glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tempTex, 0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Finally draw Draw.bindTexture(tex.getId()); glBegin(GL_QUADS); { glTexCoord2f(0, 0); glVertex2f(-1, -1); glTexCoord2f(tex.getWidth(), 0); glVertex2f(1, -1); glTexCoord2f(tex.getWidth(), tex.getHeight()); glVertex2f(1, 1); glTexCoord2f(0, tex.getHeight()); glVertex2f(-1, 1); } glEnd(); // Unbind framebuffer glBindFramebuffer(GL_FRAMEBUFFER, 0); // Reset projection matrix glViewport(0, 0, 1920, 1080); // TODO Don't hardcode glPopMatrix(); return new Texture(tempTex, tex.getImageWidth(), tex.getImageHeight()); } Example image: ![enter image description here][1] [1]: http://i.stack.imgur.com/kwsJk.png ---------- The uppers are the original images as rendered, below the copied version What am I doing wrong?
java
opengl
render-to-texture
projection-matrix
null
null
open
OpenGL Render to texture Coordinates === I want to be able to render to a texture (for shaders, fonts), but I've got a problem a problem to position the quad properly (the framebuffer itself does what it should do). The resulting (copied) texture shows in most cases the upper left corder, the rest gets cropped. That's worser for rectangular textures, nearly no effect for square textures (so I happen to not recognize this behaviour for days) Example code: public Texture copy(final Texture tex) { final int tempTex = glGenTextures(); Draw.bindTexture(tempTex); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, tex.getImageWidth(), tex.getImageHeight(), 0, GL_RGB, GL_UNSIGNED_BYTE, (ByteBuffer)null); // Adjust projection matrix glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); glViewport(0, 0, tex.getSize(), tex.getSize()); // Change blendmode to ignore the transparent background Draw.blendingMode(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); // Prepare fbo, add the texture as backend and clear it final int fbo = glGenFramebuffers(); glBindFramebuffer(GL_FRAMEBUFFER, fbo); glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tempTex, 0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Finally draw Draw.bindTexture(tex.getId()); glBegin(GL_QUADS); { glTexCoord2f(0, 0); glVertex2f(-1, -1); glTexCoord2f(tex.getWidth(), 0); glVertex2f(1, -1); glTexCoord2f(tex.getWidth(), tex.getHeight()); glVertex2f(1, 1); glTexCoord2f(0, tex.getHeight()); glVertex2f(-1, 1); } glEnd(); // Unbind framebuffer glBindFramebuffer(GL_FRAMEBUFFER, 0); // Reset projection matrix glViewport(0, 0, 1920, 1080); // TODO Don't hardcode glPopMatrix(); return new Texture(tempTex, tex.getImageWidth(), tex.getImageHeight()); } Example image: ![enter image description here][1] [1]: http://i.stack.imgur.com/kwsJk.png ---------- The uppers are the original images as rendered, below the copied version What am I doing wrong?
0
7,229,449
08/29/2011 11:26:53
437,459
09/02/2010 00:14:02
23
1
How can I keep Apache stopped on Ubuntu?
Actually, I want something like WAMP (for Windows). The Apache service should be always stopped. Whenever I need it to be running, I go to the Start Menu and turn it on. Is there a way to make it possible on Ubuntu?
apache
ubuntu
wamp
lamp
ubuntu-10.10
08/31/2011 04:30:09
off topic
How can I keep Apache stopped on Ubuntu? === Actually, I want something like WAMP (for Windows). The Apache service should be always stopped. Whenever I need it to be running, I go to the Start Menu and turn it on. Is there a way to make it possible on Ubuntu?
2
10,426,735
05/03/2012 07:10:32
1,357,942
04/26/2012 06:49:23
8
0
Google Maps using a button/Onclicklistener to open Google Maps app
I've been on this for over a week. I've tried setting up a Google maps activity in my app with no luck. I also see you can call on the Google map app from your application. By using a Onclicklistener. How do I open the Google Maps app from my app using a button? This is the code I'm using... import com.google.android.maps.GeoPoint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; public class Store10 extends Activity { Context context; GeoPoint geo; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.store10); Button num10 = (Button) findViewById(R.id.pNumber10); Button nav10 = (Button) findViewById(R.id.Map10); num10.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // TODO Auto-generated method stub Intent myIntent = new Intent(view.getContext() ,Num10.class); startActivityForResult(myIntent, 0); } }); nav10.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // TODO Auto-generated method stub String uri = String.format("geo:%f,%f",40,325874,76,002211); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); context.startActivity(intent); } }); } } Here's the Onclicklistener I'm trying to set up nav10.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // TODO Auto-generated method stub String uri = String.format("geo:%f,%f",40,325874,76,002211); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); context.startActivity(intent); } });
android
google-maps
null
null
null
null
open
Google Maps using a button/Onclicklistener to open Google Maps app === I've been on this for over a week. I've tried setting up a Google maps activity in my app with no luck. I also see you can call on the Google map app from your application. By using a Onclicklistener. How do I open the Google Maps app from my app using a button? This is the code I'm using... import com.google.android.maps.GeoPoint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; public class Store10 extends Activity { Context context; GeoPoint geo; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.store10); Button num10 = (Button) findViewById(R.id.pNumber10); Button nav10 = (Button) findViewById(R.id.Map10); num10.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // TODO Auto-generated method stub Intent myIntent = new Intent(view.getContext() ,Num10.class); startActivityForResult(myIntent, 0); } }); nav10.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // TODO Auto-generated method stub String uri = String.format("geo:%f,%f",40,325874,76,002211); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); context.startActivity(intent); } }); } } Here's the Onclicklistener I'm trying to set up nav10.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // TODO Auto-generated method stub String uri = String.format("geo:%f,%f",40,325874,76,002211); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); context.startActivity(intent); } });
0
11,507,352
07/16/2012 15:21:23
1,520,640
07/12/2012 11:31:10
13
7
using Open Xml for Excel file in C#
I need to sort my excel file according to a column data and using Open xml in C#. Is there any way to do so....? Please rply soon Thanks in advance
c#
openxml
null
null
null
07/16/2012 15:38:32
not a real question
using Open Xml for Excel file in C# === I need to sort my excel file according to a column data and using Open xml in C#. Is there any way to do so....? Please rply soon Thanks in advance
1
33,897
08/29/2008 03:01:00
356
08/05/2008 01:13:09
50
8
Online PHP IDE
Is there an IDE for PHP where you can edit the code for your pages online? Real syntax highlighting is minimal. More would be great. I'd like to be able to do development on my site at times other than when I'm not at at home.
php
ide
null
null
null
12/15/2011 20:33:53
not constructive
Online PHP IDE === Is there an IDE for PHP where you can edit the code for your pages online? Real syntax highlighting is minimal. More would be great. I'd like to be able to do development on my site at times other than when I'm not at at home.
4
3,421,485
08/06/2010 06:33:40
278,533
02/22/2010 08:16:29
275
2
Applying classes to a parent element with JS
I need to apply a class to the `<li>` tag that encloses an anchor tag when a user clicks on the link. Like this: <ul> <li><a href="#">Just an Example</a></li> </ul> So when the user clicks on `<a href="#">Just an Example</a>`, I need to apply a class to the `<li>` enclosing it. How would I target this? I am using jquery.
javascript
jquery
html
null
null
null
open
Applying classes to a parent element with JS === I need to apply a class to the `<li>` tag that encloses an anchor tag when a user clicks on the link. Like this: <ul> <li><a href="#">Just an Example</a></li> </ul> So when the user clicks on `<a href="#">Just an Example</a>`, I need to apply a class to the `<li>` enclosing it. How would I target this? I am using jquery.
0
3,937,020
10/14/2010 19:58:28
48,553
12/23/2008 03:51:30
3,711
219
When to add a service reference?
I'm building a WCF service that will get deployed to a server running IIS. I can add the service reference from the current solution and use it fine. If I deploy the service to that particular machine, will I need to re-add the service to the application that consumes it?
wcf
iis
service-reference
null
null
null
open
When to add a service reference? === I'm building a WCF service that will get deployed to a server running IIS. I can add the service reference from the current solution and use it fine. If I deploy the service to that particular machine, will I need to re-add the service to the application that consumes it?
0
11,481,502
07/14/2012 06:10:01
1,027,161
11/03/2011 07:44:09
31
2
Trouble with SQL querys
I'm getting trouble with a SQL query. The problem is, that I'm querying an external database of eneterprise names, and some names are like "Martha's" (include aposthrophies). And because I'm querying from an android app, the query string looks like: String query = "Select * from Advertiser where AdvName= '" + name + "';"; So is there anyway I could ignore, or change the aposthrophies con the query? Thanks in advance!
java
android
sql
query
null
null
open
Trouble with SQL querys === I'm getting trouble with a SQL query. The problem is, that I'm querying an external database of eneterprise names, and some names are like "Martha's" (include aposthrophies). And because I'm querying from an android app, the query string looks like: String query = "Select * from Advertiser where AdvName= '" + name + "';"; So is there anyway I could ignore, or change the aposthrophies con the query? Thanks in advance!
0
5,840,304
04/30/2011 07:29:07
728,746
04/28/2011 07:07:16
1
0
website post and comment
I want to create a website where people can post a text, and other people can comment it if they want. with no registration needed, but when people make a post, they have to wait for my approval, what are my option?, write my own code in php?, is there any template out there I can use?, thank you for your help.
php
templates
comments
null
null
07/15/2011 18:09:46
not constructive
website post and comment === I want to create a website where people can post a text, and other people can comment it if they want. with no registration needed, but when people make a post, they have to wait for my approval, what are my option?, write my own code in php?, is there any template out there I can use?, thank you for your help.
4
7,861,911
10/22/2011 19:02:05
724,269
04/25/2011 19:36:07
104
8
Save Changes to SQL Server Database from WPF Datagrid
I am using a WPF datagrid to display my contents in a SQL Server Database. The contents in the datagrid are binded to a view in the database. I populate the datagrid on window loaded by the following: this.myAccountantDBDataSet = ((MyAccountant.MyAccountantDBDataSet)(this.FindResource("myAccountantDBDataSet"))); // Load data into the table AccountData. this.accountDataAdapter = new MyAccountant.MyAccountantDBDataSetTableAdapters.AccountDataTableAdapter(); this.accountDataAdapter.Fill(myAccountantDBDataSet.AccountData); System.Windows.Data.CollectionViewSource accountDataViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("accountDataViewSource"))); accountDataViewSource.View.MoveCurrentToFirst(); What I am wondering, is how to save updates, inserts, and deletions back to the database since what I am showing in the datagrid is a view. The database table and views looks like this: ![enter image description here][1] [1]: http://i.stack.imgur.com/HsvN9.jpg
c#
database
datagrid
null
null
null
open
Save Changes to SQL Server Database from WPF Datagrid === I am using a WPF datagrid to display my contents in a SQL Server Database. The contents in the datagrid are binded to a view in the database. I populate the datagrid on window loaded by the following: this.myAccountantDBDataSet = ((MyAccountant.MyAccountantDBDataSet)(this.FindResource("myAccountantDBDataSet"))); // Load data into the table AccountData. this.accountDataAdapter = new MyAccountant.MyAccountantDBDataSetTableAdapters.AccountDataTableAdapter(); this.accountDataAdapter.Fill(myAccountantDBDataSet.AccountData); System.Windows.Data.CollectionViewSource accountDataViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("accountDataViewSource"))); accountDataViewSource.View.MoveCurrentToFirst(); What I am wondering, is how to save updates, inserts, and deletions back to the database since what I am showing in the datagrid is a view. The database table and views looks like this: ![enter image description here][1] [1]: http://i.stack.imgur.com/HsvN9.jpg
0
135,122
09/25/2008 18:35:57
16,668
09/17/2008 19:35:07
142
19
Hosted CRM system with an API?
I apologize if this is slightly off-topic. I'm hoping to find a software-as-a-service CRM system that can be easily integrated with our custom user management application. Fundamentally, we have user our own accounts and provide services to these registered users; frequently, we have email conversations with people that own these accounts - it would be great if our CRM interface would suddenly light up with the record of these conversations. Here's my dream solution, let me know if this is possible: - We have a "service" email alias; i'd want to add the "track@GreatCrmVendor.com" to that alias so that all emails are CC'd to our CRM vendor. - In the admin UI for our app, I'd love to have access to the emails that the CRM vendor has captured for us - something like a REST-based web service call that aks "give me all email headers for customer with email X". Do you know of such CRM vendor? <b>Clarification</b>: I know how to build such a catch-all email account, parse the emails, record them in the database and all... I just don't want to invest the development time in it, I'm hoping we can just integrate with a good off-the-shelf solution. Thanks!
web-services
email
crm
null
null
07/15/2012 01:50:22
off topic
Hosted CRM system with an API? === I apologize if this is slightly off-topic. I'm hoping to find a software-as-a-service CRM system that can be easily integrated with our custom user management application. Fundamentally, we have user our own accounts and provide services to these registered users; frequently, we have email conversations with people that own these accounts - it would be great if our CRM interface would suddenly light up with the record of these conversations. Here's my dream solution, let me know if this is possible: - We have a "service" email alias; i'd want to add the "track@GreatCrmVendor.com" to that alias so that all emails are CC'd to our CRM vendor. - In the admin UI for our app, I'd love to have access to the emails that the CRM vendor has captured for us - something like a REST-based web service call that aks "give me all email headers for customer with email X". Do you know of such CRM vendor? <b>Clarification</b>: I know how to build such a catch-all email account, parse the emails, record them in the database and all... I just don't want to invest the development time in it, I'm hoping we can just integrate with a good off-the-shelf solution. Thanks!
2
11,110,633
06/19/2012 22:54:48
980,048
10/05/2011 09:16:03
87
3
Visual & HTML Editor doesn't work after Wordpress 3.4 Update
I updated my wordpress version from 3.3.1 to 3.4. Now the visual & html tab don't appear anymore. These are the solutions that I've tried. 1. Renaming "plugins" folder name to oldplugins and checking the editor 2. Install Google CDN library plugin 3. Deactivating all plugins. 4. Activating default wordpress theme and afterwards checking the new post page. 5. Making another wordpress installation. In that installation editor works. So how can I solve this problem . There are a lot of people that have the same problem http://wordpress.org/support/topic/visual-editor-not-working-after-33-upgrade/page/3?replies=95 Let me know if you have any idea.
php
wordpress
null
null
null
06/20/2012 01:42:56
off topic
Visual & HTML Editor doesn't work after Wordpress 3.4 Update === I updated my wordpress version from 3.3.1 to 3.4. Now the visual & html tab don't appear anymore. These are the solutions that I've tried. 1. Renaming "plugins" folder name to oldplugins and checking the editor 2. Install Google CDN library plugin 3. Deactivating all plugins. 4. Activating default wordpress theme and afterwards checking the new post page. 5. Making another wordpress installation. In that installation editor works. So how can I solve this problem . There are a lot of people that have the same problem http://wordpress.org/support/topic/visual-editor-not-working-after-33-upgrade/page/3?replies=95 Let me know if you have any idea.
2
1,608,428
10/22/2009 16:30:26
127,478
06/23/2009 10:13:10
36
2
What is the biggest new feature/improvement in SharePoint 2010?
This is really a question for the 7400 people (!) at the SharePoint Conference 2009. Of all the new features and improvements in SharePoint 2010, which one (or area or feature set) do you think will have the biggest impact on the SharePoint world?
sharepoint2010
sharepoint
null
null
null
03/23/2012 17:11:12
not constructive
What is the biggest new feature/improvement in SharePoint 2010? === This is really a question for the 7400 people (!) at the SharePoint Conference 2009. Of all the new features and improvements in SharePoint 2010, which one (or area or feature set) do you think will have the biggest impact on the SharePoint world?
4
10,474,994
05/06/2012 22:59:59
849,137
07/17/2011 23:08:19
830
22
One SSL certificate, multiple servers, two way communication, cURL - am I safe?
So heres the scenario: I have a server, called **Server A**. This server is where all my API stuff is processed. So people will be making requests to it. This server has an SSL certificate installed, for secure data communication. Now, I've been working on an **open-source** project, which users will install onto their own servers (abbit like WordPress). So lets call the users servers **Server B**. This server does **NOT** have an SSL certificate installed. I already am aware of **Server B** being able to communicate with **Server A** without some evil middle man/woman listening in to any POSTed data, being transfered back and forth. I also am aware of the fact that vice-versa is not the same situation (**Server A** cannot communicate with **Server B** securely). But, I need a way to communicate between **Server A** and **Server B** securely, in both directions. So this is what I've come up with: If I want **Server B** to communicate **Server A**, I can simply take the normal approach and use HTTPS with cURL to do my stuff (because **Server A** has SSL). If I want **Server A** to communicate with **Server B**, this is what I plan to do: **Firstly, something you should know**: When a user first installs this app on their server (**Server B**), they are assigned a unique ID, which is hard-coded into their copy of the app's core files. **Server A** first sends an in-secure (HTTP, not HTTPS) request to a listener script on **Server B**. **Server A** generates a UID (Unique Number for Identification) and sends it to **Server B**, during the in-secure connection. **Server A** will then be on standby. **Server B** will then make an immediate call back to **Server A**, using HTTPS, sending that UID back to **Server A**, so that **Server A** will know what the call back is for. During the secure call back, **Server B** is also required to send a specific User-Agent, with the servers UID (generated on installation, as I explained above). So **Server A** will be expecting a specific and unique User-Agent during the callback from **Server B**. If **Server B** fails to send the correct User-Agent during the secure callback, **Server A** will not respond and NO data will be transfered. Else, if the correct User-Agent is received, the data transmitting can start between the two servers, securely. **A few other things you should know:** **1.)** The call-back script is hard-coded into **Server B** and is in NO way dynamic. So call-backs will only be made to a specific script, and to a specific domain (unless the user messes around with the core files and changes the call-back target - which is very unlikely - and to be fair, not my problem either.). **2.)** If a callback is not made with in a time scale of 30 seconds, **Server A** will delete the UID generated during the in-secure connection, and start again. **3.)** ***I log everything.*** Every. Single. Piece of information is logged. When the in-secure connection started, how long it took for the call-back to arrive. IP address(es) of the call-back server (**Server B**), how long the secure connection lasted, and what was transfered during the connection. **Everything**. **4.)** In case you haven't already figured, all of this is done in `PHP` and all of the requests/call-backs is done in `cURL`. Now I can't think of any other way to make that more secure. But guys, I will be sending some sensitive info (Credit Card and other payment processing details) through this, so **any** sign of it being in-secure is not acceptable. I cannot afford to purchase an SSL certificate for each and every one of my users, and I don't really want to nag them to do so, either. I know this question is pretty over-broad, but I would love to hear your thoughts on this. If you was a hacker, could you come up with a way to break through?
php
security
ssl
curl
null
05/08/2012 15:43:42
too localized
One SSL certificate, multiple servers, two way communication, cURL - am I safe? === So heres the scenario: I have a server, called **Server A**. This server is where all my API stuff is processed. So people will be making requests to it. This server has an SSL certificate installed, for secure data communication. Now, I've been working on an **open-source** project, which users will install onto their own servers (abbit like WordPress). So lets call the users servers **Server B**. This server does **NOT** have an SSL certificate installed. I already am aware of **Server B** being able to communicate with **Server A** without some evil middle man/woman listening in to any POSTed data, being transfered back and forth. I also am aware of the fact that vice-versa is not the same situation (**Server A** cannot communicate with **Server B** securely). But, I need a way to communicate between **Server A** and **Server B** securely, in both directions. So this is what I've come up with: If I want **Server B** to communicate **Server A**, I can simply take the normal approach and use HTTPS with cURL to do my stuff (because **Server A** has SSL). If I want **Server A** to communicate with **Server B**, this is what I plan to do: **Firstly, something you should know**: When a user first installs this app on their server (**Server B**), they are assigned a unique ID, which is hard-coded into their copy of the app's core files. **Server A** first sends an in-secure (HTTP, not HTTPS) request to a listener script on **Server B**. **Server A** generates a UID (Unique Number for Identification) and sends it to **Server B**, during the in-secure connection. **Server A** will then be on standby. **Server B** will then make an immediate call back to **Server A**, using HTTPS, sending that UID back to **Server A**, so that **Server A** will know what the call back is for. During the secure call back, **Server B** is also required to send a specific User-Agent, with the servers UID (generated on installation, as I explained above). So **Server A** will be expecting a specific and unique User-Agent during the callback from **Server B**. If **Server B** fails to send the correct User-Agent during the secure callback, **Server A** will not respond and NO data will be transfered. Else, if the correct User-Agent is received, the data transmitting can start between the two servers, securely. **A few other things you should know:** **1.)** The call-back script is hard-coded into **Server B** and is in NO way dynamic. So call-backs will only be made to a specific script, and to a specific domain (unless the user messes around with the core files and changes the call-back target - which is very unlikely - and to be fair, not my problem either.). **2.)** If a callback is not made with in a time scale of 30 seconds, **Server A** will delete the UID generated during the in-secure connection, and start again. **3.)** ***I log everything.*** Every. Single. Piece of information is logged. When the in-secure connection started, how long it took for the call-back to arrive. IP address(es) of the call-back server (**Server B**), how long the secure connection lasted, and what was transfered during the connection. **Everything**. **4.)** In case you haven't already figured, all of this is done in `PHP` and all of the requests/call-backs is done in `cURL`. Now I can't think of any other way to make that more secure. But guys, I will be sending some sensitive info (Credit Card and other payment processing details) through this, so **any** sign of it being in-secure is not acceptable. I cannot afford to purchase an SSL certificate for each and every one of my users, and I don't really want to nag them to do so, either. I know this question is pretty over-broad, but I would love to hear your thoughts on this. If you was a hacker, could you come up with a way to break through?
3
9,809,282
03/21/2012 16:57:11
338,365
05/11/2010 14:18:52
593
6
What machine learning algorithm for this simple optimisation?
I'll formulate a simple problem that I'd like to solve with machine learning (in R or similar platforms): my **algorithm** takes **3 parameters** (a,b,c), and returns a **score** s in range [0,1]. The parameters are all categorical: a has 3 options, b has 4, and c has 10. Therefore my dataset has 3 * 4 * 10 = 120 cases. High scores are desirable (close to 1), low scores are not (close to 0). Let's treat the algorihm as a black box, taking a,b,c and returning a s. The dataset looks like this: a, b, c, s ------------------ a1, b1, c1, 0.223 a1, b1, c2, 0.454 ... If I plot the density of the s for each parameter, I get very wide distributions, in which some cases perform very well (s > .8 ), others badly (s < .2 ). If I look at the cases where s is very high, I can't see any clear pattern. Parameter values that overall perform badly can perform very well in combination with specific parameters, and vice versa. To measure how well a specific value performs (e.g. a1), I compute the median: median( mydataset[ a == a1]$s ) For example, median(a1)=.5, median(b3)=.9, but when I combine them, I get a lower result s(a_1,b_3)= .3. On the other hand, median(a2)=.3, median(b1)=.4, but s(a2,b1)= .7. Given that there aren't parameter values that perform always well, I guess I should look for combinations (of 2 parameters) that seem to perform well together, in a statistically significant way (i.e. excluding outliers that happen to have very high scores). In other words, I want to obtain a *policy* to make the optimal parameter choice, e.g. the best performing combinations are (a1,b3), (a2,b1), etc. Now, I guess that this is an optimisation problem that can be solved using machine learning. What standard techniques would you recommend in this context?
optimization
machine-learning
null
null
null
03/23/2012 17:12:27
off topic
What machine learning algorithm for this simple optimisation? === I'll formulate a simple problem that I'd like to solve with machine learning (in R or similar platforms): my **algorithm** takes **3 parameters** (a,b,c), and returns a **score** s in range [0,1]. The parameters are all categorical: a has 3 options, b has 4, and c has 10. Therefore my dataset has 3 * 4 * 10 = 120 cases. High scores are desirable (close to 1), low scores are not (close to 0). Let's treat the algorihm as a black box, taking a,b,c and returning a s. The dataset looks like this: a, b, c, s ------------------ a1, b1, c1, 0.223 a1, b1, c2, 0.454 ... If I plot the density of the s for each parameter, I get very wide distributions, in which some cases perform very well (s > .8 ), others badly (s < .2 ). If I look at the cases where s is very high, I can't see any clear pattern. Parameter values that overall perform badly can perform very well in combination with specific parameters, and vice versa. To measure how well a specific value performs (e.g. a1), I compute the median: median( mydataset[ a == a1]$s ) For example, median(a1)=.5, median(b3)=.9, but when I combine them, I get a lower result s(a_1,b_3)= .3. On the other hand, median(a2)=.3, median(b1)=.4, but s(a2,b1)= .7. Given that there aren't parameter values that perform always well, I guess I should look for combinations (of 2 parameters) that seem to perform well together, in a statistically significant way (i.e. excluding outliers that happen to have very high scores). In other words, I want to obtain a *policy* to make the optimal parameter choice, e.g. the best performing combinations are (a1,b3), (a2,b1), etc. Now, I guess that this is an optimisation problem that can be solved using machine learning. What standard techniques would you recommend in this context?
2
7,817,485
10/19/2011 06:42:29
692,121
04/05/2011 02:32:11
1
0
.dat structured file handling in C (manual ?)
Hello I just wanna ask where can we get a relevant manual about .dat file handling in C not C++. I was googling around and It really me a lot time. So I come because I know there's a lot of expert here. Hope you could me. Even just a simple example of read, edit, add and delete. (CRUD)
c++
c
null
null
null
10/19/2011 12:40:18
not a real question
.dat structured file handling in C (manual ?) === Hello I just wanna ask where can we get a relevant manual about .dat file handling in C not C++. I was googling around and It really me a lot time. So I come because I know there's a lot of expert here. Hope you could me. Even just a simple example of read, edit, add and delete. (CRUD)
1
6,824,258
07/26/2011 01:18:05
862,573
07/26/2011 01:12:46
1
0
Modifying Code Igniter
I am looking into developing a commercial application using PHP. Since I have experience in CodeIgniter and it has been working well for me, I decided to use it. Now, if ever my application comes to a point that it needs to grow and have to have custom modifications in the platform, is it possible to modify the CodeIgniter source code to the point that it's far from the original?
codeigniter
null
null
null
null
null
open
Modifying Code Igniter === I am looking into developing a commercial application using PHP. Since I have experience in CodeIgniter and it has been working well for me, I decided to use it. Now, if ever my application comes to a point that it needs to grow and have to have custom modifications in the platform, is it possible to modify the CodeIgniter source code to the point that it's far from the original?
0
8,038,560
11/07/2011 15:24:29
244,000
01/05/2010 14:52:41
1,043
9
A editor that can replace Vim, and easier to extend, in ruby
Don't get me wrong. VIM is awesome. But to learn VIM programming language just to extend VIM just doesn't seem right to me. Is there an editor that is as powerful as VIM and easily extended with ruby code?
ruby
vim
null
null
null
11/07/2011 18:54:55
not constructive
A editor that can replace Vim, and easier to extend, in ruby === Don't get me wrong. VIM is awesome. But to learn VIM programming language just to extend VIM just doesn't seem right to me. Is there an editor that is as powerful as VIM and easily extended with ruby code?
4
5,347,788
03/18/2011 03:34:37
519,702
07/23/2010 03:34:57
552
35
Querying documents referenced from an embedded document
I'm using Doctrine ODM and am having trouble referencing other documents from within embedded documents. Consider the follow documents: <?php /** @Document */ class TopCategory { /** EmbedMany(targetDocument="SubCategory") */ private $subCategories; } /** @EmbeddedDocument */ class SubCategory { /** ReferenceMany(targetDocument="Product") */ private $products; } /** @Document */ class Product { /** @String */ private $name; } Now I am wondering how I could find a TopCategory (or SubCategory) by product, I've tried a few different ways to achieve this, one method works but is a bit hackish. First way, doesn't work: $category = $dm->createQueryBuilder('TopCategory') ->field('subCategories.products')->includesReferenceTo($someProduct) ->getQuery()->execute(); // ... gives Doctrine\ODM\MongoDB\MongoDBException: No mapping found for field 'subCategories.products' in class 'TopCategory'.' Second way, doesn't work: $category = $dm->createQueryBuilder('SubCategory') ->field('products')->includesReferenceTo($someProduct) ->getQuery()->execute(); // ... returns null Third, working workaround: $category = $dm->createQueryBuilder('SubCategory') ->field('products.$id')->equals(new \MongoId($someProduct->getId())) ->getQuery()->execute(); // .. works, but seems hackish I am using the latest from GitHub and MognoDB v1.8.0 What's the go with this? NOTE: Interesting how Doctrine ODM lets you return an embedded document directly.
php
doctrine2
mongodb
null
null
null
open
Querying documents referenced from an embedded document === I'm using Doctrine ODM and am having trouble referencing other documents from within embedded documents. Consider the follow documents: <?php /** @Document */ class TopCategory { /** EmbedMany(targetDocument="SubCategory") */ private $subCategories; } /** @EmbeddedDocument */ class SubCategory { /** ReferenceMany(targetDocument="Product") */ private $products; } /** @Document */ class Product { /** @String */ private $name; } Now I am wondering how I could find a TopCategory (or SubCategory) by product, I've tried a few different ways to achieve this, one method works but is a bit hackish. First way, doesn't work: $category = $dm->createQueryBuilder('TopCategory') ->field('subCategories.products')->includesReferenceTo($someProduct) ->getQuery()->execute(); // ... gives Doctrine\ODM\MongoDB\MongoDBException: No mapping found for field 'subCategories.products' in class 'TopCategory'.' Second way, doesn't work: $category = $dm->createQueryBuilder('SubCategory') ->field('products')->includesReferenceTo($someProduct) ->getQuery()->execute(); // ... returns null Third, working workaround: $category = $dm->createQueryBuilder('SubCategory') ->field('products.$id')->equals(new \MongoId($someProduct->getId())) ->getQuery()->execute(); // .. works, but seems hackish I am using the latest from GitHub and MognoDB v1.8.0 What's the go with this? NOTE: Interesting how Doctrine ODM lets you return an embedded document directly.
0
8,593,727
12/21/2011 17:19:05
1,102,396
12/16/2011 17:00:20
1
0
Is there any WYSIWYG editor for php
Like ixedit for jquery. And it shouldn't require any knowledge of php whatsoever!
php
wysiwyg
null
null
null
12/21/2011 17:25:31
not a real question
Is there any WYSIWYG editor for php === Like ixedit for jquery. And it shouldn't require any knowledge of php whatsoever!
1
9,565,083
03/05/2012 10:28:31
918,348
08/29/2011 18:27:11
187
0
My event handler stripper code isn't working
I found a method here on stack overflow that strips all event handlers from a given event. However, when I copied the code into my program it gave me a "Reference not set to an instance" error. Here is the code in question: FieldInfo f1 = typeof(Control).GetField("DocumentCompleted", BindingFlags.Static | BindingFlags.NonPublic); object obj = f1.GetValue(browser); PropertyInfo pi = browser.GetType().GetProperty("Events", BindingFlags.NonPublic | BindingFlags.Instance); EventHandlerList list = (EventHandlerList)pi.GetValue(browser, null); list.RemoveHandler(obj, list[obj]); The error happened on this line: object obj = f1.GetValue(browser); The browser object is an instance of WebBrowser, and it has been instantized at this point. Thanks.
c#
winforms
null
null
null
null
open
My event handler stripper code isn't working === I found a method here on stack overflow that strips all event handlers from a given event. However, when I copied the code into my program it gave me a "Reference not set to an instance" error. Here is the code in question: FieldInfo f1 = typeof(Control).GetField("DocumentCompleted", BindingFlags.Static | BindingFlags.NonPublic); object obj = f1.GetValue(browser); PropertyInfo pi = browser.GetType().GetProperty("Events", BindingFlags.NonPublic | BindingFlags.Instance); EventHandlerList list = (EventHandlerList)pi.GetValue(browser, null); list.RemoveHandler(obj, list[obj]); The error happened on this line: object obj = f1.GetValue(browser); The browser object is an instance of WebBrowser, and it has been instantized at this point. Thanks.
0
8,114,807
11/13/2011 21:17:11
554,540
12/27/2010 00:10:19
153
6
Which language would be the best (speed wise) to run algorithms with lots of loops & regex ?
Looking for a fast back end language to run **algorithms with lots of loops and regex**. Application is running php (Zend frameword), would like to move the core functionality further back to get better memory usage and speed. So far thinking perl (after some googling), would like to make sure that is the best option Thanks for your help
regex
performance
algorithm
null
null
11/14/2011 08:26:19
not constructive
Which language would be the best (speed wise) to run algorithms with lots of loops & regex ? === Looking for a fast back end language to run **algorithms with lots of loops and regex**. Application is running php (Zend frameword), would like to move the core functionality further back to get better memory usage and speed. So far thinking perl (after some googling), would like to make sure that is the best option Thanks for your help
4
10,143,980
04/13/2012 15:42:00
553,877
12/25/2010 16:21:42
406
7
Implementing a timeout in c#
I am new to c#; I have mainly done Java. I want to implement a timeout something along the lines: int now= Time.now(); while(true) { tryMethod(); if(now > now+5000) throw new TimeoutException(); } How can I implement this in C#? Thanks!
c#
timeout
null
null
null
null
open
Implementing a timeout in c# === I am new to c#; I have mainly done Java. I want to implement a timeout something along the lines: int now= Time.now(); while(true) { tryMethod(); if(now > now+5000) throw new TimeoutException(); } How can I implement this in C#? Thanks!
0
4,311,090
11/30/2010 06:22:42
246,034
01/08/2010 00:10:47
35
1
How do you do an include in applescript?
I have a bunch of code I want to to use in several different applescripts so I would like to put it into it's own applescript that I can reference from other applescripts. Basically I want to do an include. How is this done in applescript?
applescript
null
null
null
null
null
open
How do you do an include in applescript? === I have a bunch of code I want to to use in several different applescripts so I would like to put it into it's own applescript that I can reference from other applescripts. Basically I want to do an include. How is this done in applescript?
0
4,845,544
01/30/2011 21:07:43
181,421
09/29/2009 21:11:35
229
1
aspx GridView filter with javascript
I'm using Asp.net with c# code, VS 2010. I have a page with a gridview which shows a members list. I would like to use javascript without any ajax to filter the rows in the grid as the user type. For example if the user typed "Jo" then the rows with "John" and "Jonny" will stay and the other ones will be filtered out. Thanks.
c#
javascript
null
null
null
null
open
aspx GridView filter with javascript === I'm using Asp.net with c# code, VS 2010. I have a page with a gridview which shows a members list. I would like to use javascript without any ajax to filter the rows in the grid as the user type. For example if the user typed "Jo" then the rows with "John" and "Jonny" will stay and the other ones will be filtered out. Thanks.
0
4,156,515
11/11/2010 16:13:11
483,431
10/21/2010 18:58:42
3
0
Keeping iPhone App private after AppStore approval for beta testing.
I have messed around with AD-HOC distribution quite a bit and got it working too. The problem I am facing is all the people who I want to use as beta testers are "normal people" who never even sync their iPhone to iTunes on a computer. So, you can understand how technically challenged these people are, which is fine with me because that is the audience I want to use for testing. All these guys can do for me is if I can give them an AppStore link they will download it on their iPhone and test it for me. So, basically AD-HOC distribution (UDIDs, mobileprovision file and all that crap) is out of question for me. My Question is after AppStore approves my app, is there a way for me to be under the radar so that normal public can not download the app until I am ready. From past experience I know that the moment you put an app out there, in first week you get 100s of downloads and I dont want that to happen until my beta testing is finished.
iphone
unit-testing
app-store
beta
null
06/06/2012 22:50:28
off topic
Keeping iPhone App private after AppStore approval for beta testing. === I have messed around with AD-HOC distribution quite a bit and got it working too. The problem I am facing is all the people who I want to use as beta testers are "normal people" who never even sync their iPhone to iTunes on a computer. So, you can understand how technically challenged these people are, which is fine with me because that is the audience I want to use for testing. All these guys can do for me is if I can give them an AppStore link they will download it on their iPhone and test it for me. So, basically AD-HOC distribution (UDIDs, mobileprovision file and all that crap) is out of question for me. My Question is after AppStore approves my app, is there a way for me to be under the radar so that normal public can not download the app until I am ready. From past experience I know that the moment you put an app out there, in first week you get 100s of downloads and I dont want that to happen until my beta testing is finished.
2
10,604,883
05/15/2012 16:18:27
401,896
07/26/2010 02:50:29
337
17
IOS load a small piece (rect) of a large image into memory
On ios and most mobile devices there is a restriction on the size of the image that you can load due to memory contraints. What i was wonderring is , is it possible to load a large image say 5,000 pixels by 5,000 pixels but only read a rectangle of the image say 100x100 into memory and thus display? In other words, do you need to load the entire image into memory just to see a small sub section? if possible how? This way one can save a lot of space like spritesheets do for repetitive content. It would be important to note that the overall goal is to minimize the file size so large image should be compressed with jpeg or png or some other kind of compression. I suspect video formats are like this because you never load an entire video into the memory.
ios
uiview
compression
null
null
null
open
IOS load a small piece (rect) of a large image into memory === On ios and most mobile devices there is a restriction on the size of the image that you can load due to memory contraints. What i was wonderring is , is it possible to load a large image say 5,000 pixels by 5,000 pixels but only read a rectangle of the image say 100x100 into memory and thus display? In other words, do you need to load the entire image into memory just to see a small sub section? if possible how? This way one can save a lot of space like spritesheets do for repetitive content. It would be important to note that the overall goal is to minimize the file size so large image should be compressed with jpeg or png or some other kind of compression. I suspect video formats are like this because you never load an entire video into the memory.
0
6,009,048
05/15/2011 14:39:02
71,547
02/26/2009 19:44:55
114
2
Magento Layered Navigation - Sort By Count
I would like to sort each of my layered navigation filters by # of items in each filter. Here's what shows now- - Books - 1 - CD's - 2 - DVD's - 20 What I want to show- - DVD's - 20 - CD's - 2 - Books - 1 I've been looking at catalog/layer/filter.phtml, but I can't figure out how to sort magento collections. Ideally I want something like this: $this->getItems()->order('Count Desc') How can I accomplish this?
magento
navigation
layered
null
null
null
open
Magento Layered Navigation - Sort By Count === I would like to sort each of my layered navigation filters by # of items in each filter. Here's what shows now- - Books - 1 - CD's - 2 - DVD's - 20 What I want to show- - DVD's - 20 - CD's - 2 - Books - 1 I've been looking at catalog/layer/filter.phtml, but I can't figure out how to sort magento collections. Ideally I want something like this: $this->getItems()->order('Count Desc') How can I accomplish this?
0
10,943,181
06/08/2012 04:45:08
1,116,065
12/26/2011 08:33:41
6
0
Where are the vertex names in an iGraph graph
My general problem is that I loose the vertex names / labels (not sure about the right word here) when generating a graph using iGraph. I have an edge list IC_edge_sub of a bipartite network, that looks like the following: new_individualID new_companyID 1 <NA> 10024354c 3 10069415i 2020225c 4 10069415i 16020347c 5 10069272i 2020225c 6 10069272i 16020347c 7 10069274i 2020225c *I then create a graph element:* IC_projected_graphs <- bipartite.projection(IC_twomode, types = is.bipartite(IC_twomode)$type) *Then collapse it to identify only connections between companyIDs* IC_projected_graphs <- bipartite.projection(IC_twomode, types = is.bipartite(IC_twomode)$type) *And then get the adjacency matrix:* CC_matrix_IC_based <- get.adjacency(CC_graph_IC_based); CC_matrix_IC_based In iGraph node numbering starts at zero and thus also the matrix naming starts at zero. However, I would instead now need the "new_companyID" as specified in the 2nd column of the edgelist in the eventual CC_matrix_IC_based matrix. Can you help me how to use the information form the original edgelist to put in rownames and colnames in the eventual adjacency matrix? I googled it and searched stack flow, but could not really find a working answer. Thanks a lot for your help
r
igraph
bipartite
null
null
null
open
Where are the vertex names in an iGraph graph === My general problem is that I loose the vertex names / labels (not sure about the right word here) when generating a graph using iGraph. I have an edge list IC_edge_sub of a bipartite network, that looks like the following: new_individualID new_companyID 1 <NA> 10024354c 3 10069415i 2020225c 4 10069415i 16020347c 5 10069272i 2020225c 6 10069272i 16020347c 7 10069274i 2020225c *I then create a graph element:* IC_projected_graphs <- bipartite.projection(IC_twomode, types = is.bipartite(IC_twomode)$type) *Then collapse it to identify only connections between companyIDs* IC_projected_graphs <- bipartite.projection(IC_twomode, types = is.bipartite(IC_twomode)$type) *And then get the adjacency matrix:* CC_matrix_IC_based <- get.adjacency(CC_graph_IC_based); CC_matrix_IC_based In iGraph node numbering starts at zero and thus also the matrix naming starts at zero. However, I would instead now need the "new_companyID" as specified in the 2nd column of the edgelist in the eventual CC_matrix_IC_based matrix. Can you help me how to use the information form the original edgelist to put in rownames and colnames in the eventual adjacency matrix? I googled it and searched stack flow, but could not really find a working answer. Thanks a lot for your help
0
1,740,880
11/16/2009 08:46:31
211,885
11/16/2009 08:30:49
1
0
Power of two textures
Can you explain me, why hardware acceleration required for a long time textures be power of two? For PCs, since GeForce 6 we achieved npot textures with no-mips and simplified filtering. OpenGL ES 2.0 also supports npot textures without mipmaps and etc. What is the hardware restriction for this? Just simplified arithmetics?
opengl
texture-mapping
null
null
null
null
open
Power of two textures === Can you explain me, why hardware acceleration required for a long time textures be power of two? For PCs, since GeForce 6 we achieved npot textures with no-mips and simplified filtering. OpenGL ES 2.0 also supports npot textures without mipmaps and etc. What is the hardware restriction for this? Just simplified arithmetics?
0