text
stringlengths
8
267k
meta
dict
Q: POSIX threading on ios I've started experimenting with POSix threads using the ios platform. Coming fro using NSThread it's pretty daunting. Basically in my sample app I have a big array filled with type mystruct. Every so often (very frequently) I want to perform a task with the contents of one of these structs in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: want to play TTS on Bluetooth headset I have a TTS Application which works fine on phone speaker and wired headsets. But when I connect Bluetooth headset, it does not speak on Bluetooth headset. How can I do this without using any deprecated API. The problem is in Android 2.3 AudioManager .. setRouting(), setBlueto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to play background music while recording voice? friends Now I'm developing iPhone Recorder App. I can easily record my voice with sample code. I want to record background music with my voice. For example,When I click "Record" button,background music plays Then I sing a song. In this case,I should record backgrou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to encode long-string in the DB where attribute type is varchar(254)? Say for some reason I’ve got a table in the DB that only have varchar(254) attribute types. So in other words, I cannot store a String directly which has more than 254 characters. But would there be a way around this, i.e. is it possible to en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Daemon to monitor activity I am working on some kind of communication which might get interrupted once in a while. For this I need some kind of monitor that fires after 5 seconds, if not in the meantime has been reset by any valid communication to start waiting for another 5 seconds, and so on.... Thanks! A: Take a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery that just waits I normally set up my javascript code to have a function. But due to the fact that the application generates most of the HTML and javascript calls from a VB6 application I would like to create a jQuery function that is more like a listener. So for example if I have a td tag that has the class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access the SVNClientAdapter that subclipse is using during runtime? I am using the Subclipse API and I would like to implement the ISVNNotifyListener so that I can find out about the subclipse events as they happen during runtime. I believe I need to add (subscribe) my instance of the notify listener to the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Phonegap GPS without internet I m trying to make an android app which count the distance traveled from log,lan values with phonegap.But phonegap GPS work only when internet or wifi in ON condition.How can get log ,lan values without internet by using geolocation api.Thanks in advance . A: See the PhoneGap API Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Django’s filter() method joins parameters using an AND statement. Is there an alternative that uses OR? I’m trying to write a Django query that returns objects that match either of two parameters. If I do this: MyModel.objects.filter(parameter1=True, parameter2=True) Then I only get objects that match both paramete...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pagedown (WMD-Editor) Java Sanitizer (or OWASP xml rules) I'm using the reimplementation of the famous wmd-javascript editor PageDown on client side (which is also used on Stackoverflow). Now, I'm searching an HTML sanitizer for my server (runs tomcat7) which should only filter the HTML-subset that the PageDown edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS to change background color of ASP.NET server controls I have a Div with a table (2x2) inside it. I also have a CSS file but I am not following how to change the background color of table columns where ASP.NET DropDown exists. I tried: Edited <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to split image into smaller rectangles for iPhone, Android, or Rails? My client would like to create an iPhone & Android app that turns custom photos into jigsaw puzzles. (Yes, we know these exist already.) What's the best way to take a custom image and split it into smaller rectangles? This SO post is close (ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: flash player is outside of div (only in IE) I'm using the following code to display a fusionchart inside a div tag. The chart is rendered correctly in Chrome and FF, but with IE it's outside the boundaries of my div tag. Any idea what I'm missing? <div id="chart_div" style="width: auto;border: solid 1px #ff0000;><...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to count the number of children of parents in prolog (without using lists) in prolog? I have the following problem. I have a certain number of facts such as: parent(jane,dick). parent(michael,dick). And I want to have a predicate such as: numberofchildren(michael,X) so that if I call it like that it shows X=1. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom dialog to alert web page didn't load I want to alert people if a page doesn't load and the Toast feature doesn't stay up for a long enough period of time (but i left the code in and commented out in case i want to go back to it). So I am now trying to do a custom dialog instead but that doesn't pop up. I bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write stream in the same browser window using OutputStreamWriter? In the server side code, I am writing a string (which gets written on a browser page) using OutputStreamWriter. This gets written in a new window. I need to be able to write this in the same window. The class extends HttpServlet and following i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wordpress 3.2.1 javascript error - $ is not a function I'm receiving a $ is not a function error. This is new since I updated from 3.2.1. I have an identical setup working on 3.1. Have folks run into this issue? I have turned off all plugins and am just attempting to load the superfish (or any jquery) and am receivi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does the JavaScript Image object interact with the browser cache? I'm using simple objects to wrap Image objects and track when they are loaded, like so: var preloader = { loaded: false, image: new Image() } preloader.image.onload = function() { preloader.loaded = true; } preloader.image.src = 'http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Overlapping Grids inside a Tab I have two grids inside a TabItem and in the code-behind I want to be able to add controls to both grids and have all the controls visible at run-time. Currently at run-time the controls added to "Grid3" are not visible while he controls added to "Grid4" are visible. The overlapping gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatically maintaining sitemaps Hoping someone can chime in on an ideal methodology. I don't want to run my site through a crawler every month to add new pages to my sitemap, I'd like some robust systematic method to do so, because maintaining it by hand seems very prone to ahem human forgetfulness. Is there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Qt state machine framework connect signals In the Qt State Machine Framework documentation there is an example how to set properties on state activation: s1->assignProperty(label, "text", "In state s1"); s2->assignProperty(label, "text", "In state s2"); s3->assignProperty(label, "text", "In state s3"); Is there a w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Performing an action on one view, and the action doing something on another view? Is this possible? I have 2 views: * *OneViewController *TwoViewController TwoViewController has an IBAction which plays a sound. Once the user has pressed the button on TWoViewController I want a UILabel which will appear on One...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert a string to a url encoded I want to be able to convert for example ™ to %99 but i dont know what encoding is that I tried looking at httputility class but i dont get %99 i get other wierd signs can you please help me? thanks Im using C# I want to do that so my the login would work with all chars like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: templated variable I currently have the following non templated code: class Vector{ public: double data[3]; }; static Vector *myVariable; void func() { myVariable->data[0] = 0.; } int main() { myVariable = new Vector(); func(); } I then want to template the dimension : template<int DIM> class Vect...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Rails 3 - routes for admin section I am building my first admin section in Rails and I am struggling with routing problems. My routes.rb looks like this: get "admin/menuh" get 'admin/welcome' namespace :admin do resources :users resources :menuh resources :menuv resources :welcome end And my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you save file on server? I am saving images on file and i am creating first folder which has Guid name for avoiding to duplicate file names. And entities hold reference src of image. I feel that creating folder and giving guid name is wrong from point of performance. So how i have to avoid duplicate names ? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Immediately accessing an object's property Given these four examples of defining an object and then attempting to immediately access their properties: {foo: 'bar'}.foo // syntax error: unexpected_token I expected this would return the value of 'foo', but it results in a syntax error. The only explanation I can come...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using DOS batch script: find a line in a properties file and replace text Trying to replace a string in a properties file on a certain line by using a batch file. I know that this can be done WITHOUT the use of a temp file, as I have seen it before, but forgotten how to do it. I know that if I have a var.properties...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there validation rules for UniqueIdentifiers in SQL Server? Supposing I've got a bit of SQL that filters data by a column which is of type UniqueIdentifier. Select * from core.Pages WHERE PageId = '1DC4E71C-4E68-489D-A837-2C9BA8DCC1DC' (This guid was generated by the NewID() function) For the purposes of a quic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a more elegant way of switching templates based on the user-agent, in JSF? We have a web application written with JSF and are trying to add a mobile version to it. Ideally, we'd have a separate folder with templates, CRUD and resources (e.g. jQuery Mobile) and our landing page would be able to choose the ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: YouTube video on Flash Banner CS4 AS3 I am trying to make a flash banner in CS4 with AS3. In this banner I have to embed youtube videos. My problem is.. after the video loaded I cant have/see usual controls (fullscreen, pause, stop, etc) on the video.. and the video has the autoplay by default. I am using this code...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to automate SHH commands using PuTTY I am trying to automate connecting to UNIX using PuTTY and sending commands. My team use this to execute a series of processes that can get really repetitive. I have already accomplished this using autoit v3, however I can only send commands to the putty window but not read a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query to return rows where column does not contain a certain substring Is there something I can put in my WHERE clause to only select fields from a column where that field does not contain a certain string. In this case, I am looking through to make sure the codes in this particular field do not have a "cs" in it. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: TortoiseGit, Git SVN Rebase and FETCH_HEAD slowness When I do a Git SVN Rebase and the dialog window pops up to Pick, Squash, etc., the UpStream dropdown box always defaults to FETCH_HEAD now. Ideally I'd like it to point to remotes/git-svn instead. In addition, it takes almost a minute for the dialog box to stop up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I create a virtual directory that points to a letter drive that doesn't have wwwroot directory? Greetings all and please forgive me if my question is too cheap. I have drives on our server, C:\ drive and D:\ drive. IIS is installed and configured. C:\drive has inetpub\wwroot D:\drive has only inetpub; no wwwroot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blackberry RIM runtime code signing : can't make my appli signed, and don't start on device I've succed to download and install the 3 file for the RRT on Eclipse, Blackberry plug-in, version 1.3. After installing the keys, everything seem to be OK. I can clik on BlackBerry --> Sign -->Sign with Signature tool. On my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multithreading -- matching instances I want to run two XPath-Expressions concurrently on two revisions of a database which both return results from an Iterator/Iterable and match resulting nodes with nodes in a List. I think the best thing is to run both queries in two threads from an executorservice and save result...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When to use comma-separated values in a DB Column? OK, I know the technical answer is NEVER. BUT, there are times when it seems to make things SO much easier with less code and seemingly few downsides, so please here me out. I need to build a Table called Restrictions to keep track of what type of users people want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the right way to extend EditText to give it additional "default" functionality I'm wondering if it's possible to add functionality to EditText such that when I include my newly extended field in the layout xml, I don't have to then add any code to the Activity class to get it to behave in specific ways. For e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: maven connecting to Sonar I have maven installed on my local machine and I'm trying to test out Sonar installed on a remote box. I found a few post online to configure settings.xml (maven\config\settings.xml) and append a profile entry...which I did but does not work <profile> <id>sonar</id> <activation> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Runtime Error '9' Subscript out of range I have a macro that needs to open a few excel files and copy data from those files and paste them into the macro file in a sheet named "Consolidated". The macro goes to a specified path, counts the number of files in the folder and then loops through to open a file, copy the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Conditional Statements (please see explanation) Ok, I have three conditions here. It's seems pretty simple, but I can't get it working how I want, bear with me as I try to explain it. If(conditionA){ Play Sound 1} If(conditionB) { changedrawable ///(irrelevant) } If(conditionA && conditionB){ Play sound 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVCContrib Grid - Sort(GridSortOptions, prefix) not generating links for sorting I'm trying to use two grids in the same page and following what I found here: http://mvccontrib.codeplex.com/workitem/7032 Has anyone else had a problem with the Sort() method not generating links? The sorting was working before but i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any mechanism in Shell script alike "include guard" in C++? let's see an example: in my main.sh, I'd like to source a.sh and b.sh. a.sh, however, might have already sourced b.sh. Thus it will cause the codes in b.sh executed twice. Is there any mechanism alike "include guard" in C++? A: If you're sourcing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Access widgets in a VerticalPanel in Google Apps Scripts? Is there a way to access the widgets within a panel in GAS? Something like: function clickHandler_(e) { var app = UiApp.getActiveApplication(); var panel = app.getElementById(e.parameter.whatever); // short-cutting here for (var i=0; i<panel.widgets.len...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does a function like this already exist? (Or, what's a better name for this function?) I've written code with the following pattern several times recently, and was wondering if there was a shorter way to write it. foo :: IO String foo = do x <- getLine putStrLn x >> return x To make things a little cleaner,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Memory Clean Up in Windows Phone Mango How i can implement memory clean up in WP7? Does GC.Collect() do the trick? or need clean up manually? A: You don't need to manually clean up memory on Windows Phone. You shouldn't call GC.Collect() unless it's absolutely necessary. I would recommend you read this article: Win...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to group by a given column in a List of T collection using linq? Say I have a collection of IList<Products> products And I want to group by Product.Type in that collection, where Type is a Guid. Just thinking about it, I really just need to Order by the Product.Type, wouldn't ordering and grouping return the sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: fail compile if required flags aren't present I have some legacy code that needs certain gcc flags passed in. Can I add pre-processor checks for these flags? For example, let's say I need -fno-strict-aliasing, can I do something like this: #ifndef _FNO_STRICT_ALIASING #error -fno-strict-aliasing is required! #en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Symfony2 Doctrine2 Translatable Strange behavior I have a question about a strange behavior in the Translatable extension. I have two tables, one called pages, and one called pages_translations in which I've the translation of my title|subtitle|text fields. When I save for the first time a record, in the table pages...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Asking for help to fix inline assembly issue in D program Hello I'm trying to use ASM in a little D program : asm { mov AX,12h ; int 10h ; } I've got this message : "end of instruction" from the two lines in the asm statement I cannot fix the issue, that's why I'me asking help from you. thanks for you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: I don't know how to "sort" arrays I have this array : array(2) { [1]=> array(4) { ["name"]=> string(14) "Les Contenants" ["ordre"]=> string(1) "3" [9]=> array(1) { ["name"]=> string(20) "Corbeilles unitaires" } [10]=> array(1) { ["name"]=> string(6) "Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eclipse builder incompatible with m2Eclipse and Maven I'm seeing an issue where a given source file built by Maven produces a class file that is different than the one built by Eclipse. The Eclipse builder is optimising away the following method: public SomeClass clone() { SomeClass clone = (SomeClass) super.clo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Writing Java equivalent of the Fortran program I have something like this in fortran. 20: call TESTBEGIN(a,b,c) if(c<1) goto 40 30: call TESTMIDDLE(e,f,g) if(g==1) goto 20 40: return But my code is like this Subroutine testCase() 20: CALL beginTest(a,b) IF (b.EQ.-1) GOTO 999 30: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using geometry shader to create new primitives types Is it possible to output new primitive type from geometry shader other than was input? I'd like to input a point and render a triangle. The point would be used just as center for this triangle. If not, is there other option to input just point and render some othe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: refresh window after facebook like I have created an app inside a company page to add more tabs/pages with a "like-gate" to ensure the user likes our page before moving forward. The like gate sits at a location say "index.php" if the user likes our page "index2.php" is included, in they do NOT like us "index1.php" i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: use drawn image for game on iphone I want to use this user drawn image for the game that follows - i need it do be smaller and go to the top of the screen so that it can move left and right (to dodge objects). What do I do next? @implementation DrawView - (id)initWithFrame:(CGRect)frame { self = [super initWithFr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Navigation menu to show current page link active - jquery I'm using the jquery accordion plugin, so far it works right but it displays the active link but they are not linking to any page, they are just using as a numbered link locator inside the same page. How can I make it to show the current page link active af...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to control level of debugging info in glib? I have a library written in C with glib/gobject. It produces significant number of debugging information via g_debug() call. This info is very helpful for troubleshooting, however I do not want it to be shown, when library is included with actual application. So, basic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Removing a specific item from a BlockingCollection<> Is there a way to remove a specific item from a BlockingCollection, like this: IMyItem mySpecificItem = controller.getTopRequestedItem(); bool took = myBlockingCollection<IMyItem>.TryTake(out mySpecificItem); if(took) process(mySpecificItem); ..... in other wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Question about Unions and Memory Mgmt I'm confused about unions and how they allocate memory. Say I have: union Values { int ivalue; double dvalue; }; Values v; So I know the int uses 4 bytes and the double uses 8 bytes, so there are 8 bytes allocated in total (I think), with that said how much memory woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UTF-8 error with Cucumber feature I’m using Rails 3.0.7 and ruby 1.9.2 with cucumber and capybara. I just had this problem, and I can’t find a solution :( invalid byte sequence in US-ASCII (ArgumentError) :10:in synchronize' (eval):2:inclick_button' ./features/step_definitions/vouchers_compa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem Implementing UIView Category For whatever reason, the following code isn't working: #import <Foundation/Foundation.h> @interface UIView (FindUIViewControllerParent) - (UIViewController *) firstAvailableUIViewController; - (id) traverseResponderChainForUIViewController; @end #import "UIView+FindUIViewCon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring - Qualify injection candidates by designated environment Edit: Perhaps a more concise way to ask this question is: Does Spring provide a way for me to resolve ambiguous candidates at injection time by providing my own listener/factory/decision logic? In fact, arguably the @Environmental qualifier on the memb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is access token in facebook API? * *What is access token in Facebook API? *why I need it ? *What is its purpose ? *Do I need to store it persistently in my website ? A: For almost every request you make to facebook API you need to pass access token along to get the results. This token may expire depen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Progress bar and XML in Vb.Net Does anyone here know how to integrate a progress bar while loading an xml data into a treeview in VB.Net? Most xml data I am loading can reach upto 30MB so the form freezes while the xml data is loaded or when the nodes are added in the treeview. Here is the code for creating the node...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I implement Quartz.Net to schedule tasks for my MVC3 web app? I'm building a project to send messages to users. The client wants a way to schedule these messages to be sent out at a certain time, for example, he creates the message at 2am but wants it to be sent out at 10am without his intervention, where do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Mobile: How to customize button How do I change the <a data-role="button"> button's background to my image? Also how can I add my custom icons on top of a button at left side? A: Give the link a class and use CSS to change the background image. <a data-role="button" class="my-button"> ... .my-button { b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Delay email sending with php I'm using a FOR loop to send emails from an array[250]. for ($counter = 0; $counter <= 250; $counter ++){ // send email function[$counter] } I thought about the sleep() function but since the server have limit excute time isn't an option. Please help me with this! A: To delay sending...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does XText require minimum versions of Eclipse or Java While I can just try and run it and see if it fails I may not know if some internals will fail at inopportune times does anyone know if specific versions of java or eclipse are needed? A: I'm sure, no special version of Java nor Eclipse is needed. It needs Java...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I generate a keyup event with a specific keycode in IE8? I need to generate keyup events in IE 8 using native DOM functions (no jQuery). The following code generates, fires, and receives the event, but the keyCode is always 0. How do I properly pass the keyCode? <form><input id="me" type="submit" /></form> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Ruby gem environment issue - LoadError: no such file to load -- robots I'm attempting to write a crawler using the anemone gem, which requires the robots gem. For whatever reason, robots absolutely will not include. Here is some of my environment info: $ gem list -d robots *** LOCAL GEMS *** robots (0.10.1) Au...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I validate country and state/province names and postal codes? I am building an web app (with PHP) that requires users to subscribe. I would like for them to identify where they are from. So what is the best way to validate there country/state(or province)/city/postal code? Is there a DB with all the informati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Compile native c binaries for Android - Eg: dosfsck I am trying to compile the binary dosfsck and mkdosfs for Android, using Linux and Android NDK and SDK. I've setup NDK and SDK properly, the path to the NDK gcc is in my path. I've also downloaded the correct SDK for my device (HTC Desire). I first tried compiling ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Declared but unset variable evaluates as true? I was doing a simple calculator with the following code. Right now it executes perfectly. When I tried to change things around, however, it doesn't work. I used BOOL program to check whether to continue asking for input from the person or finish the program. If I change...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Problems building Eclipse RCP application I'm trying to build a Eclipse RCP application with Maven/Tycho based on features. My application is a simple language with an editor (built within help of Xtext) and a few other plugins which are dependencies to the project. There are a few howtos which describe how to creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Php mail function error, mail sent from wrong address I would like to sent e-mail to registered users with the following code: $to = $ownerMail; $subject = 'SGKM - Online Ticket'; $message = 'SGKM - Online Ticket'; $headers = 'From: sgkm@ku.edu.tr' . "\r\n" . 'Reply-To: sgkm@ku.edu.tr' . "\r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make MIN() return multiple rows? Is there a way to return more than one row based on the idea of this query: SELECT MIN(colname) AS value FROM table_name Thanks Dave A: No, there is no way to return more than 1 rows for this very query (the one you included in the example) If you want to be doubly sure, add a "LIM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieve event handlers registered on input(type=button) click Is there a posibility to retrieve handlers registered on click event, if they have been registered via javascript ? I have an element with empty onclick atribute, but on input click event some js handler is executed, and I need to get the handler. A: F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Linq is removing a value from my entity So, in a desperate attempt to wrangle EntityFramework into being usable. I am here.. private MyEntity Update(MyEntity orig) { //need a fresh copy so we can attach without adding timestamps //to every table.... MyEntity ent; using (var db = new DataContext()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS: Can I intercept swipes on top of a UIWebView? I want the user to be able to swipe left, right, upward and downward on a UIWebview, but I don't want the HTML/Javascript to process those swipes-- I want to do that myself. Is that possible: To intercept just the swipes? I want the taps still to go through to the U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PhraseQuery: can Lucene skip words from Query (not exact search) if nothing found Suppose I'm making request [hibernate-search] lucene phrase. The are 2 docs that satisfy exact phrase, but there are a lot of docs with [hibernate-search] lucene. How should I construct a query to display exact docs first and then docs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: XSLT display ALL XML tag contents I am new to using XSLT. I want to display all of the information in an xml tag in my xsl formatted page. I have tried using local-name, name, etc and none give me the result I want. Example: <step bar="a" bee="localhost" Id="1" Rt="00:00:03" Name="hello">Pass</step> I would like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do we manage granular changesets in the central/shared repository? I've used Mercurial for years locally, but now we are doing a pilot of switching over from Subversion at my company. We're embracing the fact that developers will now be making more granular changesets--some of which may not even build. When deve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why are std::vector::data and std::string::data different? Vector's new method data() provides a const and non-const version. However string's data() method only provides a const version. I think they changed the wording about std::string so that the chars are now required to be contiguous (like std::vector). Was st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Change secure http page content in a Firefox extension using Greasemonkey compiler I'm building a Firefox extension that alters the page content of a few select websites and I'm using the Greasemonkey compiler to do this (http://diveintogreasemonkey.org/advanced/compiler.html). The trouble I'm having though is with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is PL SQL really required? what all can be done in PL SQL can also be done by embedding sql statements in an application langauage say PhP. Why do people still use PL SQL , Are there any major advantages.? I want to avoid learning a new language and see if PHP can suffice. A: In addition to performing bulk operatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Resizing a circle - Where is the bug sitting? I have the following code, the circle doesn't resize: HTML <div onMouseOver="mainOver();" onMouseOut="mainOut();" id="c"></div> JavaScript / jQuery function mainIn() { $('#c').animate({ border-radius: '100', webkit-border-radius: '100', moz-b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fast query when executed individually, slow when nested I'm trying to find the most recent entry time at a bunch of specific dates. When I run select max(ts) as maxts from factorprice where ts <= '2011-1-5' It returns very quickly. EXPLAIN gives select_type SIMPLE and "Select tables optimized away". But when I run ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP move_uploaded_file() issue I have the PHP script (testupload.php): <?php error_reporting(E_ALL); ini_set('log_errors',1); ini_set('error_log','/root/work/inputs/log_file'); $target_path = "/work/inputs"; $target_path = $target_path . basename( $_FILES['frag3']['name']); echo "Received ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python + readline + auto-completion (tab): why are dashes and question-marks treated as word-separators? Hello coders and brave GNU-readline users, A few months ago I started using Python's (2.7.1) readline module for a shell-like application I've written. The application has nothing to do with files and file-system...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Non member function can be declared multiple times while member function can only be declared once? Non mumber function can be delcared multiple times while member function can only be declared once? Is this right ? My example seems saying yes. But Why ? class Base{ public: int foo(int i); //int foo(int i=10...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to print user-defined datatypes in ocaml? I can't use print_endline because it requires a string, and I don't (think) I have any way to convert my very simple user-defined datatypes to strings. How can I check the values of variables of these datatypes? A: There are third-party library functions lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: JQuery click function and the -Tag horror i have the following table: <table id="list_table" class="global" border="0" cellpadding="4" cellspacing="0"> <thead> <tr> <th>Grund</th><th>Von</th><th>Bis</th><th>Beschreibung</th><th></th></tr> </thead> <tbody> <tr> <td><select name="grund[1][1]"> <option value="krank">Kr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SEF url from module in joomla I am making a module and trying to figure out how to get the Search engine friendly url to articles from this module this is the helper class today public function getItems($amount) { $db = &JFactory::getDBO(); $query = 'SELECT * FROM `#__content`, `#__content_frontpage` WHERE `#__con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing the focused window in windows xp from java-based web application using JNA and Windows sendMessage API I'm wondering if anyone has any experience using JNA to call windows sendMessage API from a java web application running in a browser to change the focus from the browser to another program that is already...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sim number and serial number in windows phone 7 How can i fetch SIM number or phone serial number in windows phone 7? In Android I use this code and it works: / Get the SIM country ISO code String simCountry = telephonyManager.getSimCountryIso(); // Get the operator code of the active SIM (MCC + MNC) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Flurry Analytics I've used a previous version of Flurry SDK with xCode 3.2.5 in my mobile application. Recently, I upgraded to Mac OSX Lion and xCode 4.1. However, I'm finding it hard to integrate the Flurry SDK 3.0.0 with xCode 4.1. I copied the FlurryAnalytics directory to my project directory, then added it in my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MVC 3 StackOverflowException w/ @Html.Action() I've looked over a bunch of other reports of this, but mine seems to be behaving a bit differently. I am returning PartialViewResults for my child actions, so that's not the source of the recursion. Here's a dumbed down version of what I have. // The Controller [Chil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WinForms: ListBox item updates case insensitive? I have a Windows Forms ListBox data-bound to a BindingList of business objects. The ListBox's displayed property is a string representing the name of the business object. I have a TextBox that is not data-bound to the name property but instead is populated when the Li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }