text
stringlengths
8
267k
meta
dict
Q: Overload operator= to exchange data between to classes I'd like to use two classes A and B for some different types of task. But i want to exchange some data, which should be similar in both, so i'd like to use a A = B for ex. So, how to use this, with avoiding two-way including in header files? Example: in class_a....
{ "language": "en", "url": "https://stackoverflow.com/questions/7582601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the most efficient way of incrementing weekly totals in mongo? In a scenario where I have weekly total points as an array of integers per user, I was reading in tip #7 in the "50 tips and tricks for MongoDB developers" that for best performance in Mongo that I should pre-populate the array. Thus for each use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: rendering query x times instead of required once because instance... help? I am trying to return a custom query, which renders each row once, however sometimes the table it queries is the same... For example. My output code currently is this... //Query one returns each instance of an object. There are two of the fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use Nuget on an intranet I think NuGet is a great idea for dependency management. I would like to try using it for my team to manage dependencies. The problem is that we are on an intranet and not connected to the internet. Ideally, I would like to be able to mirror the official NuGet feed locally and supplement t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Inject new SMS event on Android I’m working on an app for Android. Is it possible to inject an event, so the phone thinks It just revived a new SMS. So it gives you a notification and everything. Not just put the new sms in the inbox. Still cant get this to work, im thinking something like: Intent a = new Intent("a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to find the latitude and longitude of a point from a given point, given the distance between the two? I want to find the point which is some X kms from the current point say A, if I know the latitude and longitude of center point How can I get the latitude, longitude of four points at circumference.... I am se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSF 2 - Unique ids across multiple pages I'm looking to create a JSF application in which there are multiple xhtml pages displayed in different regions of the browser. I could do this with iframes but they add extra memory and accessing objects across iframes is not that trivial. I am considering an approach in whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery error Object doesn't support this property or method error I have a ruby application. I am getting the error "object doesn't support this property or method" which corresponds to the following line in my application.js file. $('textarea.autoresize').autoResize({ onResize : function() {$(this).css({opacity:0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why does fopen fail when given value from main( argv[]) this is my program #include <ncurses.h> int main( int argc, char *argv[] ) { initscr(); FILE *fd; char *ProgFile; ProgFile = argv[1]; printw(ProgFile); refresh(); fd = fopen(ProgFile,"rb"); if( fd==NULL ) { print...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I return multiple arrays from a method? Say that I wanted to return 6 arrays from one method to another (in another class). What is the best way of doing this and why? This is what I have so far. public Object getData()throws FileNotFoundException{ counter = 0; Scanner f = new Scanner(new File("Cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASPxColorEdit custom colors I'm using the latest ASPxEditor controls of devexpress.As you know this control has pre-defined colors.In my case I need to change these colors and put my custom palette into this control. Is it possible to do so ? What are the alternatives ? Best Regards A: It seems that, at present, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SimpleModal - Callback function not working -- On click of Yes I wanted to send custom confirm message to SimpleModal . But on click of Yes , its not triggering callback function. on click of close button , I want to fire Simple modal confirm box . I have many places were i want this functionality . That's why dint ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Practice using reusable Actions on GUI Components I tried differend things on how to make Actions resuable in my Swing applications. I am not a friend on heavy-weight, 1000+ line classes (with lots of inner/anon classes) and try to split my code up into multiple classes. Thus make them resuseable and exchangeab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: WebKitErrorDomain error 101 (in mapview) here is my code i get this error NSString *url = [NSString stringWithFormat:@"%@?lat=%@&long=%@", [[NSBundle mainBundle] pathForResource:@"map" ofType:@"html"], @"17.734503", @"83.2999716"]; NSURLRequest *request = [NSURLR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Servlet 3.0: where is @WebServletContextListener? I am trying to follow a Servlet 3.0 tutorial which refers to @WebServletContextListener. However, I cannot find such an annotation in my javaee-web-api-6.0.jar dependency (I am using maven). So, where is @WebServletContextListener? A: The annotation is called @WebLi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How to get a drop down menu in asp.net master page? In my master page I have a table and inside that table I have these, This is for displaying the username after user login to the website. I want to have a icon when clicked it should display signout, changepassword. How can I do that. Something similar like faceboo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding UIActivityController on the splash screen I took a default.png file and made it as my splash screen and i made it sleep for a few seconds to make it visible. But i also want to add an UIActivityController to it. As i didn't take any ViewController. How should i add it? - (BOOL)application:(UIApplication *)ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java.awt.Desktop.browse returns "The requested lookup key was not found in any active activation context" only on Win XP I use the following code to access the default browser from java when a button is clicked: if( !java.awt.Desktop.isDesktopSupported() ) { System.err.println( "Desktop is not supported (fatal)"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use photoshop graphic files (*.psd?) in xcode? I heard that I can directly import photoshop psd file into a XCode project to use the images provided by the psd file. However, i could not find a way to import the psd file into the interface builder. Can some expert help me out here? How do i make use of a psd ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Regex and enter problem Code (preg_match_all("#\[level-(.+)-\](.+?)\[/level\]#", $string, $matches) Problem if I assign any value to $string with enter, my regex doesn't work. Example: //This doesn't work $string = '[level-0-]This is a test[/level]'; //This works $string = '[level-0-]This is a test[/level]';...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: which causes the custom button text update UI Thread (or) onDraw in Android I subclassed a class to Button and overriden the onDraw() method. And have written a handler in the constuctor of the class where I am updating a variable whose value has to be updated to that button text. Below is the code snippet, publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Password Encoding and Decoding on iOS Is there any API for encoding or decoding a password to text in iPhone? A: There is the Common Crypto API. #import <CommonCrypto/CommonCryptor.h> + (NSData *)doCipher:(NSData *)dataIn iv:(NSData *)iv key:(NSData *)symmetricKey co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way in C++ to create 'super private' variables? I had an idea for a feature for C++, and I was wondering if it was possible to create. Let's say I want a private variable in 'MyClass' to be accessible only by two functions, the public getter and setter. That is, if another public or private function of My...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How can I identify that the GridViewRow is in edit mode before leaving or Navigating to other page? Possible Duplicate: How can I identify the edited row in GridView? My client wanted the GridView to display fields inside TextBoxes, and DropDownListBoxes only. He wanted the flexibility to update the Record just b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: WP: shortcodes when using if(have_posts()) followed by while(have_posts()) I'm trying to minimize my code and have put together this little snippet, it doesn't seem to work however. What am I missing? query_posts( 'year=2011' ); if ( have_posts() ); while ( have_posts() ); echo 'test'; endwhile; wp_reset_query(); en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Special Characters NSString I have a NSString I am trying to declare so I can use it as an applescript. here is the code: NSString *script1 = @"do shell script /usr/bin/php -r ($mac = \"g1:ag:g3:cg:gg:eg\"; $porttemp = \"9\"; $ip = \"255.255.255.255\"; $mac_bytes = explode(\":\", $mac); $mac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML website & jquery webpage for mobile My expertise is somewhat limited, but I have a HTML5 website which works well on screen and tablets, but not so good on mobile devices. My thoughts are for creating a jquery Mobile website just for mobile devices; as it's mainly all text. So my question is how can I link the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP batch print Ι'm working on a project where a user creates a number of contracts (stored in a MySQL database) and then needs to print them all at once on his printer. I can't think of a way to perform this using PHP. I would like to simulate the browser printing process programatically for the number of contracts...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ViewPager problem As give in this document . I did the same.While running i am using a emulator which has android 2.3.3(means API 10 ) support. It is showing no compatible device found.Any idea from any body plz share. A: You need to use the android compatibility package and you can set the min sdk to 4 (1.6). I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Apple like search box I need exactly the same search box of apple.com for my website. I tried to grab it but no success. Can anyone help me to create something like that or grab it from apple.com? http://jsfiddle.net/gHSp2/1/ A: That's what you're looking for http://www.bloggermint.com/2011/06/css3-search-box-inspi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: two's complement finding algorithm I am trying to see how compiler writes in binary negative numbers, so here is code which should do it #include <cstdlib> #include <iostream> using namespace std; void complement(int n) { int l = n; int s = 0; int k = 0; int m = 0; while (n != 0) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Php security question about post validation Is the following a valid way to validate some info coming from a post? function validate($age, $name, $sex) { $pdo = new PDO(...); $age = (int)$age; $name = $pdo -> quote($name); $sex = (strtolower($sex) == "m" ? "m" : "f"); // and then process data wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I use railties to install files other than migrations (for e.g. config files) I'm using Rails 3.1 and I am able to use railties to install migrations (by doing rake railties:install:migrations FROM=plugin_name). However, I have a couple of config files (.yml, etc.) that I need to copy over as well. How do I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenSource .net SMS library, I can't seem to find one at all for C# I've been using GSM modems in my projects to send/recieve SMS-s. I have been using built-in serial port communication features of .net to do this by using standard AT commands. Now I have to extend its functionality (like SMSs in PDU mode, more effi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Hello World Library using autotools Creating bin program is really easy using autotools I need to just define two files. `Makefile.am' bin_PROGRAMS = hello hello_SOURCES = hello.c `configure.in' AC_INIT(hello.c) AM_INIT_AUTOMAKE(hello,1.0) AC_PROG_CC AC_PROG_INSTALL AC_OUTPUT(Makefile) can any body give a smalles...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Adding an Event Handler with Mootools' .addEvent() fails mysteriously in a certain place I'm having a rather mind-boggling problem with some JS I'm working on for a web app. Unfortunately, I can't post the full code for this, as it's part of a not-yet-released project. This issue has both me and some colleagues I as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing SMTP errors in my Java app My Java application encountered an issue in production where the SMTP server is rejecting mails sent to more than x destinations at once. I would like to test the behavior of the application in that situation. I found Dumbster Fake SMTP Server that is very nice but does not seem to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding bound combobox to datagridview The scenario is almost the same as http://arsalantamiz.blogspot.com/2008/09/binding-datagridview-combobox-column.html. but I can't get it working on c#... I have mySql db with two tables: 1. protocols 2. pcapdata In protocols tables I have a two fields: idprotocols and protocolN...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Server - Stored Procedure issue to get Matrix type of data Need help, struggling to do this please Got the following fields in table Package_Name Package_StartTime Package_Endtime What I require is: Based on data range give me how much time each package took time to execute like Package Name - 21 Sept 22 Sep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Localize output of strtotime string I read through manuals concerning strtotime and strftime as well as related functions, but I cannot seem to make any progress in trying to solve my problem. Basically, I'm interested in ways to print output of $deldate5 in local language (Dutch in this case). $deldate5 = date("d.m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I get: Bad request I have got two similar FB apps i am working on. The one works, the copy gives 'Bad request.' Environment: Request Method: GET Request URL: http://doctorme.herokuapp.com/?code=AQAAWe0A6wnm24YuT066ILJMInzeJ0YPANpzb_bnS5jJRCg62KAxmTmD1m56QFVxW5DRRWRgMN8lWFNTucZpQXPHPJstRiFVPE7IfIntei-qMkNlz30SICWvf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to sort mysql search result by relevance? I have a similar query as asked on this question MySQL - How to ORDER BY RELEVANCE? INNODB Table Difference is, here I want to search from 5 fields as add1, add2, add3, post_town, post_code And only records in post_code field will be NOT EMPTY, other fields records may b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to assign a property in php? I have given an <a> element a data-filter property, as shown: <ul> <li> <a href="#" data-filter="*" class="all current"><?php _e('All', 'framework'); ?></a> <span>/</span> </li> <?php wp_list_categories(array( 'title_li' => '', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Oracle Update success but not getting updated in table I have updated a row in a table using this SQL query: UPDATE fruits SET f_name='Mangosteen' WHERE f_ID='1' and the query returns, 1 rows updated but in the table the change is not getting reflected. The table is accepting manual changes but not through the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to make a multi boot dvd for linux Is it possible to make a single bootable dvd with multiple linux distros in it? we should be able to select which os to boot by a menu. A: There are several tutorials for this: http://www.justlinux.com/forum/showthread.php?t=150078 http://pcquest.ciol.com/content/enterprise/20...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: GWT 2.4 DataGrid automatic scrolling when selecting an item I am using GWT 2.4's new DataGrid in a project. I configured the DataGrid with a pagesize of 50. The available screen is not big enough to display all items and thus a vertical scrollbar is shown (this is actually the main purpose for using a DataGrid in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Discrete Fourier transform I am currently trying to write some fourier transform algorithm. I started with a simple DFT algorithm as described in the mathematical definition: public class DFT { public static Complex[] Transform(Complex[] input) { int N = input.Length; Complex[] output = new Comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Android User Interface - Are tabs at the bottom the best approach? I am creating an app that provides users information about a building that the app is being designed for. For example it will tell the user the location of the building, hotels/restaurants/cafes nearby and some other useful information. I will be cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if file exists in resourses/project navigator I need to check if an image exists in the project navigator. If it doesn't it needs to download it from the internet. The goal is to be able to use images like [UIImage imageNamed:@"23451.jpg"]; So I need to check if the image exists, if not download it. I tried to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: threading.Timer time precision What does the time accuracy of Python's threading.Timer depend on? Does it depend on the OS used? Does it depend on the Python implementation used? Does it depend on the interval? How can it be benchmarked? Are there already benchmarks out there? A: In CPython, the threading.Timer acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Monodroid WebRequest bombs application I have tried this code in a normal C# app and it works fine. In monodroid, it completely bugs out (in other words, not even the try-catch works) when I try to READ from the stream (or the base stream) in ANY way. Please help: try { WebRequest request = WebRequest.Create(str...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RegExp to get any number + `;#`? I have several numbers in a string, such as: 8;# 10;# 34;# etc... I wanted to erase all of these from the string, so was thinking RegExp would be my best option. What regexp expression do I use that will identify any series of numbers followed by ;# ? A: Try something like this thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TinyMCE with ajax tabs I'm using tabs component of JQuery UI 1.8, and I'm loading content of tabs via ajax (html content). In one of this tabs I'm using tinyMCE component, and when I load this tab the first time, the tiny initializates correctly but if I navegate to other tab and I recall the tab again the tiny brea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do something when screen resolution changes with jQuery I want to set height of a div as height of window when page loads... So I used the below code : $(document).ready(function () { var x = screen.availWidth; var y1 = screen.availHeight; var y2 = screen.Height; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass and get Parameters between two Pages in Jquery Mobile? I am working on a some demo App to learn things in Jquery Mobile. I have tried a lot of options but not able to get solution on a few things :- * *http://jsfiddle.net/sahil20grover1988/zZMXQ/48/ In this case when i add param with Url in Index page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: which is the best way to externalize a database configuration on a desktop app? I'm working in a desktop app, and we're using Eclipse RCP with EclipseLink. All my database configuration is inside a class, but I'll need these thing (database URL, password, username) configurable. Which is the best way to do that? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Switching branch for a subdirectory only in Git I'm working on a Git repository with two main branches and two main folders. One of these folders is very similar between the two branches, the other is very different. This means that, even if I'm just working on the common folder, switching between the two branches i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to take screenshots of current running Java desktop application and stream it as video? So I have a java desktop application running on a server. I would like to take series of screenshot which can be streamed to the client. It should be almost as if watching a VNC video output. Basically need a way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send app to background and show the app(s) in the below window I dont want my app to run in background, I only want to give the user the option to close his/her other app(s) when my app gets a memory warning. That is, my app shows an alert view with Cancel and OK buttons. If s/he touches OK, then the twice push on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clusters over time in R I have a series of data that I'm going to use clustering on, and I want to see how this data clusters over time. So essentially everyone starts in a single group, as they have done nothing, but over time as they do different things they will be put into different groups based on their behavio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you tie UIMA to SOLR Dataimporthandler? We've been doing some tests with Apache UIMA. The results are amazing! Our ideal set up would be a tight integration of UIMA with SOLR. Ideally, we like to pass all the content we index past UIMA, for additional metadata. There are examples and documentation available ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: parsing SNMP MIB files (OID translation) I am making a network device monitor. Part of it is a PHP front-end where user can enter the SNMP values he is interested in (SNMP OIDs). I want to make the process simpler for the user so I want to create a simple MIB browser, allowing user to select the value(s) from the tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to initialise a C string with a 16-bit integer? I want to create a global 22 character (+ NULL) string in C. I am initialising it like this: #define SVN_REVISION "1143" #define SERIAL_NUMBER "PST3201109270001" char general_info[23] = SVN_REVISION SERIAL_NUMBER SAMPLING_FREQUENCY; So far, this works fine....
{ "language": "en", "url": "https://stackoverflow.com/questions/7582811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF FlowDocument Symmetric Layout How can a symmetric layout be generated using one FlowDocument? My code is: <Grid Name="grid1"> <FlowDocumentScrollViewer Name="name1" Margin="6,0,17,0"> <FlowDocument> <Paragraph> <Figure HorizontalAnchor="PageLeft" VerticalAnchor="PageTop" Width="0.5content"> <BlockUIContaine...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple domain linking to one existing domain I have an existing site almost 85% of its contents are database driven, Now I want 50 more such sites. I have an Idea of using this site as base site and access this site from different domains. I can keep database different for each domain. All of these websites behav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DjangoUnicodeDecodeError codec can't decode byte 0xdd in position I have a Django Web Application running in Apache with mod_wsgi in my dedicated server with Centos 5.5. However, sometimes (six or seven times in a day) it starts to give 500 Error for some random pages. But if I refresh the page two or three times, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Additional criteria to symfony filter i'm working on a symfony project to manage a database. First i explain how it works: In the database, all elements are associated to an unique element 'scene'. When a user accesses the application, chooses what scene he wants to see (it saves that in a user parameter). So when l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check if a string is a legal "dd/mm/yyyy" date? Given a string str, how could I check if it is in the dd/mm/yyyy format and contains a legal date ? Some examples: bla bla // false 14/09/2011 // true 09/14/2011 // false 14/9/2011 // false 1/09/2011 // false 14/09/11 // false 14.09.20...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to handle disk full errors in java I am working on a Java application. We read lot of data, manipulate it and then write to files in local m/c. If, in any case, the disk is full then how to handle this exception in Java application. A: Can you specify more exactly what do you mean when you say how to handle th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to enable the (two finger) zoom in/out feature for an image in android Possible Duplicate: android imageView: setting drag and pinch zoom parameters I am very new to android .. I have an image view in my layout .. I want to enable the zoom in and zoom out for the image coming from this image view .. zoom sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Streaming between two NSURLConnections, blocking NSInputStream read blocks all connections? I'm trying to stream data between two iOS NSURLConenctions (one downloading, the other uploading), but can't seem to make it work. * *I have two NSURLConnections running simultaneously. *One is downloading content from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Variable comparison problems I'm still relatively new to C# and the answer to this is probably pretty obvious, but I'm struggling to solve it I have an enum defined as follows: enum Request { None = 0, GetData, SendData, some other values... }; I then have two variables both defined as type Request ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: changing the images Could anyone helps me in the following. I need to show the 3 images in a image box control of asp.net. The images should shown for 30 seconds and those should be one after the other. A: Your question is more about Javascript than C# / ASP.NET. There are several ways to create an Image Slideshow:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: General Question about Android Gallery Control So, I've been doing xml layout for a project that involves getting a horizontal scrollable row of images on a screen, and did so using just a horizontalscrollview. and a bunch of imagebuttons. I used an include to put this on another xml layout page and another program...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fill gradient color in area under line chart in Protovis 3.2 In my project, I use Protovis 3.2 to render line chart. I want to fill gradient color in the area under line chart. Although I have tried available color functions in Protovis but they did not work. Is there any simple solution for this problem? Below is m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get DependencyProperties using reflection (Type.GetProperties)? I got a custom Type that as a couple of fields, and I'd like to only get Dependency Properties. Here is the code that returns all properties : propertyInfos = myType.GetProperties(); foreach (PropertyInfo propertyInfo in propertyInfos) { Console.Wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get Child Content Types of a Content Type How can I get the child content types of a content type? From here I've learned that, all the child content types have the contentTypeId begins with the parent's ID. So, I tried to use the suggested way that is in the link. Let me show you what I've tried first: usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programmatically copy indexes from one table to another in SQL Server Basically the exact same question as in this question: How to copy indexes from one table to another in SQL Server, BUT, how do I do it programmatically in T-SQL, given a source table name and destination table name? I.e. without knowing what tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What WPF threading approach should I go with? I'm writing a WPF application (new technique, mostly I've been writing in WinForms). My goal is to make UI responsive whole time, and I've read that it can be achived using Threading/BackgroundWorker. I think that I should use background worker to put there time consumin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error in creator function when trying to adapt sqlalchemy's polymorphic association example I am looking at http://www.sqlalchemy.org/trac/browser/examples/generic_associations/discriminator_on_association.py and trying to adapt the example to one that is generic and can be reused. So I attempted to abstract all the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing Viewstate in Database disables my asp:ImageButtons events I followed the guide here to save my ViewState into the database. I did some changes to it to fit my projects code design, but the essential parts are there. But when I implant this solution all my asp:ImageButtons events stops working, but regular as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cast XML layout as view in android before setContentView I want to cast multiple XML layouts as views. Because of a change request I need to use a ViewSwitcher. So I have to cast the XML layout to Views before setContentView. I always get a NullPointerException. I tried: view = (View) findViewById(R.id.viewgroup_id)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check if rootViewController is of a specific class? I would like to know if the rootViewController in a navigation controller stack is of specific class. How to do such a thing ? Thx for helping, Stephane A: The navigation controllers root view controller is, id rootVC = [[navigationController viewController...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Size of images for iPhone app store what size should I export my graphics, for use in the example/screenshot section of the app on the app store. Thanks A: You should read the dedicated Apple documentation about the subject that gives every info about the icon sizes Read this Technical Note too where every icon and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to change Google task status from completed to Pending? I am working on Google task api When i update task status from needAction to complete it change perfectly. But when change from completed to anything(Pending/needAction) It gives error means status not change when once it set to completed. any solution? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: issue with iphone NSString I have an iphone application in which I want to draw the route between two locations on the map. The locations are refered by their coordinates(latitude, longitude). For loading the waypoints between those two locations I use a script that acces google maps, with this method: function loa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I find radius from center in MKMapView in iphone programming? I have to send radius to web-service and it will return the data of stores back to iPhone. It is pretty good when I am sending radius as digit such as 45, 60, or whatsoever, but what if I am on map and want longitude and latitude from map and wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is a Join Faster than two queries I know this question has been asked before, example, and I do agree that one query with a join is faster than performing another query for each record returned by the firs query. However, since with a join you tend to generate redundant field will this slow the network ? Let's say ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Simplifying fractions in C# I have made a console app that adds and subtracts fractions, I have added a function to simplify: public static Numbers Add(Numbers n1, Numbers n2) { int den1; int num1; int num2; int dsimp; int nsimp; int numtop; num1 = n1.N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Deletion in binary heap I am just trying to learn binary heap and have a doubt regarding doing delete operation in binary heap. I have read that we can delete an element from binary heap and we need to reheapify it. But at the following link, it says unavailable: http://en.wikibooks.org/wiki/Data_Structures/Tradeoff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Alert dialog gets dismissed by itself? @Override protected Dialog onCreateDialog(int id) { LayoutInflater factory = LayoutInflater.from(GmailFetchActivity.this); final View textEntryView = factory.inflate(R.layout.alertdialog_gmail, null); final EditText username = (EditText) textEntry...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add Custom ComboBox Filters to Admin User List in Wordpress I want to add 2 combo box in Admin User List Panel. For example the first one will be a combo box with countries and the other combo will be User Age. So I want to add these combos in order to filter the user list. Could you please shed some light here?. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How come when I run a .php script in Ubunutu it just echos the script itself? I have to decode the binary content data of one of my Chrome cache files which I name cache.log. The way I am trying to decode it is by using a php script I found here http://www.frozax.com/blog/2011/05/recover-file-google-chrome-cache-gz...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to integrate my own structural annotations engine in the Entity Framework designer? In the accepted answer to this SO question there is an explanation about structural annotations, a way to customize the data on the EDMX files generated by the Entity Framework designer. This feature is used by the Portable Exten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Grouping table view sections by day and country I have an Core Data entity called Event and the two relevant attributes are called startDateTime and countryCode. My problem is that the sections in my table view need to be grouped by day AND country code. I've seen a lot of examples on how the achieve grouping by day...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Declare @MyVar SameAs [Table].[Column] In the latest version of T-SQL, which I presume is SQL 2008 R2, can one declare a variable and specify that its type is to be the same as a specified table.column rather than hard coding a specific data type/length? I'm guessing that T-SQL still doesn't have it but I wanted to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Casting string to bytes while parsing XML to Objects ('str' does not support the buffer interface) I encountered a problem while using function parseString xml.sax.parseString(src, builder) TypeError: 'str' does not support the buffer interface I trying change this calling to: xml.sax.parseString(bytes(src,'utf-8')...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Erroneous Results calculating the gradient of an image with ITK In the header file, I declare all of this types, The “Gradient ImageFilter” is for calculate the gradient of a 2D image, and the “VectorIndexSelectionCastImageFilter” is for selecting the ’x’ and ‘y’ component of the gradient calculating, due to the fac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event doesn't get called i am making a cocos2d game and i can't get the touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event to be called. Is there something i should do besides including this function? A: When using cocos2d with touches you should use the foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delete Contents Of A table How Can I delete Contents of A table.. If I have 100 rows in a table and i want to delete all of them without droping a table how would I? A: Use DELETE without a WHERE clause: DELETE FROM tablename This may fail if you have other tables that refer to it via foreign key references. A: Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }