text
stringlengths
8
267k
meta
dict
Q: How can I make a facebook app work only on my page? I wrote an app that works as a page tab, but I don't want others to use it. Is it possible to make the app work only on my page? Also, If it is possible to redirect the user to my page if he accessed the app through another page? A: This is somewhat crude but shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Merge two arrays by key but mantain the key of the first in PHP, array_combine fails I am trying to combine two arrays but mantaining the key of the first. I've this data: $days = array( 1 => array("name" => "Monday"), 2 => array("name" => "Tuesday"), 3 => ... 30 => array("name" => "Sunday"), ); And...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: playing audio from Application in blackberry? I want to play audio from my application. the following code is used try{ Player p = javax.microedition.media.Manager.createPlayer("file:///store/home/user/recording.amr"); p.realize(); VolumeControl volume = (VolumeControl) p.getControl("VolumeControl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jpa - Hibernate @Version incorrectly incremented I'm using jpa with hibernate (3.2.7) as orm implementation. I have an entity being modified and then merged. I also have an @EntityListeners on this entity to ensure some attribute being valued. If I change a value before merge, and then change back that value in @Pre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can I get the property of ControlTemplate element? My XAML looks like this: <charting:Chart Name="pieSeries1"> <charting:PieSeries IndependentValuePath="Category" DependentValuePath="Amount" Palette="{StaticResource MyPalette}"> </charting:PieSeries> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ivar check if it has been initialized and used let's say I have an instance variable MyObject* test; @property(nonatomic, retain) MyObject* test; .m @synthesize test; I might initialize it or might now depending if I need to. If I don't need it, no point wasting on initialization. The question is in the dealloc, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get URL from Eclipse's internal web browser I've been having a hard time figuring this one out. I'm writing a plugin in eclipse which launches Eclipse's internal web browser. So far I've opened up the internal web browser: IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport().createBrowser(IWorkbenchBr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Are C++ Vectors always contiguous? Possible Duplicate: Are std::vector elements guaranteed to be contiguous? I have come across a technique in which people use a vector in C++ to receive or send data for MPI operations as it is said to store elements contiguously in memory. However, I remain skeptical of whether ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cant change owner of new file I'm using PHP to retrieve some Base64 data, decode it and write it to a file, my code works fine. However, the owner is apache and the permissions are very low, so even if I FTP into the area where it's uploaded, i cannot download the file. However do i change the permission and owner s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flex File download I'm currently working on a Flex3/blazeDS/Spring/Oracle project. My requirement is display a list of files from an external FTP server in a grid, user can select single file or multiple files to download, and if user selects multiple files I should tar the files on the FTP server and download the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding greyscale fx to a class using JavaScript? I'm trying to use jQuery to add a greyscale fx to every image that has a class greyscale, but the below doesn't seem to work. Has anyone got any ideas on why this may not be working? $(function(){ var imgObj = $('.greyscale'); var canvas = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaHL Library not found error I installed SVN using the instruction give here: http://alvijee.blogspot.com/2010/08/setting-up-subversion-with-adobe-flash.html I did select JavaHL Native Library while installation are restarted Flex Builder too. Now, from Window > Perspective > Other > SVN Repository Exploring, if I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: 403 Forbidden on when posting HTML chars after server move The site I'm working on was working perfectly on a development server, however the client has his own server so I transferred the files + database, sorted file permissions etc. Now everything on the site works fine however when I send certain HTML characte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Code does not work in android 2.1 I'm working on an android application thats dealing with contact. I have used the following code in android 1.6 and it works fine. public static Uri getProfilepicture(Activity activity, String address) { Uri personUri = Uri.withAppendedPath(Phones.CONTENT_FILTER_URL, address); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vb.net System.IO.StreamReader Empty path name is not legal I have a fault with System.IO.StreamReader. Public Class Project Dim merah As Integer Dim File_Directory As OpenFileDialog = New OpenFileDialog() Dim objReader As New System.IO.StreamReader(File_Directory.FileName) Dim Text_LineByLine As Str...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are Commas only used in a picture clause within Cobol I'm working from this parser http://mapage.noos.fr/~bpinon/cobol.jj and trying to get pictures to work with commas. It seems to just support commas out of the picture string as a separator. Just wondering where else commas are used in Cobol. Cheers A: COBOL ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Export test lists in Visual Studio I have an application for which I am maintaining multiple versions. So, for that I have multiple versions of solution. I created test lists to group some unit test cases in one solution. Now, I have to do the same in another solution. Is there any way we can export the tests list a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to process WebResponse when .NET throws WebException ((400) Bad Request)? I'm using Facebook Graph Api and trying to get user data. I'm sending user access token and in case this token is expired or invalid Facebook returns status code 400 and this response: { "error": { "message": "Error validating ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: How can I correct this facebook error? I have a small facebook application where I want to publish a swf file to a user's wall and my wall.I have got this code so far.However, I am getting an error when I click on Click to share..How do I sort this out? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Applying distinct to single column I have a sql query select distinct Process.ReportLogProcessID as [Process.ReportLogProcessID], Process.ProcessTitle as [Process.ProcessTitle], CAST(User0.PrimaryEmail AS nvarchar(max)) as [Process_Contacts.IsPrimaryContact] from ReportProcess as Process inner join ReportProce...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find and set css to html element in variable Suppose i have variable in js and that variable has html as text like sHtml = "<div id='dvPrint' ><table>"; sHtml += "<tr><td>" + "<img src='" + ImgPath + "' height='900' width='600' border='0'/>" + "</td></tr>"; sHtml += "<tr><td>" + $('#lblTxt').html() + "</td></tr>"; s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Query crafting Edited outputs: no file names or trailing slashes are included I have a database with potentially thousands thousands of records (we're talking a 2MB result string if it was just SELECT * FROM xxx in a standard use case. Now for reasons of security this result cannot be held anywhere for much more...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Class based GDClient use I study the document about Google API auth. And I little bit confused. In document written: import gdata.gauth import gdata.docs.client CONSUMER_KEY = 'example.com' CONSUMER_SECRET = 'abc123doremi' SCOPES = ['https://docs.google.com/feeds/', 'https://www.google.com/calendar/feeds/'] # ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: complete list of mime-type <-> file extension mapping I can't find a complete list of mime-type mappings on the internet. I would like to have a list that refers a file extension to every existing mime type. The list of all mime-types can be found here: http://www.iana.org/assignments/media-types but that resource ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Convert image to indexed color with custom palette through console I have image.png in truecolor, palette.png (N colors, where N>256) or text file, where list RGB color palette. How to get a picture with this palette? If I use imagemagick: convert image.png -remap palette.png remap_image.png It does not work. conve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can we run JavaScript jasmine tests from Jenkins (Hudson) without loading a JSP? We have a rich web client. Our controllers and service facades are written in coffeescript (JavaScript) and jquery. In the past they would have been java. To run our JavaScript jasmine tests from Jenkins/Hudson, we use java's juni...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: C++ to C# event handling So I've got my C# WinForm Application, from it I call my C++ CLI MFC dll library. But there are some events on my C++ library, even this events happens in native (non-CLI) part of this library. And I need to call some code from my C# application and get some data maybe right there on this ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: bind problems with radio input in jQuery Got a binding issue Excerpt from html code <table> <tr> <td haschildren="true"><input id="Grubbel_0" type="radio" name="Grubbel_0" value="0"></td> <td haschildren="true"><input id="Grubbel_1" type="radio" name="Grubbel_1" value="1"></td> </tr> </table>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Howplay mp4 songs using NAudio Can we play mp4 songs using NAudio? Please provide some code to play mp4 songs I need a c# code that will help me play mp4 songs A: Update: NAudio can now play MP4 files using the MediaFoundationReader assuming you have the appropriate codecs installed. This works on Windows Vista and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to access to a json object value when the key like 'foo$bar' I use the Youtube DATA Api and i receive a JSON which some object containing key like 'foo$bar'. So when i do this entry.media$group Javascript says that the value is undefined A: entry['media$group'] should do it nicely. A: In js there are many way...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove spaces in the bottom of the UITextView? i am using UITextView and i want to remove spaces in the bottom of the UITextview. A: Something like this? textView.text = [textView.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; A: I have updated above code.try with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A LEFT JOIN B ON @IncludeBJoin = 1 AND B.AID = A.ID WHERE @IncludeBJoin = 0 OR B.ID IS NOT NULL I know that the temptation to use generic stored procedures for code reuse can be a trap, but I don't know if this method of parameterizing a query has anything but a constant performance cost. SELECT ... FROM A L...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MyFaces 2.0.2 + TinyMCE I was recently trying to integrate TinyMCE in my Myfaces application. I have downloaded and extracted TynyMCE in my webapp folder. I have written the following code: <h:outputScript library="tiny_mce" name="tiny_mce.js" target="head" /> <h:outputScript target="head"> tinyMCE.i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to produce cumulative pivots in Excel? I have some data: Week Commencing Channel Count ---------------------------------------- 01/05/2011 C1 02 01/05/2011 C3 01 08/05/2011 C2 03 15/05/2011 C1 01 Which...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Graceful degradation with Ajax.ActionLink(), unable to get it working please check my syntax. (MVC3) I have specified the Action method to use for the Async request with Url.Action, but unlike with specifying the ajax options for a form and storing them i.e AjaxOptions ajaxOpts = new AjaxOptions { UpdateTargetId = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Force accessing of a def Considering object A { def m(i: Int) = i val m = (i: Int) => i * 2 } one gets scala> A.m(2) <console>: error: ambiguous reference to overloaded definition, both value m in object A of type => (Int) => Int and method m in object A of type (i: Int)Int match argument types (Int) A....
{ "language": "en", "url": "https://stackoverflow.com/questions/7609252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to get last scroll view position, scrollview I am using TableLayout. which have 100 of items to make it scrollable I am using Tablelayout inside ScrollView. But I have to detect whether the user have scrolled to the last row. If the user have scrolled to the last view then user will be shown a Toast message. But...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Store connection string in service configuration for WCF Data Service I've got one class library project that contains an EF model that points to a SQL Azure database. I also have another Azure WCF Web Role project that contains a WCF Data Service exposing the data in my SQL Azure DB as a OData service. Right now I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Edit Control not updating with Spin Control MFC I am trying to use an edit control along with a spin control using MFC visual studio .net 2003. I have carried out the basic settings for the spin control like setting the "AutoBuddy" property and "SetBuddyInteger" property to True so that the Spin control works in coo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cakephp auth component allow redirect issue I am having problem with Auth component when I use $this->Auth->allow('index','view'); I am getting /users/login has resulted in too many redirects when I use $this->Auth->allow('*') it works fine. I am using cakephp 1.3.12 here is app_controller.php class AppController e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Register/Login from android using oauth2 and google API Working on a native app that requires the user to register to our server. I would like the user to be able to use oauth2 with google contact api to login. Not knowing exactly how this would work but idea is: get default google account and get a token. send rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drupal module settings page construction I am refactoring some code is a Drupal module I wrote sometime age. In order for others to use it, I am adding a configuration page. I have successfully defined a fieldset but I don't know how to 'insert' content in to it. The following code sets up radios for each node type ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not able to access adb in OS X through Terminal, "command not found" I have installed Android SDK and Eclipse on my Mac system. I am able to program using Eclipse and have created few sample applications. But I am still not able to access adb through the terminal window. I have tried following command in terminal: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "337" }
Q: get all child elements that are not a table I try to get all children, but skip tables: What I have is: var allElements = $("body").children(); $.each(allElements, function(i, element) { // Do something }); // each element Now I look for either a way, that allElements does not include tables or a function, that r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C pthread segmentation fault when running many threads The following code is running without any problems if I keep nThreads under 300, but if I enter 400 for example, then I get a segmentation fault. I think this has to do with maximum number of threads, but I am not sure how to allow more threads, or at least how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaScript function order: why does it matter? Original Question: JSHint complains when my JavaScript calls a function that is defined further down the page than the call to it. However, my page is for a game, and no functions are called until the whole thing has downloaded. So why does the order functions appear in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "121" }
Q: add function to a string I need to add one of my functions to the following code: $string = '<div class="row">; <label class="col1">State or Province</label> <span class="col2"><select name="billing[state]" class="mid2" onChange="ShopperPress_ChangeState_Value(this.valu e)">'; $string .= '<option value="0">-------- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php update value from an array except one I want update my database from an array except one value from $_POST $_POST['value'] = 'b'; $array = array('a','ab','b','bb','c','cc'); //insert 'a','ab','bb','c','cc' except $_POST['value'] 'b' mysql_query("UPDATE core SET list='".$newarray."' WHERE id='".$_POST['id']."' "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server 2008 R2 connection on a VmWare Instance Here is the scenario I am facing. * *I have installed Windows 7 Professional on a VMWare. *Installed SQL Server 2008 R2. When I launch the Server Management Studio and try to connect to the instance I get the following error "A network-related or instance-spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pyqtSignal and QObject.receivers(..) I need to check the signal for the presence of the listener, before it is emitted. class Test(QObject): test = pyqtSignal(str,dict) def run(self): if self.receivers(SIGNAL("test(str,dict)"): self.test.emit('blablabla',{})` The signal is connected to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: NoMethodError: undefined method `mock' with Mocha and Rails 3 I'm trying to use mocha in my Rails 3 project but keep getting the following exception: NoMethodError: undefined method `mock' for #<MochaTest:0x00000101f434e8> /Users/John/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.10/lib/action_dispatch/testing/a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C# : Passing Parameters to a function via a 2d object array I'm trying to write a neat little generic Sql method that will accept a SQL Query and a list of parameters, and return a result. I want to keep it neat enough that I can call it using one line from any other code. Is there any really awesomely neat way of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Loop through two querysets while highlighting differences in django I have a model class defined as below: class Vehicle(models.Model): stock_number = models.CharField(max_length=6) vin = models.CharField(max_length=17) year = models.PositiveSmallIntegerField() manufacturer = models.CharField(max_len...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find the interface where the method is declared I'm using Unity for interception. Because I have many interfaces I'm forced to using VirtualMethodInterceptor. In my behavior I would like to react only when the method called was declared in the particular type of interfaces (with special attribute). I thought ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iUI Ajax hyperlinks not working in Chrome I am testing iUI for mobile web apps. Instead of putting all content into a single HTML page, I am using the Ajax hyperlink technique described by Joe Hewitt here. However I cannot get this to work in Chrome, although Joe Hewitt's own Digg demo, which uses the same technique...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query Performance: Search by postcode, company name or town See the SQL query below - it allow you to search the Shop by Postcode, Company Name or Town (location)... On the frontend website there will be only one search textbox without dropdown search type. It will only show the result if shop_options.live is equal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to drag and drop GridView rows with jQuery sortable? I have tried to implement this in the following way: GridView: <asp:GridView ID="GridViewUnavailableDestination" runat="server" Visible="False" Width="98%" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I bind a servlet to everything except /? I have a server which I need to bind two servlets to. The first is the "home" servlet, which I want to reside at /. This will display what is essentially a welcome page. The second is a servlet which will serve content based on a url-shortener style link code. This ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Thinking sphinx updates delta index even when no fields are updated Even when no fields specified in update attributes actually changes , thinking sphinx sets delta = 1 which results in large number of unwanted queries being fired . can we do something to let sphinx know that there was no actual update.
{ "language": "en", "url": "https://stackoverflow.com/questions/7609325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drop down list selection Excel VBA I want to populate a cell depending upon the drop down selection. How can i do it? The drop down list is created manually in the sheet. EDIT: I have a column where every cell is a drop-drown. Depending upon what i select in the drop-down, the adjacent cell should get populated with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redmine: Post attachments using API (or not) Is there any way to post attachments to issues in Redmine from an outside PHP script? If API doesnt support this (i didnt find anything on the wiki) then is there another way? So far i have tried only this, but it doesnt work: $ch = curl_init(); curl_setopt($ch, CURLOPT_U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Replacing particular elements in a list Code: >>> mylist = ['abc','def','ghi'] >>> mylist ['abc', 'def', 'ghi'] >>> for i,v in enumerate(mylist): ... if v=='abc': ... mylist[i] = 'XXX' ... >>> mylist ['XXX', 'def', 'ghi'] >>> Here, I try to replace all the occurrences of 'abc' with 'XXX'. Is there...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Awk: Remove duplicate lines with conditions I have a tab-delimited text file with 8 columns: Erythropoietin Receptor Integrin Beta 4 11.7 9.7 164 195 19 3.2 Erythropoietin Receptor Receptor Tyrosine Phosphatase F 10.8 2.6 97 107 15 3.2 Erythropoietin Receptor Leukemia Inhibitory Factor Receptor 12.0 3.6 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use jquery selector having element type and ID I'm using this selector $("textarea #myTextArea").val(text); and it's not working. If I remove the ID and use the class it's working. Why isn't jquery able to find the element here? A: Just remove the space: $("textarea#myTextArea").val(text); At the moment yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Is it possible to create a job from within a DBMS_SCHEDULER job? Creating a job from within a job using DBMS_JOB throws an: ORA-32317: cannot run a job from a job Does anyone know if this restriction has been lifted in DBMS_SCHEDULER? A: Yes you can: DECLARE BEGIN dbms_scheduler.create_job (job_name => 'TEST1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to check open file in other process or not? I use simple script for writing in file between node.js process: var stream = fs.createWriteStream('test'); stream.once('open', function(fd) { stream.write(progress_percents); }); In log I see error "to many open file". How to write to file only if this f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how call a python function from Jquery script in django template am new to django and jquery,I am searching for a 'hello world' sample for jquery using django1.3, Where hello world is returned as a string /json from the server to the client when user press a button or at loading of the page. Note: I am using django1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upload files from GAE to S3 directly I am creating XML files in my GAE web application and I would like to host them somewhere. The link has to be consistent HOST_URL + filename. So Amazon S3 looks like it would work - I can upload a file and the URL is pointing directly to the file. Now my question is - how can I u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Blank textField (Calculation) crashes app. I have an app that does a simple calculation from 2 text fields, the result is then displayed as label text. This is fine as long at each text field is populated, if no data is entered and the calculate button is pressed then the app closed. I assumed that blank would retur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: three Cron jobs runs every two days alternatively not in same day How can i set three cron jobs for every two days interval but not runs all. This is is my three cron job process: 0 20 */2 * * /usr/local/bin/ruby /var/www/html/data_download1.rb >/dev/null 2>&1 0 20 */2 * * /usr/local/bin/ruby /var/www/html/d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Symfony2 vendors install I'm trying to setup and create new bundle with symfony2, but getting so much error almost every step. I'm download symfony and run this command; php bin/vendors install > Installing/Updating swiftmailer Cloning into /var/www/Symfony/vendor/swiftmailer... ... ... ... [ErrorException] War...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Performance of invoking unmanaged code from managed code I have a win32 dll and two applications which uses the same dll. One is written using c in unmanaged space and the other is the .net application which makes call to the unmanaged code using Pinvokes. Sometimes the performance of the .net application is better ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: F# interactive vs. F# solution and WCF Try to run this in F# interactive: #r "System.ServiceModel" #r "System.Runtime.Serialization" open System.ServiceModel [<ServiceContract>] type IWCF = [<OperationContract>] abstract Ping: float -> unit type WCF () = interface IWCF with member o.Ping a = printfn "He...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: grails-doc creates copies of my classes in default package In my grails 1.3.7 project, I have put all of my classes in com.mycompany.myapp, as you do. So this goes for services, controllers, domain classes. I have a filter that goes in its own package. My app works fine. However, when I run grails doc, grails decide...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Datagridview event for enter key I have a bound datagridview.when i select a cell in datagridview and press enter, i want a event to be raised which passes the selected cell's row's first column value to another form. how to do it? A: I solved this problem by using _EditingControlShowing Event to the datagridview a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook Premissions View not showing I create an application integrate Facebook in it. After first login it shows Permissions screen in which it take rights from user. But after sign out and re-sign then it does not show any permissions view i want that it should show on each login. How can i achieve that. A: You...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Universal database GUI i need one GUI that will work on windows and i need to connect on several databases. Access, mySQL, MSSQL, Postgres, SQLite and maybe in future i will need connection to oracle. It would be nice that tool can move database schemas from one db engine to others without lot user interference... C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can't debug servlet Eclipse + Glassfish The server is in debugging mode. I've set 10 breakpoints and the browser just skips them all. Why? This happens with JSPs also in that project. Why? A: Have you checked that the Debbuger is indeed connected with Glassfish? Also please note that it is not possible for the debu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Validation - Check if value matches label? I am using the jQuery Validation plugin on a form, and was wondering what's the easiest way of checking if the value of the input is the same as the label? I'm using jQuery to take the text of each input's label and insert it as the default value of each form element...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i get the webkit-column-count value and current page or column Id? I am developing application using webview in android. i am loading a page into webview and splitting multiple columns dynamically using CSS3 webkit property. once user reach the last page/column i have to show the TOC confirmation dialog. can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: EXECUTE AS on truncate sproc - Incorrect syntax I'm getting an Incorrect syntax when trying to create a stored procedure to truncate a table then reseed it. Here's my code CREATE PROCEDURE [dbo].[_TransportZipporah_Purge] WITH EXECUTE AS owner AS TRUNCATE TABLE [dbo].[*tablename*]; GO DBCC CHECKIDENT ('dbo.*t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connect to Mongo DB on MongoLab without Authorization? My Question: Is there any way to connect to Mongo DB (hosted on MongoLab) without username and password ? My Case: I have created a free MongoLab account (https://mongolab.com) and also create new database -> collection -> document in it. When I connect to Mongo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: Creating a multi threaded reader I'm creating a reader application. The reader identifies based on the parameters which file to read, does some processing and returns the result to the caller. I am trying to make this multi-threaded, so that multiple requests can be processed. I thought it was simple but later...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Retrieving bitmap giving unknown host exception? I am using this code to get a bitmap from the web try { Bitmap bitmap=null; URL imageUrl = new URL(url); HttpURLConnection conn = (HttpURLConnection)imageUrl.openConnection(); conn.setConnectTimeout(30000); conn.setReadTimeout...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASIHTTPRequest Asynchronous Download not canceling I am trying to cancel an Asynchronous Download using ASIHTTPRequest with no joy. I am downloading a movie to disk on the appearance of a ViewController. What I want is when the user click close to dismiss the view controller I want to cancel the download. Here is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SWT: custom MessageBox / more text / how to get the icons? i want to display a second, not bold, text in my MessageBox, like seen for OSX here: http://welcome.solutions.brother.com/NR/rdonlyres/1EA4CC0C-F0B9-45D3-BD2C-EF2C430E3FAD/15107/error2.gif Is there a way to do this with MessageBox? If not, I would create my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ogg to Riff/Wave encoding with acm My task is to record wave file, convert it to ogg and pack it to the riff container. First two parts were done, but I have problems with the third part. I've found a source code which can solve my problem, but it doesn't work correctly. #include <windows.h> #include <windowsx.h> #i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to mock DbContext Here is the code I want to test public DocumentDto SaveDocument(DocumentDto documentDto) { Document document = null; using (_documentRepository.DbContext.BeginTransaction()) { try { if (documentDto.IsDirty) { if (documentDto.Id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .NET MVC 3 Routes Recently I've made the transition from Web Forms to MVC 3 and I've been trying to get to grips with MVC routes. I have a somewhat peculiar problem in that when I receive a request to my application (e.g. subdomain1.organisation.com or subdomain2.organisation.com) I wish the default route to be used...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setup Project msi builds+ claims successful install, but no output As per the title, I create a msi installer and then run it and it claims to have successfully installed and if I look in the control panel to add/remove program it appears there. However, when I look in the directory I specified, there is no change m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual studio 2010 project for windows and linux I'm trying to make a program that works on linux and windows. I'm writing the program in visual studio in a windows environment. So I wonder how I could compile my project from visual studio to linux. A: The Microsoft C++ compiler is not capable of producing Linux ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML format to print on 8.5x11 I have multiple sets of data and I would like them to look identical on individual 8.5x11 (standard size) sheets of paper. I am rendering them in HTML for printing by putting each set in an 8.5x11 div, but that div for some reason will always get cut off. Is there any way I can fix thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java Desktop Application and Functionality Autherization I'm fairly new to java development and I have found myself tasked with implementing a functionality authorization system for a desktop application written in java. Currently the application requires user authentication at startup and users are authenticated a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Array fundamental I have one array size of 11 with String, i add some item in it. Decalration:: String arr_sound[] = new String[11]; Initialization:: arr_sound[0] = "bike_route.mp3"; arr_sound[1] = "closed.mp3"; arr_sound[2] = "exit.mp3"; arr_sound[3] = "no_parking.mp3"; .... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MVC Ajax action relative to current controller I'm trying to get an Ajax call from a link in a master page. So I want to specify only the action relative to the current page/controller. i.e. $.ajax({ url: '/Save', type: "GET", // .. etc }); I want to call the "Save" action of whatever controlle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: send Image byte data in json request in android? I would like to send image byte data in Http Post in android and iPhone. Let me know hoe to send Image data in JSON Like below JSON String { "Request": { "data": { "Key": "keydata", "info": {}, "param": { "title": "Testingpostmultipartimageup...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cc static linking: How to import all symbols of just one .a library? I have 2 static libraries, libalgha.a with 2 functions: func1() and func2() and libbeta.a with 2 functions: func3() and func4() I have 1 executable (mytest) linked with these 2 libs. The executable calls only func1() and func3(). So as I underst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get windows service used memory using wmi I'm trying to retrieve the amount of memory used by a windows service, for example, IIS. I'm using python and windows wmi extensions. I didn't find any method on WIN32_Service class that would give me the information I need. What's the best approach to get this information? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MooTools using grab/inject to append child elements How do I append a new Element into another? The code below is using the examples on the library's site but nothing is rendered. I tested the containing Element by using .innerHTML which does render. what am I doing wrong? var Article = new Class({ initialize: fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How could I prevent users from certain countries from uploading? I've noticed a lot of...suspicious activities from a few countries, so I'd like to "blanket ban" those countries (similar to how plentyoffish prevents users from certain countries from uploading their pics). Would this just be a matter of hardcoding IP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }