text
stringlengths
8
267k
meta
dict
Q: Equivalent of this SQL query in LINQ using Lambda What is the correct lambda syntax for the following query? SELECT a.Title, Count(b.Id) FROM a INNER JOIN b on a.Id = b.FK_Id GROUP BY a.Title I know how to use join, but don't have any idea how to use aggregate and group by in this situation. Thank you. A: Look...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I compose a function that has an implicit argument? I'm playing around with higher kinds, and I'm trying to use compose. I've got the following code: def p2( a : Int) = a + 2 def p3( a : Int) = a + 3 val p5 = p2 _ compose p3 def pn3[T](n : T)(implicit ev : Numeric[T]) = ev.plus(n, ev.fromInt(3)) val pn5 = p2 _ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET MVC: How to show a specific view as result of failed authorization in IAuthorizationFilter I have IAuthorizationFilter filter that checks for specific roles. In case user doesn't have specified roles, I'd like to show a specific view that says something along the lines of "You don't have privileges to view t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: vb.net 2003 Arraylist of structure which have an arraylist I have two structures Public Structure myResearchData Public batchName As String Public arraylistRData As ArrayList End Structure Public Structure myResearchSubData Public researchDescription As String Public recordingDate As Date Publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving from Flash to HTML5/CSS/ etc Some years ago I decided I could bypass all the browser inconsistencies by producing sites entirely in Flash. Doesn't look such a good decision now so I'm re-writing my semi-CMS framework in php, javascript/jQuery and HTML. One aspect of my Flash sites which I am very pleased with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Excel VBA: Variants in Array Variables A question on variants. Im aware that variants in Excel vba are both the default data type and also inefficient (from the viewpoint of overuse in large apps). However, I regularly use them for storing data in arrays that have multiple data types. A current project I am worki...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: BLAST Database allocation error I asked this question on the bioinformatics version of stackexchange, but since I think it is a computer problem I thought I should try my luck here. When running local BLAST (v2.2.24+) on a big database (all human proteins) I get the following error: proteinsApplicationError: Comman...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LINQ to SQL vs. Enterprise Library I have 1 million records inserted per day. My front end is C# 4.0 and my back end is MS SQL Server 2008 R2. What method should I use to gain the best performance? Should I use LINQ To SQL or Enterprise Library 5.0 or something else? A: If you're going to be inserting that many ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get Action and Action Parameters in Controller.OnException We're using the OnException virtual method in BaseController to log our exception. But how can we get the controller action and parameters that the exception originated from? A: You can get all these data from ExceptionContext object. For example using th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Problem with putting in the right parameters I have problem with putting in the right parameters from an eventListener into a function. <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to avoid duplicate entries of a record when Exporting SQL server data to an Excel in C#? I have requirement to export SQL Script data to an excel using C#.Net. Currently I face issue in avoiding duplicat values for columns, when a record has multiple values for a column it should look like as in the bellow, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio 11 Developer Preview - Breaking FxCop Static Analysis After installing the Developer Preview our Custom FxCop rules project won't build as the following Dll's can't be found: FxCopSdk.dll & Microsoft.Cci.dll It turns out that this is a red herring, looking at the project for the custom rules on other's...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to change TTNavigator (for a web url) bottom bar color? Here is a code i made to open a website via TTNavigator- - (IBAction)btnTemp_Click{ TTNavigator* navigator = [TTNavigator navigator]; navigator.supportsShakeToReload = YES; navigator.persistenceMode = TTNavigatorPersistenceModeAll; [naviga...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scrolling parallax background, infinitely repeated in libgdx I'm making a 2D sidescrolling space shooter-type game, where I need a background that can be scrolled infintely (it is tiled or wrapped repeatedly). I'd also like to implement parallax scrolling, so perhaps have one lowest background nebula texture that ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: jquery nested form plugin I am looking for a jQuery form plugin that can recive XML or json as an input to dynamiclly generate a nested form. For example: <root> <book> <title>title 1</title> <price>30</price> </book> <book> <title>title 2</title> <price>50</price> </book> </root> Will be converted to: <form> <fiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: return confrm delay problem For starters, here is my markup: <form action="/People/_Delete/AUG0003/10?searchType=IdentityCode&amp;Filter=a&amp;searchOption=StartsWith" method="post" onsubmit="return confirm(&#39;Are you sure you want to delete AUG0003?&#39;)"> <input id="rowcount" type="hidden" value="10" /> <bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I execute an SQL command on a DBContext connection before the first EF entity is loaded? I'm pretty new to EF, and have searched around for an answer to this without luck. In essence, when I get a connection to the db in EF, I need to execute a stored procedure to setup some internal security, which will then li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set numeric virtual keyboard only for LWUIT TextField that constraint with Password and Numeric? I want to set LWUIT TextField constraint to Number and Password. I make TextField by TextField tf=new TextField(); tf.setConstraints(TextArea.NUMBER|TextField.PASSWORD); tf.setInputModeOrder(new String[ ] {"123"}...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to unzip a zip file shared through iTunes from the Application Programmatically? I need to unzip file synced through itunes in the documents directory programmatically. There are open source frameworks available like ZipArchive and ZipKit but I am not able to use them in the project. Is there a decent tutorial w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to work out what the filename of the index of a website is with PHP? Take this scenario for an example: * *User types "http://example.com/index.html" into my form *Form is sent to backend script which does file_get_contents("http://example.com/index.html") *PHP script saves the returned html to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC3 Model property bound to Html.DropdownListfor not updated on selecting dropdown by Jquery I have a MVC3 application with ASPX view engine. My page is having a dropdownlist created by Html.DropdownListFor(m=>m.EmpId,(selectlist)Model.EmpDetails). I update this dropdown on a situation where it would have only on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross join not recognized in HSQL I am using HSQL ver 1.7. There is a part where I have a HQL like the following String hql = "from ProductInv prodInv where prodInv.product.id in (:prodList)"; prodList contains list of product ids and the above hql is to get product inventories of the required product ids in prodLis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to avoid image is Hidden by Button I have kept an TImage component at the Top-right corner of a bitbutton.While loading of Form some part of image is Hidden by Button as like in image .How to avoid this.? and also tell me how to find corner of a Button such that i can place my image correctly to show notificat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recipe finder in PHP/MySQL that allows filtering by ingredients I have a MySQL database which looks like this: Recipes (rid, name) Ingredients (iid, name) Relationship (rid, iid) And I have a front end web page which displays the ingredients in a grid. When a user clicks on the first ingredient, all recipes which c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: passing value by sms can I passing a value to another device by sms? usually when i passing a value to another, i'm using putextra and getintent method, but i don't know when passing to another device... my code to send sms is like this : private void sendSMS(String phoneNumber, String message) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get max x rows plus all row info per group by in mysql to linq A while ago I found a handy query for mysql to get the top X per group by. This is what I mean: if this is the table: rid id1 id2 id3 value 1 1 1 1 10 2 1 1 2 11 3 1 1 3 9 4 1 2 1 20 5 1 2 2 18 6 1 2 3 23 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Silverlight navigation problems under IIS I’m totally confused. I’ve hosted my app under IIS on my machine (windows 7). If then I open IE and enter "http://localhost/MyApp.aspx#SomePage" it will really open the app and then navigate to that “SomePage” page. If then I’ll navigate to another page, address bar updates ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: run time layout manipulation I have a grid type of layout. When the app first loads, there are 3 buttons. I am using "Adapter" for the layout. ONCLICK of the button, I want to refresh the same activity but with different set of 9 buttons. Do I start a new Activity in all? OR Make a temporary activity to start the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSOrderedSet for iPhone? For some odd reason NSOrderedSet does not appear to be implemented in iOS. Is there another object that gives similar functionality -- basically the ability to insert/remove objects randomly and access the first/last in sort order? It seems to me that something like this would be needed in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to stop Gson parsing? I just noticed Gson performances are not what I expected and some parsing processes are taking a lot of time. I'm not looking for another solution, my app is quite big and I don't want to alter its structure with something else like jackson. My Android app allows the user to stop...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Null Exception was unhandled - IdleDetectionMode.Disabled Whenever I debug my windows phone app, whether it be on my phone or emulator I always get this Exception. How can I resolve this issue? PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; I'm still a beginner with this. A: I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: CakePHP: Check if user is already logged in I'm trying to forbid multiple logins by the same user at the same time to my CakePHP (1.2) driven site. However, that's not as easy as I thought since I have no idea how to get the information if a user is already logged in or not. I'm using Cake's Auth-component to authen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to hide over x chars in a string it's very common to substring an item description if it's too long, But how could show it back? i was thinking if string length is > x insert after position x a <span classs="more"> //probably i'd do this through php insert at the end of the string </span> hide ".more...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: caching google maps api v2 is it possible to cache geocodes on google maps api v2? because i need to get 6.5k marks on my map and with this script it would take around 20 minutes to load them all. and we don't want to use lat and lng if it isn't needed. and if it isn't possible does anyone know another way to load t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a 16 bit section using BitVector32.CreateSection I am working on a project where I need to write arrays of bits onto a network connection. The data to be written are 32 bit aligned, i.e. all data is a multiple of 32 bits. My first thinking was to use Bitvector32 to create 32 bit words and then create sectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Please help move WPF trigger behavior to Silverlight The WPF code: <TextBox> <TextBox.Resources> <Style TargetType="TextBox"> <Style.Triggers> <Trigger Property="Text" Value="1"> <Setter Property="Background" Value="Red"/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: spinner adapter and Listview adapter I have a ListActivity with a setListAdapter call so that I can dynamically hide buttons in the listview. This was working fine till I introduced a spinner which now works fine but somehow stops the listview adapter from working without producing any debug issues or crashes so the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jetty 8 GzipFilter does not apply sometimes I just updated my web server from Jetty 6.x to Jetty 8.0.1, and for some reason, when I do the exact same request, sometimes the response has been Gzipped and sometimes not. Here is what the request and response look like at the beginning of the service() method of the ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: multitouch swipe not working in my flex mobile project, developed for Ipad, I implemented swipe gestures to switch between views. After some time I realized it did'nt work from itself with multitouch, so I tried to implement a multitouch statement before the eventlistener. But it's not working, it only registers the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ANTLR Parser Rules With String Literals Say if my parser rules look like this: rule1 : 'functionA' '(' expression-inside-parenthesis ')'; expression-inside-parenthesis: ....; But I never defined any lexer rule for 'functionA', '(' and ')'. Would these be considered tokens by the parser? For '(' and ')', there is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Writing Hindi language on UILabel in Xcode I have written a code where I need to display hindi numbers on the UILabel. I used devanagari font to show that value but it doesn't work. It just changes the look but not the language. I was using: UIFont *font = [UIFont fontWithName:@"DevanagariSangamMN" size:16]; myLabe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net mvc - inconsistent rendering of ActionLink I have a controller which accepts URLs in the following two formats: * *Network/AddOrEdit -> renders a blank form on a page to add a new network object *Network/AddOrEdit/[id] -> renders a page with prepopulated form to edit the network object with ID [id] Obv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: android facebook connectivity on a button click Possible Duplicate: How to Integrate Facebook Connect with Android I am making an android application in which I want to login through facebook id on the click of fbconnect button. Can anyone tell me how to do this? Thanks. A: Although the question is quite generi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert Object into XML element (and viceversa) in AS3 Is there any way to convert an object into an XML element in AS3? I found this tutorial to serialize them: http://cookbooks.adobe.com/post_Serializing_object_to_XML-11988.html But I also need a way to unserialize to get the original object (with its own properti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select all if parameter is null in stored procedure I want to create a procedure in SQL Server that will select and join two tables. The parameters @company, @from and @to are always set but @serie_type can be NULL. If @serie_type is not NULL i just want to include the specified types, simple AND S.Type = @serie_typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: C# Word Interop, Pasting Clipboard into Paragraph I have a report builder I'm making that builds the start of a report in word. Word is then kept open for the user to carry on with the report. The report builder gets rtf from a database that is to be used as paragraphs. For each rtf a paragraph is created within the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a method string.TryFormat that works similar to string.Format? Is there anyway to check if a string.format argument is valid argument something like string.TryFormat . try { string.Format(Format, new string[Selectors.Count]); // } catch (Exception) { return false; } I am using this method in my UI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: PHP SQLite3 Query INSERT, DELETE & Redirect I've spent the last couple of days grappling wit the simple concept of using a php script as Save button. When pressed from a webpage the button will INSERT data from table A to table B then delete table A and redirect to back to my main index.html. <?php try { $db = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Launch my app from Calendar Notes with Custom URL Scheme I'm trying to get my application launched by clicking on a link in the Calendar's notes section, but I just can't do it ... The URL schemes for http:// and mailto: are working in the notes section (Safari and Mail are started, respectively), but myapp:// does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: didReceiveRemoteNotification - call function in the current view controller How can i fire a function of a current view controller(currently user viewing) when i receiving a push notification. thanks in advance.. A: The best method is to, in your app delegate's method to handle the remove notification, send out a n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: newbie asking suggestion for gem structure I plan to write a gem that create a zip file by download from a link or get from filesystem or from a string and upload to s3. Is it a good idea I hijack the Zip module from rubyzip? Zip::Voidzip.upload! do |zip| zip.add "http://example.com/example.png", :as => "image/zz...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Which LINQ expression is better? I was wondering which of the following LINQ expressions is better (especially in terms of performance). Notes: * *length of SearchKeywords is usually around 50 *length of keywords is usually around 3 *this method is called around 100,000 times this one? keywords.All(a => Sear...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Assign value to People Picker programatically in Infopath As we can assign any field in infopath form using (Eg:TextBox) MainDataSource.CreateNavigator().SelectSingleNode("//my:RequestedHardware", NamespaceManager).SetValue("Test"); But when i am assigning the same for the PeoplePicker field it is giving an ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem in Export csv file in php I need to export csv file in php using mysql query .But when i export filename like this "yourfilename.csv_". My code is header("Content-type: application/csv"); header("Content-Disposition: \"inline; filename=yourfilename.csv\""); $query = "SELECT * FROM login"; $result = mys...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loop through custom post type based on value of taxonomy I have a custom post type FAQ and custom taxonomy Category. I want to loop through the taxonomy Category, take its values, and then loop through custom post type FAQ and grab all the posts that have the same taxonomy values. Can anyone shed some light on this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select a single row a 100 million x I would like to generate the following output, using a single row from a select. SELECT max(t1.id)+1 as new_id FROM t1; -> 101 However I want to do SELECT s.last_id, sequence(1..100000000) as new_id FROM (SELECT max(table1.id)+1 as last_id FROM table1) s; -> 101,1 -> 101...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: sql developer connect to Timesten database When I try to connect to the timesten databse using the SQL developer, I am getting following error message. Unrecognized JDBC URL subtype: TimesTen I kept the classes13.jar in system classpath and also included in the Tools - > preferences -> Database -> third party driv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# How to Verify Digital Signature from email ( Encoding SeveBit ) I get the message body and the smime.p7s file that contains the digital signature. And I want to verify if the mail is signed by that signature. I'm using the following code. private bool VerifyCommand(string text, byte[] signature, string certPat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: AppWidgetProvider handle touch event problem i am adding installed AppWidgetViews to my application as AppWidgetHostView. The problem is they don't handle any touch events as they were added to home screen. Here is part of my code; AppWidgetHost host = new AppWidgetHost(getContext(), HOST_ID); AppWidgetManager mana...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change fonts color in Installshield 2011? How can I change fonts color in the the default dialogs in Installshield 2011? I have created a new entry (with the new color) into TexStile Table, but when selects the new "test style" in the Dialog editor, the colour does not change. This works fine in InstallShiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display the contents of a return array from model to view in codeigniter How to display the contents of a return array from model to view in codeigniter? Code: model $arr_data[] =$query2; return $arr_data[]; how to display the array contents in view page using codeigniter A: You get data from model, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android AsyncTask and SQLite DB instance I have a problem and I am not sure how to approach it. An activity in my app has multiple AsyncTasks which access single SQLiteOpenHelper. I initialize and open the helper in onCreate() and I am closing it in onStop(). I also check if it has been initialized in onResume(). Si...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Overiding same method in Super Class and Interface I am extending a Class as well as implementing an interface, both contain a method called doFilter , it is a final method in my super class and off course an abstract method from my interface . So, now I am getting compiler error. How should i resolve this. My filte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Workflow persistence by single start of workflow for various states of a project i am using workflow 4.0, silverlight 4.0, in my project. there are 5 sequences considering states of my project which have to be initiated according to a field called status from database. Actually each sequence should not require para...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Input needed for my program structure/design I've tried to describe the application I'm building in a much detail as needed, so I apologise in advance for the essay! I'm in the process of designing and building a fairly large music application, using the C++ Juce framework, that in a nutshell takes in OSC messages a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Does Android app needs to request again for registration on SERVICE_NOT_AVAILABLE message in C2DM? I have implemented C2DM in one of the applications and its working properly. Sometimes, what happens that when registering for C2DM the error message comes as SERVICE_NOT_AVAILABLE. Now, in C2DM docs its mentioned that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL error in CodeIgniter My model: function version() { $this->load->database(); $this->db->select('location_id'); $this->db->from('geo_blocks'); $this->db->where("2057793231 BETWEEN `ip_start` AND `ip_end`"); echo $query=$this->db->get()->row(); } The error I'm getti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQgrid with jquery UI autocomplete validation What I have is jqgrid which uses jQueryUI autocomplete in a column. Everything works perfect except 1 little thing, if user choose to write "fsdfsdfsfasf" and press enter my program will of course freak out and tell me that such item does not exist. What I want is to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to disable audio recording function in iPhone? I'm making a VoIP app for iPhone. It's required to to forbid any form of audio recording for security reason. Is it possible to do so? If so, how to do it? Thanks a lot! Edit: The app is not for jailbroken iPhones. However, private frameworks are permissi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Validate dataset using XSD file I have XML file and i am genrating Datset from it DataSet ds = new DataSet(); ds.ReadXml(new XmlTextReader(new StringReader(strMasterSqlXML))); //strMasterSqlXML is XML string I have XSD file and i want to validate that dataset set by XSD file to check datatype and relations, if it'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating screenshot with AutoIt _ScreenCapture_Capture in remote server does not work I have a farm of virtual windows servers and they are autonomously running various desktop applications and I want to have easy way to see what's going on on each server without connecting through RDP. So I have created a simple Au...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Pass data from one fragment to another In one of my project i am using 2 fragments.one fragment is displaying a list of items.So i want when the topic will be selected in first fragment the details should be changed in another fragment.Data i am able to pass from one fragment to other but the view is not changin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Locale::TextDomain fails when $LANG is not initially set We have a system of translation that uses perl Locale::TextDomain/gettext. We have an issue where the localization works on one system and not the other. The only discernible difference is that environment variable LANG equals 'en_GB.UTF-8' on the working syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I have a lib ".a" file, where it contents some value,I am able to read the contents I have a lib ".a" file, where it contents some value. I am able to read the contents.But I want replace the space with the Comma(,) and remove the first value in it. For Example if my .a file Contents the following data, 1 2 3 4 5 6 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Syntax error in INSERT INTO statement for MS Access I have a SQL Insert Into command that works in normal conditions. That means if I fill in every textbox, the data is send to the db (Acces db). But when I 'forget' 1 textbox, I receive a "Syntax error in INSERT INTO statement." How can you avoid this? string comman...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I delete duplicate data from SQL table I am in the midst of uploading and updating my db from data from a third party source. Unfortunately, there are many duplicate records in the data from the third party data source. I looked at a few questions here on SO but all of them seem to be cases where there is an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ordering returns from a select statement based on the number of times a particular value appears I have a general question that I would like to ask about MySQL and using the ORDER BY command in a SELECT statement. In particular, I want to know whether it is possible to count the number of times a particular value ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get Html of a view using jQuery in ASP .NET MVC 3.0 I want to get html of a view using jquery and want to show this html in a div on another view page. I know the .html() method of jquery but it doesn't work for my requirement. I have done a lot of searches but I didn't find this. Please send the answer as so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to change content_for into a partial and getting "undefined local variable or method resource ..." I currently have my devise login form set up like this. Instead of content_for, I would like to just put this content in a partial (named views/devise/sessions/_new.html.erb instead of views/devise/sessions/new....
{ "language": "en", "url": "https://stackoverflow.com/questions/7514091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: lambda function don't closure the parameter in Python? Code talks more: from pprint import pprint li = [] for i in range(5): li.append(lambda : pprint(i)) for k in li: k() yield: 4 4 4 4 4 why not 0 1 2 3 4 ?? Thanks. P.S. If I write the complete decorator, it works as expected: from pprin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: check if a character is carriage return i would like to remove the last line from my string.. the nsstring object here is _text. My thoughts are to scan characters from the end and if i found a carriage return symbol i substring to that index, and finnish. But i don't want to remove every carriage return, just the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Routing and reflection problem I added routing to my solution in order to have a more user friendly URL in the address bar. I start the solution and when I rollover my Favorites link, I see the URL .../Affaire/Favorite (picture below). This one is OK for me. When I rollover my Recycle bin link, I see the URL ../Aff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I read exactly n bytes from a stream? This is a little more tricky than I first imagined. I'm trying to read n bytes from a stream. The MSDN claims that Read does not have to return n bytes, it just must return at least 1 and up to n bytes, with 0 bytes being the special case of reaching the end of the stream...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Passing message to another window I would like to write an application which passes every message it receives to another window. For example, I have an application where user can press some keys, move mouse over it, etc. and I want all these messages passed to, for example, MS Paint. How do I do this? Any ideas? As ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# is there anyway to instruct a code block to finish processing before the app gets shut down? I know this won't work in all scenarios, but please keep in mind the following 3 scenarios: * *An IIS reset - if the code is running inside IIS *A Server restart or shut down *User closes the app (if its a Windows fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to enable Jscript intellisense (VS2010) in class library project I have a normal class library project that will provide some custom web controls for usage in other (normal ASP.NET Web form) projects. Those controls will have java script files and I want to use Intellisense in there - especially for the MS Ajax ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Always avoid recursive methods in Java? I recall that one should always avoid using recursive method calls in Java. I thought the reasons are, that the overhead procuded by saving the invoked methods on the heap is not worth the reduced lines of code in the implementation. However, I was told lately that this is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Optional stubbing in Mockito I want to create a method in superclass of test-class that stubs some commonly used methods in under-test-classes but some of those methods might not exist. For example, I have a class hierarchy like this: abstract class A { void search(); // implemented by subclass String getFo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to display a pie chart in blackberry application How to display a pie chart in blackberry application using rim apis? Are there controls available in the rim apis or how can it be done? Can some help me by sharing the code snippet A: The Google Chart API allows you to provide a URL to the Google service, which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic Elements in JSP? I am wondering how to create dynamic elements in a JSP webpage? For example, what I want to do is that I have a Selection Box, in which a user selects an image. Upon clicking a button (or possibly after selecting an item), the image will 'slide down' (like how PPT slides slide down when chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove faces servlet url pattern and page extension from url i have a command link in my page which looks like: <h:commandLink value="Add user" action="add?faces-redirect=true" /> and when i click it, it goes to url: http://localhost:8080/myapp/faces/add.xhtml but i want the url to be: http://localhost:8080/myapp/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: update to rails 3 on ubuntu Hopefully this is an easy one - I'm trying to install rails on my netbook. I can#'t seem to get it to update to rails 3 (seems stuck on 2.3.5). Here's some terminal output to show you what I mean... mike@Ubuntu-Netbook:~$ rails -v Rails 2.3.5 mike@Ubuntu-Netbook:~$ gem update rails Updati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to search in List items I have a List and it is filled with strings like this: List<string> data = new List<string>(); data.Add(itemType + "," + itemStock + "," + itemPrice); So basically there are 3 string variables that are comma separated. Now I want to search in this list and delete items that are from a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How we can skip any Test Cases during CTS Run? How we can do the following task: During the running time we can skip the any package or case...? A: You can not skip the particular test cases directly in CTS. For that you have to execute the Test Cases manually which you want to execute. Since there are thousands of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: LyXliteral programming I keep writing codes in gedit but at the end of the week we need to submit a lyx literal programming file. Copying and pasting or importing is painful, since , we need to keep pressing tabs or enters. Can anyone suggest a simple alternative to this? Please keep in mind that we need to export t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Scala Option to validate command line argument I am using Apache commons CLI for command line parsing in a Scala utility application. One of the arguments is a database port number (--port=) that overrides the default "5432" (for PostgreSQL). I am trying to use the Option class to assist in the validation. Her...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: NSButton setAlignment does not work I used [button setAlignment:NSCenterTextAlignment]; to make the text display at the center of the button. It worked. But if I set button title attribute before the code, button 'setAlignment' will not work - (void)setButtonTitle:(NSButton*)button fontName:(NSString*)fontName fon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Using Telephony Manager in android to find IMEI number I m very new to Android Development. I want to find the IMEI number of the phone and using "android.telephony.TelephonyManager;". TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); telephonyManager.getDeviceId(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: CSS / Javascript Layout problem with fixed-header table, and jquery side-col animation I have a frustrating problem with the following scenario: * *Right col, with table. Always 100% of available browser width. *Smaller Left col (sidebar) with width set to just 140px. Left col has slide-in / slide-out animation,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IBAction not appearing in xib file (A) I have added a normal file, and in the .h file I've added the following code: -(IBAction)PushButton; My problem is, the action doesn't appear in the xib file when I go into "File's Owner". I only have the problem with my "A" files. It works perfectly fine in the "M" files. Any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }