PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
4,214,436
11/18/2010 11:53:17
166,452
09/01/2009 08:02:20
606
39
How to execute unit tests with the debugger in mixed mode? (VS2008)
I'm fixing some unit tests and I need to debug them. The callstack is mixed (there are managed and unmanaged DLLs) so I need the debugger to be in mixed mode. As far as I've seen if you start a native unit text the debugger is in native mode and if you start a managed UT the debugger is managed. Is there a way to set it up in mixed mode? Thanks in advance mates.
visual-studio-2008
unit-testing
debugging
mixed-mode
null
null
open
How to execute unit tests with the debugger in mixed mode? (VS2008) === I'm fixing some unit tests and I need to debug them. The callstack is mixed (there are managed and unmanaged DLLs) so I need the debugger to be in mixed mode. As far as I've seen if you start a native unit text the debugger is in native mode and if you start a managed UT the debugger is managed. Is there a way to set it up in mixed mode? Thanks in advance mates.
0
1,501,922
10/01/2009 04:45:11
62,237
02/04/2009 03:28:10
979
47
Changing Class during construction
Is there a way to modify the class being constructed in a constructor? public class A { A() { //if (condition) return object of type B //else return A itself } } public class B extends A { } Basically I want to use the base class constructor as a factory method. Is it possible in java?
java
factory
null
null
null
null
open
Changing Class during construction === Is there a way to modify the class being constructed in a constructor? public class A { A() { //if (condition) return object of type B //else return A itself } } public class B extends A { } Basically I want to use the base class constructor as a factory method. Is it possible in java?
0
3,405,248
08/04/2010 11:58:10
362,664
06/09/2010 16:29:06
6
0
extjs: nested baseParams in request
In the frame of an Ajax request, I am trying to use a **nested** object for parameter "baseParams". Basically, I would like to produce an URL like "ajax.php?**foo[controller]=demo&foo[action]=index**". Bellow is the code that wrongly produces: "ajax.php?**foo=[object]&foo=[object]**". <pre> Ext.data.JsonStore( baseParams: { foo: { controller: 'demo', action: 'index' } }, proxy: new Ext.data.HttpProxy({ method: 'GET', url: '/ajax.php' }), (...) ); </pre> Of course, I could write something like bellow but I was looking for a more nifty solution. <pre> Ext.data.JsonStore( proxy: new Ext.data.HttpProxy({ method: 'GET', url: '/ajax.php?foo[controller]=demo&foo[action]=index' }), (...) ); </pre> After few attempts, I wonder if it is really possible. But maybe I missed something. Can you help?
ajax
extjs
null
null
null
null
open
extjs: nested baseParams in request === In the frame of an Ajax request, I am trying to use a **nested** object for parameter "baseParams". Basically, I would like to produce an URL like "ajax.php?**foo[controller]=demo&foo[action]=index**". Bellow is the code that wrongly produces: "ajax.php?**foo=[object]&foo=[object]**". <pre> Ext.data.JsonStore( baseParams: { foo: { controller: 'demo', action: 'index' } }, proxy: new Ext.data.HttpProxy({ method: 'GET', url: '/ajax.php' }), (...) ); </pre> Of course, I could write something like bellow but I was looking for a more nifty solution. <pre> Ext.data.JsonStore( proxy: new Ext.data.HttpProxy({ method: 'GET', url: '/ajax.php?foo[controller]=demo&foo[action]=index' }), (...) ); </pre> After few attempts, I wonder if it is really possible. But maybe I missed something. Can you help?
0
10,119,073
04/12/2012 07:14:11
828,896
07/05/2011 02:13:21
49
0
How can I keep space, tab, CR and LF?
The string s include space, tab, CR and LF, alert(s) can render format correctly, but $("#mydiv").text(s) lost CR and LF, I hope $("#mydiv").text(s) can render format correctly, how can I do ? Thanks! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="Js/jquery-1.7.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $("#Button1").bind("click", function () { alert(s); $("#mydiv").text(s); }); }); </script> </head> <body> <p> <input id="Button1" type="button" value="button" /></p> <div id="mydiv"> </div> </body> </html>
jquery
null
null
null
null
null
open
How can I keep space, tab, CR and LF? === The string s include space, tab, CR and LF, alert(s) can render format correctly, but $("#mydiv").text(s) lost CR and LF, I hope $("#mydiv").text(s) can render format correctly, how can I do ? Thanks! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="Js/jquery-1.7.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $("#Button1").bind("click", function () { alert(s); $("#mydiv").text(s); }); }); </script> </head> <body> <p> <input id="Button1" type="button" value="button" /></p> <div id="mydiv"> </div> </body> </html>
0
10,414,164
05/02/2012 12:52:06
807,566
06/21/2011 00:17:21
604
28
How To Make a "Corrupt" File
Suppose, during testing, you wish to test how the software handles a "corrupt" file. I have two questions: **1. In general, how do you define a "corrupt" file? In other words, what constitutes a corrupt file?** As an example: Suppose you need to test a "corrupt" .pdf file. One suggestion is to simply take a .zip file, change the extension, and test with that. However, I would argue that you are not testing how the program handles a "corrupt .pdf file," but rather, how it handles a .zip file. Another suggestion is to open the file and insert/delete random bytes. This suggestion is okay, but there are a few problems: - It is possible (albeit unlikely) that the sections which are modified or removed are inconsequential. For example, you may simply delete a section of a huge string, which would modify the data, but not necessarily corrupt the file. - It is possible that the file can be modified in such a way that the program will refuse to read the file. For example, if the .pdf header is deleted, then maybe the API (or whatever you are using) won't get past that point and the file cannot be tested at all. - Similar to the first bullet: If the file is modified dramatically enough, then there is an argument that the resulting file is no longer the same format as the original. So, again, if you were to delete the .pdf header, then maybe that file is no longer a .pdf file. So attempting to test it does not test a corrupt .pdf file, but instead tests some odd variation of a .pdf file. **2. Once a corrupt file is defined, how do you go about creating one?** ------- Here is what I have been thinking so far: A "corrupt file" is a file that correctly meets the specifications of the file format, but which contains data/bytes that are inherently flawed. The only example I could think of was if you changed the encoding of the file somehow. You could then possibly apply this method to files of arbitrary format. Thanks for reading.
unit-testing
testing
functional-testing
null
null
05/03/2012 08:08:10
not constructive
How To Make a "Corrupt" File === Suppose, during testing, you wish to test how the software handles a "corrupt" file. I have two questions: **1. In general, how do you define a "corrupt" file? In other words, what constitutes a corrupt file?** As an example: Suppose you need to test a "corrupt" .pdf file. One suggestion is to simply take a .zip file, change the extension, and test with that. However, I would argue that you are not testing how the program handles a "corrupt .pdf file," but rather, how it handles a .zip file. Another suggestion is to open the file and insert/delete random bytes. This suggestion is okay, but there are a few problems: - It is possible (albeit unlikely) that the sections which are modified or removed are inconsequential. For example, you may simply delete a section of a huge string, which would modify the data, but not necessarily corrupt the file. - It is possible that the file can be modified in such a way that the program will refuse to read the file. For example, if the .pdf header is deleted, then maybe the API (or whatever you are using) won't get past that point and the file cannot be tested at all. - Similar to the first bullet: If the file is modified dramatically enough, then there is an argument that the resulting file is no longer the same format as the original. So, again, if you were to delete the .pdf header, then maybe that file is no longer a .pdf file. So attempting to test it does not test a corrupt .pdf file, but instead tests some odd variation of a .pdf file. **2. Once a corrupt file is defined, how do you go about creating one?** ------- Here is what I have been thinking so far: A "corrupt file" is a file that correctly meets the specifications of the file format, but which contains data/bytes that are inherently flawed. The only example I could think of was if you changed the encoding of the file somehow. You could then possibly apply this method to files of arbitrary format. Thanks for reading.
4
1,528,206
10/06/2009 21:28:33
185,222
10/06/2009 20:23:16
1
1
How to load themes from a database in Spring MVC based on user-agent , etc
I am brand new to Spring web MVC. I am trying to create a simple 1 paged site that will check the users browser and display the current theme for that browser. If its a mobile app, I need to allow the user a button to switch to the regular site. Also the current theme for mobile and non-mobile is stored in a database, which includes the start date, end date and the theme name. The theme name is the folder where the theme's resources are located. Being a beginner I have never used themeresolver. Your help is much appreciated.
spring-mvc
java
java-ee
themes
spring
null
open
How to load themes from a database in Spring MVC based on user-agent , etc === I am brand new to Spring web MVC. I am trying to create a simple 1 paged site that will check the users browser and display the current theme for that browser. If its a mobile app, I need to allow the user a button to switch to the regular site. Also the current theme for mobile and non-mobile is stored in a database, which includes the start date, end date and the theme name. The theme name is the folder where the theme's resources are located. Being a beginner I have never used themeresolver. Your help is much appreciated.
0
765,264
04/19/2009 11:30:58
74,089
03/05/2009 05:43:34
145
11
Developing API: balance between new features and back compatibility
I'm working now on <b>API for developers</b> feature of our product. The first version was released and it has small number of users at the moment. Since I started to develop its second version, some parts was reworked, some parts was removed to make API more elegant and clear. But 2nd version deployment can be a pain for old version users. Our marketing department are planning to enhance our API product a lot, add more features to it. How should I build the system, so <b>1)</b> we wouldn't constrained by the "old version" to add new interesting features <b>2)</b> current API users won't be dissatisfied because of he need to rework their systems with in order with changing API Or API products have to be in sandbox for quite a long period of time until public release, so there wouldn't be any significant modifications in specification?
api
specifications
compatibility
project-planning
null
null
open
Developing API: balance between new features and back compatibility === I'm working now on <b>API for developers</b> feature of our product. The first version was released and it has small number of users at the moment. Since I started to develop its second version, some parts was reworked, some parts was removed to make API more elegant and clear. But 2nd version deployment can be a pain for old version users. Our marketing department are planning to enhance our API product a lot, add more features to it. How should I build the system, so <b>1)</b> we wouldn't constrained by the "old version" to add new interesting features <b>2)</b> current API users won't be dissatisfied because of he need to rework their systems with in order with changing API Or API products have to be in sandbox for quite a long period of time until public release, so there wouldn't be any significant modifications in specification?
0
6,066,989
05/20/2011 02:51:32
762,065
05/20/2011 02:51:32
1
0
Search a list of terms from this website, and nostop even any one of the terms are missing.
I am trying to use RCurl package to get data from the genecard databases http://www-bimas.cit.nih.gov/cards// I read a wonderful solution in a previous posted questions: http://stackoverflow.com/questions/2443127/how-can-i-use-r-rcurl-xml-packages-to-scrape-this-webpage However, my problem is different in a form that I need further supports from experist. Instead of exctracting all the links from the webpages. I have a list of ~ 1000 genes in my mind. They are in the form of gene symbols (some of the gene symbols can be found in the webpage, some of them are new to the database). Here is part of my lists of genes. TP53 SOD1 EGFR C2d AKT2 NFKB1 C2d is not in the database, so, when I do the search manually I will see. "Sorry, there is no GeneCard for C2d". When I use to the solution posted in the previous questions for my analysis. http://stackoverflow.com/questions/2443127/how-can-i-use-r-rcurl-xml-packages-to-scrape-this-webpage (1) I firstly readin the list (2) I then use the get_structs function in the previous solution to subsitute each gene sybmols in the list to the following website http://www-bimas.cit.nih.gov/cgi-bin/cards/carddisp.pl?gene=genesybol. (3) Scrap the information that I needed for each genes in the list, using the get_data_url function in the previous message. It works for the TP53, SOD1, EGFR, but when the search comes to C2d. The process stopped. As I got ~ 1000 genes, I am sure some of them are missing from the webpage. How can I get a modified gene list to tell me out of ~1000 genes, which one of them are missing automatically? So, that I can use the same approach as listed in the previous question to get all the data that I needed based on the new gene lists that are EXISTING in webpage? Or are there any methods to ask the R to skip those missing items and do the scrapping continuously till the end of the list but mark those missing items in the final results. In order to faciliate the discussion process. I have make a sudo input files using the scripts using in the previous questions for the same webpage that they used. u <- c ("Aero_pern", "Ppate", "didnotexist", "Sbico") library(RCurl) base_url<-"http://gtrnadb.ucsc.edu/" base_html<-getURLContent(base_url)[[1]] links<-strsplit(base_html,"a href=")[[1]] get_structs<-function(u) { struct_url<-paste(base_url,u,"/",u,"-structs.html",sep="") raw_data<-getURLContent(struct_url) s_split1<-strsplit(raw_data,"<PRE>")[[1]] all_data<-s_split1[seq(3,length(s_split1))] data_list<-lapply(all_data,parse_genomes) for (d in 1:length(data_list)) {data_list[[d]]<-append(data_list[[d]],u)} return(data_list) } I guess the problem can be solved by modifing the get_structs scripps above or ifelse function may help, but I cannot figure out how to modify it further. Pls comments.
list
r
null
null
null
null
open
Search a list of terms from this website, and nostop even any one of the terms are missing. === I am trying to use RCurl package to get data from the genecard databases http://www-bimas.cit.nih.gov/cards// I read a wonderful solution in a previous posted questions: http://stackoverflow.com/questions/2443127/how-can-i-use-r-rcurl-xml-packages-to-scrape-this-webpage However, my problem is different in a form that I need further supports from experist. Instead of exctracting all the links from the webpages. I have a list of ~ 1000 genes in my mind. They are in the form of gene symbols (some of the gene symbols can be found in the webpage, some of them are new to the database). Here is part of my lists of genes. TP53 SOD1 EGFR C2d AKT2 NFKB1 C2d is not in the database, so, when I do the search manually I will see. "Sorry, there is no GeneCard for C2d". When I use to the solution posted in the previous questions for my analysis. http://stackoverflow.com/questions/2443127/how-can-i-use-r-rcurl-xml-packages-to-scrape-this-webpage (1) I firstly readin the list (2) I then use the get_structs function in the previous solution to subsitute each gene sybmols in the list to the following website http://www-bimas.cit.nih.gov/cgi-bin/cards/carddisp.pl?gene=genesybol. (3) Scrap the information that I needed for each genes in the list, using the get_data_url function in the previous message. It works for the TP53, SOD1, EGFR, but when the search comes to C2d. The process stopped. As I got ~ 1000 genes, I am sure some of them are missing from the webpage. How can I get a modified gene list to tell me out of ~1000 genes, which one of them are missing automatically? So, that I can use the same approach as listed in the previous question to get all the data that I needed based on the new gene lists that are EXISTING in webpage? Or are there any methods to ask the R to skip those missing items and do the scrapping continuously till the end of the list but mark those missing items in the final results. In order to faciliate the discussion process. I have make a sudo input files using the scripts using in the previous questions for the same webpage that they used. u <- c ("Aero_pern", "Ppate", "didnotexist", "Sbico") library(RCurl) base_url<-"http://gtrnadb.ucsc.edu/" base_html<-getURLContent(base_url)[[1]] links<-strsplit(base_html,"a href=")[[1]] get_structs<-function(u) { struct_url<-paste(base_url,u,"/",u,"-structs.html",sep="") raw_data<-getURLContent(struct_url) s_split1<-strsplit(raw_data,"<PRE>")[[1]] all_data<-s_split1[seq(3,length(s_split1))] data_list<-lapply(all_data,parse_genomes) for (d in 1:length(data_list)) {data_list[[d]]<-append(data_list[[d]],u)} return(data_list) } I guess the problem can be solved by modifing the get_structs scripps above or ifelse function may help, but I cannot figure out how to modify it further. Pls comments.
0
9,434,709
02/24/2012 16:50:45
1,123,924
12/31/2011 03:55:47
32
0
installing Moodle on Ubuntu
I have installed Moodle on Ubuntu 11.10 from Synaptic Package manager, and had set the moodle site URL to http://localhost/moodle when prompted. I have an Apache server running on my computer, and I use PhpMyAdmin to do most of the database management work. However, after Moodle has installed I cannot find the Moodle folder in the web root folder of my server which is `/var/www/` Hence I have no idea what to do with Moodle, now that I've installed it. Please help.
apache
ubuntu
lamp
moodle
null
02/24/2012 17:03:45
off topic
installing Moodle on Ubuntu === I have installed Moodle on Ubuntu 11.10 from Synaptic Package manager, and had set the moodle site URL to http://localhost/moodle when prompted. I have an Apache server running on my computer, and I use PhpMyAdmin to do most of the database management work. However, after Moodle has installed I cannot find the Moodle folder in the web root folder of my server which is `/var/www/` Hence I have no idea what to do with Moodle, now that I've installed it. Please help.
2
4,637,983
01/09/2011 06:29:51
568,595
01/09/2011 06:21:31
1
0
How to read JSON array with @ # tags in data using jQuery,
{ "locenter": [ { "loname": { "@empid": "1001", "#text": "FE1" }, "centers": [ { "@id": "0000100001", "#text": "dcgiDal" } ] }, { "loname": { "@empid": "1002", "#text": "FE2" }, "centers": [ { "@id": "0000300006", "#text": "dcgiDah" }, { "@id": "0000100006", "#text": "dcgiDau" } ] } ] }
jquery
json
null
null
null
null
open
How to read JSON array with @ # tags in data using jQuery, === { "locenter": [ { "loname": { "@empid": "1001", "#text": "FE1" }, "centers": [ { "@id": "0000100001", "#text": "dcgiDal" } ] }, { "loname": { "@empid": "1002", "#text": "FE2" }, "centers": [ { "@id": "0000300006", "#text": "dcgiDah" }, { "@id": "0000100006", "#text": "dcgiDau" } ] } ] }
0
11,274,042
06/30/2012 12:23:01
339,167
05/12/2010 09:49:09
402
27
Running apps side by side on a dual monitor setup (on Windows 8 RC)
How can I run IE on one monitor and Media player app on the other monitor side by side, I do not want the app to snap (that app should maximize). Somehow when I context select one app the other app pauses.
windows
windows-8
null
null
null
07/04/2012 22:33:03
off topic
Running apps side by side on a dual monitor setup (on Windows 8 RC) === How can I run IE on one monitor and Media player app on the other monitor side by side, I do not want the app to snap (that app should maximize). Somehow when I context select one app the other app pauses.
2
4,109,883
11/05/2010 20:40:02
177,389
09/22/2009 20:17:16
498
6
Besides time/experience, what core knowledge set distinguishes a Sr Web Dev from a regular one?
I'm trying to advance to the next level of my career as a web developer, and I know a little about a lot in terms of web technology, but maybe not enough. I've been digging deeper into the workings of javascript, understanding the http protocol and jumping on to the html 5 bandwagon where should I be focusing my efforts in terms of knowledge base?
senior-developer
null
null
null
null
01/29/2012 02:26:22
not constructive
Besides time/experience, what core knowledge set distinguishes a Sr Web Dev from a regular one? === I'm trying to advance to the next level of my career as a web developer, and I know a little about a lot in terms of web technology, but maybe not enough. I've been digging deeper into the workings of javascript, understanding the http protocol and jumping on to the html 5 bandwagon where should I be focusing my efforts in terms of knowledge base?
4
10,413,017
05/02/2012 11:41:59
1,192,686
02/06/2012 16:04:21
27
0
Android play music in a random amount of time
Now I can play a music in android. But I want to play this sound in a random amount of time between 2 to 8 seconds.How Can I randomly play it that for example the first time, it plays for 2 seconds, the next time 7 sec and so on? Can anybody help me?
android
null
null
null
null
null
open
Android play music in a random amount of time === Now I can play a music in android. But I want to play this sound in a random amount of time between 2 to 8 seconds.How Can I randomly play it that for example the first time, it plays for 2 seconds, the next time 7 sec and so on? Can anybody help me?
0
5,350,672
03/18/2011 10:27:25
208,809
11/11/2009 16:11:22
52,583
1,876
Pros and Cons of Interface constants
PHP interfaces allow the definition of constants in an interface, e.g. interface FooBar { const FOO = 1; const BAR = 2; } echo FooBar::FOO; // 1 Any implementing class will automatically have these constants available, e.g. class MyFooBar implement FooBar { } echo MyFooBar::FOO; // 1 My own take on this is [that anything Global is Evil][1]. But I wonder if the same applies to Interface Constants. Given that *Coding against an Interface* is considered good practise in general, is using Interface Constants the only constants that are acceptable to use outside a class context? While I am curious to hear your personal opinion and whether you use Interface constants or not, I'm mainly looking for objective reasons in your answers. I dont want this to be a Poll Type question. I'm interested in what effect using interface constants has on Maintainability. Coupling. Or Unit Testing. How does it relate to [SOLID][2] PHP? Does it violate any coding principles that are considered Good Practise in PHP? You get the idea … **Note:** *there is a [similar question for Java](http://stackoverflow.com/questions/4566184/pros-and-cons-of-constants-in-interfaces-in-java) that already lists quite good reasons why they are Bad Practise, but since Java isn't PHP, I felt it justified to ask it within the PHP tag again.* [1]: http://stackoverflow.com/questions/5166087/php-global-in-functions/5166527#5166527 [2]: https://secure.wikimedia.org/wikipedia/en/wiki/Solid_%28object-oriented_design%29
php
interface
software-engineering
constants
null
null
open
Pros and Cons of Interface constants === PHP interfaces allow the definition of constants in an interface, e.g. interface FooBar { const FOO = 1; const BAR = 2; } echo FooBar::FOO; // 1 Any implementing class will automatically have these constants available, e.g. class MyFooBar implement FooBar { } echo MyFooBar::FOO; // 1 My own take on this is [that anything Global is Evil][1]. But I wonder if the same applies to Interface Constants. Given that *Coding against an Interface* is considered good practise in general, is using Interface Constants the only constants that are acceptable to use outside a class context? While I am curious to hear your personal opinion and whether you use Interface constants or not, I'm mainly looking for objective reasons in your answers. I dont want this to be a Poll Type question. I'm interested in what effect using interface constants has on Maintainability. Coupling. Or Unit Testing. How does it relate to [SOLID][2] PHP? Does it violate any coding principles that are considered Good Practise in PHP? You get the idea … **Note:** *there is a [similar question for Java](http://stackoverflow.com/questions/4566184/pros-and-cons-of-constants-in-interfaces-in-java) that already lists quite good reasons why they are Bad Practise, but since Java isn't PHP, I felt it justified to ask it within the PHP tag again.* [1]: http://stackoverflow.com/questions/5166087/php-global-in-functions/5166527#5166527 [2]: https://secure.wikimedia.org/wikipedia/en/wiki/Solid_%28object-oriented_design%29
0
10,023,824
04/05/2012 06:44:19
1,309,156
04/02/2012 22:26:20
1
0
OnInfoListener never fires. Ever
I'm currently trying to write a simple audio player that streams a URL until the user quits. Nothing fancy really, but I'm trying to use the onInfo method of MediaPlayer to wait for the metadata update flag. I have the following code for creating the media player object. /** * Creates a new media player and attempts to prepare it. */ private void createPlayer(){ Log.v(TAG, "Now in createPlayer()"); if(mPlayer==null){ Log.i(TAG, "No existing media player found, creating."); mPlayer=new MediaPlayer(); mPlayer.setOnErrorListener(this); mPlayer.setOnInfoListener(new OnInfoListener() { public boolean onInfo(MediaPlayer mp, int what, int extra) { Log.w(TAG,"---Got some info!---"); return false; } }); mPlayer.setOnPreparedListener(this); mPlayer.setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK); mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); } else { Log.i(TAG, "Found an existing media player. Doing nothing."); } try{ mPlayer.setDataSource(mStreamUri); mPlayer.prepareAsync(); Log.i(TAG, "Just sent the media player a prepareAsync()"); }catch(Exception e){ Log.e(TAG,"Caught exception while trying to set up media player."); } } I have yet to see onError fire, but I also have yet to actually get any errors because of the simplicity of my app, but of course onPrepare works fine. I've tried implementing it with the class, as well as an inline method like the above code but nothing happens.
android
android-mediaplayer
null
null
null
null
open
OnInfoListener never fires. Ever === I'm currently trying to write a simple audio player that streams a URL until the user quits. Nothing fancy really, but I'm trying to use the onInfo method of MediaPlayer to wait for the metadata update flag. I have the following code for creating the media player object. /** * Creates a new media player and attempts to prepare it. */ private void createPlayer(){ Log.v(TAG, "Now in createPlayer()"); if(mPlayer==null){ Log.i(TAG, "No existing media player found, creating."); mPlayer=new MediaPlayer(); mPlayer.setOnErrorListener(this); mPlayer.setOnInfoListener(new OnInfoListener() { public boolean onInfo(MediaPlayer mp, int what, int extra) { Log.w(TAG,"---Got some info!---"); return false; } }); mPlayer.setOnPreparedListener(this); mPlayer.setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK); mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); } else { Log.i(TAG, "Found an existing media player. Doing nothing."); } try{ mPlayer.setDataSource(mStreamUri); mPlayer.prepareAsync(); Log.i(TAG, "Just sent the media player a prepareAsync()"); }catch(Exception e){ Log.e(TAG,"Caught exception while trying to set up media player."); } } I have yet to see onError fire, but I also have yet to actually get any errors because of the simplicity of my app, but of course onPrepare works fine. I've tried implementing it with the class, as well as an inline method like the above code but nothing happens.
0
6,595,915
07/06/2011 11:54:01
645,380
03/04/2011 20:26:16
23
3
Again can not get same result in c#
I ams still experiencing some problems with ActionScript 3 and flash and I think it is because of variable scopes what I am trying to do is to make this code iterate exactly same number of times as flash does but the problem is again variable scopes here so please if you have time could you help me with converting it to c#? do { kaartspel_codes.sort(function():int { return 2 * Math.floor(Math.random()) ? -1 : 1 } ); kaart_series = new Array(); //trace(kaartspel_codes); var kaarten_in_series_leggen:int = 28; var max_kaarten_per_serie:int = 5; trace(kaarten_in_series_leggen); for(i=0; i<52; i++ ) { var k:int = kaartspel_codes[i]; if(kaarten_in_series_leggen > 0 ) { for(j=0; j<kaart_series.length; j++) { if( kaart_series[j].length - 1 < max_kaarten_per_serie ) { if(kaart_kan_op_kaart( k , kaart_series[j][kaart_series[j].length-1] )) { //trace( k + " kan op " + kaart_series[j][kaart_series[j].length - 1] ); break; } } else j = 8000; }; } else j=8000; if( j < kaart_series.length) { //trace(k + " opt " + j); kaart_series[j][kaart_series[j].length] = k; kaarten_in_series_leggen--; } else { j=kaart_series.length; kaart_series[j] = new Array(); kaart_series[j][kaart_series[j].length] = k; }; } } while ( kaarten_in_series_leggen > 0 )
c#
actionscript-3
implementation
null
null
07/06/2011 15:13:15
too localized
Again can not get same result in c# === I ams still experiencing some problems with ActionScript 3 and flash and I think it is because of variable scopes what I am trying to do is to make this code iterate exactly same number of times as flash does but the problem is again variable scopes here so please if you have time could you help me with converting it to c#? do { kaartspel_codes.sort(function():int { return 2 * Math.floor(Math.random()) ? -1 : 1 } ); kaart_series = new Array(); //trace(kaartspel_codes); var kaarten_in_series_leggen:int = 28; var max_kaarten_per_serie:int = 5; trace(kaarten_in_series_leggen); for(i=0; i<52; i++ ) { var k:int = kaartspel_codes[i]; if(kaarten_in_series_leggen > 0 ) { for(j=0; j<kaart_series.length; j++) { if( kaart_series[j].length - 1 < max_kaarten_per_serie ) { if(kaart_kan_op_kaart( k , kaart_series[j][kaart_series[j].length-1] )) { //trace( k + " kan op " + kaart_series[j][kaart_series[j].length - 1] ); break; } } else j = 8000; }; } else j=8000; if( j < kaart_series.length) { //trace(k + " opt " + j); kaart_series[j][kaart_series[j].length] = k; kaarten_in_series_leggen--; } else { j=kaart_series.length; kaart_series[j] = new Array(); kaart_series[j][kaart_series[j].length] = k; }; } } while ( kaarten_in_series_leggen > 0 )
3
3,664,484
09/08/2010 03:39:55
321,090
04/20/2010 08:25:33
146
2
NSMutableArray 'addObject:' Crashing iPhone App
This is my error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI addObject:]: unrecognized selector sent to instance I have no idea why this is happening. Both the array (which is NSMutableArray) and the object being added are definitely not nil, and the @property for the array is straight up (nonatomic, retain). Can anyone help?
iphone
objective-c
nsmutablearray
nsarray
null
null
open
NSMutableArray 'addObject:' Crashing iPhone App === This is my error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI addObject:]: unrecognized selector sent to instance I have no idea why this is happening. Both the array (which is NSMutableArray) and the object being added are definitely not nil, and the @property for the array is straight up (nonatomic, retain). Can anyone help?
0
1,935,118
12/20/2009 07:28:20
682,281
12/20/2009 07:28:20
1
0
Can any one know what is this...?
run: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at coop.AgencyDetails.AddToDatebase(AgencyDetails.java:442) at coop.AgencyDetails.addData(AgencyDetails.java:394) at coop.AgencyDetails.submitbtnActionPerformed(AgencyDetails.java:342) at coop.AgencyDetails.access$200(AgencyDetails.java:20) at coop.AgencyDetails$3.actionPerformed(AgencyDetails.java:238) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) I m gettin this error while saving the data in the database.The database is Openoffice base. , Thank you
java
null
null
null
null
02/07/2012 19:11:02
not a real question
Can any one know what is this...? === run: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at coop.AgencyDetails.AddToDatebase(AgencyDetails.java:442) at coop.AgencyDetails.addData(AgencyDetails.java:394) at coop.AgencyDetails.submitbtnActionPerformed(AgencyDetails.java:342) at coop.AgencyDetails.access$200(AgencyDetails.java:20) at coop.AgencyDetails$3.actionPerformed(AgencyDetails.java:238) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) I m gettin this error while saving the data in the database.The database is Openoffice base. , Thank you
1
2,957,697
06/02/2010 12:37:23
356,423
06/02/2010 12:30:04
1
0
Drupal - Hide a single page from search index
I've taken over an existing Drupal installation and have been asked to remove a single page from the site search results. I know about the lullabot tutorial through this question: http://stackoverflow.com/questions/1748837/hide-drupal-nodes-from-search, but that talks about excluding a class of content when I really just want to exclude a single page. I've tried manually deleting the node from the search_index table, but that didn't seem to work either. Any recommendations for excluding a single regular content page from the search index?
search
drupal
index
exclude
null
null
open
Drupal - Hide a single page from search index === I've taken over an existing Drupal installation and have been asked to remove a single page from the site search results. I know about the lullabot tutorial through this question: http://stackoverflow.com/questions/1748837/hide-drupal-nodes-from-search, but that talks about excluding a class of content when I really just want to exclude a single page. I've tried manually deleting the node from the search_index table, but that didn't seem to work either. Any recommendations for excluding a single regular content page from the search index?
0
2,324,477
02/24/2010 08:08:06
269,559
02/09/2010 14:52:24
35
5
Is Object Relational Mapper the holy Graal?
They seem complex and unnecessary. The applications I've built at work or home have never used any ORM and many of them haven't been even Object-oriented. Is it depenpable about size when they can be useful. How to determine how big a application should be when they be useful?
orm
null
null
null
null
02/24/2010 09:02:01
not constructive
Is Object Relational Mapper the holy Graal? === They seem complex and unnecessary. The applications I've built at work or home have never used any ORM and many of them haven't been even Object-oriented. Is it depenpable about size when they can be useful. How to determine how big a application should be when they be useful?
4
2,999,731
06/08/2010 17:31:30
220,511
11/28/2009 16:19:29
1
0
.NET C# Filestream writing to file and reading the bfile
I have a web service that checks a dictionary to see if a file exists and then if it does exist it reads the file, otherwise it saves to the file. This is from a web app. I wonder what is the best way to do this because I occasionally get a FileNotFoundException exception if the same file is accessed at the same time. Here's the relevant parts of the code: String signature; signature = "FILE," + value1 + "," + value2 + "," + value3 + "," + value4; // this is going to be the filename string result; MultipleRecordset mrSummary = new MultipleRecordset(); // MultipleRecordset is an object that retrieves data from a sql server database if (mrSummary.existsFile(signature)) { result = mrSummary.retrieveFile(signature); } else { result = mrSummary.getMultipleRecordsets(System.Configuration.ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString.ToString(), value1, value2, value3, value4); mrSummary.saveFile(signature, result); } Here's the code to see if the file already exists: private static Dictionary<String, bool> dict = new Dictionary<String, bool>(); public bool existsFile(string signature) { if (dict.ContainsKey(signature)) { return true; } else { return false; } } Here's what I use to retrieve if it already exists: try { byte[] buffer; FileStream fileStream = new FileStream(@System.Configuration.ConfigurationManager.AppSettings["CACHEPATH"] + filename, FileMode.Open, FileAccess.Read, FileShare.Read); try { int length = 0x8000; // get file length buffer = new byte[length]; // create buffer int count; // actual number of bytes read JSONstring = ""; while ((count = fileStream.Read(buffer, 0, length)) > 0) { JSONstring += System.Text.ASCIIEncoding.ASCII.GetString(buffer, 0, count); } } finally { fileStream.Close(); } } catch (Exception e) { JSONstring = "{\"error\":\"" + e.ToString() + "\"}"; } If the file doesn't previously exist it saves the JSON to the file: try { if (dict.ContainsKey(filename) == false) { dict.Add(filename, true); } else { this.retrieveFile(filename, ipaddress); } } catch { } try { TextWriter tw = new StreamWriter(@System.Configuration.ConfigurationManager.AppSettings["CACHEPATH"] + filename); tw.WriteLine(JSONstring); tw.Close(); } catch { } Here are the details to the exception I sometimes get from running the above code: System.IO.FileNotFoundException: Could not find file 'E:\inetpub\wwwroot\cache\FILE,36,36.25,14.5,14.75'. File name: 'E:\inetpub\wwwroot\cache\FILE,36,36.25,14.5,14.75' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at com.myname.business.MultipleRecordset.retrieveFile(String filename, String ipaddress)
c#
.net
filestream
null
null
null
open
.NET C# Filestream writing to file and reading the bfile === I have a web service that checks a dictionary to see if a file exists and then if it does exist it reads the file, otherwise it saves to the file. This is from a web app. I wonder what is the best way to do this because I occasionally get a FileNotFoundException exception if the same file is accessed at the same time. Here's the relevant parts of the code: String signature; signature = "FILE," + value1 + "," + value2 + "," + value3 + "," + value4; // this is going to be the filename string result; MultipleRecordset mrSummary = new MultipleRecordset(); // MultipleRecordset is an object that retrieves data from a sql server database if (mrSummary.existsFile(signature)) { result = mrSummary.retrieveFile(signature); } else { result = mrSummary.getMultipleRecordsets(System.Configuration.ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString.ToString(), value1, value2, value3, value4); mrSummary.saveFile(signature, result); } Here's the code to see if the file already exists: private static Dictionary<String, bool> dict = new Dictionary<String, bool>(); public bool existsFile(string signature) { if (dict.ContainsKey(signature)) { return true; } else { return false; } } Here's what I use to retrieve if it already exists: try { byte[] buffer; FileStream fileStream = new FileStream(@System.Configuration.ConfigurationManager.AppSettings["CACHEPATH"] + filename, FileMode.Open, FileAccess.Read, FileShare.Read); try { int length = 0x8000; // get file length buffer = new byte[length]; // create buffer int count; // actual number of bytes read JSONstring = ""; while ((count = fileStream.Read(buffer, 0, length)) > 0) { JSONstring += System.Text.ASCIIEncoding.ASCII.GetString(buffer, 0, count); } } finally { fileStream.Close(); } } catch (Exception e) { JSONstring = "{\"error\":\"" + e.ToString() + "\"}"; } If the file doesn't previously exist it saves the JSON to the file: try { if (dict.ContainsKey(filename) == false) { dict.Add(filename, true); } else { this.retrieveFile(filename, ipaddress); } } catch { } try { TextWriter tw = new StreamWriter(@System.Configuration.ConfigurationManager.AppSettings["CACHEPATH"] + filename); tw.WriteLine(JSONstring); tw.Close(); } catch { } Here are the details to the exception I sometimes get from running the above code: System.IO.FileNotFoundException: Could not find file 'E:\inetpub\wwwroot\cache\FILE,36,36.25,14.5,14.75'. File name: 'E:\inetpub\wwwroot\cache\FILE,36,36.25,14.5,14.75' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at com.myname.business.MultipleRecordset.retrieveFile(String filename, String ipaddress)
0
41,479
09/03/2008 11:29:57
3,394
08/28/2008 12:35:39
1,191
67
Use of var keyword in C#
After discussion with colleagues regarding the use of the 'var' keyword in C# 3 I wondered what people's opinions were on the appropriate uses of type inference via var? For example I rather lazily used var in questionable circumstances, e.g.:- foreach(var item in someList) { // ... } // Type of 'item' not clear. var something = someObject.SomeProperty; // Type of 'something' not clear. var something = someMethod(); // Type of 'something' not clear. More legitimate uses of var are as follows:- var l = new List<string>(); // Obvious what l will be. var s = new SomeClass(); // Obvious what s will be. Interestingly LINQ seems to be a bit of a grey area, e.g.:- var results = from r in dataContext.SomeTable select r; // Not *entirely clear* what results will be here. It's clear what results will be in that it will be a type which implements IEnumerable<RowType>, however it isn't entirely obvious in the same way a var declaring a new object is. It's even worse when it comes to LINQ to objects, e.g.:- var results = from item in someList where item != 3 select item; This is no better than the equivilent foreach(var item in someList) { // ... } equivilent. There is a real concern about type safety here - for example if we were to place the results of that query into an overloaded method that accepted IEnumerable&lt;int&gt; and IEnumerable&lt;double&gt; the caller might inadvertently pass in the wrong type.
var
type-inference
c#
.net
null
01/09/2012 15:21:20
not constructive
Use of var keyword in C# === After discussion with colleagues regarding the use of the 'var' keyword in C# 3 I wondered what people's opinions were on the appropriate uses of type inference via var? For example I rather lazily used var in questionable circumstances, e.g.:- foreach(var item in someList) { // ... } // Type of 'item' not clear. var something = someObject.SomeProperty; // Type of 'something' not clear. var something = someMethod(); // Type of 'something' not clear. More legitimate uses of var are as follows:- var l = new List<string>(); // Obvious what l will be. var s = new SomeClass(); // Obvious what s will be. Interestingly LINQ seems to be a bit of a grey area, e.g.:- var results = from r in dataContext.SomeTable select r; // Not *entirely clear* what results will be here. It's clear what results will be in that it will be a type which implements IEnumerable<RowType>, however it isn't entirely obvious in the same way a var declaring a new object is. It's even worse when it comes to LINQ to objects, e.g.:- var results = from item in someList where item != 3 select item; This is no better than the equivilent foreach(var item in someList) { // ... } equivilent. There is a real concern about type safety here - for example if we were to place the results of that query into an overloaded method that accepted IEnumerable&lt;int&gt; and IEnumerable&lt;double&gt; the caller might inadvertently pass in the wrong type.
4
6,839,227
07/27/2011 03:42:02
834,721
07/08/2011 04:17:35
19
0
Hiding fields from view if table is empty and validating if not empty
Here is the scenario I am trying to work out a way to render specific data into a view based on additional user input. (I only want the specific <dt> and corresponding <dd> tags to render if there has been additional input received from the user) And if the user has added more info, how would I go about validating the data? I thought about doing it simply based on if [education1] is not empty validate the corresponding [awarded1] and [graduation1] but for the life of me I cannot find a simple solution. Thanks for your help in advance! Here is the view (pretty standard baked view): <dl><?php $i = 0; $class = ' class="altrow"';?> <h3 id="viewf">Education</h3> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('University'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['education1']; ?> &nbsp; </dd> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Certification/Degree Awarded'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['awarded1']; ?> &nbsp; </dd> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Year of Graduation'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php if (!empty($user['User']['graduation1'])) { echo $user['User']['graduation1'];} ?> &nbsp; </dd> <br /> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('University'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['education2']; ?> &nbsp; </dd> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Certification/Degree Awarded'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['awarded2']; ?> &nbsp; </dd> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Year of Graduation'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['graduation2']; ?> &nbsp; </dd> </dl>
php
cakephp
cakephp-1.3
null
null
null
open
Hiding fields from view if table is empty and validating if not empty === Here is the scenario I am trying to work out a way to render specific data into a view based on additional user input. (I only want the specific <dt> and corresponding <dd> tags to render if there has been additional input received from the user) And if the user has added more info, how would I go about validating the data? I thought about doing it simply based on if [education1] is not empty validate the corresponding [awarded1] and [graduation1] but for the life of me I cannot find a simple solution. Thanks for your help in advance! Here is the view (pretty standard baked view): <dl><?php $i = 0; $class = ' class="altrow"';?> <h3 id="viewf">Education</h3> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('University'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['education1']; ?> &nbsp; </dd> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Certification/Degree Awarded'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['awarded1']; ?> &nbsp; </dd> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Year of Graduation'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php if (!empty($user['User']['graduation1'])) { echo $user['User']['graduation1'];} ?> &nbsp; </dd> <br /> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('University'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['education2']; ?> &nbsp; </dd> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Certification/Degree Awarded'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['awarded2']; ?> &nbsp; </dd> <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Year of Graduation'); ?></dt> <dd<?php if ($i++ % 2 == 0) echo $class;?>> <?php echo $user['User']['graduation2']; ?> &nbsp; </dd> </dl>
0
11,109,229
06/19/2012 20:51:08
1,464,940
06/18/2012 22:03:48
1
0
Issue with IFRAME?
Can any help me out please. I am facing problem with iframe that too in chrome. **How to make IFRAME transparent.?**
html
css
null
null
null
06/19/2012 21:02:45
not a real question
Issue with IFRAME? === Can any help me out please. I am facing problem with iframe that too in chrome. **How to make IFRAME transparent.?**
1
9,492,623
02/29/2012 02:08:29
1,239,203
02/29/2012 01:54:05
1
0
How (or is it possible) to make browser cookies?
How (or is it possible) to make browser cookies? I want to make a game, but I (obviously) need save/load, and the ability to determine the time spent between reloading, _etc._ SO YAH. **HELP!** Also, if you know any good java tutorial sites, channels, _etc._, please tell me. I am still a beginner. Any help is appreciated! _//Plazmotech_
java
eclipse
cookies
new-operator
null
null
open
How (or is it possible) to make browser cookies? === How (or is it possible) to make browser cookies? I want to make a game, but I (obviously) need save/load, and the ability to determine the time spent between reloading, _etc._ SO YAH. **HELP!** Also, if you know any good java tutorial sites, channels, _etc._, please tell me. I am still a beginner. Any help is appreciated! _//Plazmotech_
0
7,062,690
08/15/2011 07:48:30
393,087
07/15/2010 18:26:42
726
3
very unsave behavior of extract() and compact() function with non standard variables, it is a bug or a feature ;)?
Not everyone knows that php can handle variables that have first characters as numbers, spaces, or other special language reserved words and characters in it. And it seems for whoever coded extract function this esoteric knowledge was not known.. ${0} = 'bug'; $array = array('zero','one'); extract($array); // //no error code is returned whatsoever echo ${0}; // returns 'bug' echo ${1}; //Notice: Undefined variable 1 in... ok, let's do the other way around: $array = compact(0); // no error... print_r($array); // Array() - no seriously, what the... This is <b>MADNESS</b> !! It can lead to serious and hard to spot errors in code. Moreover, script could run as happy as nothing happened until you see with your paleface that something in the output is completely messed.
php
php-5.3
bugs
php5.4
null
08/16/2011 00:42:17
off topic
very unsave behavior of extract() and compact() function with non standard variables, it is a bug or a feature ;)? === Not everyone knows that php can handle variables that have first characters as numbers, spaces, or other special language reserved words and characters in it. And it seems for whoever coded extract function this esoteric knowledge was not known.. ${0} = 'bug'; $array = array('zero','one'); extract($array); // //no error code is returned whatsoever echo ${0}; // returns 'bug' echo ${1}; //Notice: Undefined variable 1 in... ok, let's do the other way around: $array = compact(0); // no error... print_r($array); // Array() - no seriously, what the... This is <b>MADNESS</b> !! It can lead to serious and hard to spot errors in code. Moreover, script could run as happy as nothing happened until you see with your paleface that something in the output is completely messed.
2
9,443,782
02/25/2012 11:59:54
1,023,060
11/01/2011 04:09:00
73
1
Invalid length for a Base-64 char array in LINQ TO SQL
I am currently working on a Log in form but the thing here is that when I enter an invalid username this errors comes up. Invalid length for a Base-64 char array. On this line of code: bool isSame = hasher.CompareStringToHash(txtPassword.Text, hashedPassword); Here is the full code public void verifyAccount() { var hashedPassword = getPassword(); var hasher = new Hasher(); hasher.SaltSize = 16; bool isSame = hasher.CompareStringToHash(txtPassword.Text, hashedPassword); if (isSame==false) { MessageBox.Show("Invalid UserName or Password"); } else { MainWindow main = new MainWindow(); this.Hide(); main.ShowDialog(); this.Close(); } } And the This is the method for searching a such username at the same time getting their password password in the database. public string getPassword() { DataClasses1DataContext myDbContext = new DataClasses1DataContext(dbPath); var password = (from user in myDbContext.Accounts where user.accnt_User == txtUser.Text select user.accnt_Pass).FirstOrDefault(); if (password == null) { return "z"; } return password; }
c#
.net
linq
linq-to-sql
null
null
open
Invalid length for a Base-64 char array in LINQ TO SQL === I am currently working on a Log in form but the thing here is that when I enter an invalid username this errors comes up. Invalid length for a Base-64 char array. On this line of code: bool isSame = hasher.CompareStringToHash(txtPassword.Text, hashedPassword); Here is the full code public void verifyAccount() { var hashedPassword = getPassword(); var hasher = new Hasher(); hasher.SaltSize = 16; bool isSame = hasher.CompareStringToHash(txtPassword.Text, hashedPassword); if (isSame==false) { MessageBox.Show("Invalid UserName or Password"); } else { MainWindow main = new MainWindow(); this.Hide(); main.ShowDialog(); this.Close(); } } And the This is the method for searching a such username at the same time getting their password password in the database. public string getPassword() { DataClasses1DataContext myDbContext = new DataClasses1DataContext(dbPath); var password = (from user in myDbContext.Accounts where user.accnt_User == txtUser.Text select user.accnt_Pass).FirstOrDefault(); if (password == null) { return "z"; } return password; }
0
8,236,017
11/23/2011 00:52:07
807,325
02/21/2011 17:08:44
1,414
16
Which one is the fastest query?
I need to find whether using `*` or select ony the fields you want is faster. In my case, there will be only one match ever. So, which is faster? This : SELECT id, name,description,address,phone,img FROM companies WHERE username = '$cname' LIMIT 1 or this one? SELECT * FROM companies WHERE username = '$cname' LIMIT 1 Do you have any suggestions?
php
mysql
query
null
null
11/23/2011 07:19:28
not constructive
Which one is the fastest query? === I need to find whether using `*` or select ony the fields you want is faster. In my case, there will be only one match ever. So, which is faster? This : SELECT id, name,description,address,phone,img FROM companies WHERE username = '$cname' LIMIT 1 or this one? SELECT * FROM companies WHERE username = '$cname' LIMIT 1 Do you have any suggestions?
4
11,203,997
06/26/2012 09:05:09
930,961
09/06/2011 15:04:16
16
0
How to add generated projet in the TFS2010 Binaries output folder
With TFS2010 build, the build of a solution with web projects creates a "_PublishedWebsites" in the Binaries output folder and delete all Bin folders in the Sources folder. So impossible to move by script another generated project. How can I move another generated projets no web in the same solution to the Binaries folder ? Because, in my solution, I have a web project, a Service Web project and a console project. Only the Console project is not move in the Binaries folder. Thank you.
tfs2010
build-automation
null
null
null
null
open
How to add generated projet in the TFS2010 Binaries output folder === With TFS2010 build, the build of a solution with web projects creates a "_PublishedWebsites" in the Binaries output folder and delete all Bin folders in the Sources folder. So impossible to move by script another generated project. How can I move another generated projets no web in the same solution to the Binaries folder ? Because, in my solution, I have a web project, a Service Web project and a console project. Only the Console project is not move in the Binaries folder. Thank you.
0
10,186,313
04/17/2012 06:36:19
87,150
04/04/2009 19:40:19
98
3
No option for Dynamic web project in eclipse
I need to create a dynamic web project in Eclipse but the option doesn't appear anymore. I installed Google Web Apps engine(JAVA) and its SDK along with GWT, ever since the option for dynamic project has disappeared. Also the option to generate web client from WSDL files is no longer there. I've tried re-installing the web app toolkit for eclipse but still it's not working. Any pointers to get back these options would be great Thanks
eclipse
web-services
google-app-engine
null
null
null
open
No option for Dynamic web project in eclipse === I need to create a dynamic web project in Eclipse but the option doesn't appear anymore. I installed Google Web Apps engine(JAVA) and its SDK along with GWT, ever since the option for dynamic project has disappeared. Also the option to generate web client from WSDL files is no longer there. I've tried re-installing the web app toolkit for eclipse but still it's not working. Any pointers to get back these options would be great Thanks
0
9,791,230
03/20/2012 16:48:18
467,875
10/06/2010 11:21:37
355
41
Accessibility of JavaScript on small screen mobile devices?
Im working on a mobile optimised site. Im using media queries to detect the screen size and the majority of the content is still shown just formated differently. The site has some JavaScript reliant interactive tools. What if any are the accessibility concerns for using JavaScript with mobile devices? On desktop, non JavaScript users see a static list of the same information the interactive tool uses. I was thinking of the same solution for the mobile version but I guess im interested in more general answers for other situations as Ive not ready anything about accessibility and JavaScript specific to mobile. Thanks
javascript
mobile
accessibility
null
null
null
open
Accessibility of JavaScript on small screen mobile devices? === Im working on a mobile optimised site. Im using media queries to detect the screen size and the majority of the content is still shown just formated differently. The site has some JavaScript reliant interactive tools. What if any are the accessibility concerns for using JavaScript with mobile devices? On desktop, non JavaScript users see a static list of the same information the interactive tool uses. I was thinking of the same solution for the mobile version but I guess im interested in more general answers for other situations as Ive not ready anything about accessibility and JavaScript specific to mobile. Thanks
0
5,719,669
04/19/2011 16:34:12
715,578
04/19/2011 16:10:29
1
0
RENAMING FILE NAMES AND EXTENSIONS
How can I rename a file's filename and file extension in my current directory? If I have these files [abc.txt, 123.mp3, 54.jpg, 145.bat], how can I change that one .txt file to a file named "testing.bat"?
python
html
c
ios
programming-languages
04/19/2011 20:10:39
not a real question
RENAMING FILE NAMES AND EXTENSIONS === How can I rename a file's filename and file extension in my current directory? If I have these files [abc.txt, 123.mp3, 54.jpg, 145.bat], how can I change that one .txt file to a file named "testing.bat"?
1
9,009,444
01/25/2012 20:02:40
1,170,002
01/25/2012 19:58:22
1
0
How to Deploy a ColdFusion WAR File
ColdFusion 9 (and other versions) has the ability to package a CF application as a WAR file. Has anybody on the planet ever done this and successfully deployed their ColdFusion application to something like CloudBees (http://www.cloudbees.com/) or Amazon Elastic Beanstalk (http://aws.amazon.com/elasticbeanstalk/)? I have tried both and failed. Google is strangely silent on the issue, coming back with almost no search results. Has anyone out there done anything like this? Thanks!
coldfusion
amazon
war
beanstalk
elastic
01/27/2012 14:22:18
not a real question
How to Deploy a ColdFusion WAR File === ColdFusion 9 (and other versions) has the ability to package a CF application as a WAR file. Has anybody on the planet ever done this and successfully deployed their ColdFusion application to something like CloudBees (http://www.cloudbees.com/) or Amazon Elastic Beanstalk (http://aws.amazon.com/elasticbeanstalk/)? I have tried both and failed. Google is strangely silent on the issue, coming back with almost no search results. Has anyone out there done anything like this? Thanks!
1
8,565,730
12/19/2011 18:30:47
70,386
02/24/2009 14:26:46
21,937
1,048
Clone a mercurial project using git?
I'm using git for all of my projects. Now I would like to clone a project that are using mercurial. Are there some kind of mercurial <-> git bridge or something that I can use?
c#
git
version-control
mercurial
null
null
open
Clone a mercurial project using git? === I'm using git for all of my projects. Now I would like to clone a project that are using mercurial. Are there some kind of mercurial <-> git bridge or something that I can use?
0
9,211,180
02/09/2012 12:53:28
1,015,190
10/26/2011 18:24:17
34
0
Constructing a wizard in Ruby on Rails
So I am trying to build a wizard for my users on sign up. I cannot use javascript (What I found is the general solution for this kind of forms.) The reason is that every page in my wizard is heavy Javascript dependent, which means that loading all at once would take to long time. And oh, the wizard deals with 3 different resources. I've tried one approach that I'm currently stuck on, and frankly doesn't feel right. (SIDENOTE: user is exposed with "decent-exposure" gem) This is my wizard-controller: def index case current_step when 'description' render 'users/edit' when 'contact' render 'contact_informations/edit' when 'location' render 'location/edit' end end def current_step @current_step || STEPS.first end def next_step @current_step = STEPS[STEPS.index(current_step)+1] index end def previous_step @current_step = STEPS[STEPS.index(current_step)-1] index end def final_step @current_step == STEPS.last end Then I have one update action for each of the resources(this is the same wizard-controller) def update_description if user.update_attributes(params[:user]) next_step else redirect_to user_wizard_path(user) end end def update_contact_information # Do stuff here end def update_location # Do stuff here end It seems like there is a problem with calling actions from within the same controller. And based on that I've never seen this be done before, it feels wrong. What I am trying to accomplish in simple: I do not want to clutter up the original REST-controllers of resources. I want every step to be validated If update_attributes fails, re-render form with errors. If update_attributes succeed render next step. I've come to the conclusion that my shot at this will not work, and does not feel like the "rails-way" of doing things. I've watched Ryan Bates railscast on "multiple-step-forms" but even after that, I can't seem to figure this out. Thanks in advance. Tim
ruby-on-rails
forms
wizard
null
null
null
open
Constructing a wizard in Ruby on Rails === So I am trying to build a wizard for my users on sign up. I cannot use javascript (What I found is the general solution for this kind of forms.) The reason is that every page in my wizard is heavy Javascript dependent, which means that loading all at once would take to long time. And oh, the wizard deals with 3 different resources. I've tried one approach that I'm currently stuck on, and frankly doesn't feel right. (SIDENOTE: user is exposed with "decent-exposure" gem) This is my wizard-controller: def index case current_step when 'description' render 'users/edit' when 'contact' render 'contact_informations/edit' when 'location' render 'location/edit' end end def current_step @current_step || STEPS.first end def next_step @current_step = STEPS[STEPS.index(current_step)+1] index end def previous_step @current_step = STEPS[STEPS.index(current_step)-1] index end def final_step @current_step == STEPS.last end Then I have one update action for each of the resources(this is the same wizard-controller) def update_description if user.update_attributes(params[:user]) next_step else redirect_to user_wizard_path(user) end end def update_contact_information # Do stuff here end def update_location # Do stuff here end It seems like there is a problem with calling actions from within the same controller. And based on that I've never seen this be done before, it feels wrong. What I am trying to accomplish in simple: I do not want to clutter up the original REST-controllers of resources. I want every step to be validated If update_attributes fails, re-render form with errors. If update_attributes succeed render next step. I've come to the conclusion that my shot at this will not work, and does not feel like the "rails-way" of doing things. I've watched Ryan Bates railscast on "multiple-step-forms" but even after that, I can't seem to figure this out. Thanks in advance. Tim
0
5,758,657
04/22/2011 18:27:29
661,411
03/15/2011 21:11:55
3
0
Geolocation from form
I have a Javascript form where a user inputs an address, city, and state. When this form is submitted, I want the address to be converted into latitude and longitude, and to store those two values to a database. Any help at all is greatly appreciated!
javascript
database
forms
geolocation
address
null
open
Geolocation from form === I have a Javascript form where a user inputs an address, city, and state. When this form is submitted, I want the address to be converted into latitude and longitude, and to store those two values to a database. Any help at all is greatly appreciated!
0
10,348,314
04/27/2012 09:39:15
599,835
02/02/2011 10:31:56
16
0
sencha hide show button
Hi i am new to sencha and i try to find out how some things work in sencha architect /sencha touch. i found a project http://miamicoder.com/2012/how-to-create-a-sencha-touch-2-app-part-1/ and i try to make that in architect. at this point i try to make the toolbar on top of my app. i have some buttons there that switch between my cards. i want the button that goes to my first screen starts hidden so looks like back when i am at my second screen. i setted events for my buttons this.setActiveItem(0); and i tried Ext.select("#mybutton1").hidden = true; mybutton1.setVisible(false); but they don't work... any ideas? also if anyone has any tutorial/ example about everything please advice... thanx
sencha
sencha-touch-2
null
null
null
null
open
sencha hide show button === Hi i am new to sencha and i try to find out how some things work in sencha architect /sencha touch. i found a project http://miamicoder.com/2012/how-to-create-a-sencha-touch-2-app-part-1/ and i try to make that in architect. at this point i try to make the toolbar on top of my app. i have some buttons there that switch between my cards. i want the button that goes to my first screen starts hidden so looks like back when i am at my second screen. i setted events for my buttons this.setActiveItem(0); and i tried Ext.select("#mybutton1").hidden = true; mybutton1.setVisible(false); but they don't work... any ideas? also if anyone has any tutorial/ example about everything please advice... thanx
0
10,177,114
04/16/2012 15:30:41
1,336,648
04/16/2012 15:21:28
1
0
How to make this Java 'Hangman' work?
Im doing a java homework program where you have 20 random words and it randomly chooses 1 of the twenty, after that you have to guess the word hangman style (with 10 lives), and assuming the word is Telephone it would first appear like _ _ _ _ _ _ _ _ _ and say you enter in a guess "e", it would become _ e _ e _ _ _ _ e and then guess "t", t e _ e _ _ _ _ e, this is suspose to be using simple console programming. From what i have done so far the program runs once and won't work a second time if i loop it again. Here's the code i have done so far (the stuff i have been taught in java doesn't extend past this by much, so if you know how to fix this program using new commands please explain what the command does, please and thank you :) ) import hsa.*; import java.util.Random; public class Whatistheword { public static void main(String[] args){ Console con = new Console (); String mword=""; String guess=""; Random r = new Random(); int length; int count=0; int intx1=0; int intx2=1; String check; int letter=0; int life = 10; int check2 = 0; con.println ("Welcome to the 'What is the Word?' Game"); pause (1000); // Array of 20 words & chooses one of the twenty String[] listOfWords = {"IpodTouch","Blackberry","Apple","Samsu… int randint = r.nextInt(listOfWords.length); mword = listOfWords[randint]; // so i know what the word is to test con.println("The Random word is: "+mword); length = mword.length(); con.println (mword); con.println (length); con.println ("Guess a letter for the word!"); guess = con.readLine(); // runs to check letters individually while (count != length){ count = count + 1; check = mword.substring(intx1,intx2); intx1 = intx1 + 1; intx2 = intx2 + 1; if (guess.equalsIgnoreCase(check)){ letter = letter + 1; con.print (guess); // prints this if letter wasnt guessed }else { con.print (" _ "); } } } public static void pause(int intMS){ try{ Thread.sleep(intMS); }catch(InterruptedException e){ } } }
java
null
null
null
null
04/18/2012 06:01:38
not a real question
How to make this Java 'Hangman' work? === Im doing a java homework program where you have 20 random words and it randomly chooses 1 of the twenty, after that you have to guess the word hangman style (with 10 lives), and assuming the word is Telephone it would first appear like _ _ _ _ _ _ _ _ _ and say you enter in a guess "e", it would become _ e _ e _ _ _ _ e and then guess "t", t e _ e _ _ _ _ e, this is suspose to be using simple console programming. From what i have done so far the program runs once and won't work a second time if i loop it again. Here's the code i have done so far (the stuff i have been taught in java doesn't extend past this by much, so if you know how to fix this program using new commands please explain what the command does, please and thank you :) ) import hsa.*; import java.util.Random; public class Whatistheword { public static void main(String[] args){ Console con = new Console (); String mword=""; String guess=""; Random r = new Random(); int length; int count=0; int intx1=0; int intx2=1; String check; int letter=0; int life = 10; int check2 = 0; con.println ("Welcome to the 'What is the Word?' Game"); pause (1000); // Array of 20 words & chooses one of the twenty String[] listOfWords = {"IpodTouch","Blackberry","Apple","Samsu… int randint = r.nextInt(listOfWords.length); mword = listOfWords[randint]; // so i know what the word is to test con.println("The Random word is: "+mword); length = mword.length(); con.println (mword); con.println (length); con.println ("Guess a letter for the word!"); guess = con.readLine(); // runs to check letters individually while (count != length){ count = count + 1; check = mword.substring(intx1,intx2); intx1 = intx1 + 1; intx2 = intx2 + 1; if (guess.equalsIgnoreCase(check)){ letter = letter + 1; con.print (guess); // prints this if letter wasnt guessed }else { con.print (" _ "); } } } public static void pause(int intMS){ try{ Thread.sleep(intMS); }catch(InterruptedException e){ } } }
1
6,761,738
07/20/2011 12:17:11
648,138
03/07/2011 12:27:30
1,256
28
How can i open up a file and view it
I know the following snippet does not have the functionality of opening a file for viewing. JFileChooser open = new JFileChooser(); int option = open.showOpenDialog( this ); if( option == JFileChooser.APPROVE_OPTION ) { try { Scanner scanner = new Scanner( new FileReader( open.getSelectedFile().getPath() ) ); //while( scanner.hasNext() ) } catch(Exception exc) { System.out.println(exc); } _This snippet presents a file chooser for opening a file_ In this snippet what should i do so that i am able to view the file _(as i double click it)_?
java
file
io
jfilechooser
null
null
open
How can i open up a file and view it === I know the following snippet does not have the functionality of opening a file for viewing. JFileChooser open = new JFileChooser(); int option = open.showOpenDialog( this ); if( option == JFileChooser.APPROVE_OPTION ) { try { Scanner scanner = new Scanner( new FileReader( open.getSelectedFile().getPath() ) ); //while( scanner.hasNext() ) } catch(Exception exc) { System.out.println(exc); } _This snippet presents a file chooser for opening a file_ In this snippet what should i do so that i am able to view the file _(as i double click it)_?
0
4,812,725
01/27/2011 04:24:07
554,202
10/20/2010 07:04:56
1
1
Crash problem Unknown situation
Exception Type:  EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000 Crashed Thread:  0 Thread 0 Crashed: 0   libobjc.A.dylib               0x33a06466 0x33a03000 + 13414 1   Foundation                     0x302eedf6 0x302ce000 + 134646 2   CoreFoundation                 0x3044509c 0x303ee000 + 356508 3   CoreFoundation                 0x30444b54 0x303ee000 + 355156 4   CoreFoundation                 0x304161ae 0x303ee000 + 164270 5   CoreFoundation                 0x30415c80 0x303ee000 + 162944 6   CoreFoundation                 0x30415b88 0x303ee000 + 162696 7   GraphicsServices               0x31eec4a4 0x31ee8000 + 17572 8   GraphicsServices               0x31eec550 0x31ee8000 + 17744 9   UIKit                         0x313cf322 0x31398000 + 226082 10  UIKit                         0x313cce8c 0x31398000 + 216716 11  FaceTime                       0x00002c6c 0x1000 + 7276 12  FaceTime                       0x00002c20 0x1000 + 7200 Thread 1: 0   libSystem.B.dylib             0x310bf974 0x31092000 + 186740 1   libSystem.B.dylib             0x31169704 0x31092000 + 882436 2   libSystem.B.dylib             0x31169174 0x31092000 + 881012 3   libSystem.B.dylib             0x31168b98 0x31092000 + 879512 4   libSystem.B.dylib             0x3110d24a 0x31092000 + 504394 5   libSystem.B.dylib             0x31105970 0x31092000 + 473456 Thread 2: 0   libSystem.B.dylib             0x3110d9e0 0x31092000 + 506336 1   libSystem.B.dylib             0x3110d364 0x31092000 + 504676 2   libSystem.B.dylib             0x31105970 0x31092000 + 473456 Thread 3: 0   libSystem.B.dylib             0x31093268 0x31092000 + 4712 1   libSystem.B.dylib             0x31095354 0x31092000 + 13140 2   CoreFoundation                 0x30416648 0x303ee000 + 165448 3   CoreFoundation                 0x30415ed2 0x303ee000 + 163538 4   CoreFoundation                 0x30415c80 0x303ee000 + 162944 5   CoreFoundation                 0x30415b88 0x303ee000 + 162696 6   WebCore                       0x35b32124 0x35a7b000 + 749860 7   libSystem.B.dylib             0x3110c886 0x31092000 + 501894 8   libSystem.B.dylib             0x31101a88 0x31092000 + 457352 Thread 4: 0   libSystem.B.dylib             0x31093268 0x31092000 + 4712 1   libSystem.B.dylib             0x31095354 0x31092000 + 13140 2   CoreFoundation                 0x30416648 0x303ee000 + 165448 3   CoreFoundation                 0x30415ed2 0x303ee000 + 163538 4   CoreFoundation                 0x30415c80 0x303ee000 + 162944 5   CoreFoundation                 0x30415b88 0x303ee000 + 162696 6   Foundation                     0x302fb5f6 0x302ce000 + 185846 7   Foundation                     0x302d9192 0x302ce000 + 45458 8   Foundation                     0x302d2242 0x302ce000 + 16962 9   libSystem.B.dylib             0x3110c886 0x31092000 + 501894 10  libSystem.B.dylib             0x31101a88 0x31092000 + 457352 Thread 5: 0   libSystem.B.dylib             0x310b768c 0x31092000 + 153228 1   CoreFoundation                 0x3044d662 0x303ee000 + 390754 2   libSystem.B.dylib             0x3110c886 0x31092000 + 501894 3   libSystem.B.dylib             0x31101a88 0x31092000 + 457352 Thread 0 crashed with ARM Thread State:    r0: 0x00163b70    r1: 0x0006eb67      r2: 0x00163b70      r3: 0x0006eb67    r4: 0x08d391f8    r5: 0x00000000      r6: 0x00114b50      r7: 0x2fdfeb08    r8: 0x00114c10    r9: 0x00000002     r10: 0x08d87fb0     r11: 0x00000000    ip: 0x00043319    sp: 0x2fdfeae8      lr: 0x00043341      pc: 0x33a06466  cpsr: 0x08000030 Binary Images:    0x1000 -    0x7ffff +FaceTime armv7  <effbfce4a5323305ed4e2b8ff9cfba1e> /var/mobile/Applications/C83336A3-95FB-41C4-BD8A-F38954A8320A/FaceTime.app/FaceTime  0x25a000 -   0x25bfff  dns.so armv7  <fcefecb2d5e095ba88127eec3af57ec0> /usr/lib/info/dns.so 0x2fe00000 - 0x2fe27fff  dyld armv7  <06e6959cebb4a72e66c833e26ae64d26> /usr/lib/dyld 0x30040000 - 0x30043fff  ActorKit armv7  <f5d038591e564646e9237a59c6c14293> /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit 0x30044000 - 0x30047fff  ApplePushService armv7  <9d1eb7b11f0f146c941efbab2c055606> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService 0x30048000 - 0x30088fff  CoreAudio armv7  <f32e03ee4c68f0db23f05afc9a3cc94c> /System/Library/Frameworks/CoreAudio.framework/CoreAudio 0x30089000 - 0x30092fff  ITSync armv7  <87d409553f90e41a01afce047dc2e8fe> /System/Library/PrivateFrameworks/ITSync.framework/ITSync 0x30093000 - 0x30093fff  vecLib armv7  <e53d234e808c77d286161095f92c58cf> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib 0x30094000 - 0x30095fff  DataMigration armv7  <babbc72d4d48325de147d5103d7bc00d> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration 0x30096000 - 0x300a9fff  MediaControl armv7  <874e83896424ebb3afe59a3a59ba4dfe> /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl 0x300aa000 - 0x301cafff  CoreGraphics armv7  <2d7b40a7baca915ce78b1dd9a0d6433b> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics 0x301d6000 - 0x3020bfff  ImageCapture armv7  <11cb11dea0b6910987518cfb7dfa7ba1> /System/Library/PrivateFrameworks/ImageCapture.framework/ImageCapture 0x3020c000 - 0x30212fff  IAP armv7  <134f59ad5bb91bab6a5fe21b6f36dc8b> /System/Library/PrivateFrameworks/IAP.framework/IAP 0x302a2000 - 0x302cbfff  MobileCoreServices armv7  <54484a513761868149405df7fc29b5c0> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices 0x302ce000 - 0x303edfff  Foundation armv7  <81d36041f04318cb51db5aafed9ce504> /System/Library/Frameworks/Foundation.framework/Foundation 0x303ee000 - 0x304d4fff  CoreFoundation armv7  <01441e01f5141a50ee723362e59ca400> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 0x305fb000 - 0x30631fff  CoreLocation armv7  <e19b7aa132318fc90618a663bd576461> /System/Library/Frameworks/CoreLocation.framework/CoreLocation 0x306a6000 - 0x306fffff  EventKit armv7  <037c4bb5e2529e6004d0e1f3d95a84cc> /System/Library/Frameworks/EventKit.framework/EventKit 0x3078e000 - 0x307cdfff  libGLImage.dylib armv7  <a7c117c92607a512823d307b8fdd0151> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib 0x307f9000 - 0x30816fff  AppleAccount armv7  <e3833276f8877499c8dd76b3b3d88501> /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount 0x308c2000 - 0x308f5fff  QuickLook armv7  <8c54395accc7ffc84766ff3e9b24beb1> /System/Library/Frameworks/QuickLook.framework/QuickLook 0x308f6000 - 0x309e1fff  PhotoLibrary armv7  <ae1e7ac429fc2c53c203132ba5e8e922> /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary 0x309e2000 - 0x309e5fff  ArtworkCache armv7  <1e65b5000a2234b69164e7904fcf826b> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache 0x309e6000 - 0x309eefff  MobileBluetooth armv7  <6d6c62f52219d27be50f1d7c39a68dc6> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth 0x309ef000 - 0x30a22fff  AddressBook armv7  <7c87e0175c8649d6832419da8a1cfac1> /System/Library/Frameworks/AddressBook.framework/AddressBook 0x30a23000 - 0x30a43fff  PrintKit armv7  <02a9c6f4173a0673c4637a3b570345cd> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit 0x30aa3000 - 0x30af3fff  GMM armv7  <2b63c1e1ce647e031a8a491e156f04d3> /System/Library/PrivateFrameworks/GMM.framework/GMM 0x30e64000 - 0x30eabfff  MessageUI armv7  <bb7d161bb6c699afb2e1744ece115ae8> /System/Library/Frameworks/MessageUI.framework/MessageUI 0x30fc2000 - 0x30fd4fff  iAd armv7  <a57f002be6ce2e0d048f770190af9b15> /System/Library/Frameworks/iAd.framework/iAd 0x30fd5000 - 0x31082fff  JavaScriptCore armv7  <3f2df600942dc72aad312b3cc98ec479> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore 0x31092000 - 0x311a3fff  libSystem.B.dylib armv7  <138a43ab528bb428651e6aa7a2a7293c> /usr/lib/libSystem.B.dylib 0x311af000 - 0x312cffff  libmecabra.dylib armv7  <b2293b8acb00a14bace7520a63f39439> /usr/lib/libmecabra.dylib 0x312d0000 - 0x31312fff  CoreTelephony armv7  <96d3af505b9f2887e62c7e99c157733e> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony 0x31340000 - 0x31373fff  iCalendar armv7  <6eb50e720d642f5ac510a36989b276b2> /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar 0x31398000 - 0x31719fff  UIKit armv7  <de1cbd3219a74e4d41b30428f428e223> /System/Library/Frameworks/UIKit.framework/UIKit 0x31722000 - 0x3174afff  StoreServices armv7  <f409aaf487bd7e7a08c77ba5a2a83a1a> /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices 0x3174b000 - 0x31764fff  libRIP.A.dylib armv7  <ee16b5cee12a8947c8e511ed51ae7fef> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib 0x3177f000 - 0x317b5fff  CoreText armv7  <b9b5c21b2d2a28abc47842c78c026ddf> /System/Library/Frameworks/CoreText.framework/CoreText 0x3180a000 - 0x318b3fff  libxml2.2.dylib armv7  <b3d82f80a777cb1434052ea2d232e3df> /usr/lib/libxml2.2.dylib 0x318b4000 - 0x318e0fff  DataAccess armv7  <6b9b5235b449335ce5c66d53f32004cd> /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess 0x31923000 - 0x31938fff  libresolv.9.dylib armv7  <ea156820997ae9a2baf664d0f79f18d7> /usr/lib/libresolv.9.dylib 0x31939000 - 0x31949fff  TelephonyUI armv7  <4d181ff2cf0373cf56db350e0fbc1717> /System/Library/PrivateFrameworks/TelephonyUI.framework/TelephonyUI 0x3194a000 - 0x3194cfff  SpringBoardUI armv7  <42a6b76dddc6c6aa515f27dd11f5957a> /System/Library/PrivateFrameworks/SpringBoardUI.framework/SpringBoardUI 0x3194d000 - 0x3195dfff  DataAccessExpress armv7  <6767a1e2afbc86a1ec63dd784f5d3677> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress 0x31971000 - 0x31980fff  Notes armv7  <7d7a3d10a349471cd2757a479d131b31> /System/Library/PrivateFrameworks/Notes.framework/Notes 0x31981000 - 0x31a0afff  Message armv7  <69cb7cb1d1d7865fc04dc341544174b6> /System/Library/PrivateFrameworks/Message.framework/Message 0x31a0b000 - 0x31a9efff  ImageIO armv7  <5b5a294d4250eff866fdbf891b1e8b34> /System/Library/Frameworks/ImageIO.framework/ImageIO 0x31ab8000 - 0x31b34fff  AVFoundation armv7  <4c7356c795e01bd5c21b00a409a07476> /System/Library/Frameworks/AVFoundation.framework/AVFoundation 0x31b35000 - 0x31b3afff  MobileKeyBag armv7  <cec3f3271fc267c32c169ed03e312d63> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag 0x31b3b000 - 0x31b64fff  ContentIndex armv7  <247576cb4f1ff8e92650ae3cb4973760> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex 0x31cb5000 - 0x31d56fff  Celestial armv7  <b411f4662383ec24dbfbcde8f4c23d67> /System/Library/PrivateFrameworks/Celestial.framework/Celestial 0x31d59000 - 0x31d61fff  libkxld.dylib armv7  <854e82fe66feef01e54c7c8a209851ac> /usr/lib/system/libkxld.dylib 0x31d62000 - 0x31dd1fff  ProofReader armv7  <d2e62a8ab7e1460c7f6de8913c703e6d> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader 0x31de0000 - 0x31ee7fff  CoreData armv7  <29b1ab7d339e42a6ff6923e54cf43e7b> /System/Library/Frameworks/CoreData.framework/CoreData 0x31ee8000 - 0x31ef4fff  GraphicsServices armv7  <0099670dccd99466653956bf918d667a> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices 0x31ff5000 - 0x32002fff  libbsm.0.dylib armv7  <0f4e595e6eb2170aceb729f32b5de8c2> /usr/lib/libbsm.0.dylib 0x32003000 - 0x3229dfff  libLAPACK.dylib armv7  <2e77d87e96af938aacf0a6008e6fb89d> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib 0x322e7000 - 0x32316fff  SystemConfiguration armv7  <3f982c11b5526fc39a92d585c60d8a90> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration 0x323f9000 - 0x3242afff  VideoToolbox armv7  <bb7ff9014b1dabec2acce95d41f05b59> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox 0x3242b000 - 0x324ecfff  RawCamera armv7  <b7f53a8a4a1188746c9c3d818f28795b> /System/Library/CoreServices/RawCamera.bundle/RawCamera 0x324ed000 - 0x3259cfff  WebKit armv7  <644a1c6120578f896bed7121307aa2af> /System/Library/PrivateFrameworks/WebKit.framework/WebKit 0x32644000 - 0x32687fff  ManagedConfiguration armv7  <27ac7f05482a8aa9977150f34f9be6eb> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration 0x326ae000 - 0x32764fff  MapKit armv7  <69921a6353270a6f77e0816d636812e8> /System/Library/Frameworks/MapKit.framework/MapKit 0x32765000 - 0x3276efff  WebBookmarks armv7  <9f1760206eaef20c605c5d98e45c823e> /System/Library/PrivateFrameworks/WebBookmarks.framework/WebBookmarks 0x3278a000 - 0x3279dfff  libmis.dylib armv7  <855aefc263c6c20e6cf8723ea36125a2> /usr/lib/libmis.dylib 0x3279e000 - 0x327a6fff  MobileWiFi armv7  <b29d4c5e300ef81060e38f72bb583c02> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi 0x327a7000 - 0x328e0fff  AudioToolbox armv7  <657b327f2ceee9f22f9474f2f9bddbe6> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox 0x3290a000 - 0x32947fff  CoreMedia armv7  <4ea4d349e886206d1ecf5bae870f3f04> /System/Library/Frameworks/CoreMedia.framework/CoreMedia 0x3297b000 - 0x32981fff  ProtocolBuffer armv7  <7e279d3b6d1e1fd7dc8c8a883255fa17> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer 0x32987000 - 0x329a8fff  MobileSync armv7  <cff20dfe818febca9f3232426d59a42d> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync 0x329af000 - 0x329b2fff  CertUI armv7  <5f37446c6b65a8c38ab6233c2e33da66> /System/Library/PrivateFrameworks/CertUI.framework/CertUI 0x32a10000 - 0x32a12fff  IOMobileFramebuffer armv7  <1040629f37795146c9dcac8ab1a868fc> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer 0x32a68000 - 0x32a74fff  SpringBoardServices armv7  <137b75e19b2450c234dec88d538798ff> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices 0x32a88000 - 0x32bc5fff  MediaToolbox armv7  <a18bbcc41a38917fe0ae5e183d3f6b07> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox 0x32c80000 - 0x32c8efff  DataDetectorsCore armv7  <31929ee8505b90fb51d269cd4763f2e8> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/DataDetectorsCore 0x32c8f000 - 0x32c93fff  AssetsLibraryServices armv7  <e861a330d14702f148ca5133dcbe954c> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices 0x32ca7000 - 0x32ca9fff  MobileInstallation armv7  <8e6b0d9f642be06729ffdaaee97053b0> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation 0x32caa000 - 0x32cb5fff  libz.1.dylib armv7  <fabaddbcbc8c02bab0261df9d78e0e25> /usr/lib/libz.1.dylib 0x32cba000 - 0x32cc9fff  MobileDeviceLink armv7  <8f2fc7e811bc57f7a09d7df81c329e1a> /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink 0x32ccb000 - 0x32cd8fff  OpenGLES armv7  <a12565ffb5bb42e3019f1957cd4951d0> /System/Library/Frameworks/OpenGLES.framework/OpenGLES 0x32cda000 - 0x32cdffff  libMobileGestalt.dylib armv7  <5f73c7138ee1cb7103a98aec99f9ed88> /usr/lib/libMobileGestalt.dylib 0x32d17000 - 0x32d1dfff  liblockdown.dylib armv7  <5bbd9b3f5cfece328f80c403a8805ce9> /usr/lib/liblockdown.dylib 0x32d1e000 - 0x32d69fff  libBLAS.dylib armv7  <251c5ac7380802a16e30d827c027c637> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib 0x32d6a000 - 0x32e18fff  QuartzCore armv7  <83a8e5f0033369e437069c1e758fed83> /System/Library/Frameworks/QuartzCore.framework/QuartzCore 0x32e19000 - 0x32f2ffff  libicucore.A.dylib armv7  <e7fbb2ac586567e574dc33d7bb5c4dc9> /usr/lib/libicucore.A.dylib 0x32f5b000 - 0x32f5efff  CaptiveNetwork armv7  <a2af7147f5538d7669b14fa7b19b5a7c> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork 0x32f5f000 - 0x3301efff  CFNetwork armv7  <02fe0e30e54fffdcbbbd02e8cb812c3a> /System/Library/Frameworks/CFNetwork.framework/CFNetwork 0x33026000 - 0x33054fff  MIME armv7  <1989502ce4da514314647c6a0098d8e7> /System/Library/PrivateFrameworks/MIME.framework/MIME 0x330c3000 - 0x330fbfff  libCGFreetype.A.dylib armv7  <374bd566263e8929c10d50d6a6a48a46> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib 0x330fd000 - 0x33106fff  CoreVideo armv7  <2092d5deb6b234e04678b7c1878ccd81> /System/Library/Frameworks/CoreVideo.framework/CoreVideo 0x33128000 - 0x33135fff  DataDetectorsUI armv7  <a7e33ab2817110626fa1c5c731419101> /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI 0x3314b000 - 0x33195fff  libstdc++.6.dylib armv7  <53a6e7239c3908fa8c2915b65ff3b056> /usr/lib/libstdc++.6.dylib 0x3319e000 - 0x331a1fff  IOSurface armv7  <deff02882166bf16d0765d68f0542cc8> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface 0x331a2000 - 0x331a4fff  libAccessibility.dylib armv7  <3f0b58ea13d30f0cdb73f6ffe6d4e75c> /usr/lib/libAccessibility.dylib 0x331bd000 - 0x334cdfff  GeoServices armv7  <f6d9eba833e82b1a9a84b38ab7672012> /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices 0x334db000 - 0x33528fff  libsqlite3.dylib armv7  <55038e5c1d4d0dbdd94295e8cad7a9a4> /usr/lib/libsqlite3.dylib 0x33890000 - 0x338c2fff  AppSupport armv7  <47c8055ac99f187174ca373b702ffa68> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport 0x338c3000 - 0x338cafff  libbz2.1.0.dylib armv7  <2989ea7a5cad2cfe91bd632b041d0ff4> /usr/lib/libbz2.1.0.dylib 0x339bf000 - 0x339f9fff  IOKit armv7  <eb932cc42d60e55d9a4d0691bcc3d9ad> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x33a03000 - 0x33ac4fff  libobjc.A.dylib armv7  <aaf5671a35f9ac20d5846703dafaf4c6> /usr/lib/libobjc.A.dylib 0x33aeb000 - 0x33aedfff  libgcc_s.1.dylib armv7  <e66758bcda6da5d7f9b54fa5c4de6da2> /usr/lib/libgcc_s.1.dylib 0x33aee000 - 0x33b43fff  libvDSP.dylib armv7  <9365fc6cae1bff737257e74faf3b1f26> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib 0x33b4f000 - 0x33c3cfff  libiconv.2.dylib armv7  <c72b45f471df092dbd849081f7a3ef53> /usr/lib/libiconv.2.dylib 0x33ca7000 - 0x35620fff  TextInput armv7  <557601a7d93124fd5860606f294e900a> /System/Library/PrivateFrameworks/TextInput.framework/TextInput 0x35621000 - 0x35621fff  Accelerate armv7  <29dd5f17440bbb6e8e42e11b6fceda9a> /System/Library/Frameworks/Accelerate.framework/Accelerate 0x35625000 - 0x35717fff  MusicLibrary armv7  <34edbee423aa7e2ea32ad4eed0620b85> /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary 0x3576d000 - 0x35770fff  libGFXShared.dylib armv7  <3a385ed495379116abbe50bc8cd5a612> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib 0x35836000 - 0x3591efff  libGLProgrammability.dylib armv7  <1f478a71783cd7eb4ae9ef6f2dcea803> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib 0x35936000 - 0x35a45fff  MediaPlayer armv7  <9337abd4fdd749473efaefe64ee649a0> /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer 0x35a46000 - 0x35a48fff  CrashReporterSupport armv7  <30a5f1edcdb9ffe868a620199a4cbe12> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport 0x35a49000 - 0x35a53fff  AccountSettings armv7  <19c79f81d5d55fe2e6b618fcdc28258e> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings 0x35a5e000 - 0x35a5ffff  CoreSurface armv7  <f7caaf43609cfe0e475dfe83790edb4d> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface 0x35a61000 - 0x35a63fff  Camera armv7  <72ac72d4c09246d0774cda087069fb26> /System/Library/PrivateFrameworks/Camera.framework/Camera 0x35a64000 - 0x35a7afff  EAP8021X armv7  <36659ec2b9def7b5798a05327e369247> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X 0x35a7b000 - 0x36063fff  WebCore armv7  <d6bd9cf88ee82ab6b0e33e0ae1190772> /System/Library/PrivateFrameworks/WebCore.framework/WebCore 0x36064000 - 0x36083fff  Bom armv7  <0f5fd6057bad5e1677869500d636821f> /System/Library/PrivateFrameworks/Bom.framework/Bom 0x3608d000 - 0x36094fff  AggregateDictionary armv7  <71372c95d4af7af787d0682a939e40ac> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary 0x36097000 - 0x3612dfff  AddressBookUI armv7  <45665471fd70b0733b206d8166df74ef> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI 0x3612e000 - 0x36140fff  PersistentConnection armv7  <cd2a699aa5036bdad0517603ba4db839> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection 0x36141000 - 0x36178fff  Security armv7  <cd28e102950634ae7167ddee9c686d36> /System/Library/Frameworks/Security.framework/Security I dont understand this log pls any one help me
iphone
cocoa
crash
null
null
01/29/2011 00:36:01
not a real question
Crash problem Unknown situation === Exception Type:  EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000 Crashed Thread:  0 Thread 0 Crashed: 0   libobjc.A.dylib               0x33a06466 0x33a03000 + 13414 1   Foundation                     0x302eedf6 0x302ce000 + 134646 2   CoreFoundation                 0x3044509c 0x303ee000 + 356508 3   CoreFoundation                 0x30444b54 0x303ee000 + 355156 4   CoreFoundation                 0x304161ae 0x303ee000 + 164270 5   CoreFoundation                 0x30415c80 0x303ee000 + 162944 6   CoreFoundation                 0x30415b88 0x303ee000 + 162696 7   GraphicsServices               0x31eec4a4 0x31ee8000 + 17572 8   GraphicsServices               0x31eec550 0x31ee8000 + 17744 9   UIKit                         0x313cf322 0x31398000 + 226082 10  UIKit                         0x313cce8c 0x31398000 + 216716 11  FaceTime                       0x00002c6c 0x1000 + 7276 12  FaceTime                       0x00002c20 0x1000 + 7200 Thread 1: 0   libSystem.B.dylib             0x310bf974 0x31092000 + 186740 1   libSystem.B.dylib             0x31169704 0x31092000 + 882436 2   libSystem.B.dylib             0x31169174 0x31092000 + 881012 3   libSystem.B.dylib             0x31168b98 0x31092000 + 879512 4   libSystem.B.dylib             0x3110d24a 0x31092000 + 504394 5   libSystem.B.dylib             0x31105970 0x31092000 + 473456 Thread 2: 0   libSystem.B.dylib             0x3110d9e0 0x31092000 + 506336 1   libSystem.B.dylib             0x3110d364 0x31092000 + 504676 2   libSystem.B.dylib             0x31105970 0x31092000 + 473456 Thread 3: 0   libSystem.B.dylib             0x31093268 0x31092000 + 4712 1   libSystem.B.dylib             0x31095354 0x31092000 + 13140 2   CoreFoundation                 0x30416648 0x303ee000 + 165448 3   CoreFoundation                 0x30415ed2 0x303ee000 + 163538 4   CoreFoundation                 0x30415c80 0x303ee000 + 162944 5   CoreFoundation                 0x30415b88 0x303ee000 + 162696 6   WebCore                       0x35b32124 0x35a7b000 + 749860 7   libSystem.B.dylib             0x3110c886 0x31092000 + 501894 8   libSystem.B.dylib             0x31101a88 0x31092000 + 457352 Thread 4: 0   libSystem.B.dylib             0x31093268 0x31092000 + 4712 1   libSystem.B.dylib             0x31095354 0x31092000 + 13140 2   CoreFoundation                 0x30416648 0x303ee000 + 165448 3   CoreFoundation                 0x30415ed2 0x303ee000 + 163538 4   CoreFoundation                 0x30415c80 0x303ee000 + 162944 5   CoreFoundation                 0x30415b88 0x303ee000 + 162696 6   Foundation                     0x302fb5f6 0x302ce000 + 185846 7   Foundation                     0x302d9192 0x302ce000 + 45458 8   Foundation                     0x302d2242 0x302ce000 + 16962 9   libSystem.B.dylib             0x3110c886 0x31092000 + 501894 10  libSystem.B.dylib             0x31101a88 0x31092000 + 457352 Thread 5: 0   libSystem.B.dylib             0x310b768c 0x31092000 + 153228 1   CoreFoundation                 0x3044d662 0x303ee000 + 390754 2   libSystem.B.dylib             0x3110c886 0x31092000 + 501894 3   libSystem.B.dylib             0x31101a88 0x31092000 + 457352 Thread 0 crashed with ARM Thread State:    r0: 0x00163b70    r1: 0x0006eb67      r2: 0x00163b70      r3: 0x0006eb67    r4: 0x08d391f8    r5: 0x00000000      r6: 0x00114b50      r7: 0x2fdfeb08    r8: 0x00114c10    r9: 0x00000002     r10: 0x08d87fb0     r11: 0x00000000    ip: 0x00043319    sp: 0x2fdfeae8      lr: 0x00043341      pc: 0x33a06466  cpsr: 0x08000030 Binary Images:    0x1000 -    0x7ffff +FaceTime armv7  <effbfce4a5323305ed4e2b8ff9cfba1e> /var/mobile/Applications/C83336A3-95FB-41C4-BD8A-F38954A8320A/FaceTime.app/FaceTime  0x25a000 -   0x25bfff  dns.so armv7  <fcefecb2d5e095ba88127eec3af57ec0> /usr/lib/info/dns.so 0x2fe00000 - 0x2fe27fff  dyld armv7  <06e6959cebb4a72e66c833e26ae64d26> /usr/lib/dyld 0x30040000 - 0x30043fff  ActorKit armv7  <f5d038591e564646e9237a59c6c14293> /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit 0x30044000 - 0x30047fff  ApplePushService armv7  <9d1eb7b11f0f146c941efbab2c055606> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService 0x30048000 - 0x30088fff  CoreAudio armv7  <f32e03ee4c68f0db23f05afc9a3cc94c> /System/Library/Frameworks/CoreAudio.framework/CoreAudio 0x30089000 - 0x30092fff  ITSync armv7  <87d409553f90e41a01afce047dc2e8fe> /System/Library/PrivateFrameworks/ITSync.framework/ITSync 0x30093000 - 0x30093fff  vecLib armv7  <e53d234e808c77d286161095f92c58cf> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib 0x30094000 - 0x30095fff  DataMigration armv7  <babbc72d4d48325de147d5103d7bc00d> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration 0x30096000 - 0x300a9fff  MediaControl armv7  <874e83896424ebb3afe59a3a59ba4dfe> /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl 0x300aa000 - 0x301cafff  CoreGraphics armv7  <2d7b40a7baca915ce78b1dd9a0d6433b> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics 0x301d6000 - 0x3020bfff  ImageCapture armv7  <11cb11dea0b6910987518cfb7dfa7ba1> /System/Library/PrivateFrameworks/ImageCapture.framework/ImageCapture 0x3020c000 - 0x30212fff  IAP armv7  <134f59ad5bb91bab6a5fe21b6f36dc8b> /System/Library/PrivateFrameworks/IAP.framework/IAP 0x302a2000 - 0x302cbfff  MobileCoreServices armv7  <54484a513761868149405df7fc29b5c0> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices 0x302ce000 - 0x303edfff  Foundation armv7  <81d36041f04318cb51db5aafed9ce504> /System/Library/Frameworks/Foundation.framework/Foundation 0x303ee000 - 0x304d4fff  CoreFoundation armv7  <01441e01f5141a50ee723362e59ca400> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 0x305fb000 - 0x30631fff  CoreLocation armv7  <e19b7aa132318fc90618a663bd576461> /System/Library/Frameworks/CoreLocation.framework/CoreLocation 0x306a6000 - 0x306fffff  EventKit armv7  <037c4bb5e2529e6004d0e1f3d95a84cc> /System/Library/Frameworks/EventKit.framework/EventKit 0x3078e000 - 0x307cdfff  libGLImage.dylib armv7  <a7c117c92607a512823d307b8fdd0151> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib 0x307f9000 - 0x30816fff  AppleAccount armv7  <e3833276f8877499c8dd76b3b3d88501> /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount 0x308c2000 - 0x308f5fff  QuickLook armv7  <8c54395accc7ffc84766ff3e9b24beb1> /System/Library/Frameworks/QuickLook.framework/QuickLook 0x308f6000 - 0x309e1fff  PhotoLibrary armv7  <ae1e7ac429fc2c53c203132ba5e8e922> /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary 0x309e2000 - 0x309e5fff  ArtworkCache armv7  <1e65b5000a2234b69164e7904fcf826b> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache 0x309e6000 - 0x309eefff  MobileBluetooth armv7  <6d6c62f52219d27be50f1d7c39a68dc6> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth 0x309ef000 - 0x30a22fff  AddressBook armv7  <7c87e0175c8649d6832419da8a1cfac1> /System/Library/Frameworks/AddressBook.framework/AddressBook 0x30a23000 - 0x30a43fff  PrintKit armv7  <02a9c6f4173a0673c4637a3b570345cd> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit 0x30aa3000 - 0x30af3fff  GMM armv7  <2b63c1e1ce647e031a8a491e156f04d3> /System/Library/PrivateFrameworks/GMM.framework/GMM 0x30e64000 - 0x30eabfff  MessageUI armv7  <bb7d161bb6c699afb2e1744ece115ae8> /System/Library/Frameworks/MessageUI.framework/MessageUI 0x30fc2000 - 0x30fd4fff  iAd armv7  <a57f002be6ce2e0d048f770190af9b15> /System/Library/Frameworks/iAd.framework/iAd 0x30fd5000 - 0x31082fff  JavaScriptCore armv7  <3f2df600942dc72aad312b3cc98ec479> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore 0x31092000 - 0x311a3fff  libSystem.B.dylib armv7  <138a43ab528bb428651e6aa7a2a7293c> /usr/lib/libSystem.B.dylib 0x311af000 - 0x312cffff  libmecabra.dylib armv7  <b2293b8acb00a14bace7520a63f39439> /usr/lib/libmecabra.dylib 0x312d0000 - 0x31312fff  CoreTelephony armv7  <96d3af505b9f2887e62c7e99c157733e> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony 0x31340000 - 0x31373fff  iCalendar armv7  <6eb50e720d642f5ac510a36989b276b2> /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar 0x31398000 - 0x31719fff  UIKit armv7  <de1cbd3219a74e4d41b30428f428e223> /System/Library/Frameworks/UIKit.framework/UIKit 0x31722000 - 0x3174afff  StoreServices armv7  <f409aaf487bd7e7a08c77ba5a2a83a1a> /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices 0x3174b000 - 0x31764fff  libRIP.A.dylib armv7  <ee16b5cee12a8947c8e511ed51ae7fef> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib 0x3177f000 - 0x317b5fff  CoreText armv7  <b9b5c21b2d2a28abc47842c78c026ddf> /System/Library/Frameworks/CoreText.framework/CoreText 0x3180a000 - 0x318b3fff  libxml2.2.dylib armv7  <b3d82f80a777cb1434052ea2d232e3df> /usr/lib/libxml2.2.dylib 0x318b4000 - 0x318e0fff  DataAccess armv7  <6b9b5235b449335ce5c66d53f32004cd> /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess 0x31923000 - 0x31938fff  libresolv.9.dylib armv7  <ea156820997ae9a2baf664d0f79f18d7> /usr/lib/libresolv.9.dylib 0x31939000 - 0x31949fff  TelephonyUI armv7  <4d181ff2cf0373cf56db350e0fbc1717> /System/Library/PrivateFrameworks/TelephonyUI.framework/TelephonyUI 0x3194a000 - 0x3194cfff  SpringBoardUI armv7  <42a6b76dddc6c6aa515f27dd11f5957a> /System/Library/PrivateFrameworks/SpringBoardUI.framework/SpringBoardUI 0x3194d000 - 0x3195dfff  DataAccessExpress armv7  <6767a1e2afbc86a1ec63dd784f5d3677> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress 0x31971000 - 0x31980fff  Notes armv7  <7d7a3d10a349471cd2757a479d131b31> /System/Library/PrivateFrameworks/Notes.framework/Notes 0x31981000 - 0x31a0afff  Message armv7  <69cb7cb1d1d7865fc04dc341544174b6> /System/Library/PrivateFrameworks/Message.framework/Message 0x31a0b000 - 0x31a9efff  ImageIO armv7  <5b5a294d4250eff866fdbf891b1e8b34> /System/Library/Frameworks/ImageIO.framework/ImageIO 0x31ab8000 - 0x31b34fff  AVFoundation armv7  <4c7356c795e01bd5c21b00a409a07476> /System/Library/Frameworks/AVFoundation.framework/AVFoundation 0x31b35000 - 0x31b3afff  MobileKeyBag armv7  <cec3f3271fc267c32c169ed03e312d63> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag 0x31b3b000 - 0x31b64fff  ContentIndex armv7  <247576cb4f1ff8e92650ae3cb4973760> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex 0x31cb5000 - 0x31d56fff  Celestial armv7  <b411f4662383ec24dbfbcde8f4c23d67> /System/Library/PrivateFrameworks/Celestial.framework/Celestial 0x31d59000 - 0x31d61fff  libkxld.dylib armv7  <854e82fe66feef01e54c7c8a209851ac> /usr/lib/system/libkxld.dylib 0x31d62000 - 0x31dd1fff  ProofReader armv7  <d2e62a8ab7e1460c7f6de8913c703e6d> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader 0x31de0000 - 0x31ee7fff  CoreData armv7  <29b1ab7d339e42a6ff6923e54cf43e7b> /System/Library/Frameworks/CoreData.framework/CoreData 0x31ee8000 - 0x31ef4fff  GraphicsServices armv7  <0099670dccd99466653956bf918d667a> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices 0x31ff5000 - 0x32002fff  libbsm.0.dylib armv7  <0f4e595e6eb2170aceb729f32b5de8c2> /usr/lib/libbsm.0.dylib 0x32003000 - 0x3229dfff  libLAPACK.dylib armv7  <2e77d87e96af938aacf0a6008e6fb89d> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib 0x322e7000 - 0x32316fff  SystemConfiguration armv7  <3f982c11b5526fc39a92d585c60d8a90> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration 0x323f9000 - 0x3242afff  VideoToolbox armv7  <bb7ff9014b1dabec2acce95d41f05b59> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox 0x3242b000 - 0x324ecfff  RawCamera armv7  <b7f53a8a4a1188746c9c3d818f28795b> /System/Library/CoreServices/RawCamera.bundle/RawCamera 0x324ed000 - 0x3259cfff  WebKit armv7  <644a1c6120578f896bed7121307aa2af> /System/Library/PrivateFrameworks/WebKit.framework/WebKit 0x32644000 - 0x32687fff  ManagedConfiguration armv7  <27ac7f05482a8aa9977150f34f9be6eb> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration 0x326ae000 - 0x32764fff  MapKit armv7  <69921a6353270a6f77e0816d636812e8> /System/Library/Frameworks/MapKit.framework/MapKit 0x32765000 - 0x3276efff  WebBookmarks armv7  <9f1760206eaef20c605c5d98e45c823e> /System/Library/PrivateFrameworks/WebBookmarks.framework/WebBookmarks 0x3278a000 - 0x3279dfff  libmis.dylib armv7  <855aefc263c6c20e6cf8723ea36125a2> /usr/lib/libmis.dylib 0x3279e000 - 0x327a6fff  MobileWiFi armv7  <b29d4c5e300ef81060e38f72bb583c02> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi 0x327a7000 - 0x328e0fff  AudioToolbox armv7  <657b327f2ceee9f22f9474f2f9bddbe6> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox 0x3290a000 - 0x32947fff  CoreMedia armv7  <4ea4d349e886206d1ecf5bae870f3f04> /System/Library/Frameworks/CoreMedia.framework/CoreMedia 0x3297b000 - 0x32981fff  ProtocolBuffer armv7  <7e279d3b6d1e1fd7dc8c8a883255fa17> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer 0x32987000 - 0x329a8fff  MobileSync armv7  <cff20dfe818febca9f3232426d59a42d> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync 0x329af000 - 0x329b2fff  CertUI armv7  <5f37446c6b65a8c38ab6233c2e33da66> /System/Library/PrivateFrameworks/CertUI.framework/CertUI 0x32a10000 - 0x32a12fff  IOMobileFramebuffer armv7  <1040629f37795146c9dcac8ab1a868fc> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer 0x32a68000 - 0x32a74fff  SpringBoardServices armv7  <137b75e19b2450c234dec88d538798ff> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices 0x32a88000 - 0x32bc5fff  MediaToolbox armv7  <a18bbcc41a38917fe0ae5e183d3f6b07> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox 0x32c80000 - 0x32c8efff  DataDetectorsCore armv7  <31929ee8505b90fb51d269cd4763f2e8> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/DataDetectorsCore 0x32c8f000 - 0x32c93fff  AssetsLibraryServices armv7  <e861a330d14702f148ca5133dcbe954c> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices 0x32ca7000 - 0x32ca9fff  MobileInstallation armv7  <8e6b0d9f642be06729ffdaaee97053b0> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation 0x32caa000 - 0x32cb5fff  libz.1.dylib armv7  <fabaddbcbc8c02bab0261df9d78e0e25> /usr/lib/libz.1.dylib 0x32cba000 - 0x32cc9fff  MobileDeviceLink armv7  <8f2fc7e811bc57f7a09d7df81c329e1a> /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink 0x32ccb000 - 0x32cd8fff  OpenGLES armv7  <a12565ffb5bb42e3019f1957cd4951d0> /System/Library/Frameworks/OpenGLES.framework/OpenGLES 0x32cda000 - 0x32cdffff  libMobileGestalt.dylib armv7  <5f73c7138ee1cb7103a98aec99f9ed88> /usr/lib/libMobileGestalt.dylib 0x32d17000 - 0x32d1dfff  liblockdown.dylib armv7  <5bbd9b3f5cfece328f80c403a8805ce9> /usr/lib/liblockdown.dylib 0x32d1e000 - 0x32d69fff  libBLAS.dylib armv7  <251c5ac7380802a16e30d827c027c637> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib 0x32d6a000 - 0x32e18fff  QuartzCore armv7  <83a8e5f0033369e437069c1e758fed83> /System/Library/Frameworks/QuartzCore.framework/QuartzCore 0x32e19000 - 0x32f2ffff  libicucore.A.dylib armv7  <e7fbb2ac586567e574dc33d7bb5c4dc9> /usr/lib/libicucore.A.dylib 0x32f5b000 - 0x32f5efff  CaptiveNetwork armv7  <a2af7147f5538d7669b14fa7b19b5a7c> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork 0x32f5f000 - 0x3301efff  CFNetwork armv7  <02fe0e30e54fffdcbbbd02e8cb812c3a> /System/Library/Frameworks/CFNetwork.framework/CFNetwork 0x33026000 - 0x33054fff  MIME armv7  <1989502ce4da514314647c6a0098d8e7> /System/Library/PrivateFrameworks/MIME.framework/MIME 0x330c3000 - 0x330fbfff  libCGFreetype.A.dylib armv7  <374bd566263e8929c10d50d6a6a48a46> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib 0x330fd000 - 0x33106fff  CoreVideo armv7  <2092d5deb6b234e04678b7c1878ccd81> /System/Library/Frameworks/CoreVideo.framework/CoreVideo 0x33128000 - 0x33135fff  DataDetectorsUI armv7  <a7e33ab2817110626fa1c5c731419101> /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI 0x3314b000 - 0x33195fff  libstdc++.6.dylib armv7  <53a6e7239c3908fa8c2915b65ff3b056> /usr/lib/libstdc++.6.dylib 0x3319e000 - 0x331a1fff  IOSurface armv7  <deff02882166bf16d0765d68f0542cc8> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface 0x331a2000 - 0x331a4fff  libAccessibility.dylib armv7  <3f0b58ea13d30f0cdb73f6ffe6d4e75c> /usr/lib/libAccessibility.dylib 0x331bd000 - 0x334cdfff  GeoServices armv7  <f6d9eba833e82b1a9a84b38ab7672012> /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices 0x334db000 - 0x33528fff  libsqlite3.dylib armv7  <55038e5c1d4d0dbdd94295e8cad7a9a4> /usr/lib/libsqlite3.dylib 0x33890000 - 0x338c2fff  AppSupport armv7  <47c8055ac99f187174ca373b702ffa68> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport 0x338c3000 - 0x338cafff  libbz2.1.0.dylib armv7  <2989ea7a5cad2cfe91bd632b041d0ff4> /usr/lib/libbz2.1.0.dylib 0x339bf000 - 0x339f9fff  IOKit armv7  <eb932cc42d60e55d9a4d0691bcc3d9ad> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x33a03000 - 0x33ac4fff  libobjc.A.dylib armv7  <aaf5671a35f9ac20d5846703dafaf4c6> /usr/lib/libobjc.A.dylib 0x33aeb000 - 0x33aedfff  libgcc_s.1.dylib armv7  <e66758bcda6da5d7f9b54fa5c4de6da2> /usr/lib/libgcc_s.1.dylib 0x33aee000 - 0x33b43fff  libvDSP.dylib armv7  <9365fc6cae1bff737257e74faf3b1f26> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib 0x33b4f000 - 0x33c3cfff  libiconv.2.dylib armv7  <c72b45f471df092dbd849081f7a3ef53> /usr/lib/libiconv.2.dylib 0x33ca7000 - 0x35620fff  TextInput armv7  <557601a7d93124fd5860606f294e900a> /System/Library/PrivateFrameworks/TextInput.framework/TextInput 0x35621000 - 0x35621fff  Accelerate armv7  <29dd5f17440bbb6e8e42e11b6fceda9a> /System/Library/Frameworks/Accelerate.framework/Accelerate 0x35625000 - 0x35717fff  MusicLibrary armv7  <34edbee423aa7e2ea32ad4eed0620b85> /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary 0x3576d000 - 0x35770fff  libGFXShared.dylib armv7  <3a385ed495379116abbe50bc8cd5a612> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib 0x35836000 - 0x3591efff  libGLProgrammability.dylib armv7  <1f478a71783cd7eb4ae9ef6f2dcea803> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib 0x35936000 - 0x35a45fff  MediaPlayer armv7  <9337abd4fdd749473efaefe64ee649a0> /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer 0x35a46000 - 0x35a48fff  CrashReporterSupport armv7  <30a5f1edcdb9ffe868a620199a4cbe12> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport 0x35a49000 - 0x35a53fff  AccountSettings armv7  <19c79f81d5d55fe2e6b618fcdc28258e> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings 0x35a5e000 - 0x35a5ffff  CoreSurface armv7  <f7caaf43609cfe0e475dfe83790edb4d> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface 0x35a61000 - 0x35a63fff  Camera armv7  <72ac72d4c09246d0774cda087069fb26> /System/Library/PrivateFrameworks/Camera.framework/Camera 0x35a64000 - 0x35a7afff  EAP8021X armv7  <36659ec2b9def7b5798a05327e369247> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X 0x35a7b000 - 0x36063fff  WebCore armv7  <d6bd9cf88ee82ab6b0e33e0ae1190772> /System/Library/PrivateFrameworks/WebCore.framework/WebCore 0x36064000 - 0x36083fff  Bom armv7  <0f5fd6057bad5e1677869500d636821f> /System/Library/PrivateFrameworks/Bom.framework/Bom 0x3608d000 - 0x36094fff  AggregateDictionary armv7  <71372c95d4af7af787d0682a939e40ac> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary 0x36097000 - 0x3612dfff  AddressBookUI armv7  <45665471fd70b0733b206d8166df74ef> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI 0x3612e000 - 0x36140fff  PersistentConnection armv7  <cd2a699aa5036bdad0517603ba4db839> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection 0x36141000 - 0x36178fff  Security armv7  <cd28e102950634ae7167ddee9c686d36> /System/Library/Frameworks/Security.framework/Security I dont understand this log pls any one help me
1
11,545,802
07/18/2012 16:13:40
1,535,319
07/18/2012 15:29:45
1
0
comparing query results from within the same table
RDBMS SQL Server, T-SQL Consider a table that links information from two different tables: Articles and Categories. This table contains for each Article one or several entries containing the ID of the Categories the Article belongs to. Therefore, a SELECT * FROM TABLE WHERE ARTICLEID=X returns 1 to n results. I am looking to build a query which allows me to compare Articles that have the exact same combination of Categories. I've been trying with INTERSECT, but that does not return any rows. An example: ARTICLEID CATEGORYID 1 1 1 2 1 4 2 1 2 4 3 1 3 2 3 4 4 2 4 4 5 1 5 2 5 4 The query for ARTICLEID=1 should return 3 and 5, for ARTICLEID=3 should return 1 and 5, etcetera.
sql
tsql
intersect
null
null
null
open
comparing query results from within the same table === RDBMS SQL Server, T-SQL Consider a table that links information from two different tables: Articles and Categories. This table contains for each Article one or several entries containing the ID of the Categories the Article belongs to. Therefore, a SELECT * FROM TABLE WHERE ARTICLEID=X returns 1 to n results. I am looking to build a query which allows me to compare Articles that have the exact same combination of Categories. I've been trying with INTERSECT, but that does not return any rows. An example: ARTICLEID CATEGORYID 1 1 1 2 1 4 2 1 2 4 3 1 3 2 3 4 4 2 4 4 5 1 5 2 5 4 The query for ARTICLEID=1 should return 3 and 5, for ARTICLEID=3 should return 1 and 5, etcetera.
0
7,384,139
09/12/2011 06:39:55
930,079
09/06/2011 06:43:23
1
0
Blackberry: Web Filtering
I want to block the particular website from access to user. Is there is any API to block the website on blackberry. Or is there is any way by which i can get the notification that which website is opened. thanks in advance
blackberry
null
null
null
null
09/13/2011 10:46:40
off topic
Blackberry: Web Filtering === I want to block the particular website from access to user. Is there is any API to block the website on blackberry. Or is there is any way by which i can get the notification that which website is opened. thanks in advance
2
8,120,875
11/14/2011 11:27:18
483,967
10/22/2010 08:22:32
35
0
How to retrieve attributes with XPath and Perl
I have the following XML structure: <RECORD> <TYPE ID="check_ping"> <HOSTS> <HOST H="192.168.0.1" W="50,1%" C="100,1%" /> <HOST H="192.168.0.2" W="50,1%" C="70,1%" /> </HOSTS> </TYPE> <TYPE ID="check_ssh"> <HOSTS> <HOST H="192.168.0.3" P="21"/> <HOST H="192.168.0.4" P="21"/> <HOST H="192.168.0.4" P="21"/> </HOSTS> </TYPE> .... </RECORD> I have also a Perl script that is supposed to read that XML, I am using *XML::XPath module*. use XML::XPath; #..... my $xp = XML::XPath->new(filename => 'test.xml'); #RETRIEVE ALL HOSTS WITH CHECK_SSH my $querysshh = '/RECORD/TYPE[@ID="check_ssh"]/HOSTS/HOST'; $nodeset = $xp->find($querysshh); foreach $mynode ($nodeset->get_nodelist) { #HOW DO I RETRIEVE ATTRIBUTES NOW? } #..... How can I retrieve the attributes of those nodes? For example if I want to read *H* and *P* what do I need to do? I looked at the module documentation but I couldnt find any useful method.
xml
perl
xpath
null
null
null
open
How to retrieve attributes with XPath and Perl === I have the following XML structure: <RECORD> <TYPE ID="check_ping"> <HOSTS> <HOST H="192.168.0.1" W="50,1%" C="100,1%" /> <HOST H="192.168.0.2" W="50,1%" C="70,1%" /> </HOSTS> </TYPE> <TYPE ID="check_ssh"> <HOSTS> <HOST H="192.168.0.3" P="21"/> <HOST H="192.168.0.4" P="21"/> <HOST H="192.168.0.4" P="21"/> </HOSTS> </TYPE> .... </RECORD> I have also a Perl script that is supposed to read that XML, I am using *XML::XPath module*. use XML::XPath; #..... my $xp = XML::XPath->new(filename => 'test.xml'); #RETRIEVE ALL HOSTS WITH CHECK_SSH my $querysshh = '/RECORD/TYPE[@ID="check_ssh"]/HOSTS/HOST'; $nodeset = $xp->find($querysshh); foreach $mynode ($nodeset->get_nodelist) { #HOW DO I RETRIEVE ATTRIBUTES NOW? } #..... How can I retrieve the attributes of those nodes? For example if I want to read *H* and *P* what do I need to do? I looked at the module documentation but I couldnt find any useful method.
0
4,823,549
01/28/2011 00:32:06
315,017
04/13/2010 00:04:33
6
1
Java/C# Interface wiring
Is it possible in Java or C# to wire an interface method to a particular general purpose method? In other words can I do the following without the stub methods which call the actual method: public interface IInterface1 { object DoSomething(object withThis); } public interface IInterface2 { object DoSomethingElse(object withThis); } public class SomeClass : IInterface1, IInterface2 { object DoesNothing(object withThis) { return withThis; } object IInterface1.DoSomething(object withThis) // stub method { return DoesNothing(object withThis); } object IInterface2.DoSomethingElse(object withThis) // stub method { return DoesNothing(object withThis); } } I hope that the compiler would be smart enough to realize that all it has to do is wire IInterface1 and IInterface2 to the DoSomethingElse method and not be jumping through the stub methods...? Cheers, J
c#
java
interface
null
null
null
open
Java/C# Interface wiring === Is it possible in Java or C# to wire an interface method to a particular general purpose method? In other words can I do the following without the stub methods which call the actual method: public interface IInterface1 { object DoSomething(object withThis); } public interface IInterface2 { object DoSomethingElse(object withThis); } public class SomeClass : IInterface1, IInterface2 { object DoesNothing(object withThis) { return withThis; } object IInterface1.DoSomething(object withThis) // stub method { return DoesNothing(object withThis); } object IInterface2.DoSomethingElse(object withThis) // stub method { return DoesNothing(object withThis); } } I hope that the compiler would be smart enough to realize that all it has to do is wire IInterface1 and IInterface2 to the DoSomethingElse method and not be jumping through the stub methods...? Cheers, J
0
6,565,470
07/03/2011 20:48:01
445,126
09/11/2010 14:33:35
1,591
71
<body> element not at the top of the page
Over at my site, I have noticed that while the scrollTo() method in jQuery functions fine in Firefox, it does not go to the top in Chrome. I think that has something to do with the fact that my `<body>` tag seems to start away from top of the page, but I have failed to find the CSS that is at fault! Is this a known issue or have I made a mistake? [http://mildfuzz.com][1] [1]: http://mildfuzz.com
jquery
css
firefox
google-chrome
scrollto
07/04/2011 12:45:04
not a real question
<body> element not at the top of the page === Over at my site, I have noticed that while the scrollTo() method in jQuery functions fine in Firefox, it does not go to the top in Chrome. I think that has something to do with the fact that my `<body>` tag seems to start away from top of the page, but I have failed to find the CSS that is at fault! Is this a known issue or have I made a mistake? [http://mildfuzz.com][1] [1]: http://mildfuzz.com
1
5,817,005
04/28/2011 10:13:13
630,064
02/23/2011 11:18:06
23
0
javascript in html form
I have make a one small application in iphone. and in that application one webview is there in which two radio button is there. And i would like to pass the value of radio button (eg.yes or no) with javascript in html form for store the value of botton, so how can i do that. please reply
javascript
html
null
null
null
null
open
javascript in html form === I have make a one small application in iphone. and in that application one webview is there in which two radio button is there. And i would like to pass the value of radio button (eg.yes or no) with javascript in html form for store the value of botton, so how can i do that. please reply
0
1,003,354
06/16/2009 19:00:41
83,528
03/27/2009 08:28:55
427
24
plugin tasklist asp.net or javascript
I would like to add a taglist in my webapplication. I have a list of tags with an integer indicating each tag's popularity. Many web applications display the tags and their popularity using a different font-size. Because it is so broadly used, I would think that their is a plugin out there that displays this. An example of what I mean by a taglist can be found here: [http://www.flickr.com/photos/tags/][1] [1]: http://www.flickr.com/photos/tags/ Does anyone of you know some kind of plugin that deals with this? Thanks in advance!
tags
javascript
asp.net
null
null
null
open
plugin tasklist asp.net or javascript === I would like to add a taglist in my webapplication. I have a list of tags with an integer indicating each tag's popularity. Many web applications display the tags and their popularity using a different font-size. Because it is so broadly used, I would think that their is a plugin out there that displays this. An example of what I mean by a taglist can be found here: [http://www.flickr.com/photos/tags/][1] [1]: http://www.flickr.com/photos/tags/ Does anyone of you know some kind of plugin that deals with this? Thanks in advance!
0
8,003,441
11/03/2011 23:56:33
289,319
03/09/2010 02:42:06
1,736
71
What is a MySQL Server Instance?
I'm trying to understand what is meant by a Server Instance in MySQL. Googling for the term "MySQL Server Instance" reveals absolutely nothing! Further, the only reference I can find in the documentation refers to using New Server Instance Wizard, but doesn't seem to explain why I'd ever want to use this. Coming from a Microsoft SQL Server background, a (named) instance is a completely separate and isolated installation of the server, running in its own process and on its own port. However, in MySQL a (server) instance seems to be a different beast, as for starters it seems to use the same port as my "existing" "instance". From the Home page of MySQL Workbench, I have the option on the right hand side to create a New Server Instance. What is a MySQL Server Instance, and why would I ever want to create a new one?
mysql
sql-server
null
null
null
null
open
What is a MySQL Server Instance? === I'm trying to understand what is meant by a Server Instance in MySQL. Googling for the term "MySQL Server Instance" reveals absolutely nothing! Further, the only reference I can find in the documentation refers to using New Server Instance Wizard, but doesn't seem to explain why I'd ever want to use this. Coming from a Microsoft SQL Server background, a (named) instance is a completely separate and isolated installation of the server, running in its own process and on its own port. However, in MySQL a (server) instance seems to be a different beast, as for starters it seems to use the same port as my "existing" "instance". From the Home page of MySQL Workbench, I have the option on the right hand side to create a New Server Instance. What is a MySQL Server Instance, and why would I ever want to create a new one?
0
6,174,835
05/30/2011 09:59:22
718,248
04/21/2011 03:49:36
3
0
What's the best way create a pyramid-like html table?
I'm trying to create a table like this: <pre> A B C D E </pre> In which case each line is centered and the cells are evenly distributed. I'm currently using nested tables but feel that's not the best solution. Anyone has a better idea? Thanks.
html
css
table
null
null
null
open
What's the best way create a pyramid-like html table? === I'm trying to create a table like this: <pre> A B C D E </pre> In which case each line is centered and the cells are evenly distributed. I'm currently using nested tables but feel that's not the best solution. Anyone has a better idea? Thanks.
0
9,508,305
02/29/2012 23:25:47
1,031,962
11/06/2011 08:11:27
-5
0
MATLAB code Output
In Matlab, what would be the output for the following, v = [1 2 3 4] b = [2 2 2 2]' output of this calculation, v + b
c
matlab
math
matrix
null
03/01/2012 20:52:41
not a real question
MATLAB code Output === In Matlab, what would be the output for the following, v = [1 2 3 4] b = [2 2 2 2]' output of this calculation, v + b
1
11,007,824
06/13/2012 03:27:47
1,411,651
05/23/2012 04:14:58
1
0
How to use New-Object of a class present in a C# DLL using PowerShell--different data types
I'm making two objects in C# that I use in my PowerShell Code. I want to make a FeatureObject, set its variables; then make FeatureAttributes and add it to the list in the FeatureObject. I can set and get the strings, ints, ect.--but I'm having trouble adding the FeatureAttribute to the List in the FeatureObject. C# using System; using System.Collections; using System.Collections.Generic; public class FeatureObject { public string layerName; public int numFeatures; public string geometry; public string unit; public List<FeatureAttr> ftcAttr {get; set; } } public class FeatureAttribute { public string AttrKeyName; public string AttrDataType; public string AttrNumericRange; List<String> allValuesOfAttr = new List<String>(); public void setValueOfAttr (string value) { this.allValuesOfAttr.Add(value); } public List<String> getValuesOfAttr() { return(this.allValuesOfAttr); } } PS $ftcObj = New-Object FeatureObject $ftcObj.geometry = $geometry ...ect. Also: Do I always need to explicitly declare my getters and setters like below and above? Can't I just get and set the data like $ftcObj.geometry = $geometry ?? public string geometry { get { return geometry; } set { geometry = value; } } or public string geometry {get; set; } Help Please!
c#
list
object
dll
powershell
null
open
How to use New-Object of a class present in a C# DLL using PowerShell--different data types === I'm making two objects in C# that I use in my PowerShell Code. I want to make a FeatureObject, set its variables; then make FeatureAttributes and add it to the list in the FeatureObject. I can set and get the strings, ints, ect.--but I'm having trouble adding the FeatureAttribute to the List in the FeatureObject. C# using System; using System.Collections; using System.Collections.Generic; public class FeatureObject { public string layerName; public int numFeatures; public string geometry; public string unit; public List<FeatureAttr> ftcAttr {get; set; } } public class FeatureAttribute { public string AttrKeyName; public string AttrDataType; public string AttrNumericRange; List<String> allValuesOfAttr = new List<String>(); public void setValueOfAttr (string value) { this.allValuesOfAttr.Add(value); } public List<String> getValuesOfAttr() { return(this.allValuesOfAttr); } } PS $ftcObj = New-Object FeatureObject $ftcObj.geometry = $geometry ...ect. Also: Do I always need to explicitly declare my getters and setters like below and above? Can't I just get and set the data like $ftcObj.geometry = $geometry ?? public string geometry { get { return geometry; } set { geometry = value; } } or public string geometry {get; set; } Help Please!
0
53,417
09/10/2008 04:38:19
2,847
08/25/2008 14:12:52
595
45
NHibernate or LINQ to SQL
If starting a new project what would you use for your ORM NHibernate or LINQ and why. What are the pros and cons of each. edit: LINQ to SQL not just LINQ (thanks @Jon Limjap)
nhibernate
linq
c#
.net
null
07/22/2012 02:42:19
not constructive
NHibernate or LINQ to SQL === If starting a new project what would you use for your ORM NHibernate or LINQ and why. What are the pros and cons of each. edit: LINQ to SQL not just LINQ (thanks @Jon Limjap)
4
2,216,688
02/07/2010 10:35:34
213,042
11/17/2009 16:36:48
436
16
Is there a PHP IDE that can handle Magento's code base?
Magento has a large code base (6000+ php files), uses a complex autoloading logic, and has a lot of configuration in XML. I'm looking for an IDE that can get it's little brain around this code base - show me where a function is declared, where it's called, etc. Is there any IDE that can handle this beast?
magento
php
ide
null
null
null
open
Is there a PHP IDE that can handle Magento's code base? === Magento has a large code base (6000+ php files), uses a complex autoloading logic, and has a lot of configuration in XML. I'm looking for an IDE that can get it's little brain around this code base - show me where a function is declared, where it's called, etc. Is there any IDE that can handle this beast?
0
9,375,846
02/21/2012 10:24:23
1,208,848
02/14/2012 10:34:04
1
0
Rails: test code in lib directory with RubyTest with Sublime Text 2
I would like test code in the lib directory of Rails. I use RubyTest to work in Sublime Text 2. My library is in `lib/my_lib`. module MyLib def self.get_zero 0 end end My unit test is in `test/unit/lib/my_lib` require 'test/unit' require 'my_lib/my_class_to_test' module MyLib class MyClassToTestTest < Test::Unit::TestCase def test_zero assert_equal(0, MyLib::get_zero) end end end Unit tests pass when I run them with the command line: rake test:units To save time I can run only my unit test with this command line: ruby -I"lib" test/unit/lib/my_lib/my_class_to_test_test.rb I would like use RubyTest with Sublime Text 2 but when I use it (Maj+Ctrl+R) I obtain error : test/unit/lib/my_lib/my_class_to_test_test.rb:3:in `require': no such file to load -- my_lib/my_class_to_test (LoadError) from test/unit/lib/my_lib/my_class_to_test_test.rb:3 How RubyTest could load the lib directory in the path ?
ruby-on-rails
sublimetext
ruby-test
null
null
null
open
Rails: test code in lib directory with RubyTest with Sublime Text 2 === I would like test code in the lib directory of Rails. I use RubyTest to work in Sublime Text 2. My library is in `lib/my_lib`. module MyLib def self.get_zero 0 end end My unit test is in `test/unit/lib/my_lib` require 'test/unit' require 'my_lib/my_class_to_test' module MyLib class MyClassToTestTest < Test::Unit::TestCase def test_zero assert_equal(0, MyLib::get_zero) end end end Unit tests pass when I run them with the command line: rake test:units To save time I can run only my unit test with this command line: ruby -I"lib" test/unit/lib/my_lib/my_class_to_test_test.rb I would like use RubyTest with Sublime Text 2 but when I use it (Maj+Ctrl+R) I obtain error : test/unit/lib/my_lib/my_class_to_test_test.rb:3:in `require': no such file to load -- my_lib/my_class_to_test (LoadError) from test/unit/lib/my_lib/my_class_to_test_test.rb:3 How RubyTest could load the lib directory in the path ?
0
4,764,105
01/21/2011 21:42:40
242,241
09/19/2008 21:40:11
2,406
139
How to post UTF-8 text from MySQL to Twitter successfully
I have some text in UTF-8. I put it into a MySQL database, collation `utf8_general_ci` and then I've been auto-posting it to Twitter via Net::Twitter. But when I post it, even though Twitter itself seems to be expecting UTF-8, going by the content-type in their input pages, I'm getting those artefacts you get when UTF-8 text is misinterpreted: é comes out as é for instance. So ... at what point is this going wrong? How can I ensure it makes the trip undamaged? * Set my script to treat all text as UTF-8 somehow? * Make sure I extract it from the database in UTF-8? * Tell Net::Twitter that it's posting in UTF-8?
mysql
perl
twitter
character-encoding
null
null
open
How to post UTF-8 text from MySQL to Twitter successfully === I have some text in UTF-8. I put it into a MySQL database, collation `utf8_general_ci` and then I've been auto-posting it to Twitter via Net::Twitter. But when I post it, even though Twitter itself seems to be expecting UTF-8, going by the content-type in their input pages, I'm getting those artefacts you get when UTF-8 text is misinterpreted: é comes out as é for instance. So ... at what point is this going wrong? How can I ensure it makes the trip undamaged? * Set my script to treat all text as UTF-8 somehow? * Make sure I extract it from the database in UTF-8? * Tell Net::Twitter that it's posting in UTF-8?
0
11,605,197
07/23/2012 00:39:57
1,544,669
07/23/2012 00:27:25
1
0
Sign personal certificate with digicert wildcard certificate
we have a wildcard certificate (*.ourcompany.com) purchased form digicert. I have been asked to set up a system wherein certain employee's have their own SSL Cert, to be used for signing PDF's, etc. I have the impression that I can create these and sign them using our certificate, making them valid. however all my searching is finding me "code signing certificates" which is not at all what we are looking to do. I _believe_ we need to make a certificate signing request somehow, with the individuals details, then sign that request, however I am unsure exactly how to do so (especially given all the different files that make up the cert we were given). Here's what I have received: |digicert/ |-star_ourcompany_com.csr |-star_ourcompany_com.key |-certs/ |--DigiCertCA2.crt |--star_ourcompany_com.crt |--TrustedRoot.crt Can anyone shed any light on the best way to do this?
ssl
openssl
ssl-certificate
null
null
07/24/2012 02:06:31
off topic
Sign personal certificate with digicert wildcard certificate === we have a wildcard certificate (*.ourcompany.com) purchased form digicert. I have been asked to set up a system wherein certain employee's have their own SSL Cert, to be used for signing PDF's, etc. I have the impression that I can create these and sign them using our certificate, making them valid. however all my searching is finding me "code signing certificates" which is not at all what we are looking to do. I _believe_ we need to make a certificate signing request somehow, with the individuals details, then sign that request, however I am unsure exactly how to do so (especially given all the different files that make up the cert we were given). Here's what I have received: |digicert/ |-star_ourcompany_com.csr |-star_ourcompany_com.key |-certs/ |--DigiCertCA2.crt |--star_ourcompany_com.crt |--TrustedRoot.crt Can anyone shed any light on the best way to do this?
2
8,116,500
11/14/2011 01:58:10
796,530
06/13/2011 19:45:46
150
1
Is FORTRAN to HPC as Assembly Language/C is to Operating Systems?
I am working on High Performance Computing for quiet some time now and have been regularly using various C++ Libraries like Boost uBLAS, MTL4 etc for my work. And I have been wondering about the relevance of FORTRAN in the big picture. I have observed that though the libraries are now written in C++. the basic kernels used is still the BLAS written in FORTRAN. And though there are a lot of questions about whether to use C++ Libraries or FORTRAN, and then many are responded to with the answer that C++ should be used, the compilation of libraries with BLAS always seems to improve the performance. Similarly, whatever operating system you write for real hardware, there would be some ASM in it, a lot of C and then C++. This is partly due to performance and mainly due to the low level control needed on the hardware for writing an OS. And the situation is healthy. It is not as if it is some kind of backward compatibility compromise of something. So my question is, is FORTRAN to HPC like Assemble Program/C is to Operating Systems? Similarly, suppose a new architecture was to emerge in CPU with lot many registers and many differences from the i386. Then would it still make sense to write the BLAS routine in FORTRAN or C++ should be the way to go assuming that the compilers for both the language are as good as they are now for x64/i386 architectures? Or is the BLAS still used because many people wrote very excellently efficient routines in it and since then, no one wanted to "reinvent the wheel"?
c++
fortran
hpc
null
null
11/14/2011 06:25:54
not constructive
Is FORTRAN to HPC as Assembly Language/C is to Operating Systems? === I am working on High Performance Computing for quiet some time now and have been regularly using various C++ Libraries like Boost uBLAS, MTL4 etc for my work. And I have been wondering about the relevance of FORTRAN in the big picture. I have observed that though the libraries are now written in C++. the basic kernels used is still the BLAS written in FORTRAN. And though there are a lot of questions about whether to use C++ Libraries or FORTRAN, and then many are responded to with the answer that C++ should be used, the compilation of libraries with BLAS always seems to improve the performance. Similarly, whatever operating system you write for real hardware, there would be some ASM in it, a lot of C and then C++. This is partly due to performance and mainly due to the low level control needed on the hardware for writing an OS. And the situation is healthy. It is not as if it is some kind of backward compatibility compromise of something. So my question is, is FORTRAN to HPC like Assemble Program/C is to Operating Systems? Similarly, suppose a new architecture was to emerge in CPU with lot many registers and many differences from the i386. Then would it still make sense to write the BLAS routine in FORTRAN or C++ should be the way to go assuming that the compilers for both the language are as good as they are now for x64/i386 architectures? Or is the BLAS still used because many people wrote very excellently efficient routines in it and since then, no one wanted to "reinvent the wheel"?
4
8,059,297
11/09/2011 01:17:20
401,092
07/24/2010 14:55:56
4,019
254
UIAlertView in landscape mode does not display message
I am trying to create a simple UIAlertView for an app in landscape mode but all I see is the title and buttons but no actual message. It has something to do with the space available for the UIAlertView on the screen as if I remove a couple of the buttons then the message displays fine. Is there a way to force the UIAlertView to resize itself to fit? Relevant code is here UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Free Update",nil) message:NSLocalizedString(@"There is a new version of this app available in the App Store. Download it now.",nil) delegate:self cancelButtonTitle:NSLocalizedString(@"Don't remind me",nil) otherButtonTitles:NSLocalizedString(@"Download",nil), NSLocalizedString(@"Remind me later", nil), nil]; [alert show]; [alert release]; And this is the result: ![enter image description here][1] [1]: http://i.stack.imgur.com/iLJCM.png
uialertview
null
null
null
null
null
open
UIAlertView in landscape mode does not display message === I am trying to create a simple UIAlertView for an app in landscape mode but all I see is the title and buttons but no actual message. It has something to do with the space available for the UIAlertView on the screen as if I remove a couple of the buttons then the message displays fine. Is there a way to force the UIAlertView to resize itself to fit? Relevant code is here UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Free Update",nil) message:NSLocalizedString(@"There is a new version of this app available in the App Store. Download it now.",nil) delegate:self cancelButtonTitle:NSLocalizedString(@"Don't remind me",nil) otherButtonTitles:NSLocalizedString(@"Download",nil), NSLocalizedString(@"Remind me later", nil), nil]; [alert show]; [alert release]; And this is the result: ![enter image description here][1] [1]: http://i.stack.imgur.com/iLJCM.png
0
11,709,166
07/29/2012 12:15:38
701,854
04/11/2011 09:16:32
181
2
Java condition program
I am doing java programming practice from a website. I have to display this out put using arrays. Enter the number of students: 3 Enter the grade for student 1: 55 Enter the grade for student 2: 108 Invalid grade, try again... Enter the grade for student 2: 56 Enter the grade for student 3: 57 The average is 56.0 This is my source code so far. It is showing results but not working properly. It takes number of students & grade for 1st student. But then it halts, if I press any number & press enter, it asks for next grade & so on. And this way it prints average at the end. If I enter not allowed input, it catches that. What is wrong in this code. package array; import java.util.Scanner; public class GradesAverage { public static void main(String[] args) { int numStudents, sum=0; int[] grades; Scanner in = new Scanner(System.in); System.out.print("Enter number of students : "); numStudents = in.nextInt(); grades = new int[numStudents]; //System.out.println(grades.length); for (int i = 0; i < numStudents; i++) { System.out.print("Enter grade of student "+i+" :"); int temp = Integer.parseInt(in.next()); if(temp>100 || temp<0) { System.out.println("It is not a valid number!"); i--; continue; } grades[i] = Integer.parseInt(in.next()); sum+=grades[i]; } System.out.print("Average grades are: "+sum/numStudents); // -------- in.close(); } }
java
null
null
null
null
07/30/2012 03:19:05
not a real question
Java condition program === I am doing java programming practice from a website. I have to display this out put using arrays. Enter the number of students: 3 Enter the grade for student 1: 55 Enter the grade for student 2: 108 Invalid grade, try again... Enter the grade for student 2: 56 Enter the grade for student 3: 57 The average is 56.0 This is my source code so far. It is showing results but not working properly. It takes number of students & grade for 1st student. But then it halts, if I press any number & press enter, it asks for next grade & so on. And this way it prints average at the end. If I enter not allowed input, it catches that. What is wrong in this code. package array; import java.util.Scanner; public class GradesAverage { public static void main(String[] args) { int numStudents, sum=0; int[] grades; Scanner in = new Scanner(System.in); System.out.print("Enter number of students : "); numStudents = in.nextInt(); grades = new int[numStudents]; //System.out.println(grades.length); for (int i = 0; i < numStudents; i++) { System.out.print("Enter grade of student "+i+" :"); int temp = Integer.parseInt(in.next()); if(temp>100 || temp<0) { System.out.println("It is not a valid number!"); i--; continue; } grades[i] = Integer.parseInt(in.next()); sum+=grades[i]; } System.out.print("Average grades are: "+sum/numStudents); // -------- in.close(); } }
1
5,361,450
03/19/2011 10:12:40
667,167
03/19/2011 09:23:47
1
0
c++ problems in string
I HAVE A PROBLEM AGAINST "STRING FUNCTIONS" please.. i beg you to help regarding this problems about turbo C please help me.. its hard for me to answer... these are: 1.using string functions. Write a program that takes nouns and forms their plurals and the basis of these rules: a. if noun ends in "y", remove the "y"and add "les" b. if noun ends in "s", "ch", add "es" c. in all other cases, just add "s" 2.using string functions. write a program that takes data, a word at a time and reverses the words of the line. sample input/output dialogue: input string value: birds and bees reversed: bees and birds 3.using string functions. write a program that accepts the price of an item and display its coded value. the base of the key is: X C O M P U T E R S 0 1 2 3 4 5 6 7 8 9 sample input/output dialogues: Enter price:489.50 Coded value: PRS.UX 4.using string function write a program that apply substitution method. here is given substitutino table: A * E $ I / 0 + u - sample input/output dialogue: enter a message: meet me at 9:00am in the park encrypted message: m$$t m$ *t 9:00*m /n th$ p*rk
c++
null
null
null
null
03/19/2011 10:27:21
not a real question
c++ problems in string === I HAVE A PROBLEM AGAINST "STRING FUNCTIONS" please.. i beg you to help regarding this problems about turbo C please help me.. its hard for me to answer... these are: 1.using string functions. Write a program that takes nouns and forms their plurals and the basis of these rules: a. if noun ends in "y", remove the "y"and add "les" b. if noun ends in "s", "ch", add "es" c. in all other cases, just add "s" 2.using string functions. write a program that takes data, a word at a time and reverses the words of the line. sample input/output dialogue: input string value: birds and bees reversed: bees and birds 3.using string functions. write a program that accepts the price of an item and display its coded value. the base of the key is: X C O M P U T E R S 0 1 2 3 4 5 6 7 8 9 sample input/output dialogues: Enter price:489.50 Coded value: PRS.UX 4.using string function write a program that apply substitution method. here is given substitutino table: A * E $ I / 0 + u - sample input/output dialogue: enter a message: meet me at 9:00am in the park encrypted message: m$$t m$ *t 9:00*m /n th$ p*rk
1
1,482,006
09/26/2009 19:38:39
146,758
07/29/2009 00:08:44
74
2
How to create an Amazon EC2 AMI from an instance?
How to create an EC2 AMI from an instance? Ok, so I got an EC2 account. I launched an instance with Fedora 8, Apache, MySQL PHP. I also configured some things and installed Piwik. "Cool...", I thought, "... I should now be able to create an AMI with that custom configuration. Instead, all I can find are guides with 300 steps on how to create one from scratch. Maybe I am dreaming but I thought this was the easy part. What is the easiest way to create your own AMI with custom stuff installed?
amazon-ec2
cloud
virtualization
null
null
04/13/2012 17:24:46
off topic
How to create an Amazon EC2 AMI from an instance? === How to create an EC2 AMI from an instance? Ok, so I got an EC2 account. I launched an instance with Fedora 8, Apache, MySQL PHP. I also configured some things and installed Piwik. "Cool...", I thought, "... I should now be able to create an AMI with that custom configuration. Instead, all I can find are guides with 300 steps on how to create one from scratch. Maybe I am dreaming but I thought this was the easy part. What is the easiest way to create your own AMI with custom stuff installed?
2
7,798,326
10/17/2011 19:09:19
338,432
05/11/2010 15:30:02
29
0
How can I make my .net command-line exe accept img%03d.png?
Command line programs like ffmpeg.exe accept a parameter like so: c:\> ffmpeg.exe -i img%03d.png img.gif This will grab all these images in the directory and use them inside the program: img001.png img002.png img003.png img004.png Is there a clever way to implement this in my VB.net command line project, or do I have to parse the argument for the %0?
vb.net
null
null
null
null
null
open
How can I make my .net command-line exe accept img%03d.png? === Command line programs like ffmpeg.exe accept a parameter like so: c:\> ffmpeg.exe -i img%03d.png img.gif This will grab all these images in the directory and use them inside the program: img001.png img002.png img003.png img004.png Is there a clever way to implement this in my VB.net command line project, or do I have to parse the argument for the %0?
0
9,234,966
02/10/2012 21:21:12
1,176,156
01/29/2012 06:57:30
108
0
Meaning of Provability Symbol ⊢ in Axiomatic Programming Paper
I'm reading "An Axiomatic Basis for Computer Programming." They use the provability symbol ⊢ in their axioms, e.g. ⊢P {Q} R Wikipedia describes the use of that symbol as such "x ⊢ y means y is provable from x (in some specified formal system)," but that doesn't seem to fit here. What does the symbol mean? The paper can be found here: http://www.cs.ucsb.edu/~kemm/courses/cs266/acmhoare69.pdf
logic
computer-science
axiom
null
null
02/13/2012 07:27:57
off topic
Meaning of Provability Symbol ⊢ in Axiomatic Programming Paper === I'm reading "An Axiomatic Basis for Computer Programming." They use the provability symbol ⊢ in their axioms, e.g. ⊢P {Q} R Wikipedia describes the use of that symbol as such "x ⊢ y means y is provable from x (in some specified formal system)," but that doesn't seem to fit here. What does the symbol mean? The paper can be found here: http://www.cs.ucsb.edu/~kemm/courses/cs266/acmhoare69.pdf
2
2,438,362
03/13/2010 12:47:51
11,926
09/16/2008 12:22:52
407
41
List of resources to learn cassandra
Lately I have been reading a lot of blog topics about big sites(facebook, twitter, digg, reddit to name a few) using cassandra as their datastore instead of MysqL. I would like to gather a list of resources to learn using cassandra. Hopefully some videos or podcasts explaining how to use cassandra. My list ------- - [Twissandra][1] - Twissandra is an example project, created to learn and demonstrate how to use Cassandra. Running the project will present a website that has similar functionality to Twitter - [WTF is a supercolumn][2] - WTF is a SuperColumn? An Intro to the Cassandra Data Model I hope there are resources to watch howto use cassandra. Many thanks, Alfred [1]: http://github.com/ericflo/twissandra [2]: http://arin.me/blog/wtf-is-a-supercolumn-cassandra-data-model
cassandra
resources
list
null
null
02/27/2012 17:32:09
not constructive
List of resources to learn cassandra === Lately I have been reading a lot of blog topics about big sites(facebook, twitter, digg, reddit to name a few) using cassandra as their datastore instead of MysqL. I would like to gather a list of resources to learn using cassandra. Hopefully some videos or podcasts explaining how to use cassandra. My list ------- - [Twissandra][1] - Twissandra is an example project, created to learn and demonstrate how to use Cassandra. Running the project will present a website that has similar functionality to Twitter - [WTF is a supercolumn][2] - WTF is a SuperColumn? An Intro to the Cassandra Data Model I hope there are resources to watch howto use cassandra. Many thanks, Alfred [1]: http://github.com/ericflo/twissandra [2]: http://arin.me/blog/wtf-is-a-supercolumn-cassandra-data-model
4
9,009,599
01/25/2012 20:13:05
1,128,327
01/03/2012 17:18:04
11
1
IE9 3d surface chart
I'm looking for an API or some sort of solution to do 3d surface charts within IE9, and I like how [javascript-surface-plot](http://code.google.com/p/javascript-surface-plot/) works, but it does not work in IE9. Are there any other ways to do 3d rendering like that for charts in IE9? I'm using Telerik controls for my other charts, but they do not seem to have a 3d surface chart. I've also considered the use of a java applet, but would like to keep the load lightweight. Flash is not an option. Just to clarify, when I say "3d" I don't mean shiny bar charts. I mean a x,y,z rendered scene that can be rotated with the mouse similar to how java-script-surface-plot is done. Thanks!
c#
javascript
asp.net
telerik
internet-explorer-9
null
open
IE9 3d surface chart === I'm looking for an API or some sort of solution to do 3d surface charts within IE9, and I like how [javascript-surface-plot](http://code.google.com/p/javascript-surface-plot/) works, but it does not work in IE9. Are there any other ways to do 3d rendering like that for charts in IE9? I'm using Telerik controls for my other charts, but they do not seem to have a 3d surface chart. I've also considered the use of a java applet, but would like to keep the load lightweight. Flash is not an option. Just to clarify, when I say "3d" I don't mean shiny bar charts. I mean a x,y,z rendered scene that can be rotated with the mouse similar to how java-script-surface-plot is done. Thanks!
0
3,292,954
07/20/2010 18:08:49
348,311
05/23/2010 14:58:10
77
5
Friends Referral
I want a PHP code to load contact list from Hotmail, Yahoo and Gmail something like a friend referral scripts. if possible, I don`t want something ready-made (except for the connection libraries) ...
php
null
null
null
null
07/21/2010 02:29:24
not a real question
Friends Referral === I want a PHP code to load contact list from Hotmail, Yahoo and Gmail something like a friend referral scripts. if possible, I don`t want something ready-made (except for the connection libraries) ...
1
7,299,205
09/04/2011 12:29:12
438,755
09/03/2010 08:03:08
95
1
debian php5.2 php5.3 virtualmin
Is there a way to run both version in same time? Is there a guide somewhere? I've managed to compile PHP5.2 and enable FastCGI Thanks.
linux
debian
null
null
null
09/04/2011 20:27:14
off topic
debian php5.2 php5.3 virtualmin === Is there a way to run both version in same time? Is there a guide somewhere? I've managed to compile PHP5.2 and enable FastCGI Thanks.
2
8,868,712
01/15/2012 09:25:46
1,039,228
11/10/2011 07:30:59
1
0
magento redirects to another subdomain based on cookie in multi stores
I have a magento store but currently decided to add other stores to separate the inventory and also have a clean catalog so i decided to create stores and host them on sub-domains like electronics.mydomain.com and sport.mydomain.com. i followed this tutorial http://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/ but after it the sub-domains were still redirecting to main domain like www.mydomain.com even though i had done nothing with my .htaccess, i found a way to go about it by opening the index.php in my subdomain directory and adding $_GET['___store']= "STORECODE"; and also in my admin panel i typed .mydomain.com in the cookie field and also prolonged the duration to 1 day. **Voila..** everything is working now perfectly until i realized there was a problem, whenever i visit any of my stores(which is installed on the subdomain) and then try to open my main domain that is the www.mydomain.com, it redirects to subdomain.mydomain.com(which is the url of the last subdomain i checked) but then it works again after clearing cookies, i realised the problem is that magento is saving the current store id in the cookie so when i opens my main domain and the cookie is read, that store is returned and therefore the redirect. The next problem is whenever i visit any of the stores i see the link as www.subdomain.mydomain.com?SID=sid&__store=storeid, is there a way i can remove the sid(session ID) and the __store variable to imporve my seo. here is the link to my site http://welspot.com Thank you. This thing is chewing my head all day but is there any better way to go about it*emphasized text*
php
.htaccess
magento
null
null
null
open
magento redirects to another subdomain based on cookie in multi stores === I have a magento store but currently decided to add other stores to separate the inventory and also have a clean catalog so i decided to create stores and host them on sub-domains like electronics.mydomain.com and sport.mydomain.com. i followed this tutorial http://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/ but after it the sub-domains were still redirecting to main domain like www.mydomain.com even though i had done nothing with my .htaccess, i found a way to go about it by opening the index.php in my subdomain directory and adding $_GET['___store']= "STORECODE"; and also in my admin panel i typed .mydomain.com in the cookie field and also prolonged the duration to 1 day. **Voila..** everything is working now perfectly until i realized there was a problem, whenever i visit any of my stores(which is installed on the subdomain) and then try to open my main domain that is the www.mydomain.com, it redirects to subdomain.mydomain.com(which is the url of the last subdomain i checked) but then it works again after clearing cookies, i realised the problem is that magento is saving the current store id in the cookie so when i opens my main domain and the cookie is read, that store is returned and therefore the redirect. The next problem is whenever i visit any of the stores i see the link as www.subdomain.mydomain.com?SID=sid&__store=storeid, is there a way i can remove the sid(session ID) and the __store variable to imporve my seo. here is the link to my site http://welspot.com Thank you. This thing is chewing my head all day but is there any better way to go about it*emphasized text*
0
5,882,186
05/04/2011 10:44:56
725,430
04/26/2011 13:13:33
67
0
Make Title Float Over Content
[On this page][1] I'm trying to make the title float over the content so that they are in line... I've tried to give the title similar CSS to the content as far as positioning is concerned. I'd be grateful for any tips! Thanks guys, Tara [1]: http://www.2touchrulz.com/courses/
css
null
null
null
null
05/09/2011 01:19:45
not a real question
Make Title Float Over Content === [On this page][1] I'm trying to make the title float over the content so that they are in line... I've tried to give the title similar CSS to the content as far as positioning is concerned. I'd be grateful for any tips! Thanks guys, Tara [1]: http://www.2touchrulz.com/courses/
1
6,751,553
07/19/2011 17:40:44
784,925
06/05/2011 17:11:15
441
15
java what is the industry standard web framework
I've seen a lot of questions on here on what is the best web framework for java, but what I want to know is what is the most common one used in industry. If I wanted to get a job developing java based web applications which is the one that will be the most useful to have on my resume? Is it JSF since that's backed by oracle? I've also seen Spring mentioned a lot. Once again, I'm not looking for the easiest to use or the newest, but the one that will be the most useful for getting a well paying job.
java
web-applications
frameworks
null
null
07/19/2011 18:55:55
not constructive
java what is the industry standard web framework === I've seen a lot of questions on here on what is the best web framework for java, but what I want to know is what is the most common one used in industry. If I wanted to get a job developing java based web applications which is the one that will be the most useful to have on my resume? Is it JSF since that's backed by oracle? I've also seen Spring mentioned a lot. Once again, I'm not looking for the easiest to use or the newest, but the one that will be the most useful for getting a well paying job.
4
8,832,464
01/12/2012 09:10:33
771,291
05/26/2011 12:28:22
6
0
i need a java script or jquery to convert css files according to screen size as i`m working on responsive design
i can target all browsers using this code: `<link rel="stylesheet" media="screen and (min-device-width: 1024px)" href="large.css"/> <link rel='stylesheet' media='screen and (min-width: 1023px) and (max-width: 1025px)' href='medium.css' /> <link rel='stylesheet' media="screen and (min-width: 419px) and (max-width: 1023px)" href='small.css' /> ` but media query design does not work on old versions of IE so i have a problem with that browser as usual
javascript
jquery
css
responsive-design
null
01/13/2012 10:57:41
not a real question
i need a java script or jquery to convert css files according to screen size as i`m working on responsive design === i can target all browsers using this code: `<link rel="stylesheet" media="screen and (min-device-width: 1024px)" href="large.css"/> <link rel='stylesheet' media='screen and (min-width: 1023px) and (max-width: 1025px)' href='medium.css' /> <link rel='stylesheet' media="screen and (min-width: 419px) and (max-width: 1023px)" href='small.css' /> ` but media query design does not work on old versions of IE so i have a problem with that browser as usual
1
8,959,836
01/22/2012 08:06:39
288,613
03/08/2010 08:49:08
847
12
debian package to ko file
I have downloaded hp-be2net_4.0.359.0-2_all.deb package which is used for NIC driver for linux. I installed the above package using below command dpkg --install hp-be2net_4.0.359.0-2_all.deb. Then i have checked whether the package is installed properly? dpkg --list | grep -i "be2net" Output: ii hp-be2net 4.0.359.0-2 how to convert deb to ko file ? . Because i need be2net.ko file which is the driver for network card . While installing hp-be2net_4 debian package i have not found any .ko file.
debian
null
null
null
null
01/22/2012 15:37:01
off topic
debian package to ko file === I have downloaded hp-be2net_4.0.359.0-2_all.deb package which is used for NIC driver for linux. I installed the above package using below command dpkg --install hp-be2net_4.0.359.0-2_all.deb. Then i have checked whether the package is installed properly? dpkg --list | grep -i "be2net" Output: ii hp-be2net 4.0.359.0-2 how to convert deb to ko file ? . Because i need be2net.ko file which is the driver for network card . While installing hp-be2net_4 debian package i have not found any .ko file.
2
3,756,272
09/20/2010 23:32:30
435,565
08/31/2010 05:15:14
556
0
Difference between SaaS or PaaS
Is there any general standard that defines what is a SaaS and what is a PaaS. The 2 seems to be used interchangeably? My guess is that everything is SaaS, so is there something about PaaS that makes it different from SaaS and better called PaaS?
web-services
web-applications
business
saas
paas
01/15/2012 12:23:44
not constructive
Difference between SaaS or PaaS === Is there any general standard that defines what is a SaaS and what is a PaaS. The 2 seems to be used interchangeably? My guess is that everything is SaaS, so is there something about PaaS that makes it different from SaaS and better called PaaS?
4
8,145,470
11/16/2011 01:18:52
1,048,735
11/16/2011 01:14:51
1
0
Javascript - Detecting the first character and alerting the user
I have a question. I'm wanting to run a basic function in Javascript which takes an input field from a form and checks the very first character to ensure it does not have a £ sign (GBP) infront of the value I can't seem to find the right code anywhere to do this? - Anyone have any idea's... I'm a bit of a noob to all this programming to be honest so any help would be gratefully received.
javascript
forms
validation
null
null
null
open
Javascript - Detecting the first character and alerting the user === I have a question. I'm wanting to run a basic function in Javascript which takes an input field from a form and checks the very first character to ensure it does not have a £ sign (GBP) infront of the value I can't seem to find the right code anywhere to do this? - Anyone have any idea's... I'm a bit of a noob to all this programming to be honest so any help would be gratefully received.
0
8,424,087
12/07/2011 23:22:19
1,054,530
11/18/2011 19:54:55
1
1
Using Jsoup to traverse the web
I'm trying to use JSoup in Eclipse to traverse the web and find a lot of information regarding the FIFA world cup, it's players and participating countries for every FIFA cup. Can anyone show me how? Is it possible to just code it to go to google, input in a query(in English, now sql) and go through each site trying to find that information?
java
jsoup
null
null
null
12/08/2011 03:32:08
not a real question
Using Jsoup to traverse the web === I'm trying to use JSoup in Eclipse to traverse the web and find a lot of information regarding the FIFA world cup, it's players and participating countries for every FIFA cup. Can anyone show me how? Is it possible to just code it to go to google, input in a query(in English, now sql) and go through each site trying to find that information?
1
8,115,727
11/13/2011 23:42:38
439,805
09/04/2010 21:28:10
44
0
Link won't open in new window
I'm having some trouble using the jQuery BlockUI plugin. You can see the issue here: http://totalfilehosters.co.uk/tester.html What I'm trying to do is have a clickable link in the content lock, but even when I add target="_blank", it won't send to the URL. Any ideas?
javascript
jquery
null
null
null
null
open
Link won't open in new window === I'm having some trouble using the jQuery BlockUI plugin. You can see the issue here: http://totalfilehosters.co.uk/tester.html What I'm trying to do is have a clickable link in the content lock, but even when I add target="_blank", it won't send to the URL. Any ideas?
0
8,306,951
11/29/2011 06:51:13
170,501
09/08/2009 22:44:19
718
4
compiling and linking openAL with mingw?
How do I compile the following [example][1] from gamedev using mingw?. I've installed the openAl SDK to `C:\Program Files (x86)\OpenAL 1.1 SDK` and I have mingw and msys installed in `C:\MinGW` and `C:\msys`. I'm not sure how to compile this or what to link. I've looked at the docs but they don't specify anything. [1]: http://www.gamedev.net/page/resources/_/technical/game-programming/a-guide-to-starting-with-openal-r2008
audio
gcc
g++
mingw
openal
null
open
compiling and linking openAL with mingw? === How do I compile the following [example][1] from gamedev using mingw?. I've installed the openAl SDK to `C:\Program Files (x86)\OpenAL 1.1 SDK` and I have mingw and msys installed in `C:\MinGW` and `C:\msys`. I'm not sure how to compile this or what to link. I've looked at the docs but they don't specify anything. [1]: http://www.gamedev.net/page/resources/_/technical/game-programming/a-guide-to-starting-with-openal-r2008
0
971,218
06/09/2009 16:45:34
119,973
06/09/2009 16:41:23
1
0
jQuery & PHP and MYSQL IE Problem
Now All of this code works fine in Firfox but in IE the divs dont change when the php infomation changes. Can some one help me please as i am working on a project and this is holding me back Thank you. Here is the **jQuery Code:** <script> $.ajaxSetup({ cache: false }); $(document).ready(function(){ $("#not").css('display','none'); $("#fonline").css('display','none'); $("#not").hide(); $("#fonline").hide(); $("#shfm").click(function () { $("#not").hide(); $("#fonline").toggle(); }); $("#notifi").click(function () { $("#fonline").hide(); $("#not").toggle(); }); }); function closeboxes() { $("#fonline").hide(); $("#not").hide(); } function loadContent(id) { $("#contentArea").load("notifications.php?o="+id+""); }; $(document).ready(function() { $("#settings").toggle( function () { $(this).html('<var class="menutxt" onclick="javascript:loadContent(1);">X Close</var>'); }, function () { $(this).html('<var class="menutxt" onclick="javascript:loadContent(2);">Settings</var>'); } ); }); function FriendsContent(id) { $("#fArea").load("friends_online.php?fo="+id+""); }; $(document).ready(function() { $("#Options").toggle( function () { $(this).html('<var class="menutxt" onclick="javascript:FriendsContent(1);">X Close</var>'); }, function () { $(this).html('<var class="menutxt" onclick="javascript:FriendsContent(2);">Options</var>'); } ); }); $.ajaxSetup({ cache: false }); var refreshId = setInterval(function() { $('#fArea').fadeOut("slow").load('response.php').fadeIn("slow"); }, 10000); </script> **PHP Code:** $cOption = $_GET['fo']; switch($cOption) { case 1: $recordsPerPage = 5; $pageNum = 1; if(isset($_GET['pg'])) { $pageNum = $_GET['pg']; settype($pageNum, 'integer'); } echo "<table width='98%' border='0' cellspacing='0' cellpadding='0'>"; $offset = ($pageNum - 1) * $recordsPerPage; $onlineresult = mysql_query("SELECT * FROM online") or die (mysql_error()); while ($ousers = mysql_fetch_array($onlineresult)) { $onuid = $ousers['uid']; $flist = mysql_query("SELECT * FROM friends_list WHERE fid='$onuid' AND uid='$myid' LIMIT $offset, $recordsPerPage;") or die (mysql_error()); while ($fri = mysql_fetch_array($flist)) { $id = $fir['id']; $uid = $fri['uid']; $fid = $fri['fid']; $userinfomation = mysql_query("SELECT * FROM accounts WHERE id='$fid'"); $userinfo = mysql_fetch_array($userinfomation); $v_tgid = $userinfo['tgid']; echo " <tr class='menutxt2'> <td width='11%' height='21'><center> </center></td> <td width='50%'><a href=\"javascript:void(0)\" onClick=\"javascript:chatWith('$v_tgid')\">$v_tgid</a></td> <td width='39%'>View Profile</td> </tr> "; } } echo "</table>"; $query = "SELECT COUNT(id) AS id FROM friends_list;"; $result = mysql_query($query) or die('Mysql Err. 2'); $row = mysql_fetch_assoc($result); $numrows = $row['id']; $maxPage = ceil($numrows/$recordsPerPage); $nav = ''; for($page = 1; $page <= $maxPage; $page++) { if ($page == $pageNum) { $nav .= "<span class='menutxt'>Pages: $page </span>"; } else { $nav .= ""; } } if ($pageNum > 1) { $page = $pageNum - 1; $prev = ""; $first = ""; } else { $prev = ''; $first = ''; } if ($pageNum < $maxPage) { $page = $pageNum + 1; $next = ""; $last = ""; } else { $next = ''; $last = ''; } echo "$first <b>$prev</b> $nav<b> $next</b> $last"; echo " "; break; case 2: echo 'Options'; break; default: echo 'Whoops, didn\'t understand that option: <i>'.$cOption.'</i>'; }
jquery
javascript
internet-explorer
problem
php
null
open
jQuery & PHP and MYSQL IE Problem === Now All of this code works fine in Firfox but in IE the divs dont change when the php infomation changes. Can some one help me please as i am working on a project and this is holding me back Thank you. Here is the **jQuery Code:** <script> $.ajaxSetup({ cache: false }); $(document).ready(function(){ $("#not").css('display','none'); $("#fonline").css('display','none'); $("#not").hide(); $("#fonline").hide(); $("#shfm").click(function () { $("#not").hide(); $("#fonline").toggle(); }); $("#notifi").click(function () { $("#fonline").hide(); $("#not").toggle(); }); }); function closeboxes() { $("#fonline").hide(); $("#not").hide(); } function loadContent(id) { $("#contentArea").load("notifications.php?o="+id+""); }; $(document).ready(function() { $("#settings").toggle( function () { $(this).html('<var class="menutxt" onclick="javascript:loadContent(1);">X Close</var>'); }, function () { $(this).html('<var class="menutxt" onclick="javascript:loadContent(2);">Settings</var>'); } ); }); function FriendsContent(id) { $("#fArea").load("friends_online.php?fo="+id+""); }; $(document).ready(function() { $("#Options").toggle( function () { $(this).html('<var class="menutxt" onclick="javascript:FriendsContent(1);">X Close</var>'); }, function () { $(this).html('<var class="menutxt" onclick="javascript:FriendsContent(2);">Options</var>'); } ); }); $.ajaxSetup({ cache: false }); var refreshId = setInterval(function() { $('#fArea').fadeOut("slow").load('response.php').fadeIn("slow"); }, 10000); </script> **PHP Code:** $cOption = $_GET['fo']; switch($cOption) { case 1: $recordsPerPage = 5; $pageNum = 1; if(isset($_GET['pg'])) { $pageNum = $_GET['pg']; settype($pageNum, 'integer'); } echo "<table width='98%' border='0' cellspacing='0' cellpadding='0'>"; $offset = ($pageNum - 1) * $recordsPerPage; $onlineresult = mysql_query("SELECT * FROM online") or die (mysql_error()); while ($ousers = mysql_fetch_array($onlineresult)) { $onuid = $ousers['uid']; $flist = mysql_query("SELECT * FROM friends_list WHERE fid='$onuid' AND uid='$myid' LIMIT $offset, $recordsPerPage;") or die (mysql_error()); while ($fri = mysql_fetch_array($flist)) { $id = $fir['id']; $uid = $fri['uid']; $fid = $fri['fid']; $userinfomation = mysql_query("SELECT * FROM accounts WHERE id='$fid'"); $userinfo = mysql_fetch_array($userinfomation); $v_tgid = $userinfo['tgid']; echo " <tr class='menutxt2'> <td width='11%' height='21'><center> </center></td> <td width='50%'><a href=\"javascript:void(0)\" onClick=\"javascript:chatWith('$v_tgid')\">$v_tgid</a></td> <td width='39%'>View Profile</td> </tr> "; } } echo "</table>"; $query = "SELECT COUNT(id) AS id FROM friends_list;"; $result = mysql_query($query) or die('Mysql Err. 2'); $row = mysql_fetch_assoc($result); $numrows = $row['id']; $maxPage = ceil($numrows/$recordsPerPage); $nav = ''; for($page = 1; $page <= $maxPage; $page++) { if ($page == $pageNum) { $nav .= "<span class='menutxt'>Pages: $page </span>"; } else { $nav .= ""; } } if ($pageNum > 1) { $page = $pageNum - 1; $prev = ""; $first = ""; } else { $prev = ''; $first = ''; } if ($pageNum < $maxPage) { $page = $pageNum + 1; $next = ""; $last = ""; } else { $next = ''; $last = ''; } echo "$first <b>$prev</b> $nav<b> $next</b> $last"; echo " "; break; case 2: echo 'Options'; break; default: echo 'Whoops, didn\'t understand that option: <i>'.$cOption.'</i>'; }
0
10,244,967
04/20/2012 11:02:02
1,065,448
11/25/2011 10:40:10
90
4
Information Library application
Any suggestions for a known open-source webapplication(mainly to store information(various) like a library of info kinda) Thease are the main features i'm looking for in it 1. Document centre 2. Important URL links 3. Search Any Simple web-application which can be used as information library
java
jsp
application
null
null
04/21/2012 07:44:38
off topic
Information Library application === Any suggestions for a known open-source webapplication(mainly to store information(various) like a library of info kinda) Thease are the main features i'm looking for in it 1. Document centre 2. Important URL links 3. Search Any Simple web-application which can be used as information library
2
8,075,345
11/10/2011 05:27:00
564,963
01/06/2011 04:54:19
169
1
dividing the time slots and displaying them
`hi friends i am converting seconds into hours minutes and seconds .. and method is as follows - (NSString *)convertTimeFromSeconds:(NSString *)seconds { // Return variable. NSString *result = @""; // Int variables for calculation. int secs = [seconds intValue]; int tempHour = 0; int tempMinute = 0; int tempSecond = 0; NSString *hour = @""; NSString *minute = @""; NSString *second = @""; // Convert the seconds to hours, minutes and seconds. tempHour = secs / 3600; tempMinute = secs / 60 - tempHour * 60; tempSecond = secs - (tempHour * 3600 + tempMinute * 60); hour = [[NSNumber numberWithInt:tempHour] stringValue]; minute = [[NSNumber numberWithInt:tempMinute] stringValue]; second = [[NSNumber numberWithInt:tempSecond] stringValue]; // Make time look like 00:00:00 and not 0:0:0 if (tempHour < 10) { hour = [@"0" stringByAppendingString:hour]; } if (tempMinute < 10) { minute = [@"0" stringByAppendingString:minute]; } if (tempSecond < 10) { second = [@"0" stringByAppendingString:second]; } if (tempHour == 0) { NSLog(@"Result of Time Conversion: %@:%@", minute); result = [NSString stringWithFormat:@"%@:%@", minute]; } else { NSLog(@"Result of Time Conversion: %@:%@:%@", hour, minute); result = [NSString stringWithFormat:@"%@:%@:%@",hour, minute]; } return result; } i want to divide the time (24 hrs) .. what i am saying is time (00:00 to 23:59) i want to divide the time (24 hrs ) into slots of 10 minutes that me i need to display 00:10 ,00:20,.....up to 23:40,23:50 . `can ane one please help me how to do that thing thanks in advance
iphone
objective-c
null
null
null
null
open
dividing the time slots and displaying them === `hi friends i am converting seconds into hours minutes and seconds .. and method is as follows - (NSString *)convertTimeFromSeconds:(NSString *)seconds { // Return variable. NSString *result = @""; // Int variables for calculation. int secs = [seconds intValue]; int tempHour = 0; int tempMinute = 0; int tempSecond = 0; NSString *hour = @""; NSString *minute = @""; NSString *second = @""; // Convert the seconds to hours, minutes and seconds. tempHour = secs / 3600; tempMinute = secs / 60 - tempHour * 60; tempSecond = secs - (tempHour * 3600 + tempMinute * 60); hour = [[NSNumber numberWithInt:tempHour] stringValue]; minute = [[NSNumber numberWithInt:tempMinute] stringValue]; second = [[NSNumber numberWithInt:tempSecond] stringValue]; // Make time look like 00:00:00 and not 0:0:0 if (tempHour < 10) { hour = [@"0" stringByAppendingString:hour]; } if (tempMinute < 10) { minute = [@"0" stringByAppendingString:minute]; } if (tempSecond < 10) { second = [@"0" stringByAppendingString:second]; } if (tempHour == 0) { NSLog(@"Result of Time Conversion: %@:%@", minute); result = [NSString stringWithFormat:@"%@:%@", minute]; } else { NSLog(@"Result of Time Conversion: %@:%@:%@", hour, minute); result = [NSString stringWithFormat:@"%@:%@:%@",hour, minute]; } return result; } i want to divide the time (24 hrs) .. what i am saying is time (00:00 to 23:59) i want to divide the time (24 hrs ) into slots of 10 minutes that me i need to display 00:10 ,00:20,.....up to 23:40,23:50 . `can ane one please help me how to do that thing thanks in advance
0
4,007,357
10/24/2010 07:06:30
428,321
01/08/2010 12:44:14
13
0
What is the best way to learn CUDA?
I have some knowledge of C/C++ programming and want to learn CUDA. I'm also on a mac. So what is the best way to learn CUDA?
cuda
null
null
null
null
08/01/2012 02:23:14
not constructive
What is the best way to learn CUDA? === I have some knowledge of C/C++ programming and want to learn CUDA. I'm also on a mac. So what is the best way to learn CUDA?
4
1,284,083
08/16/2009 11:25:14
58,394
01/23/2009 18:51:59
414
9
Choosing a stand-alone full-text search server: Sphinx or SOLR?
I'm looking for a stand-alone full-text search server with the following properties: * Must operate as a stand-alone server that can serve search requests from multiple clients * Must be able to do "bulk indexing" by indexing the result of an SQL query: say "SELECT id, text_to_index FROM documents;" * Must be free software and must run on Linux with MySQL as the database * Must be fast (rules out MySQL's internal full-text search) The alternatives I've found that have these properties are: * SOLR (based on Lucene) * Sphinx My questions: * Which one would you choose and why? * Have I missed any alternatives?
solr
lucene
sphinx
mysql
full-text-search
02/15/2012 12:25:47
not constructive
Choosing a stand-alone full-text search server: Sphinx or SOLR? === I'm looking for a stand-alone full-text search server with the following properties: * Must operate as a stand-alone server that can serve search requests from multiple clients * Must be able to do "bulk indexing" by indexing the result of an SQL query: say "SELECT id, text_to_index FROM documents;" * Must be free software and must run on Linux with MySQL as the database * Must be fast (rules out MySQL's internal full-text search) The alternatives I've found that have these properties are: * SOLR (based on Lucene) * Sphinx My questions: * Which one would you choose and why? * Have I missed any alternatives?
4
3,697,033
09/12/2010 23:11:16
16,822
09/17/2008 21:09:17
790
46
How can I get the base URI in AppEngine?
How can I get the base URI in a Google AppEngine app written in Python? e.g. <pre>http://example.appspot.com/</pre>
python
google-app-engine
null
null
null
null
open
How can I get the base URI in AppEngine? === How can I get the base URI in a Google AppEngine app written in Python? e.g. <pre>http://example.appspot.com/</pre>
0
8,245,594
11/23/2011 16:22:34
983,783
10/07/2011 10:18:22
72
0
A*star Algorithm Implementation Is Not Working
Am implementing the AStar algorithm with manhattan heureustic but am find a lot of problem getting it done. I get infinite loop: THE PROBLEM IS IN THE SEARCH METHOD. I ADDED THE ADDITIONAL CODE FOR DEBUGGING PURPOSES. this is my code snippet for the search: public ArrayList<Node> search(Node startNode, Node targetNode){ // the parent, manhattan distance and pathcost for the start node are set here startNode.setParentNode(null); startNode.setPathCost(0); startNode.setHeuristicCost(manhattan(startNode, targetNode)); startNode.setFunctionCost(startNode.getPathCost(), startNode.getHeuristicCost()); // the start node is first added to the open list this.addToOpenList(startNode); while(openList.size() > 0){ tmpNode = removeFromOpenList(); if(tmpNode != null && tmpNode.compareCurrentNodeToGoalNode(targetNode)){ System.out.println("Solution is found!!!!!!!!!!"); goalTargetNode = tmpNode; break; }else{ // add to the closed list this.addToClosedList(tmpNode); Node t = this.getElementFromClosedList(); boolean checkIfNeighbourInOpenList = false; System.out.println("closed list=>" + t); if(t != null){ for(Node neighbour : this.generateSuccessors(t)){ Iterator<Node> iteratorClosedList = this.closedList.iterator(); while(iteratorClosedList.hasNext()) { Node n = iteratorClosedList.next(); if(neighbour == n){ if(neighbour.getFunctionCost() > n.getFunctionCost()){ neighbour.setFunctionCost(n.getFunctionCost(),0); neighbour.setParentNode(n.getParentNode()); } checkIfNeighbourInOpenList = true; //break; // breaking from the while loop } } checkIfNeighbourInOpenList = false; Iterator<Node> iteratorOpenList = this.openList.iterator(); while(iteratorOpenList.hasNext()) { Node no = iteratorOpenList.next(); if(neighbour == no){ if(neighbour.getPathCost() > no.getPathCost()){ neighbour.setPathCost(no.getPathCost()); neighbour.setParentNode(no.getParentNode()); } checkIfNeighbourInOpenList = true; break; // breaking from the while loop } } int pathCost = tmpNode.getPathCost() + manhattan(tmpNode, neighbour); if(!checkIfNeighbourInOpenList){ neighbour.setPathCost(pathCost); neighbour.setHeuristicCost(manhattan(neighbour, targetNode)); this.addToOpenList(neighbour); } } } } } this is the method that generates the neighbours: public ArrayList<Node> generateSuccessors(Node currentNode){ ArrayList<Node> neighbourNodes = new ArrayList<Node>(); BoardActions bActions = new BoardActions(BOARDSIZE); Node newState = new Node(); newState = bActions.moveUp(currentNode); if(newState != null){ if(newState.getParentNode() != null){ newState.setPathCost(newState.getParentNode().getPathCost()+1); } neighbourNodes.add(newState); } newState = bActions.moveRight(currentNode); if(newState != null){ if(newState.getParentNode() != null){ newState.setPathCost(newState.getParentNode().getPathCost()+1); } neighbourNodes.add(newState); } newState = bActions.moveDown(currentNode); if(newState != null){ if(newState.getParentNode() != null){ newState.setPathCost(newState.getParentNode().getPathCost()+1); } neighbourNodes.add(newState); } newState = bActions.moveLeft(currentNode); if(newState != null){ if(newState.getParentNode() != null){ newState.setPathCost(newState.getParentNode().getPathCost()+1); } neighbourNodes.add(newState); } return neighbourNodes; } this is the class that contains the moving actions: public class BoardActions { // private members private int boardSize; public BoardActions(int boardSize) { this.boardSize = boardSize; } private void swap(Node newState, int newPosition[]) { int emptyTile[] = new int[2], tmpNum; newState.getRowAndColumnNumbers(emptyTile, 0); tmpNum = newState.getTileNumber(newPosition[0], newPosition[1]); newState.setTileNumber(0, newPosition[0], newPosition[1]); newState.setTileNumber(tmpNum, emptyTile[0], emptyTile[1]); } public Node moveUp(Node currentState) { Node newState = new Node(); newState = null; int newPosition[] = new int[2]; if (currentState.getRowNumber(0) - 1 >= 0) { newState = currentState; newPosition[0] = newState.getRowNumber(0) - 1; newPosition[1] = newState.getColumnNumber(0); swap(newState, newPosition); } System.out.println("MOVING UP......."); return newState; } public Node moveRight(Node currentState) { Node newState = new Node(); newState = null; int newPosition[] = new int[2]; if (currentState.getColumnNumber(0) + 1 <= /*2*/(this.boardSize-1)) { newState = currentState; newPosition[0] = newState.getRowNumber(0); newPosition[1] = newState.getColumnNumber(0) + 1; swap(newState, newPosition); // newState.setPathCost(newState.getParentNode().getPathCost()+1); } System.out.println("MOVING RIGHT......."); return newState; } public Node moveDown(Node currentState) { Node newState = new Node(); newState = null; int newPosition[] = new int[2]; if (currentState.getRowNumber(0) + 1 <= /*2*/(this.boardSize-1)) { newState = currentState; newPosition[0] = newState.getRowNumber(0) + 1; newPosition[1] = newState.getColumnNumber(0); swap(newState, newPosition); //newState.setPathCost(newState.getParentNode().getPathCost()+1); } System.out.println("MOVING DOWN......."); return newState; } public Node moveLeft(Node currentState) { Node newState = new Node(); newState = null; int newPosition[] = new int[2]; if (currentState.getColumnNumber(0) - 1 >= 0) { newState = currentState; newPosition[0] = newState.getRowNumber(0); newPosition[1] = newState.getColumnNumber(0) - 1; swap(newState, newPosition); //newState.setPathCost(newState.getParentNode().getPathCost()+1); } System.out.println("MOVING LEFT......."); return newState; } } this is my manhattan function: public int manhattan(Node currentNode, Node goalNode) { int[] goalNumberIndices = new int[2]; int manhattanDistance = 0; for(int x = 0; x < BOARDSIZE; x++){ for(int y = 0; y < BOARDSIZE; y++){ int currentNumber = currentNode.getTileNumber(x, y); goalNode.getRowAndColumnNumbers(goalNumberIndices, currentNumber); manhattanDistance += Math.abs(x - goalNumberIndices[0]) + Math.abs(y - goalNumberIndices[1]); } } return manhattanDistance; } i tried to use this psudocode but it didn't work: create the open list of nodes, initially containing only our starting node create the closed list of nodes, initially empty while (we have not reached our goal) { consider the best node in the open list (the node with the lowest f value) if (this node is the goal) { then we're done } else { move the current node to the closed list and consider all of its neighbors for (each neighbor) { if (this neighbor is in the closed list and our current g value is lower) { update the neighbor with the new, lower, g value change the neighbor's parent to our current node } else if (this neighbor is in the open list and our current g value is lower) { update the neighbor with the new, lower, g value change the neighbor's parent to our current node } else this neighbor is not in either the open or closed list { add the neighbor to the open list and set its g value } } } } I was trying the `AStarAlgorithm` class in this [page][1] but am getting it wrong Need your help. The problem is in the search method above abut can't figure it. thanks for your help [1]: http://code.google.com/p/jianwikis/wiki/AStarAlgorithmForPathPlanning
java
algorithm
null
null
null
11/23/2011 17:53:34
too localized
A*star Algorithm Implementation Is Not Working === Am implementing the AStar algorithm with manhattan heureustic but am find a lot of problem getting it done. I get infinite loop: THE PROBLEM IS IN THE SEARCH METHOD. I ADDED THE ADDITIONAL CODE FOR DEBUGGING PURPOSES. this is my code snippet for the search: public ArrayList<Node> search(Node startNode, Node targetNode){ // the parent, manhattan distance and pathcost for the start node are set here startNode.setParentNode(null); startNode.setPathCost(0); startNode.setHeuristicCost(manhattan(startNode, targetNode)); startNode.setFunctionCost(startNode.getPathCost(), startNode.getHeuristicCost()); // the start node is first added to the open list this.addToOpenList(startNode); while(openList.size() > 0){ tmpNode = removeFromOpenList(); if(tmpNode != null && tmpNode.compareCurrentNodeToGoalNode(targetNode)){ System.out.println("Solution is found!!!!!!!!!!"); goalTargetNode = tmpNode; break; }else{ // add to the closed list this.addToClosedList(tmpNode); Node t = this.getElementFromClosedList(); boolean checkIfNeighbourInOpenList = false; System.out.println("closed list=>" + t); if(t != null){ for(Node neighbour : this.generateSuccessors(t)){ Iterator<Node> iteratorClosedList = this.closedList.iterator(); while(iteratorClosedList.hasNext()) { Node n = iteratorClosedList.next(); if(neighbour == n){ if(neighbour.getFunctionCost() > n.getFunctionCost()){ neighbour.setFunctionCost(n.getFunctionCost(),0); neighbour.setParentNode(n.getParentNode()); } checkIfNeighbourInOpenList = true; //break; // breaking from the while loop } } checkIfNeighbourInOpenList = false; Iterator<Node> iteratorOpenList = this.openList.iterator(); while(iteratorOpenList.hasNext()) { Node no = iteratorOpenList.next(); if(neighbour == no){ if(neighbour.getPathCost() > no.getPathCost()){ neighbour.setPathCost(no.getPathCost()); neighbour.setParentNode(no.getParentNode()); } checkIfNeighbourInOpenList = true; break; // breaking from the while loop } } int pathCost = tmpNode.getPathCost() + manhattan(tmpNode, neighbour); if(!checkIfNeighbourInOpenList){ neighbour.setPathCost(pathCost); neighbour.setHeuristicCost(manhattan(neighbour, targetNode)); this.addToOpenList(neighbour); } } } } } this is the method that generates the neighbours: public ArrayList<Node> generateSuccessors(Node currentNode){ ArrayList<Node> neighbourNodes = new ArrayList<Node>(); BoardActions bActions = new BoardActions(BOARDSIZE); Node newState = new Node(); newState = bActions.moveUp(currentNode); if(newState != null){ if(newState.getParentNode() != null){ newState.setPathCost(newState.getParentNode().getPathCost()+1); } neighbourNodes.add(newState); } newState = bActions.moveRight(currentNode); if(newState != null){ if(newState.getParentNode() != null){ newState.setPathCost(newState.getParentNode().getPathCost()+1); } neighbourNodes.add(newState); } newState = bActions.moveDown(currentNode); if(newState != null){ if(newState.getParentNode() != null){ newState.setPathCost(newState.getParentNode().getPathCost()+1); } neighbourNodes.add(newState); } newState = bActions.moveLeft(currentNode); if(newState != null){ if(newState.getParentNode() != null){ newState.setPathCost(newState.getParentNode().getPathCost()+1); } neighbourNodes.add(newState); } return neighbourNodes; } this is the class that contains the moving actions: public class BoardActions { // private members private int boardSize; public BoardActions(int boardSize) { this.boardSize = boardSize; } private void swap(Node newState, int newPosition[]) { int emptyTile[] = new int[2], tmpNum; newState.getRowAndColumnNumbers(emptyTile, 0); tmpNum = newState.getTileNumber(newPosition[0], newPosition[1]); newState.setTileNumber(0, newPosition[0], newPosition[1]); newState.setTileNumber(tmpNum, emptyTile[0], emptyTile[1]); } public Node moveUp(Node currentState) { Node newState = new Node(); newState = null; int newPosition[] = new int[2]; if (currentState.getRowNumber(0) - 1 >= 0) { newState = currentState; newPosition[0] = newState.getRowNumber(0) - 1; newPosition[1] = newState.getColumnNumber(0); swap(newState, newPosition); } System.out.println("MOVING UP......."); return newState; } public Node moveRight(Node currentState) { Node newState = new Node(); newState = null; int newPosition[] = new int[2]; if (currentState.getColumnNumber(0) + 1 <= /*2*/(this.boardSize-1)) { newState = currentState; newPosition[0] = newState.getRowNumber(0); newPosition[1] = newState.getColumnNumber(0) + 1; swap(newState, newPosition); // newState.setPathCost(newState.getParentNode().getPathCost()+1); } System.out.println("MOVING RIGHT......."); return newState; } public Node moveDown(Node currentState) { Node newState = new Node(); newState = null; int newPosition[] = new int[2]; if (currentState.getRowNumber(0) + 1 <= /*2*/(this.boardSize-1)) { newState = currentState; newPosition[0] = newState.getRowNumber(0) + 1; newPosition[1] = newState.getColumnNumber(0); swap(newState, newPosition); //newState.setPathCost(newState.getParentNode().getPathCost()+1); } System.out.println("MOVING DOWN......."); return newState; } public Node moveLeft(Node currentState) { Node newState = new Node(); newState = null; int newPosition[] = new int[2]; if (currentState.getColumnNumber(0) - 1 >= 0) { newState = currentState; newPosition[0] = newState.getRowNumber(0); newPosition[1] = newState.getColumnNumber(0) - 1; swap(newState, newPosition); //newState.setPathCost(newState.getParentNode().getPathCost()+1); } System.out.println("MOVING LEFT......."); return newState; } } this is my manhattan function: public int manhattan(Node currentNode, Node goalNode) { int[] goalNumberIndices = new int[2]; int manhattanDistance = 0; for(int x = 0; x < BOARDSIZE; x++){ for(int y = 0; y < BOARDSIZE; y++){ int currentNumber = currentNode.getTileNumber(x, y); goalNode.getRowAndColumnNumbers(goalNumberIndices, currentNumber); manhattanDistance += Math.abs(x - goalNumberIndices[0]) + Math.abs(y - goalNumberIndices[1]); } } return manhattanDistance; } i tried to use this psudocode but it didn't work: create the open list of nodes, initially containing only our starting node create the closed list of nodes, initially empty while (we have not reached our goal) { consider the best node in the open list (the node with the lowest f value) if (this node is the goal) { then we're done } else { move the current node to the closed list and consider all of its neighbors for (each neighbor) { if (this neighbor is in the closed list and our current g value is lower) { update the neighbor with the new, lower, g value change the neighbor's parent to our current node } else if (this neighbor is in the open list and our current g value is lower) { update the neighbor with the new, lower, g value change the neighbor's parent to our current node } else this neighbor is not in either the open or closed list { add the neighbor to the open list and set its g value } } } } I was trying the `AStarAlgorithm` class in this [page][1] but am getting it wrong Need your help. The problem is in the search method above abut can't figure it. thanks for your help [1]: http://code.google.com/p/jianwikis/wiki/AStarAlgorithmForPathPlanning
3
9,576,756
03/06/2012 01:42:45
1,084,499
12/06/2011 22:35:01
8
0
Using Rspec, how do I test the JSON format of my controller in Rails 3.0.11?
I've scoured the web, but, alas, I just can't seem to get Rspec to correctly send content-type so I can test my JSON API. I'm using the RABL gem for templates, Rails 3.0.11, and Ruby 1.9.2-p180. My curl output, which works fine (should be a 401, I know): mrsnuggles:tmp gaahrdner$ curl -i -H "Accept: application/json" -X POST -d @bleh http://localhost:3000/applications HTTP/1.1 403 Forbidden Content-Type: application/json; charset=utf-8 Cache-Control: no-cache X-Ua-Compatible: IE=Edge X-Runtime: 0.561638 Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18) Date: Tue, 06 Mar 2012 01:10:51 GMT Content-Length: 74 Connection: Keep-Alive Set-Cookie: _session_id=8e8b73b5a6e5c95447aab13dafd59993; path=/; HttpOnly {"status":"error","message":"You are not authorized to access this page."} Sample from one of my test cases: describe ApplicationsController do render_views disconnect_sunspot let(:application) { Factory.create(:application) } subject { application } context "JSON" do describe "creating a new application" do context "when not authorized" do before do json = { :application => { :name => "foo", :description => "bar" } } request.env['CONTENT_TYPE'] = 'application/json' request.env['RAW_POST_DATA'] = json post :create end it "should not allow creation of an application" do Application.count.should == 0 end it "should respond with a 403" do response.status.should eq(403) end it "should have a status and message key in the hash" do JSON.parse(response.body)["status"] == "error" JSON.parse(response.body)["message"] =~ /authorized/ end end context "authorized" do end end end end These tests never pass though, I always get redirected and my content-type is always `text/html`, regardless of how I seem to specify the type in my before block: # nope before do post :create, {}, { :format => :json } end # nada before do post :create, :format => Mime::JSON end # nuh uh before do request.env['ACCEPT'] = 'application/json' post :create, { :foo => :bar } end Here is the rspec output: Failures: 1) ApplicationsController JSON creating a new application when not authorized should respond with a 403 Failure/Error: response.status.should eq(403) expected 403 got 302 (compared using ==) # ./spec/controllers/applications_controller_spec.rb:31:in `block (5 levels) in <top (required)>' 2) ApplicationsController JSON creating a new application when not authorized should have a status and message key in the hash Failure/Error: JSON.parse(response.body)["status"] == "errors" JSON::ParserError: 756: unexpected token at '<html><body>You are being <a href="http://test.host/">redirected</a>.</body></html>' # ./spec/controllers/applications_controller_spec.rb:35:in `block (5 levels) in <top (required)>' As you can see I'm getting the 302 redirect for the HTML format, even though I'm trying to specify 'application/json'. Here is my `application_controller.rb`, with the rescue_from bit: class ApplicationController < ActionController::Base rescue_from ActiveRecord::RecordNotFound, :with => :not_found protect_from_forgery helper_method :current_user helper_method :remove_dns_record rescue_from CanCan::AccessDenied do |exception| flash[:alert] = exception.message respond_to do |format| h = { :status => "error", :message => exception.message } format.html { redirect_to root_url } format.json { render :json => h, :status => :forbidden } format.xml { render :xml => h, :status => :forbidden } end end private def not_found(exception) respond_to do |format| h = { :status => "error", :message => exception.message } format.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => :not_found } format.json { render :json => h, :status => :not_found } format.xml { render :xml => h, :status => :not_found } end end end And also `applications_controller.rb`, specifically the 'create' action which is what I'm trying to test. It's fairly ugly at the moment because I'm using `state_machine` and overriding the delete method. def create # this needs to be cleaned up and use accepts_attributes_for @application = Application.new(params[:application]) @environments = params[:application][:environment_ids] @application.environment_ids<<@environments unless @environments.blank? if params[:site_bindings] == "new" @site = Site.new(:name => params[:application][:name]) @environments.each do |e| @site.siteenvs << Siteenv.new(:environment_id => e) end end if @site @application.sites << @site end if @application.save if @site @site.siteenvs.each do |se| appenv = @application.appenvs.select {|e| e.environment_id == se.environment_id } se.appenv = appenv.first se.save end end flash[:success] = "New application created." respond_with(@application, :location => @application) else render 'new' end # super stinky :( @application.change_servers_on_appenvs(params[:servers]) unless params[:servers].blank? @application.save end I've looked at the source code here: https://github.com/rails/rails/blob/master/actionpack/lib/action_controller/metal/responder.rb, and it seems it should respond correctly, as well as a number of questions on stack overflow that seem to have similar issues and possible solutions, but none work for me. What am I doing wrong?
ruby-on-rails
json
api
header
rspec
null
open
Using Rspec, how do I test the JSON format of my controller in Rails 3.0.11? === I've scoured the web, but, alas, I just can't seem to get Rspec to correctly send content-type so I can test my JSON API. I'm using the RABL gem for templates, Rails 3.0.11, and Ruby 1.9.2-p180. My curl output, which works fine (should be a 401, I know): mrsnuggles:tmp gaahrdner$ curl -i -H "Accept: application/json" -X POST -d @bleh http://localhost:3000/applications HTTP/1.1 403 Forbidden Content-Type: application/json; charset=utf-8 Cache-Control: no-cache X-Ua-Compatible: IE=Edge X-Runtime: 0.561638 Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18) Date: Tue, 06 Mar 2012 01:10:51 GMT Content-Length: 74 Connection: Keep-Alive Set-Cookie: _session_id=8e8b73b5a6e5c95447aab13dafd59993; path=/; HttpOnly {"status":"error","message":"You are not authorized to access this page."} Sample from one of my test cases: describe ApplicationsController do render_views disconnect_sunspot let(:application) { Factory.create(:application) } subject { application } context "JSON" do describe "creating a new application" do context "when not authorized" do before do json = { :application => { :name => "foo", :description => "bar" } } request.env['CONTENT_TYPE'] = 'application/json' request.env['RAW_POST_DATA'] = json post :create end it "should not allow creation of an application" do Application.count.should == 0 end it "should respond with a 403" do response.status.should eq(403) end it "should have a status and message key in the hash" do JSON.parse(response.body)["status"] == "error" JSON.parse(response.body)["message"] =~ /authorized/ end end context "authorized" do end end end end These tests never pass though, I always get redirected and my content-type is always `text/html`, regardless of how I seem to specify the type in my before block: # nope before do post :create, {}, { :format => :json } end # nada before do post :create, :format => Mime::JSON end # nuh uh before do request.env['ACCEPT'] = 'application/json' post :create, { :foo => :bar } end Here is the rspec output: Failures: 1) ApplicationsController JSON creating a new application when not authorized should respond with a 403 Failure/Error: response.status.should eq(403) expected 403 got 302 (compared using ==) # ./spec/controllers/applications_controller_spec.rb:31:in `block (5 levels) in <top (required)>' 2) ApplicationsController JSON creating a new application when not authorized should have a status and message key in the hash Failure/Error: JSON.parse(response.body)["status"] == "errors" JSON::ParserError: 756: unexpected token at '<html><body>You are being <a href="http://test.host/">redirected</a>.</body></html>' # ./spec/controllers/applications_controller_spec.rb:35:in `block (5 levels) in <top (required)>' As you can see I'm getting the 302 redirect for the HTML format, even though I'm trying to specify 'application/json'. Here is my `application_controller.rb`, with the rescue_from bit: class ApplicationController < ActionController::Base rescue_from ActiveRecord::RecordNotFound, :with => :not_found protect_from_forgery helper_method :current_user helper_method :remove_dns_record rescue_from CanCan::AccessDenied do |exception| flash[:alert] = exception.message respond_to do |format| h = { :status => "error", :message => exception.message } format.html { redirect_to root_url } format.json { render :json => h, :status => :forbidden } format.xml { render :xml => h, :status => :forbidden } end end private def not_found(exception) respond_to do |format| h = { :status => "error", :message => exception.message } format.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => :not_found } format.json { render :json => h, :status => :not_found } format.xml { render :xml => h, :status => :not_found } end end end And also `applications_controller.rb`, specifically the 'create' action which is what I'm trying to test. It's fairly ugly at the moment because I'm using `state_machine` and overriding the delete method. def create # this needs to be cleaned up and use accepts_attributes_for @application = Application.new(params[:application]) @environments = params[:application][:environment_ids] @application.environment_ids<<@environments unless @environments.blank? if params[:site_bindings] == "new" @site = Site.new(:name => params[:application][:name]) @environments.each do |e| @site.siteenvs << Siteenv.new(:environment_id => e) end end if @site @application.sites << @site end if @application.save if @site @site.siteenvs.each do |se| appenv = @application.appenvs.select {|e| e.environment_id == se.environment_id } se.appenv = appenv.first se.save end end flash[:success] = "New application created." respond_with(@application, :location => @application) else render 'new' end # super stinky :( @application.change_servers_on_appenvs(params[:servers]) unless params[:servers].blank? @application.save end I've looked at the source code here: https://github.com/rails/rails/blob/master/actionpack/lib/action_controller/metal/responder.rb, and it seems it should respond correctly, as well as a number of questions on stack overflow that seem to have similar issues and possible solutions, but none work for me. What am I doing wrong?
0
6,354,618
06/15/2011 07:48:26
799,150
06/15/2011 07:48:26
1
0
gif image repeat play in html
I want play repeatedly a gif file (as in liknk below) on a blog. what the code I have to put on the page http://i57.photobucket.com/albums/g223/sadeedp/Football/mardna.gif
gif
animated-gif
null
null
null
06/15/2011 10:33:09
too localized
gif image repeat play in html === I want play repeatedly a gif file (as in liknk below) on a blog. what the code I have to put on the page http://i57.photobucket.com/albums/g223/sadeedp/Football/mardna.gif
3
4,453,211
12/15/2010 17:54:36
314,606
04/12/2010 14:33:31
3
0
user32.dll FindWindowEx, finding elements by classname on remote WPF window
I have a WPF application that is being started from a command-line application. I am trying to do some simple automation (get/set text, click some buttons, etc). I cannot seem to find any of the child windows in WPF. I have working models with WPF and UIA Framework, WinForms and WinAPI, but cannot seem to get WinAPI and WPF to play nicely. I have used UISpy, WinSpy++, Winspector, the UIA Verify app to look at the controls, etc, but they do not seem to carry the same information for WPF as WinForms. For example, in the WinForms app, I see a textbox with a ClassName of "WindowsForms10.EDIT.app.0.33c0d9d" when I look via the spy tools. The UIA Automation Verify app is the only one to acknowledge the element exists and reports "TextBox". So, my question is how do I find the correct class name to pass or is there an easier route to find the child elements? // does not work in wpf IntPtr child = NativeMethods.FindWindowEx(parent, prevElement, "TextBox", null); // works in winforms IntPtr child = NativeMethods.FindWindowEx(parent, prevElement, "WindowsForms10.EDIT.app.0.33c0d9d", null); and here is the user32.dll imports I am using: public class NativeMethods { public const int WM_SETTEXT = 0x000C; public const int WM_GETTEXT = 0x000D; public const uint CB_SHOWDROPDOWN = 0x014F; public const uint CB_SETCURSEL = 0x014E; public const int BN_CLICKED = 245; public const uint WM_SYSCOMMAND = 0x0112; public const int SC_CLOSE = 0xF060; [DllImport("user32.dll", SetLastError = true)] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll", SetLastError = true)] public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string className, string windowTitle); [DllImport("user32.dll", SetLastError = false)] public static extern IntPtr GetDlgItem(IntPtr hDlg, int nIDDlgItem); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)] public static extern IntPtr SendMessage(HandleRef hWnd, uint Msg, IntPtr wParam, string lParam); [DllImport("user32.dll")] public static extern int SendMessage(int hWnd, uint Msg, int wParam, int lParam); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)] public static extern int SendMessage(int hWnd, int Msg, int wParam, StringBuilder lParam); }
wpf
winapi
findwindow
null
null
null
open
user32.dll FindWindowEx, finding elements by classname on remote WPF window === I have a WPF application that is being started from a command-line application. I am trying to do some simple automation (get/set text, click some buttons, etc). I cannot seem to find any of the child windows in WPF. I have working models with WPF and UIA Framework, WinForms and WinAPI, but cannot seem to get WinAPI and WPF to play nicely. I have used UISpy, WinSpy++, Winspector, the UIA Verify app to look at the controls, etc, but they do not seem to carry the same information for WPF as WinForms. For example, in the WinForms app, I see a textbox with a ClassName of "WindowsForms10.EDIT.app.0.33c0d9d" when I look via the spy tools. The UIA Automation Verify app is the only one to acknowledge the element exists and reports "TextBox". So, my question is how do I find the correct class name to pass or is there an easier route to find the child elements? // does not work in wpf IntPtr child = NativeMethods.FindWindowEx(parent, prevElement, "TextBox", null); // works in winforms IntPtr child = NativeMethods.FindWindowEx(parent, prevElement, "WindowsForms10.EDIT.app.0.33c0d9d", null); and here is the user32.dll imports I am using: public class NativeMethods { public const int WM_SETTEXT = 0x000C; public const int WM_GETTEXT = 0x000D; public const uint CB_SHOWDROPDOWN = 0x014F; public const uint CB_SETCURSEL = 0x014E; public const int BN_CLICKED = 245; public const uint WM_SYSCOMMAND = 0x0112; public const int SC_CLOSE = 0xF060; [DllImport("user32.dll", SetLastError = true)] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll", SetLastError = true)] public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string className, string windowTitle); [DllImport("user32.dll", SetLastError = false)] public static extern IntPtr GetDlgItem(IntPtr hDlg, int nIDDlgItem); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)] public static extern IntPtr SendMessage(HandleRef hWnd, uint Msg, IntPtr wParam, string lParam); [DllImport("user32.dll")] public static extern int SendMessage(int hWnd, uint Msg, int wParam, int lParam); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)] public static extern int SendMessage(int hWnd, int Msg, int wParam, StringBuilder lParam); }
0
4,672,233
01/12/2011 18:02:16
198,700
10/29/2009 07:06:47
252
7
track page views
i am looking for a c# code which tracks number of times a page is visited by unique users(as like tracking ip address) per day and display it to my site. apart from using Google Analytics, is there any way to do this.? thank you
c#
asp.net
pageviews
null
null
null
open
track page views === i am looking for a c# code which tracks number of times a page is visited by unique users(as like tracking ip address) per day and display it to my site. apart from using Google Analytics, is there any way to do this.? thank you
0
11,228,688
06/27/2012 14:37:18
428,273
08/23/2010 09:54:54
28
0
Declaring JAXB as a dependency. Why?
Why would you want to declare JAXB as a dependency of your Java application since it's anyway shipped with the JRE and cannot be overriden in your applications classpath? Using the jersey-client as an example, in their POM file they declare a dependency to jaxb-impl without specifying the exact version even. What are they gaining by doing this? And also, when I add a dependency to jersey-client in my own POM file, I end up having jaxb-api.jar and jaxb-impl.jar in my classpath. Why would I want this to happen? Isn't the default JVM implementation anyway getting loaded if I don't put the files to the endorsed libraries directory?
java
maven
jaxb
jersey
null
null
open
Declaring JAXB as a dependency. Why? === Why would you want to declare JAXB as a dependency of your Java application since it's anyway shipped with the JRE and cannot be overriden in your applications classpath? Using the jersey-client as an example, in their POM file they declare a dependency to jaxb-impl without specifying the exact version even. What are they gaining by doing this? And also, when I add a dependency to jersey-client in my own POM file, I end up having jaxb-api.jar and jaxb-impl.jar in my classpath. Why would I want this to happen? Isn't the default JVM implementation anyway getting loaded if I don't put the files to the endorsed libraries directory?
0
6,857,729
07/28/2011 10:48:42
841,090
07/12/2011 15:55:13
56
3
CSS issue with the site
I can't seem to pinpoint the issue with menu under the title being pushed down when there are two select boxes on the right under the product. This site is where it is pushed down under the menu "Details What's Inside..." http://www.playerspriority.wmetools.com/shop/index.php/pro-peptide.html Below is the site that is working properly. http://www.playerspriority.wmetools.com/shop/index.php/pro-peptide-mbf.html Thank you for your help.
html
css
wordpress
null
null
07/29/2011 12:19:26
too localized
CSS issue with the site === I can't seem to pinpoint the issue with menu under the title being pushed down when there are two select boxes on the right under the product. This site is where it is pushed down under the menu "Details What's Inside..." http://www.playerspriority.wmetools.com/shop/index.php/pro-peptide.html Below is the site that is working properly. http://www.playerspriority.wmetools.com/shop/index.php/pro-peptide-mbf.html Thank you for your help.
3
7,391,909
09/12/2011 17:58:22
899,558
08/17/2011 22:03:56
40
0
cheap hosting services allowing one to run 64 bit virtual machines
I'm a PhD student working on a project on cloud based scientific computing and I need to find a hosting service that would allow me to install virtual machines so that I can run the Mosix VM http://www.mosix.org/ The goal is to create a distributed cluster with virtual machines that a host, running on a local computer could target making them appear to be part of a single OpenCL compute device. Alternatively, I wouldn't have to go the VM route if I were able to install the custom linux kernel on the hosted servers. Preferably the solution would be relatively cheap. I only need to setup a testbed environment and run a numerical analysis program and gather data on efficiency and runtime. Thanks very much for any suggestions.
hosting
virtualization
opencl
scientific-computing
null
09/12/2011 18:25:07
off topic
cheap hosting services allowing one to run 64 bit virtual machines === I'm a PhD student working on a project on cloud based scientific computing and I need to find a hosting service that would allow me to install virtual machines so that I can run the Mosix VM http://www.mosix.org/ The goal is to create a distributed cluster with virtual machines that a host, running on a local computer could target making them appear to be part of a single OpenCL compute device. Alternatively, I wouldn't have to go the VM route if I were able to install the custom linux kernel on the hosted servers. Preferably the solution would be relatively cheap. I only need to setup a testbed environment and run a numerical analysis program and gather data on efficiency and runtime. Thanks very much for any suggestions.
2
3,793,068
09/25/2010 08:39:37
479,291
03/02/2010 10:24:51
167
15
Difference between WCF sync and async call???
I am new to WCF, want to know what difference it make sync call or async call, it will be really helpful if some one will explain with example Thanx
wcf
null
null
null
null
null
open
Difference between WCF sync and async call??? === I am new to WCF, want to know what difference it make sync call or async call, it will be really helpful if some one will explain with example Thanx
0
7,449,316
09/16/2011 19:10:52
589,331
01/25/2011 16:41:34
74
2
Question on CNAME for different domains
Is it posssible for me to use CNAME for different domains like www.domain2.com CNAME www.domain1.com Both are server from same server but different Virtual host (root paths are different) Thank you Balaji
dns
virtualhost
cname
null
null
11/12/2011 08:46:07
off topic
Question on CNAME for different domains === Is it posssible for me to use CNAME for different domains like www.domain2.com CNAME www.domain1.com Both are server from same server but different Virtual host (root paths are different) Thank you Balaji
2
5,016,457
02/16/2011 12:33:42
291,270
03/11/2010 07:28:02
18
0
Dynamically add KeyBindings in WPF
Is it possible to dynamically define KeyBindings based on a bound data source? I have a screen with a grid and I allow users to save various layouts for it. I currently bind the grids context menu to the layout names (via the ViewModel), allowing them to switch layouts via the menu. However, I would like to associate each layout with a shortcut key. As the shortcut keys are defined by the user I can't simply add a number of `<KeyBinding>` elements in the window XAML. Another issue is the binding would need to supply the name of the layout as a command parameter. Is there any way to dynamically create a series of `<KeyBinding>` elements from a dynamic source? As a test I have added the bindings statically to my view XAML and they work fine, but this was only to test my concept: <UserControl.InputBindings> <KeyBinding Key="F7" Command="{Binding MyCommand}" CommandParameter="My Layout Name"/> <KeyBinding Key="F8" Command="{Binding MyCommand}" CommandParameter="My Other Layout Name"/> </UserControl.InputBindings>
c#
wpf
mvvm
null
null
null
open
Dynamically add KeyBindings in WPF === Is it possible to dynamically define KeyBindings based on a bound data source? I have a screen with a grid and I allow users to save various layouts for it. I currently bind the grids context menu to the layout names (via the ViewModel), allowing them to switch layouts via the menu. However, I would like to associate each layout with a shortcut key. As the shortcut keys are defined by the user I can't simply add a number of `<KeyBinding>` elements in the window XAML. Another issue is the binding would need to supply the name of the layout as a command parameter. Is there any way to dynamically create a series of `<KeyBinding>` elements from a dynamic source? As a test I have added the bindings statically to my view XAML and they work fine, but this was only to test my concept: <UserControl.InputBindings> <KeyBinding Key="F7" Command="{Binding MyCommand}" CommandParameter="My Layout Name"/> <KeyBinding Key="F8" Command="{Binding MyCommand}" CommandParameter="My Other Layout Name"/> </UserControl.InputBindings>
0
6,540,649
06/30/2011 20:21:18
257,530
01/23/2010 19:31:51
789
50
choosing exactly what I want in css - meta-instructions
What do we call this metas (for example '+' [plus sign] and so on) And where can I find full list of them ?
css
null
null
null
null
07/02/2011 00:30:59
not a real question
choosing exactly what I want in css - meta-instructions === What do we call this metas (for example '+' [plus sign] and so on) And where can I find full list of them ?
1
11,658,659
07/25/2012 21:08:24
1,535,578
07/18/2012 16:58:36
1
0
Checkallatindex objective c
must clear all itens2 clear when the item, wanted a simple way to do this -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath{ NSLog(@"Numero : %d",[cellsArray count]); NSMutableDictionary *item = [cellsArray objectAtIndex:indexPath.row]; NSMutableDictionary *item2 = [[listPhones objectAtIndex:index]objectAtIndex:indexPath.row]; BOOL checked = [[item objectForKey:@"checked"] boolValue]; [item setObject:[NSNumber numberWithBool:!checked] forKey:@"checked"]; [item setObject:[NSNumber numberWithBool:!checked] forKey:@"checked"]; [item2 setObject:[NSNumber numberWithBool:!checked] forKey:@"checked"]; UITableViewCell *cell = [item objectForKey:@"cell"]; UIButton *button = (UIButton *)cell.accessoryView; UIImage *newImage = (checked) ? [UIImage imageNamed:NULL] : [UIImage imageNamed:@"Check.png"]; [button setBackgroundImage:newImage forState:UIControlStateNormal];
iphone
objective-c
checked
unchecked
null
07/27/2012 00:25:58
not a real question
Checkallatindex objective c === must clear all itens2 clear when the item, wanted a simple way to do this -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath{ NSLog(@"Numero : %d",[cellsArray count]); NSMutableDictionary *item = [cellsArray objectAtIndex:indexPath.row]; NSMutableDictionary *item2 = [[listPhones objectAtIndex:index]objectAtIndex:indexPath.row]; BOOL checked = [[item objectForKey:@"checked"] boolValue]; [item setObject:[NSNumber numberWithBool:!checked] forKey:@"checked"]; [item setObject:[NSNumber numberWithBool:!checked] forKey:@"checked"]; [item2 setObject:[NSNumber numberWithBool:!checked] forKey:@"checked"]; UITableViewCell *cell = [item objectForKey:@"cell"]; UIButton *button = (UIButton *)cell.accessoryView; UIImage *newImage = (checked) ? [UIImage imageNamed:NULL] : [UIImage imageNamed:@"Check.png"]; [button setBackgroundImage:newImage forState:UIControlStateNormal];
1
4,219,255
11/18/2010 20:28:46
243,392
01/04/2010 18:52:34
1
0
How do you get the list of targets in a makefile?
I've used rake a bit (a Ruby make program), and it has an option to get a list of all the available targets, eg > rake --tasks rake db:charset # retrieve the charset for your data... rake db:collation # retrieve the collation for your da... rake db:create # Creates the databases defined in y... rake db:drop # Drops the database for your curren... ... but there seems to be no option to do this in GNU make. Apparently the code is almost there for it, as of 2007 - http://www.mail-archive.com/[email protected]/msg06434.html. Anyway, I made little hack to extract the targets from a makefile, which you can include in a makefile. cmds: @grep '^[^#[:space:]].*:' makefile It will give you a list of the defined targets. It's just a start - it doesn't filter out the dependencies, for instance. > make cmds cmds: copy: run: plot: turnin:
makefile
gnu-make
targets
null
null
null
open
How do you get the list of targets in a makefile? === I've used rake a bit (a Ruby make program), and it has an option to get a list of all the available targets, eg > rake --tasks rake db:charset # retrieve the charset for your data... rake db:collation # retrieve the collation for your da... rake db:create # Creates the databases defined in y... rake db:drop # Drops the database for your curren... ... but there seems to be no option to do this in GNU make. Apparently the code is almost there for it, as of 2007 - http://www.mail-archive.com/[email protected]/msg06434.html. Anyway, I made little hack to extract the targets from a makefile, which you can include in a makefile. cmds: @grep '^[^#[:space:]].*:' makefile It will give you a list of the defined targets. It's just a start - it doesn't filter out the dependencies, for instance. > make cmds cmds: copy: run: plot: turnin:
0
2,407,362
03/09/2010 07:43:33
139,217
07/16/2009 05:57:51
86
13
Modify web.xml using Ant
Is there any way to strip elements out of a web.xml file using ANT? For example I have certain servlets I use for Unit Testing defined in the web.xml that are unnecessary in the production environment is there a way to strip these out or do I need to have a separate production web.xml file? Thank You.
ant
servlets
java
null
null
null
open
Modify web.xml using Ant === Is there any way to strip elements out of a web.xml file using ANT? For example I have certain servlets I use for Unit Testing defined in the web.xml that are unnecessary in the production environment is there a way to strip these out or do I need to have a separate production web.xml file? Thank You.
0
2,279,128
02/17/2010 08:00:52
217,067
11/23/2009 14:36:51
172
2
Object pooling: howto
I need to implement a pool of Sessions that are returned by an external system, so that I can reuse them quickly as soon as one is needed (creating a Session takes a while). I've worked with datasource to create a pool of database connections (DBCP from Apache), and it was an implemented solution. What do we use in a general case to pool arbitrary objects, and are there implemented solutions, ie objects, not interfaces, to deal with the task painfully? Second question would be, how do we test whether the Session is alive ? Is there a specific method that we override in the Object pool, that queries the Session's own methods? The third, VERY IMPORTANT question, would be, should that object pooling object <b>be static</b>? What if it must be used by many applications at the same time?
java
object-pooling
pooling
null
null
null
open
Object pooling: howto === I need to implement a pool of Sessions that are returned by an external system, so that I can reuse them quickly as soon as one is needed (creating a Session takes a while). I've worked with datasource to create a pool of database connections (DBCP from Apache), and it was an implemented solution. What do we use in a general case to pool arbitrary objects, and are there implemented solutions, ie objects, not interfaces, to deal with the task painfully? Second question would be, how do we test whether the Session is alive ? Is there a specific method that we override in the Object pool, that queries the Session's own methods? The third, VERY IMPORTANT question, would be, should that object pooling object <b>be static</b>? What if it must be used by many applications at the same time?
0
5,705,786
04/18/2011 16:13:35
182,542
10/01/2009 14:50:31
274
29
Is this clean coding? (.Net, C#)
In one of our projects I found this code class A { private B b = new B(); protected void AMethod() { var x = b.DomeSome(); } } My question, is this "clean" way of coding? Would it be cleaner to instance b in AMethod? Does ist depend?
c#
null
null
null
null
04/18/2011 16:19:19
not a real question
Is this clean coding? (.Net, C#) === In one of our projects I found this code class A { private B b = new B(); protected void AMethod() { var x = b.DomeSome(); } } My question, is this "clean" way of coding? Would it be cleaner to instance b in AMethod? Does ist depend?
1