PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
6,872,657
07/29/2011 11:48:44
735,688
05/03/2011 07:44:51
22
0
track active web links associated with the browser
I am developing a desktop application in python which track active web links associated with the browser. So how can i implement it? Thanks in advance Renjith Raj
python
tracking
null
null
null
07/29/2011 12:20:13
not a real question
track active web links associated with the browser === I am developing a desktop application in python which track active web links associated with the browser. So how can i implement it? Thanks in advance Renjith Raj
1
4,497,925
12/21/2010 09:45:59
524,099
11/29/2010 16:02:26
3
1
How to delete a row from UITableView
I'm trying to delete a row from my table view and so far have been unsuccessful. I keep getting this error "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (5) must be equal to the number of rows contained in that section before the update (5), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted).'" The array which i use to populate the table view is declared in that class, also i get my objects for my array from an sqlite db. The code that i used to try deleting rows is as follows. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { // Delete the row from the data source [categoryArray objectAtIndex:indexPath.row]; [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES]; } else if (editingStyle == UITableViewCellEditingStyleInsert) { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view } } Now for the questions i hope to get answered: -How can i delete rows properly? -Will i face deleting the row if its the only one left in the tableView? -Can i change the tableView that is used in the method to be the UITableView i declared in my .h file? Many Thanks.
iphone
objective-c
uitableview
null
null
null
open
How to delete a row from UITableView === I'm trying to delete a row from my table view and so far have been unsuccessful. I keep getting this error "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (5) must be equal to the number of rows contained in that section before the update (5), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted).'" The array which i use to populate the table view is declared in that class, also i get my objects for my array from an sqlite db. The code that i used to try deleting rows is as follows. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { // Delete the row from the data source [categoryArray objectAtIndex:indexPath.row]; [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES]; } else if (editingStyle == UITableViewCellEditingStyleInsert) { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view } } Now for the questions i hope to get answered: -How can i delete rows properly? -Will i face deleting the row if its the only one left in the tableView? -Can i change the tableView that is used in the method to be the UITableView i declared in my .h file? Many Thanks.
0
7,486,121
09/20/2011 13:40:44
641,867
03/02/2011 20:11:37
76
3
Error Help: Microsoft VBScript runtime error '800a005e'
I'm getting the following error on this page for Standard Advert Listings (scroll down to the bottom): [http://www.inside-guides.co.uk/brentwood/fitness-sport-and-leisure/days-out.html][1] This used to work fine without the error, so I can't see why all of a sudden it's throwing the error. > Microsoft VBScript runtime error '800a005e' Invalid use of Null: > 'Replace' /PageObjects/DirectoryBrowser/i_DirectoryAdvert.asp, line > 124 The code at line 124 is: strDB_AdvertItem = Replace(strDB_AdvertItem, "[OpeningTimes]", rsDB_Ads("OpeningTimes")) Any ideas as to why this could be much appreciated! [1]: http://www.inside-guides.co.uk/brentwood/fitness-sport-and-leisure/days-out.html
vb
vbscript
null
null
null
null
open
Error Help: Microsoft VBScript runtime error '800a005e' === I'm getting the following error on this page for Standard Advert Listings (scroll down to the bottom): [http://www.inside-guides.co.uk/brentwood/fitness-sport-and-leisure/days-out.html][1] This used to work fine without the error, so I can't see why all of a sudden it's throwing the error. > Microsoft VBScript runtime error '800a005e' Invalid use of Null: > 'Replace' /PageObjects/DirectoryBrowser/i_DirectoryAdvert.asp, line > 124 The code at line 124 is: strDB_AdvertItem = Replace(strDB_AdvertItem, "[OpeningTimes]", rsDB_Ads("OpeningTimes")) Any ideas as to why this could be much appreciated! [1]: http://www.inside-guides.co.uk/brentwood/fitness-sport-and-leisure/days-out.html
0
9,308,719
02/16/2012 09:35:34
1,213,450
02/16/2012 09:23:08
1
0
Search a string In Xml Files And Send Email
I have a simple batch file as below but I couldn't work successfuly, I want to do this, 1. I have some xml file ( c:\xmlfile\*.xls ) 2. I want to find a string in xml files ( FAILURE ) 3. If I find this string, batch file send an email else nothing @echo on CD c:\xmlfile findstr /C:"FAILURE" * if %errorlevel% == 1 ( GOTO SENDMAIL ) ELSE ( GOTO HERSEYYOLUNDA ) :SENDMAIL bmail ******** :NOTHING Could you please correct this batch file ? Regards
batch
null
null
null
null
02/16/2012 23:00:35
not a real question
Search a string In Xml Files And Send Email === I have a simple batch file as below but I couldn't work successfuly, I want to do this, 1. I have some xml file ( c:\xmlfile\*.xls ) 2. I want to find a string in xml files ( FAILURE ) 3. If I find this string, batch file send an email else nothing @echo on CD c:\xmlfile findstr /C:"FAILURE" * if %errorlevel% == 1 ( GOTO SENDMAIL ) ELSE ( GOTO HERSEYYOLUNDA ) :SENDMAIL bmail ******** :NOTHING Could you please correct this batch file ? Regards
1
4,081,806
11/02/2010 20:28:31
495,225
11/02/2010 20:28:31
1
0
How to get C# Facebook sdk to response no matte profile language?
How do I get C # FACEBOOK SDK to always respond in the same language no matter what language the profile? eg. relationship_status gives me "mand" (male in Danish) with a Danish profile, but "male" with an English profile.
c#
facebook
sdk
language
null
null
open
How to get C# Facebook sdk to response no matte profile language? === How do I get C # FACEBOOK SDK to always respond in the same language no matter what language the profile? eg. relationship_status gives me "mand" (male in Danish) with a Danish profile, but "male" with an English profile.
0
1,870,124
12/08/2009 21:56:13
184,085
10/04/2009 23:45:13
1
0
drag a link over a batch (windows)
i like using %1 in my batch but dragging a link over from the broswer (chrome) doesnt work. my batch is echo %1 pause
cmd
batch
windows-xp
null
null
null
open
drag a link over a batch (windows) === i like using %1 in my batch but dragging a link over from the broswer (chrome) doesnt work. my batch is echo %1 pause
0
3,891,233
10/08/2010 13:53:05
304,435
03/29/2010 17:29:01
200
1
Expiring memcached using mysql proxy when an update occurs?
I have mysql Proxy running which takes a query, performs an md5 on it, and caches the result into a memcached DB. the problem occurs when an update happens in the rails app that would invalidate that cache. Any ideas on how to invalidate all of the proper keys in the cache at that time?
mysql
ruby-on-rails
memcached
mysql-proxy
null
null
open
Expiring memcached using mysql proxy when an update occurs? === I have mysql Proxy running which takes a query, performs an md5 on it, and caches the result into a memcached DB. the problem occurs when an update happens in the rails app that would invalidate that cache. Any ideas on how to invalidate all of the proper keys in the cache at that time?
0
8,120,803
11/14/2011 11:20:06
268,376
02/08/2010 02:10:13
472
17
Embedded jetty + mysql ClassNotFoundException
For my project I use an embedded jetty server. It is configured through a osgi fragment: JettyCustomizer class. In the customizer I call a JDBCUserRealm which uses the driver com.mysql.jdbc.Driver. I tried everything. Bundle class path, build class path, -Djetty-classpath, jetty home lib, eclipse class path every single class path available but I still get a ClassNotFoundException for the driver. When I call Class.forName('com.mysql.jdbc.Driver').newInstance(); the class is discovered when I add it to the fragment dependencies. So I guess the host fragment calls the driver. Does anybody know how to resolve this? Thanks
mysql
embedded
jetty
null
null
null
open
Embedded jetty + mysql ClassNotFoundException === For my project I use an embedded jetty server. It is configured through a osgi fragment: JettyCustomizer class. In the customizer I call a JDBCUserRealm which uses the driver com.mysql.jdbc.Driver. I tried everything. Bundle class path, build class path, -Djetty-classpath, jetty home lib, eclipse class path every single class path available but I still get a ClassNotFoundException for the driver. When I call Class.forName('com.mysql.jdbc.Driver').newInstance(); the class is discovered when I add it to the fragment dependencies. So I guess the host fragment calls the driver. Does anybody know how to resolve this? Thanks
0
3,142,183
06/29/2010 15:27:42
151,488
08/06/2009 02:43:12
3,378
111
How to maximize the visibility of a plurilingual web site?
I've been told to understand how to maximize the visibility of an upcoming web application that is initially available in multiple languages, specifically French and English. I am interested in understanding how the robots, like the google bot, scrapes a site that is available in multiple language. I have a few questions concerning the behaviour of robots and indexing engines: * Should a web site specify the language in the URL? * Will a robot scrape a site in both language if the language is set through cookies (supposing a link that can change the language)? * Should I use a distinct domain for each language? * What meta tag could be used to help a robot in understanding the language of a web site? * Am I missing anything that I should be aware of?
localization
search-engine
robots.txt
null
null
null
open
How to maximize the visibility of a plurilingual web site? === I've been told to understand how to maximize the visibility of an upcoming web application that is initially available in multiple languages, specifically French and English. I am interested in understanding how the robots, like the google bot, scrapes a site that is available in multiple language. I have a few questions concerning the behaviour of robots and indexing engines: * Should a web site specify the language in the URL? * Will a robot scrape a site in both language if the language is set through cookies (supposing a link that can change the language)? * Should I use a distinct domain for each language? * What meta tag could be used to help a robot in understanding the language of a web site? * Am I missing anything that I should be aware of?
0
9,500,479
02/29/2012 14:00:05
1,228,562
02/23/2012 14:16:20
1
0
For n00b:Sending numeric data to plus another data then save summary Data in different View NSUserDefault
I am a real n00b in developing iOS app. This is my first application in my life and I really need some helps. My app concept is running workout. - When user click button 'start run', app will track a distance which inform users how far do they run in another view. - Next, when the user click button 'Finish workout', the distance will be added(plused) to the 'total distance' variable which need to be saved all the time when finishing each run trip. - Moreover, 'total distance' must load when app starts in index view. As I mentioned, I am a beginner so that could anybody please tell me how to do? where should I put the code and how? I will appreciate sample code as well. I need to know how could I plus the new(fresh) data with saved data and how to save and show it. Really sorry for my English. Thank you in your advance support.
ios
nsuserdefaults
null
null
null
03/01/2012 20:43:45
not a real question
For n00b:Sending numeric data to plus another data then save summary Data in different View NSUserDefault === I am a real n00b in developing iOS app. This is my first application in my life and I really need some helps. My app concept is running workout. - When user click button 'start run', app will track a distance which inform users how far do they run in another view. - Next, when the user click button 'Finish workout', the distance will be added(plused) to the 'total distance' variable which need to be saved all the time when finishing each run trip. - Moreover, 'total distance' must load when app starts in index view. As I mentioned, I am a beginner so that could anybody please tell me how to do? where should I put the code and how? I will appreciate sample code as well. I need to know how could I plus the new(fresh) data with saved data and how to save and show it. Really sorry for my English. Thank you in your advance support.
1
9,315,707
02/16/2012 17:09:26
1,082,019
12/05/2011 17:36:29
19
0
Java, a method declaration inside another method?
I'm studyin' some Java code written by my ex-colleague, and I've found something I cannot understand properly. Here we have a method, getGeneAvailableTaxonomies(), that seems to contain a method call with its own declaration, accept(). Is it true? Is it possibile? Here's the code part: I cannot understand the meaning of the program from FilenameFilter() to the end. Can you help me? Thanx! public List<Integer> getGeneAvailableTaxonomies() { List<Integer> availableTaxon = new ArrayList<Integer>(); File dataDirectory = new File(_currentApplicationPath, String.format("Data")); FilenameFilter filter = new FilenameFilter() { public boolean accept(File dir, String name) { return name.startsWith("gene_") && name.endsWith("_info.info"); //get all info files... } }; String[] children = dataDirectory.list(filter); for(String child:children) { availableTaxon.add(Integer.parseInt(child.substring(child.indexOf("_")+1, child.lastIndexOf("_")))); } return availableTaxon; }
java
function
methods
null
null
null
open
Java, a method declaration inside another method? === I'm studyin' some Java code written by my ex-colleague, and I've found something I cannot understand properly. Here we have a method, getGeneAvailableTaxonomies(), that seems to contain a method call with its own declaration, accept(). Is it true? Is it possibile? Here's the code part: I cannot understand the meaning of the program from FilenameFilter() to the end. Can you help me? Thanx! public List<Integer> getGeneAvailableTaxonomies() { List<Integer> availableTaxon = new ArrayList<Integer>(); File dataDirectory = new File(_currentApplicationPath, String.format("Data")); FilenameFilter filter = new FilenameFilter() { public boolean accept(File dir, String name) { return name.startsWith("gene_") && name.endsWith("_info.info"); //get all info files... } }; String[] children = dataDirectory.list(filter); for(String child:children) { availableTaxon.add(Integer.parseInt(child.substring(child.indexOf("_")+1, child.lastIndexOf("_")))); } return availableTaxon; }
0
10,528,895
05/10/2012 06:57:14
1,201,492
02/10/2012 07:18:15
705
10
How to get the URL of selected Tab
I want to appnd data dynamically in Jquery default tabs but How I can get the selected tab HTML: <!DOCTYPE html> <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"> </script> </head> <body style="font-size:62.5%;"> <div id="tabs"> <ul> </ul> </div> <input type='button' id='addTab' value='Add Tab'> <input type='button' id='appendText' value='Add Text in Tab'> </body> </html> JS: $(document).ready(function() { $("#tabs").tabs({ tabTemplate: "<li><a href='#{href}'>#{label}</a> <p title='close' id='removeTab' style='cursor:pointer;display:inline'>x</p></li>" }); }); $(function() { var index = 0; $("#addTab").live('click', function() { index++; var title = 'Tab..... ' + index; var url = '#fragment-' + index; addTab(url, title, index); }); function addTab(url, title, index) { $('#tabs').tabs("add", url, title, [index]); } $('#removeTab').live('click', function() { selected = $('p[id=removeTab]').index(this); $('#tabs').tabs("remove", [selected]); }); $('#appendText').live('click', function() { //fragment-1 is hardcoded I want to get the url of tab by clicking on it... $('#fragment-1').append("Bla Bla!!!"); }); }); JS Fiddle [http://jsfiddle.net/k44Wk/2/][1] ​ ​ [1]: http://jsfiddle.net/k44Wk/2/
javascript
jquery
jquery-ui
jquery-ui-tabs
jquery-tabs
null
open
How to get the URL of selected Tab === I want to appnd data dynamically in Jquery default tabs but How I can get the selected tab HTML: <!DOCTYPE html> <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"> </script> </head> <body style="font-size:62.5%;"> <div id="tabs"> <ul> </ul> </div> <input type='button' id='addTab' value='Add Tab'> <input type='button' id='appendText' value='Add Text in Tab'> </body> </html> JS: $(document).ready(function() { $("#tabs").tabs({ tabTemplate: "<li><a href='#{href}'>#{label}</a> <p title='close' id='removeTab' style='cursor:pointer;display:inline'>x</p></li>" }); }); $(function() { var index = 0; $("#addTab").live('click', function() { index++; var title = 'Tab..... ' + index; var url = '#fragment-' + index; addTab(url, title, index); }); function addTab(url, title, index) { $('#tabs').tabs("add", url, title, [index]); } $('#removeTab').live('click', function() { selected = $('p[id=removeTab]').index(this); $('#tabs').tabs("remove", [selected]); }); $('#appendText').live('click', function() { //fragment-1 is hardcoded I want to get the url of tab by clicking on it... $('#fragment-1').append("Bla Bla!!!"); }); }); JS Fiddle [http://jsfiddle.net/k44Wk/2/][1] ​ ​ [1]: http://jsfiddle.net/k44Wk/2/
0
7,353,086
09/08/2011 18:59:09
909,456
08/24/2011 11:03:20
1
1
fixing many of headers and cookies problems
Alsalam Alaykom i still beginner in PHP but i found that one of the good things when you want to Avoid scripting headache is to turn output buffering on, specially that the script may work well in localhost but you face some troubles when you upload it to your site simply at the top of your code before any HTML code you have to write <?php ob_start(); ?> and in the bottom of your code end it using <?php ob_end_flush(); ?> i hope it can save many of scripting headache salaaaaaaaam :)
php
null
null
null
null
09/08/2011 20:50:44
not a real question
fixing many of headers and cookies problems === Alsalam Alaykom i still beginner in PHP but i found that one of the good things when you want to Avoid scripting headache is to turn output buffering on, specially that the script may work well in localhost but you face some troubles when you upload it to your site simply at the top of your code before any HTML code you have to write <?php ob_start(); ?> and in the bottom of your code end it using <?php ob_end_flush(); ?> i hope it can save many of scripting headache salaaaaaaaam :)
1
3,850,052
10/03/2010 14:03:36
379,888
06/30/2010 09:47:17
688
13
Is starting a one-word function with a capital letter a good practise?
I have read in K&R that functions containing more than one word should be capitalized.Should one-word functions like prime(),be written as Prime()?Is this a good practise?
c
null
null
null
null
10/04/2010 04:00:18
not constructive
Is starting a one-word function with a capital letter a good practise? === I have read in K&R that functions containing more than one word should be capitalized.Should one-word functions like prime(),be written as Prime()?Is this a good practise?
4
3,398,732
08/03/2010 16:47:15
134,372
07/07/2009 16:23:04
40
9
Problem integrating Yale CAS with SharePoint 2010
I downloaded the sample ASP.NET login page from here: https://wiki.jasig.org/display/CASC/ASP.NET+Forms+Authentication And got CAS working with a proof-of-concept ASP.NET site very quickly. Now that I am trying to use this login page with SharePoint 2010, I am having a hard time. After the redirect line: FormsAuthentication.RedirectFromLoginPage(SSOUsername, false); I get "403 Unauthorized." Any ideas? Thanks. Has anyone gotten the CAS SSO to work with SharePoint 2010?
sharepoint2010
null
null
null
null
null
open
Problem integrating Yale CAS with SharePoint 2010 === I downloaded the sample ASP.NET login page from here: https://wiki.jasig.org/display/CASC/ASP.NET+Forms+Authentication And got CAS working with a proof-of-concept ASP.NET site very quickly. Now that I am trying to use this login page with SharePoint 2010, I am having a hard time. After the redirect line: FormsAuthentication.RedirectFromLoginPage(SSOUsername, false); I get "403 Unauthorized." Any ideas? Thanks. Has anyone gotten the CAS SSO to work with SharePoint 2010?
0
10,076,984
04/09/2012 17:17:14
849,359
07/18/2011 04:43:33
278
2
Pros/cons with requiring users to login to a site with Facebook
There seems to have been a backlash from users when Spotify (link below) required users to login with their FB accounts (perhaps only because they were paying customers?). Are users generally adversed to this? What has been your experience? http://www.pcworld.com/article/240646/spotify_adds_facebook_requirement_angering_users.html
facebook
facebook-graph-api
null
null
null
04/10/2012 03:29:17
not constructive
Pros/cons with requiring users to login to a site with Facebook === There seems to have been a backlash from users when Spotify (link below) required users to login with their FB accounts (perhaps only because they were paying customers?). Are users generally adversed to this? What has been your experience? http://www.pcworld.com/article/240646/spotify_adds_facebook_requirement_angering_users.html
4
4,081,559
11/02/2010 19:52:39
360,226
06/07/2010 09:08:20
22
0
error handling for jquery editable plugin
I recently started using the jquery jeditable plugin for my asp.net mvc app. So far so good. The last post at http://forums.asp.net/p/1541654/3789265.aspx has been incredibly useful and I ended up using it almost verbatim. However, the modeled error behavior is not quite right for my application. In case of an error, they throw away the change, revert the editable region to plain text, and pop up the error message as an alert. That's fine for short input but unacceptable for longer textarea input. My question: how can I change the onerror function to revert the editable area to a form seeded with the rejected input to allow for continuous edits? I guess as a starter I should remove the call to original.reset() but I am not sure what else to call to throw out the placeholder and revert the form. <h2 class="editable_area" id="Report_Title_<%: Model.report.ReportID %>"><%: Model.report.Title %></h2> <div class="editable_area" id="Report_HeaderText_<%: Model.report.ReportID %>"><%: Model.report.HeaderText %></div> <script type="text/javascript" src="../../Scripts/jeditable/jquery.jeditable.js"></script> <script type="text/javascript"> $(function () { $('.editable_area').each(function (index, element) { // Get the property name and menu item id for the AJAX request var identifiers = $(element).attr('id').split('_'); var target = identifiers[0]; var property = identifiers[1]; var id = identifiers[2]; $(element).editable('/' + target + '/UpdateSettings', { name: property, submitdata: function (value, settings) { return { 'id': id, '__property': property }; }, onerror: function (settings, original, xhr) { var error = eval('(' + xhr.responseText + ')'); // This will be reverted by reset. // $('<span class="field-validation-error">' + error.Message + '</span>').appendTo($(this)); alert(error.Message); original.reset(); }, type: 'textarea', rows: '10', cancel: 'Cancel', submit: 'OK', indicator: 'Saving...', tooltip: 'Click to edit...' }) }); }); </script> Thanks, Duffy
jquery
jquery-plugins
exception-handling
jeditable
null
null
open
error handling for jquery editable plugin === I recently started using the jquery jeditable plugin for my asp.net mvc app. So far so good. The last post at http://forums.asp.net/p/1541654/3789265.aspx has been incredibly useful and I ended up using it almost verbatim. However, the modeled error behavior is not quite right for my application. In case of an error, they throw away the change, revert the editable region to plain text, and pop up the error message as an alert. That's fine for short input but unacceptable for longer textarea input. My question: how can I change the onerror function to revert the editable area to a form seeded with the rejected input to allow for continuous edits? I guess as a starter I should remove the call to original.reset() but I am not sure what else to call to throw out the placeholder and revert the form. <h2 class="editable_area" id="Report_Title_<%: Model.report.ReportID %>"><%: Model.report.Title %></h2> <div class="editable_area" id="Report_HeaderText_<%: Model.report.ReportID %>"><%: Model.report.HeaderText %></div> <script type="text/javascript" src="../../Scripts/jeditable/jquery.jeditable.js"></script> <script type="text/javascript"> $(function () { $('.editable_area').each(function (index, element) { // Get the property name and menu item id for the AJAX request var identifiers = $(element).attr('id').split('_'); var target = identifiers[0]; var property = identifiers[1]; var id = identifiers[2]; $(element).editable('/' + target + '/UpdateSettings', { name: property, submitdata: function (value, settings) { return { 'id': id, '__property': property }; }, onerror: function (settings, original, xhr) { var error = eval('(' + xhr.responseText + ')'); // This will be reverted by reset. // $('<span class="field-validation-error">' + error.Message + '</span>').appendTo($(this)); alert(error.Message); original.reset(); }, type: 'textarea', rows: '10', cancel: 'Cancel', submit: 'OK', indicator: 'Saving...', tooltip: 'Click to edit...' }) }); }); </script> Thanks, Duffy
0
7,216,198
08/27/2011 17:37:35
915,709
08/27/2011 17:34:22
1
0
Need a ans fr this with some explanation
> void main (){ > int i, j; > for (i=0, j=5; j >0, i < 10; i ++, j--) > printf(“\nClub Excel”); > } What will be the output?
c
loops
for-loop
null
null
08/27/2011 17:44:26
not a real question
Need a ans fr this with some explanation === > void main (){ > int i, j; > for (i=0, j=5; j >0, i < 10; i ++, j--) > printf(“\nClub Excel”); > } What will be the output?
1
803,211
04/29/2009 16:33:17
1,311,500
09/21/2008 14:15:11
1,845
69
How to get sp_executesql result into a variable?
I have a piece of dynamic sql I need to execute - I then need to store the result into a variable. I know I can use **sp_executesql** but can't find clear examples around about how to do this. Any help appreciated!
t-sql
sp-executesql
dynamic-sql
null
null
null
open
How to get sp_executesql result into a variable? === I have a piece of dynamic sql I need to execute - I then need to store the result into a variable. I know I can use **sp_executesql** but can't find clear examples around about how to do this. Any help appreciated!
0
7,105,747
08/18/2011 10:10:38
1,389,515
06/23/2011 10:01:37
6
0
How to change font color of the title in grouped type UITableView?
I have a grouped type tableview and it looks pretty cool. But, if i change the background color of the table to black, the titles becomes unclear. Is it possible to change the font color & its styles? So that i can make it as more readable. Should i implement the `tableView:viewForHeaderInSection:` method?
iphone
uitableview
fonts
title
uitableviewstylegrouped
null
open
How to change font color of the title in grouped type UITableView? === I have a grouped type tableview and it looks pretty cool. But, if i change the background color of the table to black, the titles becomes unclear. Is it possible to change the font color & its styles? So that i can make it as more readable. Should i implement the `tableView:viewForHeaderInSection:` method?
0
7,224,632
08/28/2011 23:12:07
147,458
07/29/2009 22:10:32
754
20
How to show a Game Center Achievement Notification
Is there a built in way to show a user a notification that they've earned a Game Center achievement? Similar to the notification that appears when they are authenticated? I was surprised when I completed my achievement and did not see a notification in my game. Thanks!
iphone
objective-c
ios
null
null
null
open
How to show a Game Center Achievement Notification === Is there a built in way to show a user a notification that they've earned a Game Center achievement? Similar to the notification that appears when they are authenticated? I was surprised when I completed my achievement and did not see a notification in my game. Thanks!
0
3,657,887
09/07/2010 10:43:16
327,983
04/28/2010 14:51:48
49
3
Grails - using subdomain of localhost on run-app
Is there any way of configuring the embedded tomcat (from run-app) to respond to myapp.localhost:8080 instead of localhost:8080/myapp ?
tomcat
grails
run-app
null
null
null
open
Grails - using subdomain of localhost on run-app === Is there any way of configuring the embedded tomcat (from run-app) to respond to myapp.localhost:8080 instead of localhost:8080/myapp ?
0
11,048,403
06/15/2012 09:51:26
1,458,157
06/15/2012 08:26:00
1
0
javascript convert object string to string
I cannot convert JS object to exact string, my code: jsonObj['payment_value']=100.10; jsonObj['payment_date']="2012-06-15"; jsonObjStr = JSON.stringify(jsonObj); alert(jsonObjStr); $.post("test", jsonObjStr.toString(), function(output){ alert(output); }); first alert displays: > {"payment_date":"2012-06-15","payment_value":100.1} and in function test (i'm using codeigniter framework) it should print "payment_date" and "payment_value", code like this: echo $this->input->post("payment_value"); echo $this->input->post("payment_date"); which is equvalent in "clear" php to: echo $_POST("payment_value"); echo $_POST("payment_date"); but second alert displays clear string. If I put > {"payment_date":"2012-06-15","payment_value":100.1} instead of jsonObjStr.toString() it works fine Does anyone knows how to fix it WITHOUT using json_decode? I need to have posted values in this format, not in other array So i need to convert jsonObjStr exact to string (something inversely to function eval()) Thank in advice
php
javascript
jquery
jsobject
null
null
open
javascript convert object string to string === I cannot convert JS object to exact string, my code: jsonObj['payment_value']=100.10; jsonObj['payment_date']="2012-06-15"; jsonObjStr = JSON.stringify(jsonObj); alert(jsonObjStr); $.post("test", jsonObjStr.toString(), function(output){ alert(output); }); first alert displays: > {"payment_date":"2012-06-15","payment_value":100.1} and in function test (i'm using codeigniter framework) it should print "payment_date" and "payment_value", code like this: echo $this->input->post("payment_value"); echo $this->input->post("payment_date"); which is equvalent in "clear" php to: echo $_POST("payment_value"); echo $_POST("payment_date"); but second alert displays clear string. If I put > {"payment_date":"2012-06-15","payment_value":100.1} instead of jsonObjStr.toString() it works fine Does anyone knows how to fix it WITHOUT using json_decode? I need to have posted values in this format, not in other array So i need to convert jsonObjStr exact to string (something inversely to function eval()) Thank in advice
0
5,112,670
02/25/2011 01:35:51
24,696
10/03/2008 00:23:34
902
17
Desperately need Borland C++ library called cg16.lib
I have an old project from the 1990's I desperately need to compile. The linker keeps asking for the Code Guard library cg16.lib but I don't have the install disks for this anymore. Does anyone have cg16.lib? I am compiling with version 4.5 of Borland C++. Its an ancient product but still works!
c++
borland
null
null
null
02/25/2011 06:08:01
off topic
Desperately need Borland C++ library called cg16.lib === I have an old project from the 1990's I desperately need to compile. The linker keeps asking for the Code Guard library cg16.lib but I don't have the install disks for this anymore. Does anyone have cg16.lib? I am compiling with version 4.5 of Borland C++. Its an ancient product but still works!
2
11,743,342
07/31/2012 15:15:04
779,920
06/01/2011 17:47:46
781
30
Compare two dates in PHP pulled from sql data base
I know there are many examples on stack of how to compare two dates in PHP but I can't get my code to work properly. Currently I have two dates the cache date and the hit date. I am trying to set it up that if the cache date is more than 2 hours ago from the hit date it will then recache new info. I currently have dates stored in MySQL in this format: `$lastcache = date("m.d.y G:i");` My current code that works only about half the time (mostly in the later day for some reason) is this: $lastcache = $row['lastcache']; $expiredate = date("m.d.y G:i", strtotime("-120 minutes")); if( $expiredate > $lastcache){ cache($input); }else{ //do cool stuff } How can I better compare these two dates to see if more than 2 hours has passed?
php
sql
date
null
null
null
open
Compare two dates in PHP pulled from sql data base === I know there are many examples on stack of how to compare two dates in PHP but I can't get my code to work properly. Currently I have two dates the cache date and the hit date. I am trying to set it up that if the cache date is more than 2 hours ago from the hit date it will then recache new info. I currently have dates stored in MySQL in this format: `$lastcache = date("m.d.y G:i");` My current code that works only about half the time (mostly in the later day for some reason) is this: $lastcache = $row['lastcache']; $expiredate = date("m.d.y G:i", strtotime("-120 minutes")); if( $expiredate > $lastcache){ cache($input); }else{ //do cool stuff } How can I better compare these two dates to see if more than 2 hours has passed?
0
4,447,762
12/15/2010 07:44:14
441,343
09/07/2010 10:34:49
17
1
object in html ie8
i want to write object tag <object></object> inside a div tag. 1. <div id="abc"> I am here <object id="Object1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400">......</object> </div> 2. abc.InnerHTML = the object tag generated dynamically. the method 1 works fine, but 2 does not. WHY :(
html
object
internet-explorer-8
null
null
11/02/2011 00:48:27
not a real question
object in html ie8 === i want to write object tag <object></object> inside a div tag. 1. <div id="abc"> I am here <object id="Object1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400">......</object> </div> 2. abc.InnerHTML = the object tag generated dynamically. the method 1 works fine, but 2 does not. WHY :(
1
5,086,588
02/23/2011 03:06:15
407,756
08/01/2010 03:18:00
520
3
How would you loop through a list of 100 names to check that a certain entry is not one of those values in PHP?
I have a certain input that when the user enters a word in needs to be checked against a list of 100 words. How would I loop through these words the easiest? Should I use a massive array?
php
arrays
loops
blacklist
null
null
open
How would you loop through a list of 100 names to check that a certain entry is not one of those values in PHP? === I have a certain input that when the user enters a word in needs to be checked against a list of 100 words. How would I loop through these words the easiest? Should I use a massive array?
0
706,905
04/01/2009 18:55:09
73,637
03/04/2009 11:40:14
3
0
Indexing in Sql Server
What is Clustured and non clustured indexing? How to index a table using sql server 2000 Enterprise manager? thanks in advance for your kind reply..
sql
server
null
null
null
null
open
Indexing in Sql Server === What is Clustured and non clustured indexing? How to index a table using sql server 2000 Enterprise manager? thanks in advance for your kind reply..
0
11,083,088
06/18/2012 12:38:57
1,016,403
10/27/2011 11:50:55
418
0
is filtergrid available in gxt version 2.2.3?
I am using gxt version 2.2.3. i wanted to use filtergrid available on examples demo http://www.sencha.com/examples/#ExamplePlace:filtergrid. is it available in 2.2.3 version? Thanks!
gwt
gxt
ext-gwt
null
null
null
open
is filtergrid available in gxt version 2.2.3? === I am using gxt version 2.2.3. i wanted to use filtergrid available on examples demo http://www.sencha.com/examples/#ExamplePlace:filtergrid. is it available in 2.2.3 version? Thanks!
0
1,729,582
11/13/2009 14:33:32
117,791
06/05/2009 05:10:24
20
0
Download big images from http://images.google.ru
I'm trying to download images from http://images.google.com. Its easy to download small images. But maybe someone know how to download big images that come from another site? Greate thanks for the possible answer best Vladimir
google
image
null
null
null
null
open
Download big images from http://images.google.ru === I'm trying to download images from http://images.google.com. Its easy to download small images. But maybe someone know how to download big images that come from another site? Greate thanks for the possible answer best Vladimir
0
6,198,593
06/01/2011 08:56:07
12,653
09/16/2008 15:08:20
148
4
Connecting to remote TFS 2010 instance gives TF30063 error
I connect to a remote TFS 2010 instance using Visual Studio 2010. I can Get Latest for all files within a particular project except for one database backup file. When I try to Get Latest on this file I get the following error: TF30063: You are not authorized to access Microsoft-IIS/6.0 I've tried clearing my local VS client cache, but that doesn't help. There are no entries in the Event Logs to give any clues as to what is going on. Any help appreciated, or any ideas where I can find out more diagnostic information via would be appreciated. Colin.
iis
tfs
iis6
tfs2010
null
null
open
Connecting to remote TFS 2010 instance gives TF30063 error === I connect to a remote TFS 2010 instance using Visual Studio 2010. I can Get Latest for all files within a particular project except for one database backup file. When I try to Get Latest on this file I get the following error: TF30063: You are not authorized to access Microsoft-IIS/6.0 I've tried clearing my local VS client cache, but that doesn't help. There are no entries in the Event Logs to give any clues as to what is going on. Any help appreciated, or any ideas where I can find out more diagnostic information via would be appreciated. Colin.
0
5,774,836
04/25/2011 03:13:29
235,182
12/19/2009 16:37:50
119
12
Javascript - move decimal?
In javascript, I want to define where the decimal place goes. I can only really show it in example... Lets say the input value is 1234. I want the output to be 123.4 Or, if the input is 12345, I want the output to be 123.45. Or, if the input is 123456, I want the output to be 123.456. You get the picture. So, how could this be done? Thanks in advance!
javascript
decimal
move
null
null
null
open
Javascript - move decimal? === In javascript, I want to define where the decimal place goes. I can only really show it in example... Lets say the input value is 1234. I want the output to be 123.4 Or, if the input is 12345, I want the output to be 123.45. Or, if the input is 123456, I want the output to be 123.456. You get the picture. So, how could this be done? Thanks in advance!
0
6,297,347
06/09/2011 18:14:13
782,820
06/03/2011 14:08:45
13
3
Is OpenCart more or less secure than Zen-cart for a web site shopping cart solution?
We are about to integrate the OpenCart web site shopping cart solution and I was wondering if it was secure enough and if Zen-cart was considered a more secure option. Are these systems reasonably robust against exploits? I know nothing is 100% secure but I was wondering where these free solutions stand regarding security. Thanks!
php
security
web-applications
website
shopping-cart
06/12/2011 14:12:22
off topic
Is OpenCart more or less secure than Zen-cart for a web site shopping cart solution? === We are about to integrate the OpenCart web site shopping cart solution and I was wondering if it was secure enough and if Zen-cart was considered a more secure option. Are these systems reasonably robust against exploits? I know nothing is 100% secure but I was wondering where these free solutions stand regarding security. Thanks!
2
301,203
11/19/2008 06:58:56
3,594
08/29/2008 08:46:29
764
24
Extract C++ template parameters
Although I'm doubtful, I'm curious as to whether it's possible to extract primitive-type template parameters from an existing type, perhaps using RTTI. For example: std::bitset<16> WordSet; WordSet oh_my_word; Would it be possible to extract the number 16 in the above code without hard-coding it elsewhere? Compiler specific implementations are welcome, though I'm particularly interested in `g++`.
c++
templates
rtti
null
null
null
open
Extract C++ template parameters === Although I'm doubtful, I'm curious as to whether it's possible to extract primitive-type template parameters from an existing type, perhaps using RTTI. For example: std::bitset<16> WordSet; WordSet oh_my_word; Would it be possible to extract the number 16 in the above code without hard-coding it elsewhere? Compiler specific implementations are welcome, though I'm particularly interested in `g++`.
0
9,560,075
03/04/2012 23:58:50
1,247,537
03/04/2012 00:37:46
36
4
Function returns "undefined" while alert() gives proper value
I want to ask you what can cause this problem: I want to get a value calculated in function, and when I get it as returned value it returns "undefined", but if I replace `return value` by `alert(value)`, it works. Code for better explanation what I mean: That one does not work - returns "undefined" function aaa() { // calculating... return value; } alert(value); And that one works - returns expected value: function aaa() { // calculating... alert(value); } I'm new in JavaScript and don't have any idea what can cause it. Thanks for your help!
javascript
jquery
null
null
null
03/05/2012 15:18:29
too localized
Function returns "undefined" while alert() gives proper value === I want to ask you what can cause this problem: I want to get a value calculated in function, and when I get it as returned value it returns "undefined", but if I replace `return value` by `alert(value)`, it works. Code for better explanation what I mean: That one does not work - returns "undefined" function aaa() { // calculating... return value; } alert(value); And that one works - returns expected value: function aaa() { // calculating... alert(value); } I'm new in JavaScript and don't have any idea what can cause it. Thanks for your help!
3
10,473,338
05/06/2012 19:03:05
1,345,427
04/20/2012 01:46:53
1
0
Simple PHP decoder
I newbie in PHP world, so I need some help : ) Let's say we have the following string: o.6.m.i.m.s.x.2.q.w.s.c.1.r.8.5. This needs to be decoded using the some rule: *Note: dots (.) doesn't count.* And this is our base line (used in the rule): 0123456789abcdefghijklmnopqrstuvwxyz The rules: startingpoint_for_pos1=j startingpoint_for_pos2=0 startingpoint_for_pos3=g startingpoint_for_pos4=b startingpoint_for_pos5=f startingpoint_for_pos6=n startingpoint_for_pos7=s startingpoint_for_pos8=z startingpoint_for_pos9=m startingpoint_for_pos10=p startingpoint_for_pos11=l startingpoint_for_pos12=6 startingpoint_for_pos13=y startingpoint_for_pos14=j startingpoint_for_pos15=6 startingpoint_for_pos16=5 **Desired function: is to start from [startingpoint_for_posX] and bitwise-increase until it reaches [posX].** Example on [pos1]: pos1=o startingpoint_for_pos1=j Our line is: 0123456789abcdefghijklmnopqrstuvwxyz So from **j to o = 5 levels**, and this means: o. 5. And so on, for the whole string: o.6.m.i.m.s.x.2.q.w.s.c.1.r.8.5. 5.6.6.7.7.5.5.3.4.7.7.6.3.8.2.0 Note: sometimes it loops around like in [pos13]. Note: sometimes [posX]==[startingpoint_for_posX] >> 0. (Like in [pos16]). And the decoded string is to be refined (only 16 digits): 5667755347763820 An expert gentleman ([**VisioN**][1]) showed me this: (Thanks a LOT!) $input = "o6mimsx2qwsc1r85"; function encode($input) { $str1 = "0123456789abcdefghijklmnopqrstuvwxyz"; $str2 = "j0gbfnszmpl6yj65"; $output = ""; for ($i = 0; $i < strlen($input); $i++) { $c1 = $input[$i]; $c2 = $str2[$i]; $d1 = strpos($str1, $c1); $d2 = strpos($str1, $c2); $e = $d2 < $d1 ? $d1 - $d2 : $d2 - $d1; $output .= strval($e); } return $output; } print encode($input); Some things I want to change in this: - To support a file with multiple strings. - I don't why but I get 566775533477633820 instead of 5667755347763820 with the string given above. (notice 33 not 3) - If multiple strings are supported, the output would look better this way: . o.6.m.i.m.s.x.2.q.w.s.c.1.r.8.5.:5667755347763820 string2:decode_string2 etc I hope everything is clear to you, and **THANKx** in advance. I'm working on this too! but I need more brains : ) [1]: http://stackoverflow.com/users/1249581/vision
php
string
algorithm
decode
null
05/06/2012 19:11:12
too localized
Simple PHP decoder === I newbie in PHP world, so I need some help : ) Let's say we have the following string: o.6.m.i.m.s.x.2.q.w.s.c.1.r.8.5. This needs to be decoded using the some rule: *Note: dots (.) doesn't count.* And this is our base line (used in the rule): 0123456789abcdefghijklmnopqrstuvwxyz The rules: startingpoint_for_pos1=j startingpoint_for_pos2=0 startingpoint_for_pos3=g startingpoint_for_pos4=b startingpoint_for_pos5=f startingpoint_for_pos6=n startingpoint_for_pos7=s startingpoint_for_pos8=z startingpoint_for_pos9=m startingpoint_for_pos10=p startingpoint_for_pos11=l startingpoint_for_pos12=6 startingpoint_for_pos13=y startingpoint_for_pos14=j startingpoint_for_pos15=6 startingpoint_for_pos16=5 **Desired function: is to start from [startingpoint_for_posX] and bitwise-increase until it reaches [posX].** Example on [pos1]: pos1=o startingpoint_for_pos1=j Our line is: 0123456789abcdefghijklmnopqrstuvwxyz So from **j to o = 5 levels**, and this means: o. 5. And so on, for the whole string: o.6.m.i.m.s.x.2.q.w.s.c.1.r.8.5. 5.6.6.7.7.5.5.3.4.7.7.6.3.8.2.0 Note: sometimes it loops around like in [pos13]. Note: sometimes [posX]==[startingpoint_for_posX] >> 0. (Like in [pos16]). And the decoded string is to be refined (only 16 digits): 5667755347763820 An expert gentleman ([**VisioN**][1]) showed me this: (Thanks a LOT!) $input = "o6mimsx2qwsc1r85"; function encode($input) { $str1 = "0123456789abcdefghijklmnopqrstuvwxyz"; $str2 = "j0gbfnszmpl6yj65"; $output = ""; for ($i = 0; $i < strlen($input); $i++) { $c1 = $input[$i]; $c2 = $str2[$i]; $d1 = strpos($str1, $c1); $d2 = strpos($str1, $c2); $e = $d2 < $d1 ? $d1 - $d2 : $d2 - $d1; $output .= strval($e); } return $output; } print encode($input); Some things I want to change in this: - To support a file with multiple strings. - I don't why but I get 566775533477633820 instead of 5667755347763820 with the string given above. (notice 33 not 3) - If multiple strings are supported, the output would look better this way: . o.6.m.i.m.s.x.2.q.w.s.c.1.r.8.5.:5667755347763820 string2:decode_string2 etc I hope everything is clear to you, and **THANKx** in advance. I'm working on this too! but I need more brains : ) [1]: http://stackoverflow.com/users/1249581/vision
3
1,759,664
11/18/2009 22:38:20
91,258
04/15/2009 19:02:26
90
4
.Net AES Encryption - Universally Accepted Pad Setting
I have a .Net web service that processes AES encrypted data. The consumers of my service agree on a key/IV pair with me and that way we can pass data securely. I have a consumer using PHP that is using mcrypt to encrypt. mcrypt is padding with NULLs. I was not setting a pad (NONE) and therefore not able to decrypt the strings. I changed my padding to Zero and was able to decrypt the mcrypt values. I want to change my web service to use a universally accepted pad setting. And tell all my consumers to use that pad setting. However, I can't seem to find that universal pad setting. I have also read a few post that talk about some pad settings being "less secure". And equally bad, I have seen some post about some pad settings not translating across systems reliably. Is there a universally accepted, secure and reliable pad setting for AES encryption? Please let me know.
.net
aes
padding
null
null
null
open
.Net AES Encryption - Universally Accepted Pad Setting === I have a .Net web service that processes AES encrypted data. The consumers of my service agree on a key/IV pair with me and that way we can pass data securely. I have a consumer using PHP that is using mcrypt to encrypt. mcrypt is padding with NULLs. I was not setting a pad (NONE) and therefore not able to decrypt the strings. I changed my padding to Zero and was able to decrypt the mcrypt values. I want to change my web service to use a universally accepted pad setting. And tell all my consumers to use that pad setting. However, I can't seem to find that universal pad setting. I have also read a few post that talk about some pad settings being "less secure". And equally bad, I have seen some post about some pad settings not translating across systems reliably. Is there a universally accepted, secure and reliable pad setting for AES encryption? Please let me know.
0
10,309,042
04/25/2012 03:40:33
758,906
05/18/2011 09:20:12
193
1
Continous Executon of Application
I am trying to build an e-commerce java web application, I am running into an issue for booking/purchasing items from the store. Each item can only be purchased once, my issue is that users on two different machines might be purchasing the same item, and for that I was thinking of synchronization. I don't quite understand synchronization and how the application can still run when no one is using it. Does the application run on server side? Can someone please give me some information on this? Thanks!
java
web-applications
synchronization
null
null
null
open
Continous Executon of Application === I am trying to build an e-commerce java web application, I am running into an issue for booking/purchasing items from the store. Each item can only be purchased once, my issue is that users on two different machines might be purchasing the same item, and for that I was thinking of synchronization. I don't quite understand synchronization and how the application can still run when no one is using it. Does the application run on server side? Can someone please give me some information on this? Thanks!
0
6,955,145
08/05/2011 10:51:52
864,112
07/26/2011 18:57:46
107
1
What structures to use to create constant access time immutable table in Scala?
Does Scala have any sort of classes that can deal with this? I was considering using an Array[Array[_]], since it would fit my needs quite well. What other options do I have? Using a Map[(Int,Int),_] will be too slow, I believe, since it has linear access time.
table
scala
collections
null
null
null
open
What structures to use to create constant access time immutable table in Scala? === Does Scala have any sort of classes that can deal with this? I was considering using an Array[Array[_]], since it would fit my needs quite well. What other options do I have? Using a Map[(Int,Int),_] will be too slow, I believe, since it has linear access time.
0
926,344
05/29/2009 14:44:04
62,699
02/05/2009 00:58:41
2,493
188
VBA introductory book for non programmer recommendation
A coleague of mine has shown interest in learning a little about vba scripting. Unfortunatelly, I don't have time to show her, and even if I did, I'm horrible at explaining things to people. Can you recommend a good VBA book for someone who's never done any programming, that is, has a nice easy approach with lots of examples ? I've checked out a few Amazon references, but in most cases user reviews there go from "yeeah, great book" to "this book sucks" ... not making it any easier to conclude anything.
vba
excel
excel-vba
books
null
07/10/2012 20:07:01
not constructive
VBA introductory book for non programmer recommendation === A coleague of mine has shown interest in learning a little about vba scripting. Unfortunatelly, I don't have time to show her, and even if I did, I'm horrible at explaining things to people. Can you recommend a good VBA book for someone who's never done any programming, that is, has a nice easy approach with lots of examples ? I've checked out a few Amazon references, but in most cases user reviews there go from "yeeah, great book" to "this book sucks" ... not making it any easier to conclude anything.
4
8,559,233
12/19/2011 09:21:25
1,052,057
11/17/2011 14:59:18
11
0
How do i find Disk IO rate and IOPS for Ubuntu machines?
How do i find disk IO rate and IOPS of my disk ? Are there any benchmarks or tools that will be of some use to me ? Arun
performance
ubuntu
io
benchmarking
null
12/19/2011 12:51:54
off topic
How do i find Disk IO rate and IOPS for Ubuntu machines? === How do i find disk IO rate and IOPS of my disk ? Are there any benchmarks or tools that will be of some use to me ? Arun
2
10,725,864
05/23/2012 18:36:20
945,869
09/15/2011 02:25:39
38
1
Should I get 2-3 year old book on Core Animation?
I'm wondering whether a) to buy from Amazon "Core Animation: Simplified Animation Techniques for Mac and iPhone Development", Marcus Zarra (Author), Matt Long" for $34 new, or b) assume that iPhone 5 or Xcode 6 or something will happen in the next month or two (hint: WWDC) that may suggest I should postpone and get a book from 2012 instead of Dec2009. What are your thoughts and/or guesses?
iphone
core-animation
null
null
null
05/23/2012 20:32:01
not constructive
Should I get 2-3 year old book on Core Animation? === I'm wondering whether a) to buy from Amazon "Core Animation: Simplified Animation Techniques for Mac and iPhone Development", Marcus Zarra (Author), Matt Long" for $34 new, or b) assume that iPhone 5 or Xcode 6 or something will happen in the next month or two (hint: WWDC) that may suggest I should postpone and get a book from 2012 instead of Dec2009. What are your thoughts and/or guesses?
4
4,740,766
01/19/2011 21:07:32
164,394
08/27/2009 17:43:29
1,963
171
How to implemen PayPal in Symfony 1.4 & Docrtrine
I want to use PayPal, Express Checkout, in a Symfony/Doctrine 1.4.8 the current plugins all seem to be in Beta and also somewhat over the top in the way they are implemented. I can follow the logic of the PayPal provided information and code although some items are a bit vague as to how i deal with them in Symfony. Any class files are ok as i create a lib directory and rename the class and this gets instantiated. However i have some plain procedural PHP files i.e. expresscheckout.php and i am not sure where to put this to load as it doesn't seem to fit in the templates. Perhaps it goes in the actions? I am not looking for a line by line solution here (but if you have one feel free) but really a few pointers as to where the elements go. As i say i am still suffering form a bit of Symfony blindness. Finally would i be better to implement a simple (is that possible?) plugin to handle this or group the paypal items in a module on their own?
paypal
symfony-1.4
null
null
null
null
open
How to implemen PayPal in Symfony 1.4 & Docrtrine === I want to use PayPal, Express Checkout, in a Symfony/Doctrine 1.4.8 the current plugins all seem to be in Beta and also somewhat over the top in the way they are implemented. I can follow the logic of the PayPal provided information and code although some items are a bit vague as to how i deal with them in Symfony. Any class files are ok as i create a lib directory and rename the class and this gets instantiated. However i have some plain procedural PHP files i.e. expresscheckout.php and i am not sure where to put this to load as it doesn't seem to fit in the templates. Perhaps it goes in the actions? I am not looking for a line by line solution here (but if you have one feel free) but really a few pointers as to where the elements go. As i say i am still suffering form a bit of Symfony blindness. Finally would i be better to implement a simple (is that possible?) plugin to handle this or group the paypal items in a module on their own?
0
8,135,787
11/15/2011 11:40:04
898,589
08/17/2011 12:13:04
14
1
XML Non Breaking White Space (PHP/MySQL)
I think the cause of my woes at present is the non-breaking white space. It appears some nasty characters have found their way into our MySQL database from our back office systems. So as I'm trying to run an XML output using PHP's XMLWriter, but there's loads of these silly characters getting into the field.. They're displayed in nano as ^K, in gedit as a weird square box, and when you delete them manually in MySQL they don't take up a phsyical space, despite that you know you've deleted something... Please help me get rid of them! Thanks, Paul S
php
mysql
xml
xmlwriter
non-breaking-spaces
null
open
XML Non Breaking White Space (PHP/MySQL) === I think the cause of my woes at present is the non-breaking white space. It appears some nasty characters have found their way into our MySQL database from our back office systems. So as I'm trying to run an XML output using PHP's XMLWriter, but there's loads of these silly characters getting into the field.. They're displayed in nano as ^K, in gedit as a weird square box, and when you delete them manually in MySQL they don't take up a phsyical space, despite that you know you've deleted something... Please help me get rid of them! Thanks, Paul S
0
11,009,030
06/13/2012 06:01:15
379,888
06/30/2010 09:47:17
1,729
46
Validating phone numbers using jquery
I am trying to validate a phone number. The website is US based but the clients can be from all over the world. I am using jQuery to validate the input. I would be very thankful for the hints given for validation. Thanks. <input name="phone" type="text" id="phone" minlength="7" maxlength="15" style=" font-family: Verdana; color:#FFFFFF; font-size: 13px; background-color: #0E0E0F; border: 1px solid #740086; width:385px; margin-bottom:10px; " size="385" value="Phone #" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/>
jquery
validation
null
null
null
null
open
Validating phone numbers using jquery === I am trying to validate a phone number. The website is US based but the clients can be from all over the world. I am using jQuery to validate the input. I would be very thankful for the hints given for validation. Thanks. <input name="phone" type="text" id="phone" minlength="7" maxlength="15" style=" font-family: Verdana; color:#FFFFFF; font-size: 13px; background-color: #0E0E0F; border: 1px solid #740086; width:385px; margin-bottom:10px; " size="385" value="Phone #" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/>
0
2,792,603
05/08/2010 01:38:41
325,727
04/26/2010 05:53:33
20
0
ASPNET MVC - Why is ModelState.IsValid false "The x field is required" when that field does have a value?
I have a model like this: public PurchaseOrder { [Required] [StringLength(15)] public virtual string OrderNumber {get;set;} // etc. } When I submit an order from the view (using $.post, not input type=submit) it goes to my controller class: public class PurchaseOrderController { public JsonResult Save(PurchaseOrder order) { // TryUpdateModel(order); // commented out since modelstate.isvalid remains false anyway if (ModelState.IsValid) { // its never valid } } } ModelState.IsValid always returns false, with the error: "The Order Number field is required." But there is a value in this field (?? why) Why would it say "value is required" when it does have a value? Have I missed something? Is it because of the $.post instead of the submit? What can I do? This is what the debugger looks like: ![alt text][1] [1]: http://www.freeimagehosting.net/uploads/f734f3d95d.png
c#
asp.net-mvc
validation
modelstate
null
null
open
ASPNET MVC - Why is ModelState.IsValid false "The x field is required" when that field does have a value? === I have a model like this: public PurchaseOrder { [Required] [StringLength(15)] public virtual string OrderNumber {get;set;} // etc. } When I submit an order from the view (using $.post, not input type=submit) it goes to my controller class: public class PurchaseOrderController { public JsonResult Save(PurchaseOrder order) { // TryUpdateModel(order); // commented out since modelstate.isvalid remains false anyway if (ModelState.IsValid) { // its never valid } } } ModelState.IsValid always returns false, with the error: "The Order Number field is required." But there is a value in this field (?? why) Why would it say "value is required" when it does have a value? Have I missed something? Is it because of the $.post instead of the submit? What can I do? This is what the debugger looks like: ![alt text][1] [1]: http://www.freeimagehosting.net/uploads/f734f3d95d.png
0
1,263,509
08/11/2009 23:22:14
21,475
09/24/2008 02:34:16
192
22
Potential problems setting window.location.hash
I have some javascript code which, at one point, sets `window.location.hash` to a specific string. This works fine in Firefox 3, but I want to know if I will run into problems with this later, i.e. is this a cross-browser solution (IE6 included)? Also, I am using ReallySimpleHistory. Will this mess up its internal state? Thanks
javascript
cross-browser
rsh
null
null
null
open
Potential problems setting window.location.hash === I have some javascript code which, at one point, sets `window.location.hash` to a specific string. This works fine in Firefox 3, but I want to know if I will run into problems with this later, i.e. is this a cross-browser solution (IE6 included)? Also, I am using ReallySimpleHistory. Will this mess up its internal state? Thanks
0
240,758
10/27/2008 17:36:27
20,646
09/22/2008 18:28:05
163
11
How do you encourage someone to learn to use the debugger?
We are in college and I want get my projectmate to use the debugger as it will help improve his debugging speed. Despite offering to show him how to use it so that he won't have to learn it by himself, he refuses and to date still uses printlining to debug. I can understand why he refuses as he's probably afraid of the learning curve (Even though it's actually trivial. Besides computing students cannot be afraid to learn new things). I myself had resisted learning how to use a debugger for as long as I could for the very same reason. The moment I tried to use a debugger for a person project I found how useful it was to a programmer's productivity and have never looked back since. So how would you go about making someone virtually impervious to you to learn something for his own benefit? Or should I not try too hard to help people like him?
non-technical
teaching
null
null
null
02/09/2012 14:19:10
not constructive
How do you encourage someone to learn to use the debugger? === We are in college and I want get my projectmate to use the debugger as it will help improve his debugging speed. Despite offering to show him how to use it so that he won't have to learn it by himself, he refuses and to date still uses printlining to debug. I can understand why he refuses as he's probably afraid of the learning curve (Even though it's actually trivial. Besides computing students cannot be afraid to learn new things). I myself had resisted learning how to use a debugger for as long as I could for the very same reason. The moment I tried to use a debugger for a person project I found how useful it was to a programmer's productivity and have never looked back since. So how would you go about making someone virtually impervious to you to learn something for his own benefit? Or should I not try too hard to help people like him?
4
2,132,449
01/25/2010 13:11:32
247,607
01/10/2010 19:51:51
13
0
Using Spring and Hibernate -final year project
I’m planning to build Management Information System in Java for my final year project. I would like to use Spring and Hibernate, however I haven’t used any of these frameworks yet. Hence my question is, will I have enough time to learn it (I don’t mean to be an expert, just to be able to use them in my project) and still complete my project on time, or I should pass on it and learn Spring and Hibernate when I get my first job in the future? Also, do I have a better chance to find a job as a graduate who knows these frameworks ( I live in UK) ? Your help is much appreciated.
final
year
project
spring
hibernate
02/06/2012 01:06:58
off topic
Using Spring and Hibernate -final year project === I’m planning to build Management Information System in Java for my final year project. I would like to use Spring and Hibernate, however I haven’t used any of these frameworks yet. Hence my question is, will I have enough time to learn it (I don’t mean to be an expert, just to be able to use them in my project) and still complete my project on time, or I should pass on it and learn Spring and Hibernate when I get my first job in the future? Also, do I have a better chance to find a job as a graduate who knows these frameworks ( I live in UK) ? Your help is much appreciated.
2
2,177,690
02/01/2010 15:23:05
248,959
01/12/2010 14:34:00
1
0
Netbeans 6.8 the breakpoint icon isn't a pink square but a vertically cutted in half pink square
im using NB 6.8. When i add a breakpoint an icon is added next to the line of code. But that icon is not a pink square but a vertically cutted in half pink square. Is this the new icon that symbolizes the breakpoint (i expected a non-broken pink square) ?? Bye Javi
netbeans6.8
netbeans
breakpoint
null
null
null
open
Netbeans 6.8 the breakpoint icon isn't a pink square but a vertically cutted in half pink square === im using NB 6.8. When i add a breakpoint an icon is added next to the line of code. But that icon is not a pink square but a vertically cutted in half pink square. Is this the new icon that symbolizes the breakpoint (i expected a non-broken pink square) ?? Bye Javi
0
4,633,350
01/08/2011 10:03:58
567,908
01/08/2011 10:03:58
1
0
dictionary using hashing
hi guys i am doing an project(dictionary using hash table),i have certain doubts in hashing.can we join two or more hash tables?and give some tips.
c++
null
null
null
null
01/08/2011 11:18:02
not a real question
dictionary using hashing === hi guys i am doing an project(dictionary using hash table),i have certain doubts in hashing.can we join two or more hash tables?and give some tips.
1
11,511,556
07/16/2012 19:52:51
139,630
07/16/2009 16:37:16
14
1
Accessing Dynamically created controls in AJAX Modal Pop-up
I am having difficulty in accessing controls and/or html tags in a AJAX Modal POpup Extender. Basically I am creating a <asp:Table> at design time and then populating the rows and colms at run time of ShowPopUp click event of a button on the page. I was able to fill/populate the table but was not able to access the row/col or the controls inside the table when I click OK on the Popup. Any help is apreciated I tried to a lot on the web but no use. I think I am missing some fundas of AJAX and Postback. Any help is apreciated. (Code attached) thank you Ranjit <!-- Code --> Popup_Parent.aspx [Markup Partial Code] <asp:Panel ID="ModalPanel" runat="server" Width="600px" BorderColor="white" BorderStyle="Solid" BorderWidth="1px" Height="400px"> <asp:TextBox ID="txtTest" runat="server"></asp:TextBox> <%--<--! Add server side table to add Data to Panel. -->--%> <asp:Table id="Table2" runat="server" ondatabinding="Table2_DataBinding" BackColor="silver" BorderColor="#3366FF" BorderStyle="Solid" BorderWidth="1px" Width="100%"> <asp:TableHeaderRow ID="tblHeaderRow"> <asp:TableHeaderCell ID="tblHeaderCell" ColumnSpan="2"> </asp:TableHeaderCell> </asp:TableHeaderRow> <asp:TableFooterRow ID="tblFooterRow"> </asp:TableFooterRow> </asp:Table> <asp:Button ID="SaveButton" runat="server" Text="Save" onclick="SaveData" /> <asp:Button ID="OKButton" runat="server" Text="Close"/> </asp:Panel> <asp:ModalPopupExtender ID="mpe" runat="server" TargetControlID="ClientButton" PopupControlID="ModalPanel" DropShadow="false" BackgroundCssClass="modalBackground"> </asp:ModalPopupExtender> Popup_Parent.aspx.cs Button On Parent Page protected void ServerButton_Click(object sender, EventArgs e) { //ClientScript.RegisterStartupScript(this.GetType(), "Key", "launchModal();", true); //Table2.DataBind(); if (CreateRows(Table2, "client")) \\CreateRows will create rows and cols to the server side table. { string jscript = string.Format( "(function() {{" + "var fn = function() {{" + "$find(\"{0}\").show();" + "}};" + "Sys.Application.add_load(fn);" + "}})();", mpe.ClientID); ScriptManager.RegisterStartupScript(this, this.GetType(), "key1", jscript, true); } } protected void SaveData(object sender, EventArgs e) { StringBuilder jscriptSaveData = new StringBuilder(); // jscriptSaveData.Append("function saveTableData(){" + //"theTable=document.getElementByID('Table2').getElementsByTagName('input');" + //"alert(theTable);" + //"" + //"}"); ScriptManager.RegisterStartupScript(this, this.GetType(), "key2", jscriptSaveData.ToString(), true); }
asp.net
ajax
null
null
null
null
open
Accessing Dynamically created controls in AJAX Modal Pop-up === I am having difficulty in accessing controls and/or html tags in a AJAX Modal POpup Extender. Basically I am creating a <asp:Table> at design time and then populating the rows and colms at run time of ShowPopUp click event of a button on the page. I was able to fill/populate the table but was not able to access the row/col or the controls inside the table when I click OK on the Popup. Any help is apreciated I tried to a lot on the web but no use. I think I am missing some fundas of AJAX and Postback. Any help is apreciated. (Code attached) thank you Ranjit <!-- Code --> Popup_Parent.aspx [Markup Partial Code] <asp:Panel ID="ModalPanel" runat="server" Width="600px" BorderColor="white" BorderStyle="Solid" BorderWidth="1px" Height="400px"> <asp:TextBox ID="txtTest" runat="server"></asp:TextBox> <%--<--! Add server side table to add Data to Panel. -->--%> <asp:Table id="Table2" runat="server" ondatabinding="Table2_DataBinding" BackColor="silver" BorderColor="#3366FF" BorderStyle="Solid" BorderWidth="1px" Width="100%"> <asp:TableHeaderRow ID="tblHeaderRow"> <asp:TableHeaderCell ID="tblHeaderCell" ColumnSpan="2"> </asp:TableHeaderCell> </asp:TableHeaderRow> <asp:TableFooterRow ID="tblFooterRow"> </asp:TableFooterRow> </asp:Table> <asp:Button ID="SaveButton" runat="server" Text="Save" onclick="SaveData" /> <asp:Button ID="OKButton" runat="server" Text="Close"/> </asp:Panel> <asp:ModalPopupExtender ID="mpe" runat="server" TargetControlID="ClientButton" PopupControlID="ModalPanel" DropShadow="false" BackgroundCssClass="modalBackground"> </asp:ModalPopupExtender> Popup_Parent.aspx.cs Button On Parent Page protected void ServerButton_Click(object sender, EventArgs e) { //ClientScript.RegisterStartupScript(this.GetType(), "Key", "launchModal();", true); //Table2.DataBind(); if (CreateRows(Table2, "client")) \\CreateRows will create rows and cols to the server side table. { string jscript = string.Format( "(function() {{" + "var fn = function() {{" + "$find(\"{0}\").show();" + "}};" + "Sys.Application.add_load(fn);" + "}})();", mpe.ClientID); ScriptManager.RegisterStartupScript(this, this.GetType(), "key1", jscript, true); } } protected void SaveData(object sender, EventArgs e) { StringBuilder jscriptSaveData = new StringBuilder(); // jscriptSaveData.Append("function saveTableData(){" + //"theTable=document.getElementByID('Table2').getElementsByTagName('input');" + //"alert(theTable);" + //"" + //"}"); ScriptManager.RegisterStartupScript(this, this.GetType(), "key2", jscriptSaveData.ToString(), true); }
0
322,594
11/27/2008 00:18:51
41,187
11/26/2008 22:27:33
6
0
Where to start? What language to learn first?
I'm just starting out in the programming world and I know that I have a long road ahead of me..but I learn quickly. :) I want to be able to build RIAs and I've been going through Adobe's PDF files on ActionScript 3.0 and Flex. The more I learn, the more interesting it gets. My questions are these: Am I starting at the right spot? Should I be learning a different language first? Should I focus on MXML and AS, or should I start learning ROR or some other programming language? Any advice for a beginner would be greatly appreciated.
flex
flash
ria
programming-languages
null
07/25/2012 22:11:22
not constructive
Where to start? What language to learn first? === I'm just starting out in the programming world and I know that I have a long road ahead of me..but I learn quickly. :) I want to be able to build RIAs and I've been going through Adobe's PDF files on ActionScript 3.0 and Flex. The more I learn, the more interesting it gets. My questions are these: Am I starting at the right spot? Should I be learning a different language first? Should I focus on MXML and AS, or should I start learning ROR or some other programming language? Any advice for a beginner would be greatly appreciated.
4
11,371,305
07/07/2012 00:30:35
244,526
01/06/2010 06:49:42
2,205
26
Faster Java Regex Library
I'm writing a system where the bottleneck is performing regular expression matching, and am looking to speed it up. I understand that java regular expressions can be optimized by writing them carefully, but that's an art more than a science. Is there a place where I can find pre-written, efficient java regular expressions for common patterns (e.g. phone numbers, dates, times, etc.)? Also, is there a regex library for java that is faster than the built-in library?
java
regex
library
null
null
07/07/2012 01:33:45
not constructive
Faster Java Regex Library === I'm writing a system where the bottleneck is performing regular expression matching, and am looking to speed it up. I understand that java regular expressions can be optimized by writing them carefully, but that's an art more than a science. Is there a place where I can find pre-written, efficient java regular expressions for common patterns (e.g. phone numbers, dates, times, etc.)? Also, is there a regex library for java that is faster than the built-in library?
4
411,906
01/04/2009 23:29:25
48,722
12/23/2008 19:05:53
252
10
C# (.NET) Design Flaws
What do you think are the biggest design flaws in C# or the .NET Framework in general? My favorites are that there's no non-nullable string type and that you have to check for DBNull when fetching values from an IDataReader.
c#
design
.net
null
null
02/25/2012 05:39:51
not constructive
C# (.NET) Design Flaws === What do you think are the biggest design flaws in C# or the .NET Framework in general? My favorites are that there's no non-nullable string type and that you have to check for DBNull when fetching values from an IDataReader.
4
6,544,226
07/01/2011 06:08:02
693,560
04/05/2011 09:40:08
112
3
jQuery click event not working in a jQuery tab page
I'm using a jQuery tab in my MVC3 solution. The problem is that when I insert a link in one of these tabs, I'm not able to control this link with jQuery?! Here is my code: The main tab subdivision page: <div id="tabContainer"> <ul> <li>@Html.ActionLink("Tab 1", "DetailFooterTab1", "MyController")</li> <li>@Html.ActionLink("Tab 2", "DetailFooterTab2", "MyController")</li> <li>@Html.ActionLink("Tab 3", "DetailFooterTab3", "MyController")</li> </ul> </div> with this script: $("#tabContainer").tabs(); In my Tab3 page I have this code: <a href="#" id="buttonTest">Test</a> <script type="text/jscript"> $("#buttonTest").click(function () { alert('I am a link in the Tab 3 page'); }); </script> These jQuery tabs works. I mean I can click on one of these and the system is showing the corresponding tab (and hiding other tab content). BUT **When I click the test link, nothing happened! Any idea?**
jquery
asp.net
asp.net-mvc-3
null
null
null
open
jQuery click event not working in a jQuery tab page === I'm using a jQuery tab in my MVC3 solution. The problem is that when I insert a link in one of these tabs, I'm not able to control this link with jQuery?! Here is my code: The main tab subdivision page: <div id="tabContainer"> <ul> <li>@Html.ActionLink("Tab 1", "DetailFooterTab1", "MyController")</li> <li>@Html.ActionLink("Tab 2", "DetailFooterTab2", "MyController")</li> <li>@Html.ActionLink("Tab 3", "DetailFooterTab3", "MyController")</li> </ul> </div> with this script: $("#tabContainer").tabs(); In my Tab3 page I have this code: <a href="#" id="buttonTest">Test</a> <script type="text/jscript"> $("#buttonTest").click(function () { alert('I am a link in the Tab 3 page'); }); </script> These jQuery tabs works. I mean I can click on one of these and the system is showing the corresponding tab (and hiding other tab content). BUT **When I click the test link, nothing happened! Any idea?**
0
11,663,404
07/26/2012 06:09:57
1,553,626
07/26/2012 06:07:04
1
0
No visible @interface for 'NSString"
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You Lost!" message:[NSString stringWithFormat:@"You were hit! Try again!"] delegate:nil cancelButttonTitle:[@"Dismiss" otherButtonTitles:nil];
xcode
interface
nsstring
null
null
07/26/2012 07:36:43
not a real question
No visible @interface for 'NSString" === UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You Lost!" message:[NSString stringWithFormat:@"You were hit! Try again!"] delegate:nil cancelButttonTitle:[@"Dismiss" otherButtonTitles:nil];
1
3,610,013
08/31/2010 14:32:36
4,970
09/07/2008 05:11:48
106
5
File.listFiles() mangles unicode names with JDK 6
I'm struggling with a strange file name encoding issue when listing directory contents in Java 6 on both OS X and Linux: the `File.listFiles()` and related methods seem to return file names in a different encoding than the rest of the system. Note that it is not merely the display of these file names that is causing me problems. I'm mainly interested in doing a comparison of file names with a remote file storage system, so I care more about the content of the name strings than the character encoding used to print output. Here is a program to demonstrate. It creates a file with a Unicode name then prints out **URL-encoded** versions of the file names obtained from the directly-created File, and the same file when listed under a parent directory (you should run this code in an empty directory). The results show the different encoding returned by the `File.listFiles()` method. String fileName = "Trîcky Nåme"; File file = new File(fileName); file.createNewFile(); System.out.println("File name: " + URLEncoder.encode(file.getName(), "UTF-8")); // Get parent (current) dir and list file contents File parentDir = file.getAbsoluteFile().getParentFile(); File[] children = parentDir.listFiles(); for (File child: children) { System.out.println("Listed name: " + URLEncoder.encode(child.getName(), "UTF-8")); } Here's what I get when I run this test code on my systems. Note the `%CC` versus `%C3` character representations. OS X Snow Leopard: File name: Tri%CC%82cky+Na%CC%8Ame Listed name: Tr%C3%AEcky+N%C3%A5me $ java -version java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode) KUbuntu Linux (running in a VM on same OS X system): File name: Tri%CC%82cky+Na%CC%8Ame Listed name: Tr%C3%AEcky+N%C3%A5me $ java -version java version "1.6.0_18" OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-0ubuntu1) OpenJDK Client VM (build 16.0-b13, mixed mode, sharing) I have tried various hacks to get the strings to agree, including setting the `file.encoding` system property and various `LC_CTYPE` and `LANG` environment variables. Nothing helps, nor do I want to resort to such hacks. Unlike this (somewhat related?) question, I am able to read data from the listed files despite the odd names: http://stackoverflow.com/questions/2423781/chinese-encoding-issue-while-listing-files I'm out of ideas, and after many hours of fruitless debugging and Googling I'm about ready for some enlightenment.
java
unicode
file-encodings
null
null
null
open
File.listFiles() mangles unicode names with JDK 6 === I'm struggling with a strange file name encoding issue when listing directory contents in Java 6 on both OS X and Linux: the `File.listFiles()` and related methods seem to return file names in a different encoding than the rest of the system. Note that it is not merely the display of these file names that is causing me problems. I'm mainly interested in doing a comparison of file names with a remote file storage system, so I care more about the content of the name strings than the character encoding used to print output. Here is a program to demonstrate. It creates a file with a Unicode name then prints out **URL-encoded** versions of the file names obtained from the directly-created File, and the same file when listed under a parent directory (you should run this code in an empty directory). The results show the different encoding returned by the `File.listFiles()` method. String fileName = "Trîcky Nåme"; File file = new File(fileName); file.createNewFile(); System.out.println("File name: " + URLEncoder.encode(file.getName(), "UTF-8")); // Get parent (current) dir and list file contents File parentDir = file.getAbsoluteFile().getParentFile(); File[] children = parentDir.listFiles(); for (File child: children) { System.out.println("Listed name: " + URLEncoder.encode(child.getName(), "UTF-8")); } Here's what I get when I run this test code on my systems. Note the `%CC` versus `%C3` character representations. OS X Snow Leopard: File name: Tri%CC%82cky+Na%CC%8Ame Listed name: Tr%C3%AEcky+N%C3%A5me $ java -version java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode) KUbuntu Linux (running in a VM on same OS X system): File name: Tri%CC%82cky+Na%CC%8Ame Listed name: Tr%C3%AEcky+N%C3%A5me $ java -version java version "1.6.0_18" OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-0ubuntu1) OpenJDK Client VM (build 16.0-b13, mixed mode, sharing) I have tried various hacks to get the strings to agree, including setting the `file.encoding` system property and various `LC_CTYPE` and `LANG` environment variables. Nothing helps, nor do I want to resort to such hacks. Unlike this (somewhat related?) question, I am able to read data from the listed files despite the odd names: http://stackoverflow.com/questions/2423781/chinese-encoding-issue-while-listing-files I'm out of ideas, and after many hours of fruitless debugging and Googling I'm about ready for some enlightenment.
0
3,898,948
10/10/2010 03:52:54
149,080
08/01/2009 21:00:20
1,082
21
rails 3 - given XXX.created_at - How to output the 3 digit month + Day
Give a model.created_at I've been able to use: <%="#{time_ago_in_words(model.created_at)} ago "%> What is the helper to output something like - Oct 8 - Sep 23 - Aug 31 - Jul 11 Bonus points, if it outputs like above, but for any records that were created today (not 24hrs ago but today). it shows the time, example: - 4:31pm - 1:20pm - 9:31am - Oct 8 - Sep 23 - Aug 31 - Jul 11 Thanks
ruby-on-rails
ruby-on-rails-3
null
null
null
null
open
rails 3 - given XXX.created_at - How to output the 3 digit month + Day === Give a model.created_at I've been able to use: <%="#{time_ago_in_words(model.created_at)} ago "%> What is the helper to output something like - Oct 8 - Sep 23 - Aug 31 - Jul 11 Bonus points, if it outputs like above, but for any records that were created today (not 24hrs ago but today). it shows the time, example: - 4:31pm - 1:20pm - 9:31am - Oct 8 - Sep 23 - Aug 31 - Jul 11 Thanks
0
11,713,452
07/29/2012 22:15:24
588,855
08/06/2010 17:52:56
1,678
11
If I pass a value I want it "1", otherwise, I want it "0". What do you think?
I have the following C++ code (not a complete program): #include "stdafx.h" #include <iostream> #include <vector> #include <algorithm> #include <iterator> std::struct Features{ int F1; int F2; int F3; int F4; }; std::int criterionFunction(Features const& features){ return -2*features.F1*features.F2+3*features.F1+5*features.F2-2*features.F1*features.F2* features.F3+7*features.F3+4*features.F4-2*features.F1*features.F2*features.F3* features.F4; } int main(){ Features feature; std::vector<Features> listOfFeatures(4); listOfFeatures.push_back(feature.F1); listOfFeatures.push_back(feature.F2); listOfFeatures.push_back(feature.F3); listOfFeatures.push_back(feature.F4); std::vector<int> listOfCriterion; } I want to pass values to `criterionFunction()`, and, in order to get the result from `return`, the passed value will have the value `1` in the function, and the value that is not passed will have the value `0`. So, for example, if I pass `F1`, it has to be substituted by `1` in the function. How can I do that? Thanks.
c++
function
vector
null
null
07/30/2012 12:16:23
not a real question
If I pass a value I want it "1", otherwise, I want it "0". What do you think? === I have the following C++ code (not a complete program): #include "stdafx.h" #include <iostream> #include <vector> #include <algorithm> #include <iterator> std::struct Features{ int F1; int F2; int F3; int F4; }; std::int criterionFunction(Features const& features){ return -2*features.F1*features.F2+3*features.F1+5*features.F2-2*features.F1*features.F2* features.F3+7*features.F3+4*features.F4-2*features.F1*features.F2*features.F3* features.F4; } int main(){ Features feature; std::vector<Features> listOfFeatures(4); listOfFeatures.push_back(feature.F1); listOfFeatures.push_back(feature.F2); listOfFeatures.push_back(feature.F3); listOfFeatures.push_back(feature.F4); std::vector<int> listOfCriterion; } I want to pass values to `criterionFunction()`, and, in order to get the result from `return`, the passed value will have the value `1` in the function, and the value that is not passed will have the value `0`. So, for example, if I pass `F1`, it has to be substituted by `1` in the function. How can I do that? Thanks.
1
4,914,805
02/06/2011 17:10:02
286,704
03/04/2010 23:06:00
692
42
Strange link behavior
I'm basically new to jquery so I'm not sure I did the best way to do what I want... I'd like to load content in the webpage using ajax, and making a permanent url using `#!` to rewrite url, it works good except for some links... Here a short preview of the page (for the entire page/css/js [HERE](http://www.marcocarettoni.it/new)), links in `<div id="undertop">` work good, but the others in `<div id="listlabel">` didn't work, and I can't understand why... HTML <div id="undertop"> <a class="undertop" href="#!/news/Running">Home</a> </div> <div id="container"> <div id="blog"> <div class="post"> <a href="blablabla">Read More...</a> </div> </div> <div id="listlabel"> <a class="labelbox" href="#!/news/Running">Running (10)</a><br><br><br> <a class="labelbox" href="#!/news/Corsa">Corsa (5)</a><br><br><br> <a class="labelbox" href="#!/news/PC" >PC (4)</a><br><br><br> <a class="labelbox" href="#!/news/Altro" >Altro (2)</a><br><br><br> </div> </div>` Jquery Script $(document).ready(function(){ $(document).getUrl(window.location.hash,"#container"); $('a').click( function(){ alert('clicked'); //debug $(this).getUrl($(this).attr('href'),"#container"); } ); }); The Function getUrl $.fn.getUrl = function(urlpass,whereadd){ $(whereadd).html("<div class='ajaxloader'><img src='images/ajax-loader.gif'></div>"); var val=urlpass.split("#!"); val = val[val.length-1]; val = val.split("/"); if(val[1]==null) val[1]="news"; $.ajax({ url: val[1]+".php", type: "POST", data: "tag="+val[2], cache: false, success: function(html){ $(document).find(whereadd).html(html); } }); } Thank you in advance
javascript
jquery
html
css
html5
null
open
Strange link behavior === I'm basically new to jquery so I'm not sure I did the best way to do what I want... I'd like to load content in the webpage using ajax, and making a permanent url using `#!` to rewrite url, it works good except for some links... Here a short preview of the page (for the entire page/css/js [HERE](http://www.marcocarettoni.it/new)), links in `<div id="undertop">` work good, but the others in `<div id="listlabel">` didn't work, and I can't understand why... HTML <div id="undertop"> <a class="undertop" href="#!/news/Running">Home</a> </div> <div id="container"> <div id="blog"> <div class="post"> <a href="blablabla">Read More...</a> </div> </div> <div id="listlabel"> <a class="labelbox" href="#!/news/Running">Running (10)</a><br><br><br> <a class="labelbox" href="#!/news/Corsa">Corsa (5)</a><br><br><br> <a class="labelbox" href="#!/news/PC" >PC (4)</a><br><br><br> <a class="labelbox" href="#!/news/Altro" >Altro (2)</a><br><br><br> </div> </div>` Jquery Script $(document).ready(function(){ $(document).getUrl(window.location.hash,"#container"); $('a').click( function(){ alert('clicked'); //debug $(this).getUrl($(this).attr('href'),"#container"); } ); }); The Function getUrl $.fn.getUrl = function(urlpass,whereadd){ $(whereadd).html("<div class='ajaxloader'><img src='images/ajax-loader.gif'></div>"); var val=urlpass.split("#!"); val = val[val.length-1]; val = val.split("/"); if(val[1]==null) val[1]="news"; $.ajax({ url: val[1]+".php", type: "POST", data: "tag="+val[2], cache: false, success: function(html){ $(document).find(whereadd).html(html); } }); } Thank you in advance
0
5,350,397
03/18/2011 10:01:57
155,695
08/13/2009 10:06:24
1,495
31
Any tools for comparing decompiled classes to source code?
For arguements sake, you've got some compiled `.class` files, and some source `.java` files. You're not convinced that the class files were actually built from the same revision of those source files that you have (for example someone else created those classes but didn't check in the source code). I know what you're thinking, a developers nightmare. However, are there any tools that can assist in decompiling class files and comparing those against source files and flagging up any differences such as missing methods etc? I've done this manually, decompiled a class, and compared each line to the source code, there were significant differences in business logic. I have several hundred files to do this for, are there any tools to help?
java
decompile
null
null
null
null
open
Any tools for comparing decompiled classes to source code? === For arguements sake, you've got some compiled `.class` files, and some source `.java` files. You're not convinced that the class files were actually built from the same revision of those source files that you have (for example someone else created those classes but didn't check in the source code). I know what you're thinking, a developers nightmare. However, are there any tools that can assist in decompiling class files and comparing those against source files and flagging up any differences such as missing methods etc? I've done this manually, decompiled a class, and compared each line to the source code, there were significant differences in business logic. I have several hundred files to do this for, are there any tools to help?
0
8,181,598
11/18/2011 11:23:04
278,470
02/22/2010 05:31:46
769
38
Fetch all rows data from second table using single join query
I have run into a 1-N situation. i.e 1 record in 1st table will have multiple records in second table, I just wanna fetch all data corresponding to the ID in 1st table using joins, is this possible. table 1 : ID name 1 pradeep table 2: ID table1_id orders 1 1 23 2 1 25 3 1 26 In a single query i should get all records. I dont wanna loop as i am doing it and its taking lot of time.
php
mysql
null
null
null
null
open
Fetch all rows data from second table using single join query === I have run into a 1-N situation. i.e 1 record in 1st table will have multiple records in second table, I just wanna fetch all data corresponding to the ID in 1st table using joins, is this possible. table 1 : ID name 1 pradeep table 2: ID table1_id orders 1 1 23 2 1 25 3 1 26 In a single query i should get all records. I dont wanna loop as i am doing it and its taking lot of time.
0
9,138,990
02/04/2012 06:45:43
1,184,426
02/02/2012 06:23:31
3
0
Get details from memcache using a value
Is it possible to get details from memcache using values stored in a particular key ? Thanks
memcached
null
null
null
null
null
open
Get details from memcache using a value === Is it possible to get details from memcache using values stored in a particular key ? Thanks
0
4,287,945
11/26/2010 19:07:47
215,094
11/20/2009 00:18:14
445
7
How to eliminate email formatting in received email?
I am practicing sending emails with Google App Engine with Python. This code checks to see if `message.sender` is in the database: class ReceiveEmail(InboundMailHandler): def receive(self, message): querySender = User.all() querySender.filter("userEmail =", message.sender) senderInDatabase = None for match in querySender: senderInDatabase = match.userEmail This works in the development server because I send the email as `"[email protected]"` and `message.sender="[email protected]"` But I realized that in the production server emails come formatted as `"az <[email protected]>` and my code fails because now `message.sender="az <[email protected]>"` but the email in the database is simple `"[email protected]".` I searched for how to do this with `regex` and it is possible but I was wondering if I can do this with Python lists? Or, what do you think is the best way to achieve this result? I need to take just the email address from the `message.sender`. [App Engine documentation]( http://code.google.com/appengine/docs/python/mail/emailmessagefields.html) acknowledges the formatting but I could not find a specific way to select the email address only. Thanks!
python
regex
google-app-engine
null
null
null
open
How to eliminate email formatting in received email? === I am practicing sending emails with Google App Engine with Python. This code checks to see if `message.sender` is in the database: class ReceiveEmail(InboundMailHandler): def receive(self, message): querySender = User.all() querySender.filter("userEmail =", message.sender) senderInDatabase = None for match in querySender: senderInDatabase = match.userEmail This works in the development server because I send the email as `"[email protected]"` and `message.sender="[email protected]"` But I realized that in the production server emails come formatted as `"az <[email protected]>` and my code fails because now `message.sender="az <[email protected]>"` but the email in the database is simple `"[email protected]".` I searched for how to do this with `regex` and it is possible but I was wondering if I can do this with Python lists? Or, what do you think is the best way to achieve this result? I need to take just the email address from the `message.sender`. [App Engine documentation]( http://code.google.com/appengine/docs/python/mail/emailmessagefields.html) acknowledges the formatting but I could not find a specific way to select the email address only. Thanks!
0
6,613,674
07/07/2011 16:10:50
720,564
04/22/2011 13:13:19
27
1
Encrypting data for RESTful services using Jersey
I am using Jersey for my RESTful web service development. I already have configured SSL for Point to Point security...but I need some application level security (end to end), for which I guess encryption is the only way to go. Are there some encryption features in-built with Jersey for encrypting the XML/JSON I am sending to my clients ? Or maybe a third-party Java filter which can help me in this case ?? If I get nothing, I guess I may have to write code for encrypting the objects before serializing it into XML/JSON through Jersey...but I guess this would be painful and far less efficient. Any thoughts would be appreciated on this topic. I want my RESTful services to be as secure as those offered by the SOAP WS Security standards. Thanks a lot !
java
security
rest
soap
jersey
null
open
Encrypting data for RESTful services using Jersey === I am using Jersey for my RESTful web service development. I already have configured SSL for Point to Point security...but I need some application level security (end to end), for which I guess encryption is the only way to go. Are there some encryption features in-built with Jersey for encrypting the XML/JSON I am sending to my clients ? Or maybe a third-party Java filter which can help me in this case ?? If I get nothing, I guess I may have to write code for encrypting the objects before serializing it into XML/JSON through Jersey...but I guess this would be painful and far less efficient. Any thoughts would be appreciated on this topic. I want my RESTful services to be as secure as those offered by the SOAP WS Security standards. Thanks a lot !
0
11,361,717
07/06/2012 11:53:58
1,506,640
07/06/2012 11:46:14
1
0
How to call or used web services on phone gap android technology so what can u give example or demo?
I have tried some times demo web services with some other references but it is not working??so please can u give one demo or example how to used or call web services on phone gap with android. i m trying some time below code? x$.data = {}; x$(window).load(function (e) { x$("#returned_information").xhr("http://64.15.136.251:8080/onestatus/webservice/[email protected]&password=123456", { callback: function () { var codes = eval("(" + this.responseText + ")").postalCodes; /* this should be an array */ x$("#returned_information").html(codes[0].placeName); } } ); });
jquery
null
null
null
null
07/20/2012 01:53:38
not a real question
How to call or used web services on phone gap android technology so what can u give example or demo? === I have tried some times demo web services with some other references but it is not working??so please can u give one demo or example how to used or call web services on phone gap with android. i m trying some time below code? x$.data = {}; x$(window).load(function (e) { x$("#returned_information").xhr("http://64.15.136.251:8080/onestatus/webservice/[email protected]&password=123456", { callback: function () { var codes = eval("(" + this.responseText + ")").postalCodes; /* this should be an array */ x$("#returned_information").html(codes[0].placeName); } } ); });
1
7,140,661
08/21/2011 19:46:42
904,887
08/21/2011 19:46:42
1
0
How to avoid making a webserver a bottleneck with cassandra?
Im new to Cassandra, so bear with me. So, I am building a search engine using Cassandra as the db. I am interacting with it through Pycassa. Now, I want to output Cassandra's response to a webpage, having the user submitted a query. I am aware of django, fastCGI, SCGI, etc. However, how does one run a python script on a webserver without turning this server into a bottleneck ( i.e., if this server dies than the system is not accessible by the user) - and therefore negating one purpose of Cassandra?
python
django
search
search-engine
cassandra
null
open
How to avoid making a webserver a bottleneck with cassandra? === Im new to Cassandra, so bear with me. So, I am building a search engine using Cassandra as the db. I am interacting with it through Pycassa. Now, I want to output Cassandra's response to a webpage, having the user submitted a query. I am aware of django, fastCGI, SCGI, etc. However, how does one run a python script on a webserver without turning this server into a bottleneck ( i.e., if this server dies than the system is not accessible by the user) - and therefore negating one purpose of Cassandra?
0
9,424,745
02/24/2012 03:01:14
826,203
07/02/2011 16:19:52
590
1
is there an official document on how to convert Chinese characters into pinyin?
I need to convert Chinese characters into pinyin and need an official document for that conversion. There are some libraries around as mentioned by previous posts such as http://stackoverflow.com/questions/4361971/convert-chinese-characters-to-hanyu-pinyin . However, I need an "official standard" more than an "available library". Where could I find such a document? Is there any standard / document / book released by China government for how shall Chinese characters be pronounced/marked by pinyin? Appreciate your kind help.
standards
chinese
pinyin
null
null
05/09/2012 11:51:39
off topic
is there an official document on how to convert Chinese characters into pinyin? === I need to convert Chinese characters into pinyin and need an official document for that conversion. There are some libraries around as mentioned by previous posts such as http://stackoverflow.com/questions/4361971/convert-chinese-characters-to-hanyu-pinyin . However, I need an "official standard" more than an "available library". Where could I find such a document? Is there any standard / document / book released by China government for how shall Chinese characters be pronounced/marked by pinyin? Appreciate your kind help.
2
10,487,098
05/07/2012 18:24:38
1,133,062
01/05/2012 20:48:46
1
0
Changing a PHP value dynamically with Javascript
I'm making a blog type webpage, with a div that has a 'like' and 'dislike' button, and a rating above which is a mysql query of likes/(likes+dislikes). When a user clicks like or dislike, I want to add their vote to the db, and dynamically change the rating value without reloading the page. Here's a little snippet of the html, I have barely worked with javascript, so any help would be great. <div class="narrow_right_container"> <?php $popularity = get_popularity($row); ?> <div class="yellow_bg">Rating: <?php echo $popularity . "%"; ?></div> <div style="margin-left:2px;"> <div class="dislike"> <a href="#"><img src="ui_images/dislike.png"/></a> <span>Dislike</span> </div> <div class="like"> <a href="#"><img src="ui_images/like.png" /></a> <span>Like</span> </div> </div> </div>
php
javascript
mysql
dynamic
null
null
open
Changing a PHP value dynamically with Javascript === I'm making a blog type webpage, with a div that has a 'like' and 'dislike' button, and a rating above which is a mysql query of likes/(likes+dislikes). When a user clicks like or dislike, I want to add their vote to the db, and dynamically change the rating value without reloading the page. Here's a little snippet of the html, I have barely worked with javascript, so any help would be great. <div class="narrow_right_container"> <?php $popularity = get_popularity($row); ?> <div class="yellow_bg">Rating: <?php echo $popularity . "%"; ?></div> <div style="margin-left:2px;"> <div class="dislike"> <a href="#"><img src="ui_images/dislike.png"/></a> <span>Dislike</span> </div> <div class="like"> <a href="#"><img src="ui_images/like.png" /></a> <span>Like</span> </div> </div> </div>
0
9,966,689
04/01/2012 17:46:03
1,306,617
04/01/2012 17:32:48
1
0
Best Practice, multiple scenes
I am developing an app that will have several scenes. Each scene will be interactive, having objects that can moved. For instance, the first scene will be a bedroom. The user can touch a dresser drawer and drag the drawer open. Can then drag a sock to the drawer and drop the sock into the drawer. Click on the door, and the scene is changed to the next room. I am trying to determine what the best way to do this would be. I originally started with using a layout and putting the background images loaded into a view flipper. I have also looked into creating a surfaceview from activities, and didn't use the main layout at all. Currently, I am playing with using a relative layout. So, my question is this. Does anyone have recommendations on how to best lay out my project?
android
android-layout
null
null
null
04/03/2012 16:00:49
not constructive
Best Practice, multiple scenes === I am developing an app that will have several scenes. Each scene will be interactive, having objects that can moved. For instance, the first scene will be a bedroom. The user can touch a dresser drawer and drag the drawer open. Can then drag a sock to the drawer and drop the sock into the drawer. Click on the door, and the scene is changed to the next room. I am trying to determine what the best way to do this would be. I originally started with using a layout and putting the background images loaded into a view flipper. I have also looked into creating a surfaceview from activities, and didn't use the main layout at all. Currently, I am playing with using a relative layout. So, my question is this. Does anyone have recommendations on how to best lay out my project?
4
8,090,468
11/11/2011 06:36:59
958,670
09/22/2011 08:49:53
874
30
how to set password at application level.?
I am working on the application which will run in background. And I want to put the password to the application so the user will no able to uninstall that application without password. So if is there any help regarding this then please answer with solution.
blackberry
null
null
null
null
11/12/2011 11:53:49
not a real question
how to set password at application level.? === I am working on the application which will run in background. And I want to put the password to the application so the user will no able to uninstall that application without password. So if is there any help regarding this then please answer with solution.
1
5,697,275
04/17/2011 23:49:32
652,238
03/09/2011 19:19:57
11
2
Email not sending - Subscribe2 Wordpress plugin
I've seen a fair numbers of posts similar to this, but never addressing exactly what is happening in my setup. I've installed the wordpress plugin Subscribe2 to send mass emails to site subscribers. The site is hosted on GoDaddy shared hosting. WP V 3.xx I've used several plugins, Simmy Swift SMTP, WP SMTP Email among others. These all seem to be working. When I send test emails, they all get through. When sending emails using Subscribe2, the email never gets through. Even worse, the plugin tells me that the mail sent successfully, but it never makes it (into Spam either). Any ideas?
php
wordpress
smtp
godaddy
null
04/18/2011 10:33:12
off topic
Email not sending - Subscribe2 Wordpress plugin === I've seen a fair numbers of posts similar to this, but never addressing exactly what is happening in my setup. I've installed the wordpress plugin Subscribe2 to send mass emails to site subscribers. The site is hosted on GoDaddy shared hosting. WP V 3.xx I've used several plugins, Simmy Swift SMTP, WP SMTP Email among others. These all seem to be working. When I send test emails, they all get through. When sending emails using Subscribe2, the email never gets through. Even worse, the plugin tells me that the mail sent successfully, but it never makes it (into Spam either). Any ideas?
2
5,211,225
03/06/2011 15:03:24
647,022
03/06/2011 15:03:24
1
0
What kind of hash is this?
If someone can help me, can you help me identify this hash? 51a5a55a2a173a177a30a167a70a145a105a94a121a112a10a87
hash
null
null
null
null
03/06/2011 16:32:12
not a real question
What kind of hash is this? === If someone can help me, can you help me identify this hash? 51a5a55a2a173a177a30a167a70a145a105a94a121a112a10a87
1
7,839,081
10/20/2011 16:24:07
1,005,624
10/20/2011 16:17:25
1
0
Any Books on OpenGL game engine programming?
it is best to be in OpenGL. i tried some books in DirectX but they are to old and have many errors. im looking for game engine programming books in OpenGL because it doesn't change so much. im also looking for tutorials, but books covers a lot of ground very depthly. thanks, even if you don't find anything :)
c++
opengl
game-engine
null
null
10/20/2011 17:30:59
off topic
Any Books on OpenGL game engine programming? === it is best to be in OpenGL. i tried some books in DirectX but they are to old and have many errors. im looking for game engine programming books in OpenGL because it doesn't change so much. im also looking for tutorials, but books covers a lot of ground very depthly. thanks, even if you don't find anything :)
2
6,132,102
05/25/2011 23:27:04
64,398
02/10/2009 01:40:09
81
9
Help - Error debugging eMbedded Visual C++ DLL on XP
I have DLL with source code that I would like to do debugging. Since it's DLL so I create another project for this DLL project to attach process to it which I followed the suggestion provided by microsoft. After that I set the breakpoint and press F5 to debug the DLL project, I get error: "Platform Manager Failed to Queue File Cemon.exe" I tried the workaround that microsoft has for the Win98 even though I'm using XP, but the workaround does not work. I uninstall everything, evc, sdk and sp4 then install all over again, but still same issue. any idea? thanks
c++
debugging
embedded
evc4
null
null
open
Help - Error debugging eMbedded Visual C++ DLL on XP === I have DLL with source code that I would like to do debugging. Since it's DLL so I create another project for this DLL project to attach process to it which I followed the suggestion provided by microsoft. After that I set the breakpoint and press F5 to debug the DLL project, I get error: "Platform Manager Failed to Queue File Cemon.exe" I tried the workaround that microsoft has for the Win98 even though I'm using XP, but the workaround does not work. I uninstall everything, evc, sdk and sp4 then install all over again, but still same issue. any idea? thanks
0
6,817,302
07/25/2011 14:00:29
854,681
07/20/2011 19:50:51
15
0
How do I email bcc a list of users from a txt file?
So I am making a program that emails a list of users from a .txt file. Here is what I have so far. MailAddress from = new MailAddress("[email protected]", "MAIL BOT TEST"); MailAddress to = new MailAddress("testadmin", "Admin"); MailMessage message = new MailMessage(from, to); using (StreamReader sr3 = new StreamReader(@"C:\Data\Items\emailItems.txt")) { string emailList; emailList = sr3.ReadToEnd(); MailAddress bcc = new MailAddress(emailList); message.Bcc.Add(bcc); Console.WriteLine(emailList); MessageBox.Show("" + emailList, "Email List", MessageBoxButtons.OK); } The emailList will not work since it throws an exception and it takes: MailAddress bcc = new MailAddress("[email protected]"); Thanks and Cheers, Sean.
c#
null
null
null
null
null
open
How do I email bcc a list of users from a txt file? === So I am making a program that emails a list of users from a .txt file. Here is what I have so far. MailAddress from = new MailAddress("[email protected]", "MAIL BOT TEST"); MailAddress to = new MailAddress("testadmin", "Admin"); MailMessage message = new MailMessage(from, to); using (StreamReader sr3 = new StreamReader(@"C:\Data\Items\emailItems.txt")) { string emailList; emailList = sr3.ReadToEnd(); MailAddress bcc = new MailAddress(emailList); message.Bcc.Add(bcc); Console.WriteLine(emailList); MessageBox.Show("" + emailList, "Email List", MessageBoxButtons.OK); } The emailList will not work since it throws an exception and it takes: MailAddress bcc = new MailAddress("[email protected]"); Thanks and Cheers, Sean.
0
7,031,204
08/11/2011 18:48:58
657,527
03/13/2011 13:50:29
5
0
Simple floating text wpf mvvm drag & drop adorner
I need to implement a simple adorner for drag & drop functionality in a wpf mvvm application. Items are dragged from a ListBox to an ItemsControl and within the ItemsControl. The ListBox items do not have any special formatting and simply displays a list of text\label items and the ItemsControl DataTemplate formats the items as labels. How can I implement a siple floating text adorner for the drag & drop operation? The actual drag and drop is already coded and working using RelayCommands in the vm i.e. no code behind. I have read a number of related posts on this topic and the solutions are either not mvvm or offer a whole drag & drop solution (such as GongSolutions, etc.) which I don't want. I just need a simple floating text adorner.
c#
wpf
mvvm
drag-and-drop
null
08/12/2011 10:26:45
not a real question
Simple floating text wpf mvvm drag & drop adorner === I need to implement a simple adorner for drag & drop functionality in a wpf mvvm application. Items are dragged from a ListBox to an ItemsControl and within the ItemsControl. The ListBox items do not have any special formatting and simply displays a list of text\label items and the ItemsControl DataTemplate formats the items as labels. How can I implement a siple floating text adorner for the drag & drop operation? The actual drag and drop is already coded and working using RelayCommands in the vm i.e. no code behind. I have read a number of related posts on this topic and the solutions are either not mvvm or offer a whole drag & drop solution (such as GongSolutions, etc.) which I don't want. I just need a simple floating text adorner.
1
10,738,962
05/24/2012 13:59:22
756,053
05/16/2011 17:17:33
37
6
Why does my site look different in IE9 than Firefox and Chrome?
I have a css background image repeating at the bottom of my site and it works great in Firefox and Chrome. ![This is a background image being repeated on the bottom of the content background div.][1] However in IE9 I get some unexpected results. This background image appears under the slideshow and clears the content under it making it look like it's in a seperate div. ![This is what it looks like in IE9][2] Here is what it looks like in Chrome and Firefox. ![Here is what it looks like in Chrome and Firefox][3] [1]: http://i.stack.imgur.com/rd4gi.gif [2]: http://i.stack.imgur.com/ct9Rm.gif [3]: http://i.stack.imgur.com/rYMrW.gif The CSS I'm using that is related that appears to be related to this issue is: #content-bg{ background:url(images/content-bg-bottom.gif) bottom repeat-x, url(images/content-bg-bg.gif); margin-top:0px; box-shadow: inset 0 3px 10px #000; padding:30px 40px; padding-bottom:100px; width:880px; overflow:hidden; } I have declared the DOCTYPE as: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> When I change this to <!DOCTYPE html> because I'm using html5 it did not fix the issue. So I changed it back. Not sure if I should leave it typed to html5 since it's working on Firefox and Chrome. Here is everything that is in the content-bg div that has this css rule applied to it: <div id="content-bg"> <div id="main-content"> <div id="slideshow"> <div class="slide"> <img src="images/courthouse2.jpg" > <div class="caption"> <p>This is the latest post... <a href="#">Read More</a></p> </div> </div> <div class="slide"> <img src="images/thumbsup.jpg"> <div class="caption"> <p>This is the later post... <a href="#">Read More</a></p> </div> </div> <div class="slide"> <img src="images/working.jpg"> <div class="caption"> <p>This is an older post... <a href="#">Read More</a></p> </div> </div> </div> <h2>Welcome</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vestibulum, magna in ultricies feugiat, diam neque gravida metus, eget hendrerit justo libero nec est. Fusce vitae augue sit amet lorem lobortis dictum eget ac magna. Nulla bibendum, lectus sed rhoncus vestibulum, purus risus semper mi, in bibendum magna arcu sed lectus. Suspendisse magna nisl.</p> <p>Mollis ultrices luctus scelerisque, tincidunt a massa. Duis dapibus tincidunt diam, in adipiscing tellus lobortis pretium. Aenean porttitor condimentum felis vitae placerat. Etiam </p> <div class="col50"> <h2>Meet Our Team</h2> <img width="75" height="84" src="http://ccrccmo.com/wp-content/uploads/2012/05/ginny-wade.jpg" class="thumbnail wp-post-image" alt="Ginny Wade" title="ginny-wade" /> <div class="col25"> <h3>Ginny Wade</h3> <h4>Board Member</h4> <p class="block"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vestibulum, magna in ultricies feugiat, diam neque gravida metus, eget hendrerit [...]</p> </p> <a href="http://ccrccmo.com/board-members/ginny-wade/" class="button">Read More &rarr;</a> </div> </div> <div class="col50 lastcol"> <h2>Upcoming Events</h2> <h3>CCRCC Monthly Meeting</h3> <time>May 12, 2012</time> <p><p>We meet on the third Tuesday of every month.</p> </p> <a href="http://ccrccmo.com/ccrcc-meetings/" class="button">Read More &rarr;</a> </div> </div><!--End of main-content--> <aside> <form action="http://ccrccmo.com" id="searchform" method="get"> <div> <label for="s" class="screen-reader-text">Search for:</label> <input type="text" id="s" name="s" value="" /> <input type="submit" value="Search" id="searchsubmit" /> </div> </form> <li id="linkcat-2" class="linkcat"><h2>Main Menu</h2> <ul class='xoxo blogroll'> <li><a href="http://wordpress.org/extend/themes/">Christian County Republican By Laws</a></li> <li><a href="http://wordpress.org/extend/plugins/">Elected Officials</a></li> <li><a href="/">Home</a></li> <li><a href="http://wordpress.org/extend/ideas/">Missouri Republican Platform</a></li> <li><a href="http://wordpress.org/support/">National Republican Platform</a></li> </ul> </li> <li id="linkcat-45" class="linkcat"><h2>Resources</h2> <ul class='xoxo blogroll'> <li><a href="http://gop.com">GOP</a></li> <li><a href="http://planet.wordpress.org/">Voter Registration</a></li> </ul> </li> <h2>News</h2> <a href="http://ccrccmo.com/new-website/"> <img src="/images/new-website-thumb.jpg" class="intro-img"> </a> <h3>New Website</h3> <time>May 22, 2012</time> <p><p>We are partnering with Zach Dyer Design to build a new dynamic website that will allows new fresh content everyday.</p> </p> <p><a href="http://ccrccmo.com/new-website/" class="button">Read More &rarr;</a></p> <h2>Archives</h2> <ul> <li><a href='http://ccrccmo.com/2012/05/' title='May 2012'>May 2012</a></li> </ul> <h2>Categories</h2> <ul> <li class="cat-item cat-item-46"><a href="http://ccrccmo.com/category/about-us/" title="View all posts filed under About Us">About Us</a> (1) </li> <li class="cat-item cat-item-1"><a href="http://ccrccmo.com/category/events/" title="View all posts filed under Events">Events</a> (1) </li> <li class="cat-item cat-item-15 current-cat"><a href="http://ccrccmo.com/category/news/" title="View all posts filed under News">News</a> (1) </li> </ul> <h2>Meta</h2> <ul> <li><a href="http://ccrccmo.com/wp-login.php?action=register">Register</a></li> <li><a href="http://ccrccmo.com/wp-login.php">Log in</a></li> </ul> <h2>Subscribe</h2> <ul> <li><a href="http://ccrccmo.com/feed/">Entries (RSS)</a></li> <li><a href="http://ccrccmo.com/comments/feed/">Comments (RSS)</a></li> </ul> <div id="nav_menu-2" class="widget widget_nav_menu"><h2>Extra Menu</h2><div class="menu-extra-menu-container"><ul id="menu-extra-menu" class="menu"><li id="menu-item-44" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-44"><a href="http://ccrccmo.com/wp-login.php">User Login</a></li> <li id="menu-item-45" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-45"><a href="http://ccrccmo.com/wp-login.php?action=register">Register</a></li> <li id="menu-item-220" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-220"><a href="http://ccrccmo.com/search/">Search</a></li> </ul></div></div> </aside> </div><!--End of content-bg-->
css
html5
internet-explorer-9
background-image
doctype
05/31/2012 23:49:59
not a real question
Why does my site look different in IE9 than Firefox and Chrome? === I have a css background image repeating at the bottom of my site and it works great in Firefox and Chrome. ![This is a background image being repeated on the bottom of the content background div.][1] However in IE9 I get some unexpected results. This background image appears under the slideshow and clears the content under it making it look like it's in a seperate div. ![This is what it looks like in IE9][2] Here is what it looks like in Chrome and Firefox. ![Here is what it looks like in Chrome and Firefox][3] [1]: http://i.stack.imgur.com/rd4gi.gif [2]: http://i.stack.imgur.com/ct9Rm.gif [3]: http://i.stack.imgur.com/rYMrW.gif The CSS I'm using that is related that appears to be related to this issue is: #content-bg{ background:url(images/content-bg-bottom.gif) bottom repeat-x, url(images/content-bg-bg.gif); margin-top:0px; box-shadow: inset 0 3px 10px #000; padding:30px 40px; padding-bottom:100px; width:880px; overflow:hidden; } I have declared the DOCTYPE as: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> When I change this to <!DOCTYPE html> because I'm using html5 it did not fix the issue. So I changed it back. Not sure if I should leave it typed to html5 since it's working on Firefox and Chrome. Here is everything that is in the content-bg div that has this css rule applied to it: <div id="content-bg"> <div id="main-content"> <div id="slideshow"> <div class="slide"> <img src="images/courthouse2.jpg" > <div class="caption"> <p>This is the latest post... <a href="#">Read More</a></p> </div> </div> <div class="slide"> <img src="images/thumbsup.jpg"> <div class="caption"> <p>This is the later post... <a href="#">Read More</a></p> </div> </div> <div class="slide"> <img src="images/working.jpg"> <div class="caption"> <p>This is an older post... <a href="#">Read More</a></p> </div> </div> </div> <h2>Welcome</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vestibulum, magna in ultricies feugiat, diam neque gravida metus, eget hendrerit justo libero nec est. Fusce vitae augue sit amet lorem lobortis dictum eget ac magna. Nulla bibendum, lectus sed rhoncus vestibulum, purus risus semper mi, in bibendum magna arcu sed lectus. Suspendisse magna nisl.</p> <p>Mollis ultrices luctus scelerisque, tincidunt a massa. Duis dapibus tincidunt diam, in adipiscing tellus lobortis pretium. Aenean porttitor condimentum felis vitae placerat. Etiam </p> <div class="col50"> <h2>Meet Our Team</h2> <img width="75" height="84" src="http://ccrccmo.com/wp-content/uploads/2012/05/ginny-wade.jpg" class="thumbnail wp-post-image" alt="Ginny Wade" title="ginny-wade" /> <div class="col25"> <h3>Ginny Wade</h3> <h4>Board Member</h4> <p class="block"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vestibulum, magna in ultricies feugiat, diam neque gravida metus, eget hendrerit [...]</p> </p> <a href="http://ccrccmo.com/board-members/ginny-wade/" class="button">Read More &rarr;</a> </div> </div> <div class="col50 lastcol"> <h2>Upcoming Events</h2> <h3>CCRCC Monthly Meeting</h3> <time>May 12, 2012</time> <p><p>We meet on the third Tuesday of every month.</p> </p> <a href="http://ccrccmo.com/ccrcc-meetings/" class="button">Read More &rarr;</a> </div> </div><!--End of main-content--> <aside> <form action="http://ccrccmo.com" id="searchform" method="get"> <div> <label for="s" class="screen-reader-text">Search for:</label> <input type="text" id="s" name="s" value="" /> <input type="submit" value="Search" id="searchsubmit" /> </div> </form> <li id="linkcat-2" class="linkcat"><h2>Main Menu</h2> <ul class='xoxo blogroll'> <li><a href="http://wordpress.org/extend/themes/">Christian County Republican By Laws</a></li> <li><a href="http://wordpress.org/extend/plugins/">Elected Officials</a></li> <li><a href="/">Home</a></li> <li><a href="http://wordpress.org/extend/ideas/">Missouri Republican Platform</a></li> <li><a href="http://wordpress.org/support/">National Republican Platform</a></li> </ul> </li> <li id="linkcat-45" class="linkcat"><h2>Resources</h2> <ul class='xoxo blogroll'> <li><a href="http://gop.com">GOP</a></li> <li><a href="http://planet.wordpress.org/">Voter Registration</a></li> </ul> </li> <h2>News</h2> <a href="http://ccrccmo.com/new-website/"> <img src="/images/new-website-thumb.jpg" class="intro-img"> </a> <h3>New Website</h3> <time>May 22, 2012</time> <p><p>We are partnering with Zach Dyer Design to build a new dynamic website that will allows new fresh content everyday.</p> </p> <p><a href="http://ccrccmo.com/new-website/" class="button">Read More &rarr;</a></p> <h2>Archives</h2> <ul> <li><a href='http://ccrccmo.com/2012/05/' title='May 2012'>May 2012</a></li> </ul> <h2>Categories</h2> <ul> <li class="cat-item cat-item-46"><a href="http://ccrccmo.com/category/about-us/" title="View all posts filed under About Us">About Us</a> (1) </li> <li class="cat-item cat-item-1"><a href="http://ccrccmo.com/category/events/" title="View all posts filed under Events">Events</a> (1) </li> <li class="cat-item cat-item-15 current-cat"><a href="http://ccrccmo.com/category/news/" title="View all posts filed under News">News</a> (1) </li> </ul> <h2>Meta</h2> <ul> <li><a href="http://ccrccmo.com/wp-login.php?action=register">Register</a></li> <li><a href="http://ccrccmo.com/wp-login.php">Log in</a></li> </ul> <h2>Subscribe</h2> <ul> <li><a href="http://ccrccmo.com/feed/">Entries (RSS)</a></li> <li><a href="http://ccrccmo.com/comments/feed/">Comments (RSS)</a></li> </ul> <div id="nav_menu-2" class="widget widget_nav_menu"><h2>Extra Menu</h2><div class="menu-extra-menu-container"><ul id="menu-extra-menu" class="menu"><li id="menu-item-44" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-44"><a href="http://ccrccmo.com/wp-login.php">User Login</a></li> <li id="menu-item-45" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-45"><a href="http://ccrccmo.com/wp-login.php?action=register">Register</a></li> <li id="menu-item-220" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-220"><a href="http://ccrccmo.com/search/">Search</a></li> </ul></div></div> </aside> </div><!--End of content-bg-->
1
6,350,533
06/14/2011 21:46:49
555,384
12/27/2010 21:22:31
6,976
284
Android NoSuchMethodError being thrown on ArrayAdapter Constructor
I'm attempting to extend the generic ArrayAdapter in order to customize a ListView and am getting an NoSuchMethodError being thrown when I hit the `TpAdapter` (my extended Adapter) constructor Here is the exteded ArrayAdapter `TpAdapter` private class TpAdapter : ArrayAdapter<MobileTalkingPoint> { private MobileTalkingPoint[] items; private Context outer_context; public TpAdapter(Context context, int textViewResourceId, MobileTalkingPoint[] items) : base(context, textViewResourceId, items) { this.items = items; this.outer_context = context; } public override View GetView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater vi = (LayoutInflater)outer_context.GetSystemService(Context.LayoutInflaterService); v = vi.Inflate(Resource.Layout.ItemTalkingPoint, null); } MobileTalkingPoint tp = items[position]; if (tp != null) { TextView tpDate = v.FindViewById<TextView>(Resource.Id.tpDate); TextView tpTitle = v.FindViewById<TextView>(Resource.Id.tpTitle); TextView tpType = v.FindViewById<TextView>(Resource.Id.tpType); TextView tpBody = v.FindViewById<TextView>(Resource.Id.tpBody); tpDate.Text = String.Format("{0:MM/dd/yy}", tp.TPDate); tpTitle.Text = tp.Title; tpType.Text = tp.Type; tpBody.Text = tp.Descr; } return v; } } I am instantiating them as follows in the activity: MobileTalkingPoint[] weaknesses = talkingPoints; TpAdapter adapStrength = new TpAdapter(this, Resource.Layout.ItemTalkingPoint, strengths); And the stacktrace for the exception is as follows I/ActivityManager( 1283): Starting: Intent { cmp=MapDroid.MapDroid/mapdroid.TabbedView (has extras) } from pid 22409 I/ActivityManager( 1283): Displayed MapDroid.MapDroid/mapdroid.TabbedView: +573ms D/dalvikvm(22409): GetMethodID: method not found: Lmapdroid/TabTalkingPoints_TpAdapter;.<init>:(Landroid/content/Context;I[Ljava/lang/Object;)V I/MonoDroid(22409): UNHANDLED EXCEPTION: Java.Lang.NoSuchMethodError: Exception of type 'Java.Lang.NoSuchMethodError' was thrown. I/MonoDroid(22409): at Android.Runtime.JNIEnv.GetMethodID (intptr,string,string) <0x0007c> I/MonoDroid(22409): at Android.Widget.ArrayAdapter`1<MonoMap.wsMobile.MobileTalkingPoint>..ctor (Android.Content.Context,int,MonoMap.wsMobile.MobileTalkingPoint[]) <0x0027b> I/MonoDroid(22409): at MapDroid.TabTalkingPoints/TpAdapter..ctor (Android.Content.Context,int,MonoMap.wsMobile.MobileTalkingPoint[]) <0x0002b> I/MonoDroid(22409): at MapDroid.TabTalkingPoints.ShowList () <0x00077> I/MonoDroid(22409): at MapDroid.TabTalkingPoints.OnCreate (Android.OS.Bundle) <0x001df> I/MonoDroid(22409): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x00057> I/MonoDroid(22409): at (wrapper dynamic-method) object.b1cd4072-05f5-4443-8835-b4102b462c1e (intptr,intptr,intptr) <0x00033> I/MonoDroid(22409): I/MonoDroid(22409): --- End of managed exception stack trace --- I/MonoDroid(22409): java.lang.NoSuchMethodError: <init> I/MonoDroid(22409): at mapdroid.TabTalkingPoints.n_onCreate(Native Method) I/MonoDroid(22409): at mapdroid.TabTalkingPoints.onCreate(TabTalkingPoints.java:25) I/MonoDroid(22409): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) I/MonoDroid(22409): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722) I/MonoDroid(22409): at android.app.ActivityThread.startActivityNow(ActivityThread.java:1598) I/MonoDroid(22409): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127) I/MonoDroid(22409): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339) I/MonoDroid(22409): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:654) I/MonoDroid(22409): at android.widget.TabHost.setCurrentTab(TabHost.java:326) I/MonoDroid(22409): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:132) I/MonoDroid(22409): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:455) I/MonoDroid(22409): at android.view.View.performClick(View.java:2501) I/MonoDroid(22409): at android.view.View$PerformClick.run(View.java:9107) I/MonoDroid(22409): at android.os.Handler.handleCallback(Handler.java:587) I/MonoDroid(22409): at android.os.Handler.dispatchMessage(Handler.java:92) I/MonoDroid(22409): at android.os.Looper.loop(Looper.java:123) I/MonoDroid(22409): at android.app.ActivityThread.main(ActivityThread.java:3835) I/MonoDroid(22409): at java.lang.reflect.Method.invokeNative(Native Method) I/MonoDroid(22409): at java.lang.reflect.Method.invoke(Method.java:507) I/MonoDroid(22409): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) I/MonoDroid(22409): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) I/MonoDroid(22409): at dalvik.system.NativeStart.main(Native Method) E/mono (22409): E/mono (22409): Unhandled Exception: Java.Lang.NoSuchMethodError: Exception of type 'Java.Lang.NoSuchMethodError' was thrown. E/mono (22409): at Android.Runtime.JNIEnv.GetMethodID (IntPtr kls, System.String name, System.String signature) [0x00000] in <filename unknown>:0 E/mono (22409): at Android.Widget.ArrayAdapter`1[MonoMap.wsMobile.MobileTalkingPoint]..ctor (Android.Content.Context context, Int32 textViewResourceId, MonoMap.wsMobile.MobileTalkingPoint[] objects) [0x00000] in <filename unknown>:0 E/mono (22409): at MapDroid.TabTalkingPoints+TpAdapter..ctor (Android.Content.Context context, Int32 textViewResourceId, MonoMap.wsMobile.MobileTalkingPoint[] items) [0x00000] in <filename unknown>:0 E/mono (22409): at MapDroid.TabTalkingPoints.ShowList () [0x00000] in <filename unknown>:0 E/mono (22409): at MapDroid.TabTalkingPoints.OnCreate (Android.OS.Bundle bundle) [0x00000] in <filename unknown>:0 E/mono (22409): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) [0x00000] in <filename unknown>:0 E/mono (22409): at (wrapper dynamic-method) I/ActivityManager( 1283): Process MapDroid.MapDroid (pid 22409) has died. ***NOTE*** I am using Mono for Android with Visual Studio 2010
c#
android
visual-studio
exception
null
null
open
Android NoSuchMethodError being thrown on ArrayAdapter Constructor === I'm attempting to extend the generic ArrayAdapter in order to customize a ListView and am getting an NoSuchMethodError being thrown when I hit the `TpAdapter` (my extended Adapter) constructor Here is the exteded ArrayAdapter `TpAdapter` private class TpAdapter : ArrayAdapter<MobileTalkingPoint> { private MobileTalkingPoint[] items; private Context outer_context; public TpAdapter(Context context, int textViewResourceId, MobileTalkingPoint[] items) : base(context, textViewResourceId, items) { this.items = items; this.outer_context = context; } public override View GetView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater vi = (LayoutInflater)outer_context.GetSystemService(Context.LayoutInflaterService); v = vi.Inflate(Resource.Layout.ItemTalkingPoint, null); } MobileTalkingPoint tp = items[position]; if (tp != null) { TextView tpDate = v.FindViewById<TextView>(Resource.Id.tpDate); TextView tpTitle = v.FindViewById<TextView>(Resource.Id.tpTitle); TextView tpType = v.FindViewById<TextView>(Resource.Id.tpType); TextView tpBody = v.FindViewById<TextView>(Resource.Id.tpBody); tpDate.Text = String.Format("{0:MM/dd/yy}", tp.TPDate); tpTitle.Text = tp.Title; tpType.Text = tp.Type; tpBody.Text = tp.Descr; } return v; } } I am instantiating them as follows in the activity: MobileTalkingPoint[] weaknesses = talkingPoints; TpAdapter adapStrength = new TpAdapter(this, Resource.Layout.ItemTalkingPoint, strengths); And the stacktrace for the exception is as follows I/ActivityManager( 1283): Starting: Intent { cmp=MapDroid.MapDroid/mapdroid.TabbedView (has extras) } from pid 22409 I/ActivityManager( 1283): Displayed MapDroid.MapDroid/mapdroid.TabbedView: +573ms D/dalvikvm(22409): GetMethodID: method not found: Lmapdroid/TabTalkingPoints_TpAdapter;.<init>:(Landroid/content/Context;I[Ljava/lang/Object;)V I/MonoDroid(22409): UNHANDLED EXCEPTION: Java.Lang.NoSuchMethodError: Exception of type 'Java.Lang.NoSuchMethodError' was thrown. I/MonoDroid(22409): at Android.Runtime.JNIEnv.GetMethodID (intptr,string,string) <0x0007c> I/MonoDroid(22409): at Android.Widget.ArrayAdapter`1<MonoMap.wsMobile.MobileTalkingPoint>..ctor (Android.Content.Context,int,MonoMap.wsMobile.MobileTalkingPoint[]) <0x0027b> I/MonoDroid(22409): at MapDroid.TabTalkingPoints/TpAdapter..ctor (Android.Content.Context,int,MonoMap.wsMobile.MobileTalkingPoint[]) <0x0002b> I/MonoDroid(22409): at MapDroid.TabTalkingPoints.ShowList () <0x00077> I/MonoDroid(22409): at MapDroid.TabTalkingPoints.OnCreate (Android.OS.Bundle) <0x001df> I/MonoDroid(22409): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x00057> I/MonoDroid(22409): at (wrapper dynamic-method) object.b1cd4072-05f5-4443-8835-b4102b462c1e (intptr,intptr,intptr) <0x00033> I/MonoDroid(22409): I/MonoDroid(22409): --- End of managed exception stack trace --- I/MonoDroid(22409): java.lang.NoSuchMethodError: <init> I/MonoDroid(22409): at mapdroid.TabTalkingPoints.n_onCreate(Native Method) I/MonoDroid(22409): at mapdroid.TabTalkingPoints.onCreate(TabTalkingPoints.java:25) I/MonoDroid(22409): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) I/MonoDroid(22409): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722) I/MonoDroid(22409): at android.app.ActivityThread.startActivityNow(ActivityThread.java:1598) I/MonoDroid(22409): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127) I/MonoDroid(22409): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339) I/MonoDroid(22409): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:654) I/MonoDroid(22409): at android.widget.TabHost.setCurrentTab(TabHost.java:326) I/MonoDroid(22409): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:132) I/MonoDroid(22409): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:455) I/MonoDroid(22409): at android.view.View.performClick(View.java:2501) I/MonoDroid(22409): at android.view.View$PerformClick.run(View.java:9107) I/MonoDroid(22409): at android.os.Handler.handleCallback(Handler.java:587) I/MonoDroid(22409): at android.os.Handler.dispatchMessage(Handler.java:92) I/MonoDroid(22409): at android.os.Looper.loop(Looper.java:123) I/MonoDroid(22409): at android.app.ActivityThread.main(ActivityThread.java:3835) I/MonoDroid(22409): at java.lang.reflect.Method.invokeNative(Native Method) I/MonoDroid(22409): at java.lang.reflect.Method.invoke(Method.java:507) I/MonoDroid(22409): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) I/MonoDroid(22409): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) I/MonoDroid(22409): at dalvik.system.NativeStart.main(Native Method) E/mono (22409): E/mono (22409): Unhandled Exception: Java.Lang.NoSuchMethodError: Exception of type 'Java.Lang.NoSuchMethodError' was thrown. E/mono (22409): at Android.Runtime.JNIEnv.GetMethodID (IntPtr kls, System.String name, System.String signature) [0x00000] in <filename unknown>:0 E/mono (22409): at Android.Widget.ArrayAdapter`1[MonoMap.wsMobile.MobileTalkingPoint]..ctor (Android.Content.Context context, Int32 textViewResourceId, MonoMap.wsMobile.MobileTalkingPoint[] objects) [0x00000] in <filename unknown>:0 E/mono (22409): at MapDroid.TabTalkingPoints+TpAdapter..ctor (Android.Content.Context context, Int32 textViewResourceId, MonoMap.wsMobile.MobileTalkingPoint[] items) [0x00000] in <filename unknown>:0 E/mono (22409): at MapDroid.TabTalkingPoints.ShowList () [0x00000] in <filename unknown>:0 E/mono (22409): at MapDroid.TabTalkingPoints.OnCreate (Android.OS.Bundle bundle) [0x00000] in <filename unknown>:0 E/mono (22409): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) [0x00000] in <filename unknown>:0 E/mono (22409): at (wrapper dynamic-method) I/ActivityManager( 1283): Process MapDroid.MapDroid (pid 22409) has died. ***NOTE*** I am using Mono for Android with Visual Studio 2010
0
7,486,777
09/20/2011 14:23:58
420,595
08/14/2010 19:40:09
55
1
Changing the tabs height in a MDI Tab group
The documentation on this is not really that good. Anyone have a idea of how to do it?
c++
windows
mfc
null
null
09/23/2011 11:34:58
not a real question
Changing the tabs height in a MDI Tab group === The documentation on this is not really that good. Anyone have a idea of how to do it?
1
5,205,591
03/05/2011 17:46:17
383,152
07/04/2010 15:58:57
205
0
php jquery javascript
I'm trying to figure out what to output for a GET script call using JQuery. I'm setting up a PHP service that's going to return a script call - these are my technical constraints as I understand them. Any suggestions? Cheers.
php
javascript
jquery
null
null
03/05/2011 18:09:19
not a real question
php jquery javascript === I'm trying to figure out what to output for a GET script call using JQuery. I'm setting up a PHP service that's going to return a script call - these are my technical constraints as I understand them. Any suggestions? Cheers.
1
9,796,745
03/20/2012 23:51:52
1,232,855
02/25/2012 17:56:05
1
0
get raw touch data from Wacom touchpad
i have a [Wacom Bamboo][1] multitouch-pad and want to use it as input device. it is connected to my pc. how can i get the raw touch data? for instance, if i'm touching at position {x,y} on touchpad, my application should get this points and send this point as message. please someone guide me or give me some clues. i didnt find any threads about that. thanks Lucas [1]: http://www.wacom.com/en/Products/Bamboo/BambooTablets.aspx
touch
multitouch
bamboo
touchpad
wacom
null
open
get raw touch data from Wacom touchpad === i have a [Wacom Bamboo][1] multitouch-pad and want to use it as input device. it is connected to my pc. how can i get the raw touch data? for instance, if i'm touching at position {x,y} on touchpad, my application should get this points and send this point as message. please someone guide me or give me some clues. i didnt find any threads about that. thanks Lucas [1]: http://www.wacom.com/en/Products/Bamboo/BambooTablets.aspx
0
1,948,862
12/22/2009 20:19:14
14,555
09/17/2008 00:58:09
847
45
is the Python 3.0 signal library for Windows incomplete
I went to write a system script using 3.0 and found the SIGALRM signal and signal.alarm() call missing amongst many others on the Windows deployment. Does anyone know why these are missing? Below is a dir() of the 2.5 vs 3.0 signal packages on windows. I haven't found any 3.0 docs yet mentioning that this was moved python25> python Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import signal >>> dir(signal) ['NSIG', 'SIGABRT', 'SIGALRM', 'SIGBUS', 'SIGCHLD', 'SIGCLD', 'SIGCONT', 'SIGEMT', 'SIGFPE', 'SIGHUP', 'SIGILL', 'SIGINT ', 'SIGIO', 'SIGKILL', 'SIGPIPE', 'SIGPOLL', 'SIGPROF', 'SIGQUIT', 'SIGRTMAX', 'SIGRTMIN', 'SIGSEGV', 'SIGSTOP', 'SIGSYS ', 'SIGTERM', 'SIGTRAP', 'SIGTSTP', 'SIGTTIN', 'SIGTTOU', 'SIGURG', 'SIGUSR1', 'SIGUSR2', 'SIGVTALRM', 'SIGWINCH', 'SIGX CPU', 'SIGXFSZ', 'SIG_DFL', 'SIG_IGN', '__doc__', '__name__', 'alarm', 'default_int_handler', 'getsignal', 'pause', 'sig nal'] >>> exit() python25> cd ../python31 python31> python Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import signal >>> dir(signal) ['NSIG', 'SIGABRT', 'SIGBREAK', 'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_IGN', '__doc__', '__ name__', '__package__', 'default_int_handler', 'getsignal', 'set_wakeup_fd', 'signal'] >>>
python
null
null
null
null
null
open
is the Python 3.0 signal library for Windows incomplete === I went to write a system script using 3.0 and found the SIGALRM signal and signal.alarm() call missing amongst many others on the Windows deployment. Does anyone know why these are missing? Below is a dir() of the 2.5 vs 3.0 signal packages on windows. I haven't found any 3.0 docs yet mentioning that this was moved python25> python Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import signal >>> dir(signal) ['NSIG', 'SIGABRT', 'SIGALRM', 'SIGBUS', 'SIGCHLD', 'SIGCLD', 'SIGCONT', 'SIGEMT', 'SIGFPE', 'SIGHUP', 'SIGILL', 'SIGINT ', 'SIGIO', 'SIGKILL', 'SIGPIPE', 'SIGPOLL', 'SIGPROF', 'SIGQUIT', 'SIGRTMAX', 'SIGRTMIN', 'SIGSEGV', 'SIGSTOP', 'SIGSYS ', 'SIGTERM', 'SIGTRAP', 'SIGTSTP', 'SIGTTIN', 'SIGTTOU', 'SIGURG', 'SIGUSR1', 'SIGUSR2', 'SIGVTALRM', 'SIGWINCH', 'SIGX CPU', 'SIGXFSZ', 'SIG_DFL', 'SIG_IGN', '__doc__', '__name__', 'alarm', 'default_int_handler', 'getsignal', 'pause', 'sig nal'] >>> exit() python25> cd ../python31 python31> python Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import signal >>> dir(signal) ['NSIG', 'SIGABRT', 'SIGBREAK', 'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_IGN', '__doc__', '__ name__', '__package__', 'default_int_handler', 'getsignal', 'set_wakeup_fd', 'signal'] >>>
0
11,424,924
07/11/2012 03:00:09
387,345
07/09/2010 03:23:56
98
2
How can i pass an object to a new thread generated anonymously in a button listener
I would like to pass an object (docket for printing) to a new thread which will print the docket. My code is: private final Button.OnClickListener cmdPrintOnClickListener = new Button.OnClickListener() { public void onClick(View v) { new Thread(new Runnable() { public void run() { enableTestButton(false); Looper.prepare(); doConnectionTest(); Looper.loop(); Looper.myLooper().quit(); } }).start(); } }; How do I pass the object to it? Also - I need to generate the object in the UI thread, just before starting the new thread so where could I put this method (e.g. getDocketObject()) in relation to my code below thanks, anton
java
android
null
null
null
null
open
How can i pass an object to a new thread generated anonymously in a button listener === I would like to pass an object (docket for printing) to a new thread which will print the docket. My code is: private final Button.OnClickListener cmdPrintOnClickListener = new Button.OnClickListener() { public void onClick(View v) { new Thread(new Runnable() { public void run() { enableTestButton(false); Looper.prepare(); doConnectionTest(); Looper.loop(); Looper.myLooper().quit(); } }).start(); } }; How do I pass the object to it? Also - I need to generate the object in the UI thread, just before starting the new thread so where could I put this method (e.g. getDocketObject()) in relation to my code below thanks, anton
0
11,520,896
07/17/2012 10:46:24
1,522,911
07/13/2012 07:41:33
1
0
c# xaml windows phone 7
I developing an application ON WINDOWS PHONE 7 where to pull data from one WCF , I Want to displays data dynamically in a list WINDOWS PHONE 7.. how build dynamically list box?
c#
windows
xaml
windows-phone-7.1
null
07/18/2012 09:59:22
not a real question
c# xaml windows phone 7 === I developing an application ON WINDOWS PHONE 7 where to pull data from one WCF , I Want to displays data dynamically in a list WINDOWS PHONE 7.. how build dynamically list box?
1
9,263,503
02/13/2012 15:51:47
1,200,402
02/09/2012 18:42:45
1
0
Sending data from Android to GAE
i know how to send data from a GAE webservice to android using SAXParser. Is there a similar way to send data from Android to the GAE webservice? Or should i use HTTP Client?
android
google-app-engine
null
null
null
02/13/2012 23:36:12
not a real question
Sending data from Android to GAE === i know how to send data from a GAE webservice to android using SAXParser. Is there a similar way to send data from Android to the GAE webservice? Or should i use HTTP Client?
1
3,996,945
10/22/2010 12:52:50
484,201
10/22/2010 12:27:10
1
0
Converting Gridview into CSV
Is this possible to take delimeter other than comma for converting into CSV file....because in my scenario my gridview cell contains data with commas.
vb.net
csv
null
null
null
null
open
Converting Gridview into CSV === Is this possible to take delimeter other than comma for converting into CSV file....because in my scenario my gridview cell contains data with commas.
0
6,572,055
07/04/2011 13:16:19
435,056
08/30/2010 14:39:39
40
2
Remove cookies from jquery ajax calls
I would do jquery ajax calls discarding every cookie, so I can have a new session for every call. Is there a way to do this? Thanks
jquery
session
jquery-ajax
null
null
null
open
Remove cookies from jquery ajax calls === I would do jquery ajax calls discarding every cookie, so I can have a new session for every call. Is there a way to do this? Thanks
0
9,892,196
03/27/2012 15:03:36
1,165,441
01/23/2012 17:10:47
1
0
What is the process of creating a link that will expire using a specific key?
I am implementing a password reset function and would have the key I want to use as a parameter to a jsp page(I assume that is how it's done. I am new to jsf and jsp so if there are any tutorials on how to pass parameters and to the jsp page and make those parameters only active for a certain amount of time that would be wonderful. Thanks
java
jsp
jsf
null
null
03/28/2012 15:06:13
not a real question
What is the process of creating a link that will expire using a specific key? === I am implementing a password reset function and would have the key I want to use as a parameter to a jsp page(I assume that is how it's done. I am new to jsf and jsp so if there are any tutorials on how to pass parameters and to the jsp page and make those parameters only active for a certain amount of time that would be wonderful. Thanks
1
140,707
09/26/2008 17:07:32
8,714
09/15/2008 16:39:54
1
0
Web Development IDE Suggestions
I'm looking for suggestions for web development IDEs. I'm currently looking at Aptana Studio and it looks rather impressive so far. Anyone have other suggestions? I'm looking for support for HTML, CSS and JavaScript. Thanks!
ide
null
null
null
null
08/31/2011 02:03:48
not constructive
Web Development IDE Suggestions === I'm looking for suggestions for web development IDEs. I'm currently looking at Aptana Studio and it looks rather impressive so far. Anyone have other suggestions? I'm looking for support for HTML, CSS and JavaScript. Thanks!
4
6,986,756
08/08/2011 18:27:17
441,733
09/07/2010 18:40:25
1
0
how to get a total count for records deleted in custom function
Can someone please help me writing a custom function to delete old records and return a total count at the same time? Here is what I have currently. The delete portion works good, but somehow return counter is nothing. CREATE OR REPLACE FUNCTION DELETE_OLD(delete_date IN DATE) RETURN NUMBER IS counter NUMBER; BEGIN LOOP DELETE FROM MY_TEST_TABLE WHERE TEST_DATA_LOAD_DATE < delete_date AND ROWNUM <= 100; counter := counter + SQL%ROWCOUNT; COMMIT; EXIT WHEN SQL%ROWCOUNT = 0; END LOOP; RETURN counter; END; This is how I call the function on sql_plus SQL> VAR OUT_NUMBER SQL> call DELETE_OLD(TO_DATE('20-05-2011', 'dd-MM-yyyy')) into :OUT_NUMBER; and when I print OUT_NUMBER, I see nothing. Thanks for your help!
oracle
null
null
null
null
null
open
how to get a total count for records deleted in custom function === Can someone please help me writing a custom function to delete old records and return a total count at the same time? Here is what I have currently. The delete portion works good, but somehow return counter is nothing. CREATE OR REPLACE FUNCTION DELETE_OLD(delete_date IN DATE) RETURN NUMBER IS counter NUMBER; BEGIN LOOP DELETE FROM MY_TEST_TABLE WHERE TEST_DATA_LOAD_DATE < delete_date AND ROWNUM <= 100; counter := counter + SQL%ROWCOUNT; COMMIT; EXIT WHEN SQL%ROWCOUNT = 0; END LOOP; RETURN counter; END; This is how I call the function on sql_plus SQL> VAR OUT_NUMBER SQL> call DELETE_OLD(TO_DATE('20-05-2011', 'dd-MM-yyyy')) into :OUT_NUMBER; and when I print OUT_NUMBER, I see nothing. Thanks for your help!
0
11,478,192
07/13/2012 20:52:55
783,203
06/03/2011 18:40:10
59
0
Migrating code from a PIC18F2480 to a PIC18F2680 Microcontroller
I have bootloader code written in MPLAB for an 18F2480 processor. My current project requires me to upgrade the microcontroller to an 18F2680. (The main difference between the two chips is that the 2480 has 16K of program memory/768B RAM/ 256B EEPROM while the 2680 chip has 64K of program memory/3K of RAM and 1K of EEPROM.) I have changed the selected device to "PIC18f2680" as well as replaced the 2480 header file for the 18f2680.h file. I am having complications communicating with the 2680 using the program I normally use to update the 2480 firmware. (I cannot provide details on this software as it is propietary.) I just wanted to know if there are any known issues/complications that come with migrating code from a 2480 to a 2680. And FWIW, I have successfully replaced the 2480 with a 2580 which has 32K of program memory, 1536 RAM bytes, and 256B of EEPROM. The code works fine and all I had to do was replace the header file and choose a different device in MPLAB. Could it have to do with the different size of EEPROM for the 24/2580 and the 2680?
c
microcontroller
mplab
null
null
null
open
Migrating code from a PIC18F2480 to a PIC18F2680 Microcontroller === I have bootloader code written in MPLAB for an 18F2480 processor. My current project requires me to upgrade the microcontroller to an 18F2680. (The main difference between the two chips is that the 2480 has 16K of program memory/768B RAM/ 256B EEPROM while the 2680 chip has 64K of program memory/3K of RAM and 1K of EEPROM.) I have changed the selected device to "PIC18f2680" as well as replaced the 2480 header file for the 18f2680.h file. I am having complications communicating with the 2680 using the program I normally use to update the 2480 firmware. (I cannot provide details on this software as it is propietary.) I just wanted to know if there are any known issues/complications that come with migrating code from a 2480 to a 2680. And FWIW, I have successfully replaced the 2480 with a 2580 which has 32K of program memory, 1536 RAM bytes, and 256B of EEPROM. The code works fine and all I had to do was replace the header file and choose a different device in MPLAB. Could it have to do with the different size of EEPROM for the 24/2580 and the 2680?
0
11,642,631
07/25/2012 04:16:48
652,079
02/25/2010 12:01:51
339
0
How to place the smaller rectangles inside larger rectangle using Java?
I stumbled upon a problem which i would like to solve it using Java. User inputs Larger Rectangle dimension (i.e L_width and L_height) and smaller rectangle dimension (i.e S_width and S_height). I would like to place as many smaller rectangle inside the larger rectangle and show it graphically. for example: When the Larger Rectangle size is 4 x 5 and smaller rectangle size is 2 x 2, then the maximum number of smaller rectangle that i would be able to place it inside the larger rectangle is 4. I would like to show them graphically. As im new to java, i wanted to know how i can approach this problem from programmatic point of view and what concept i have to use to achieve the same.
java
applet
null
null
null
null
open
How to place the smaller rectangles inside larger rectangle using Java? === I stumbled upon a problem which i would like to solve it using Java. User inputs Larger Rectangle dimension (i.e L_width and L_height) and smaller rectangle dimension (i.e S_width and S_height). I would like to place as many smaller rectangle inside the larger rectangle and show it graphically. for example: When the Larger Rectangle size is 4 x 5 and smaller rectangle size is 2 x 2, then the maximum number of smaller rectangle that i would be able to place it inside the larger rectangle is 4. I would like to show them graphically. As im new to java, i wanted to know how i can approach this problem from programmatic point of view and what concept i have to use to achieve the same.
0
3,414,041
08/05/2010 11:03:36
378,049
06/28/2010 13:08:49
94
0
append number to variable name and call it in a loop (php) (smarty)
I have a simple question. I need to append 1,2,3 etc to a variable name in smarty. The variables are `$user1`, `$user2`, `$user3` etc. I use smarty to do a simple loop like this: {section name=user_info start=1 loop=$users} <tr> <td> User{$smarty.section.user_info.index} </td> // prints user1, user2, user3 etc <td> {$user} append this: {$smarty.section.user_info.index} // need to call $userX </td> </tr> {/section} I tried everything on the [variable info site to smarty][1]. [1]: http://www.smarty.net/manual/en/language.syntax.variables.php
php
variables
loops
smarty
append
null
open
append number to variable name and call it in a loop (php) (smarty) === I have a simple question. I need to append 1,2,3 etc to a variable name in smarty. The variables are `$user1`, `$user2`, `$user3` etc. I use smarty to do a simple loop like this: {section name=user_info start=1 loop=$users} <tr> <td> User{$smarty.section.user_info.index} </td> // prints user1, user2, user3 etc <td> {$user} append this: {$smarty.section.user_info.index} // need to call $userX </td> </tr> {/section} I tried everything on the [variable info site to smarty][1]. [1]: http://www.smarty.net/manual/en/language.syntax.variables.php
0
2,946,834
06/01/2010 01:32:27
225,280
12/05/2009 05:34:05
54
0
Reducing similar commands
How can I reduce the amount of similar commands into a loop? Something like <pre>pictureBox7.BackColor = Color.FromArgb(187, 187, 187); pictureBox9.BackColor = Color.FromArgb(187, 187, 187); pictureBox10.BackColor = Color.FromArgb(187, 187, 187); pictureBox11.BackColor = Color.FromArgb(187, 187, 187); pictureBox12.BackColor = Color.FromArgb(187, 187, 187); pictureBox13.BackColor = Color.FromArgb(187, 187, 187);</pre> G2g for now, will add on later.
c#
null
null
null
null
null
open
Reducing similar commands === How can I reduce the amount of similar commands into a loop? Something like <pre>pictureBox7.BackColor = Color.FromArgb(187, 187, 187); pictureBox9.BackColor = Color.FromArgb(187, 187, 187); pictureBox10.BackColor = Color.FromArgb(187, 187, 187); pictureBox11.BackColor = Color.FromArgb(187, 187, 187); pictureBox12.BackColor = Color.FromArgb(187, 187, 187); pictureBox13.BackColor = Color.FromArgb(187, 187, 187);</pre> G2g for now, will add on later.
0
7,565,357
09/27/2011 07:05:41
118,500
06/06/2009 11:05:38
4,063
406
Linq to SQL: How to save the final queries to a log file?
I am looking after an application with lots of LINQ to SQL queries. Some of the data loading is taking quite a bit of time. I wanted to know the exact query that is fired on SQL server. Is there any way of storing the generated T-SQL statements to some kind of a log file? Please suggest some other possible ways as well.
linq
entity-framework
linq-to-sql
logging
null
null
open
Linq to SQL: How to save the final queries to a log file? === I am looking after an application with lots of LINQ to SQL queries. Some of the data loading is taking quite a bit of time. I wanted to know the exact query that is fired on SQL server. Is there any way of storing the generated T-SQL statements to some kind of a log file? Please suggest some other possible ways as well.
0
11,585,633
07/20/2012 19:15:19
486,720
10/25/2010 17:26:57
450
1
what's special with executing multiple commands in one line?
if one executes the following two commands in one line, as follows, > rm -rf dir ; cp dir2 dir it may complain that cp can not create directory ``dir/subdir``: File exists but if these two commands are executed in two lines, no errors will be thrown. I am just wandering what is the difference? and more importantly, how to execute two commands in one line, with the effect exactly the same as by two lines...
bash
shell
command
null
null
07/20/2012 22:58:36
off topic
what's special with executing multiple commands in one line? === if one executes the following two commands in one line, as follows, > rm -rf dir ; cp dir2 dir it may complain that cp can not create directory ``dir/subdir``: File exists but if these two commands are executed in two lines, no errors will be thrown. I am just wandering what is the difference? and more importantly, how to execute two commands in one line, with the effect exactly the same as by two lines...
2
4,737,030
01/19/2011 15:23:17
340,046
05/13/2010 08:02:38
84
10
Switch between 2 interfaces
Say i have a main menu in blackberry application. I want to access different screens when i enter the menu items and need to come back to the main menu. How can i do it? Heres what i did but i caught up with a runtime exception when press back button `package com.stockmarket1;` import net.rim.device.api.system.Bitmap; import net.rim.device.api.ui.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.decor.*; import net.rim.blackberry.api.push.PushApplication; public class StockMarket extends UiApplication implements FieldChangeListener { public Screen _clientList; public Screen _comments; public Runnable _popRunnable; public static void main(String[] args) { StockMarket theApp = new StockMarket(); theApp.enterEventDispatcher(); } public StockMarket() { //Code for MainScreen final MainScreen baseScreen = new MainScreen(); baseScreen.setTitle("Colombo Stock Exchange"); ButtonField clientList = new ButtonField("View Client List", ButtonField.CONSUME_CLICK); clientList.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) { pushScreen(_clientList); } }); ButtonField comments= new ButtonField("View Comments", ButtonField.CONSUME_CLICK); comments.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) { pushScreen(_comments); } }); Bitmap bitmap = Bitmap.getBitmapResource("logo1.png"); BitmapField logo = new BitmapField(bitmap, BitmapField.FIELD_HCENTER); LabelField newLine = new LabelField("\n"); baseScreen.add(logo); baseScreen.add(newLine); baseScreen.add(clientList); baseScreen.add(comments); //Code for _comments _comments = new FullScreen(); _comments.setBackground(BackgroundFactory.createSolidBackground(Color.LIGHTCYAN)); LabelField title = new LabelField("Comments",LabelField.FIELD_HCENTER); LabelField comment = new LabelField("Type"); RichTextField rtfComment = new RichTextField(); _comments.add(title); _comments.add(comment); _comments.add(rtfComment); //Code for _clientList _clientList = new FullScreen(); _clientList.setBackground(BackgroundFactory.createSolidBackground(Color.LIGHTBLUE)); LabelField clientTitle = new LabelField("Listed Companies\n\n", LabelField.FIELD_HCENTER); LabelField line = new LabelField("__", LabelField.USE_ALL_HEIGHT); ButtonField closeClient = new ButtonField("Close", ButtonField.CONSUME_CLICK); closeClient.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) { pushScreen(baseScreen); } }); _clientList.add(clientTitle); _clientList.add(line); //Events pushScreen(baseScreen); } public void fieldChanged(Field field, int context) { // TODO Auto-generated method stub } }
user-interface
blackberry
java-me
mobile
null
null
open
Switch between 2 interfaces === Say i have a main menu in blackberry application. I want to access different screens when i enter the menu items and need to come back to the main menu. How can i do it? Heres what i did but i caught up with a runtime exception when press back button `package com.stockmarket1;` import net.rim.device.api.system.Bitmap; import net.rim.device.api.ui.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.decor.*; import net.rim.blackberry.api.push.PushApplication; public class StockMarket extends UiApplication implements FieldChangeListener { public Screen _clientList; public Screen _comments; public Runnable _popRunnable; public static void main(String[] args) { StockMarket theApp = new StockMarket(); theApp.enterEventDispatcher(); } public StockMarket() { //Code for MainScreen final MainScreen baseScreen = new MainScreen(); baseScreen.setTitle("Colombo Stock Exchange"); ButtonField clientList = new ButtonField("View Client List", ButtonField.CONSUME_CLICK); clientList.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) { pushScreen(_clientList); } }); ButtonField comments= new ButtonField("View Comments", ButtonField.CONSUME_CLICK); comments.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) { pushScreen(_comments); } }); Bitmap bitmap = Bitmap.getBitmapResource("logo1.png"); BitmapField logo = new BitmapField(bitmap, BitmapField.FIELD_HCENTER); LabelField newLine = new LabelField("\n"); baseScreen.add(logo); baseScreen.add(newLine); baseScreen.add(clientList); baseScreen.add(comments); //Code for _comments _comments = new FullScreen(); _comments.setBackground(BackgroundFactory.createSolidBackground(Color.LIGHTCYAN)); LabelField title = new LabelField("Comments",LabelField.FIELD_HCENTER); LabelField comment = new LabelField("Type"); RichTextField rtfComment = new RichTextField(); _comments.add(title); _comments.add(comment); _comments.add(rtfComment); //Code for _clientList _clientList = new FullScreen(); _clientList.setBackground(BackgroundFactory.createSolidBackground(Color.LIGHTBLUE)); LabelField clientTitle = new LabelField("Listed Companies\n\n", LabelField.FIELD_HCENTER); LabelField line = new LabelField("__", LabelField.USE_ALL_HEIGHT); ButtonField closeClient = new ButtonField("Close", ButtonField.CONSUME_CLICK); closeClient.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) { pushScreen(baseScreen); } }); _clientList.add(clientTitle); _clientList.add(line); //Events pushScreen(baseScreen); } public void fieldChanged(Field field, int context) { // TODO Auto-generated method stub } }
0
9,118,946
02/02/2012 19:49:19
1,168,968
01/25/2012 10:30:51
13
2
How to install android application on windows
Hi just downloaded an android application from a website (with .apk extension). Is there any way we can use it on windows O.S.?
android
null
null
null
null
02/02/2012 19:55:33
off topic
How to install android application on windows === Hi just downloaded an android application from a website (with .apk extension). Is there any way we can use it on windows O.S.?
2