text
stringlengths
8
267k
meta
dict
Q: Real-time Update I really hope this is not a naive question but does Facebook real time updates work on user's status updates? if so can someone point me in the right direction because I can't seem to confirm this anywhere. A: You can't subscribe to these user connections yet: home, tagged, posts, photos, albums, v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting SVN Error during operations: "bad record MAC" I am trying to checkout a folder on my companies svn server. I am getting this error using Tortus SVN (version Command: Update Error: REPORT of '/svn/REPOSITORY/!svn/vcc/default': Could not read response body: SSL Error: error: decryption failed or bad re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# WinForms: Drawing with one or more additional threads. How? In case I have a big drawing with all kinds of geometric forms (lines, rectangles, circles, e.t.c.) it takes a lot of time for the thread to draw everything. But in real life, one building is built by more than one workers. So if the drawing is the build...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MySQL get a summary of data based on part of a string I have a table of user information, from which I want to get a report listing the most common domains. I know that I need to use count and group by, but I'm not sure how to group by only part of a string, from the '@' symbol on. Any advice? id email ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook place check in I have a facebook page/place for my business. I want to display on my website in real time people that checked in. It is possible? A: You Can, All you need to do is setup a token with your facebook account that will allow you to access the information. Token Info: http://developers.facebook....
{ "language": "en", "url": "https://stackoverflow.com/questions/7570602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle - Audit Trail Does oracle have Audit Trail as an inbuilt functionality? Do i need to create separate table for Audit Log purpose to capture INSERT, UPDATE and DELETE changes? A: Yes, Oracle does support auditing. You won't need to create the audit tables yourself, but you will need to configure the audit se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can C++ code be called from a Java applet? I'm curious if I can do this. Can C++ code compiled and loaded on the local host be called from a Java applet running in a browser? A: Yes, it can be done if your applet is signed and the user agrees to grant the Applet full privileges.
{ "language": "en", "url": "https://stackoverflow.com/questions/7570605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Error WSE012 (Action Missing) when consuming WSE webservice For a small project I need to use (consume) an external (secure) webservice. This webservice uses SOAP1.2 protocol with WSE extention (username + password) I use VB (VS2008) and added the Service Reference, customized the app.config to use wsHttpBinding rat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the relation between malloc diagnostics and malloc related environment variables? Here there's a list of environment variables about the malloc package: * *MallocStackLogging *MallocStackLoggingNoCompact *MallocPreScribble *MallocScribble *MallocGuardEdges *MallocDoNotProtectPrelude *MallocDoNotProte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Unmanaged application crash when using Enterprise Library I have a C# library DLL which is loaded from an unmanaged process. So far everything is good. Now I wanted to incorporate the Enterprise Library 5.0 with its logging capabilities. I added these references: * *Microsoft.Practices.EnterpriseLibrary.Common...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DetailsView data to Textbox After long time looking for a solution I found one here - I thought.... The code I tried to implement was: If DetailsView1.Rows.Count > 0 Then Dim row As DetailsViewRow For Each row In DetailsView1.Rows TextBox3.Text &= row.Cells(0).Text & " = " & r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what point do c libraries get linked Let's say I redefine malloc e.g. in a memory debugging program electric fence. electric fence says that one must link the library with the gcc -g -Wall -Wstrict-prototypes -lefence test.c. So my understanding is that if gcc does not find the symbols in any of the libraries then i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using JQuery to add selected items from one combobox to another I'm trying to find the best way to add selected items from one combobox to another. The trick is I only want to add items to the destination list that don't already exist. Currently the process I use is rather ugly and does not work as I would expect....
{ "language": "en", "url": "https://stackoverflow.com/questions/7570629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I chain my method calls? I have an object: var mubsisapi = { step1 : function(){alert("a")}, step2 : function(){alert("b")} } $.extend(false, mubsisapi) mubsisapi.step1().step2(); It is give step1() but not give step2(). step2() does not give an alert. How can I do this? A: You ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why do I get "could not be added to your itunes library because it is not a valid app" error when trying to install Ad-Hoc build? I've recently upgraded my Mac to Lion, and also Xcode 4. In Build Settings, I've set "Code Signing" for "Release" to be "iPhone Distribution" which matches our Ad-Hoc provisioning file (w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: C++ Outputting text on a window Simple question, is drawing text using functions like TextOut or DrawText better then creating a static control, performance wise? And which has better performance TextOut or DrawText? A: Second question first: DrawText calls TextOut, so if you don't need the formatting capabilities ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Double border CSS3 - FF !Chrome I'm wondering, why this double border on table TDs won't show in Chrome but only in FF? Any ideas what could be the work around? Thanks! http://jsfiddle.net/yQQLk/1/ A: Not sure why you're using box-shadow to produce a double border, when the border property itself already supports a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to keep the Text of a Read only TextBox after PostBack()? I have an ASP.NET TextBox and I want it to be ReadOnly. (The user modify it using another control) But when there is a PostBack(), The text get reset to an empty string. I understand that if you set the ReadOnly property to True of a TextBox it's content ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Apps is using high CPU usage than others normal webview EDIT : Problem solved , "memory leak" was causes by one of the javascript below that keep on running in the HTML background that the rendering is using high CPU usage: (so if anyone can help me fix this javascript leak are welcome too.) var cog = new Image(); f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XSL-FO- Specifying conditional visibility I have an HTML table that varies according to its content. 1-3 columns hide. 1 column name changes. All depending on content. I am creating a PDF version of this HTML table. The PDF version uses apache-FOP with fop v1.0. The PDF output contains 2 of the aforementioned...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the correct currency format in Belgian Dutch? I'm formatting some currency in Java. This piece outputs 9,99 € final NumberFormat nf = NumberFormat.getCurrencyInstance(new Locale("nl", "BE")); nf.setCurrency(EUR); nf.format(new BigDecimal("9.99")); but one of our payment providers, which returns a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Change in User-Agent header triggering forms authentication I've got an app built using ASP.NET MVC 3.0. It uses asp.net's built in forms authentication, without session state, and cookies on the browser to identify the user making requests. Now, when I'm testing the app using IE9, the typical HTML request sends th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reasons for and against objects handling their own persistence I am looking at different options for persistence modelling in Windows Phone using Isolated Storage. One of the ideas I have come up with was the concept of each object handling its own (were it makes sense of course) persistence, rather than making a re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to import VBScript macros into Excel workbook? I have several Excel workbooks. They all share the same macro modules. What I would like to achieve is when editing one module in one workbook not to have to edit the same module in the other workbooks. Naturally, my first step was to export on save the modules in ....
{ "language": "en", "url": "https://stackoverflow.com/questions/7570668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: facebook fan pages and related open graph objects If exist a facebook fan page like this: https://www.facebook.com/HuffingtonPost I suppose to get likes count calling graph API: https://graph.facebook.com/https://www.facebook.com/HuffingtonPost Infact here I get: { "id": "https://www.facebook.com/HuffingtonP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to handle 150 Mb of raw videos and music files in Android I've been developing this content-based app for Android which includes over 120 MB of video .mp4-files saved on the raw folder and in addition it includes over 20 MB of sound files also saved in the raw folder. The problem is I cannot install the app on m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Cassandra uses Heap memory to store blooms filter ,and how much space does it consumes for 100GB of data? I come to know that cassandra uses blooms filter for performance ,and it stores these filter data into physical-memory. 1)Where does cassandra stores this filters?(in heap memory ?) 2)How much memory do the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Font Size equal to the height of the current container If I have a div that is x high, how can I make the text inside of it the max it can be assuming that it can only take up one line. While I would prefer a CSS answer, any jquery/javascript answers are accepted just because I need this to work either way :) A: Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cache Manifest messes up my app when online Gurus of SO I am trying to play with CACHE MANIFEST/HTML5. My app is JS heavy and built on jquery/jquerymobile. This is an excerpt of what my Manifest looks like CACHE MANIFEST FALLBACK: / NETWORK: * CACHE: /css/style.css /js/jquery.js But somehow, the app doesn't load t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: replace last character in a line with sed I am trying to replace the last character in a line with the same character plus a quotation mark ' This is the sed code sed "s/\([A-Za-z]\)$/\1'/g" file1.txt > file2.txt but does not work. Where is the error? A: try: sed "s/\([a-zA-Z]\)\s*$/\1\'/" file This will replace...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: multiple scatter plots in single Pdf in R I have a function which takes a tab delimited file as an input and creates scatter plot for the values(one scatter plot per file) in the tab delimited file.I need a function which can print scatter plots in one pdf file(ie one scatter plot per page).Here is my function which...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A map with two keys Possible Duplicate: How to implement a Map with multiple keys? Multiple Keys to Single Value Map Java I have to get the value of an enum based on two incoming string attributes. I have been doing this as map for single values. Now I am faced with making a concatenation. Is there a way to have a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to resize iphone keyboard? I am developing a program in which I have to change the size of the keyboard according to the size of a UITextView, either increase or decrease. How can I do this? A: it's impossible in standard SDK.
{ "language": "en", "url": "https://stackoverflow.com/questions/7570706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# LINQ How to get a data source from a db? I am trying use LINQ in a C# program to get information from a database. I have found a lot of examples showing basic to advanced queries, but I can't find anything to get a basic database connection. See basic LINQ example below: var adultNames = from person in people ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IOS: store an array with NSUserDefault I want to store an array with NSUserDefault, then, I put in applicationDidEnterBackground [[NSUserDefaults standardUserDefaults] setObject:myArray forKey:@"myArray"]; and in application didFinishLaunchingWithOption myArray= [[NSMutableArray alloc] initWithArray:[[NS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Learning Exception Handling Patterns One thing that has always mystified me in programming is the use of appropriate exception handling. Code Complete points out that often times 90% of code is focused on handling exceptions. While I know the basics of implementing a basic exception, I have not found good general re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Implementing some cryptography algorithms on sql server Can we write a user defined function to encrypt a string of text based on a key in sql server 2000? For e.g. I want to try writing a triple DES algorithm to encrypt text. How to write statements for this? I checked around the internet; I can't understand the la...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery Ui Autocomplete - How to remove the html from the selected value I am using the jquery ui autocomplete plugin in my page. $( "#birds" ).autocomplete({ //source: sampleData(), source: function(request, response) { response(data(request.term)); }, enter co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Queue of defined type implementation in C I am trying to find an implementation of a queue to use it to hold processes that are of type GDB. I have been looking all over the place and whatever I use I get an incompatible type when i try to enqueue the process of type GDB in the queue. Anyone knows an implementation ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Super column vs serialization vs 2 lookups in Cassandra We have: users, each of which has events, each of which has several properties (time, type etc.). Our basic use case is to fetch all events of a given user in a given time-span. We've been considering the following alternatives in Cassandra for the Events colu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: testing http.get() with qunit in node.js I'm trying to write a simple qunit test for a node.js library, code.js. The first test case is the simplest one i'm trying and doesn't use any exported function in my code.js library, but it doesn't work. The QUnit module is as follows: module = QUnit.module var = http.requi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encoding html entities in url string I'm trying to prepare a url that has special characters in it, to be used as GET variables in a php file. I think I need html entities and urlencode, which I then need to decode in the other php file. But I'm running into some problems with correctly encoding them. This is what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Translate VBA syntax to Matlab for Activex control of Word document I am a newbie to using activex controls in matlab. Am trying to control a word document. I need help translating between VBA syntax and Matlab, I think. How would one code the following in matlab? Sub macro() With CaptionLabels("Table") .Num...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Looking for 'software web directory' package for own installation Like this done in * *http://directory.fsf.org/ *http://www.ohloh.net/ so anyone in our company (include bosses) can look: * *what projects exist (good to have web search capability) *who is primary mainteners, responsible employees *provide C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selenium RC and Firefox4 support Who knows in which release of selenium server firefox4 (firefox5) works correctly. On http://seleniumhq.org/about/platforms.html mentioned that both versions are supported, but I didn't find in release notes anything like Fixes of Firefox4 support A: The new server (selenium-server-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable up/down pan in UIWebView? I want to have my web view pannable left and right but not up and down. Is that possible? Thanks. A: ok, well wrap your one line of html like this: <html> <head> <meta name = "viewport" content = "height = device-height, user-scalable = no, width = WIDTH"> </head> <body> ......
{ "language": "en", "url": "https://stackoverflow.com/questions/7570755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Defining Control-Shift-* Emacs keyboard shortcuts I'm trying to define the following two keyboard shortcuts to move between windows in Emacs: * *C-shift-n: Move to the next window *C-shift-b: Move to the previous window I thought the following will do it but it doesn't. (defun select-next-window () ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Eclipse equals generation: null check missing? I let Eclipse generate the equals method for my class and it starts with: @Override public boolean equals(Object obj) { if (this == obj) return true; if (getClass() != obj.getClass()) return false; [...] It seems to me, a check like if (obj == n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the difference between creating the Container using Blob storage Service REST API and StorageClient class library in azure storage service? What is the difference between creating the Container using REST APIs and StorageClient class library ? A: Developer experience is the only difference. The StorageCli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What permission am missing? I'm taking sms backup using this public void smsbackup() throws IOException { InputStream in = new FileInputStream("/data/data/com.android.providers.telephony/databases/mmssms.db"); File dir = new File("/mnt/sdcard/bcfile"); dir.mkdirs(); OutputStrea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When using MVC in GWT, is it better to have the model use raw strings or SafeHtml? I'm writing code in GWT that follows MVC pattern. By the time my view renders, my strings should be escaped into SafeHtml. I'm trying to decide whether to have my model operate in terms of unsafe strings and do the conversion in the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alloc - add as accessoryView - release: does it leak? Does this leak memory? This code is executed in cellForRowAtIndexPath: outside the cell creation block (so each time the table cell is updated). MyView *myView = [[MyView alloc] init]; // ... configuration code cell.accessoryView = myView; [myView release]; Or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript grab part of class I have a string <li class="views-row views-row-4 views-row-even views-row-last" style="overflow-x: hidden; overflow-y: hidden; float: left; width: 221px; height: 227px; "> <div class="views-field-field-image-fid"> <span class="field-content"><img class="imagefield im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS not working for IE I have a shopping cart display button on the top of my site and its supposed to show a red price for the total in your cart the CSS works in FF and in chrome, but not in IE. CSS: .cart-info { background-image: url("/skin/frontend/default/photo/images/header/head-cart-bg.gif"); background-posit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Vb.net conditional linq query In this query against a datatable i'm trying to do some conditional filtering. The check against Timeband(index N) should only be done when the Index exists. (the base code only had three item fields, i've converted them to a simple list) Dim res As DataTable = ( From dr As ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a diff tool that allows copy-paste Is there a diff tool that allows you to paste two segments of text and get a diff? I can't use an online tool because I'm dealing with proprietary data, and I haven't found a tool that provides that feature. A: For those who use Atom, there’s the split-diff package. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to inject a JavaScript function and its call from text area? How can I submit a function definition and its call from <input type="text"> tag? EDIT: My friend have written a php script where he takes the value of tag and without calling strip_tags function prints on another page. Now I want to show an example...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MEF ComposeExportedValue method I have the following situation : I have in UserControl A , in this user control I manage selecting a list of contacts for sending email. I added to its ViewModelA an Action so after filling the contacts I can call this action and this will move the operation with the contacts list to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I calculate the difference of two angle measures? How can I calculate the difference of two angle measures (given in degrees) in Java so the result is in the range [0°, 180°]? For example: 350° to 15° = 25° 250° to 190° = 60° A: Just take the absolute value of their difference, then, if larger than 180, su...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Is it possible to distinguish between click and selection? I have a div with a hidden child. Clicking in the div will toggle the visibility of the child. This works well. Now the user wants to select some text in the child. Dragging the selection works but as soon as the mouse button is released, the div closes (bec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem Render backbone collection using Mustache template I am quite new to backbone js and Mustache. I am trying to load the backbone collection (Object array) on page load from rails json object to save the extra call . I am having troubles rendering the backbone collection using mustache template. My model & co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Exporting an Excel file to .html -- issues Can anybody help me with this? I am taking a table in Excel and exporting it as a web page. I noticed that the webpage rendered things differently -- such as spacing (it's putting in LOTS of white space where there should be none). Also, it's displaying columns that were ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refresh ActiveResource Cache I have an active resource model in one of my applications, and I need to be able occasionally do a find(:all), and force it to repull the data from the remote service. How can I do this? I saw the connection(refresh=true) piece, but I don't want it to refresh EVERY SINGLE TIME. More like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: payment regarding in-app purchase i was implementing the in-app purchase.All i am doing in a apple sandbox i have done transaction completely and also apple is returning the response = 0 when i verify the receipt, but my question is where do i look for successful payment received. Which email id i will get mails lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Possible to attach event handler to listview('refresh') in jQuery Mobile? I have a listview that I'd like to bind a callback to after I call listview('refresh'). In the optimal case I'd love to do something like this: listviews = $('[data-role="listview"]').live 'refresh', -> Console.log "Listview refresh" I haven'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with append json_encode I want append service by jQuery.each(), but it in my js code not worked? This is my output from PHP code: { "data": [{ "service": ["shalo", "jikh", "gjhd", "saed", "saff", "fcds"], "address": "chara bia paeen" }, { "service": ["koko", "sili", "solo", "l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to document (javadoc) a message handler method? I have a class which implements Handler.Callback So, in my code i have something like this : @Override public boolean handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what) { case ThreadMessages.MSG_1: { br...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get image height and width PHP Hello I need to get the height and width on the fly of an uploaded image. This is the PHP function I am using, but it does not return anything for the width and height.. Could you please help me? list($width, $height, $type, $attr) = getimagesize($_FILES["Artwork"]); $min_width = "1000...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Problem passing decimal value to database (Access) I want to pass decimal value to database table. When I send value 1,5 to database then save value as 15. Code: txtKm.Text="1,5"; zelezniceDataSet.VozniRediRow row; row.Km = decimal.Parse(txtKm.Text); zelezniceDataSet.VozniRedi.AddVozniRediRow(row); vozniRediTableA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why do php variables need to be identified by $? Possible Duplicate: Why does PHP have a $ sign in front of variables? In languages like bash and Perl, strings need not be quoted and that is why variable access needs to be identified by using $. Why does PHP need the similar mechanism? A: It's a historical decis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Where to find what commands/properties are available for AppleScript in Microsoft Outlook 2011 Does anyone know where I can find a list of available applescript commands/properties for Microsoft Outlook 2011? I am trying to copy subject of the opened message into the clipboard and save the message as PDF to my deskt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: uploadify Characters (čžćšđ) issue I am using http://www.uploadify.com/ but when I upload images with character (čžćšđ) like "čžćšđ.jpg" čćžšđ is corrupted and uploaded image looks like čćžšđ.jpg. How can I prevent this? What to do that čžšđ will work after upload? A: The problem is on uploadifys encoding and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chrome & PopUp window names I am opening pop up windows from a website (flash content) the following way: RING = window.open(path,'RING_Projekt','width=800,height=600,scrollbars=no,top=' + t + ',left=' + l +''); The HTML file opened in the popup is valid HTML with a <title>, yet Chrome (all other browsers do work f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to fix jslint The '&&' subexpression should be wrapped in parens error I put everything in parentheses but code below still throws error in jslint: Problem at line 5 character 104: The '&&' subexpression should be wrapped in parens. if ((typeof (c1) === 'string') && (typeof (c2) === 'string') && (c1 !== n... H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Joining Tables in ASP.NET Ambiguous Error.. It highlights this line: bojDA.Fill(objDS, "ShopCart"); and right above that is my select statement which looks like: any advice on this issue now would be helpful, thank you Thank you I think the new error has something to do with: SELECT productid,productname,productsk...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Updating the summary table based on triggers and stored procedures I have a typical LAMP based site + Zend Framework where I have a base table and a summary table. Summary table is used to display data in reports. Base table - ID | Status 1 | 1 2 | 1 3 | 2 4 | 2 5 | 1 6 | 1 Summary table - Status | Count 1 | 4 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MongoDB: mongoimport seems to ignore blank field value in first position of tsv file mongodb version v1.8.0 on Mac 10.6.8. I'm trying to run a mongoimport on a TSV (tab separated value) file. For some reason, it's ignoring blank fields even though I'm not using the --ignoreBlanks switch. At least, I think that's wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django : NoReverseMatch for HttpResponseRedirect I am trying to Redirect to the post's page soon as it's saved , well it's saved but the redirection won't work , it's working very fine on the development server .. not in the production one . I tried : return HttpResponseRedirect(reverse('emr.main.views.v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Service.onDestroy() is called directly after creation, anyway the Service does its work I built a Service and it didn't work as expected, so I debugged it. During debugging, I saw that the service's onDestroy() method is called directly after returning from onCreate(). When I comment out the cleanup that happens in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: web.config backslash appears twice Visual Studio 2010 I have an asp.net web application that I made in Visual Studio 2008. Everything worked just fine until I switched to VS 2010. When that happened, I started seeing some weird behavior with my database connection string. The string (edited, but format is the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Text Reader I want to make a program that read the inputed text and parse every word and store it in a data structure, so i can later have some statistics about that (frequency of words, most common word etc). I need guidance about two things: a. best approach for my "parse function", which will divide the text...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: get text from textbox and textarea and save in cookie value using jquery or javascript I have one textbox and one textarea. I want to save the text whatever I entered in that textbox but that textbox is in Iframe. How I do it using jquery or javascript? Please help me. A: Use jQuery.cookie plugin to work with cook...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone ALAssetsLibrary get all images and edit please help me with my question: Can I give URLs and metadata for all the images/videos in iPhone library with ALAssetsLibrary? Can I edit/delete these images/videos? A: the above code has missed some braces so it is resolved below ALAssetsLibrary *al = [[ALAssetsLibra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: change of icons and launch screen in xcode 4 hopeing for some help on this one Hi set my icons up in xcode for using the neat drag and drop feature. A week later i made amendments to my icons. Drag and dropped the new amended items in deleting the older versions. The new versions show up on in the summary drag an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Starting a process as a subprocess in Python I am writing a program that uses multiple worker processes (a pre-forking model) with the following code. from multiprocessing import Process for i in range(0,3): Process(target=worker, args=(i,)).start() I use Windows. I notice that they are run as separate process...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: reuse of variables I'm working on project that need do call the same method several times, but with different arguments. Can I use the same variable or do I have to declare another variable? For example: HttpWebRequest req = (HttpWebRequest)WebRequest.Create(domains["ServiceLogin"]); req.Method = "GET"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: SVG height incorrectly calculated in Webkit browsers I have a issue specific to Webkit browsers (Safari & Chrome, on Mac & PC). I'm using Raphael JS to render SVG data and using a responsive layout to scale the SVGs with the browser window. The SVGs are set to 100% width/height using JQuery. The containing elements ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: c++ win32 prevent context menu from closing I would like to prevent the context menu from being closed in my win32 c++ application. I want to prevent closing the submenu when user clicks on a submenu item. Which message do i have to implement/override? A: Haven't done win32 dev in a while, however just random thou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SWT: addFilter or addKeyListener on Composite i want to have some composite-wide keyboard-shortcuts. The composites in question are in a tab-folder. I have a little function, which traverses all children of my composite and adds a KeyboardAdapter to every one of them. The problem I have is that, when I open on of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pyramid and .ini configuration Each Pyramid application has an associated .ini file that contains its settings. For example, a default might look like: [app:main] use = egg:MyProject pyramid.reload_templates = true pyramid.debug_authorization = false pyramid.debug_notfound = false pyramid.debug_routematch = false .....
{ "language": "en", "url": "https://stackoverflow.com/questions/7570930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to suppress ANT Copy Message He Guys, i wonder how to suppress ANT [copy] and [mkdir] notifications like Copied 2 empty directories to 2 empty directories under… during the Build process. Maybe it's impossible but does anyone has some suggestions for me? Regards A: You can write and install your own custom lis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating an MS Word document in an Android App I am working on a client project for an android app and wanted to confirm if the designed solution appears to be utilizing the most appropriate technology and resources. The application gathers data from the user via a series of questions, compiles the data into a singl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IE Plug-Ins (QVP) in C# WebBrowser Control? I'm writing a C# application that uses a System.Windows.Forms.WebBrowser control to access a web application. In this web application we use a program (Quick View Plus) that integrates with Internet Explorer to provide in-browser viewing for a number of document types not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Asynchronous WCF service calls from a Windows Service I have written a windows service that utilises asynchronous WCF service calls. Upon testing, it seems that the method on the service executes perfectly but the callback to my windows service itself isn't being handled. Upon reading the logging, I came across the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to "assert" in Puppet? Is there a way to assert that a variable (or more specifically, a fact) in puppet has a particular value, and to abort the installation if it doesn't? For background, here is the situation: In most cases I can refer to hostnames, but sometimes I need to use an IP address. For e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the issue with 10 digit mobile no data in mysql? I made a table for storing contact record of user of my website. It also contains a 10 digit mobile no. Table structure is like this: CREATE TABLE contact_user ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, contact INT(10) ) Now the problem is that if I insert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I open a file with unknown associations in iOS? I think it's rather impossible, but will ask anyway. My application uses file association to open some types of files. What I need is to make file associations within my app. For example I have some files in my app's Documents folder and when user wants to open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the most played track out of the iPod library (MPMediaQuery) I need to get out the 25 most Played Songs out from my iPod Library with my iPhone app. i am using a MPMediaQuery. One solutions would be to loop through all tracks and them comparing by MPMediaItemPropertyAlbumTrackCount. But i think thats a bit u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSF. How to set a value of JavaScript function to a field of Bean? Good morning! How to set a value of JavaScript function to a field of Enterprice Java Bean? I have the js function: <script type="text/javascript"> function getTimezone() { var d = new Date() var gmtMinutes = -d.getTimezoneOffset(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: tomcat security constraints How do you negate a security constraint in tomcat? Basically, I have one security constraint defined which setup up basic authentication for the entire context. How can I exclude one file, for example, /public-available.html from this? So I have authentication setup for everything, excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }