text
stringlengths
8
267k
meta
dict
Q: How to write in two fields at a time in objective-c? I have two UITextFields one field is RISK and other is WIN. Now when user start writing in RISK field then it should accordingly calculate the value of WIN and should be filled in WIN field. Formula is this if (a<0) { WIN = RISK/(-a/100) } els...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: check if value changed upon change() trigger I noticed that change() can be triggered for a <select> even if the option was not changed. See my jsfiddle example. Changing the selection will change the text input displayed. However (and I do know it's a bit of stretch) if you: * *select the drop down by clicking o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Programmatically start crawling a given content source in Sharepoint 2010 Is it possible to programmatically start crawling a given content source (say a file share) through Sharepoint API or any other means? A: Based on Rob's comment above I found this to be helpful. Following is the C# code I did. The code in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook - Canvas HTTPS Security Migration I can't seem to find anything definitive, with the HTTPS migration, what will happen to existing apps that are just on HTTP? Will they cease to work? Or is it just a case that any new apps will need to be on HTTPS and the old ones will be fine? If I read rightly I think it'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android table creation Failure (near "autoincrement": syntax error)? public static final String MYDATABASE_NAME = "MY_DATABASE"; public static final String MYDATABASE_TABLE = "MY_TABLE"; public static final String MYDATABASE_TABLE2 = "MY_TABLE2"; public static final int MYDATABASE_VERSION = 1; public static fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: RES != CODE + DATA in the output information of the top command,why? what 'man top' said is: RES = CODE + DATA q: RES -- Resident size (kb) The non-swapped physical memory a task has used. RES = CODE + DATA. r: CODE -- Code size (kb) The amount of physical memory devoted to executable code, also known as the 'text ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: use jquery to remove element from parent i have a form with multiple div elements like this <div> <label for="id">text</label> <input type="text" name="id" id="id" value=""> </div> <div> <label for="id1">text</label> <input type="text" name="id1" id="id1" value=""> </div> i use .post to validate some fields before ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Garbage Collection Defragmentation I am getting a OutOfMemoryError java heap exception when just allocating and deallocating a byte array, even though there is enough free memory for the allocation. There is a short log below. I know from running on a different JVM, that the problem is due to fragmented memory...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Calculate height of a HTML-Table generated by HtmlTextWriter (C#) I generate a HTML-Page from C#. In the HTML-Page there are a lot of elements. All of them have a absolute position. One of these elements is a table. This table represents a object that keeps a double[]. Every double value is a new cell in a new row. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC subproperty's deserialization I have two identical dropdownlists for identical subproperties of my item TaskViewModel. @Html.DropDownListFor(x => x.AssignedTo.ID, TaskHelper.GetUsersSelect(Model.AssignedTo), new { @class = "select" }) @Html.DropDownListFor(x => x.Controller.ID, TaskHelper.GetUsersSelect...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How To Get Silverlight To Play A .WMA File on IIS 6 When The .WMA Extn. Is Mapped To Asp.Net I seem to have hit a bit of a wall on this one - although everything works fine on XP Pro IIS5.1, on IIS 6 I have tried everything over the last few days to get silverlight to simply play a .wma file when the .wma file exten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android integration AdWhirl and AdMob I'm trying to integrate AdWhirl and AdMob in my Android Application and I have some question: * *I have many activities and I want put advertisement in most of them. In which activity should I put the following code? //***ADWHIRL CODE // These are density-independent pixe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How I can make a table in database having variable columns in Java? I have a Java web application. I have to create a table, and I am using JDBC. I don't know in my list tag how many values will be there, so for each value tag, I need a corresponding column in my table. These values are fetched from some other appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java is not working in my PC I had installed Java in my PC and it was working perfectly. Suddenly something went wrong and now I m not able to open swing applications and its showing the error 'Java not found'. But I can run the Eclipse IDE which also needed Java to run. So I decide to reinstall the Java, but when I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python nested list within a nested list without looping I want to add a dictionary to a nested list within a nested list. so; ['master_list 1', ['list 1', ['sub_list 1']], ['list 2'], ['list 3']] would end up like; ['master_list_1', ['list_1', ['sub_list_1',{key_1:value_1}]], ['list_2'], ['list_3']] I know the exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Annotation attributes with type parameters When you define a Java interface, it's possible to declare a method with type parameters, for example like this: public interface ExampleInterface { <E extends Enum<E>> Class<E> options(); } The same thing does not work in an annotation. This, for example, is illegal: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Have PDF-Creator suppress warning dialog not to halt build process I have a msbuild script that includes creation of a few PDF's using PDF creator. It's the Convert2PDF.vbs that's being used, converting doc's to PDF's, and a while ago it stopped working and none seemed to take the time to fix it. So I looked into it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Navigate back in visual webgui I'm a newbie of ASP.NET world. I'm developing an app with asp.net and insiede of an aspx page i'm using a window form developed with visual webgui. I've this problem: inside my form, i have a button wich has to rise an event equals to the page back button of the browser. I tried to sea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Node.js: How to install NPM I have cygwin and node.exe (0.5.7) installed on my window XP. When I git clone npm(1.0.30), cd npm, then "make install", there are lots of node_modules cloning. But it stopped when execute "node cli.js install git+https://github.com/isaac/ronnjs.git". The following is my npm-debug.log....
{ "language": "en", "url": "https://stackoverflow.com/questions/7594591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Resolving of vptr class base { public: virtual void fn(){} }; class der : public base {}; I know that compiler provides a member call VPTR in class which is initialised with the exact VTABLE at run time by constructor. I have 2 questions 1) Which class holds the VPTR. or all the class is having seperate VPTR....
{ "language": "en", "url": "https://stackoverflow.com/questions/7594593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cache.NoSlidingExpiration in ASP - when is it reset? I have found an answer to a similar question (System.Web.Caching.Cache.NoSlidingExpiration in asp.net c#) and followed the links, but I need more specific information I cannot find. NoSlidingExpiration does not reset when you 'access' it. But, does that mean when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Ruby: Why is 1.025.round(2) rounded to 1.02? As far as I understand the .round()-functionality in ruby rounds decimals upwards where the last significant number is 5? For example 1.5.round(0) # => 2 (OK) but why does 1.025.round(2) # => 1.02, and not 1.03 as I would expect? irb(main):037:0> 1.025.round(2) => 1.02 W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: CSS for Nested Lists I am currently trying to create some nested lists to display the following... A...R...X B...S...Y C...T...Z (where the letters will eventually be replaced by words) and have made this work perfectly in chrome and firefox, however when I use Internet Explorer I get something resembling the follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shell script that continuously checks a text file for log data and then runs a program I have a java program that stops often due to errors which is logged in a .log file. What can be a simple shell script to detect a particular text in the last/latest line say [INFO] Stream closed and then run the following comman...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Frame Busting buster not completely working for IE I've been working on a Frame busting buster (what's in a name, hehe), which kept my users on my page and open a new window with the target URL. I'm using a Lightbox script to display iframes, this is what I'm doing: 1) Added an event for all .lightbox clicks, f.e: $...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: file default editor is changed `Eclipse` I have an opened project in Eclipse. I have some special extensions like *.VW,*.RW and many. If I double click those files in Eclipse, it will automatically open in default eclipse text editor. Problem: Unfortunately, I have opened *.RW file with Notepad (via file system...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Error when using jcaptcha plugin with grails 1.3.7 Hi I am facing following error when trying to use jcaptcha plugin with grails 1.3.7. org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{}' with class 'groovy.util.ConfigObject' to class 'com.octo.captcha.service.CaptchaService' due ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scrolling Button On Scroll View with Middle Button Selected Please guide me on how can I create a dynamic button a scroll view that will be scrollable, with the middle button always selected. like this b1 b2 b3 b4 b5(selected) b6 b7 b8 b9 if user select b4 it should seems like that b1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Output datetime value to StaticTextField in SmartGWT I have a field in my dataset defined as: DataSourceDateTimeField dateField = new DataSourceDateTimeField("date"); and a StaticTextItem in DynamicForm defined as StaticTextItem dateItem = new StaticTextItem("date", "Date"); I played a lot with different combinati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use the mouse joint in Android? I want to use the MouseJoint in Java for Android. I am new in box2d and cocos2d. I don't know how to use the mouse joint. A: i recomend you to see this tutorial example. Copy from it (sorry i don't like broken links :) ) ... you drag your body with the help of the MouseJoint, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to optimize a big jquery POST? My problem is that after breaking the KB size on a jquery POST, the sending time is mostly bigger than 1 sec. Is there a good way to optimize that? And why it takes so long to send, so less data? A: I had a similar problem, but in PHP. The thing is when you're ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: android meaning of @null in xml attribute I found the following attribute in one xml layout: android:background="@null" What is the meaning of @null? What is the difference between specifying background="@null" and omitting background attribute? A: If I remember correctly, omitting the background attribute sets a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Objective c - CCCryptorStatus without CCOptions I would like to know, how can I define a CCCryptorStatus without using CCOptions. The documentation said, if I don't set the kCCOptionECBMode, the default is CBC mode, which is good for me. But I don't need for kCCOptionPKCS7Padding too, so how can I set this? I try: C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Totalise row in pivot table - Excel 2007 I have a spreadsheet I used to calculate time spend on projects. I take the weekly timesheets sent to me and I pick out and log the hours spent on a task for a specific person on a specific project. I then want to totalise the time spent on each task, by each person, then th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - floatval cuts of position after decimal point? I have this PHP code: <?php $float = "1,99"; echo "<p>$float<br>"; $float = floatval($float); // Without this line number_format throws a notice "A non well formed numeric value encountered" / (float) $float leads to the same output $val = number_f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to identity if button submit has opened a new browser window or new tab in watin I have the same problem, my site opens a new tab whenever I click on the submit form button. Is there any way to check whether i have opened a new tab or new windows in watin I have tried myself with ie.internetexplorers to get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alarm Clock application source code Is there a way to get the Alarm Application source code for customizing the existing default source code availble in Android 2.3. A: This is the version that's made and maintained by Google now in a move to keep the apps unbundled from the system so as to provide the apps and upd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Javascript widget works fine on my own domain, but not on anyone elses? Created javascript widget. Testing on my own domain and its working fine. However when posting on a 3rd party site it looks like it's not connecting to the database and getting the data. Here is the part of the js file where I get the data: /***...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL shortest query without results I'm looking for a query with the lowest possible resource usage which gives no result. For example (this won't work): SELECT 1 WHERE 0 Edit: The goal would be to be used in an EXISTS subquery in special cases where I want no matches. (I know this is not the only possible solutio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: operator '-' cannot be applied to operands of type 'decimal' and 'Systems.Collections.Generic.IEnumerable I have this error that I am tying to solve. Visual Studio 2010 gives the error as: operator '-' cannot be applied to operands of type 'decimal' and 'Systems.Collections.Generic.IEnumerable<decimal> My Code: // ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Password Displayed on inputSecret too long I Use JSF 1.2 and i want to display a password as six characters for the user, and since i use an md5 encryption, so the password is displayed too long. This is my code <h:inputSecret id="password" redisplay="true" value="{userHome....
{ "language": "en", "url": "https://stackoverflow.com/questions/7594650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Registration timer expired, but client is still registering? my app program use coremotionmanager and locationmanager too.when i start the program, i found this error. ERROR,Time,338977575.221,Function,"void CLClientHandleRegistrationTimerExpiry(__CFRunLoopTimer*, void*)",Registration timer expired, but client is s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: invalid multibyte char (US-ASCII) MAC OSX RUBY on Rails Without magic enconding? On ruby 1.8.7 I had no problems with swedish chars ÅÄÖ but now on ruby 1.9.2 this exception comes up. Strangley enough it does not appear on my Ubuntu machine. Can it be fixed without Magic encoding or putting #encoding utf-8 on top of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get dir of a file I think I have a simple question, but I cant figure it out. I would like to get the directory of a file. Example: path = /mnt/sdcard/music/music.mp3 Should return 'music' public String getDir(String pathAudioFile) { File f = new File(pathAudioFile); return f.??? } A: f.getParent(); // ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to determine when DST starts or ends in a specific location in Python? I'm looking for a method of determining when DST starts or ends for a given timezone in a Python script I'm working on. I know pytz can convert the UTC dates I'm working into localtime, and will take DST into account, however for this particu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Get content between comments Hopefully not too tricky this one... I am trying to get just the context between the <!-- itemtemplate --> comments using javascript (with the jQuery plugin). The result must exclude the comments though. In this case the parent is a table, but it can be anything such as a div Table <tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rewrite url: serve both query string and block urls my journey of learning MVC continues and as hard as it is, I'm learning a lot of things I could never learn otherwise. Now I have faced the problem in routing. Currently I'm taking the $_SERVER["REQUEST_URI"] and get the controller and method and any args. When ur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making a HTTPS Post request using XML in Java I'm trying to use the API from Web Of Knowledge(WoK) to obtain some data. The documentation explain that you have to do POST Requests through HTTPS, sending a XML which contains the queries. But I only get the error 400 form server. (Bad Request) Here is my code, I found...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Treeview with checkbox bind by different lists I have a class like this : public class Project { List<Object> list1; List<Object> list2; } I want to show this in a treeview control like as follows : Checkbox + "Listing1" --> Checkbox + Object 1 of list1 --> Checkbox + Object 2 of list1 Checkbox + "Listing2" --> Che...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Blackberry screen renew with new data I am developing a Blackberry Application. I have a map in a screen. I want to refresh map's data with new data which i am getting from my web service. I am using BlockingSenderDestination in a Thread. When i request "get data" its return new data. no problem. I am using invokela...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will a client side MVC framework suit building UI controls Lately i have been thinking of developing UI controls suite similar to Extjs or YUI but using a MVC framework like Backbone or Spine. Am i wrong in taking this decision? Will a mvc framework suit the purpose of such development? What would the significance, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Collapsed methods expands after IDE restart I fold (collapse) some method in Android project in IntelliJ IDEA either via plus sign or via "right click->Folding->Collapse". I close IntelliJ. After I reopen the IDE, the methods are unfolded (expanded) again. Is there a way to solve this? It this IDE's bug or I can fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should I use Global ID's or find another solution to my Notification system? So I have nearly finished my notification system, and just before I am about to implement reCAPTCHA, I test what happens if I spam the notifications. To give you some background on my notification system. I determine the newest content, by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: htaccess rewrite rule, old URL to new A bit of help fellow SO people. What I have at the moment (based on some code I used for a different type of URL). I want the first URL to redirect to the second, with no query string included afterwards This is what I have to so far. RewriteRule ^(page.php?id=missionstatement+)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to optimize the updating of values in an ArrayList I want to store all values of a certain variable in a dataset and the frequency for each of these values. To do so, I use an ArrayList<String> to store the values and an ArrayList<Integer> to store the frequencies (since I can't use int). The number of different...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Excel having columns with dot(.) I am working in c# windows forms product. I am exporting some data to an excel.these data are inputted by the user.the rows in he dataset are made columns in the excel.these column names has 'dot'. While exporting,these columns remain the same.But while trying to import back the data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add behaviour to TextBlock silverlight 3 I want to add a behaviour to a TextBlock in silverlight 3. I have a behaviour class in a c# file in a different project than my xaml file within my solution. public class FooBehavior : Behavior<TextBlock> { ... } How do I attach this behaviour to my TextBlock? Would be ni...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS3 @font-face. Get width of imported font This is how i import the TTF font: @font-face { font-family: bt; src: url('Monospace 821 BT.ttf'); } body { font: normal 21px bt; } And this is how i calculate the Width of font characters: window.onload = function() { var k = document.createElement('div')...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: implement scrollView events in Android [RE-EDIT] I am trying to implement these events in the scrollView: * *OnSingleTap *OnDoubleTap *PaningStart *OnPanning *PanningEnd *PinchingStart *OnPinching *PinchingEnd *RotatingStart *OnRotating *RotatingEnd *OnLongPress The application is a collection of UI ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Centering thumbnail gallery with captions without fixed image size I've tried unsuccessfully to implement the layout in the attached image. When apllied div with table setting IE brokes, if elements are floated when captions are more than one line the layout is broken again. Any suggestion will be greatly appreciate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to keep my data in a array-iphone sdk I'm trying to create an application, and in that I'm receiving some contents from net and loading into and array, if I quit and run the app again i'm losing the data. How can I store the data in the app itself. Should I use some kind of database? If so which one and how can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using oembed - json responses (in client side javascript) If an oembed provider is only outputting json and xml, does that mean it is impossible to use this via client side javascript? ($.ajax request to the provider)? Can we only use oembed providers that allow for a jsonp callback in javascript? Thanks, Wesley ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: lot of records in html5 local storage? 1) is it possible to store lot of records in html5 storage? 2) what is the maximum size of local storage of HTML5? 3) can we access local storage using RDBMS Concept? A: 1 - Yes 2 - Disk space User agents should limit the total amount of space allowed for storage area...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the SQL Query To Find in MySQL DB Table without considering the accented letters? Like the Title. What is the SQL Query To Find in MySQL DB Table without considering the accented letters? So, if I search "abcdè" I find "abcde" A: By default utf8 strings ignore accents as they use the utf8_general_ci collat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jsp with javascript parameter inside javascript onclick I would like to insert a call to a function to get a parameter for my JavaScript onclick function. What I would like to do is something like: <input class="refreshbutton" type="button" id="searchUfficiPopup" onClick="javascript:postColorbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSURL getting value from string I have the following string that I am passing into [NSURL URLWithString:] and getting nil back. I do not see anything wrong with the string?? /Users/danny/Library/Application Support/iPhone Simulator/4.3.2/Applications/A7C18F62-6ED3-4193-993B-D724ADA4D292/fantasy.app/common/files/file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Slide Background with AnythingSlider I need to slide a background when clicking the "next" arrow, and the "previous" arrow - right now the background is in the #container element - However, that doesnt work - I've tried putting the background on the ul#slider element - But that doesnt work either... What i need is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to match ets:match against a record in Erlang? I have heard that specifying records through tuples in the code is a bad practice: I should always use record fields (#record_name{record_field = something}) instead of plain tuples {record_name, value1, value2, something}. But how do I match the record against an E...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: convert objects to JSON and send via jquery ajax I've 1 object: var myobject = {first: 1, second: {test: 90}, third: [10, 20]}; and I want to send it as JSON string via jQuery ajax. How can I do it? (i test JSON.stringify(), but it doesn't work in IE) Thanks. A: If you specify your myobject as the data parameter t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery change textbox values dynamically on Change after table row clone I have a sort of complex php,html script that I am using to create an interactive design. I am using a repeat table and i am basically cloning the contents of a particular table row and appending it to the end of the table. When I select a cert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Managed analogue for SendMessage API function or How to send a message to window from C#? I want to send a window message from one application (console) to the wondow of another application. I can use WinAPI functions SendMessage or PostMessage, but may be there is managed way to do it? A: There is no managed alter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shift a whole range of keys I am working on time series data, for which the key column is a timestamp : Time. There are also many "value" columns for each row. I am about to shift a whole range of my data by several hours (due to a daylight saving time issue). For that, I will update the key of several rows, and it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Submitting a book app so that it can download and read in iBooks? Could you please let me know how an app needs to be submitted so that it can be downloaded in iBooks and user can read from the same. Any step by step procedure or Tutorials will be appreciated!! A: iBooks lets people read PDF files or ebooks, which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: HTML5 File API - slicing or not? There are some nice examples about file uploading at HTML5 Rocks but there are something that isn't clear enough for me. As far as i see, the example code about file slicing is getting a specific part from file then reading it. As the note says, this is helpful when we are dealing wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: accessing mic and earphone of android cellphone hey can anybody please tel me that can i access a mic and earphone of my android cell,as we can access camera hardware of cellphone so is there any way to access them as i want to make a walky-talky app.And im a very beginner so please help me out thanks evry1. A: You...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: git - merge difference of branches I have three branches A, B and C. B is regularly merged into C. o---o---o A / --------o---o---o---o---o---o B \ \ \ \ o---o---o---o---o---o C Now I want to merge the changes I did in C, but without the merges from B, on top of A....
{ "language": "en", "url": "https://stackoverflow.com/questions/7594769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to project a list with QUeryOver in NHibernate I am a little mystified(or stupid more likely) when it comes to QueryOver in NHibernate. I am trying something like this: _session.QueryOver<Task>() .Where(x => x.Category == category) .Fetch(x => x.SubTasks).Eager .Select( x => x.Id, x =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Windows Service in C# Express I am trying to create a service with Visual Express for C#. But cannot find the template. I want to create a simple service which reads every X hours or day an XML files containing date and time and attributes. Then the services will send a syslog message to a remote host containing the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cufon doesn't work inside javascript I have the following problem. I have some text within a javascript. I want the text to look nice, so I wrapped it with "h3" which carries a cufon canvas javascript modifier, so it will look different from the normal font. However, text within Javascript doesn't seem to be affecte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do PHP files with multiple extensions gets parsed? I have a habit of making file backups by adding the .bak extension (file.ext.bak). Imagine if I have a config in PHP, config.php and I want to backup that file by adding the .bak extension, will the file get parsed or will you see the source code if a client acciden...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: iphone URL Scheme image upload app I have developed an application to upload image captured from camera to server. I registered this app to URL Scheme so that i can access camera from web app. I can able to launch the app from web app but do not know how to go back to the web page from where i launched the app. Plea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does loading an object with session.get doesn't persist object modifications at the end of session? Maybe I misunderstood the semantics of get and merge in hibernate, but if I do this (in a Spring method controller, so using service and dao layers): ClassMy a = service.get(234, ClassMy.class) (this loads the obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: eclipse api's to get current project's repository url i am working on developing a eclipse plugin which takes code from repository and builds the code in hudson. for that i need to get the repository url of pom.xml are there any eclipse api's to get repository url of current project. for example i have got the works...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript + printing values from select box I have a select box call 'ToLB' which takes in value items from another select box. I need to extract those selected values from 'ToLB' and print it on a label, this is how I do it but apparently it's not working as in no error message but nothing was printed to the label...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Closest equivalent of 'facebook connect' for google, is it OpenId,OAuth, or google friend connect? I would want to implement a user authentication + accesing his/her data in google account. OAuth seems to be the best choice, but openId and google friend connect also seem to confuse me. Here are my requirements : ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to track down errors when Azure web role starts up? I habe a web role in azure. It is running fine locally in development app fabric, but fails silently when deployed to Azure (simply no response at all for any request). I assume it's some problem with the web.config, but that is happening so early that it occur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What use cases necessitate #define without a token-string? I have encountered the #define pre-processor directive before while learning C, and then also encountered it in some code I read. But apart from using it to definite substitutions for constants and to define macros, I've not really understook the special cas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ClassCastException error ( Object and Vector ) I am working with LWUIT List. Here is how the List is created : db = new ClientDB(); listclient = db.listClient(); tModel = new ListSource(listclient); renderer = new CListCell(true, new String[]{"", "", "Encours : ", "Impayés : "}); tList = new CList(tModel, renderer);...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hibernate relation OneToMany with non unique key I am not able to describe my problem, I try it again with example: I have two entities (tables): Department and Person. Both tables have a field CODE which is not unique. How can I define manyToMany bidirectional relations between these tables? * *Departmen has c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to query data in data table? I used the following code to insert two row in data table: ops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI).withValue( RawContacts.ACCOUNT_TYPE, null).withValue(RawContacts.ACCOUNT_NAME, null).build()); ops.add(ContentProvid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery remove() callback? Is there an official way to hook in to jQuery.remove() so that a function can be called before/after? I have a system whereby certain handlers are attached to elements, and sometimes these elements are removed (eg. a UI widget whose primary element is removed by some other action on the pag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: jQuery .clone() refreshes the page in safari When I call var newElement = $(someElement).clone(); It refreshes the page immediately in Safari. I use jQuery v1.6.4. and Safari v5.1. In Chrome and Firefox the above call works perfectly. Here is the code that refreshes the page in safari. function resetAllAudioPieces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I just want to have dofferentcolor iTems on my UITabbar How I can make my colored UITabBar Please help me I want to make a colored UITabBar for Each Items I need differentColor. A: As explained in this post on Stack Overflow, subclass UITabBarController, then override the -(void)viewDidLoad method. Here's an exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to find current zoom level of MKMapView? I want to know the current zoom level of MKMapView in iphone programming, how can I do that? Actually I have one app, that is taking few arguments(Radius from center to corner of MKMapView) are returning the store details in that are, when I am on MKMapView, the radius is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: divide a web page to two pages I know how to divide a web page using <div>s , but I want each divided section to have its own back and forward and address bar. Is it possible? How can I do that? A: You can't do it using one physical web page and have 2 sets of the browser's default controls, no. You could create tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: regenerate prestashop category tree I imported prestashop categories in 2500 from a CSV file. I respected the ties of parentage, everything works in the navigation or in the backoffice. However, the category tree (which can be seen when we created a new product or you want to put a scene in a category) is not "updat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determining URL or String PHP I'm making a link and text service, but I have a problem, which is: there is only 1 input text form, and the user could paste something like this: http:// asdf .com - which would register as a link, or 'asdf http:// test .com' because of the http://, it would register as a url, or asdf ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Http requests from external and internal IP I have web server with Internet domain name. That server has 2 IP: Internal and External. My web application receives HTTP requests from Internet (external IP). If that web app makes HTTP request to other web server inside our Intranet network, but which also has 2 IP (ext...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add event for image I want to add and event on image. That is, when I click on the image, it should be replaced with another image. import java.awt.Canvas; import java.awt.Dimension; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass image id to alarm service? I use alarm service to start notifications. I want to have different image in notification based on which pendingIntent has called it. I tried passing this id via intent, but the app crashes Intent myIntent = new Intent(AndroidAlarmService.this, MyAlarmService.class); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }