text
stringlengths
8
267k
meta
dict
Q: Table row Image size problems I want to put one image on the beginning of each row in my application . The problem is that it shrinks the image too much . I want to make it occupy the whole space . main.xml : <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: html email issue for a tag value I am sending html email to the client via php mail function. while & sign shown in bold creating problems in email replacing ! %20 something like characters within my ids such as below(in bold). http://test.com/test-page.php?id=abcd**!**1234&cat_id=23 Below is my code. $to = 't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When scripting, what's the difference between #!/usr/bin/perl and #!/usr/bin/env perl? Obviously this applies equally with python, bash, sh, etc substituted for perl! Quentin's answer below was clearly correct, and so I've accepted it, but I guess what I actually meant was 'what are the pros and cons of the two ways...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Editing Multiple Rows by Their Order Index Q: How would I go about using / applying the row number of each row in a query to a certain column in the entire query? I've added a screenshot to try and make things more obvious: [The picture is only a simple example] I would like to be able to directly use the value of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Richtextbox vertical scrollbar when my RichTextBox full of words, i did use GetScrollInfo to get nMax, nMin & nPage. but after i clear all text (scroll bar is gone), the nMax, nMin & nPage still remain the previous data. is there any way to make it auto update the GetScrollInfo? A: Subscribe to the event RichTextB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Background Image on a List Item Think its a simple one. I am working on a site. The design is here I've hit a little snag as to how to do the footer strategy | management | recovery. As each item has a background image associated with it, How do I position the background image so that it is at the very bottom of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XML/HTML markup text - nightmare with translators All we know that in Android internationalization can be done using XML'ed resources, which are supposed to be translated by translators. So I have done - hired several translators and send them resources with explanations what to translate and so on. In the end I've ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I terminate request processing when implementing custom authentication in MVC? In my MVC2 application I want most requests to use Forms authentication and requests to some specific URIs to use my custom authentication. In order to do so I added FormsAuthentication_OnAuthenticate() method and inside I check th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why we implement GetHashCode in IEqualityComparer? I want to get distinct items from List in C# by using IEqualityComparer interface. But I don't know about GetHashCode. I have implement both GetHashCode and Equals methods. And how can I call Equals method to get distinct items from a list having user define data ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Shell Script for checking log and running a program I have this script that checks the last line of the file newlog.log and if it finds the word Stream closed there it should run the program test.jar because it would have stopped and hence written Stream closed in the log file. #!/bin/sh SUCCESS=0 while (true); do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CGContextSetRGBStrokeColor won't draw borders I am trying to create a pie chart. Each pie should be with different color and have it's border. So I made my own class PieChart.m: #import "PieChart.h" @implementation PieChart @synthesize startDeg, endDeg, isSelected, colorNumber; - (id)initWithFrame:(CGRect)frame {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python capture stdout from subprocess line by line I've read many of the questions related to this and learned a lot but I still haven't been able to solve my problem. I'm building a wxPython app that runs a c++ executable and displays the stdout from that executable in real time. I've run into several strange resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are there any downsides to using data attribute to edit content with javascript? I am developing a simple web app and I need to update the displayed data after certain events or conditions. This data is scattered in many different places and within completely separate markup structures. I have used classes in the pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to handle potential leak of an object warning - CLLocationManager I did a build and analyze and was warned about a potential leak of an object stored into 'locationManager'. I was wondering how this should be handled properly. Here's the code: // Compass Code CLLocationManager *locationManager = [[CLLo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accordian menu - how to keep first div open by default <html> <head> <script src="jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $(".content").hide(); $('.button').click(function() { $('.content').slideUp('normal'); $...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: What should I replace Core Data with? I'm having a problem updating our core data sqlite DB. So far our DB is only used to cache stuff coming back from our API, but with the next release of the app we're planning to save user data, so we need the DB to work, and unless I can fix that problem Core Data+sqlite just d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I get a null class with NSClassFromString I have the same code shared by 2 apps, and depending on the current app a different class is used. className is the string which can be "PrefixClass1" or "PrefixClass2" (and it is correct for both apps, I've checked in the debugger). However currentClass is null for app2. (I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't see differences in remote branch after a git fetch I'm a little confused about git fetch and comparing differences . I have the following local branches; * *master *remote/origin/master In master branch I have a text file which I make changes to, commit and then push to the origin/master. In another l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WHERE AND in Sqlite Statement I am having a problem combining two WHERE statements in the following SQL statement : query = [[NSString alloc] initWithFormat: @"SELECT Name, Description,Postcode,AddressLine1, ImageURL, Free, Area, OpeningTimes, NearestTube, Cost,UniqueID, URL, Number, FirstLetter FROM MainDetails WH...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error in Android --Unable to find instrumentation info for: ComponentInfo For Example I had an application that will invoke contacts and has to select one of the contact. But its not doing exactly what I want. It is showing me error Unable to find instrumentation info for: ComponentInfo{com.sample/com.sample.Contac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating Dynamic Acl in Zend - Framework (check list for acl) I am trying to build a group based acl in the zend framework. Basically there will be three roles: admin, guest and user. And there will be different groups for the user role. How it will work is I have a check list of modules/controllers and action using...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run C2DM sample program in Android? Hi I am very new to android. I would like to develop an application in android with C2DM. I have a sample code for C2DM from the following site http://www.ipragmatech.com/power-mobile-app-android-push-notification-c2dm.html . I did the following steps device-> settings-> ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between .call and .apply Is there a simple way to passing all arguments from one function to another and sending this also. I have tried this: http://jsfiddle.net/v92Xr/ var f1 = function() { f2.call(this, arguments); }; var f2 = function() { console.log(arguments); }; f1("abc", "def", "hij"); bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: glassfish v3 starting slowly...? I am suffering from starting up glassfish v3 . it allways taking very long time to start the server. even not starts , all the time it will be idle. I am trying to deploy ejb of about 160 . It is not able to deploy all ejbs . for every restart it shows diff no of ejbs deployed. what...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Accessing to a NSMutableArray in UITableViewController crashes I'm new in Object-c and want to make a UITableViewController based app with JSON data source in Xcode 4. I imported the JSON framework and defined an NSMutableArray to fill it with the response: - (void)connectionDidFinishLoading:(NSURLConnection *)conne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Method to instantiate objects Would like to create a method that instantiate objects.  - (NSArray *) make3Of : (Class) type { ... type * temp = [[type alloc] ... ... } But I get a warning from Xcode ... Actual warning: "Class method +alloc not found (return type defaults to 'id')" Is there a better/co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i put text under each imagaview In my project i am using images as button in horizontalscrollview. When i click an image it shows the image above the horizantalscrollview. What i want is to show a description text under the image when i click it. Can anyhone help? Here is my xml file. <?xml version="1.0" enc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resources$NotFoundException in ListView I always get a Resources$NotFoundException but i don't know why. Please help Code: @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder = new ViewHolder(); LayoutInflater li = (LayoutInflater)CustomAdapter.this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Google App Engine(java) - App upload failed due to app size limit exceeded - (free account) i am using Google app engine for my development, my project involves around 60 PDfs to be available for users to download. when i try to upload the project by clicking deploy button in eclipse i get the error app limit excee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sencha-touch width of tab panel decreases -I have a problem here tabBarDock: 'bottom' reduces the height of the tab panel, from default top height. -Please help Ext.setup({ icon:'icon.png', glossOnIcon: false, onReady:function(){ new Ext.TabPanel({ fullscreen: true, type: 'dark', sortable:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does the 'hides constructor for' warning mean when compiling C++ with g++? Using the following code: #include <stdio.h> struct my_struct { int a; int b; my_struct(); }; my_struct::my_struct(void) { printf("constructor\n"); } void my_struct(void) { printf("standard fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Generic keyCompare method please look through the following program.. #include <stdio.h> #include <malloc.h> #include <iostream> #include <string.h> using namespace std; int main() { char *key1 = (char*)malloc(sizeof(char)*26); char *key2 = (char*)malloc(sizeof(char)*26); int intkey1 = 10; int in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: URL validation/connectivity using javascript I want to verify if an external url valid/exists/responsive using javascript. For example, "www.google.com" should return true and "www.google123.com" should return false. I thought to use AJAX for this purpose by testing : if (xmlhttp.readyState == 4 && xmlhttp.status =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jqplot enhancedLegendRendrer seriesToggle functionality override I am trying to change the default functionality of enhancedLegendRendrer.js where in on clicking on the legend series that particular bar item in the graph gets visible/hidden.I want to change this default functionality, wherein if the user clicks on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Regular Expression: How to extract a collection I have collection in text file: (Collection (Item "Name1" 1 2 3) (Item "Simple name2" 1 2 3) (Item "Just name 3" 4 5 6)) Collection also could be empty: (Collection) The number of items is undefined. It could be one item or one hundred. By previous extractio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Loading a view specific stylesheet in an asp.net mvc3 app? I'm trying to load a view specific stylesheet in an asp.net mvc3 application (just learning this stuff!), so in my _Layout.cshtml I have: <head> <!--- All the common css & JS declarations here --> @ViewBag.PageIncludes </head> <body> Then in my controller I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spring - jdbcTemplate I'm just beginning with Spring framework. I'm also using DBCP pooling and i'm still not sure how to work right with jdbcTemplate. It is best practice to reuse created/injected jdbcTemplate instance between multiple DAOs or it is right to create jdbcTemplate for each DAO ? I'm currently using an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android.view.InflateException: Binary XML , and OutOfMemoryError? I am, using nearly 90 very big images,and i am using lazy loading for displaying that images in Gallery,and grid view.so after loading the images ,if you click on any button,it giving outofmemory(oom) error,and sometimes it giving Xml binary inflate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tokenize a string in KornShell I need to tokenize in string in KornShell (ksh). I have got the following script for bash; but it does not seem to work in ksh. The script is below. Please help in making work for ksh. OLDIFS=$IFS IFS="," read -a array <<< "$(printf "%s" "$APPLICATION_NAMES")" IFS=$OLDIFS for i in "${a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: move() element on window.resize() function not working on Android This is the move() function function move(){ /*calculate*/ var size = { x: $(window).width(), y: $(window).height() }; var scroll = { x: $(window).scrollLeft(), y: $(window).scrollTop() }; var height = h!=null ? h : this....
{ "language": "en", "url": "https://stackoverflow.com/questions/7608970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incomplete definition of type "struct objc_method" I'm really confused with this problem. What I need to do is use some obj-c runtime feature in my project. Here is simple code in my .m file: #import "Base.h" #import <objc/runtime.h> @implementation Base - (void)someMethod { NSUInteger numberMethods = 0; Me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: error return code from pthread_create is 35 error due to many processes,I have used pthread_exit which should kill the thread isn't it? I have create a pthread_create inside a pthread_create, I have used socket programming, where I receive a packet and then create a thread which does the writing to the file. When I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Conversion error in VS 2010 I have a web application in VS 2003 (1.1) that i need to upgrade to Visual Studio 2010 and target to framework 4.0. But it showing the error like "Internal MSBuild Error: Setting property without a project and without a pending global properties collection." A: I had this problem, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Submit hidden form once upon clicking text I have a set of members who have stored their login credentials (usr | pwd) of other websites as our partners. As is the situation, I am supposed to provide them just a text link and submit a form upon clicking that link. // Getting values from db and storing them in ja...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: red5 actionscript code examples I am writing a Red5 application that provides video chat to a Flash client over RTMP. How to control the internet speed by reducing the clarity of the video transmission Can any one please tell me where to look at the source for red5 with AS and mxml. I have looked at the following l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get and set string onmouseover js value I want to run some onmousedown function, but how can I run this function without onmousedown event, in twebbrowser? Can you suggest me a proper function, please? A: Try setting the function name to null, like this: alert('test'); // will show 'test' alert = null; alert('test'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to shorten path names in grep buffer? Is it possible to shorten paths in grep results buffer? By default each line of grep results in Emacs looks like this: /home/pawel/tmp/avro-src-1.5.4-fixed/lang/c/src/datum.c:107:int avro_string_set(avro_datum_t datum, const char *p) which takes a lot of space and looks mes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: upload size on multiple file upload with django I'm using Django to upload some files with one multiple file input. Using this upload-handler that writes the cumulated size of uploaded chunks in a session-variable and some jQuery I finally got a progress-bar working. But I still got a problem with the uploaded file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery: Colorbox close iFrame onsubmit i´ve got a question about closing a form withing a colorbox after submit. I found this question so i now know how to close the form after submit. The problem is that another javascript validates the input fields of my form and there will be an error message (a simple alert()) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: usage of validate request and enable event validation in page tag of aspx Possible Duplicate: enableEventValidation and validateRequest difference can someone explain correctly the need of validateRequest="false" enableEventValidation="false" in page tag A: For enableEventValidation="false" Read the docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ternary operator always evaluating to true part I have a statement: var sep = '&nbsp;&nbsp;|&nbsp;&nbsp;'; var r = ''; for (var i = 0; i < menuItems.length; i++) { r += function(menuObject) { console.log(menuObject); console.log( '<a class="" href="' + menuObject.url + '">' + menuObject....
{ "language": "en", "url": "https://stackoverflow.com/questions/7609005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# What construct am I Looking for Lamba / Expression / Func / Reflection for runtime property substitution? I've a method on a generic base class that I want to execute for all superclasses of it The logic is something like: BuildAverageDateStats(List<type> items, DateProperty1 exp, DateProperty2 exp2) { return ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What "|" character do? Possible Duplicate: Reference - What does this symbol mean in PHP? I googled much for finding answer but i couldn't find any. I saw in few free source codes that they use "|" sign to combine values or something. can someone enlighten what is different between "|" and "+"? sample: <?php defi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight XAP is getting shared across 2 session in the same machine I have a problem on my silverlight application. I login in my application using my ID (assume x) (using Internet explore 8), so assume i can see some reports which is releated to my ID. Without closing the above browser in another Internet explo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Call command line after installation in Wix I am using wix and want to call command line after installation. How can I do this? My command line is here "bcdedit.exe /set {current} nx AlwaysOff" // this makes dep off Yes, I've read about custom actions, but I didn't see any example with command line. P.S. bcdedit is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Ajax content, and noscript alternative- best practice? I have a content listings page on a site I'm developing that uses ajax to pull items based on filtering picked by the user. (filter by date/ tag/ genre etc) In order for the page to work for crawlbots and non-javascript users I have a standard listing of content...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Configure Shadow Copy using app.config Let me explain the scenario first. I have installed multiple copies (Say 10) of Services from a single install base. Now I want to update one of the dll. I need to Stop all the services, update the dll and restart the Service again. To avoid the situation, I used ShadowCopying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: trouble with WHEN NOT NULL I want to create a switch around the following. I've tried various permutations but I just cant get IS NOT NULL to work. (CASE billing_code WHEN NOT NULL THEN billing_amount END) AS Billing Amount Thanks in advance A: You need to use the "searched" form of the CASE statement. Additional...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Robots.txt Allow sub folder but not the parent Can anybody please explain the correct robots.txt command for the following scenario. I would like to allow access to: /directory/subdirectory/.. But I would also like to restrict access to /directory/ not withstanding the above exception. A: I would recommend using Go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Tools for orchestration of web services Let's say I have many web services (REST or normal HTTP request) and I want to define in which order they should be called. I want the order to be easily configured (through XML files) and return error responses in case they are called in the wrong way. When I say tools I mea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: disable the window function in jsf/primefaces <p:commandButton id="cmdCancel" value="#{label.cancel}" action="cancel"/> <p:hotkey bind="Alt+C" action="cancel" /> Hi , I have one button cancel and i binded it to short cut key "Alt+C" (refer above code) in prime faces. And when i use press short cut key "Alt+C", it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: detect Touch on UIButton Ok, Here is the Hierarchy of my View. Main View |---------------|---------------| UIView UIView UIView | | | UIButtons UIButtons UIButtons As Above figure shows I have 3 subViews of Tag 111,222,333. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Default values of int when not initialized in c. why do i get different outputs? i was just trying to check the default value of int and char when not initialised in c. my problem is that i get two different outputs when i use clrscr() to clear the screen between 2 runs.could someone explain this behavior to me? her...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Binary Heap Implemented via a Binary Tree Structure For an assignment, we were instructed to create a priority queue implemented via a binary heap, without using any built-in classes, and I have done so successfully by using an array to store the queued objects. However, I'm interested in learning how to implement a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I make safe mp3 files for AVAudioPlayer, without getting errors I have problem when trying to play some mp3 files on iOS app. First, I noticed that these files was also not working on Safari for iOS, but now I am having files that works on Safari for iOS, and doesn't work on my App. I am using thi code to p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open Source implementation of a Spaced Repetition Algorithm in Java I work on a project where Spaced Repetition is essential, however I am not a specialist on the subject and I am afraid to reinvent the square wheel. My research pointed me two different systems, namely the Leitner system and the SM family of algorit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: MVC3 - Submission of custom input attributes on input button when submitting a form Basically I have a form that I am dynamically adding objects to. I am doing this with AJAX so can just initialise the object and return it with JSON. Each new object has a unique GUID assigned to it so we can identify each object i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Way to determine/circumvent if an AJAX request timed out? I have a simple web-page (PHP, JS and HTML) that is displayed to illustrate that a computation is in process. This computation is triggered by a pure JavaScript AJAX-request of a PHP-script doing the actual computations. For details, please see here What the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: position fixed div in iframe not working I am working on facebook iframe application . I have one pop up message box inside this application. That pop up is having fixed possition . But its not working as added inside iframe having no scroll. Is it possible to make pop up fixed in position if its in the iframe havi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: how to show two customers in the one table row MVC 2 with asp.net ,i have used ListView to show tow customers per row: <asp:ListView ID="CustListView" runat="server" GroupItemCount="2" cellpadding="0" cellspacing="0" style="border-collapse: collapse;border-color:#111111;width:100...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to emulate wicket setResponsePage() in spring security Situation: user is forced to change password when button "Change password" is clicked. This click fires form overridden method onSubmit() (Wicket). In this method: protected void onSubmit() { //changing password by updating it in DB // autologin user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How long is the animation of the transition between views on a UINavigationController? Ideally, there would be some kind of constant containing this value. I'm implementing code that has it's own transition animations, and I'd like those to have the same length as the platform transition animations. A: In iOS 7 and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Extend or override Session in ASP.NET (cookieless) I have an webapp multi domain and country. And I like to have other HttpCookieMode more complex. I like to mix UseDeviceProfile with country and wap gateway for determinating cookieless. Do you know what class do i have to inherit o method override? I have tried cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: can't send the postString to json i'm using json Framework for sending the jsonstring. my json post string is { "firstName": "string1", "lastName": "string2", "contactSource": "Leter", "permanentAddress": {}, "deliveryAddress": {}, "preferredContactTimes": [] } my coding...... NSString *pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tomcat ajp connector with multiple webapps I have a tomcat server, with a webapps/ROOT application, fronted by Apache. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so and ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ I need to add a second webapp to this box, so I unpacked it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: php ip location I have a simple question. Is it possible to redirect people in my website by the IP location? Example: one person navigates on the site and when go to pay, if the ip location is from Portugal pay by bank transfer, if not pay by paypal? sorry my english. thanks, Pedro Lopes A: In the end, it sounds ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: 2 byte representation of command line arguments in Visual Studio 2008 I have a problem when handling command line arguments in a simple C++ application written in Visual Studio 2008. I have written the following code: #include <iostream> using namespace std; int _tmain(int argc, char **argv) { char* c = *argv;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP $_POST values i have a little problem with storing the $_POST data, think i might be confusing myself a little. So i have some data being posted from a loop, this data is posted as id and points, but each has a number to it so if three records are being posted we'll have id1, id2, id3 points1, points2, points3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Database independent string comparison with JPA I'm working with JPA (Hibernate as provider) and an underlying MySQL database. I have a table containing every name of streets in Germany. Every streetname has a unique number. For one task I have to find out the number of the name. To do this I wrote a JPQL-Query like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add-on SDK calling dispatchEvent does not send event from content script to a page I have simple Firefox extension (based on Add-on SDK) with pageMod. pageMod injects some script to a page, which calls one function: function dispatchEvent(name, data){ try { data = data || {}; // passing some data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server 2008 R2 SQLXML and xpath query filter not working I have the following schema returning four projects when running sql xml: <xsd:element name="iati-activities" sql:relation="IATI.ACTIVITIES" sql:key-fields="BUSINESS_UNIT"> <xsd:complexType> <xsd:sequence> <xsd:element name="iati-activity" sql:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java JXTreeTable tab character support Is tab character(\t) or Tab Key is supported in JXTreeTable? As I am entering some input like "My Name" where the space between My & Name is not through spacebar instead it is using the Tab key from the key board. Now when I am seeing this input in JXTreeTable, I am only able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an xml_encode() like json_encode() in PHP? In PHP, it is easy to pass back JSON objects by using the json_encode() function. Is there an XML equivalent for this? A: JSON can express php arrays, integers, strings, etc. natively. XML has no such concepts - just elements, attributes, and text. If you want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do I match the content of two HTML tags? Multi-line strings inbetween them. - AS3 I want to match all contents inside the <div class="post_body" id="pid_"></div> tags... A sample of what I need to parse is below. <tr> <td class="trow2 post_content "> <div class="post_bod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tinyMCE: Remove last inserted code Following from this: TinyMCE editor fixed size with no scrollers? How can I remove the last inserted code in tinyMCE? setup : function(ed){ ed.onKeyDown.add(function (ed, evt) { var currentfr=document.getElementById(ed.id + '_ifr'); if (currentfr.contentDocu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android SSL error: certificate not trusted In the app I'm working on, I have to make an HTTPS connection to my web server which uses self signed certificate. I was getting certificate not trusted errors and after consulting SO, I found this blog posting: http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: slicing sparse (scipy) matrix I would appreciate any help, to understand following behavior when slicing a lil_matrix (A) from the scipy.sparse package. Actually, I would like to extract a submatrix based on an arbitrary index list for both rows and columns. When I used this two lines of code: x1 = A[list 1,:] x2 = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: authorization failed when i installed my app with installer.app on mac os lion I have a problem with my app to copy/delete a plist file in "/Library/LaunchAgents/" to control the auto-start function on checking/unchecking a checkbox. I made an installer which has a "open file" action in "postinstall actions". After...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS download data from the web issues, NSURL Need your quick advise. I am create a "Currency Converter" iPhone app to retrieve the data from google currency websites. It is work perfectly to download the string of USD -> AUD, USD->CAD, USD->HKD, USD->HUF, USD->JPY. However, I don't why is NOT working and return ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony: uploading a file without sfWidgetFormInputFile() i'm trying to develope a file uploading system for my symfony app. I tryed to use the sfWidgetFormInputFile object, but did'nt know how to use it >_<. Now i'm trying to do it traditionally, with a code like this in the view: <form action="<?php echo url_for('...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom RouteMap Hi I have to route an old path, that was containing the old webform, to my new controller. I tried this: routes.MapRoute( "DownloadLink", "products/pippo/download/{*catchall}", new { controller = "Downloads", action = "Index"} ); To have m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set the value of an input field How would you set the default value of a form <input> text field in JavaScript? A: I use setAttribute(): <input type="text" id="example"> // Setup text field <script type="text/javascript"> document.getElementById("example").setAttribute('value','My default value'); </script> A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "623" }
Q: how to search between comma separated field in linq How to search for a value which is comma separated in database through linq. My scenario is user can select Multiple value from listbox and then search those item in comma separated field in database. I select two items so the value will be 2,3 and database field h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mongoid + devise error Mongoid::Errors::InvalidCollection I have download the template Rails 3 + Mongoid + Devise and installed. I have create a scaffold Car for relation with User model of Devise. I have in my User model this code: class User include Mongoid::Document # Include default devise modules. Others av...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Base64 encoded data maximum size I have a security mechanism that implements symmetric algorithm RijndaelManaged. I managed to find information what is the maximum size of encrypted data using RijndaelManaged for particular IV. According to my calculations it will be 128 bytes. However I need to convert these 128 by...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: ViewFlipper With One Child (LinearLayout) I' have a ViewFlipper, which contains one child only (a linearlayout), the problem I have is when I switch view's, it goes well and displays the next view and so on. But the animation doesn't goes smoothly, by that I mean that the current screen moves while next one shows up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detect a mail link and when pressed, mail the address in app How can I detect when a mailto link is pressed in a UIWebView, and when it is pressed, open a window in the app to send the mail. A: implement below method - (BOOL)webView:(UIWebView *)webView1 shouldStartLoadWithRequest:(NSURLRequest *)request navigati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TreeVIew icons not displaying in MMC Snap-in on Windows XP We have developed a User Interface as an MMC snap-in but we’re having issues displaying icons inside a Treeview on Windows XP. Basically, icons (.ico) added to ImageLists of a TreeView are simply not visible on Windows XP. We researched on the internet and r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Secure Browsing don't show different content for Fans/Non-Fans on a Facebook Page I use the following Code on my Facebook page to check if user is FAN or NOT FAN. After this the users get different contents. It works fine but if I use Secure Browsing in Facebook I always see just: "You don't like this page yet." I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenCV - Random Forest Example Does anyone have some example using Random Forests with the 2.3.1 API Mat and not the cvMat? Basically I have a Matrix Mat data that consists of 1000 rows with 16x16x3 elements and a Matrix Mat responses a 1000x1 matrix that holds which class each row belongs to. I would like to run t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }