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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9,687,278 | 03/13/2012 15:41:59 | 750,583 | 03/11/2010 09:30:03 | 112 | 3 | Cron job run every x weeks and on specific days | I want to create a cron job that runs every x weeks and on a specific weekdays.
for example: run every 2 weeks on midnight every Sunday and Monday.
the cron expression is stored for every "plan" and i use [ncrontab][1] function in SQL Server 2008 to generate the dates of given cron expression.
Is there an expression for it? or even join of several expressions?
I've tried to use the following expression, but it always gives the the same days in months
0 0 1/14 * *
2012-01-01 00:00:00.000
2012-01-15 00:00:00.000
2012-01-29 00:00:00.000
2012-02-01 00:00:00.000
2012-02-15 00:00:00.000
2012-02-29 00:00:00.000
[1]: http://code.google.com/p/ncrontab/wiki/SqlServerCrontab
| cron | crontab | scheduler | recurrence | null | 03/15/2012 13:04:44 | off topic | Cron job run every x weeks and on specific days
===
I want to create a cron job that runs every x weeks and on a specific weekdays.
for example: run every 2 weeks on midnight every Sunday and Monday.
the cron expression is stored for every "plan" and i use [ncrontab][1] function in SQL Server 2008 to generate the dates of given cron expression.
Is there an expression for it? or even join of several expressions?
I've tried to use the following expression, but it always gives the the same days in months
0 0 1/14 * *
2012-01-01 00:00:00.000
2012-01-15 00:00:00.000
2012-01-29 00:00:00.000
2012-02-01 00:00:00.000
2012-02-15 00:00:00.000
2012-02-29 00:00:00.000
[1]: http://code.google.com/p/ncrontab/wiki/SqlServerCrontab
| 2 |
3,439,436 | 08/09/2010 11:16:30 | 261,052 | 01/28/2010 14:28:11 | 56 | 3 | Jquery .hide() and .show() won't work in IE7\8 | I am trying to .hide or .show IMG and DIV in IE, and it won't work for some reason.
anyone knows about such issues?
thanks | jquery | internet-explorer | null | null | null | 08/09/2010 18:31:22 | not a real question | Jquery .hide() and .show() won't work in IE7\8
===
I am trying to .hide or .show IMG and DIV in IE, and it won't work for some reason.
anyone knows about such issues?
thanks | 1 |
10,574,986 | 05/13/2012 20:31:14 | 1,328,809 | 04/12/2012 10:17:00 | 12 | 0 | hadoop dedicated user | I have several machines with username machine1,machine2 and so on. The machine1 is master and rest are slaves. The IPs have been specified in /etc/hosts file labeled as master and slave1,slave2... In the configuration files(conf/*.xml files) ,the specification of hosts is as master, slave1, wherever necessary. But the tutorial I have been following to create a cluster of nodes have used a dedicated user, which I have not. It is creating some problems because even when it logs into the slave system, the log file shows it still using the master's user name, which if had been a dedicated user name for all machines wouldn't have created any problem.Can someone help | hadoop | null | null | null | null | 07/21/2012 22:05:31 | off topic | hadoop dedicated user
===
I have several machines with username machine1,machine2 and so on. The machine1 is master and rest are slaves. The IPs have been specified in /etc/hosts file labeled as master and slave1,slave2... In the configuration files(conf/*.xml files) ,the specification of hosts is as master, slave1, wherever necessary. But the tutorial I have been following to create a cluster of nodes have used a dedicated user, which I have not. It is creating some problems because even when it logs into the slave system, the log file shows it still using the master's user name, which if had been a dedicated user name for all machines wouldn't have created any problem.Can someone help | 2 |
6,308,899 | 06/10/2011 15:52:28 | 751,581 | 05/13/2011 00:29:57 | 31 | 3 | RequestFactory not creating objects in GAE | My objects are not appearing in the datastore. I am using requestfactory to send objects from android to app engine to be stored in the datastore. On the backend I am using objectify to persist the object.
The strange thing is I have 2 classes. One class works perfectly - the object is persisted. I copied this code directly from the cloudtask example shown at IO 2011. The code for my other object(proxies, requestfactories, locators) is a mirror of the tasks objects code(actually created it with the GAE plugin RPC creator). As far as I can tell they are identical, with the exception of the differences in the objects classes.
When I send a request from android to put the object it goes through, no prob. I look I my server log and there are no errors. But when I look at the datastore view, NOTHING. I'm perplexed right now. My tasks objects show up everytime.
Anyone out there ran into this before? suggestions? Will try to post code soon.
| android | google-app-engine | gae-datastore | requestfactory | objectify | 08/01/2011 05:07:31 | not a real question | RequestFactory not creating objects in GAE
===
My objects are not appearing in the datastore. I am using requestfactory to send objects from android to app engine to be stored in the datastore. On the backend I am using objectify to persist the object.
The strange thing is I have 2 classes. One class works perfectly - the object is persisted. I copied this code directly from the cloudtask example shown at IO 2011. The code for my other object(proxies, requestfactories, locators) is a mirror of the tasks objects code(actually created it with the GAE plugin RPC creator). As far as I can tell they are identical, with the exception of the differences in the objects classes.
When I send a request from android to put the object it goes through, no prob. I look I my server log and there are no errors. But when I look at the datastore view, NOTHING. I'm perplexed right now. My tasks objects show up everytime.
Anyone out there ran into this before? suggestions? Will try to post code soon.
| 1 |
6,483,969 | 06/26/2011 12:39:40 | 706,058 | 04/13/2011 12:41:34 | 30 | 0 | Jquery: delay event call in widget | I can't find out how to delay an event handler for a widget.
I bind the event like this:
enable: function () {
this.options.isEnabled = true;
this.element.bind("keyup", $.proxy(this, "_populateList"));
},
I want to call "_populateList" with a delay. but my attempts with setTimeout are not working.
The "_populateList":
_populateList: function (event) {
var that = this;
// do my stuffs
}
Thanks | jquery | event-handling | delay | null | null | null | open | Jquery: delay event call in widget
===
I can't find out how to delay an event handler for a widget.
I bind the event like this:
enable: function () {
this.options.isEnabled = true;
this.element.bind("keyup", $.proxy(this, "_populateList"));
},
I want to call "_populateList" with a delay. but my attempts with setTimeout are not working.
The "_populateList":
_populateList: function (event) {
var that = this;
// do my stuffs
}
Thanks | 0 |
9,749,505 | 03/17/2012 11:09:23 | 1,195,336 | 02/07/2012 17:58:04 | 6 | 2 | Numeric vs AlphaNumeric URL | What is the difference between...
`http://mysite.com/12345`
and
`http://mysite.com/an6`
I am wondering because it would be easier to handle everything as numbers and I still see no reason to move from numbers to alpha numeric. | php | apache | url | null | null | 03/19/2012 04:22:07 | not a real question | Numeric vs AlphaNumeric URL
===
What is the difference between...
`http://mysite.com/12345`
and
`http://mysite.com/an6`
I am wondering because it would be easier to handle everything as numbers and I still see no reason to move from numbers to alpha numeric. | 1 |
11,300,929 | 07/02/2012 20:47:51 | 1,497,064 | 07/02/2012 20:03:04 | 1 | 0 | Wordpress cache plugin for middle traffic,shared host | which plugin can be better for me? Thanks... For a news wordpress blog...
Host lite speed base,not apache.
Thanks for anwers...
Quick Cache
Hyper Cache
Lite Cache... | wordpress | wordpress-plugin | null | null | null | 07/03/2012 11:51:43 | not constructive | Wordpress cache plugin for middle traffic,shared host
===
which plugin can be better for me? Thanks... For a news wordpress blog...
Host lite speed base,not apache.
Thanks for anwers...
Quick Cache
Hyper Cache
Lite Cache... | 4 |
5,988,543 | 05/13/2011 07:17:14 | 735,960 | 05/03/2011 10:38:38 | 89 | 14 | Does my open id change over time? | I'm using open id for authentication to my application. And i'm using client's open id uri to identify them. But i figured out that open id uris change over time. Is it usual or is it about open id configuration of providers? | openid | openid-provider | null | null | null | null | open | Does my open id change over time?
===
I'm using open id for authentication to my application. And i'm using client's open id uri to identify them. But i figured out that open id uris change over time. Is it usual or is it about open id configuration of providers? | 0 |
315,997 | 11/25/2008 00:34:03 | 2,147 | 08/20/2008 15:14:13 | 5,953 | 205 | When is overengineering desirable? | I just got my copy of Code Complete by Steve McConnell, and there's one area I'm a bit confused about. On page 51, he says:
> Robustness is the ability of a system to continue to run after it detects an error. Often an architecture specifies a more robust system than that specified by the requirements. One reason is that a system composed of many parts that are minimally robust might be less robust than is required overall. In software, the chain isn't as strong as its weakest link; it's as weak as all the weak links multiplied together. The architecture should clearly indicate whether programmers should err on the side of overengineering or on the side of doing the simplest thing that works.
(note that the text above should be covered under fair use and thus not break any copyrights)
I'm a bit confused as to what McConnell means here as he doesn't ever elaborate on the subject (as far as I can tell). Is he trying to say that overengineering is good in the context of handling errors or is he saying something else?
Steve McConnell (2004). *Code Complete*. Redmond: Microsoft Press. | language-agnostic | code-complete | overengineering | null | null | 04/05/2012 13:34:58 | not constructive | When is overengineering desirable?
===
I just got my copy of Code Complete by Steve McConnell, and there's one area I'm a bit confused about. On page 51, he says:
> Robustness is the ability of a system to continue to run after it detects an error. Often an architecture specifies a more robust system than that specified by the requirements. One reason is that a system composed of many parts that are minimally robust might be less robust than is required overall. In software, the chain isn't as strong as its weakest link; it's as weak as all the weak links multiplied together. The architecture should clearly indicate whether programmers should err on the side of overengineering or on the side of doing the simplest thing that works.
(note that the text above should be covered under fair use and thus not break any copyrights)
I'm a bit confused as to what McConnell means here as he doesn't ever elaborate on the subject (as far as I can tell). Is he trying to say that overengineering is good in the context of handling errors or is he saying something else?
Steve McConnell (2004). *Code Complete*. Redmond: Microsoft Press. | 4 |
7,223,625 | 08/28/2011 20:16:01 | 681,962 | 03/29/2011 11:42:00 | 23 | 2 | User Authentication with usb-stick in a Microsoft Active Directory | Is there a way to do a Windows-logon without any password based on a usb-stick token/certificate within a active directory (win 2k8 r2) and open-source-tools?
| windows | authentication | active-directory | null | null | 09/03/2011 02:44:52 | off topic | User Authentication with usb-stick in a Microsoft Active Directory
===
Is there a way to do a Windows-logon without any password based on a usb-stick token/certificate within a active directory (win 2k8 r2) and open-source-tools?
| 2 |
10,344,740 | 04/27/2012 04:30:25 | 1,329,062 | 04/12/2012 12:16:38 | 31 | 1 | Any alternative of secondary indexing in super column family Cassandra | My data model looks like this way
#keyspace_name{
#columnfamily1
{startDate_mobileNo: // row key
{ Call_TYpe: // super column
{ xyz: value
endDate : value;
}
}
}
Now i want to make search result filtering the startDate_mobileNo, Call_TYpe and endDate.
This can be done by making endDate as a secondary index. But secondary indexing in a super column is not possible. So i am unable to figure how to proceed. Yes, i can do the secondary indexing filtering part by filtering result data using simple java coding. But i guess this is not the right idea as in case large data there may be scarcity of memory. So please suggest me some ideas.
Thanks In Advance | cassandra | filtering | super | hector | null | null | open | Any alternative of secondary indexing in super column family Cassandra
===
My data model looks like this way
#keyspace_name{
#columnfamily1
{startDate_mobileNo: // row key
{ Call_TYpe: // super column
{ xyz: value
endDate : value;
}
}
}
Now i want to make search result filtering the startDate_mobileNo, Call_TYpe and endDate.
This can be done by making endDate as a secondary index. But secondary indexing in a super column is not possible. So i am unable to figure how to proceed. Yes, i can do the secondary indexing filtering part by filtering result data using simple java coding. But i guess this is not the right idea as in case large data there may be scarcity of memory. So please suggest me some ideas.
Thanks In Advance | 0 |
7,303,207 | 09/05/2011 01:30:14 | 262,983 | 01/31/2010 16:54:29 | 889 | 60 | Rails validation prevent email addresses and phone numbers | I am looking for a way in Rails (2.3.9) to PREVENT users from entering email addresses, and phone numbers of as many formats as possible. I have a textbox, and I do not want users to be able to submit email addresses or phone numbers..
Any ideas? | ruby-on-rails | forms | validation | null | null | null | open | Rails validation prevent email addresses and phone numbers
===
I am looking for a way in Rails (2.3.9) to PREVENT users from entering email addresses, and phone numbers of as many formats as possible. I have a textbox, and I do not want users to be able to submit email addresses or phone numbers..
Any ideas? | 0 |
8,066,725 | 11/09/2011 14:48:27 | 637,840 | 02/28/2011 14:38:12 | 65 | 5 | Issue with SQL Server Linked Servers and MSDTC | I´m having some problem while calling a remote stored procedure from a linked server in SQL Server.
I´m getting this error:
"Import of MSDTC transaction failed: Result Code = 0x8004d01f."
I´ve already configured the MSDTC security settings, but I can´t get this transaction going.
Both OS are W2K3 R2, one side is an SQL2005, and the other is an SQL 2000
Do you have any idea of what might be going on?
Thanks you for your help. | sql-server | msdtc | null | null | null | 11/10/2011 08:24:34 | off topic | Issue with SQL Server Linked Servers and MSDTC
===
I´m having some problem while calling a remote stored procedure from a linked server in SQL Server.
I´m getting this error:
"Import of MSDTC transaction failed: Result Code = 0x8004d01f."
I´ve already configured the MSDTC security settings, but I can´t get this transaction going.
Both OS are W2K3 R2, one side is an SQL2005, and the other is an SQL 2000
Do you have any idea of what might be going on?
Thanks you for your help. | 2 |
5,961,692 | 05/11/2011 09:00:15 | 134,713 | 07/08/2009 05:51:58 | 3,497 | 126 | problem in scripting | when i am executing this on the command line:
awk 'BEGIN{OFS=FS=","}$3~/^353/{print}' axeM10_20110510100219_59.DAT_353 >log
it executes vey nicely without taking much time and instantly gives me the output file.
but when i am including this in a shell script :
#!/usr/bin/ksh
for i in *.DAT_353
do
awk 'BEGIN{OFS=FS=","}$3~/^353/{print}' ${i} > ${i}_changed >/dev/null
done
exit
the script is generating a 0 byte files.
may i know what is the problem here?
| shell | unix | ksh | null | null | null | open | problem in scripting
===
when i am executing this on the command line:
awk 'BEGIN{OFS=FS=","}$3~/^353/{print}' axeM10_20110510100219_59.DAT_353 >log
it executes vey nicely without taking much time and instantly gives me the output file.
but when i am including this in a shell script :
#!/usr/bin/ksh
for i in *.DAT_353
do
awk 'BEGIN{OFS=FS=","}$3~/^353/{print}' ${i} > ${i}_changed >/dev/null
done
exit
the script is generating a 0 byte files.
may i know what is the problem here?
| 0 |
4,958,066 | 02/10/2011 14:05:57 | 605,818 | 02/07/2011 00:47:58 | 49 | 0 | Add 0's to dates where it is missing in c#? | I have a string with a value in the format of
dd/mm/yyyy
Now I want to compare that to another string and check if they are equal, the other string can have the value of
dd/mm/yyyy
or sometimes when the day is between 1 and 9:
d/mm/yyyy
Sometimes when the month is between 1 and 9:
dd/m/yyyy
So there are a couple of instances where the string isn't equal but the actual date is.
First I only saw that in some cases when the day is between 1-9 it doesn't start with a zero so I did:
createdDate = dateField.value.ToString().Substring(0, 10);
createdDate = createdDate.Trim();
if (createdDate.Length == 9)
createdDate = "0" + createdDate;
but then I saw that it can be the same for month so there must be a better way to check this? | c# | null | null | null | null | null | open | Add 0's to dates where it is missing in c#?
===
I have a string with a value in the format of
dd/mm/yyyy
Now I want to compare that to another string and check if they are equal, the other string can have the value of
dd/mm/yyyy
or sometimes when the day is between 1 and 9:
d/mm/yyyy
Sometimes when the month is between 1 and 9:
dd/m/yyyy
So there are a couple of instances where the string isn't equal but the actual date is.
First I only saw that in some cases when the day is between 1-9 it doesn't start with a zero so I did:
createdDate = dateField.value.ToString().Substring(0, 10);
createdDate = createdDate.Trim();
if (createdDate.Length == 9)
createdDate = "0" + createdDate;
but then I saw that it can be the same for month so there must be a better way to check this? | 0 |
7,175,987 | 08/24/2011 13:11:58 | 711,012 | 04/16/2011 09:23:20 | 6 | 0 | A minimization problem seems to be NP-Complete | We are given an nx(n+k) matrix A, with entries in GF(2), of the form A=(In|B) where In is a nxn identity matrix where the matrix B has no non-zero rows or columns.
The problem at hand is to partition the columns of A into atmost m subsets each of size atmost b (so mb >= n+k) with the following property: the removal of any single one of the subsets of columns in the partition leaves us a matrix A′ that is of full rank n.
Now, it may happen that it is not possible by any means to partition the columns such that the above property holds i.e. there is at least one subset in all possible partitions whose removal leaves us a matrix that is of rank less than n.
Then the objective of the problem is to relax the design goal somewhat and offer as an alternative goal to minimize the number of 'critical' subsets of columns whose removal violates the rank criterion
The problem is a minimization problem and it seems to be NP-Complete. It is not clear from which NP-complete problem we should try to reduce.
| np-complete | null | null | null | null | 08/25/2011 22:32:02 | off topic | A minimization problem seems to be NP-Complete
===
We are given an nx(n+k) matrix A, with entries in GF(2), of the form A=(In|B) where In is a nxn identity matrix where the matrix B has no non-zero rows or columns.
The problem at hand is to partition the columns of A into atmost m subsets each of size atmost b (so mb >= n+k) with the following property: the removal of any single one of the subsets of columns in the partition leaves us a matrix A′ that is of full rank n.
Now, it may happen that it is not possible by any means to partition the columns such that the above property holds i.e. there is at least one subset in all possible partitions whose removal leaves us a matrix that is of rank less than n.
Then the objective of the problem is to relax the design goal somewhat and offer as an alternative goal to minimize the number of 'critical' subsets of columns whose removal violates the rank criterion
The problem is a minimization problem and it seems to be NP-Complete. It is not clear from which NP-complete problem we should try to reduce.
| 2 |
5,895,485 | 05/05/2011 09:32:01 | 647,924 | 03/07/2011 09:59:48 | 53 | 2 | is plone 4.1 (almost) ready for production? | as suggested [here][1] I'm going to try plone.app.theming which works with "Plone 4.1 or later".
The question is: how much far from a usable production version is plone 4.1 (currently 4.1b2)?
I had a look at the [bugs' list][2] and it seems that there are no major blockers for that. Is that true?
[1]: http://stackoverflow.com/questions/5882468/collective-xdv-define-an-alternative-theme-breaks-transform-for-default-theme
[2]: http://dev.plone.org/plone/query?status=assigned&status=new&status=reopened&group=status&milestone=4.1 | plone | null | null | null | null | 05/07/2011 01:32:48 | off topic | is plone 4.1 (almost) ready for production?
===
as suggested [here][1] I'm going to try plone.app.theming which works with "Plone 4.1 or later".
The question is: how much far from a usable production version is plone 4.1 (currently 4.1b2)?
I had a look at the [bugs' list][2] and it seems that there are no major blockers for that. Is that true?
[1]: http://stackoverflow.com/questions/5882468/collective-xdv-define-an-alternative-theme-breaks-transform-for-default-theme
[2]: http://dev.plone.org/plone/query?status=assigned&status=new&status=reopened&group=status&milestone=4.1 | 2 |
11,588,468 | 07/21/2012 00:20:49 | 1,493,728 | 07/01/2012 01:25:28 | 16 | 3 | CryEngine 3 vs latest UnrealEngine which is better for me? | I know this sort of question is very grey and opinion based, but I'm just killing myself thinking about which one is better. I'm planning to make a game by either using one of these engines, and looking at the forums, I can't seem to figure out which one is better.
I have also tried their website, but being a novice, I don't know which options will help me more.
To me, I am planning to make a, relatively nice looking game, using an engine that can provide me with dynamic graphic functions easily. I also like c++ very, very much due to its flexibility. Although I have heard that Unreal Engine is more flexible, but it uses unrealscript, which is a big drawback in my opinion.
Flexibility is more of an important factor than graphics, so which one is better for me?
-- I can just feel how many negative points I'm going to get from this post XC-- | c++ | unreal-development-kit | unrealscript | null | null | 07/21/2012 01:31:28 | not constructive | CryEngine 3 vs latest UnrealEngine which is better for me?
===
I know this sort of question is very grey and opinion based, but I'm just killing myself thinking about which one is better. I'm planning to make a game by either using one of these engines, and looking at the forums, I can't seem to figure out which one is better.
I have also tried their website, but being a novice, I don't know which options will help me more.
To me, I am planning to make a, relatively nice looking game, using an engine that can provide me with dynamic graphic functions easily. I also like c++ very, very much due to its flexibility. Although I have heard that Unreal Engine is more flexible, but it uses unrealscript, which is a big drawback in my opinion.
Flexibility is more of an important factor than graphics, so which one is better for me?
-- I can just feel how many negative points I'm going to get from this post XC-- | 4 |
3,088,632 | 06/21/2010 21:25:21 | 322,995 | 04/22/2010 07:17:27 | 3 | 1 | Displaying line breaks in XML using ASP.NET with XSLT | I have a problem with my XML that I am trying to display on my ASP.NET page that I could do with some help with.
What I would like to do is display it on a multi-line so I have an XML file that looks like this:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="News.xslt" ?>
<newslist>
<news>
<date>20th June 2010</date>
<detail>Detail line 1.
Detail Line 2</detail>
</news>
<news>
<date>18th June 2010</date>
<detail>Some more details</detail>
</news>
</newslist>
And I have an XSLT file that looks like this:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="/">
<HTML>
<BODY>
<xsl:for-each select="newslist/news">
<xsl:sort select="date" order="descending"/>
<br />
<h3><xsl:value-of select="date" /></h3>
<ul>
<p><xsl:value-of select="detail" /></p>
</ul>
</xsl:for-each>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
When it displays the first detail line everything is on the same line. I've done some digging about and I have tried the following:
1. xml:space="preserve" in the XSLT file
2. <![CDATA[]]> in the XML file
3. `<br />`
4. I've even tried leaving it as it is.
I am using Microsoft Visual Web Developer 2010. The control I am using is the XML control under the standard tab, and the language I am using is C#, if that helps any.
If this has already been answered and I haven't found it yet can you please point me at it.
Thanks for your help.
| c# | asp.net | xml | xslt | line-breaks | null | open | Displaying line breaks in XML using ASP.NET with XSLT
===
I have a problem with my XML that I am trying to display on my ASP.NET page that I could do with some help with.
What I would like to do is display it on a multi-line so I have an XML file that looks like this:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="News.xslt" ?>
<newslist>
<news>
<date>20th June 2010</date>
<detail>Detail line 1.
Detail Line 2</detail>
</news>
<news>
<date>18th June 2010</date>
<detail>Some more details</detail>
</news>
</newslist>
And I have an XSLT file that looks like this:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="/">
<HTML>
<BODY>
<xsl:for-each select="newslist/news">
<xsl:sort select="date" order="descending"/>
<br />
<h3><xsl:value-of select="date" /></h3>
<ul>
<p><xsl:value-of select="detail" /></p>
</ul>
</xsl:for-each>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
When it displays the first detail line everything is on the same line. I've done some digging about and I have tried the following:
1. xml:space="preserve" in the XSLT file
2. <![CDATA[]]> in the XML file
3. `<br />`
4. I've even tried leaving it as it is.
I am using Microsoft Visual Web Developer 2010. The control I am using is the XML control under the standard tab, and the language I am using is C#, if that helps any.
If this has already been answered and I haven't found it yet can you please point me at it.
Thanks for your help.
| 0 |
10,757,563 | 05/25/2012 15:50:32 | 1,202,406 | 02/10/2012 16:04:02 | 21 | 0 | Which Linux distro is best for me? | I need to use Linux for Web Development, I also want to manage a Linux server. So which is the best option for me:
- Use one Linux distro for programming, and another for server.
- Use one Linux distro for both purposes, if so, which Linux distro is good for both purposes?
Anybody can give me some suggestions? | linux | null | null | null | null | 05/25/2012 15:59:47 | not constructive | Which Linux distro is best for me?
===
I need to use Linux for Web Development, I also want to manage a Linux server. So which is the best option for me:
- Use one Linux distro for programming, and another for server.
- Use one Linux distro for both purposes, if so, which Linux distro is good for both purposes?
Anybody can give me some suggestions? | 4 |
670,015 | 03/21/2009 21:14:48 | 63,779 | 02/08/2009 00:47:27 | 18 | 0 | NSTextField with "padding" on the right | I am trying to get the "remaining chars notice" to show up within my rounded NSTextField and I got it with two NSTextFields with help of the Interface Builder and it already looks like that:
![alt text][1]
But when I write a little bit more it looks like that:
![alt text][2]
[1]: http://jeenaparadies.net/t/s/Twittia-NSTextField1.png
[2]: http://jeenaparadies.net/t/s/Twittia-NSTextField2.png
The only thing I could think of is to subclass NSTextField and do something with it so it does not draw text under the number but I have no idea how to begin and need really some help with it. | cocoa | objective-c | nstextfield | null | null | null | open | NSTextField with "padding" on the right
===
I am trying to get the "remaining chars notice" to show up within my rounded NSTextField and I got it with two NSTextFields with help of the Interface Builder and it already looks like that:
![alt text][1]
But when I write a little bit more it looks like that:
![alt text][2]
[1]: http://jeenaparadies.net/t/s/Twittia-NSTextField1.png
[2]: http://jeenaparadies.net/t/s/Twittia-NSTextField2.png
The only thing I could think of is to subclass NSTextField and do something with it so it does not draw text under the number but I have no idea how to begin and need really some help with it. | 0 |
2,156,331 | 01/28/2010 16:59:19 | 106,955 | 05/14/2009 10:16:45 | 6 | 0 | Convert/translate tbl lib idl | This mite be a stupid question.
I have a lib file cemapi.lib that allows c++ devs to use mapi on winCE.
What i need is a tlb file so i can reference this in c#. Normally i would find the IDL and use midl to make a tlb but guess what there is no IDL.
So is there a way to get
lib to tlb
lib to Idl
thanks | c# | wince | null | null | null | null | open | Convert/translate tbl lib idl
===
This mite be a stupid question.
I have a lib file cemapi.lib that allows c++ devs to use mapi on winCE.
What i need is a tlb file so i can reference this in c#. Normally i would find the IDL and use midl to make a tlb but guess what there is no IDL.
So is there a way to get
lib to tlb
lib to Idl
thanks | 0 |
4,078,398 | 11/02/2010 13:58:43 | 212,692 | 11/17/2009 08:39:09 | 84 | 3 | asort not working on my server | I just found that **asort** (PHP sorting maintaining keys) is **not working** on my server.
When I use a sample array to asort in codepad [http://codepad.org/], it shows correct result but when I use same array to asort in my script on my server, it is not working.
Please help me out.
Thanks. | php | arrays | null | null | null | 11/04/2010 02:24:14 | not a real question | asort not working on my server
===
I just found that **asort** (PHP sorting maintaining keys) is **not working** on my server.
When I use a sample array to asort in codepad [http://codepad.org/], it shows correct result but when I use same array to asort in my script on my server, it is not working.
Please help me out.
Thanks. | 1 |
352,896 | 12/09/2008 14:30:36 | 11,994 | 09/16/2008 12:47:20 | 86 | 5 | Qt commercial licenses? | Does anyone know the details of the Qt commercial license? Cost? Hidden policy gotchas, single and multi platform etc?
Forgive my laziness, however their website offers few details and I thought I would ask here about anyone's specific experiences prior to submitting to the sales pitch.
I think they might sell more licenses if they decreased the margin a bit...
I do like the platform and it has been said that it's worth the expense. Thanks in advance for your thoughts. | qt | qt4 | null | null | null | 10/08/2011 22:50:47 | too localized | Qt commercial licenses?
===
Does anyone know the details of the Qt commercial license? Cost? Hidden policy gotchas, single and multi platform etc?
Forgive my laziness, however their website offers few details and I thought I would ask here about anyone's specific experiences prior to submitting to the sales pitch.
I think they might sell more licenses if they decreased the margin a bit...
I do like the platform and it has been said that it's worth the expense. Thanks in advance for your thoughts. | 3 |
11,343,046 | 07/05/2012 11:05:40 | 928,017 | 09/04/2011 22:09:49 | 93 | 3 | how to find function name inside swf file | I just have swf file with two on click events, probably and nothing more. There is two buttons and when click on the first one it open some file and that is okay. But second need to open popup window on the page where it's shown. But second won't work at all. I don't know flash and actionscript and honestly don't like it, but must to find solution for this problem.
It seems that function name on the second popup on click event have totally different name and I don't know how to find it.
What I need when user click on it is to run following script and open/close window:
<script language="JavaScript" type="text/javascript">
function open_win() {
prozorotvori=window.open("http://media.radioapatin.com/player/plejer3.html",'','width=150,height=150')
}
function close_win() {
prozorotvori.close();
}
</script>
Any help or advice how to fix this? | flash | actionscript | flash-player | null | null | 07/09/2012 13:40:10 | not a real question | how to find function name inside swf file
===
I just have swf file with two on click events, probably and nothing more. There is two buttons and when click on the first one it open some file and that is okay. But second need to open popup window on the page where it's shown. But second won't work at all. I don't know flash and actionscript and honestly don't like it, but must to find solution for this problem.
It seems that function name on the second popup on click event have totally different name and I don't know how to find it.
What I need when user click on it is to run following script and open/close window:
<script language="JavaScript" type="text/javascript">
function open_win() {
prozorotvori=window.open("http://media.radioapatin.com/player/plejer3.html",'','width=150,height=150')
}
function close_win() {
prozorotvori.close();
}
</script>
Any help or advice how to fix this? | 1 |
10,204,346 | 04/18/2012 06:54:21 | 258,187 | 01/25/2010 06:02:07 | 178 | 2 | How to config devise to make user login after register even without confirm email via email link? | I use devise (2.0.4) to setup user register and sign-in functions. Now I want to make user be able to sign in after sign up. Event a confirmation email send to his email box. Just mark "This user is not confirmed." How to config ? | ruby-on-rails | ruby | devise | null | null | null | open | How to config devise to make user login after register even without confirm email via email link?
===
I use devise (2.0.4) to setup user register and sign-in functions. Now I want to make user be able to sign in after sign up. Event a confirmation email send to his email box. Just mark "This user is not confirmed." How to config ? | 0 |
4,715,325 | 01/17/2011 16:18:01 | 283,538 | 03/01/2010 10:53:04 | 542 | 14 | Ilist<int> -> object[] | What's the simplest way to perform this transformation:
Ilist<int> -> object[]
Thanks.
C | c# | null | null | null | null | null | open | Ilist<int> -> object[]
===
What's the simplest way to perform this transformation:
Ilist<int> -> object[]
Thanks.
C | 0 |
11,546,265 | 07/18/2012 16:40:17 | 158,455 | 08/18/2009 13:24:13 | 1,202 | 22 | Visual Designer for native Win32 Apps | i have been a C# developer for a long-time now so i have huge experience with Winforms. i wanted to start VC++ development so that i can write native apps.
I know C++ very well. The problem is i have made test projects in VS2010, Win32 Application, MFC Applications and all, it doesn't provide a Visual Designer like there is for VC# Winforms and VC++ Winforms as well. i want to have a Visual designer for Native App Development like for Win32 Apps.
- Is it possible?
- How to do it?
| c++ | visualdesigner | null | null | null | null | open | Visual Designer for native Win32 Apps
===
i have been a C# developer for a long-time now so i have huge experience with Winforms. i wanted to start VC++ development so that i can write native apps.
I know C++ very well. The problem is i have made test projects in VS2010, Win32 Application, MFC Applications and all, it doesn't provide a Visual Designer like there is for VC# Winforms and VC++ Winforms as well. i want to have a Visual designer for Native App Development like for Win32 Apps.
- Is it possible?
- How to do it?
| 0 |
7,610,389 | 09/30/2011 12:30:38 | 193,122 | 10/20/2009 13:35:53 | 242 | 20 | .NET 3.5 application running a .NET 4.0 API | I'm producing an API for soem common applicaitons. How can I make sure that they applications that were built under 3.5 can run the new 4.0 api?
If there something in the web.configs that can be used? The 4.0 framework has been installed on the servers, so that should not be a factor. | c# | .net | null | null | null | 09/30/2011 14:00:39 | not a real question | .NET 3.5 application running a .NET 4.0 API
===
I'm producing an API for soem common applicaitons. How can I make sure that they applications that were built under 3.5 can run the new 4.0 api?
If there something in the web.configs that can be used? The 4.0 framework has been installed on the servers, so that should not be a factor. | 1 |
8,519,753 | 12/15/2011 11:57:34 | 985,148 | 10/08/2011 07:45:43 | 1 | 0 | in iPad these methods are not working properly...specially for the panPiece, scalePiece & rotatePiece methods | - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
if (gestureRecognizer.view != imageSelectedCat)
return NO;
if (gestureRecognizer.view != otherGestureRecognizer.view)
return NO;
if ([gestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]] || [otherGestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]])
return NO;
return YES;
}
- (void)addGestureRecognizersToPiece:(UIView *)piece
{
UIRotationGestureRecognizer *rotationGesture = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(rotatePiece:)];
[piece addGestureRecognizer:rotationGesture];
[rotationGesture release];
UIPinchGestureRecognizer *pinchGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(scalePiece:)];
[pinchGesture setDelegate:self];
[piece addGestureRecognizer:pinchGesture];
[pinchGesture release];
UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panPiece:)];
[panGesture setDelegate:self];
[piece addGestureRecognizer:panGesture];
[panGesture release];
}
- (void)rotatePiece:(UIRotationGestureRecognizer *)gestureRecognizer
{
[self adjustAnchorPointForGestureRecognizer:gestureRecognizer];
if ([gestureRecognizer state] == UIGestureRecognizerStateBegan || [gestureRecognizer state] == UIGestureRecognizerStateChanged)
{
[gestureRecognizer view].transform = CGAffineTransformRotate([[gestureRecognizer view] transform], [gestureRecognizer rotation]);
[gestureRecognizer setRotation:0];
}
}
- (void)scalePiece:(UIPinchGestureRecognizer *)gestureRecognizer
{
[self adjustAnchorPointForGestureRecognizer:gestureRecognizer];
if ([gestureRecognizer state] == UIGestureRecognizerStateBegan || [gestureRecognizer state] == UIGestureRecognizerStateChanged)
{
[gestureRecognizer view].transform = CGAffineTransformScale([[gestureRecognizer view] transform], [gestureRecognizer scale], [gestureRecognizer scale]);
[gestureRecognizer setScale:1];
}
}
- (void)panPiece:(UIPanGestureRecognizer *)gestureRecognizer
{
UIView *piece = [gestureRecognizer view];
[self adjustAnchorPointForGestureRecognizer:gestureRecognizer];
if ([gestureRecognizer state] == UIGestureRecognizerStateBegan || [gestureRecognizer state] == UIGestureRecognizerStateChanged)
{
CGPoint translation = [gestureRecognizer translationInView:[piece superview]];
[piece setCenter:CGPointMake([piece center].x + translation.x, [piece center].y + translation.y)];
[gestureRecognizer setTranslation:CGPointZero inView:[piece superview]];
}
}
- (void)adjustAnchorPointForGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
{
if (gestureRecognizer.state == UIGestureRecognizerStateBegan)
{
UIView *piece = gestureRecognizer.view;
CGPoint locationInView = [gestureRecognizer locationInView:piece];
CGPoint locationInSuperview = [gestureRecognizer locationInView:piece.superview];
piece.layer.anchorPoint = CGPointMake(locationInView.x / piece.bounds.size.width, locationInView.y / piece.bounds.size.height);
piece.center = locationInSuperview;
}
}
I have done this code for the Gesture Recognition...but i am not able to do change position after change once in the iPad.
Forst time Zoomin-Zoomout, Rotation, Position change all are working but then none of these are working.
If i am doing any mistake then suggest me for the above mentioned problem.
This is working in iPhone properly. | ipad | null | null | null | null | 12/16/2011 14:40:59 | not a real question | in iPad these methods are not working properly...specially for the panPiece, scalePiece & rotatePiece methods
===
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
if (gestureRecognizer.view != imageSelectedCat)
return NO;
if (gestureRecognizer.view != otherGestureRecognizer.view)
return NO;
if ([gestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]] || [otherGestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]])
return NO;
return YES;
}
- (void)addGestureRecognizersToPiece:(UIView *)piece
{
UIRotationGestureRecognizer *rotationGesture = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(rotatePiece:)];
[piece addGestureRecognizer:rotationGesture];
[rotationGesture release];
UIPinchGestureRecognizer *pinchGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(scalePiece:)];
[pinchGesture setDelegate:self];
[piece addGestureRecognizer:pinchGesture];
[pinchGesture release];
UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panPiece:)];
[panGesture setDelegate:self];
[piece addGestureRecognizer:panGesture];
[panGesture release];
}
- (void)rotatePiece:(UIRotationGestureRecognizer *)gestureRecognizer
{
[self adjustAnchorPointForGestureRecognizer:gestureRecognizer];
if ([gestureRecognizer state] == UIGestureRecognizerStateBegan || [gestureRecognizer state] == UIGestureRecognizerStateChanged)
{
[gestureRecognizer view].transform = CGAffineTransformRotate([[gestureRecognizer view] transform], [gestureRecognizer rotation]);
[gestureRecognizer setRotation:0];
}
}
- (void)scalePiece:(UIPinchGestureRecognizer *)gestureRecognizer
{
[self adjustAnchorPointForGestureRecognizer:gestureRecognizer];
if ([gestureRecognizer state] == UIGestureRecognizerStateBegan || [gestureRecognizer state] == UIGestureRecognizerStateChanged)
{
[gestureRecognizer view].transform = CGAffineTransformScale([[gestureRecognizer view] transform], [gestureRecognizer scale], [gestureRecognizer scale]);
[gestureRecognizer setScale:1];
}
}
- (void)panPiece:(UIPanGestureRecognizer *)gestureRecognizer
{
UIView *piece = [gestureRecognizer view];
[self adjustAnchorPointForGestureRecognizer:gestureRecognizer];
if ([gestureRecognizer state] == UIGestureRecognizerStateBegan || [gestureRecognizer state] == UIGestureRecognizerStateChanged)
{
CGPoint translation = [gestureRecognizer translationInView:[piece superview]];
[piece setCenter:CGPointMake([piece center].x + translation.x, [piece center].y + translation.y)];
[gestureRecognizer setTranslation:CGPointZero inView:[piece superview]];
}
}
- (void)adjustAnchorPointForGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
{
if (gestureRecognizer.state == UIGestureRecognizerStateBegan)
{
UIView *piece = gestureRecognizer.view;
CGPoint locationInView = [gestureRecognizer locationInView:piece];
CGPoint locationInSuperview = [gestureRecognizer locationInView:piece.superview];
piece.layer.anchorPoint = CGPointMake(locationInView.x / piece.bounds.size.width, locationInView.y / piece.bounds.size.height);
piece.center = locationInSuperview;
}
}
I have done this code for the Gesture Recognition...but i am not able to do change position after change once in the iPad.
Forst time Zoomin-Zoomout, Rotation, Position change all are working but then none of these are working.
If i am doing any mistake then suggest me for the above mentioned problem.
This is working in iPhone properly. | 1 |
7,509,865 | 09/22/2011 05:19:50 | 72,592 | 03/02/2009 01:09:47 | 117 | 3 | css float not behaving in IE7 | Hi I know IE7 css float issues have been asked here a few times but I still can't resolve my issue.
Please have a look at [this page][1]. I'm using IE9 in IE7 mode and have changed the widths of the divs and the items inside them, checked the clear:lefts and the heights but the main div won't float to the left of the nav.
Can anyone spot the cause?
[1]: http://www.suzephotography.com.au/dev/index.php?option=com_myblog&Itemid=21 "this page" | css | internet-explorer-7 | float | null | null | 06/12/2012 13:52:46 | not a real question | css float not behaving in IE7
===
Hi I know IE7 css float issues have been asked here a few times but I still can't resolve my issue.
Please have a look at [this page][1]. I'm using IE9 in IE7 mode and have changed the widths of the divs and the items inside them, checked the clear:lefts and the heights but the main div won't float to the left of the nav.
Can anyone spot the cause?
[1]: http://www.suzephotography.com.au/dev/index.php?option=com_myblog&Itemid=21 "this page" | 1 |
11,241,589 | 06/28/2012 09:22:26 | 1,405,029 | 05/19/2012 11:48:51 | 1 | 0 | How to capture only video from audio-video file using gstreamer | I want to capture only video from Audio-Video file that file format are .webm and i am going to convert this into .mp4 format which will be consist of only video file.
gst-launch filesrc location=/home/project/teri_meri_kahaani_theatrical_trailer_2.webm ! decodebin2 ! ffenc_mpeg2video ! mpegvideoparse ! queue ! filesink location=/home/project/h.mp4
I used this pipeline but its not working. please tell me how to do this ...
Thank You
harshal | c | gstreamer | null | null | null | null | open | How to capture only video from audio-video file using gstreamer
===
I want to capture only video from Audio-Video file that file format are .webm and i am going to convert this into .mp4 format which will be consist of only video file.
gst-launch filesrc location=/home/project/teri_meri_kahaani_theatrical_trailer_2.webm ! decodebin2 ! ffenc_mpeg2video ! mpegvideoparse ! queue ! filesink location=/home/project/h.mp4
I used this pipeline but its not working. please tell me how to do this ...
Thank You
harshal | 0 |
1,072,216 | 07/02/2009 02:53:57 | 117,055 | 06/04/2009 04:04:21 | 68 | 6 | .Net developer applying for a Java job | I've been developing winform/winservices/webservices for most of my career using vb (before .net), then strictly c# since it was released. Now, I've recently lost my job and starting to think I may not be able to get a job in my town - Las Vegas. I'd like to be able to apply for some of the Java jobs to increase my chance of getting employed (plus, I wouldn't mind the change).
I've started playing with Java and as I've heard many times, it is very similar to c#. However, the language is just a small part of the whole equation. There is learning all of the little tricks, oddities, and gotchas that can really impact development time. So, with that, how realistic is it to think that I might be able to learn Java and jump into a mid-senior level Java position in just a few months if I work hard enough at it? Especially when most of those positions say "3-5 yrs of java experience"
All feedback is appreciated, especially from those who have done what I just said, either c#->java or vice-versa. | c# | java | .net | career-development | null | 07/04/2009 22:04:46 | not a real question | .Net developer applying for a Java job
===
I've been developing winform/winservices/webservices for most of my career using vb (before .net), then strictly c# since it was released. Now, I've recently lost my job and starting to think I may not be able to get a job in my town - Las Vegas. I'd like to be able to apply for some of the Java jobs to increase my chance of getting employed (plus, I wouldn't mind the change).
I've started playing with Java and as I've heard many times, it is very similar to c#. However, the language is just a small part of the whole equation. There is learning all of the little tricks, oddities, and gotchas that can really impact development time. So, with that, how realistic is it to think that I might be able to learn Java and jump into a mid-senior level Java position in just a few months if I work hard enough at it? Especially when most of those positions say "3-5 yrs of java experience"
All feedback is appreciated, especially from those who have done what I just said, either c#->java or vice-versa. | 1 |
8,403,360 | 12/06/2011 16:30:33 | 1,065,220 | 11/25/2011 08:09:51 | 6 | 0 | Isometric grid android | can anyone please help me with the basic idea for creating isometric grid for developing 2d game in android
something like http://mathforum.org/workshops/sum98/participants/sanders/isomgrid.gif
any help is appreciated
| android | isometric | null | null | null | 12/06/2011 17:13:26 | not a real question | Isometric grid android
===
can anyone please help me with the basic idea for creating isometric grid for developing 2d game in android
something like http://mathforum.org/workshops/sum98/participants/sanders/isomgrid.gif
any help is appreciated
| 1 |
9,293,646 | 02/15/2012 12:45:28 | 1,211,293 | 02/15/2012 12:12:50 | 1 | 0 | Can compass merge .css files? | I am trying to find out if Compass can merge .css files rather than using a third party tool to merge the .css files after Compass has compiled the .scss files. I have looked around the web and on here but nothing so far. I thought the config.rb may have an option for this but all I found is compress feature.
Anyone tried this or have a found a third party tool that works well with compass?
Thanks | css3 | sass | compass-css | null | null | null | open | Can compass merge .css files?
===
I am trying to find out if Compass can merge .css files rather than using a third party tool to merge the .css files after Compass has compiled the .scss files. I have looked around the web and on here but nothing so far. I thought the config.rb may have an option for this but all I found is compress feature.
Anyone tried this or have a found a third party tool that works well with compass?
Thanks | 0 |
5,771,414 | 04/24/2011 15:30:07 | 194,594 | 10/22/2009 13:43:19 | 172 | 4 | Opening a window application through php's `exec` | You have a `php` web application installed on a Windows desktop machine and used locally.
How could you open an application (say `notepad.exe`) when the user accesses a specific webpage ?
Of course, `exec` works for command-line applications, but not for graphical ones, since the commands are executed as the php/apache user.
So the question could be rephrased as **How can one use `exec` as a different user ?**
There isn't much security concerns since everthing is used only locally. | php | windows | exec | null | null | null | open | Opening a window application through php's `exec`
===
You have a `php` web application installed on a Windows desktop machine and used locally.
How could you open an application (say `notepad.exe`) when the user accesses a specific webpage ?
Of course, `exec` works for command-line applications, but not for graphical ones, since the commands are executed as the php/apache user.
So the question could be rephrased as **How can one use `exec` as a different user ?**
There isn't much security concerns since everthing is used only locally. | 0 |
8,590,622 | 12/21/2011 13:33:56 | 872,319 | 08/01/2011 06:55:54 | 166 | 0 | How to locate an element without specifying its type in Watir? | How can I locate an element just by specifying the text property, whether its a link or a button or something else.
In jquery, we can write:
$('*').filter(function(){return $(this).text()=="some text";});
How can I achieve the same goal in Watir? | automation | automated-tests | watir | null | null | null | open | How to locate an element without specifying its type in Watir?
===
How can I locate an element just by specifying the text property, whether its a link or a button or something else.
In jquery, we can write:
$('*').filter(function(){return $(this).text()=="some text";});
How can I achieve the same goal in Watir? | 0 |
4,676,864 | 01/13/2011 04:44:06 | 573,712 | 01/13/2011 04:44:06 | 1 | 0 | Nasty mono bug with H# | I have this monstrous f# 2.0 program
My mono version is
Mono JIT compiler version 2.9 (master/f593354 Sun Dec 26 03:15:55 EET 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
//---------------------------------------------
module Main
let rec gcd x y =
if y = 0 then x
else gcd y (x%y)
let main =
printfn "%i" (gcd 4 2)
main
//-----------------------------------------------
And the problem is that output from running the program is as follows:
Stacktrace:
at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_parameter_info (intptr,System.Reflection.MemberInfo) <0xffffffff>
at System.Reflection.MonoMethodInfo.GetParametersInfo (intptr,System.Reflection.MemberInfo) <0x00013>
at System.Reflection.MonoCMethod.GetParameters () <0x00015>
at System.Reflection.MonoCMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00035>
at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00024>
at System.Reflection.ConstructorInfo.Invoke (object[]) <0x0003f>
at System.Activator.CreateInstance (System.Type,bool) <0x0017c>
at System.Activator.CreateInstance (System.Type) <0x00012>
at Microsoft.FSharp.Reflection.FSharpValue.MakeFunction (System.Type,Microsoft.FSharp.Core.FSharpFunc`2<object, object>) <0x00145>
at Microsoft.FSharp.Core.PrintfImpl.capture@529<b, c, d> (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, System.Tuple`4<b, Microsoft.FSharp.Core.FSharpFunc`2<c, Microsoft.FSharp.Core.Unit>, Microsoft.FSharp.Core.FSharpFunc`2<char, Microsoft.FSharp.Core.Unit>, Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, d>>>,string,int,Microsoft.FSharp.Collections.FSharpList`1<object>,System.Type,int) <0x00147>
at Microsoft.FSharp.Core.PrintfImpl.gprintf<b, c, d, a> (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, System.Tuple`4<b, Microsoft.FSharp.Core.FSharpFunc`2<c, Microsoft.FSharp.Core.Unit>, Microsoft.FSharp.Core.FSharpFunc`2<char, Microsoft.FSharp.Core.Unit>, Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, d>>>,Microsoft.FSharp.Core.PrintfFormat`4<a, b, c, d>) <0x000dd>
at Microsoft.FSharp.Core.PrintfModule.kprintf_imperative<a, b, c> (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, a>,b,Microsoft.FSharp.Core.FSharpFunc`2<char, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Core.PrintfFormat`4<c, b, Microsoft.FSharp.Core.Unit, a>) <0x00058>
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToTextWriterThen<TResult, T> (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, TResult>,System.IO.TextWriter,Microsoft.FSharp.Core.PrintfFormat`4<T, System.IO.TextWriter, Microsoft.FSharp.Core.Unit, TResult>) <0x0004d>
at Microsoft.FSharp.Core.PrintfModule.PrintFormatLineToTextWriter<T> (System.IO.TextWriter,Microsoft.FSharp.Core.PrintfFormat`4<T, System.IO.TextWriter, Microsoft.FSharp.Core.Unit, Microsoft.FSharp.Core.Unit>) <0x0004d>
at <StartupCode$aaa>.$Main.main@ () <0x00042>
Native stacktrace:
mono() [0x80dc13b]
mono() [0x811c65b]
mono() [0x8059a11]
[0x7af40c]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228282]
mono() [0x822991e]
mono() [0x822aa9d]
mono(mono_array_new_specific+0xea) [0x813ba9a]
mono() [0x81c63a1]
mono() [0x8149ac8]
[0xc04328]
[0xc042e4]
[0xc042be]
[0xc0455e]
[0xc0451d]
[0xc044d8]
[0xc0349d]
[0xc0330b]
[0xc02f9e]
[0xbfe960]
[0xbfe6c6]
[0xbfe571]
[0xbfe4de]
[0xbfe44e]
[0xbf9d2b]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
Debug info from gdb:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted
It is a huge problem with mono or f#? By the way, the same function works when using pattern matching instead of "if". | f# | mono | null | null | null | 01/14/2011 07:01:32 | too localized | Nasty mono bug with H#
===
I have this monstrous f# 2.0 program
My mono version is
Mono JIT compiler version 2.9 (master/f593354 Sun Dec 26 03:15:55 EET 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
//---------------------------------------------
module Main
let rec gcd x y =
if y = 0 then x
else gcd y (x%y)
let main =
printfn "%i" (gcd 4 2)
main
//-----------------------------------------------
And the problem is that output from running the program is as follows:
Stacktrace:
at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_parameter_info (intptr,System.Reflection.MemberInfo) <0xffffffff>
at System.Reflection.MonoMethodInfo.GetParametersInfo (intptr,System.Reflection.MemberInfo) <0x00013>
at System.Reflection.MonoCMethod.GetParameters () <0x00015>
at System.Reflection.MonoCMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00035>
at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00024>
at System.Reflection.ConstructorInfo.Invoke (object[]) <0x0003f>
at System.Activator.CreateInstance (System.Type,bool) <0x0017c>
at System.Activator.CreateInstance (System.Type) <0x00012>
at Microsoft.FSharp.Reflection.FSharpValue.MakeFunction (System.Type,Microsoft.FSharp.Core.FSharpFunc`2<object, object>) <0x00145>
at Microsoft.FSharp.Core.PrintfImpl.capture@529<b, c, d> (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, System.Tuple`4<b, Microsoft.FSharp.Core.FSharpFunc`2<c, Microsoft.FSharp.Core.Unit>, Microsoft.FSharp.Core.FSharpFunc`2<char, Microsoft.FSharp.Core.Unit>, Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, d>>>,string,int,Microsoft.FSharp.Collections.FSharpList`1<object>,System.Type,int) <0x00147>
at Microsoft.FSharp.Core.PrintfImpl.gprintf<b, c, d, a> (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, System.Tuple`4<b, Microsoft.FSharp.Core.FSharpFunc`2<c, Microsoft.FSharp.Core.Unit>, Microsoft.FSharp.Core.FSharpFunc`2<char, Microsoft.FSharp.Core.Unit>, Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, d>>>,Microsoft.FSharp.Core.PrintfFormat`4<a, b, c, d>) <0x000dd>
at Microsoft.FSharp.Core.PrintfModule.kprintf_imperative<a, b, c> (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, a>,b,Microsoft.FSharp.Core.FSharpFunc`2<char, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Core.PrintfFormat`4<c, b, Microsoft.FSharp.Core.Unit, a>) <0x00058>
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToTextWriterThen<TResult, T> (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, TResult>,System.IO.TextWriter,Microsoft.FSharp.Core.PrintfFormat`4<T, System.IO.TextWriter, Microsoft.FSharp.Core.Unit, TResult>) <0x0004d>
at Microsoft.FSharp.Core.PrintfModule.PrintFormatLineToTextWriter<T> (System.IO.TextWriter,Microsoft.FSharp.Core.PrintfFormat`4<T, System.IO.TextWriter, Microsoft.FSharp.Core.Unit, Microsoft.FSharp.Core.Unit>) <0x0004d>
at <StartupCode$aaa>.$Main.main@ () <0x00042>
Native stacktrace:
mono() [0x80dc13b]
mono() [0x811c65b]
mono() [0x8059a11]
[0x7af40c]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228214]
mono() [0x8228282]
mono() [0x822991e]
mono() [0x822aa9d]
mono(mono_array_new_specific+0xea) [0x813ba9a]
mono() [0x81c63a1]
mono() [0x8149ac8]
[0xc04328]
[0xc042e4]
[0xc042be]
[0xc0455e]
[0xc0451d]
[0xc044d8]
[0xc0349d]
[0xc0330b]
[0xc02f9e]
[0xbfe960]
[0xbfe6c6]
[0xbfe571]
[0xbfe4de]
[0xbfe44e]
[0xbf9d2b]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
[0x9bf0724]
Debug info from gdb:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted
It is a huge problem with mono or f#? By the way, the same function works when using pattern matching instead of "if". | 3 |
11,143,495 | 06/21/2012 17:26:02 | 1,461,754 | 06/17/2012 11:34:54 | 3 | 0 | How do you calculate FPS in Java (I'm using LWJGL and OpenGL)? | I need to know how to code a FPS calculator for my Java game.
Could you help me?
Sorry I have no code to display, as there are no errors to show.
Thanks and please help me!! | java | fps | null | null | null | 07/09/2012 01:47:44 | not a real question | How do you calculate FPS in Java (I'm using LWJGL and OpenGL)?
===
I need to know how to code a FPS calculator for my Java game.
Could you help me?
Sorry I have no code to display, as there are no errors to show.
Thanks and please help me!! | 1 |
7,282,693 | 09/02/2011 11:22:53 | 788,605 | 06/08/2011 05:18:28 | 23 | 1 | How to store a list in the web sql or any type of storage in the browser | How to store a list in the web sql or any type of storage in the browser,
I have found three ways to store data in the browser, i.e. localstorage,session storage and web sql with html5 so i need to store the java.util.List in the browser and need to modify it at in future so is there any way to do so? | javascript | jquery | html5 | web-sql | web-storage | null | open | How to store a list in the web sql or any type of storage in the browser
===
How to store a list in the web sql or any type of storage in the browser,
I have found three ways to store data in the browser, i.e. localstorage,session storage and web sql with html5 so i need to store the java.util.List in the browser and need to modify it at in future so is there any way to do so? | 0 |
10,116,022 | 04/12/2012 00:54:40 | 1,060,084 | 11/22/2011 15:24:06 | 35 | 0 | Filter the input of a textarea | I have a textare (html).
The user can paste text in it.
Then he could click on a button to filter out the following:
`<a href="` and `<a class="` and `" target="_blank">`
So if any of these terms are found in the text they should be replaced with nothing
Sorry I have no idea how to do that. So I've got nothing...
I know this is not how it works and I am really sorry!! | javascript | jquery | html | filter | textarea | 04/12/2012 13:41:35 | not a real question | Filter the input of a textarea
===
I have a textare (html).
The user can paste text in it.
Then he could click on a button to filter out the following:
`<a href="` and `<a class="` and `" target="_blank">`
So if any of these terms are found in the text they should be replaced with nothing
Sorry I have no idea how to do that. So I've got nothing...
I know this is not how it works and I am really sorry!! | 1 |
10,655,561 | 05/18/2012 15:33:01 | 848,117 | 03/19/2011 20:40:08 | 465 | 36 | Absolute element width inherit ignoring padding content-box | I have an absolute element inside a relative container. The absolute element has its `width:inherit` which gives the width of the relative container element.
My goal is for the absolute element to stretch beyond the 100% of the container, 40px from right and left.
This I am trying to achieve by setting `pading left & right to 40px` on the relative container, together with `box-sizing: content-box;`. The problem is that the absolute element doesn't stretch to 100% of the relative container. Instead it stretches only within the content space without including the padding. | html | css | null | null | null | 05/18/2012 17:19:48 | not a real question | Absolute element width inherit ignoring padding content-box
===
I have an absolute element inside a relative container. The absolute element has its `width:inherit` which gives the width of the relative container element.
My goal is for the absolute element to stretch beyond the 100% of the container, 40px from right and left.
This I am trying to achieve by setting `pading left & right to 40px` on the relative container, together with `box-sizing: content-box;`. The problem is that the absolute element doesn't stretch to 100% of the relative container. Instead it stretches only within the content space without including the padding. | 1 |
7,036,878 | 08/12/2011 07:27:00 | 1,147,007 | 05/14/2011 07:33:35 | 224 | 5 | android registering contextmenu for an option menu item | I want on an option menu item click a context menu should come.
Is it possible to register a context menu for an option menu item?
If it possible then how?
Thanks. | android | null | null | null | null | null | open | android registering contextmenu for an option menu item
===
I want on an option menu item click a context menu should come.
Is it possible to register a context menu for an option menu item?
If it possible then how?
Thanks. | 0 |
6,295,439 | 06/09/2011 15:32:53 | 791,237 | 06/09/2011 15:32:53 | 1 | 0 | How to programmatically get information in Eclipse | I'm developing an Eclipse Plug-in.
I need to programmatically get both filepath and filename of the selected/active file in the eclipse editor.
Also need to programmatically add an existing file (located outside the project) to the project and then open it on the editor.
I'm a totally beginner with Eclipse, so complete solution would be appreciated. | eclipse | eclipse-plugin | eclipse-api | null | null | null | open | How to programmatically get information in Eclipse
===
I'm developing an Eclipse Plug-in.
I need to programmatically get both filepath and filename of the selected/active file in the eclipse editor.
Also need to programmatically add an existing file (located outside the project) to the project and then open it on the editor.
I'm a totally beginner with Eclipse, so complete solution would be appreciated. | 0 |
9,976,186 | 04/02/2012 12:12:14 | 315,648 | 04/13/2010 15:30:27 | 164 | 2 | With and without LINQ - complex sample | I'm looking for a good and useful code example that would be nice, short and understandable if implemented using LINQ but not so nice and more complex if implemented without LINQ (using loops etc). Maybe something with datetimes and joins.
Anybody know a good example ?
Thanks! | c# | .net | linq | c#-4.0 | null | 04/03/2012 02:22:44 | not a real question | With and without LINQ - complex sample
===
I'm looking for a good and useful code example that would be nice, short and understandable if implemented using LINQ but not so nice and more complex if implemented without LINQ (using loops etc). Maybe something with datetimes and joins.
Anybody know a good example ?
Thanks! | 1 |
8,914,395 | 01/18/2012 17:19:05 | 685,386 | 03/31/2011 08:58:43 | 71 | 1 | what is the best way to test HTML5 websites? | I'm in the process of developing a website in html5, its pretty dynamic, meaning, The first page will ask the user for few inputs, and the next page will be dynamically designed for those inputs,
Now the question is, how to test it? any tools framework or anything would be great :)
I currently know of qunit, but not sure if that's the only/good option
Note: I'm planning to test this site in Chrome/Firefox/IE windows, Safari in mac/ipad
Thanks :) | javascript | unit-testing | html5 | testing | browser | 01/19/2012 23:45:48 | not constructive | what is the best way to test HTML5 websites?
===
I'm in the process of developing a website in html5, its pretty dynamic, meaning, The first page will ask the user for few inputs, and the next page will be dynamically designed for those inputs,
Now the question is, how to test it? any tools framework or anything would be great :)
I currently know of qunit, but not sure if that's the only/good option
Note: I'm planning to test this site in Chrome/Firefox/IE windows, Safari in mac/ipad
Thanks :) | 4 |
8,623,080 | 12/24/2011 06:20:08 | 219,837 | 11/27/2009 05:46:18 | 77 | 0 | where can I find a neo4j quick tutorial? | I was trying to save directed graphs into databases for further processing and query. And neo4j seems to fit my needs. However, I don't seem to find a good tutorial regarding the following:
- Creating the database and put data in.
- Making queries.
I want to be able to do them both manually and automatically (i.e. using a program). The official manual keeps talking about stuff like Maven, Index, REST API and so on, basically things I don't care about at all for now.
So any good hands-on tutorial on neo4j? Or any other graph databases you think is good for total beginners with simple needs (i.e. store graph and query graph)? | database | neo4j | graph-databases | null | null | 01/07/2012 21:11:41 | not constructive | where can I find a neo4j quick tutorial?
===
I was trying to save directed graphs into databases for further processing and query. And neo4j seems to fit my needs. However, I don't seem to find a good tutorial regarding the following:
- Creating the database and put data in.
- Making queries.
I want to be able to do them both manually and automatically (i.e. using a program). The official manual keeps talking about stuff like Maven, Index, REST API and so on, basically things I don't care about at all for now.
So any good hands-on tutorial on neo4j? Or any other graph databases you think is good for total beginners with simple needs (i.e. store graph and query graph)? | 4 |
9,379,882 | 02/21/2012 15:08:03 | 414,548 | 08/08/2010 19:58:49 | 1 | 0 | have to press F5 in order to call bean on fire-fox | I have encountered some wierd problem,
I have a button that its action is to call to some method of bean which forward me to other page, but its's not working (it doesn't calls the method) unless i'm pressing F5 , but the problem exists only in fire-fox, for example in internet explorer its working greate, someone have any idea how to solve it?
thanks. | jsp | null | null | null | null | 02/21/2012 15:14:37 | not a real question | have to press F5 in order to call bean on fire-fox
===
I have encountered some wierd problem,
I have a button that its action is to call to some method of bean which forward me to other page, but its's not working (it doesn't calls the method) unless i'm pressing F5 , but the problem exists only in fire-fox, for example in internet explorer its working greate, someone have any idea how to solve it?
thanks. | 1 |
10,693,601 | 05/21/2012 22:41:48 | 596,757 | 01/31/2011 11:26:32 | 957 | 18 | Haskell semantics undefined value | I am new to Haskell and to its semantics. I learned that not every function can be mapped to an object. For instance:
square :: Int -> Int
square x = x*x
The value of square is mapped to the math object. However, for any non-terminating function, we map it to a special math value `⊥`. I want to know what will happen if I have to do calculation with this undefined value. For instance, I have a set of numbers `Z⊥ ={⊥, 1,0,-1}`. What will be the output if I multiply `⊥` with 1? Since, the type of `⊥` will be undefined, am I able to do multiplication with a well defined type? Since, `⊥` is in the domain of `Z⊥`, I guess I can do the multiplication. But, then it will have to return `⊥`! I would like to have some guidance regarding it! | haskell | undefined | semantic | null | null | null | open | Haskell semantics undefined value
===
I am new to Haskell and to its semantics. I learned that not every function can be mapped to an object. For instance:
square :: Int -> Int
square x = x*x
The value of square is mapped to the math object. However, for any non-terminating function, we map it to a special math value `⊥`. I want to know what will happen if I have to do calculation with this undefined value. For instance, I have a set of numbers `Z⊥ ={⊥, 1,0,-1}`. What will be the output if I multiply `⊥` with 1? Since, the type of `⊥` will be undefined, am I able to do multiplication with a well defined type? Since, `⊥` is in the domain of `Z⊥`, I guess I can do the multiplication. But, then it will have to return `⊥`! I would like to have some guidance regarding it! | 0 |
6,418,123 | 06/20/2011 22:05:28 | 807,470 | 06/20/2011 21:58:49 | 1 | 0 | Objective-C,C,C++ Using internet. Help Tutorial/Books | Hello I need to make connection with another computer through internet and send him something. Is there anyone who can help me with this? I don't want actual code, but I want a tutorial on how everything works or maybe even a book so I can understand :)
Thanks in advance! | c++ | c | internet | sending | objectice-c | 06/21/2011 01:42:17 | not a real question | Objective-C,C,C++ Using internet. Help Tutorial/Books
===
Hello I need to make connection with another computer through internet and send him something. Is there anyone who can help me with this? I don't want actual code, but I want a tutorial on how everything works or maybe even a book so I can understand :)
Thanks in advance! | 1 |
4,699,665 | 01/15/2011 12:52:03 | 540,891 | 12/13/2010 18:06:47 | 21 | 1 | how to convert c# code to ironpython | ![alt text][1]
[1]: http://i.stack.imgur.com/Wxd3D.png
From code I want to convert to ironpython
Thanks!! | c# | ironpython | null | null | null | 01/16/2011 17:34:02 | not a real question | how to convert c# code to ironpython
===
![alt text][1]
[1]: http://i.stack.imgur.com/Wxd3D.png
From code I want to convert to ironpython
Thanks!! | 1 |
9,388,278 | 02/22/2012 02:22:26 | 1,224,765 | 02/22/2012 02:19:37 | 1 | 0 | building a floating number using c | I have to input in three, a sign(+ or -),exponent and a significand(y.yyyyyy). Now i have to use these three parts to construct a float number. This program should deal with the property of normalized and denormalized but ignore the infinity and special case concept. I am not sure how to go about this program, if some one would be generous enough to give me a head start. PS- I am not so familiar with using C as a programming language, i have used a very few times. | c | floating | null | null | null | 02/22/2012 02:38:39 | too localized | building a floating number using c
===
I have to input in three, a sign(+ or -),exponent and a significand(y.yyyyyy). Now i have to use these three parts to construct a float number. This program should deal with the property of normalized and denormalized but ignore the infinity and special case concept. I am not sure how to go about this program, if some one would be generous enough to give me a head start. PS- I am not so familiar with using C as a programming language, i have used a very few times. | 3 |
121,734 | 09/23/2008 15:27:58 | 18,838 | 09/19/2008 13:29:08 | 21 | 8 | How do you get programmers to drop a meme and pick up a new one? | A lot of what I am working on is changing the mindset of a community of developers. Moving them from one tool to another, or to picking up a new tool.
What are some of the suggested or recommended ways to get a community to pick up a new meme?
While we can mandate tool usage, this is a last resort. I would rather have the developers move to any new tools of their own accord.
I'm not a programmer, I need to understand why a programmer will move from one tool to another. | meme | projects | null | null | null | 11/29/2011 18:48:47 | not constructive | How do you get programmers to drop a meme and pick up a new one?
===
A lot of what I am working on is changing the mindset of a community of developers. Moving them from one tool to another, or to picking up a new tool.
What are some of the suggested or recommended ways to get a community to pick up a new meme?
While we can mandate tool usage, this is a last resort. I would rather have the developers move to any new tools of their own accord.
I'm not a programmer, I need to understand why a programmer will move from one tool to another. | 4 |
11,679,786 | 07/27/2012 00:07:24 | 1,291,981 | 03/26/2012 00:58:20 | 1 | 0 | iphone sdk for face deformer | I'm looking for some SDK I can use to do the face deformer like fatbooth or face squeeze apps.
Anyone know which iPhone SDK I can use and is any good third-parts SDK I can use, plz?
thanks | iphone | sdk | photo | null | null | 08/01/2012 19:45:27 | not constructive | iphone sdk for face deformer
===
I'm looking for some SDK I can use to do the face deformer like fatbooth or face squeeze apps.
Anyone know which iPhone SDK I can use and is any good third-parts SDK I can use, plz?
thanks | 4 |
7,286,212 | 09/02/2011 16:06:32 | 821,960 | 06/29/2011 21:18:02 | 10 | 0 | loading text into textarea based on drop down selection | To start, I have searched the site and found this:
http://stackoverflow.com/questions/5263839/how-to-fill-in-a-text-field-with-drop-down-selection
but it did not suit my needs, as I'm generating very long templates and the above method would be too time consuming and impractical as it would mean filling in the `value` attribute of each `<option>` tag with my templates.
So here's the code:
<script type="text/javascript">
//<![CDATA[ function showCSTemplates(sel){
locations =[ "", /*this remains blank for first selection in drop-down list*/
/*option 1*/
" This is template 1 that will appear in a
textarea keeping
its formatting
as
is. ",
/*option 2*/
" This is template 2 that
will appear in a
textarea keeping its
formatting as is.
Credentials:
Contact Info: ",
/*option 3*/
" This is template 3 that will appear in a
textarea keeping its formatting as is.
Donec tortor lorem,
ornare vitae commodo nec,
sagittis et nunc.
Maecenas sagittis quam ",
/*option 4*/
"etc",
/*option 5*/
"etc...", ];
srcLocation = locations [sel.selectedIndex];
if (srcLocation != undefined && srcLocation != "") {
document.getElementById('CSTemplates').innerHTML = srcLocation;
}
} //]]>
</script>
and here's the markup:
<h1>Note Generator</h1>
<div class="left">
CSTemplates
<p>
<select class="c10">
<option selected="selected" value="" id="Templates" onchange="showCSTemplates(this);">Please select a template...</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</p>
<p>
<textarea cols="30" rows="20" readonly="readonly" id="CSTemplates">
Templates will auto-populate
here depending on the
selection made from the
[CSTemplates]
drop-down list.
</textarea>
</p>
</div><!--left ends here-->
The worst part is, I'm not even getting a script error when I test this, it just doesn't work at all, so I don't know where I went wrong here. I've done a similar page using `<input type="text">` tags and they worked fine, but I can't seem to get it to work with the `<textarea>` at all no matter what I try.
Any help will be very much appreciated! Thanks in advance! | javascript | drop-down-menu | textarea | onchange | selectedindex | null | open | loading text into textarea based on drop down selection
===
To start, I have searched the site and found this:
http://stackoverflow.com/questions/5263839/how-to-fill-in-a-text-field-with-drop-down-selection
but it did not suit my needs, as I'm generating very long templates and the above method would be too time consuming and impractical as it would mean filling in the `value` attribute of each `<option>` tag with my templates.
So here's the code:
<script type="text/javascript">
//<![CDATA[ function showCSTemplates(sel){
locations =[ "", /*this remains blank for first selection in drop-down list*/
/*option 1*/
" This is template 1 that will appear in a
textarea keeping
its formatting
as
is. ",
/*option 2*/
" This is template 2 that
will appear in a
textarea keeping its
formatting as is.
Credentials:
Contact Info: ",
/*option 3*/
" This is template 3 that will appear in a
textarea keeping its formatting as is.
Donec tortor lorem,
ornare vitae commodo nec,
sagittis et nunc.
Maecenas sagittis quam ",
/*option 4*/
"etc",
/*option 5*/
"etc...", ];
srcLocation = locations [sel.selectedIndex];
if (srcLocation != undefined && srcLocation != "") {
document.getElementById('CSTemplates').innerHTML = srcLocation;
}
} //]]>
</script>
and here's the markup:
<h1>Note Generator</h1>
<div class="left">
CSTemplates
<p>
<select class="c10">
<option selected="selected" value="" id="Templates" onchange="showCSTemplates(this);">Please select a template...</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</p>
<p>
<textarea cols="30" rows="20" readonly="readonly" id="CSTemplates">
Templates will auto-populate
here depending on the
selection made from the
[CSTemplates]
drop-down list.
</textarea>
</p>
</div><!--left ends here-->
The worst part is, I'm not even getting a script error when I test this, it just doesn't work at all, so I don't know where I went wrong here. I've done a similar page using `<input type="text">` tags and they worked fine, but I can't seem to get it to work with the `<textarea>` at all no matter what I try.
Any help will be very much appreciated! Thanks in advance! | 0 |
8,640,307 | 12/27/2011 01:05:56 | 1,106,580 | 12/19/2011 19:17:53 | 1 | 0 | Difference between ByteToStr IntToStr | I try to write program in C. I read the rules for functions which are used for conversion types. I know which are the inputs and destination types in functions. but I have problem, I couldn't understand when I use some of them, in what case we use ByteToStr or IntToStr. Any suggestion??? | c | null | null | null | null | 12/27/2011 14:35:56 | not a real question | Difference between ByteToStr IntToStr
===
I try to write program in C. I read the rules for functions which are used for conversion types. I know which are the inputs and destination types in functions. but I have problem, I couldn't understand when I use some of them, in what case we use ByteToStr or IntToStr. Any suggestion??? | 1 |
4,903,706 | 02/04/2011 22:52:05 | 317,380 | 04/15/2010 10:32:29 | 1 | 0 | Relations between lists in SharePoint 2010 | I am trying to build a simple CRM like solution inside SharePoint 2010 with three lists.
The first list stores companies and the second stores contact persons on these companies with a lookup column where you select the company the person works at.
The third list (and this is where the problem comes) stores communication with the people at the companies so here I have a lookup column that looks up people that are in list number 2.
The problem is that I want to group the third list on company and then on person in the view but I can't group on a column not in the third list and SharePoint won't let me have a column containing the company name in the third list since it is a lookup column in the second list.
Anybody have a clue if this can be done with SharePoint lists and views? | sharepoint2010 | null | null | null | null | null | open | Relations between lists in SharePoint 2010
===
I am trying to build a simple CRM like solution inside SharePoint 2010 with three lists.
The first list stores companies and the second stores contact persons on these companies with a lookup column where you select the company the person works at.
The third list (and this is where the problem comes) stores communication with the people at the companies so here I have a lookup column that looks up people that are in list number 2.
The problem is that I want to group the third list on company and then on person in the view but I can't group on a column not in the third list and SharePoint won't let me have a column containing the company name in the third list since it is a lookup column in the second list.
Anybody have a clue if this can be done with SharePoint lists and views? | 0 |
8,060,658 | 11/09/2011 05:17:40 | 1,036,953 | 11/09/2011 05:10:29 | 1 | 0 | How can I test my application with real users not test users? | I need to test my application with real users because I need some test users who have some information uploaded to their profile such as wall posts, friends, etc.
I know that I can create test users but the problem is that they are like new users. There is no information in their profiles. I am wondering if you guys have some ideas that I can use.
Thanks | facebook | testing | facebook-graph-api | user | real | 11/11/2011 13:24:03 | not constructive | How can I test my application with real users not test users?
===
I need to test my application with real users because I need some test users who have some information uploaded to their profile such as wall posts, friends, etc.
I know that I can create test users but the problem is that they are like new users. There is no information in their profiles. I am wondering if you guys have some ideas that I can use.
Thanks | 4 |
7,035,322 | 08/12/2011 03:35:16 | 860,381 | 07/24/2011 16:10:34 | 1 | 0 | Dilemma working with skillful subordinates | This is not a technical question but more to managing technical expectation to myself. Currently i am just along managing website (WP based), managing web services, do some web development works in this company. Some projects i need to outsource, manage the outsourcing until the project is complete. I am not a powerful PHP developer (i just have the basics), but i love Wordpress, so most of the project i use WP as the platform.
Even i am alone, i am quite happy because my work more to managing than doing the hard coding. But the time has come i need to grow this team, i have found skillful developer and designer to join my team. They are very skillful, have great portfolios.
My boss want me to find a great team so my team can grow. My dilemma now is i am afraid if i approve the new candidates to my team than maybe i will be removed from the team sooner or later since i am not skillful as them, even i am more senior than them in this company.
On the other hand, i heard it is great to work with more skillful person as you can develop yourself faster.
Now i am stuck which way to choose.
| php | null | null | null | null | 08/12/2011 05:37:54 | off topic | Dilemma working with skillful subordinates
===
This is not a technical question but more to managing technical expectation to myself. Currently i am just along managing website (WP based), managing web services, do some web development works in this company. Some projects i need to outsource, manage the outsourcing until the project is complete. I am not a powerful PHP developer (i just have the basics), but i love Wordpress, so most of the project i use WP as the platform.
Even i am alone, i am quite happy because my work more to managing than doing the hard coding. But the time has come i need to grow this team, i have found skillful developer and designer to join my team. They are very skillful, have great portfolios.
My boss want me to find a great team so my team can grow. My dilemma now is i am afraid if i approve the new candidates to my team than maybe i will be removed from the team sooner or later since i am not skillful as them, even i am more senior than them in this company.
On the other hand, i heard it is great to work with more skillful person as you can develop yourself faster.
Now i am stuck which way to choose.
| 2 |
8,046,111 | 11/08/2011 04:56:39 | 1,025,050 | 11/02/2011 06:14:20 | 26 | 0 | Android:use debugmode in galaxy s2 | I am using new device for testing named Samsung Galaxy SII but i am unable to use use debugging mode that means i am unable to see logs in my emulator but i am able to connect it with usb mode but not with debugging mode.Any help will be appreciated.
Thanks | android | debugging | null | null | null | null | open | Android:use debugmode in galaxy s2
===
I am using new device for testing named Samsung Galaxy SII but i am unable to use use debugging mode that means i am unable to see logs in my emulator but i am able to connect it with usb mode but not with debugging mode.Any help will be appreciated.
Thanks | 0 |
3,375,593 | 07/30/2010 21:47:06 | 323,874 | 04/23/2010 03:59:40 | 27 | 1 | In UNIX, how do I send a message to another UNIX box on the same network by IP address? | Just like a "net send" on Windows, if I remember what net send does correctly. I just want to say something like:
<command> <IP address> "Hey what's up?"
and the message "Hey what's up?" should show up on the other guy's machine. Ideally this shouldn't require installation of any packages not already present in typical UNIX/Linux distributions.
Any ideas?
Thanks!
| linux | unix | networking | messaging | null | 07/31/2010 22:40:07 | off topic | In UNIX, how do I send a message to another UNIX box on the same network by IP address?
===
Just like a "net send" on Windows, if I remember what net send does correctly. I just want to say something like:
<command> <IP address> "Hey what's up?"
and the message "Hey what's up?" should show up on the other guy's machine. Ideally this shouldn't require installation of any packages not already present in typical UNIX/Linux distributions.
Any ideas?
Thanks!
| 2 |
7,576,719 | 09/27/2011 23:18:50 | 877,400 | 08/03/2011 20:19:29 | 1 | 0 | New to Asp/Sitecore - What ASP book should I get? | I'm a dev who does the usuals - HTML, CSS, JavaScript, jQuery, MySql and PHP. My company wants me to be capable with Sitecore projects. I am headed to a Sitecore foundation training but I really want to learn ASP.
Seeing as I am using Sitecore can anyone recommend a ASP version to learn and point me toward a book you like?
Apologies for any noob omissions here. | asp | sitecore | null | null | null | 09/28/2011 10:24:41 | not constructive | New to Asp/Sitecore - What ASP book should I get?
===
I'm a dev who does the usuals - HTML, CSS, JavaScript, jQuery, MySql and PHP. My company wants me to be capable with Sitecore projects. I am headed to a Sitecore foundation training but I really want to learn ASP.
Seeing as I am using Sitecore can anyone recommend a ASP version to learn and point me toward a book you like?
Apologies for any noob omissions here. | 4 |
8,160,040 | 11/16/2011 23:08:14 | 708,355 | 04/14/2011 16:34:52 | 1 | 0 | what are the most common tasks and their commands for building and maintaing a Symfony project? | Symfony is my first attempt to learn MVC, and I'm really struggling with it.
I've already tried [A Gentle Introduction to symfony][1] but that was anything but gentle. I was just copying and pasting code without learning how I could do this for myself.
I'm on Day 7 of [Practical symfony][2], and it's a little bit better for beginners, but by Day 7 I feel like I'm just copying and pasting code. I see the changes to the system that happen when editing the different files. But not to the point where I can do that by myself. Which would mean having a clear goal in mind, knowing which file to edit first, which related files need to be edited, and knowing where to look in the API when (not if) I get lost.
So I'm simply asking: what are the most common tasks and their commands for building and maintaing a Symfony project?
Some of the things I remember from the Practical symfony tutorial are:
- making the .yml file that defines the database, and then running the
command to initialize it
- making a script that has dummy data, making sure it's formatted properly for the database, populating and rebuilding the database
- making a web page which retrieves the data in the database and puts it into the table
What I feel would be really cool is a collection of common tasks you want to accomplish, like "I would like to add a user login system" and it would have a checklist telling you to modify this file, then that file, then this file, then repopulate database, etc...
[1]: http://www.symfony-project.org/doc/1_4/
[2]: http://www.symfony-project.org/doc/1_4/ | php | mvc | symfony | null | null | 11/17/2011 16:38:46 | not constructive | what are the most common tasks and their commands for building and maintaing a Symfony project?
===
Symfony is my first attempt to learn MVC, and I'm really struggling with it.
I've already tried [A Gentle Introduction to symfony][1] but that was anything but gentle. I was just copying and pasting code without learning how I could do this for myself.
I'm on Day 7 of [Practical symfony][2], and it's a little bit better for beginners, but by Day 7 I feel like I'm just copying and pasting code. I see the changes to the system that happen when editing the different files. But not to the point where I can do that by myself. Which would mean having a clear goal in mind, knowing which file to edit first, which related files need to be edited, and knowing where to look in the API when (not if) I get lost.
So I'm simply asking: what are the most common tasks and their commands for building and maintaing a Symfony project?
Some of the things I remember from the Practical symfony tutorial are:
- making the .yml file that defines the database, and then running the
command to initialize it
- making a script that has dummy data, making sure it's formatted properly for the database, populating and rebuilding the database
- making a web page which retrieves the data in the database and puts it into the table
What I feel would be really cool is a collection of common tasks you want to accomplish, like "I would like to add a user login system" and it would have a checklist telling you to modify this file, then that file, then this file, then repopulate database, etc...
[1]: http://www.symfony-project.org/doc/1_4/
[2]: http://www.symfony-project.org/doc/1_4/ | 4 |
11,247,444 | 06/28/2012 15:00:40 | 265,431 | 02/03/2010 16:19:15 | 319 | 5 | Codeigniter Shopping Cart Helper Class - Change the "subtotal" value | I am working with the CI Framework and using the Shopping Cart Class. Which has proved a success so far, Until my user has decided to mess about with it and add postage to the total.
So what I'd like to do is add the value of the variable $postage to the subtotal array.
i.e subtotal is first 111.24, Then it goes to my controller and it adds 4 to the subtotal making it 115.24.
My array of data is as follows :
[id] => 9
[qty] => 1
[price] => 111.24
[price_artwork] =>
[name] => Lincoln Catherdral
[print_type] => Canvas
[postage] => 4
[file_name] => bbb5359bd6d0dc27ace3f2921460a021
[file_ext] => .jpg
[subtotal] => 111.24
and $data in the controller is set as follows:
$data = array(
'id' => $this->input->post('ARTWORK_id'),
'qty' => 1,
'price' => $this->input->post('print_cost'),
'price_artwork' => $this->input->post('ARTWORK_price'),
'name' => $this->input->post('ARTWORK_title'),
'print_type' => $this->input->post('print_type'),
'postage' => $postage,
'file_name' => $this->input->post('ARTWORK_file_name'),
'file_ext' => $this->input->post('ARTWORK_file_ext'),
'subtotal' => $subtotal
);
But subtotal is only going through as the same as the [price] value in the array.
Any ideas how to change this?
Thanks | php | codeigniter | shopping-cart | null | null | null | open | Codeigniter Shopping Cart Helper Class - Change the "subtotal" value
===
I am working with the CI Framework and using the Shopping Cart Class. Which has proved a success so far, Until my user has decided to mess about with it and add postage to the total.
So what I'd like to do is add the value of the variable $postage to the subtotal array.
i.e subtotal is first 111.24, Then it goes to my controller and it adds 4 to the subtotal making it 115.24.
My array of data is as follows :
[id] => 9
[qty] => 1
[price] => 111.24
[price_artwork] =>
[name] => Lincoln Catherdral
[print_type] => Canvas
[postage] => 4
[file_name] => bbb5359bd6d0dc27ace3f2921460a021
[file_ext] => .jpg
[subtotal] => 111.24
and $data in the controller is set as follows:
$data = array(
'id' => $this->input->post('ARTWORK_id'),
'qty' => 1,
'price' => $this->input->post('print_cost'),
'price_artwork' => $this->input->post('ARTWORK_price'),
'name' => $this->input->post('ARTWORK_title'),
'print_type' => $this->input->post('print_type'),
'postage' => $postage,
'file_name' => $this->input->post('ARTWORK_file_name'),
'file_ext' => $this->input->post('ARTWORK_file_ext'),
'subtotal' => $subtotal
);
But subtotal is only going through as the same as the [price] value in the array.
Any ideas how to change this?
Thanks | 0 |
7,367,009 | 09/09/2011 20:20:24 | 97,879 | 04/29/2009 18:38:51 | 335 | 14 | Are there examples of SPROC mappings and usage with Fluent NHibernate? | I'm looking for an example of how I would/should use the SqlUpdate, SqlDelete, and SqlInsert parts of Fluent NHibernate in my mappings.
I have a standard
public class MyObjectMap : ClassMap<MyObject> {
public MyObjectMap() {
Table("MyObjectsTable");
Id(x => x.Id).GeneratedBy.Identity();
Map(x => x.This, "That");
// Ad nauseam
// how do I use this part?
SqlUpdate(" some sql here ");
The question is, how do I make use of a StoredProcedurePart in this way? How do I specify only the right parameters?
| nhibernate | stored-procedures | fluent-nhibernate | fluent-nhibernate-mapping | null | null | open | Are there examples of SPROC mappings and usage with Fluent NHibernate?
===
I'm looking for an example of how I would/should use the SqlUpdate, SqlDelete, and SqlInsert parts of Fluent NHibernate in my mappings.
I have a standard
public class MyObjectMap : ClassMap<MyObject> {
public MyObjectMap() {
Table("MyObjectsTable");
Id(x => x.Id).GeneratedBy.Identity();
Map(x => x.This, "That");
// Ad nauseam
// how do I use this part?
SqlUpdate(" some sql here ");
The question is, how do I make use of a StoredProcedurePart in this way? How do I specify only the right parameters?
| 0 |
1,165,318 | 07/22/2009 13:39:01 | 39,590 | 11/21/2008 07:45:38 | 594 | 19 | Why can't I program in two languages at the same time? | I guess the caption needs some clarification. At home, I'm working on a large personal project written in Java. However, I recently got employed as a C# developer.
After about 8 hours a day reading C# code, I find it very hard to switch to Java at home. Actually, my home project stalled almost completely since I got employed.
At first I thought I'd have to wait for vacation to actually switch back to Java, but even after a week of no C# I did not manage to come into Java-mood again. I do not want to admit that my home project died, but I can't really see a way to overcome this issue. | programming-languages | personal-project | null | null | null | 04/30/2012 18:44:55 | not a real question | Why can't I program in two languages at the same time?
===
I guess the caption needs some clarification. At home, I'm working on a large personal project written in Java. However, I recently got employed as a C# developer.
After about 8 hours a day reading C# code, I find it very hard to switch to Java at home. Actually, my home project stalled almost completely since I got employed.
At first I thought I'd have to wait for vacation to actually switch back to Java, but even after a week of no C# I did not manage to come into Java-mood again. I do not want to admit that my home project died, but I can't really see a way to overcome this issue. | 1 |
8,714,771 | 01/03/2012 15:47:07 | 1,093,177 | 12/12/2011 06:01:06 | 1 | 0 | how to enter text in UITextfield multiple times | i know this question is too simple ,i have sendEmailButton once i click the button a new UIView will appear and it has UITextField and UITextView after entering texts in UITextField and in UITextView ,i click submit button the details will be send to a email , when i click sendEmailButton once again an empty UITextField n UITextView should appear | iphone | objective-c | ios | xcode | ipad | 01/03/2012 16:38:44 | not a real question | how to enter text in UITextfield multiple times
===
i know this question is too simple ,i have sendEmailButton once i click the button a new UIView will appear and it has UITextField and UITextView after entering texts in UITextField and in UITextView ,i click submit button the details will be send to a email , when i click sendEmailButton once again an empty UITextField n UITextView should appear | 1 |
8,252,151 | 11/24/2011 04:14:15 | 1,060,644 | 11/22/2011 20:58:40 | 1 | 0 | STL iterator won't work? Can't figure out why | I have a class which has one private member:
std::set<unsigned long> Sset;
And I have a problem with this function:
Prototype:
Set& Union (Set&, Set&);
Code:
Set& Set::Union (Set& s1, Set& s2)
{
set<unsigned long>::iterator a;
set<unsigned long>::iterator j;
for (a = s1.Sset.begin(); a!=s1.Sset.end(); ++a)
for (j = s2.Sset.begin(); j!=s2.Sset.end(); ++j)
if (*a = *j)
{
Sset.insert(*a);
break;
}
return *this;
}
I get compiler error expression must be a modifiable lvalue at `*a=*j`
Everything is OK with iterator j, but it won't accept `*a`
Any help, or explanation?
Thanks | c++ | stl | iterator | set | const | null | open | STL iterator won't work? Can't figure out why
===
I have a class which has one private member:
std::set<unsigned long> Sset;
And I have a problem with this function:
Prototype:
Set& Union (Set&, Set&);
Code:
Set& Set::Union (Set& s1, Set& s2)
{
set<unsigned long>::iterator a;
set<unsigned long>::iterator j;
for (a = s1.Sset.begin(); a!=s1.Sset.end(); ++a)
for (j = s2.Sset.begin(); j!=s2.Sset.end(); ++j)
if (*a = *j)
{
Sset.insert(*a);
break;
}
return *this;
}
I get compiler error expression must be a modifiable lvalue at `*a=*j`
Everything is OK with iterator j, but it won't accept `*a`
Any help, or explanation?
Thanks | 0 |
6,045,605 | 05/18/2011 13:35:29 | 537,116 | 12/09/2010 22:00:01 | 1 | 3 | Python problem: opening and closing a file returns a syntax error | Hi guys I've fonund this useful python script that allows me to get some weather data from a site.
I'm going to create a file and the dataset indide.
Something is not working. It returns this error.
File "<stdin>", line 42
f.close()
^
SyntaxError: invalid syntax
What's wrong? In this line I'm only closing the file!
Could anyone help me please?
This is the python code.
import urllib2
from BeautifulSoup import BeautifulSoup
# Create/open a file called wunder.txt (which will be a comma-delimited file)
f = open('wunder-data.txt', 'w')
# Iterate through year, month, and day
for y in range(1980, 2007):
for m in range(1, 13):
for d in range(1, 32):
# Check if leap year
if y%400 == 0:
leap = True
elif y%100 == 0:
leap = False
elif y%4 == 0:
leap = True
else:
leap = False
# Check if already gone through month
if (m == 2 and leap and d > 29):
continue
elif (m == 2 and d > 28):
continue
elif (m in [4, 6, 9, 10] and d > 30):
continue
# Open wunderground.com url
url = "http://www.wunderground.com/history/airport/KBUF/"+str(y)+ "/" + str(m) + "/" + str(d) + "/DailyHistory.html"
page = urllib2.urlopen(url)
# Get temperature from page
soup = BeautifulSoup(page)
dayTemp = soup.body.nobr.b.string
# Format month for timestamp
if len(str(m)) < 2:
mStamp = '0' + str(m)
else:
mStamp = str(m)
# Format day for timestamp
if len(str(d)) < 2:
dStamp = '0' + str(d)
else:
dStamp = str(d)
# Build timestamp
timestamp = str(y) + mStamp + dStamp
# Write timestamp and temperature to file
f.write(timestamp + ',' + dayTemp + '\n')
# Done getting data! Close file.
f.close()
| python | syntax | null | null | null | null | open | Python problem: opening and closing a file returns a syntax error
===
Hi guys I've fonund this useful python script that allows me to get some weather data from a site.
I'm going to create a file and the dataset indide.
Something is not working. It returns this error.
File "<stdin>", line 42
f.close()
^
SyntaxError: invalid syntax
What's wrong? In this line I'm only closing the file!
Could anyone help me please?
This is the python code.
import urllib2
from BeautifulSoup import BeautifulSoup
# Create/open a file called wunder.txt (which will be a comma-delimited file)
f = open('wunder-data.txt', 'w')
# Iterate through year, month, and day
for y in range(1980, 2007):
for m in range(1, 13):
for d in range(1, 32):
# Check if leap year
if y%400 == 0:
leap = True
elif y%100 == 0:
leap = False
elif y%4 == 0:
leap = True
else:
leap = False
# Check if already gone through month
if (m == 2 and leap and d > 29):
continue
elif (m == 2 and d > 28):
continue
elif (m in [4, 6, 9, 10] and d > 30):
continue
# Open wunderground.com url
url = "http://www.wunderground.com/history/airport/KBUF/"+str(y)+ "/" + str(m) + "/" + str(d) + "/DailyHistory.html"
page = urllib2.urlopen(url)
# Get temperature from page
soup = BeautifulSoup(page)
dayTemp = soup.body.nobr.b.string
# Format month for timestamp
if len(str(m)) < 2:
mStamp = '0' + str(m)
else:
mStamp = str(m)
# Format day for timestamp
if len(str(d)) < 2:
dStamp = '0' + str(d)
else:
dStamp = str(d)
# Build timestamp
timestamp = str(y) + mStamp + dStamp
# Write timestamp and temperature to file
f.write(timestamp + ',' + dayTemp + '\n')
# Done getting data! Close file.
f.close()
| 0 |
7,120,147 | 08/19/2011 10:18:06 | 902,080 | 08/19/2011 08:36:19 | 1 | 0 | how to split a string and put it into an array in a listview that is in an alertbox | I wanted to know how to split a string then put it into an array in a listview that is in an alertbox.
This is a 3 part question:
splitting the string and putting in an array
putting the array into a listview (or dropdown box)
putting the listview into an alertbox
thanks for the help | android | arrays | listview | null | null | 08/19/2011 12:48:57 | not a real question | how to split a string and put it into an array in a listview that is in an alertbox
===
I wanted to know how to split a string then put it into an array in a listview that is in an alertbox.
This is a 3 part question:
splitting the string and putting in an array
putting the array into a listview (or dropdown box)
putting the listview into an alertbox
thanks for the help | 1 |
10,894,776 | 06/05/2012 09:27:28 | 1,436,922 | 06/05/2012 08:55:05 | 1 | 0 | windows compress drive performance | There is a hitachi HDE721010SLA330 ATA drive(1T/7200rpm) on my computer.<br/>
I want to use compress drive on windows to reduce disk space and make sure that every IO is wrote to disk.<br/>
The speed of file copy to compress drive is extremely slow.<br/>
<br/>
Here are some speed result:<br/>
Copy a 4GB file to<br/>
Enable write caching on the device(default)<br/>
non-compress folder: 55s<br/>
compress folder: 214s<br/>
Disable write caching on the device<br/>
non-compress folder: 228s<br/>
compress folder: 724s<br/>
<br/>
I have no idea why it take such long to copy a 4GB file when write caching is disable.<br/>
I can understand that compress will be slower than non-compress, because CPU need to run compress algorithm.<br/>
Thanks.<br/> | windows | compression | write-through | null | null | 06/05/2012 20:03:10 | off topic | windows compress drive performance
===
There is a hitachi HDE721010SLA330 ATA drive(1T/7200rpm) on my computer.<br/>
I want to use compress drive on windows to reduce disk space and make sure that every IO is wrote to disk.<br/>
The speed of file copy to compress drive is extremely slow.<br/>
<br/>
Here are some speed result:<br/>
Copy a 4GB file to<br/>
Enable write caching on the device(default)<br/>
non-compress folder: 55s<br/>
compress folder: 214s<br/>
Disable write caching on the device<br/>
non-compress folder: 228s<br/>
compress folder: 724s<br/>
<br/>
I have no idea why it take such long to copy a 4GB file when write caching is disable.<br/>
I can understand that compress will be slower than non-compress, because CPU need to run compress algorithm.<br/>
Thanks.<br/> | 2 |
2,946,614 | 06/01/2010 00:16:05 | 212,639 | 11/17/2009 06:55:00 | 412 | 6 | Why is this class library dll not getting information from app.config | I am developing a custom HttpHandler, to do so I write a C# Class Library and compile to DLL.
As part of this I have some directory locations which I want not hard coded in the app, so i'm trying to put it in the app.config which I've used before.
Before this has worked by just going building the **app.config:**
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Share" value="C:\...\"/>
</appSettings>
</configuration>
And then obtaining this in code like:
var shareDirectory = ConfigurationManager.AppSettings["Share"];
But when I compile it and put it in the bin folder for the webservice, it keeps getting null for `shareDirectory`, probably because it can't find app.config. So how do I make sure this is included so I don't have to hard code my direcotry locations? I notice it will essentially after compiled we get the assembly.dll and the assembly.dll.config which is the app.config file, so it's definetly there in the bin folder! | dll | httphandler | app-config | class-library | ihttphandler | null | open | Why is this class library dll not getting information from app.config
===
I am developing a custom HttpHandler, to do so I write a C# Class Library and compile to DLL.
As part of this I have some directory locations which I want not hard coded in the app, so i'm trying to put it in the app.config which I've used before.
Before this has worked by just going building the **app.config:**
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Share" value="C:\...\"/>
</appSettings>
</configuration>
And then obtaining this in code like:
var shareDirectory = ConfigurationManager.AppSettings["Share"];
But when I compile it and put it in the bin folder for the webservice, it keeps getting null for `shareDirectory`, probably because it can't find app.config. So how do I make sure this is included so I don't have to hard code my direcotry locations? I notice it will essentially after compiled we get the assembly.dll and the assembly.dll.config which is the app.config file, so it's definetly there in the bin folder! | 0 |
3,776,122 | 09/23/2010 07:14:47 | 173,524 | 09/15/2009 05:27:31 | 145 | 5 | CodeIgniter: Multiple Apps, remove .php from url | My question may look similar to others, but it's different as you'll se:
I have 5 CI apps running with the same System Folder, as described in [CI User Guide][1].
Now, I want some .htacces file to remove just the .php from the url, like, as example: http://example.com/appName/controller/action instead of http://example.com/appName.php/controller/action (removing the .php portion of the url)
Can I do that? I have no experience with .htaccess files. Also, I'm developing the site in Windows 7 with XAMPP, to deploy the site to a LAMP server.
Thanks in advance
[1]: http://codeigniter.com/user_guide/general/managing_apps.html | .htaccess | codeigniter | codeigniter-url | null | null | null | open | CodeIgniter: Multiple Apps, remove .php from url
===
My question may look similar to others, but it's different as you'll se:
I have 5 CI apps running with the same System Folder, as described in [CI User Guide][1].
Now, I want some .htacces file to remove just the .php from the url, like, as example: http://example.com/appName/controller/action instead of http://example.com/appName.php/controller/action (removing the .php portion of the url)
Can I do that? I have no experience with .htaccess files. Also, I'm developing the site in Windows 7 with XAMPP, to deploy the site to a LAMP server.
Thanks in advance
[1]: http://codeigniter.com/user_guide/general/managing_apps.html | 0 |
10,677,207 | 05/20/2012 21:06:00 | 1,297,967 | 03/28/2012 10:58:31 | 1 | 0 | processing the image return ZXing | How can I save the image after being returned by ZXing create a bar code? <br>
and how to manipulate the image to add a logo for example. | android | zxing | null | null | null | 05/22/2012 14:15:34 | not a real question | processing the image return ZXing
===
How can I save the image after being returned by ZXing create a bar code? <br>
and how to manipulate the image to add a logo for example. | 1 |
7,967,825 | 11/01/2011 14:16:35 | 520,150 | 11/25/2010 12:33:45 | 13 | 0 | platform for game designing in C | I am looking for a game development platform using C.
The first and very basic need is to have a rendering platform. Physics engine is not a must.
Importantly, it should also have the library to access serial port.
Any suggestion over which platform would be useful or i should look for in doing so?
Most importantly, it has to be in C.
| c | rendering | serial-port | physics-engine | gaming | 11/01/2011 14:21:56 | not a real question | platform for game designing in C
===
I am looking for a game development platform using C.
The first and very basic need is to have a rendering platform. Physics engine is not a must.
Importantly, it should also have the library to access serial port.
Any suggestion over which platform would be useful or i should look for in doing so?
Most importantly, it has to be in C.
| 1 |
6,495,545 | 06/27/2011 15:55:50 | 803,649 | 06/17/2011 17:19:21 | 1 | 0 | Facebook Application Development | I was tryin to delvop a facebook application for the first time . However i am struggling to do so and i meet a erroneous condition .
i have the following doubts
1 . Can anyone share the link for the facebook php client library . i found it and saw that it contain the following structure
examples , crcc . test
is this the structure of the libraries . ? i dont see any lib directory though i would have thought that it should be there ? has the structure undergone a change ?
i dont think my apps working . I believe the libraries are the culprit .
Any help would be highly appreciated .
| php | facebook | application | null | null | 06/29/2011 15:58:43 | not a real question | Facebook Application Development
===
I was tryin to delvop a facebook application for the first time . However i am struggling to do so and i meet a erroneous condition .
i have the following doubts
1 . Can anyone share the link for the facebook php client library . i found it and saw that it contain the following structure
examples , crcc . test
is this the structure of the libraries . ? i dont see any lib directory though i would have thought that it should be there ? has the structure undergone a change ?
i dont think my apps working . I believe the libraries are the culprit .
Any help would be highly appreciated .
| 1 |
7,718,027 | 10/10/2011 20:05:03 | 727,429 | 03/23/2011 20:06:13 | 495 | 17 | Android code segment doesnt run without breakpoint (thread) | I have some code that will not run if I don't have a breakpoint. My speculation is that the code gets executed too quickly, and the time between me allowing a breakpoint to continue lets a thread lock on to my code. It also doesn't get "caught" with my exception handling, so its not bad code, but when the breakpoint is there it will dive into the try further and do everything I want it to do
not sure how to get this to work without being in debug mode! I am considering wait() or sleep() functions but it seems like a silly workaround, let me know if there is a better way
Thread triggerService = new Thread(new Runnable(){
public void run(){
Looper.prepare();
try{
// ....... code here does not get executed
// such as if statements or anything
Looper.loop();
}catch(Exception ex){
System.out.println("Exception in triggerService Thread -- "+ex);
}//end catch
}//end run
}, "myNewThread");
triggerService.start();
Insight appreciated! | android | multithreading | run | looper | null | null | open | Android code segment doesnt run without breakpoint (thread)
===
I have some code that will not run if I don't have a breakpoint. My speculation is that the code gets executed too quickly, and the time between me allowing a breakpoint to continue lets a thread lock on to my code. It also doesn't get "caught" with my exception handling, so its not bad code, but when the breakpoint is there it will dive into the try further and do everything I want it to do
not sure how to get this to work without being in debug mode! I am considering wait() or sleep() functions but it seems like a silly workaround, let me know if there is a better way
Thread triggerService = new Thread(new Runnable(){
public void run(){
Looper.prepare();
try{
// ....... code here does not get executed
// such as if statements or anything
Looper.loop();
}catch(Exception ex){
System.out.println("Exception in triggerService Thread -- "+ex);
}//end catch
}//end run
}, "myNewThread");
triggerService.start();
Insight appreciated! | 0 |
11,518,183 | 07/17/2012 07:51:56 | 516,160 | 11/22/2010 13:39:23 | 793 | 1 | Cannot connect to sql server | It's my first time to install Microsoft SQL R2 but then there are errors occured. I've tried several time uninstalling and installing the SQL but same errors occur.
This is the print screen of the error message:
![enter image description here][1]
And this is the error message when I tried to connect to server:
![enter image description here][2]
[1]: http://i.stack.imgur.com/9MpIl.png
[2]: http://i.stack.imgur.com/dqsTO.png
What might be the possible reason why this errors occurs every time I install the SQL R2? Please help. Thanks. | sql | sql-server | sql-server-2008 | sql-server-2008-r2 | null | 07/18/2012 00:05:03 | off topic | Cannot connect to sql server
===
It's my first time to install Microsoft SQL R2 but then there are errors occured. I've tried several time uninstalling and installing the SQL but same errors occur.
This is the print screen of the error message:
![enter image description here][1]
And this is the error message when I tried to connect to server:
![enter image description here][2]
[1]: http://i.stack.imgur.com/9MpIl.png
[2]: http://i.stack.imgur.com/dqsTO.png
What might be the possible reason why this errors occurs every time I install the SQL R2? Please help. Thanks. | 2 |
9,816,886 | 03/22/2012 05:22:30 | 1,332,870 | 12/10/2011 14:37:21 | 93 | 1 | How I can use videoview from rtmp? | How I can play the video on android from url. The url is : (e.g)
rtmp://fms.1B3E.sample.mp4
.When I want to make this the videoplayer on android says me this cant play.
How I can do this.? | android | rtmp | android-video-player | null | null | 05/31/2012 22:44:35 | not a real question | How I can use videoview from rtmp?
===
How I can play the video on android from url. The url is : (e.g)
rtmp://fms.1B3E.sample.mp4
.When I want to make this the videoplayer on android says me this cant play.
How I can do this.? | 1 |
1,033,729 | 06/23/2009 16:34:24 | 103,005 | 05/07/2009 16:26:32 | 1 | 0 | Informix subquerys with First option |
What is the best way of transcribing the next transact-SQL code to Informix 9.40:
Objective: I need the first 50 orders with their respectives lines
select * from (select top 50 * from orders) a inner join lines b on a.idOrder=b.idOrder
My problem is with the subselect because in informix is not allowed the FIRST option in the subselects.
Any simply idea?. | informix | sql-server | null | null | null | null | open | Informix subquerys with First option
===
What is the best way of transcribing the next transact-SQL code to Informix 9.40:
Objective: I need the first 50 orders with their respectives lines
select * from (select top 50 * from orders) a inner join lines b on a.idOrder=b.idOrder
My problem is with the subselect because in informix is not allowed the FIRST option in the subselects.
Any simply idea?. | 0 |
5,272,090 | 03/11/2011 11:03:34 | 492,488 | 10/31/2010 00:11:10 | 13 | 3 | Silverlight performance issue!!! | I have a **serious Performance issue** in my Silverlight project, when I run my project the **CPU usage is going up 80% - 90%**
the computer go down!!!, these are the major feature of the project:
1- We are using **Silverlight 4.**
3- We are using **MVVM pattern**, which means all data source, states are **Binding** with the properties in the View Model.
4- Most of the **controls are created dynamicly in code.**
5- We have a **reference for the Main control** in the Main view model which is the container of all generated control.
6- In our controls we have **many of layouts** (Grids).
7- We have Main view model which is the container of all children view models in the system.
8- We have **lots of states and animations**.
9- We **don't use the Relay commands**, we are using the regular commands and events, so we raise the event and handle it's parent (we have lots of events).
Is there any of the above causes the performance problem??? I thinks that there is a issue in the Silverlight itself, is there any Silvelight 4 update for performance.
I appreciate any help,
Thanks | silverlight | null | null | null | null | null | open | Silverlight performance issue!!!
===
I have a **serious Performance issue** in my Silverlight project, when I run my project the **CPU usage is going up 80% - 90%**
the computer go down!!!, these are the major feature of the project:
1- We are using **Silverlight 4.**
3- We are using **MVVM pattern**, which means all data source, states are **Binding** with the properties in the View Model.
4- Most of the **controls are created dynamicly in code.**
5- We have a **reference for the Main control** in the Main view model which is the container of all generated control.
6- In our controls we have **many of layouts** (Grids).
7- We have Main view model which is the container of all children view models in the system.
8- We have **lots of states and animations**.
9- We **don't use the Relay commands**, we are using the regular commands and events, so we raise the event and handle it's parent (we have lots of events).
Is there any of the above causes the performance problem??? I thinks that there is a issue in the Silverlight itself, is there any Silvelight 4 update for performance.
I appreciate any help,
Thanks | 0 |
8,583,344 | 12/20/2011 23:33:28 | 640,095 | 03/01/2011 20:48:29 | 1,316 | 68 | Elastic Search limit results | In MySQL I can do something like:
SELECT id FROM table WHERE field = 'foo' LIMIT 5
If the table has 10,000 rows, then this query is way way faster than if I left out the LIMIT part.
In ElasticSearch, I've got the following:
{
"query":{
"fuzzy_like_this_field":{
"body":{
"like_text":"REALLY LONG (snip) TEXT HERE",
"max_query_terms":1,
"min_similarity":0.95,
"ignore_tf":true
}
}
}
}
When I run this search, it takes a few seconds, whereas mysql can return results for the same query in far, far less time.
If I pass in the size parameter (set to 1), it successfully only returns 1 result, but the query itself isn't any faster than if I had set the size to unlimited and returned all the results. I suspect the query is being run in its entirety and only 1 result is being returned after the query is done processing. This means the "size" attribute is useless for my purposes.
Is there any way to have my search stop searching as soon as it finds a single record that matches the fuzzy search, rather than processing every record in the index before returning a response? Am I misunderstanding something more fundmental about this?
Thanks in advance. | mysql | elasticsearch | null | null | null | null | open | Elastic Search limit results
===
In MySQL I can do something like:
SELECT id FROM table WHERE field = 'foo' LIMIT 5
If the table has 10,000 rows, then this query is way way faster than if I left out the LIMIT part.
In ElasticSearch, I've got the following:
{
"query":{
"fuzzy_like_this_field":{
"body":{
"like_text":"REALLY LONG (snip) TEXT HERE",
"max_query_terms":1,
"min_similarity":0.95,
"ignore_tf":true
}
}
}
}
When I run this search, it takes a few seconds, whereas mysql can return results for the same query in far, far less time.
If I pass in the size parameter (set to 1), it successfully only returns 1 result, but the query itself isn't any faster than if I had set the size to unlimited and returned all the results. I suspect the query is being run in its entirety and only 1 result is being returned after the query is done processing. This means the "size" attribute is useless for my purposes.
Is there any way to have my search stop searching as soon as it finds a single record that matches the fuzzy search, rather than processing every record in the index before returning a response? Am I misunderstanding something more fundmental about this?
Thanks in advance. | 0 |
4,057,755 | 10/30/2010 07:42:35 | 488,612 | 10/27/2010 09:36:34 | 15 | 0 | How to obscure the numbers in the textarea field. | I have using cakephp and I want to obscure all numbers which is more than six digits.
something like this
$string = "My id number is 77765444 in Sales dept.";
becomes
$string = "My id number is XXXXXXXX in Sales dept."
I appreciate any help.
Thanks. | php | regex | cakephp | preg-replace | null | null | open | How to obscure the numbers in the textarea field.
===
I have using cakephp and I want to obscure all numbers which is more than six digits.
something like this
$string = "My id number is 77765444 in Sales dept.";
becomes
$string = "My id number is XXXXXXXX in Sales dept."
I appreciate any help.
Thanks. | 0 |
11,325,773 | 07/04/2012 09:01:08 | 1,390,928 | 05/12/2012 10:27:08 | 1 | 0 | Encryption and Decryption in android programming | i want to create one app to encrypte and decrypt a file, i know about AES Algorithm but i need a sample to help me for start this project . thanks | java | android | encryption | null | null | 07/04/2012 09:15:14 | not a real question | Encryption and Decryption in android programming
===
i want to create one app to encrypte and decrypt a file, i know about AES Algorithm but i need a sample to help me for start this project . thanks | 1 |
2,463,507 | 03/17/2010 15:24:02 | 275,890 | 02/18/2010 08:31:12 | 11 | 0 | onMouseOver not working fine with hover | i'm trying to get a popup window when hovering a div by calling the following function onMouseOver
function PopUp(h) {
$('#task_' + h).hover(function (evt) {
var html1 = '<div id="box">';
html1 += '<h4>Taskbar ' + h + ' ännu en test - fredagstest </h4>';
//html += '<img src="Pictures/DesertMini.jpg" alt="image"/>';
html1 += '<p>"Test för task nr: ' + h + ' <br/>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium asperiores repellat."</p>';
html1 += '</div>';
$('#test').append(html1).children('#box').hide().fadeIn(100)
$('#box')
.css('top', evt.pageY)
.css('left', evt.pageX + 20)
.css('z-index', 1000000);
}, function () {
// mouse out
$('#box').remove();
});
$('#task_' + h).mousemove(function (evt) {
$('#box')
.css('top', evt.pageY)
.css('left', evt.pageX + 20)
.css('z-index', 1000000);
});
}
h is some number i'm sending to the function
<div (some attributes) onMouseOver="PopUp('+someNumber+');">
but the onMouseOver is not working fine with the hover
what do i do?
thanks a trillion in advance...
Lina | javascript | onmouseover | hover | jquery | null | null | open | onMouseOver not working fine with hover
===
i'm trying to get a popup window when hovering a div by calling the following function onMouseOver
function PopUp(h) {
$('#task_' + h).hover(function (evt) {
var html1 = '<div id="box">';
html1 += '<h4>Taskbar ' + h + ' ännu en test - fredagstest </h4>';
//html += '<img src="Pictures/DesertMini.jpg" alt="image"/>';
html1 += '<p>"Test för task nr: ' + h + ' <br/>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium asperiores repellat."</p>';
html1 += '</div>';
$('#test').append(html1).children('#box').hide().fadeIn(100)
$('#box')
.css('top', evt.pageY)
.css('left', evt.pageX + 20)
.css('z-index', 1000000);
}, function () {
// mouse out
$('#box').remove();
});
$('#task_' + h).mousemove(function (evt) {
$('#box')
.css('top', evt.pageY)
.css('left', evt.pageX + 20)
.css('z-index', 1000000);
});
}
h is some number i'm sending to the function
<div (some attributes) onMouseOver="PopUp('+someNumber+');">
but the onMouseOver is not working fine with the hover
what do i do?
thanks a trillion in advance...
Lina | 0 |
5,763,266 | 04/23/2011 08:55:15 | 236,639 | 12/22/2009 07:08:53 | 294 | 45 | Imgrating to GIT from SVN | Right now we are using **SVN** for our subversion control. And we are pretty happy with it. We use it for following case
+ Project Sharing and merging the code.
Now we also want to use the following case
+ There is a folder say "plugin" which is needed to include in many project as a subfolder , now when we change something in "plugin" and commit it. The changes should affect in the subfolder of all project having it (atleast it should show incoming changes for the plugin folder in projects).
---
**I have following queries:**
1. Can we do the second case in subversion. If yes, how??
2. Is git better for both the cases, if yes, then how to start with git and achive the two cases.
| svn | git | git-svn | null | null | null | open | Imgrating to GIT from SVN
===
Right now we are using **SVN** for our subversion control. And we are pretty happy with it. We use it for following case
+ Project Sharing and merging the code.
Now we also want to use the following case
+ There is a folder say "plugin" which is needed to include in many project as a subfolder , now when we change something in "plugin" and commit it. The changes should affect in the subfolder of all project having it (atleast it should show incoming changes for the plugin folder in projects).
---
**I have following queries:**
1. Can we do the second case in subversion. If yes, how??
2. Is git better for both the cases, if yes, then how to start with git and achive the two cases.
| 0 |
642,474 | 03/13/2009 12:35:21 | 5,838 | 09/11/2008 13:46:29 | 46 | 1 | Mysql query with wildcard on number strings | I am trying to query a mysql table which contains strings of numbers
(i.e. '1,2,3,4,5').
How do I search to see if it has '1' but not '11' bearing in mind if it is '9,10' '9%' doesnt work?? | mysql | wildcard | null | null | null | null | open | Mysql query with wildcard on number strings
===
I am trying to query a mysql table which contains strings of numbers
(i.e. '1,2,3,4,5').
How do I search to see if it has '1' but not '11' bearing in mind if it is '9,10' '9%' doesnt work?? | 0 |
5,256,504 | 03/10/2011 07:03:37 | 158,999 | 08/19/2009 05:56:03 | 22 | 7 | How to select specific java plug-in to run applet. | I have installed jre 1.4.1 and jre 1.6.24 on my windows machine. I want test my applet on both the version. But after installing jre 1.6.24, I am not able to switch to 1.4.1.
The steps I am doing to change the jre version are as below,
1. **Deselected 1.6.24 from java control panel and selected 1.4.1.**
2. **unchecked "next generation plugin"
from advanced tab of java control
panel.**
3. **disable 1.6.24 plugins
from "manage add-ons" of IE**
but still IE is using 1.6.24 to run the applet. Are there any more steps involved ?
Any help on this much appreciated !!!
Thanks in advance..
| java | plugins | jre | applet | null | null | open | How to select specific java plug-in to run applet.
===
I have installed jre 1.4.1 and jre 1.6.24 on my windows machine. I want test my applet on both the version. But after installing jre 1.6.24, I am not able to switch to 1.4.1.
The steps I am doing to change the jre version are as below,
1. **Deselected 1.6.24 from java control panel and selected 1.4.1.**
2. **unchecked "next generation plugin"
from advanced tab of java control
panel.**
3. **disable 1.6.24 plugins
from "manage add-ons" of IE**
but still IE is using 1.6.24 to run the applet. Are there any more steps involved ?
Any help on this much appreciated !!!
Thanks in advance..
| 0 |
9,460,991 | 02/27/2012 06:37:10 | 1,101,518 | 12/16/2011 08:15:04 | 36 | 0 | how to save fixed line call log to database | I am going to develop a client side application such a way that my client should able to receive fixed line calls through a computer and the application which is running on client's machine able to save the caller's number to a remote database.
Is there any application currently available for this? What are the requirements should I have before begin the project?
| c# | java | c#-3.0 | null | null | 02/28/2012 13:55:10 | not constructive | how to save fixed line call log to database
===
I am going to develop a client side application such a way that my client should able to receive fixed line calls through a computer and the application which is running on client's machine able to save the caller's number to a remote database.
Is there any application currently available for this? What are the requirements should I have before begin the project?
| 4 |
9,182,348 | 02/07/2012 19:12:32 | 1,088,618 | 12/08/2011 21:35:21 | 90 | 1 | C# With Unity Book / Tutorial | I'm trying to learn C# as well as Unity, and I have been looking around for a book on this for a while now. Most of the books I've come across seem to only regard one or the other. I was wondering if anyone here can recommend a good C# book focused game development, preferably using Unity? A tutorial would be great as well. I was also wondering if I should just learn basic C# with MonoDevelop, but I was unsure if learning that alone would allow me to jump right into game development
Thank you! | c# | .net | books | unity | null | 02/07/2012 19:32:06 | not constructive | C# With Unity Book / Tutorial
===
I'm trying to learn C# as well as Unity, and I have been looking around for a book on this for a while now. Most of the books I've come across seem to only regard one or the other. I was wondering if anyone here can recommend a good C# book focused game development, preferably using Unity? A tutorial would be great as well. I was also wondering if I should just learn basic C# with MonoDevelop, but I was unsure if learning that alone would allow me to jump right into game development
Thank you! | 4 |
4,553,495 | 12/29/2010 11:01:34 | 849,669 | 01/01/2010 11:21:35 | 442 | 9 | Javascript - closing tab | Is it possible to close tab via javascript?
For example i have redirected user from email to my page, then i need to open pop-up window and close the tab i have redirected user to.
window.close() is working only for windows created inside javascript?
Is it possible to modify tab, so that it's become popup window?
Thanks ;) | javascript | null | null | null | null | null | open | Javascript - closing tab
===
Is it possible to close tab via javascript?
For example i have redirected user from email to my page, then i need to open pop-up window and close the tab i have redirected user to.
window.close() is working only for windows created inside javascript?
Is it possible to modify tab, so that it's become popup window?
Thanks ;) | 0 |
8,672,326 | 12/29/2011 19:14:02 | 92,568 | 04/18/2009 18:45:13 | 1,751 | 54 | Programming contest approach | This is broad question, but would like to know views of experts.
I came across one document [Suffix arrays – a contest approach][1], also found some comments that participant should be ready with such data structures already in hand. now a days lot of online programming puzzles are coming with time bound. So I would like to know what are the other data-structures/algorithms should one be ready with.
[1]: http://www.google.co.in/url?sa=t&rct=j&q=suffix%20array%20programming%20contest&source=web&cd=1&sqi=2&ved=0CCcQFjAA&url=http://algorithmics.comp.nus.edu.sg/wiki/_media/training/suff_ar_eng.pdf?id=training%253Aioi_workshop_2009&cache=cache&ei=Q7v8Tpv8FMjwrQeT0ZgB&usg=AFQjCNGd72U2H3hX80UDT_ZG2htVHtlL2A&cad=rja | algorithm | data-structures | interview-questions | null | null | 12/30/2011 16:10:56 | not constructive | Programming contest approach
===
This is broad question, but would like to know views of experts.
I came across one document [Suffix arrays – a contest approach][1], also found some comments that participant should be ready with such data structures already in hand. now a days lot of online programming puzzles are coming with time bound. So I would like to know what are the other data-structures/algorithms should one be ready with.
[1]: http://www.google.co.in/url?sa=t&rct=j&q=suffix%20array%20programming%20contest&source=web&cd=1&sqi=2&ved=0CCcQFjAA&url=http://algorithmics.comp.nus.edu.sg/wiki/_media/training/suff_ar_eng.pdf?id=training%253Aioi_workshop_2009&cache=cache&ei=Q7v8Tpv8FMjwrQeT0ZgB&usg=AFQjCNGd72U2H3hX80UDT_ZG2htVHtlL2A&cad=rja | 4 |
5,640,446 | 04/12/2011 19:22:48 | 698,984 | 04/08/2011 16:00:53 | 1 | 0 | ROR Observer doesnt work | OrderItem observer doenst calculate total sum when updating OrderItem :((
what's wrong?
class OrderItemObserver < ActiveRecord::Observer
def after_save(order_item)
order_item.order.total_sum = order_item.order.order_items.collect{|i| i.price.to_i}.sum
end
end
listed in application.rb
config.active_record.observers = :order_observer, :order_item_observer
| ruby-on-rails-3 | observer-pattern | null | null | null | null | open | ROR Observer doesnt work
===
OrderItem observer doenst calculate total sum when updating OrderItem :((
what's wrong?
class OrderItemObserver < ActiveRecord::Observer
def after_save(order_item)
order_item.order.total_sum = order_item.order.order_items.collect{|i| i.price.to_i}.sum
end
end
listed in application.rb
config.active_record.observers = :order_observer, :order_item_observer
| 0 |
8,152,320 | 11/16/2011 13:19:47 | 1,046,724 | 11/15/2011 03:02:10 | 1 | 0 | Message rate between clients/server in MMORPG | How often should the clients send requests to the server?
And how often should the server send updates to the clients? Are there any recommendations? | java | client | mmorpg | mmo | null | 11/16/2011 15:15:52 | not a real question | Message rate between clients/server in MMORPG
===
How often should the clients send requests to the server?
And how often should the server send updates to the clients? Are there any recommendations? | 1 |
11,330,198 | 07/04/2012 13:35:58 | 887,835 | 08/10/2011 12:10:52 | 425 | 16 | Render Chart control into html string to append div | I am working on an ASP.net/C# application and I need to do the following:
My question is how can I render a Chart control (the one that comes with the .net4) created dynamically in C# to and HTML string?
What I mean is this:
I am creating a chart dynamically in C#
//CREATE THE CHART
Chart Chart1 = new Chart();
//BIND THE DATA TO THE CHART
Chart1.Series.Add(new Series());
Chart1.Series[0].Points.DataBindXY(xName, yVal);
//SET THE CHART TYPE TO BE PIE
Chart1.Series[0].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Pie;
Chart1.Series[0]["PieLabelStyle"] = "Outside";
Chart1.Series[0]["PieStartAngle"] = "-90";
//ADD A PLACE HOLDER CHART AREA TO THE CHART
//SET THE CHART AREA TO BE 3D
Chart1.ChartAreas.Add(new ChartArea());
Chart1.ChartAreas[0].Area3DStyle.Enable3D = true;
//ADD A PLACE HOLDER LEGEND TO THE CHART
//DISABLE THE LEGEND
Chart1.Legends.Add(new Legend());
Chart1.Legends[0].Enabled = false;
Then I want to Render it as HTML string and return it.
The reason I want this is because I am using AJAX Jquery to call the function that will get the chart as an HTMl string and append it to the 'ChartDiv' div element, in order to display it as a chart
$.ajax({
type: "POST",
url: "Service/RPCWebService.asmx/GetHTMLRenderForCountry",
dataType: "json",
async: true,
data: "{'CountryCode':'" + countryCode + "'}",
contentType: "application/json; charset=utf-8",
success: function (data) {
$("#ChartDiv").append(data.d);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}
});
Thanks a lot for any help | c# | asp.net | charts | rendering | null | null | open | Render Chart control into html string to append div
===
I am working on an ASP.net/C# application and I need to do the following:
My question is how can I render a Chart control (the one that comes with the .net4) created dynamically in C# to and HTML string?
What I mean is this:
I am creating a chart dynamically in C#
//CREATE THE CHART
Chart Chart1 = new Chart();
//BIND THE DATA TO THE CHART
Chart1.Series.Add(new Series());
Chart1.Series[0].Points.DataBindXY(xName, yVal);
//SET THE CHART TYPE TO BE PIE
Chart1.Series[0].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Pie;
Chart1.Series[0]["PieLabelStyle"] = "Outside";
Chart1.Series[0]["PieStartAngle"] = "-90";
//ADD A PLACE HOLDER CHART AREA TO THE CHART
//SET THE CHART AREA TO BE 3D
Chart1.ChartAreas.Add(new ChartArea());
Chart1.ChartAreas[0].Area3DStyle.Enable3D = true;
//ADD A PLACE HOLDER LEGEND TO THE CHART
//DISABLE THE LEGEND
Chart1.Legends.Add(new Legend());
Chart1.Legends[0].Enabled = false;
Then I want to Render it as HTML string and return it.
The reason I want this is because I am using AJAX Jquery to call the function that will get the chart as an HTMl string and append it to the 'ChartDiv' div element, in order to display it as a chart
$.ajax({
type: "POST",
url: "Service/RPCWebService.asmx/GetHTMLRenderForCountry",
dataType: "json",
async: true,
data: "{'CountryCode':'" + countryCode + "'}",
contentType: "application/json; charset=utf-8",
success: function (data) {
$("#ChartDiv").append(data.d);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}
});
Thanks a lot for any help | 0 |
9,720,591 | 03/15/2012 13:23:42 | 621,645 | 08/26/2010 09:37:59 | 303 | 0 | Sort an NSArray witch contain custom objects | I have an `NSArray` witch contain objects. my Objects are like this :
@interface Personne : NSObject{
int _id;
NSString *name;
}
I have a Web services witch return to me persons by name. for example when i click in the serach bar an i put "a", the server return to me all the persons witch her name contain "a", i put the result in an `NSArray`. Now i woulk like to sort my array and put the persons witch her name begins with "a" in the beginning of my array and the others at the end. How i can do this?
Thanks
| objective-c | ios | null | null | null | null | open | Sort an NSArray witch contain custom objects
===
I have an `NSArray` witch contain objects. my Objects are like this :
@interface Personne : NSObject{
int _id;
NSString *name;
}
I have a Web services witch return to me persons by name. for example when i click in the serach bar an i put "a", the server return to me all the persons witch her name contain "a", i put the result in an `NSArray`. Now i woulk like to sort my array and put the persons witch her name begins with "a" in the beginning of my array and the others at the end. How i can do this?
Thanks
| 0 |
10,483,809 | 05/07/2012 14:25:29 | 1,072,847 | 11/30/2011 07:36:14 | 28 | 0 | how to export data to csv from html table | Hi can any one tell me how to write the code to export csv file from html page.
I am trying to use the code as follows
var doc =document.open("text/csv",replace);
the doc element i am sending to a fuction where i am getting all my table data.
and i am writing data into doc "document.write(data);
but i am not able to get the data into csv file by asking some popup like open or save,
just it is printing the data into my current page.
can any one help me how to achieve it?
Regards,
kamesh
| javascript | null | null | null | null | 05/07/2012 20:31:02 | not a real question | how to export data to csv from html table
===
Hi can any one tell me how to write the code to export csv file from html page.
I am trying to use the code as follows
var doc =document.open("text/csv",replace);
the doc element i am sending to a fuction where i am getting all my table data.
and i am writing data into doc "document.write(data);
but i am not able to get the data into csv file by asking some popup like open or save,
just it is printing the data into my current page.
can any one help me how to achieve it?
Regards,
kamesh
| 1 |
7,272,549 | 09/01/2011 15:24:30 | 106,402 | 05/13/2009 15:25:39 | 1,142 | 64 | FlowDocument TableColumn Width with star notation doesn't work consistently? | Can anyone explain why these two documents show differently?
Good one:
<FlowDocument>
<Table>
<Table.Columns>
<TableColumn Width="1*" />
<TableColumn Width="2*" />
</Table.Columns>
<TableRowGroup>
<TableRow>
<TableCell>
<Paragraph>
<Run>Name</Run>
</Paragraph>
</TableCell>
<TableCell>
<Paragraph>
<Run>Address</Run>
</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
</FlowDocument>
Bad one:
<FlowDocument>
<Table>
<Table.Columns>
<TableColumn Width="1000*" />
<TableColumn Width="2000*" />
</Table.Columns>
<TableRowGroup>
<TableRow>
<TableCell>
<Paragraph>
<Run>Name</Run>
</Paragraph>
</TableCell>
<TableCell>
<Paragraph>
<Run>Address</Run>
</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
</FlowDocument>
The only difference is the multiplier of the star. Is this a bug? | wpf | flowdocument | null | null | null | null | open | FlowDocument TableColumn Width with star notation doesn't work consistently?
===
Can anyone explain why these two documents show differently?
Good one:
<FlowDocument>
<Table>
<Table.Columns>
<TableColumn Width="1*" />
<TableColumn Width="2*" />
</Table.Columns>
<TableRowGroup>
<TableRow>
<TableCell>
<Paragraph>
<Run>Name</Run>
</Paragraph>
</TableCell>
<TableCell>
<Paragraph>
<Run>Address</Run>
</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
</FlowDocument>
Bad one:
<FlowDocument>
<Table>
<Table.Columns>
<TableColumn Width="1000*" />
<TableColumn Width="2000*" />
</Table.Columns>
<TableRowGroup>
<TableRow>
<TableCell>
<Paragraph>
<Run>Name</Run>
</Paragraph>
</TableCell>
<TableCell>
<Paragraph>
<Run>Address</Run>
</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
</FlowDocument>
The only difference is the multiplier of the star. Is this a bug? | 0 |
8,269,952 | 11/25/2011 13:37:51 | 1,065,686 | 11/25/2011 13:14:27 | 1 | 0 | Distribute banned app outside Android Market with donation app in Market | Yesterday my hit app was banned from Android Market and now I´m looking for a different setup.
My planned setup:
- Empty payed donation app inside Market.
- Free app outside Market with donation link to my donation app.
First, am I allowed to have a empty donation app?
Does anyone know if google will have a problem with the fact that they are supporting my banned app through my donation app? I guess, for example a porn site cannot have a paying solution with an empty app.
I sent this question to google but I don´t expect a fast reply. | android | free | publish | null | null | 11/25/2011 15:49:01 | off topic | Distribute banned app outside Android Market with donation app in Market
===
Yesterday my hit app was banned from Android Market and now I´m looking for a different setup.
My planned setup:
- Empty payed donation app inside Market.
- Free app outside Market with donation link to my donation app.
First, am I allowed to have a empty donation app?
Does anyone know if google will have a problem with the fact that they are supporting my banned app through my donation app? I guess, for example a porn site cannot have a paying solution with an empty app.
I sent this question to google but I don´t expect a fast reply. | 2 |
10,127,391 | 04/12/2012 16:03:13 | 274,030 | 02/16/2010 03:13:30 | 46 | 6 | Automatic AWeber Authentication? How do I access one user's data programmatically without them having to log in? | How can I use the AWeber API to automatically check whether an email address exists on a given user's list? The AWeber paradigm is baffling to me and their docs are poor. Essentially, what you get is the ability to put the AWeber login form on your site (just like this one: https://www.aweber.com/login.htm), so ANY AWeber user could use my site to log into their AWeber account and view their subscriber and list data. This is useless.
The API keys are moot: they simply establish that yes, I am a developer and yes, I have registered my app. The API keys have _nothing_ to do with USER data.
This is not at all how MailChimp handles logins: each user can download their own API keys and use them to authenticate and then programmatically retrieve the subscriber data from their lists.
What I need to do is to create a "Members' Area" on my website, and in order for visitors to see the content in the members-only content, they must join my list. It's a simplified login form that would ask only for the email address (no password is necessary). But I cannot see how to do this with AWeber's convoluted oAuth restrictions. The only way I can currently check email addresses is by logging into my own form (the local copy of the https://www.aweber.com/login.htm form) and then checking the email address. That won't work programmatically. If I can't automatically access subscriber data, then what's the point of the API?
How can I automate authentication so my application can retrieve subscriber information from my user's lists without me having to log in? | oauth | aweber | null | null | null | null | open | Automatic AWeber Authentication? How do I access one user's data programmatically without them having to log in?
===
How can I use the AWeber API to automatically check whether an email address exists on a given user's list? The AWeber paradigm is baffling to me and their docs are poor. Essentially, what you get is the ability to put the AWeber login form on your site (just like this one: https://www.aweber.com/login.htm), so ANY AWeber user could use my site to log into their AWeber account and view their subscriber and list data. This is useless.
The API keys are moot: they simply establish that yes, I am a developer and yes, I have registered my app. The API keys have _nothing_ to do with USER data.
This is not at all how MailChimp handles logins: each user can download their own API keys and use them to authenticate and then programmatically retrieve the subscriber data from their lists.
What I need to do is to create a "Members' Area" on my website, and in order for visitors to see the content in the members-only content, they must join my list. It's a simplified login form that would ask only for the email address (no password is necessary). But I cannot see how to do this with AWeber's convoluted oAuth restrictions. The only way I can currently check email addresses is by logging into my own form (the local copy of the https://www.aweber.com/login.htm form) and then checking the email address. That won't work programmatically. If I can't automatically access subscriber data, then what's the point of the API?
How can I automate authentication so my application can retrieve subscriber information from my user's lists without me having to log in? | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.