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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,211,864 | 06/02/2011 07:50:02 | 205,787 | 11/07/2009 21:39:28 | 8 | 2 | Replacing window.setTimeout | I'm thinking of replacing window.setTimeout with a function of my own (for example we could have a generic error handler for exceptions thrown in callbacks).
The code will be along these lines:
var nativeSetTimeout = window.setTimeout;
window.setTimeout = function(fn, interval){
// specific logic could go in here, we could wrap fn in a
// try-catch block for example
nativeSetTimeout(fn, interval);
}
Given that my app will stay in a single iframe, is there any outstanding issue that I should be concerned about? | javascript | null | null | null | null | null | open | Replacing window.setTimeout
===
I'm thinking of replacing window.setTimeout with a function of my own (for example we could have a generic error handler for exceptions thrown in callbacks).
The code will be along these lines:
var nativeSetTimeout = window.setTimeout;
window.setTimeout = function(fn, interval){
// specific logic could go in here, we could wrap fn in a
// try-catch block for example
nativeSetTimeout(fn, interval);
}
Given that my app will stay in a single iframe, is there any outstanding issue that I should be concerned about? | 0 |
9,326,788 | 02/17/2012 10:43:23 | 1,012,825 | 10/25/2011 13:46:59 | 1 | 0 | Create Forum Threads by sending SMS | Maybe there is ready solution for any Forum where people can make Theread's in forum by sending sms.
User send sms-get code-make a forum thread. | php | null | null | null | null | 02/17/2012 21:39:31 | not a real question | Create Forum Threads by sending SMS
===
Maybe there is ready solution for any Forum where people can make Theread's in forum by sending sms.
User send sms-get code-make a forum thread. | 1 |
4,857,185 | 01/31/2011 23:09:23 | 509,670 | 11/16/2010 15:17:24 | 409 | 10 | How to shuffle my Array or String list in a more readable way? | Imagine you want to have a very readable, easily editable list of items, separated by comma's only, and then echo 3 random items from that list. Array or string doesnt matter. For now, I got the following working (Thanks webbiedave!)
$fruits = array('Mango', 'Banana', 'Cucumber', 'Pear', 'Peach', 'Coconut');
$keys = array_rand($fruits, 3); // get 3 random keys from your array
foreach ($keys as $key) { // cycle through the keys to get the values
echo $fruits[$key] . "<br/>";
}
Outputs:
Coconut
Pear
Banana
Only thing unsolved here is that the list is not so readable as I wished:
Personally, I very much prefer the input list to be without the quotes e.g. `Mango` as opposed to `'Mango'` , meaning preferably like so:
`(Mango, Banana, Cucumber, Pear, Peach, Suthern Melon, Coconut)`
Is this easily possible? Thanks very much for your input.
| arrays | string | list | random | shuffle | null | open | How to shuffle my Array or String list in a more readable way?
===
Imagine you want to have a very readable, easily editable list of items, separated by comma's only, and then echo 3 random items from that list. Array or string doesnt matter. For now, I got the following working (Thanks webbiedave!)
$fruits = array('Mango', 'Banana', 'Cucumber', 'Pear', 'Peach', 'Coconut');
$keys = array_rand($fruits, 3); // get 3 random keys from your array
foreach ($keys as $key) { // cycle through the keys to get the values
echo $fruits[$key] . "<br/>";
}
Outputs:
Coconut
Pear
Banana
Only thing unsolved here is that the list is not so readable as I wished:
Personally, I very much prefer the input list to be without the quotes e.g. `Mango` as opposed to `'Mango'` , meaning preferably like so:
`(Mango, Banana, Cucumber, Pear, Peach, Suthern Melon, Coconut)`
Is this easily possible? Thanks very much for your input.
| 0 |
7,655,293 | 10/04/2011 23:50:21 | 89,691 | 04/11/2009 06:05:44 | 1,020 | 14 | What is the maximum length for a querystring? | I'm using HTTP requests in my program to pass data via a querystring to a web-based status page. The requests are of the form:
http://www.mysite.com/poststatus.asp?ID="FRED"&widgetscompleted=1234&...parameterN=valueN
The ASP page parses the querystring and updates a database.
My question is: what is the sensible length limit of the querystring? I've seen mention of 2000-odd bytes but that seems to be browser-related and there is no browser involved here - just my app (using Indy) and IIS.
| asp | query-string | uri | maxlength | null | null | open | What is the maximum length for a querystring?
===
I'm using HTTP requests in my program to pass data via a querystring to a web-based status page. The requests are of the form:
http://www.mysite.com/poststatus.asp?ID="FRED"&widgetscompleted=1234&...parameterN=valueN
The ASP page parses the querystring and updates a database.
My question is: what is the sensible length limit of the querystring? I've seen mention of 2000-odd bytes but that seems to be browser-related and there is no browser involved here - just my app (using Indy) and IIS.
| 0 |
9,850,738 | 03/24/2012 09:52:32 | 647,909 | 03/07/2011 09:50:16 | 362 | 5 | Create element and append value of input | I'm trying to create an element(div) on keyup of the space key (key-code 32). And also append the value of input as text in the new created div. This is what I have so far:
$(input).live('keyup', function(e){
if (e.keyCode == 32) {
var q = $(input).val();
var div = $('<div/>');
div.append(q);
}
});
It doesn't work. Here is an example: [JsBin][1]
[1]: http://jsbin.com/utudow/edit#javascript,html,live | jquery | append | keyup | null | null | null | open | Create element and append value of input
===
I'm trying to create an element(div) on keyup of the space key (key-code 32). And also append the value of input as text in the new created div. This is what I have so far:
$(input).live('keyup', function(e){
if (e.keyCode == 32) {
var q = $(input).val();
var div = $('<div/>');
div.append(q);
}
});
It doesn't work. Here is an example: [JsBin][1]
[1]: http://jsbin.com/utudow/edit#javascript,html,live | 0 |
10,544,449 | 05/11/2012 02:00:17 | 1,272,683 | 03/15/2012 21:41:53 | 48 | 1 | Why can't I use * for list in Python like this? |
a=[1,2,3]
b=[0,*a,4]
I know that `[0]+a+[4]` can do the same thing. But I think it's easier if `*` can be used there.
Does anyone has any ideas? | python | list | script | null | null | 05/11/2012 02:09:23 | not constructive | Why can't I use * for list in Python like this?
===
a=[1,2,3]
b=[0,*a,4]
I know that `[0]+a+[4]` can do the same thing. But I think it's easier if `*` can be used there.
Does anyone has any ideas? | 4 |
11,673,883 | 07/26/2012 16:31:54 | 1,486,537 | 06/27/2012 18:06:42 | 49 | 3 | Hibernate - Could not parse mapping document from resource | I'm working with hibernate to create a login validation with database. When credentials are sent, I get the following error:
> Could not parse mapping document from resource
> com/hibernate/Users.hbm.xml
Here is .cfg file
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/firstsql
</property>
<property name="connection.username">root</property>
<property name="connection.password">pass</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="myeclipse.connection.profile">MySQL JDBC</property>
<mapping resource="com/hibernate/Users.hbm.xml" />
<mapping class="com.hibernate.Users" />
</session-factory>
</hibernate-configuration>
and the file in question - Users.hbm.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class catalog="firstsql" name="com.hibernate.Users" table="users">
<composite-id class="com.hibernate.UsersId" mapped="false"
name="id" unsaved-value="undefined">
<key-property name="username" type="java.lang.String">
<column length="20" name="Username"/>
</key-property>
<key-property name="ID" type="java.lang.String">
<column length="10" name="ID"/>
</key-property>
<key-property name="password" type="java.lang.String">
<column length="20" name="Password"/>
</key-property>
<key-property name="firstName" type="java.lang.String">
<column length="20" name="FirstName"/>
</key-property>
<key-property name="lastName" type="java.lang.String">
<column length="20" name="LastName"/>
</key-property>
<key-property name="resume">
<column length="40" name="Resume"/>
</key-property>
</composite-id>
</class>
</hibernate-mapping>
any help addressing this issue would be greatly appreciated
| hibernate | parsing | mapping | null | null | null | open | Hibernate - Could not parse mapping document from resource
===
I'm working with hibernate to create a login validation with database. When credentials are sent, I get the following error:
> Could not parse mapping document from resource
> com/hibernate/Users.hbm.xml
Here is .cfg file
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/firstsql
</property>
<property name="connection.username">root</property>
<property name="connection.password">pass</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="myeclipse.connection.profile">MySQL JDBC</property>
<mapping resource="com/hibernate/Users.hbm.xml" />
<mapping class="com.hibernate.Users" />
</session-factory>
</hibernate-configuration>
and the file in question - Users.hbm.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class catalog="firstsql" name="com.hibernate.Users" table="users">
<composite-id class="com.hibernate.UsersId" mapped="false"
name="id" unsaved-value="undefined">
<key-property name="username" type="java.lang.String">
<column length="20" name="Username"/>
</key-property>
<key-property name="ID" type="java.lang.String">
<column length="10" name="ID"/>
</key-property>
<key-property name="password" type="java.lang.String">
<column length="20" name="Password"/>
</key-property>
<key-property name="firstName" type="java.lang.String">
<column length="20" name="FirstName"/>
</key-property>
<key-property name="lastName" type="java.lang.String">
<column length="20" name="LastName"/>
</key-property>
<key-property name="resume">
<column length="40" name="Resume"/>
</key-property>
</composite-id>
</class>
</hibernate-mapping>
any help addressing this issue would be greatly appreciated
| 0 |
10,205,505 | 04/18/2012 08:18:40 | 1,037,686 | 11/09/2011 12:47:24 | 3 | 0 | Fancy Box center within Facebook iframe fanpage | Hi I have a 1500px high fan page in facebook.
The fancy box popup centers in the middle of the 1500px iframe.
CSS positioning of #fancybox-wrap class to an absolute position (top:
50px !important;) does not work! If you are at bottom of page
and fire the fancy box popup it is not visible until you scroll back to top of the page.
I looked at the following STACKOVERFLOW fix but this did not work::
http://stackoverflow.com/questions/7893946/fancybox-positioning-insid...
I am using the latest version of fancybox.
Thanks in advance for any help
(am pulling my hair out :()
cheers
Jaimie | facebook | fancybox | facebook-iframe | null | null | null | open | Fancy Box center within Facebook iframe fanpage
===
Hi I have a 1500px high fan page in facebook.
The fancy box popup centers in the middle of the 1500px iframe.
CSS positioning of #fancybox-wrap class to an absolute position (top:
50px !important;) does not work! If you are at bottom of page
and fire the fancy box popup it is not visible until you scroll back to top of the page.
I looked at the following STACKOVERFLOW fix but this did not work::
http://stackoverflow.com/questions/7893946/fancybox-positioning-insid...
I am using the latest version of fancybox.
Thanks in advance for any help
(am pulling my hair out :()
cheers
Jaimie | 0 |
6,901,203 | 08/01/2011 16:07:01 | 224,198 | 10/26/2009 14:51:24 | 56 | 0 | Dojo InlineEditBox, how to prevent blur based on postCreate value | I have InlineEditBox that I want to do something specific with. When the editNode is loaded and displayed when the InlineEditBox receives an _onClick event, I want to connect a function in a parent class to the input text box elements onblur event so I can validate if a default value is still set. If so, I want to prevent the blur event and refocus back on the text box.
Testing for the default value and setting focus back are no problem, the problem seems to be the point at which I need to create the connection. The child elements of InlineEditBox that I need to be able to navigate to are not yet instantiated and not available to hookup to a connect event. The path should be
[InlineEditBox ].wrapperWidget.edtiorNode.focusNode
but this is not available by the time I reach the connect statement blow:
var children = me.selector._getChildren();
var label = children[children.length -1].inlineEditorNode;
label._onClick();
me.connect(label.editNode,"onblur",dojo.hitch(me, "isDefaultName",label.get("value")));
So I'm kind of stuck. Is there a way to callback from InlineEditBox once it's child editor has been created? I'm trying not to mess with the dijit class, just the parent classes that call and instantiate it.
| javascript | dojo | dijit | inlineeditbox | null | null | open | Dojo InlineEditBox, how to prevent blur based on postCreate value
===
I have InlineEditBox that I want to do something specific with. When the editNode is loaded and displayed when the InlineEditBox receives an _onClick event, I want to connect a function in a parent class to the input text box elements onblur event so I can validate if a default value is still set. If so, I want to prevent the blur event and refocus back on the text box.
Testing for the default value and setting focus back are no problem, the problem seems to be the point at which I need to create the connection. The child elements of InlineEditBox that I need to be able to navigate to are not yet instantiated and not available to hookup to a connect event. The path should be
[InlineEditBox ].wrapperWidget.edtiorNode.focusNode
but this is not available by the time I reach the connect statement blow:
var children = me.selector._getChildren();
var label = children[children.length -1].inlineEditorNode;
label._onClick();
me.connect(label.editNode,"onblur",dojo.hitch(me, "isDefaultName",label.get("value")));
So I'm kind of stuck. Is there a way to callback from InlineEditBox once it's child editor has been created? I'm trying not to mess with the dijit class, just the parent classes that call and instantiate it.
| 0 |
5,775,207 | 04/25/2011 04:38:53 | 723,234 | 04/25/2011 04:38:53 | 1 | 0 | Trying to find the median in Ruby using user-input | I am working on a problem that requires me to take numbers that are inputed from a keyboard and return the median.
I am calling it as an array.
numbers = Array.new.....
Any help after that?
| ruby | user-input | median | null | null | 04/25/2011 12:44:29 | not a real question | Trying to find the median in Ruby using user-input
===
I am working on a problem that requires me to take numbers that are inputed from a keyboard and return the median.
I am calling it as an array.
numbers = Array.new.....
Any help after that?
| 1 |
2,996,742 | 06/08/2010 11:10:59 | 348,778 | 05/24/2010 08:55:11 | 1 | 0 | MySQL - Update the same column twice | I need to update a column in a mysql table.
If I do it in two steps as below, is the column "col" updated twice in the disk ?
>update table SET col=3*col, col=col+2;
or is it written only once as in :
>update table SET col=3*col+2;
Thanks | mysql | update | null | null | null | null | open | MySQL - Update the same column twice
===
I need to update a column in a mysql table.
If I do it in two steps as below, is the column "col" updated twice in the disk ?
>update table SET col=3*col, col=col+2;
or is it written only once as in :
>update table SET col=3*col+2;
Thanks | 0 |
8,298,027 | 11/28/2011 15:21:44 | 318,751 | 04/16/2010 17:41:21 | 379 | 11 | Getting target of Action | I have created the fallowing Sample-Code:
class Program {
static void Main(string[] args) {
var x = new ActionTestClass();
x.ActionTest();
var y = x.Act.Target;
}
}
public class ActionTestClass {
public Action Act;
public void ActionTest() {
this.Act = new Action(this.ActionMethod);
}
private void ActionMethod() {
MessageBox.Show("This is a test.");
}
}
When I do this on this way, y will an object of type ActionTestClass (which is created for x). Now, when I change the line
this.Act = new Action(this.ActionMethod);
to
this.Act = new Action(() => MessageBox.Show("This is a test."));
y (the Target of the Action) will be null. Is there a way, that I can get the Target (in the sample the ActionTestClass-object) also on the way I use an Anonymous Action? | c# | .net | .net-4.0 | anonymous-methods | null | null | open | Getting target of Action
===
I have created the fallowing Sample-Code:
class Program {
static void Main(string[] args) {
var x = new ActionTestClass();
x.ActionTest();
var y = x.Act.Target;
}
}
public class ActionTestClass {
public Action Act;
public void ActionTest() {
this.Act = new Action(this.ActionMethod);
}
private void ActionMethod() {
MessageBox.Show("This is a test.");
}
}
When I do this on this way, y will an object of type ActionTestClass (which is created for x). Now, when I change the line
this.Act = new Action(this.ActionMethod);
to
this.Act = new Action(() => MessageBox.Show("This is a test."));
y (the Target of the Action) will be null. Is there a way, that I can get the Target (in the sample the ActionTestClass-object) also on the way I use an Anonymous Action? | 0 |
8,633,609 | 12/26/2011 06:54:03 | 995,244 | 10/14/2011 10:54:06 | 8 | 2 | What is the preferred white box testing framework for Perl? | I am new to perl, Can you tell me which framework is used for perl white box testing and how to use it. | perl | testing | null | null | null | 12/26/2011 14:44:39 | not constructive | What is the preferred white box testing framework for Perl?
===
I am new to perl, Can you tell me which framework is used for perl white box testing and how to use it. | 4 |
4,932,920 | 02/08/2011 12:22:54 | 608,097 | 02/08/2011 12:22:54 | 1 | 0 | Android: Injecting Javascript into a Webview outside the onPageFinished Event | Hey experts, actually it's a pretty simple question...just don't know about the answer.
I have an Android app, running a WebView that loads a certain page, also part of the app.
At a given moment, i want to call a javascript function inside the WebView page, but i wanna do this outside the onPageFinished event.
Is that possible? Any ideas?
Thanks in advance. | javascript | android | webview | injection | null | null | open | Android: Injecting Javascript into a Webview outside the onPageFinished Event
===
Hey experts, actually it's a pretty simple question...just don't know about the answer.
I have an Android app, running a WebView that loads a certain page, also part of the app.
At a given moment, i want to call a javascript function inside the WebView page, but i wanna do this outside the onPageFinished event.
Is that possible? Any ideas?
Thanks in advance. | 0 |
8,429,449 | 12/08/2011 10:23:54 | 942,353 | 09/13/2011 10:51:49 | 20 | 2 | RavenDB query NOT contains | I have collection of documents Users
User
{
"Status": "ACTIVE",
"Login": {
"UserName": "login",
"Password": null,
"CreationDate": "2011-12-07T11:30:24.4062500Z",
"Roles": [
{
"Id": "roles/WebUser",
"Name": "WebUser"
},
{
"Id": "roles/Admin",
"Name": "Admin"
}
]
},
}
How can i make a query to get list of users with role name "WebUser" except users with role name "Admin"
Using LINQ or lucene | query | ravendb | null | null | null | null | open | RavenDB query NOT contains
===
I have collection of documents Users
User
{
"Status": "ACTIVE",
"Login": {
"UserName": "login",
"Password": null,
"CreationDate": "2011-12-07T11:30:24.4062500Z",
"Roles": [
{
"Id": "roles/WebUser",
"Name": "WebUser"
},
{
"Id": "roles/Admin",
"Name": "Admin"
}
]
},
}
How can i make a query to get list of users with role name "WebUser" except users with role name "Admin"
Using LINQ or lucene | 0 |
5,588,025 | 04/07/2011 21:43:46 | 640,607 | 03/02/2011 05:35:56 | 196 | 25 | Please help me remove the BUG from this code | Guys, I have had sleepless nights trying to remove the bug from this code. Please help me out!
##########################################################
#include < stdio.h >
#define LAST 10
int main()
{
int i, sum = 0;
![enter image description here][1]
[1]: http://i.stack.imgur.com/QJNsO.gif
for ( i = 1; i < = LAST; i++ )
{
sum += i;
}
printf("sum = %d\n", sum);
return 0;
}
########################################################## | c++ | c | debugging | programming-languages | null | 04/07/2011 21:46:56 | not a real question | Please help me remove the BUG from this code
===
Guys, I have had sleepless nights trying to remove the bug from this code. Please help me out!
##########################################################
#include < stdio.h >
#define LAST 10
int main()
{
int i, sum = 0;
![enter image description here][1]
[1]: http://i.stack.imgur.com/QJNsO.gif
for ( i = 1; i < = LAST; i++ )
{
sum += i;
}
printf("sum = %d\n", sum);
return 0;
}
########################################################## | 1 |
11,111,019 | 06/19/2012 23:41:45 | 1,434,046 | 06/03/2012 21:19:13 | 1 | 0 | Java Browser, openConection() method | So I am trying to make my own Browser in java. It is working pretty well, I have a basic layout, it can look up a website and what not. But I can't seem to figure out how to interact with the webpage. Like if I click on a link it doesnt do anything.
I think what I need to use is the java method "openConnection()" but I can't seem to get it to work and don't really know what it does...Can someone please tell me what that method does and if it is even nessisary to use in my program?
thanks in advance
Also, I did check out some other questions about this sort of thing and it didn't really give me a straight answer. | java | browser | null | null | null | 06/20/2012 11:13:34 | not a real question | Java Browser, openConection() method
===
So I am trying to make my own Browser in java. It is working pretty well, I have a basic layout, it can look up a website and what not. But I can't seem to figure out how to interact with the webpage. Like if I click on a link it doesnt do anything.
I think what I need to use is the java method "openConnection()" but I can't seem to get it to work and don't really know what it does...Can someone please tell me what that method does and if it is even nessisary to use in my program?
thanks in advance
Also, I did check out some other questions about this sort of thing and it didn't really give me a straight answer. | 1 |
1,624,060 | 10/26/2009 10:23:52 | 50,305 | 12/30/2008 20:58:06 | 1,253 | 28 | machine learning libraries in C# | Are there any machine learning libraries in C#? I'm after something like [WEKA][1].
Thank you.
[1]: http://www.cs.waikato.ac.nz/~ml/weka/ | machine-learning | c# | null | null | null | 07/15/2012 17:28:22 | not constructive | machine learning libraries in C#
===
Are there any machine learning libraries in C#? I'm after something like [WEKA][1].
Thank you.
[1]: http://www.cs.waikato.ac.nz/~ml/weka/ | 4 |
6,830,064 | 07/26/2011 12:33:45 | 855,383 | 07/21/2011 07:16:06 | 1 | 0 | How to get all album lsiting from facebook fan page. | How to get all album lsiting from facebook fan page.
my fan page is "lifeofthecity".
Please give the sample .
Thanks | facebook | facebook-graph-api | null | null | null | 01/26/2012 22:20:31 | not a real question | How to get all album lsiting from facebook fan page.
===
How to get all album lsiting from facebook fan page.
my fan page is "lifeofthecity".
Please give the sample .
Thanks | 1 |
1,849,441 | 12/04/2009 20:25:47 | 214,988 | 11/19/2009 21:12:05 | 1 | 0 | Fileextension problems with classic asp | I am running a classic ASP website where my online users can attach files to the internal message system. But whenever they upload an attachemnt with more then 3 characters in the filextension, the server gives me a 404?
Files like mypicture.jpg works fine, but files like mydocument.docx doesnt work?
Any suggestions?
Best regards, Joakim | asp-classic | null | null | null | null | null | open | Fileextension problems with classic asp
===
I am running a classic ASP website where my online users can attach files to the internal message system. But whenever they upload an attachemnt with more then 3 characters in the filextension, the server gives me a 404?
Files like mypicture.jpg works fine, but files like mydocument.docx doesnt work?
Any suggestions?
Best regards, Joakim | 0 |
11,515,713 | 07/17/2012 03:39:54 | 1,530,534 | 07/17/2012 03:24:39 | 1 | 0 | is there any open source software like strategy server | i want to develop an alogrithm trading system,now i want an open source software having some functions like this:
1.it can start a function(strategy,which is written by someone else ) wtih certern params
2.it can manage these strategies.
3.all the running strategies can not affect each other.
4.high efficiency | open-source | algorithmic-trading | null | null | null | 07/19/2012 14:48:25 | not a real question | is there any open source software like strategy server
===
i want to develop an alogrithm trading system,now i want an open source software having some functions like this:
1.it can start a function(strategy,which is written by someone else ) wtih certern params
2.it can manage these strategies.
3.all the running strategies can not affect each other.
4.high efficiency | 1 |
4,025,119 | 10/26/2010 15:16:36 | 83,336 | 03/26/2009 20:42:43 | 156 | 8 | Examples needed for open-source forums, blogs, wikis. | we are a small company developing a browser game. As planned we need a forum, wiki and a blog. The initial idea was to code everything by ourselves but time is short as always and we need to cut some corners. What we need is simple applications that have the general functionality. If you have used/developed something like that and it is free for use, we would appreciate sharing the source code(link). | php | blogs | wiki | forum | code-examples | 10/26/2010 16:41:54 | off topic | Examples needed for open-source forums, blogs, wikis.
===
we are a small company developing a browser game. As planned we need a forum, wiki and a blog. The initial idea was to code everything by ourselves but time is short as always and we need to cut some corners. What we need is simple applications that have the general functionality. If you have used/developed something like that and it is free for use, we would appreciate sharing the source code(link). | 2 |
2,331,617 | 02/25/2010 04:22:16 | 100,089 | 05/03/2009 04:49:40 | 316 | 9 | How do I setup a rails project to use a source tree (not an installed gem) version of rails. | I would like the rails 3.0 source tree in my project so I can use patches, etc. I don' want to freeze rails. I would like to be able to pull updates from the main repo too. How do I accomplish this? | ruby-on-rails | null | null | null | null | null | open | How do I setup a rails project to use a source tree (not an installed gem) version of rails.
===
I would like the rails 3.0 source tree in my project so I can use patches, etc. I don' want to freeze rails. I would like to be able to pull updates from the main repo too. How do I accomplish this? | 0 |
10,506,557 | 05/08/2012 21:10:23 | 1,342,231 | 04/18/2012 18:43:22 | 67 | 23 | Multiple custom validator using same function | I implemented a generic logic client side and server side to use the same function in multiple custom validators. I'm currently testing it but it's only displaying the error message of the first control that fails and not the others. Can I pass the same function to multiple custom validators or do I need to create a separate function for each custom validator.
Thanks | c# | asp.net | null | null | null | null | open | Multiple custom validator using same function
===
I implemented a generic logic client side and server side to use the same function in multiple custom validators. I'm currently testing it but it's only displaying the error message of the first control that fails and not the others. Can I pass the same function to multiple custom validators or do I need to create a separate function for each custom validator.
Thanks | 0 |
4,424,579 | 12/12/2010 22:55:35 | 471,812 | 10/11/2010 00:25:34 | 182 | 1 | C++ Vector Vs. Array | What are the difference between a `vector` and an `array` in C++. When should one be used over another? Also pros and cons of each. All my text book does is list how they are the same.... | c++ | arrays | vector | null | null | null | open | C++ Vector Vs. Array
===
What are the difference between a `vector` and an `array` in C++. When should one be used over another? Also pros and cons of each. All my text book does is list how they are the same.... | 0 |
2,230,295 | 02/09/2010 15:46:16 | 259,541 | 01/26/2010 20:14:02 | 324 | 14 | What's the best way to dedupe a table? | I've seen a couple of solutions for this, but I'm wondering what the best and most efficient way is to de-dupe a table. You can use code (SQL, etc.) to illustrate your point, but I'm just looking for basic algorithms. I assumed there would already be a question about this on SO, but I wasn't able to find one, so if it already exists just give me a heads up.
(Just to clarify - I'm referring to getting rid of duplicates in a table that has an incremental automatic PK and has some rows that are duplicates in everything but the PK field.) | duplicates | performance | algorithm | table | null | null | open | What's the best way to dedupe a table?
===
I've seen a couple of solutions for this, but I'm wondering what the best and most efficient way is to de-dupe a table. You can use code (SQL, etc.) to illustrate your point, but I'm just looking for basic algorithms. I assumed there would already be a question about this on SO, but I wasn't able to find one, so if it already exists just give me a heads up.
(Just to clarify - I'm referring to getting rid of duplicates in a table that has an incremental automatic PK and has some rows that are duplicates in everything but the PK field.) | 0 |
8,362,787 | 12/02/2011 21:17:16 | 1,026,611 | 11/02/2011 22:07:07 | 6 | 0 | Hosting in Goddady | I am trying to deploying an asp.net mvc 3 on Godaddy but I am getting the following error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
I don't know if there is any solution or is there is any one facing the same problem before | asp.net | asp.net-mvc-3 | hosting | godaddy | null | 12/03/2011 16:53:48 | off topic | Hosting in Goddady
===
I am trying to deploying an asp.net mvc 3 on Godaddy but I am getting the following error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
I don't know if there is any solution or is there is any one facing the same problem before | 2 |
739,839 | 04/11/2009 10:35:17 | 55,267 | 01/15/2009 02:00:57 | 263 | 17 | How can one manipulate the Start menu's "Recently Used Programs" list programmatically? | I'm looking for a way to make programs appear (frequently) used, so that they would appear in the Start menu's "Recently Used Programs" (after a zero touch install).
I'm trying to figure out how Windows stores information related to program usage frequency.
The only (maybe) related things I can see being changed when I run a program from the Start Menu, are some (seemingly undocumented) BagMRU registry keys which have no meaning to me.
I did found a way to get programs pinned, but that's not what I'm looking for here.
([http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1111.mspx][1])
[1]: http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1111.mspx | windows | unattended | null | null | null | 05/09/2012 17:27:06 | not a real question | How can one manipulate the Start menu's "Recently Used Programs" list programmatically?
===
I'm looking for a way to make programs appear (frequently) used, so that they would appear in the Start menu's "Recently Used Programs" (after a zero touch install).
I'm trying to figure out how Windows stores information related to program usage frequency.
The only (maybe) related things I can see being changed when I run a program from the Start Menu, are some (seemingly undocumented) BagMRU registry keys which have no meaning to me.
I did found a way to get programs pinned, but that's not what I'm looking for here.
([http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1111.mspx][1])
[1]: http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1111.mspx | 1 |
7,149,651 | 08/22/2011 15:17:36 | 199,826 | 10/30/2009 17:42:33 | 188 | 2 | Android control size and style are different between emulator an real phone ? | I use droiddraw to generate xml layout for my androit app. Before exporting, my wigets are displayed the way I wanted.
After exporting the code, all is displayed very well on the emulator device. Then I take my app and test it on my phone -- unfortunately nothing was displayed as expected!
Is there a way to know before deploying on a phone, that all work fine ? | android | android-layout | null | null | null | null | open | Android control size and style are different between emulator an real phone ?
===
I use droiddraw to generate xml layout for my androit app. Before exporting, my wigets are displayed the way I wanted.
After exporting the code, all is displayed very well on the emulator device. Then I take my app and test it on my phone -- unfortunately nothing was displayed as expected!
Is there a way to know before deploying on a phone, that all work fine ? | 0 |
11,503,619 | 07/16/2012 11:47:26 | 554,217 | 12/26/2010 09:29:16 | 1,258 | 6 | Triggering a button as teh page load with jquery | I want to trigger a facebook like button as soon as the page loads.
This is script relating to facebook like button:
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
The facebook button:
<fb:like href="http://ecommercedeveloper.com" layout="standard" show_faces="true" width="400" action="like" font="segoe ui" colorscheme="light" id="facebook" />
My script, at the bottom of the page:
<script>
(function($){
$('fb:like').trigger('click');
})(jQuery);
</script>
However whenever the script loads the page doesnt seem to be pressed. I dont care to hear about any other alternative way to trigger that click, but which isnt manual | javascript | jquery | facebook | null | null | 07/17/2012 05:59:48 | too localized | Triggering a button as teh page load with jquery
===
I want to trigger a facebook like button as soon as the page loads.
This is script relating to facebook like button:
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
The facebook button:
<fb:like href="http://ecommercedeveloper.com" layout="standard" show_faces="true" width="400" action="like" font="segoe ui" colorscheme="light" id="facebook" />
My script, at the bottom of the page:
<script>
(function($){
$('fb:like').trigger('click');
})(jQuery);
</script>
However whenever the script loads the page doesnt seem to be pressed. I dont care to hear about any other alternative way to trigger that click, but which isnt manual | 3 |
11,318,262 | 07/03/2012 19:58:34 | 1,371,040 | 05/02/2012 20:33:37 | 11 | 6 | Reply doesn't work properly when an email is forwarded | I have Gmail on my phone and iPad and have set up email forwarding to send emails to my Virgin Media account to my Gmail account.
This works fine, but when I reply to the emails on my Gmail account, the replies get sent back to my Virgin Media email address rather than the original sender of the email.
Can this be made to work or am I wasting my time? | email | gmail | null | null | null | 07/04/2012 19:42:01 | off topic | Reply doesn't work properly when an email is forwarded
===
I have Gmail on my phone and iPad and have set up email forwarding to send emails to my Virgin Media account to my Gmail account.
This works fine, but when I reply to the emails on my Gmail account, the replies get sent back to my Virgin Media email address rather than the original sender of the email.
Can this be made to work or am I wasting my time? | 2 |
9,112,308 | 02/02/2012 12:27:22 | 1,185,046 | 02/02/2012 12:03:12 | 1 | 0 | about voice recognizer | I want to write a program that can recognize music notes.I think i should write something that could understand notes!
we give the notes to the program and then we start to play that song,if we made a mistake,the program warns us.
I want to know witch programming language is good for this kind of programs and what should i study for starting?!
I asked from my university professor and he told me maybe it is not really needs an Artificial intelligence like programs that convert speech to text, noise frequency is helps you to recognize notes easily! | c# | java | c | vb.net | lisp | 02/02/2012 12:31:10 | not constructive | about voice recognizer
===
I want to write a program that can recognize music notes.I think i should write something that could understand notes!
we give the notes to the program and then we start to play that song,if we made a mistake,the program warns us.
I want to know witch programming language is good for this kind of programs and what should i study for starting?!
I asked from my university professor and he told me maybe it is not really needs an Artificial intelligence like programs that convert speech to text, noise frequency is helps you to recognize notes easily! | 4 |
9,596,670 | 03/07/2012 06:12:08 | 480,346 | 10/19/2010 10:23:33 | 894 | 14 | How to download PDF from a website in the app using iPhone SDK? | How can I download PDF from a website and store it on the iPhone App?
Please let me know.
| iphone | objective-c | ios | cocoa-touch | pdf | 03/07/2012 07:44:36 | not a real question | How to download PDF from a website in the app using iPhone SDK?
===
How can I download PDF from a website and store it on the iPhone App?
Please let me know.
| 1 |
7,601,961 | 09/29/2011 18:47:24 | 393,258 | 01/16/2009 04:04:56 | 1,071 | 18 | EVO 3d ( PG86100 ) - No logs in Logcat via sendlog? | Trying to get some logs from a EVO 3D, but each time the logs are sent, they appear to contain no 3rd party app logs. Makes it quite difficult to try and debug an issue which appears only on this one device.
Any thoughts/suggestions? | android | debugging | logcat | null | null | null | open | EVO 3d ( PG86100 ) - No logs in Logcat via sendlog?
===
Trying to get some logs from a EVO 3D, but each time the logs are sent, they appear to contain no 3rd party app logs. Makes it quite difficult to try and debug an issue which appears only on this one device.
Any thoughts/suggestions? | 0 |
8,385,426 | 12/05/2011 12:38:30 | 31,274 | 10/24/2008 18:07:58 | 99 | 1 | margin decreasing as the window size decreases | I'm trying to create something like yahoo.com where the content is in the middle and on the outskirts there's a grey margin (or at least something looking like a margin, not sure if it's padding). I was successful, however when the page is resized by the user I want this margin to decrease just like it is on yahoo.com but its not decreasing (go to www.yahoo.com and resize the page and their margin decreases). Anyone knows how to get this margin to decrease?
body
{
font-family: "Lucida Grande", "Lucida Sans";
background-color: #525252;
text-align: center;
margin-left: 150px;
margin-right: 150px;
margin-top: 0px;
margin-bottom: 0px;
min-width: 650px;
min-height: 685px;
color: #00008B;
}
table
{
margin:0;
padding: 0px 2px;
border-spacing: 0; /* remove the spacing between the borders. */
width: 950px;
height: 685px;
background-color: #C1CDC1;
} | css | null | null | null | null | null | open | margin decreasing as the window size decreases
===
I'm trying to create something like yahoo.com where the content is in the middle and on the outskirts there's a grey margin (or at least something looking like a margin, not sure if it's padding). I was successful, however when the page is resized by the user I want this margin to decrease just like it is on yahoo.com but its not decreasing (go to www.yahoo.com and resize the page and their margin decreases). Anyone knows how to get this margin to decrease?
body
{
font-family: "Lucida Grande", "Lucida Sans";
background-color: #525252;
text-align: center;
margin-left: 150px;
margin-right: 150px;
margin-top: 0px;
margin-bottom: 0px;
min-width: 650px;
min-height: 685px;
color: #00008B;
}
table
{
margin:0;
padding: 0px 2px;
border-spacing: 0; /* remove the spacing between the borders. */
width: 950px;
height: 685px;
background-color: #C1CDC1;
} | 0 |
6,628,160 | 07/08/2011 17:31:28 | 835,810 | 07/08/2011 17:31:28 | 1 | 0 | Project topic help | I want some project ideas for my final year project.
I have learnt languages like C,C++,Java,HTML & PHP,VB,MySQL as front ends & back ends.
I was thinking of developing an online shopping website but that would be too simple, so if anyone could give me some ideas to work on.. that would be very helpful. | java | php | null | null | null | 07/08/2011 17:34:22 | off topic | Project topic help
===
I want some project ideas for my final year project.
I have learnt languages like C,C++,Java,HTML & PHP,VB,MySQL as front ends & back ends.
I was thinking of developing an online shopping website but that would be too simple, so if anyone could give me some ideas to work on.. that would be very helpful. | 2 |
10,731,190 | 05/24/2012 04:31:58 | 1,395,178 | 05/15/2012 04:22:26 | 1 | 2 | pass local path to HttpWebRequest | I need to pass local path to HttpWebRequest in c#. i have test.xml in my c drive and i need get that xml file in HttpWebRequest. but it throws exception in
HttpWebRequest rqst = (HttpWebRequest)HttpWebRequest.Create(Uri.EscapeUriString(urlServ))
line "Invalid URI: The Authority/Host could not be parsed."
my coding->
string urlServ = "file:\\c:\\test.xml";
try
{
HttpWebRequest rqst = (HttpWebRequest)HttpWebRequest.Create(Uri.EscapeUriString(urlServ));
rqst.KeepAlive = false;
}
catch{}
| c# | null | null | null | null | null | open | pass local path to HttpWebRequest
===
I need to pass local path to HttpWebRequest in c#. i have test.xml in my c drive and i need get that xml file in HttpWebRequest. but it throws exception in
HttpWebRequest rqst = (HttpWebRequest)HttpWebRequest.Create(Uri.EscapeUriString(urlServ))
line "Invalid URI: The Authority/Host could not be parsed."
my coding->
string urlServ = "file:\\c:\\test.xml";
try
{
HttpWebRequest rqst = (HttpWebRequest)HttpWebRequest.Create(Uri.EscapeUriString(urlServ));
rqst.KeepAlive = false;
}
catch{}
| 0 |
6,185,002 | 05/31/2011 08:41:32 | 777,328 | 05/31/2011 08:41:32 | 1 | 0 | topology question | I would like to know if the following statement is true or false.
Let X be a compact Hausdorff space and an infinite set. If X has a topology
strictly weaker than the discrete topology, then the compact convergence topology is
strictly finer than the pointwise convergence topology. | math | topology | topological-sort | null | null | 05/31/2011 08:48:25 | off topic | topology question
===
I would like to know if the following statement is true or false.
Let X be a compact Hausdorff space and an infinite set. If X has a topology
strictly weaker than the discrete topology, then the compact convergence topology is
strictly finer than the pointwise convergence topology. | 2 |
3,346,508 | 07/27/2010 18:08:29 | 24,197 | 10/01/2008 16:04:52 | 1,449 | 60 | place online to do shared coding for interview | I'm giving a phone interview soon, and ideally, I'd like to see the candidate write some code in real time. Can anyone suggest a site where we can both go and he can type while I watch. (I'm behind a fairly strict corporate firewall, so a lot of basic chat services are blocked.) | interview-questions | livechat | null | null | null | 12/04/2011 02:18:56 | off topic | place online to do shared coding for interview
===
I'm giving a phone interview soon, and ideally, I'd like to see the candidate write some code in real time. Can anyone suggest a site where we can both go and he can type while I watch. (I'm behind a fairly strict corporate firewall, so a lot of basic chat services are blocked.) | 2 |
11,730,779 | 07/30/2012 22:42:22 | 710,377 | 04/15/2011 18:38:06 | 65 | 6 | How to create a custom theme in Microsoft Word Mac 2011 | Background: Microsoft Office for Mac 2011, OS X 10.7.4, MacBookPro5,1
I desperately want to change the theme fonts and colors to take advantage of the interface advantages of having these elements at the top of every menu and preloaded into styles. However I can't figure out how to do it. Every single resource I've found on the internet shows me how to change to another Microsoft-designed theme, usually hinting that it's possible to create a custom theme but not saying how or even where to look. It's infuriating.
The Theme Colors menu in Powerpoint (which in Word is inexplicably only visible in Publisher view, argh!) has a link fixed at the bottom of the link that says "Create Theme Colors" but for some reason this link isn't to be found in Word. And in Word and Powerpoint both there's no such link for fonts.
Would somebody please tell me how to do this one thing that in my opinion is absolutely crucial to using this seemingly central feature of one of the most often used professional computer programs in existence? | ms-word | ms-office | null | null | null | 07/31/2012 02:31:50 | off topic | How to create a custom theme in Microsoft Word Mac 2011
===
Background: Microsoft Office for Mac 2011, OS X 10.7.4, MacBookPro5,1
I desperately want to change the theme fonts and colors to take advantage of the interface advantages of having these elements at the top of every menu and preloaded into styles. However I can't figure out how to do it. Every single resource I've found on the internet shows me how to change to another Microsoft-designed theme, usually hinting that it's possible to create a custom theme but not saying how or even where to look. It's infuriating.
The Theme Colors menu in Powerpoint (which in Word is inexplicably only visible in Publisher view, argh!) has a link fixed at the bottom of the link that says "Create Theme Colors" but for some reason this link isn't to be found in Word. And in Word and Powerpoint both there's no such link for fonts.
Would somebody please tell me how to do this one thing that in my opinion is absolutely crucial to using this seemingly central feature of one of the most often used professional computer programs in existence? | 2 |
10,734,414 | 05/24/2012 09:10:46 | 700,663 | 04/10/2011 07:56:33 | 1,359 | 13 | How to merge 2 Records in innoDB MySQL databases | This is related to http://stackoverflow.com/questions/10717444/how-to-change-id-in-mysql/10718335#comment13919873_10718335
I also have checked other questions and none are quite like this one.
As we know, innodb has a feature. If I want to channge an id of a record for example, then all other table that point to the previous ID will magically be updated.
What about if I want to MERGE 2 records?
Say I have 2 businesses.
They have 2 ID.
I want to merge them into one. I also want to use innodb awesome feature to automatically change things.
I can't just change one of the id to the other ID. Or can I?
What would you do to merge 2 simmilar records in database?
Of course what actually goes into the combined record will be business decisions. | mysql | database | innodb | null | null | null | open | How to merge 2 Records in innoDB MySQL databases
===
This is related to http://stackoverflow.com/questions/10717444/how-to-change-id-in-mysql/10718335#comment13919873_10718335
I also have checked other questions and none are quite like this one.
As we know, innodb has a feature. If I want to channge an id of a record for example, then all other table that point to the previous ID will magically be updated.
What about if I want to MERGE 2 records?
Say I have 2 businesses.
They have 2 ID.
I want to merge them into one. I also want to use innodb awesome feature to automatically change things.
I can't just change one of the id to the other ID. Or can I?
What would you do to merge 2 simmilar records in database?
Of course what actually goes into the combined record will be business decisions. | 0 |
6,874,632 | 07/29/2011 14:25:22 | 570,928 | 01/11/2011 07:25:16 | 371 | 16 | Python learning and development : Options for VS 2010 developer | I have been using Visual Studio throughout. It's an amazing IDE and the mainstay for Microsoft .NET technologies evolution. Without it, you just can't think of C# and VB competing with other programming languages for existence.
Anyways, let me get to the point or else the question might be closed ;) . I am trying to learn Python and installed the 2.7 version from the official website. The IDLE(Python GUI) that comes with the default installation just doesn't compel you for learning python. Multiple windows just aren't right along with other few things.
I googled around for a good Python IDE, and was redirected to stackoverflow :P with many questions resembling this one. There were so many listed that i kept visiting one link after the other and now i am more confused than ever.
**Question:- For someone with the Background of Visual studio environment, which one will be the best IDE.**
*NOTE :- The IDE should not require any learning for itself.*
| python | ide | null | null | null | 08/30/2011 13:26:12 | not constructive | Python learning and development : Options for VS 2010 developer
===
I have been using Visual Studio throughout. It's an amazing IDE and the mainstay for Microsoft .NET technologies evolution. Without it, you just can't think of C# and VB competing with other programming languages for existence.
Anyways, let me get to the point or else the question might be closed ;) . I am trying to learn Python and installed the 2.7 version from the official website. The IDLE(Python GUI) that comes with the default installation just doesn't compel you for learning python. Multiple windows just aren't right along with other few things.
I googled around for a good Python IDE, and was redirected to stackoverflow :P with many questions resembling this one. There were so many listed that i kept visiting one link after the other and now i am more confused than ever.
**Question:- For someone with the Background of Visual studio environment, which one will be the best IDE.**
*NOTE :- The IDE should not require any learning for itself.*
| 4 |
9,508,723 | 03/01/2012 00:05:36 | 1,215,531 | 02/17/2012 06:15:42 | 9 | 0 | ASP.Net Pagination | I have a web based student admission application, i have different pages to take inputs from a student, like one page for personal detail another page for academia history and so on.
it can be done by ASP.Net Pagination to navigate between different pages? what will be the steps for this approach
Thanks
| c# | asp.net | null | null | null | 03/01/2012 13:43:35 | not a real question | ASP.Net Pagination
===
I have a web based student admission application, i have different pages to take inputs from a student, like one page for personal detail another page for academia history and so on.
it can be done by ASP.Net Pagination to navigate between different pages? what will be the steps for this approach
Thanks
| 1 |
8,205,857 | 11/21/2011 00:01:33 | 1,020,685 | 02/07/2011 19:33:16 | 17 | 0 | How best to include design in an Agile Web Development Team | I am shortly going to be working on my first ever Agile Web Development project at work as a project manager. I have managed plenty of projects using Waterfall over the past few years and I am currently having trouble as to how best to include design within the process.
Currently I am thinking the best way to approach this would be to have the IA and designer working together to produce work that can be delivered at the end of every sprint. Assuming that this work is approved at the end of the sprint it can then be passed to the front end developer for the next sprint. However I am keen to understand how this has worked for other people in real world projects.
Keen to make this a success and get something that will work for the IA, designer and frontend developer. | design | agile | frontend | information-architecture | null | 11/21/2011 09:43:28 | off topic | How best to include design in an Agile Web Development Team
===
I am shortly going to be working on my first ever Agile Web Development project at work as a project manager. I have managed plenty of projects using Waterfall over the past few years and I am currently having trouble as to how best to include design within the process.
Currently I am thinking the best way to approach this would be to have the IA and designer working together to produce work that can be delivered at the end of every sprint. Assuming that this work is approved at the end of the sprint it can then be passed to the front end developer for the next sprint. However I am keen to understand how this has worked for other people in real world projects.
Keen to make this a success and get something that will work for the IA, designer and frontend developer. | 2 |
9,222,670 | 02/10/2012 04:25:02 | 1,201,223 | 06/08/2010 08:40:05 | 68 | 4 | A few queries on HTML 5 | Can I host HTML 5 application in IIS 6.0?
If not which version of IIS supports HTML hosting?
Which editor can be used for HTML 5 development?
| html | html5 | iis | iis6 | null | 02/10/2012 14:48:30 | not a real question | A few queries on HTML 5
===
Can I host HTML 5 application in IIS 6.0?
If not which version of IIS supports HTML hosting?
Which editor can be used for HTML 5 development?
| 1 |
11,086,720 | 06/18/2012 16:05:58 | 1,383,948 | 05/09/2012 07:29:41 | 1 | 0 | Extra space above the Peacemaker Slider | There is extra space above the PeaceMaker Slider when i view the web page in a browser.
How do i remove that? | html | css | jquery-ui-slider | null | null | 06/19/2012 22:01:17 | too localized | Extra space above the Peacemaker Slider
===
There is extra space above the PeaceMaker Slider when i view the web page in a browser.
How do i remove that? | 3 |
4,501,927 | 12/21/2010 17:09:17 | 483,246 | 10/21/2010 15:54:03 | 204 | 22 | Display Default Image Unless URL Is A Valid Image | I need to allow the web user to enter a URL for an image, and I want the user to have visual confirmation that the URL is valid (or not).
I would like it so that if the user enters:
- nothing, it will display the default (not found) image.
- `http://example.com/ValidImageUrl.any_or_no_extension`, it will accept it and display the image.
- `hxxp://example.com/ValidImageUrl.any_or_no_extension`, it will display the default (not found) image
- `http://example.com/INVALID_imageurl.any_or_no_extension`, it will display the default (not found) image. Essentially, if the link is anything but a 200, it should display the default
- `http://example.com/asdf?qwerty&t=10982741238947`, (assuming it is valid) it will automagically determine whether it is a valid image and display it if valid, otherwise display the default (not found) image. This is the hardest case to capture, but is becoming increasingly important in today's flickr & picassa embedded world... But if the browser can detect it as an image and display it, then javascript should be able to detect it, and identify its particulars.
The following is an extremely simplified example:
<input id="GivenUrl" onblur="UpdateImage()"/>
<img id="UserImage"/>
<script type="text/javascript">
var TextBox = document.getElementById("GivenUrl");
var Image = document.getElementById("UserImage");
if (Image.value == "")
{
UserImage.setAttribute("src", "MyDefaultImage.jpg");
}else{
UserImage.setAttribute("src", encodeURI(TextBox.value));
}
</script>
And finally my constraints: I'd optimally like the solution to be pure HTML / javascript, all processed on the client (user) side. Slightly less favorable solutions would involve .Net server-side processing, which is possible but definitely not optimal...
Any ideas?
Please overlook any benign coding errors in the above, since I am not currently at a machine where I can test my own code... | c# | javascript | image | url | null | null | open | Display Default Image Unless URL Is A Valid Image
===
I need to allow the web user to enter a URL for an image, and I want the user to have visual confirmation that the URL is valid (or not).
I would like it so that if the user enters:
- nothing, it will display the default (not found) image.
- `http://example.com/ValidImageUrl.any_or_no_extension`, it will accept it and display the image.
- `hxxp://example.com/ValidImageUrl.any_or_no_extension`, it will display the default (not found) image
- `http://example.com/INVALID_imageurl.any_or_no_extension`, it will display the default (not found) image. Essentially, if the link is anything but a 200, it should display the default
- `http://example.com/asdf?qwerty&t=10982741238947`, (assuming it is valid) it will automagically determine whether it is a valid image and display it if valid, otherwise display the default (not found) image. This is the hardest case to capture, but is becoming increasingly important in today's flickr & picassa embedded world... But if the browser can detect it as an image and display it, then javascript should be able to detect it, and identify its particulars.
The following is an extremely simplified example:
<input id="GivenUrl" onblur="UpdateImage()"/>
<img id="UserImage"/>
<script type="text/javascript">
var TextBox = document.getElementById("GivenUrl");
var Image = document.getElementById("UserImage");
if (Image.value == "")
{
UserImage.setAttribute("src", "MyDefaultImage.jpg");
}else{
UserImage.setAttribute("src", encodeURI(TextBox.value));
}
</script>
And finally my constraints: I'd optimally like the solution to be pure HTML / javascript, all processed on the client (user) side. Slightly less favorable solutions would involve .Net server-side processing, which is possible but definitely not optimal...
Any ideas?
Please overlook any benign coding errors in the above, since I am not currently at a machine where I can test my own code... | 0 |
2,240,880 | 02/10/2010 22:41:09 | 221,209 | 11/30/2009 08:56:54 | 36 | 5 | Django Haystack : search for a term with and without accents | I'm implementing a search system onto my django project, using django haystack. The problem is that some fields in my models have some french accents, and I would like to find the entries which contents the query with and without accents.
I think the best Idea is to create a SearchIndex with both the fields with the accents, and the same field without the accents.
Any idea or hint on this ?
Here is some code
Imagine the following models :
<code>
Cars(models.Model):
name = models.CharField()
</code>
and the following Haystack Index:
<code>
Cars(indexes.SearchIndex):
name = indexes.CharField(model_attr='name')
cleaned_name = indexes.CharField(model_attr='name')
def prepare_cleaned_name(self, object):
return strip_accents(object.name)
</code>
now, in my index template, I put the both fields :
<code>
{{ object.cleaned_name }}
{{ object.name }}
</code>
So, thats some pseudo code, I don't know if it works, but if you have any idea on this, let me know ! | django | haystack | encoding | search-engine | null | null | open | Django Haystack : search for a term with and without accents
===
I'm implementing a search system onto my django project, using django haystack. The problem is that some fields in my models have some french accents, and I would like to find the entries which contents the query with and without accents.
I think the best Idea is to create a SearchIndex with both the fields with the accents, and the same field without the accents.
Any idea or hint on this ?
Here is some code
Imagine the following models :
<code>
Cars(models.Model):
name = models.CharField()
</code>
and the following Haystack Index:
<code>
Cars(indexes.SearchIndex):
name = indexes.CharField(model_attr='name')
cleaned_name = indexes.CharField(model_attr='name')
def prepare_cleaned_name(self, object):
return strip_accents(object.name)
</code>
now, in my index template, I put the both fields :
<code>
{{ object.cleaned_name }}
{{ object.name }}
</code>
So, thats some pseudo code, I don't know if it works, but if you have any idea on this, let me know ! | 0 |
11,436,042 | 07/11/2012 15:25:38 | 318,752 | 04/16/2010 17:42:06 | 1,145 | 19 | Fitting images of different sizes nicely into a collage | I am looking for a javascript library (or algorithm that I can implement) to fit a number of images of arbitrary sizes on a single page with little whitespace remaining. Similar to the way Google Plus displays images[ \[example\]][1]. Or maybe even a bit more playful (google makes them identical height)
It is OK to play with the scaling of the images a bit, as long as the aspect ratios are not messed up, and things seemingly 'fit' nicely on the page.
[1]: https://plus.google.com/photos/109813896768294978296/albums/5632065190489236417 | javascript | jquery | html | image | photoshop | 07/18/2012 14:11:46 | not constructive | Fitting images of different sizes nicely into a collage
===
I am looking for a javascript library (or algorithm that I can implement) to fit a number of images of arbitrary sizes on a single page with little whitespace remaining. Similar to the way Google Plus displays images[ \[example\]][1]. Or maybe even a bit more playful (google makes them identical height)
It is OK to play with the scaling of the images a bit, as long as the aspect ratios are not messed up, and things seemingly 'fit' nicely on the page.
[1]: https://plus.google.com/photos/109813896768294978296/albums/5632065190489236417 | 4 |
4,875,894 | 02/02/2011 14:55:39 | 600,157 | 02/02/2011 14:49:14 | 1 | 0 | How do I create CSS after building a website? | Can anyone help with CSS files, I have created a website www.onlinesolutionsforcoaches.com and now realize I need to "clean" it up and have to add a css file. But How? Where do I start?
| css | null | null | null | null | 02/02/2011 14:59:42 | too localized | How do I create CSS after building a website?
===
Can anyone help with CSS files, I have created a website www.onlinesolutionsforcoaches.com and now realize I need to "clean" it up and have to add a css file. But How? Where do I start?
| 3 |
6,259,001 | 06/06/2011 23:05:49 | 760,538 | 05/19/2011 07:21:57 | 12 | 0 | Source not found Exception while setting layoutparameters | Hi I'm new to android world. I'm working on an application that supports arabic and english languages.So I made my design for english language in the xml and through the code when the user wants to work with arabic language I change the gravity of my widgets to match the arabic right-to-left look.
Now I have 2 questions:-
1-Will I have to implement virtual arabic keyboard?
2-I have a list that shows a forum's threads to start from right-to-left.To make this list I have 2 xmls one for the list and the other for the list's row. When the user's language is arabic I make ALIGN_PARENT_RIGHT for each widget in my xmls. It works for the list xml but when I try to make this for the list's row It throws source not found exception.
Could help me?
//threads row
//lastPost
tvThread=(TextView)findViewById(R.id.txtLastPost);
//here it throws the exception
params = (RelativeLayout.LayoutParams)tvThread.getLayoutParams();
params.setMargins(20, 0, 0, 0);
| android | relativelayout | layoutparams | null | null | null | open | Source not found Exception while setting layoutparameters
===
Hi I'm new to android world. I'm working on an application that supports arabic and english languages.So I made my design for english language in the xml and through the code when the user wants to work with arabic language I change the gravity of my widgets to match the arabic right-to-left look.
Now I have 2 questions:-
1-Will I have to implement virtual arabic keyboard?
2-I have a list that shows a forum's threads to start from right-to-left.To make this list I have 2 xmls one for the list and the other for the list's row. When the user's language is arabic I make ALIGN_PARENT_RIGHT for each widget in my xmls. It works for the list xml but when I try to make this for the list's row It throws source not found exception.
Could help me?
//threads row
//lastPost
tvThread=(TextView)findViewById(R.id.txtLastPost);
//here it throws the exception
params = (RelativeLayout.LayoutParams)tvThread.getLayoutParams();
params.setMargins(20, 0, 0, 0);
| 0 |
10,688,682 | 05/21/2012 16:06:44 | 831,407 | 07/06/2011 10:52:55 | 1 | 0 | Mosync Status Bar notifications with html5/js in MoSync | i want send Push Notification Status Bar. I use MoSync/ Wormhole. it is possible ?
Thanks for answers. | javascript | android | html5 | mobile | null | 06/07/2012 12:21:12 | not a real question | Mosync Status Bar notifications with html5/js in MoSync
===
i want send Push Notification Status Bar. I use MoSync/ Wormhole. it is possible ?
Thanks for answers. | 1 |
8,514,747 | 12/15/2011 03:26:33 | 1,030,775 | 11/05/2011 05:06:17 | 1 | 0 | given list of files with absolute path convert it to GUI output | Could any one tell me simplest way to convert a list of absolute paths to corresponding GUI ?
Thanks | java | swing | project | null | null | 12/15/2011 12:07:16 | not a real question | given list of files with absolute path convert it to GUI output
===
Could any one tell me simplest way to convert a list of absolute paths to corresponding GUI ?
Thanks | 1 |
9,358,984 | 02/20/2012 09:42:15 | 1,121,277 | 12/29/2011 13:39:14 | 27 | 0 | How many lines for 80% of costs | I have a file with 3000 hotels and I have the spends on each hotel. I would like to create a function to let me know how many hotels is necessary to make 80% of the total spend.
Until now, I had written on each line (in column AS): AR4/SUM(AR:AR)
And then I had cumulated it using: AT3+AS4
And finally on another cell: COUNT.IF(AT:AT,"<80%")+1
However, this only works if my hotels are sorted by their respected spends. As soon as I change the order, it gives me wrong numbers (which is normal)
Do you guys know of any other method to solve this ? Thank you very much | excel | null | null | null | null | null | open | How many lines for 80% of costs
===
I have a file with 3000 hotels and I have the spends on each hotel. I would like to create a function to let me know how many hotels is necessary to make 80% of the total spend.
Until now, I had written on each line (in column AS): AR4/SUM(AR:AR)
And then I had cumulated it using: AT3+AS4
And finally on another cell: COUNT.IF(AT:AT,"<80%")+1
However, this only works if my hotels are sorted by their respected spends. As soon as I change the order, it gives me wrong numbers (which is normal)
Do you guys know of any other method to solve this ? Thank you very much | 0 |
4,457,491 | 12/16/2010 04:41:38 | 541,818 | 12/14/2010 10:47:35 | 1 | 1 | How to give sound for my bingo game. | How can I give sound for my bingo game's game call? | audio | null | null | null | null | 12/16/2010 16:14:22 | not a real question | How to give sound for my bingo game.
===
How can I give sound for my bingo game's game call? | 1 |
6,948,085 | 08/04/2011 20:24:53 | 817,314 | 06/27/2011 12:00:19 | 43 | 2 | how do you get LINQ To SQL Output? | if you have a console application, you can do it very easily. You can assign the console output to the context.log
context.log = console.out;
my application is using asp.net mvc3 and linq to sql. I want to see the raw sql statement after it gets translated, so I can improve the performance. how do i monitor the output? | linq-to-sql | logging | null | null | null | null | open | how do you get LINQ To SQL Output?
===
if you have a console application, you can do it very easily. You can assign the console output to the context.log
context.log = console.out;
my application is using asp.net mvc3 and linq to sql. I want to see the raw sql statement after it gets translated, so I can improve the performance. how do i monitor the output? | 0 |
8,481,306 | 12/12/2011 21:44:21 | 1,094,606 | 12/12/2011 21:37:30 | 1 | 0 | How to learn Java, developing for Androind using Eclipse? | I want to learn Java and to became an Android Developer.
I studied Electronics & Telecomunications, and I studied programming basis, operative systems, computer architecture, and I studied the languages: Basic, Visual Basic, Turbo Pascal, DIV, Assembler for PICs.
I'm looking for the perfect docs and tutorials solution to learn Java for Android.
I think that a good answer will be helpful to a lot of people and allow the Android developers Comunity to gain new people =)
Carlo | java | android | null | null | null | 12/12/2011 22:17:35 | not constructive | How to learn Java, developing for Androind using Eclipse?
===
I want to learn Java and to became an Android Developer.
I studied Electronics & Telecomunications, and I studied programming basis, operative systems, computer architecture, and I studied the languages: Basic, Visual Basic, Turbo Pascal, DIV, Assembler for PICs.
I'm looking for the perfect docs and tutorials solution to learn Java for Android.
I think that a good answer will be helpful to a lot of people and allow the Android developers Comunity to gain new people =)
Carlo | 4 |
9,985,098 | 04/02/2012 23:14:52 | 1,309,214 | 04/02/2012 23:13:28 | 1 | 0 | Whats Wrong With This? | $logo_url = apply_filters('pagelines_logo_url', esc_url(ploption('pagelines_custom_logo', $oset) ), $location);
$site_logo = sprintf( <img class="mainlogo-img" src="%s" alt="%s" />', home_url(),> get_bloginfo('name'), $logo_url, get_bloginfo('name')> );
echo apply_filters('pagelines_site_logo', $site_logo, $location);
I get....
Parse error: syntax error, unexpected '<', expecting ')' in /home/remoteco/public_html/www.institchesemb.co.uk/wp-content/themes/pagelines/includes/library.templates.php on line 434 | php | null | null | null | null | 04/02/2012 23:29:38 | too localized | Whats Wrong With This?
===
$logo_url = apply_filters('pagelines_logo_url', esc_url(ploption('pagelines_custom_logo', $oset) ), $location);
$site_logo = sprintf( <img class="mainlogo-img" src="%s" alt="%s" />', home_url(),> get_bloginfo('name'), $logo_url, get_bloginfo('name')> );
echo apply_filters('pagelines_site_logo', $site_logo, $location);
I get....
Parse error: syntax error, unexpected '<', expecting ')' in /home/remoteco/public_html/www.institchesemb.co.uk/wp-content/themes/pagelines/includes/library.templates.php on line 434 | 3 |
10,985,700 | 06/11/2012 18:38:27 | 1,429,169 | 05/31/2012 18:21:14 | 1 | 0 | Making a REST call | I am using Struts-2 framework to design a web interface. API is already implemented in scala and play framework.
Is there a way HttpURLConnection or HttpClient can be used to make REST call in jsp?
If yes can someone give me an example? Any reference of any book or site would also help.
| web-services | rest | web-applications | struts2 | null | null | open | Making a REST call
===
I am using Struts-2 framework to design a web interface. API is already implemented in scala and play framework.
Is there a way HttpURLConnection or HttpClient can be used to make REST call in jsp?
If yes can someone give me an example? Any reference of any book or site would also help.
| 0 |
10,460,851 | 05/05/2012 10:12:29 | 256,761 | 01/22/2010 13:33:30 | 360 | 1 | Starting Point for a Retail Loyalty Card System | Can some suggest a start point (open source project, commercial product, tutorial or video) for creating a Retail Loyalty Card System?
Ideal Features:
- No Requirement to be part of an E-Com System
- Rules based: ('Buy 10 'gizmo's & Next One Free')
- Simple/Manual Management (No Requirement for integration with a POS system)
| php | asp.net | commerce | null | null | 05/06/2012 22:25:44 | not constructive | Starting Point for a Retail Loyalty Card System
===
Can some suggest a start point (open source project, commercial product, tutorial or video) for creating a Retail Loyalty Card System?
Ideal Features:
- No Requirement to be part of an E-Com System
- Rules based: ('Buy 10 'gizmo's & Next One Free')
- Simple/Manual Management (No Requirement for integration with a POS system)
| 4 |
7,600,723 | 09/29/2011 16:55:53 | 969,985 | 09/28/2011 21:22:17 | 3 | 0 | cleaning up $PATH in bash | My path has a lot of entries that were added long ago by scripts. They are not in my .bashrc, .bash_profile, or .bash_login.
I'm worried that resetting my path in .bashrc will have undesirable long-term results. Is there a way to find where things have been added to my path and remove them manually? Are things always added by file or is path cached somewhere? If the latter, is it easy to clean that up? | bash | path | null | null | null | 09/29/2011 19:48:21 | off topic | cleaning up $PATH in bash
===
My path has a lot of entries that were added long ago by scripts. They are not in my .bashrc, .bash_profile, or .bash_login.
I'm worried that resetting my path in .bashrc will have undesirable long-term results. Is there a way to find where things have been added to my path and remove them manually? Are things always added by file or is path cached somewhere? If the latter, is it easy to clean that up? | 2 |
8,456,112 | 12/10/2011 11:13:51 | 927,600 | 09/04/2011 13:53:42 | 19 | 0 | Amazon e2c - Mac IOS [MS - Azure] | I would like to take a Mac machine for iPhone apps development. But I can not afford buying a Mac. Some one told to have it on cloud. How & where Can I have it? Please suggest. | osx | amazon-ec2 | null | null | null | 12/10/2011 16:49:43 | off topic | Amazon e2c - Mac IOS [MS - Azure]
===
I would like to take a Mac machine for iPhone apps development. But I can not afford buying a Mac. Some one told to have it on cloud. How & where Can I have it? Please suggest. | 2 |
2,834,597 | 05/14/2010 13:48:45 | 341,284 | 05/14/2010 13:48:45 | 1 | 0 | How to open webpage in HIDDEN default browser? DELPHI | I have been trying to open a hidden default browser from delphi but coulnd't.
I tried
ShellExecute(self.WindowHandle,'open','www.google.com',nil,nil, SW_HIDE);
and I get my chrome browser open but not hidden, and it opens a tab not a new window, also tried with TStartupInfo with the same results. Is there another way to achieve this? | webbrowser | shellexecute | hidden | delphi | null | null | open | How to open webpage in HIDDEN default browser? DELPHI
===
I have been trying to open a hidden default browser from delphi but coulnd't.
I tried
ShellExecute(self.WindowHandle,'open','www.google.com',nil,nil, SW_HIDE);
and I get my chrome browser open but not hidden, and it opens a tab not a new window, also tried with TStartupInfo with the same results. Is there another way to achieve this? | 0 |
8,428,507 | 12/08/2011 09:02:00 | 1,083,192 | 12/06/2011 09:24:40 | 13 | 0 | How to get the name of the exe in the Innosetup script from the full path of the exe is given? | For example if the full file path of the exe is provided as <br />
<b>"C:\\Projects\\Executable\\Serial Data Streaming Recorder.exe"</b>
<br />
I need to extract the name of the exe. That is <b>"Serial Data Streaming Recorder"</b>
<br />
and I want to dynamically assign this value to a variable from the full file path of exe
<br /><br />
Manually done like in below example
<br />
define ExePath "C:\\Projects\\Executable\\Serial Data Streaming Recorder.exe"
<br />
define AppName "Serial Data Streaming Recorder"
<br /><br />
I want to dynamically assign the value <b>"Serial Data Streaming Recorder"</b> to the variable <b>"AppName"</b> from the full file path of exe
<br /><br />
I'm using this name in many places in the inno script for many files, So i don't want to do it manually by assigning this value to a variable.
<br /><br />
Thanks in advance. Regards <i><b> Samuel J</b></i> | installer | inno-setup | uninstaller | null | null | null | open | How to get the name of the exe in the Innosetup script from the full path of the exe is given?
===
For example if the full file path of the exe is provided as <br />
<b>"C:\\Projects\\Executable\\Serial Data Streaming Recorder.exe"</b>
<br />
I need to extract the name of the exe. That is <b>"Serial Data Streaming Recorder"</b>
<br />
and I want to dynamically assign this value to a variable from the full file path of exe
<br /><br />
Manually done like in below example
<br />
define ExePath "C:\\Projects\\Executable\\Serial Data Streaming Recorder.exe"
<br />
define AppName "Serial Data Streaming Recorder"
<br /><br />
I want to dynamically assign the value <b>"Serial Data Streaming Recorder"</b> to the variable <b>"AppName"</b> from the full file path of exe
<br /><br />
I'm using this name in many places in the inno script for many files, So i don't want to do it manually by assigning this value to a variable.
<br /><br />
Thanks in advance. Regards <i><b> Samuel J</b></i> | 0 |
8,115,866 | 11/14/2011 00:06:40 | 1,038,517 | 11/09/2011 20:37:42 | 1 | 0 | structuring my mysql table correctly | I have a list of businesses and each business could be part of any number of categories. So what I would normally do is have a table 'business' then a table 'categories' and a table 'businesscategories' which would have the id of the business and category so therefore a business could be linked to any number of categories.
However, I wondered if there's a much simpler way of assigning businesses to any number of categories? Just keeping it all to 1 or 2 tables would be brilliant if possible...
Thanks | mysql | null | null | null | null | null | open | structuring my mysql table correctly
===
I have a list of businesses and each business could be part of any number of categories. So what I would normally do is have a table 'business' then a table 'categories' and a table 'businesscategories' which would have the id of the business and category so therefore a business could be linked to any number of categories.
However, I wondered if there's a much simpler way of assigning businesses to any number of categories? Just keeping it all to 1 or 2 tables would be brilliant if possible...
Thanks | 0 |
5,456,474 | 03/28/2011 08:37:39 | 655,259 | 03/11/2011 11:32:28 | 17 | 2 | What's the English words for "pan domain name"? | the main domain is www.abc.com
I use the DNS to set all sub-domains *.abc.com point to the www.abc.com.
How to say this in english?
| domain | name | pan | null | null | 03/28/2011 12:11:19 | off topic | What's the English words for "pan domain name"?
===
the main domain is www.abc.com
I use the DNS to set all sub-domains *.abc.com point to the www.abc.com.
How to say this in english?
| 2 |
4,464,760 | 12/16/2010 19:49:21 | 545,261 | 12/16/2010 19:49:21 | 1 | 0 | Problem playing an audio file in Blackberry 4.7.1 simulator | I am trying to play an wav audio file in my blackberry storm 4.7.1 simulator.I wrote some code.But i am getting exception and the audio is not being played.Can anyone tell me the error in my code.
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.ui.component.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import java.io.*;
public class CreateMenu extends UiApplication
{
public static void main(String[] args)
{
CreateMenu app = new CreateMenu();
app.enterEventDispatcher();
}
public CreateMenu()
{
pushScreen(new AudioPlaybackDemoScreen());
}
private class AudioPlaybackDemoScreen extends MainScreen
{
public AudioPlaybackDemoScreen()
{
try
{
Player p = javax.microedition.media.Manager.createPlayer("http://abc.com/sounds/abc.wav");
p.realize();
VolumeControl volume = (VolumeControl)p.getControl("VolumeControl");
volume.setLevel(30);
p.prefetch();
p.start();
}
catch(MediaException me)
{
Dialog.alert(me.toString());
}
catch(IOException ioe)
{
Dialog.alert(ioe.toString());
}
}
}
} | java | blackberry | null | null | null | null | open | Problem playing an audio file in Blackberry 4.7.1 simulator
===
I am trying to play an wav audio file in my blackberry storm 4.7.1 simulator.I wrote some code.But i am getting exception and the audio is not being played.Can anyone tell me the error in my code.
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.ui.component.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import java.io.*;
public class CreateMenu extends UiApplication
{
public static void main(String[] args)
{
CreateMenu app = new CreateMenu();
app.enterEventDispatcher();
}
public CreateMenu()
{
pushScreen(new AudioPlaybackDemoScreen());
}
private class AudioPlaybackDemoScreen extends MainScreen
{
public AudioPlaybackDemoScreen()
{
try
{
Player p = javax.microedition.media.Manager.createPlayer("http://abc.com/sounds/abc.wav");
p.realize();
VolumeControl volume = (VolumeControl)p.getControl("VolumeControl");
volume.setLevel(30);
p.prefetch();
p.start();
}
catch(MediaException me)
{
Dialog.alert(me.toString());
}
catch(IOException ioe)
{
Dialog.alert(ioe.toString());
}
}
}
} | 0 |
962,007 | 06/07/2009 14:46:09 | 61,027 | 01/31/2009 18:11:04 | 2,069 | 144 | What one feature would you cut from your favorite language? | It's easy to think of features to add to a language. What feature would you *cut* from a language, and why?
Douglas Crockford says [don't use JavaScript's "with" statement][1]. What are the hazard areas in other computer languages? What features have you seen get in the way of software engineering?
[1]: http://yuiblog.com/blog/2006/04/11/with-statement-considered-harmful/ | programming-language | features | hazards | null | null | 10/24/2011 18:21:44 | not constructive | What one feature would you cut from your favorite language?
===
It's easy to think of features to add to a language. What feature would you *cut* from a language, and why?
Douglas Crockford says [don't use JavaScript's "with" statement][1]. What are the hazard areas in other computer languages? What features have you seen get in the way of software engineering?
[1]: http://yuiblog.com/blog/2006/04/11/with-statement-considered-harmful/ | 4 |
6,768,763 | 07/20/2011 21:26:57 | 843,879 | 07/14/2011 04:52:08 | 6 | 0 | Need Help Formatting with the code | Ok I have been dying on this page...the code is below...if you can visit and see that it is not formatting right...I am wanting it to format in a way that it is all in line and not jumbled up like it is...what do I change in the code below...
Where one properity is below the other...u will see when you look at the site
http://ampmproperties.com/listing-of-properties-available
<style>
#para1{ text-align:center;}
.bdr_blb{
border:#000000 solid 4px;
height:70px;
background:#cccccc;
text-align:center;
font-size:14px; font-weight:700;}
.light32{ font-size:32px;}
.bggrey{ background:#cccccc;}
.light18{ font-size:18px;}
#bedroom4{
background:#cccccc;
}
.heading_div{float:left;}
.entry-content{float:left;}
.thumnail_col ul li {
float: left;
list-style: none outside none;
margin-right: 15px;
}
.thumnail_col ul li img{background:none; border:none;}
</style>
?>
<div id="container">
<div id="" role="main">
<?php $args = array( 'category_name' => 'lease', 'orderby' => 'title' ,'order' => 'ASC' );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
if ($count==1)
{
echo "<tr>";
}
?>
<td><div class="lease">
<div class="heading_div"><h2 class="entry-title"><strong><u>
<?php
echo '<a href="'.get_bloginfo('url').'/lease/'.$loop->post->post_name.'" target="_blank">'.$loop->post->post_title.'</a>';
?>
</u></strong></div></h2>
<div class="entry-content">
<div class="desc">
<?php
the_content();
?>
</div>
</div></div></td>
<?php
if($count==$number_of_columns)
{
echo "</tr>";
$count=0;
}
$count++;
endwhile;
?>
</div><!-- #content -->
</div><!-- #container --> | php | css | null | null | null | 07/21/2011 01:22:14 | off topic | Need Help Formatting with the code
===
Ok I have been dying on this page...the code is below...if you can visit and see that it is not formatting right...I am wanting it to format in a way that it is all in line and not jumbled up like it is...what do I change in the code below...
Where one properity is below the other...u will see when you look at the site
http://ampmproperties.com/listing-of-properties-available
<style>
#para1{ text-align:center;}
.bdr_blb{
border:#000000 solid 4px;
height:70px;
background:#cccccc;
text-align:center;
font-size:14px; font-weight:700;}
.light32{ font-size:32px;}
.bggrey{ background:#cccccc;}
.light18{ font-size:18px;}
#bedroom4{
background:#cccccc;
}
.heading_div{float:left;}
.entry-content{float:left;}
.thumnail_col ul li {
float: left;
list-style: none outside none;
margin-right: 15px;
}
.thumnail_col ul li img{background:none; border:none;}
</style>
?>
<div id="container">
<div id="" role="main">
<?php $args = array( 'category_name' => 'lease', 'orderby' => 'title' ,'order' => 'ASC' );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
if ($count==1)
{
echo "<tr>";
}
?>
<td><div class="lease">
<div class="heading_div"><h2 class="entry-title"><strong><u>
<?php
echo '<a href="'.get_bloginfo('url').'/lease/'.$loop->post->post_name.'" target="_blank">'.$loop->post->post_title.'</a>';
?>
</u></strong></div></h2>
<div class="entry-content">
<div class="desc">
<?php
the_content();
?>
</div>
</div></div></td>
<?php
if($count==$number_of_columns)
{
echo "</tr>";
$count=0;
}
$count++;
endwhile;
?>
</div><!-- #content -->
</div><!-- #container --> | 2 |
4,359,027 | 12/05/2010 13:26:05 | 531,213 | 12/05/2010 13:22:48 | 1 | 0 | Firefix displaying extra <strong> tags, but there not in the html source? | My website in acting stangly while being viewed in firefox so I started debugging and found firefox only is adding extra <strong> tags in my code, all empty?
Any ideas?
allia.honestideas.co.uk | html | firefox | browser-compatibility | null | null | 12/06/2010 01:46:38 | not a real question | Firefix displaying extra <strong> tags, but there not in the html source?
===
My website in acting stangly while being viewed in firefox so I started debugging and found firefox only is adding extra <strong> tags in my code, all empty?
Any ideas?
allia.honestideas.co.uk | 1 |
11,161,665 | 06/22/2012 17:58:20 | 1,475,562 | 06/22/2012 17:41:50 | 1 | 0 | Java db driven app deployment | im creating a database driven application and using JavaDB (derby) Embedded DB
i have used Netbeans IDE to create this desktop app, the app works fine on my PC...the creation and handling of db is very easy in netbeans...but i have a doubt ,bcoz when i deleted the db from netbeans my created apps db function are not working...but this should not happen bcoz the db is embedded?
If app is dependent on db stored in my pc,how can i really embed the database
so that i could distribute the app to others...and it work fine on other pc's with JRE..
I searched and found that db can be embedded in jar file,but by doing so it makes db read only..
My app make changes in db tables on user choise,so i cant keep it read only.
So how can i embed the db in my app ?? | java | null | null | null | null | 06/23/2012 01:08:51 | not a real question | Java db driven app deployment
===
im creating a database driven application and using JavaDB (derby) Embedded DB
i have used Netbeans IDE to create this desktop app, the app works fine on my PC...the creation and handling of db is very easy in netbeans...but i have a doubt ,bcoz when i deleted the db from netbeans my created apps db function are not working...but this should not happen bcoz the db is embedded?
If app is dependent on db stored in my pc,how can i really embed the database
so that i could distribute the app to others...and it work fine on other pc's with JRE..
I searched and found that db can be embedded in jar file,but by doing so it makes db read only..
My app make changes in db tables on user choise,so i cant keep it read only.
So how can i embed the db in my app ?? | 1 |
8,130,583 | 11/15/2011 01:55:42 | 1,046,657 | 11/15/2011 01:42:13 | 1 | 0 | Copy and Paste do not work in GUI | The problem basically is I have tried many times to copy a text from Microsoft word, Notebad and also the browser and paste in a java GUI that runs on JDK 1.6.0_29 but I couldn't.
Also, I tried to do that on a GUI that runs on JDK 1.7.0_01 and also it did not copy and paste.
After that I tried it on a GUI that runs on JDK 1.6.0_23 and JDK 1.6.0_21 and it works fine.
My question is:
I am developing a java GUI and I MUST fix this problem. I searched about this problem but I could not find a solution.
Please provide me with the solution so I can fix it.
Thanks | gui | clipboard | jdk | null | null | 11/15/2011 23:58:06 | not a real question | Copy and Paste do not work in GUI
===
The problem basically is I have tried many times to copy a text from Microsoft word, Notebad and also the browser and paste in a java GUI that runs on JDK 1.6.0_29 but I couldn't.
Also, I tried to do that on a GUI that runs on JDK 1.7.0_01 and also it did not copy and paste.
After that I tried it on a GUI that runs on JDK 1.6.0_23 and JDK 1.6.0_21 and it works fine.
My question is:
I am developing a java GUI and I MUST fix this problem. I searched about this problem but I could not find a solution.
Please provide me with the solution so I can fix it.
Thanks | 1 |
8,857,939 | 01/13/2012 22:11:25 | 800,123 | 06/15/2011 17:41:21 | 360 | 4 | is there a "About box" of Java swing in C#? | I'm looking for an control or something like to About box [Java Swing][1] in C#.
Any help is very appreciated thanks in advance.
[1]: http://en.wikipedia.org/wiki/Swing_%28Java%29 | c# | java | .net | swing | about-box | 01/15/2012 00:52:59 | not a real question | is there a "About box" of Java swing in C#?
===
I'm looking for an control or something like to About box [Java Swing][1] in C#.
Any help is very appreciated thanks in advance.
[1]: http://en.wikipedia.org/wiki/Swing_%28Java%29 | 1 |
1,910,392 | 12/15/2009 21:04:38 | 118,154 | 06/05/2009 17:08:56 | 383 | 6 | Cruise Control.net and subversion issue | I have a intervalTrigger that runs off subversion source control.
I update subversion but it doesn't trigger the build.
I have the exact same setup on another server and it works.
How can I troubleshoot this? Is there a log I can look into? I don't see any error messages.
The new server is VMWare | subversion | svn | cruisecontrol.net | null | null | null | open | Cruise Control.net and subversion issue
===
I have a intervalTrigger that runs off subversion source control.
I update subversion but it doesn't trigger the build.
I have the exact same setup on another server and it works.
How can I troubleshoot this? Is there a log I can look into? I don't see any error messages.
The new server is VMWare | 0 |
2,922,939 | 05/27/2010 16:29:38 | 117,700 | 06/04/2009 23:04:34 | 1,989 | 19 | how much do these speed up your macro? Application.ScreenUpdating = False Application.DisplayAlerts = False | what is the point of doing these:
Application.ScreenUpdating = False
Application.DisplayAlerts = False
does it really save that much time? | excel | vba | null | null | null | null | open | how much do these speed up your macro? Application.ScreenUpdating = False Application.DisplayAlerts = False
===
what is the point of doing these:
Application.ScreenUpdating = False
Application.DisplayAlerts = False
does it really save that much time? | 0 |
3,361,675 | 07/29/2010 10:50:16 | 404,758 | 07/12/2010 23:28:55 | 1 | 0 | F#/WebSharper web development v C#/Ruby | What are the differences between F# web development using a framework like ASP.NET or Websharper and C#/ASP.NET or Ruby? Thanks | c# | asp.net | ruby-on-rails | f# | null | 07/30/2010 01:09:15 | not constructive | F#/WebSharper web development v C#/Ruby
===
What are the differences between F# web development using a framework like ASP.NET or Websharper and C#/ASP.NET or Ruby? Thanks | 4 |
4,343,537 | 12/03/2010 08:02:52 | 518,513 | 11/24/2010 08:57:04 | 359 | 13 | mysql query, how to go about it? | I am storing data in a mysql database with unix time()
I want to select data out for days, and echo it out like this:
Monday - value
Tuesday - value
Wednesday - value
Thursday - value
Friday - value
Saturday - value
Sunday - value
value is saved in the database as value
the times are saved in the database as time
So basically I want to select time from the database in a query that groups all of them as a day, Monday.. do you get what I mean?
Any help with this would be greatly appreciated. | php | mysql | query | null | null | null | open | mysql query, how to go about it?
===
I am storing data in a mysql database with unix time()
I want to select data out for days, and echo it out like this:
Monday - value
Tuesday - value
Wednesday - value
Thursday - value
Friday - value
Saturday - value
Sunday - value
value is saved in the database as value
the times are saved in the database as time
So basically I want to select time from the database in a query that groups all of them as a day, Monday.. do you get what I mean?
Any help with this would be greatly appreciated. | 0 |
10,467,323 | 05/06/2012 01:17:39 | 977,744 | 10/04/2011 03:37:12 | 1 | 0 | replacing all other colors from a picture except black - Xcode | I am working on scanning code that i am planning to take out all other colors out so the scanner app can work better. The black text is written on orange stripped, yellow paper. Any suggestions, something simple or prebuilt would be nice. | xcode | scanning | null | null | null | 05/06/2012 22:18:50 | not a real question | replacing all other colors from a picture except black - Xcode
===
I am working on scanning code that i am planning to take out all other colors out so the scanner app can work better. The black text is written on orange stripped, yellow paper. Any suggestions, something simple or prebuilt would be nice. | 1 |
8,947,972 | 01/20/2012 21:18:25 | 205,554 | 11/07/2009 12:15:09 | 81 | 1 | Java write lines/strings to an open file | I wondering how, in Java, write to a file while it's open?
I mean - user can open a file and view the file with it's changes by adding a line by line at the end of a file.
Any real code ideas? Classes I should use for that purpose?
Thanks in advance. | java | io | null | null | null | 01/20/2012 22:09:59 | not a real question | Java write lines/strings to an open file
===
I wondering how, in Java, write to a file while it's open?
I mean - user can open a file and view the file with it's changes by adding a line by line at the end of a file.
Any real code ideas? Classes I should use for that purpose?
Thanks in advance. | 1 |
9,943,885 | 03/30/2012 13:24:59 | 991,652 | 10/12/2011 14:32:25 | 1 | 1 | How to automate thousands of landing page variations? | Fist of, I'm not a programmer and I might be using some of these terms incorrectly.
My goal is to have thousands of different landing pages on an asp.net site using Web Client Software Factory architecture. We're using one template and each page will be populated with specific product data. I'd like the urls to look something like this: domain.com/product-category/productID.
How can I automate this? Any tips to point me in the right direction is appreciated. | asp.net | mvc | wcsf | null | null | 08/01/2012 02:59:29 | not constructive | How to automate thousands of landing page variations?
===
Fist of, I'm not a programmer and I might be using some of these terms incorrectly.
My goal is to have thousands of different landing pages on an asp.net site using Web Client Software Factory architecture. We're using one template and each page will be populated with specific product data. I'd like the urls to look something like this: domain.com/product-category/productID.
How can I automate this? Any tips to point me in the right direction is appreciated. | 4 |
8,951,009 | 01/21/2012 05:50:08 | 1,161,919 | 01/21/2012 05:19:04 | 1 | 0 | difference between Scalable Vector Graphics (SVG) images & jpeg images? | I just want to know which image loads faster in web browsers, svg or jpeg.? | xml | svg | null | null | null | 01/24/2012 18:56:21 | not constructive | difference between Scalable Vector Graphics (SVG) images & jpeg images?
===
I just want to know which image loads faster in web browsers, svg or jpeg.? | 4 |
6,739,375 | 07/18/2011 21:00:58 | 413,797 | 08/07/2010 11:33:56 | 81 | 0 | Optimising loops for pixel processing | I'm implementing an algorithm (in OpenCV) that iterates over every pixel in an image, and for each pixel calculates block matches with pixels in the neighbourhood in order to evalaute the similarity of these neighbouring pixels. A "naive" implementation with very deep loops is very slow, so I was wondering how I might try to improve the performance. The following is an extract of my current code:
for(nCh=1;nCh<=channels;nCh++) {
for(i=0;i<h;i++) {
for(j=0;j<w;j++) {
for (si=-sw_height; si<sw_height; si++){
for (sj=-sw_width; sj<sw_width; sj++){
dist = 0;
for (blki=0; blki<blk_height; blki++){
for (blkj=0; blkj<blk_width; blkj++){
current_pxl = data[(i+blki)*step+(j+blkj)*channels+nCh];
search_pxl = data[(i+blki+si)*step+(j+blkj+sj)*channels+nCh];
dist += pow((current_pxl - search_pxl),2);
}
}
// ... further processing
}
}
}
}
}
| optimization | image-processing | opencv | null | null | null | open | Optimising loops for pixel processing
===
I'm implementing an algorithm (in OpenCV) that iterates over every pixel in an image, and for each pixel calculates block matches with pixels in the neighbourhood in order to evalaute the similarity of these neighbouring pixels. A "naive" implementation with very deep loops is very slow, so I was wondering how I might try to improve the performance. The following is an extract of my current code:
for(nCh=1;nCh<=channels;nCh++) {
for(i=0;i<h;i++) {
for(j=0;j<w;j++) {
for (si=-sw_height; si<sw_height; si++){
for (sj=-sw_width; sj<sw_width; sj++){
dist = 0;
for (blki=0; blki<blk_height; blki++){
for (blkj=0; blkj<blk_width; blkj++){
current_pxl = data[(i+blki)*step+(j+blkj)*channels+nCh];
search_pxl = data[(i+blki+si)*step+(j+blkj+sj)*channels+nCh];
dist += pow((current_pxl - search_pxl),2);
}
}
// ... further processing
}
}
}
}
}
| 0 |
4,443,122 | 12/14/2010 19:07:37 | 542,411 | 12/14/2010 19:07:37 | 1 | 0 | How I can read a paragraph from the keyboard and stored it in a linked list (each node has a one word) ? | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
class node
{
private:
string data;
node *next;
public:
node*head,*current,*tail;
node()
{
head=current=tail=NULL;
}
void read()
{
string x;
tail=new node;
cin>>tail->data;
tail->next=NULL;
head=current=tail;
cin>>x;
while(x!=".")
{
current=new node;
current->next=NULL;
stringstream ss;//("plez help me");
string s;
//getline(cin,aa);
while (getline(ss, s,' '))
{
cout << s << "\t";
}
current->data=s;
tail->next=current;
tail=tail->next;
//cin>>x;
}
}
void print()
{
current=head;
while(current!=NULL)
{
cout<<current->data<<endl;
current=current->next;
}
}
}; | c++ | null | null | null | null | 12/15/2010 00:08:07 | not a real question | How I can read a paragraph from the keyboard and stored it in a linked list (each node has a one word) ?
===
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
class node
{
private:
string data;
node *next;
public:
node*head,*current,*tail;
node()
{
head=current=tail=NULL;
}
void read()
{
string x;
tail=new node;
cin>>tail->data;
tail->next=NULL;
head=current=tail;
cin>>x;
while(x!=".")
{
current=new node;
current->next=NULL;
stringstream ss;//("plez help me");
string s;
//getline(cin,aa);
while (getline(ss, s,' '))
{
cout << s << "\t";
}
current->data=s;
tail->next=current;
tail=tail->next;
//cin>>x;
}
}
void print()
{
current=head;
while(current!=NULL)
{
cout<<current->data<<endl;
current=current->next;
}
}
}; | 1 |
9,575,819 | 03/05/2012 23:40:43 | 1,094,640 | 12/12/2011 22:06:16 | 64 | 0 | Time slot allocation - design and approach | I just stumbled upon a very simple problem. Suppose you have integer values (time slots for instance) that should be allocated for Students. Each student would send a request for timeslot allocation and will be given one at random.
I was thinking of acieving that with the following:
List<Integer> possibleSlots;
Map<Integer, Student> allocatedSlots;
Now for each request I would do sth like:
Random r = new Random();
int slot = possibleSlots.removeAt(r.next(possibleSlots.size()));
allocatedSlots.put(slot, student);
Would the following approach be sth suitable as a general scenario for allocating slots at random and keeping info on who has which slot or is there a better way without perhaps using the list of possible slots? | java | design | null | null | null | null | open | Time slot allocation - design and approach
===
I just stumbled upon a very simple problem. Suppose you have integer values (time slots for instance) that should be allocated for Students. Each student would send a request for timeslot allocation and will be given one at random.
I was thinking of acieving that with the following:
List<Integer> possibleSlots;
Map<Integer, Student> allocatedSlots;
Now for each request I would do sth like:
Random r = new Random();
int slot = possibleSlots.removeAt(r.next(possibleSlots.size()));
allocatedSlots.put(slot, student);
Would the following approach be sth suitable as a general scenario for allocating slots at random and keeping info on who has which slot or is there a better way without perhaps using the list of possible slots? | 0 |
9,928,464 | 03/29/2012 15:22:31 | 637,142 | 02/28/2011 04:31:33 | 1,423 | 82 | Animate image from style not working | I want to place the same animation to all my images in my application when someone hovers the mouse over them. As a result I have created the following style:
<Style x:Key="test" TargetType="{x:Type Image}">
<Style.Resources>
<Storyboard x:Key="Storyboard1">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)"
Storyboard.Target="{Binding RelativeSource={RelativeSource Self}}">
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="200">
<EasingDoubleKeyFrame.EasingFunction>
<BackEase EasingMode="EaseOut"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</Style.Resources>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
</Style>
and on the image that I plan on animating I will apply that style as:
<Image Style="{StaticResource test}" Name="image1" Source="/PDV;component/images/t.png" Stretch="Uniform" Width="100" />
when I hover my mouse over that image I get the exception:
> System.InvalidOperationException was unhandled Message=Cannot
> animate '(0)' on an immutable object instance.
> Source=PresentationFramework StackTrace:
> at System.Windows.Media.Animation.Storyboard.VerifyPathIsAnimatable(PropertyPath
> path)
> at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock
> currentClock, DependencyObject containingObject, INameScope nameScope,
> DependencyObject parentObject, String parentObjectName, PropertyPath
> parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary
> clockMappings, Int64 layer)
> at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock
> currentClock, DependencyObject containingObject, INameScope nameScope,
> DependencyObject parentObject, String parentObjectName, PropertyPath
> parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary
>
> etc..
What do I have to change to the style to make it work? | c# | wpf | xaml | animation | styles | null | open | Animate image from style not working
===
I want to place the same animation to all my images in my application when someone hovers the mouse over them. As a result I have created the following style:
<Style x:Key="test" TargetType="{x:Type Image}">
<Style.Resources>
<Storyboard x:Key="Storyboard1">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)"
Storyboard.Target="{Binding RelativeSource={RelativeSource Self}}">
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="200">
<EasingDoubleKeyFrame.EasingFunction>
<BackEase EasingMode="EaseOut"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</Style.Resources>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
</Style>
and on the image that I plan on animating I will apply that style as:
<Image Style="{StaticResource test}" Name="image1" Source="/PDV;component/images/t.png" Stretch="Uniform" Width="100" />
when I hover my mouse over that image I get the exception:
> System.InvalidOperationException was unhandled Message=Cannot
> animate '(0)' on an immutable object instance.
> Source=PresentationFramework StackTrace:
> at System.Windows.Media.Animation.Storyboard.VerifyPathIsAnimatable(PropertyPath
> path)
> at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock
> currentClock, DependencyObject containingObject, INameScope nameScope,
> DependencyObject parentObject, String parentObjectName, PropertyPath
> parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary
> clockMappings, Int64 layer)
> at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock
> currentClock, DependencyObject containingObject, INameScope nameScope,
> DependencyObject parentObject, String parentObjectName, PropertyPath
> parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary
>
> etc..
What do I have to change to the style to make it work? | 0 |
9,867,842 | 03/26/2012 06:55:03 | 1,287,975 | 03/23/2012 09:52:40 | 1 | 0 | Count characters in a text area | How to create a program that show how much characters are left in a text area after writting something in the text area. it will show how much characters are left from a fixed no. of characters after each character entry.. in android | android | null | null | null | null | 03/26/2012 14:32:05 | not a real question | Count characters in a text area
===
How to create a program that show how much characters are left in a text area after writting something in the text area. it will show how much characters are left from a fixed no. of characters after each character entry.. in android | 1 |
9,072,017 | 01/30/2012 22:50:14 | 597,539 | 01/31/2011 21:49:07 | 71 | 2 | VS11 (VB.NET) Editor mysterious death | What is it? in the code that cause the Editor to die?
Try putting in a newline after "Exts" and it dies.
Module Module1
Sub Main()
End Sub
End Module
Public Module Exts
Private Iterator Function GenerateAscending(Of T As IComparable(Of T))(s As T, f As T, fn As Func(Of T, T), Optional inc As Boolean = True) As IEnumerable(Of T)
Dim curr = s
While curr.CompareTo(f) <= 0
Yield curr
curr = fn(curr)
End While
If inc Then Yield curr
End Function
End Module | vb.net | ide | editor | visual-studio-11 | null | 01/31/2012 02:22:21 | too localized | VS11 (VB.NET) Editor mysterious death
===
What is it? in the code that cause the Editor to die?
Try putting in a newline after "Exts" and it dies.
Module Module1
Sub Main()
End Sub
End Module
Public Module Exts
Private Iterator Function GenerateAscending(Of T As IComparable(Of T))(s As T, f As T, fn As Func(Of T, T), Optional inc As Boolean = True) As IEnumerable(Of T)
Dim curr = s
While curr.CompareTo(f) <= 0
Yield curr
curr = fn(curr)
End While
If inc Then Yield curr
End Function
End Module | 3 |
11,348,064 | 07/05/2012 15:52:33 | 1,488,881 | 06/28/2012 14:33:41 | 1 | 0 | HTML5 video events not triggered | I used the advice here: http://stackoverflow.com/questions/3815090/webview-and-html5-video
To show a video in a webview by overriding onShowCustomView and setting the videoView the activity content.
In the js there is an event listener on the video element waiting for the "ended" event. This event never gets thrown and so the actions (eg, go to next page) that are meant to happen at the end of the video never occur.
As far as I can tell I don't have access to the js video element and so can't manually throw the event by overring onCompletion in Android code.
Is there a way to fix this without making changes to the js as it is not certain that I will always have access to this.
Thanks
KK | android | video | null | null | null | null | open | HTML5 video events not triggered
===
I used the advice here: http://stackoverflow.com/questions/3815090/webview-and-html5-video
To show a video in a webview by overriding onShowCustomView and setting the videoView the activity content.
In the js there is an event listener on the video element waiting for the "ended" event. This event never gets thrown and so the actions (eg, go to next page) that are meant to happen at the end of the video never occur.
As far as I can tell I don't have access to the js video element and so can't manually throw the event by overring onCompletion in Android code.
Is there a way to fix this without making changes to the js as it is not certain that I will always have access to this.
Thanks
KK | 0 |
1,360,618 | 09/01/2009 05:07:11 | 1,261 | 08/14/2008 01:09:20 | 368 | 9 | Bookmarklet behind elements | I have a bookmarklet that will come up with a iframe that will load a web form I have. On most site, it works fine with the bookmarklet on top of every element in the current html page. But for certain sites with a lot of javascript loading (e.g. meebo.com), the loaded iframe will go below. How can i troubleshot this? Thanks. attached screen shot.
![alt text][1]
[1]: http://farm4.static.flickr.com/3499/3877280242_40397c90ff.jpg | bookmarklet | iframe | null | null | null | null | open | Bookmarklet behind elements
===
I have a bookmarklet that will come up with a iframe that will load a web form I have. On most site, it works fine with the bookmarklet on top of every element in the current html page. But for certain sites with a lot of javascript loading (e.g. meebo.com), the loaded iframe will go below. How can i troubleshot this? Thanks. attached screen shot.
![alt text][1]
[1]: http://farm4.static.flickr.com/3499/3877280242_40397c90ff.jpg | 0 |
3,526,902 | 08/19/2010 22:50:33 | 303,911 | 03/29/2010 03:14:32 | 3,666 | 175 | Tracing the source line of an error in a Javascript eval | I'm building something that includes javascripts on the fly asynchronously, which works, but I'm looking to improve upon the error detection (so all the errors don't just appear to come from some line near the AJAX call that pulls them down.
If I'm using eval to evaluate a multiline javascript file, is there any way to trace which line an error occurs on?
By keeping references to the variables I need when including, I have no problem determining which file the errors occurs in. My problem is determining which _line_ the error occurs in.
Example:
try {
eval("var valid_statement = 7; \n invalid_statement())))");
} catch(e) {
var err = new Error();
err.message = 'Error in Evald Script: ' + e.message;
err.lineNumber = ???
throw err;
}
How can I tell that the error occurred in the second line there?
Specifically I'm interested in doing this in Firefox.
I know that error objects have `e.stack` in Mozilla browsers, but the output doesn't seem to take into account newlines properly. | javascript | error-handling | eval | null | null | null | open | Tracing the source line of an error in a Javascript eval
===
I'm building something that includes javascripts on the fly asynchronously, which works, but I'm looking to improve upon the error detection (so all the errors don't just appear to come from some line near the AJAX call that pulls them down.
If I'm using eval to evaluate a multiline javascript file, is there any way to trace which line an error occurs on?
By keeping references to the variables I need when including, I have no problem determining which file the errors occurs in. My problem is determining which _line_ the error occurs in.
Example:
try {
eval("var valid_statement = 7; \n invalid_statement())))");
} catch(e) {
var err = new Error();
err.message = 'Error in Evald Script: ' + e.message;
err.lineNumber = ???
throw err;
}
How can I tell that the error occurred in the second line there?
Specifically I'm interested in doing this in Firefox.
I know that error objects have `e.stack` in Mozilla browsers, but the output doesn't seem to take into account newlines properly. | 0 |
6,297,313 | 06/09/2011 18:12:17 | 390,973 | 07/13/2010 21:19:08 | 8 | 1 | How to structure re-used code between modules | I'm pretty new to Python and, in writing an app, have ended up with a structure that's a bit of a mess. The example below should illustrate what I'm trying to do. The issue is that I can't call the login method from common.py because it is only defined in website1.py or website2.py.
Module common.py
class Browser():
def load_page():
Login.login()
Module website1.py
import common.py
class Login:
@staticmethod
def login():
#code to login to this website 1
Module website2.py
import common.py
@staticmethod
class Login:
def login():
#code to login to website 2
Any thoughts on how to restructure this would be appreciated. | python | module | null | null | null | null | open | How to structure re-used code between modules
===
I'm pretty new to Python and, in writing an app, have ended up with a structure that's a bit of a mess. The example below should illustrate what I'm trying to do. The issue is that I can't call the login method from common.py because it is only defined in website1.py or website2.py.
Module common.py
class Browser():
def load_page():
Login.login()
Module website1.py
import common.py
class Login:
@staticmethod
def login():
#code to login to this website 1
Module website2.py
import common.py
@staticmethod
class Login:
def login():
#code to login to website 2
Any thoughts on how to restructure this would be appreciated. | 0 |
11,014,971 | 06/13/2012 12:37:41 | 1,453,638 | 06/13/2012 12:34:27 | 1 | 0 | Linkedin's app approvation system | I'm a beginner programmer and I'm doing an app for the company I work... I'm doing this app with linkedin and I would like to know what is the approval system of linkedin... In few words, what I have to do for test and see my app on linkedin site.
Thank for the help, and sorry for my bad english :) | application | system | linkedin | null | null | 06/13/2012 14:17:58 | not a real question | Linkedin's app approvation system
===
I'm a beginner programmer and I'm doing an app for the company I work... I'm doing this app with linkedin and I would like to know what is the approval system of linkedin... In few words, what I have to do for test and see my app on linkedin site.
Thank for the help, and sorry for my bad english :) | 1 |
8,065,128 | 11/09/2011 12:36:59 | 1,037,646 | 11/09/2011 12:30:18 | 1 | 0 | How to select a product_id in MySQL |
I want to select product_id is attribute_value_id = 31 and attribute_value_id = 18 as image below.
http://i.stack.imgur.com/VNOx8.png
Please help me. | mysql | null | null | null | null | 11/09/2011 13:15:27 | not a real question | How to select a product_id in MySQL
===
I want to select product_id is attribute_value_id = 31 and attribute_value_id = 18 as image below.
http://i.stack.imgur.com/VNOx8.png
Please help me. | 1 |
3,343,693 | 07/27/2010 12:41:20 | 403,384 | 07/27/2010 12:41:20 | 1 | 0 | Check website at High Resolution | I want to check my website at high reslutions which is not there in my PC. So could anyone suggest me any online utility where I can check my website at high resolutions.
Thanks in advance!!! | resolution | website | null | null | null | 07/27/2010 12:46:14 | off topic | Check website at High Resolution
===
I want to check my website at high reslutions which is not there in my PC. So could anyone suggest me any online utility where I can check my website at high resolutions.
Thanks in advance!!! | 2 |
10,600,412 | 05/15/2012 12:13:38 | 1,353,123 | 04/24/2012 07:54:36 | 56 | 15 | Best Multi Threading based code in android | hi guys i am a php web developer and loves java too some months ago started Android development but never felt myself confident that i m using correct approach so just want to know the best way of Android development along with "Mutlithreading". | android | null | null | null | null | 05/16/2012 08:52:47 | not a real question | Best Multi Threading based code in android
===
hi guys i am a php web developer and loves java too some months ago started Android development but never felt myself confident that i m using correct approach so just want to know the best way of Android development along with "Mutlithreading". | 1 |
11,455,394 | 07/12/2012 15:35:48 | 1,403,638 | 05/18/2012 14:40:56 | 1,520 | 124 | PDO & custom Database wrapper class: static or instance? | I was looking for a good PDO wrapper class in PHP; as no class among those I have seen suited my needs, I decided to write my own one, enhancing a class I already wrote before that used the now-dreaded `mysql_*` functions to integrate the native escaping, db-agnosticity, prepared statements and so on.
One thing I was wondering is, what is the best approach in developing and using a class like this? One alternative would be by instances:
$db = new Database();
$db->query("SELECT this FROM that");
The other would be with static methods:
DB::query("SELECT foo FROM bar WHERE answer=42");
I've seen some frameworks (f.ex. Joomla API) that prefer to use the first method, but I am not sure of which could be the possible pitfalls of the second approach.
Have you got any insights?
| php | mysql | oop | pdo | null | 07/12/2012 22:33:59 | not constructive | PDO & custom Database wrapper class: static or instance?
===
I was looking for a good PDO wrapper class in PHP; as no class among those I have seen suited my needs, I decided to write my own one, enhancing a class I already wrote before that used the now-dreaded `mysql_*` functions to integrate the native escaping, db-agnosticity, prepared statements and so on.
One thing I was wondering is, what is the best approach in developing and using a class like this? One alternative would be by instances:
$db = new Database();
$db->query("SELECT this FROM that");
The other would be with static methods:
DB::query("SELECT foo FROM bar WHERE answer=42");
I've seen some frameworks (f.ex. Joomla API) that prefer to use the first method, but I am not sure of which could be the possible pitfalls of the second approach.
Have you got any insights?
| 4 |
7,402,015 | 09/13/2011 12:40:02 | 906,230 | 08/22/2011 15:55:49 | 1 | 1 | html2ps intall terminates with an error | I'm trying to install html2ps ([http://user.it.uu.se/~jan/html2ps.html][1]) but the install process exits with an error (I'm on Mac OS X 10.7.1). I have ImageMagick installed. Here's the final part of terminal output:
Do you want to proceed with the installation? [y]: y
Searching for Image/Magick.pm: not found
Searching for LWP/UserAgent.pm: found (/System/Library/Perl/Extras/5.12/LWP/UserAgent.pm)
Searching for ImageMagick: found (/usr/local/ImageMagick/bin/mogrify)
Searching for djpeg: found (/usr/local/bin/djpeg)
Searching for TeX: not found
Searching for dvips: not found
Searching for Ghostscript: not found
Searching for weblint: not found
By default all files will be installed in subdirectories 'bin', 'lib',
and 'man' in a common directory. Is this OK? [y]: y
Enter the name of this directory [/usr/local]: /usr/local
Enter the default paper type, possible choices are:
A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10,
B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10,
letter, legal, arche, archd, archc, archb, archa,
flsa, flse, halfletter, 11x17, ledger, other [A4]: A4
*** Error opening html2ps
logout
[Process completed]
[1]: http://user.it.uu.se/~jan/html2ps.html
Does anyone know what's going on here? Judging from the docs, none of the above libraries are required by html2ps, so their absence shouldn't be a problem. Thanks. | osx | null | null | null | null | null | open | html2ps intall terminates with an error
===
I'm trying to install html2ps ([http://user.it.uu.se/~jan/html2ps.html][1]) but the install process exits with an error (I'm on Mac OS X 10.7.1). I have ImageMagick installed. Here's the final part of terminal output:
Do you want to proceed with the installation? [y]: y
Searching for Image/Magick.pm: not found
Searching for LWP/UserAgent.pm: found (/System/Library/Perl/Extras/5.12/LWP/UserAgent.pm)
Searching for ImageMagick: found (/usr/local/ImageMagick/bin/mogrify)
Searching for djpeg: found (/usr/local/bin/djpeg)
Searching for TeX: not found
Searching for dvips: not found
Searching for Ghostscript: not found
Searching for weblint: not found
By default all files will be installed in subdirectories 'bin', 'lib',
and 'man' in a common directory. Is this OK? [y]: y
Enter the name of this directory [/usr/local]: /usr/local
Enter the default paper type, possible choices are:
A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10,
B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10,
letter, legal, arche, archd, archc, archb, archa,
flsa, flse, halfletter, 11x17, ledger, other [A4]: A4
*** Error opening html2ps
logout
[Process completed]
[1]: http://user.it.uu.se/~jan/html2ps.html
Does anyone know what's going on here? Judging from the docs, none of the above libraries are required by html2ps, so their absence shouldn't be a problem. Thanks. | 0 |
8,320,080 | 11/30/2011 01:31:34 | 1,012,138 | 10/25/2011 05:33:19 | 30 | 0 | Webpage make background stay the same until scroll down far enough | Not sure if this is possible, I am trying to put a novel type document on a html page, I would like the background to stay the same for each chapter, but once they scroll down far enough to the next chapter, the background needs to change to that chapter's (the change could be instant or smoothly doesn't matter)
Any hints? | javascript | html | css | null | null | 11/30/2011 23:54:05 | not a real question | Webpage make background stay the same until scroll down far enough
===
Not sure if this is possible, I am trying to put a novel type document on a html page, I would like the background to stay the same for each chapter, but once they scroll down far enough to the next chapter, the background needs to change to that chapter's (the change could be instant or smoothly doesn't matter)
Any hints? | 1 |
7,578,569 | 09/28/2011 05:05:49 | 195,504 | 10/23/2009 17:54:23 | 806 | 39 | iphone: ways to develop a book like app | I have a situation here, I want to replicate an app which will look like a book for content of book I'll have a XML feed that feed will have information pertaining to contents and number of pages.
The situation is number of pages will vary every time so can you suggest me a way to show varied number of pages every time + how to apply the flip animation while user is browsing these pages.
Please enlighten me on this.
Regards
Ankit | iphone | ipad | uiview | core-animation | null | 09/29/2011 11:31:04 | not a real question | iphone: ways to develop a book like app
===
I have a situation here, I want to replicate an app which will look like a book for content of book I'll have a XML feed that feed will have information pertaining to contents and number of pages.
The situation is number of pages will vary every time so can you suggest me a way to show varied number of pages every time + how to apply the flip animation while user is browsing these pages.
Please enlighten me on this.
Regards
Ankit | 1 |
11,613,055 | 07/23/2012 13:00:35 | 880,276 | 08/05/2011 09:29:05 | 135 | 6 | Joining 3 tables in mysql gives duplicate | I am trying to joining three tables in MySQL but when I do it the way I do it I get duplicate rows with incorrect values so I am not doing it right.
I have three tables that I need to join
nt_stentyper
id | tagsten | varenr_tilb | prod_type | dk | no | sv
nt_tunliste
varenummer | tunnummer | beskrivelse
nt_priser
varenummer | pris
The data I will find is grouped by the "varenummer" in nt_tunliste and nt_priser. That "varenummer" is taken for "varenr_tilb"
I am trying with this:
SELECT * FROM nt_stentyper
INNER JOIN nt_tunliste ON nt_stentyper.varenr_tilb = nt_tunliste.varenummer
INNER JOIN nt_priser ON nt_stentyper.varenr_tilb = nt_tunliste.varenummer
WHERE nt_stentyper.tagsten = 1
ORDER BY nt_stentyper.prod_type ASC
But that gives me duplicate rows like:
ID tagsten varenr_tilb prod_type dk no sv varenummer tunnummer beskrivelse varenummer pris_dk
1 1 12345678 1 1 1 1 12345678 12131415 RT 801 11111111 213
1 1 12345678 1 1 1 1 12345678 12131415 RT 801 12345678 200
5 1 11111111 5 1 1 1 11111111 11111112 Gratbånd 11111111 213
5 1 11111111 5 1 1 1 11111111 11111112 Gratbånd 12345678 200
Which isn't what I want
It should only display one "varenummer" | php | mysql | select | join | null | null | open | Joining 3 tables in mysql gives duplicate
===
I am trying to joining three tables in MySQL but when I do it the way I do it I get duplicate rows with incorrect values so I am not doing it right.
I have three tables that I need to join
nt_stentyper
id | tagsten | varenr_tilb | prod_type | dk | no | sv
nt_tunliste
varenummer | tunnummer | beskrivelse
nt_priser
varenummer | pris
The data I will find is grouped by the "varenummer" in nt_tunliste and nt_priser. That "varenummer" is taken for "varenr_tilb"
I am trying with this:
SELECT * FROM nt_stentyper
INNER JOIN nt_tunliste ON nt_stentyper.varenr_tilb = nt_tunliste.varenummer
INNER JOIN nt_priser ON nt_stentyper.varenr_tilb = nt_tunliste.varenummer
WHERE nt_stentyper.tagsten = 1
ORDER BY nt_stentyper.prod_type ASC
But that gives me duplicate rows like:
ID tagsten varenr_tilb prod_type dk no sv varenummer tunnummer beskrivelse varenummer pris_dk
1 1 12345678 1 1 1 1 12345678 12131415 RT 801 11111111 213
1 1 12345678 1 1 1 1 12345678 12131415 RT 801 12345678 200
5 1 11111111 5 1 1 1 11111111 11111112 Gratbånd 11111111 213
5 1 11111111 5 1 1 1 11111111 11111112 Gratbånd 12345678 200
Which isn't what I want
It should only display one "varenummer" | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.