text
stringlengths
8
267k
meta
dict
Q: StringLength Mvc As you know there is a property called [StringLength] in model of mvc. I have a variable which is an int and I want to restrict it to maximum 4 characters. I need something like [IntLength]. Can you help me? [Display(Name="Credit card number:")] [RegularExpression(@"\d{4}")] public int BookingCardNu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android camera (froyo) doesnt include static method open() I must be the first to face this problem because I can't find even a single thread about it. Today I wanted to start on the camera aspect of my application needs. I read up some documentation my manifest looks like this: <uses-sdk android:minSdkVersion="8" /...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I convert datetime to date, truncating the times, leaving me the dates? I have a field that's in datetime format when date would be better and more consistent with the rest of the database, so I want to convert. The time part is all 00:00:00 anyway. How can I do this in MySQL? Thanks. A: Cast it as a DATE: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Document filter is not working in Java? In text field more than 10 characters na, it has to show an error. For that i used document filter: JTextField field = (JTextField) txtFld; AbstractDocument document = (AbstractDocument) field.getDocument(); document.setDocumentFilter(new DocumentSizeAndUppercaseFilter(10)); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Associating AutoComplete TextBox to Xml with WP7 Is there a way to create an autocomplete textBox using data from a xml file with WP7? A: Yes, you read the XML file and use that data as the ItemsSource for the AutoCompleteBox. It's not possible to pass raw XML, or the path to the file, to the AutoCompleteBox and ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: check all values in table or object i would like make somethings: <?php $a = array(); for ($i =0; $i<15; $i++){ $a[$i] = '111'; } foreach ($a as $ok){ //if all values in $a == 111 : { echo "all is 111" } else { echo "no"; } } ?> LIVE: http://codepad.org/RdvhK0VD is function in PHP for this? i must each values ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Binding JSON to nested Grails Domain Objects I'm developing a RESTful interface which is used to provide JSON data for a JavaScript application. On the server side I use Grails 1.3.7 and use GORM Domain Objects for persistence. I implemented a custom JSON Marshaller to support marshalling the nested domain objects ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Simulate click event in AS3 Is there any way to simulate a click event in AS3? I'm trying this: element.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_DOWN, true, false)); But click event isn't trigger it. A: You must dispatch a MouseEvent.CLICK event. element.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true, fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can we save a file with date? How can we save file with current date? Date date11 = Calendar.getInstance().getTime(); DateFormat formatter =new SimpleDateFormat("d/M/yyyy"); String date1 =formatter.format(date11); FileWriter fw = new FileWriter("C:\\InjectionExcel"+ date1 +".csv"); date1 given is current date...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Return string array in C++ function I am new to C++. For a school project I need to make a function which will be able to return a string array. Currently I have this in my header: Config.h string[] getVehicles(void); Config.cpp string[] Config::getVehicles(){ string test[5]; test[0] = "test0"; test[1] = "test1"; t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Tween does NOT repeat indefinitely I am trying to animate a hexagon spinning like a wheel indefinitely: function rotateCW(e:TweenEvent = null):void{ var hexRot:Tween = new Tween(this, "rotationZ", None.easeNone, 0, 360, 2, true); hexRot.addEventListener(TweenEvent.MOTION_FINISH, rotateCW); } For som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't Understand Weird C Runtime Error. Need Help? I am trying to master the GObject Library. So I tried to make a simple Gtk+ Custom Widget by inheriting from GtkHBox. I can't figure out what the problem is or even where the problem is so I'll have to paste the entire code. Here is the code: notetab.h #ifndef NOT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to split a string on the first occurrence of one of multiple substrings in JavaScript? Given strings s1 = "abcfoodefbarghi" and s2 = "abcbardefooghi" How can I split s1 into "abc" and "defbarghi" and s2 into "abc" and "defooghi" That is: split a string into two on the first occurrence of either one of string...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: RegEx problem with IE7 when trying validate Email address I am wondering an annoying problem with Email Validation using regex. I'm using this regex to validate email address on a web page: ^\s*[a-zA-Z0-9_\+-]{1,63}(\.[a-zA-Z0-9_\+-]{1,63})*@(?=[a-zA-Z0-9-\.]{0,255}\.?\s*$)[a- zA-Z0-9-]{1,63}(\.[a-zA-Z0-9-]{1,63}){0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VirtualBox error while using Vagrant I want to use Vagrant to create a virtual machine for a development environment. I am getting an error when it tries to install the virtual machine into VirtualBox. The output of VBoxManage import is below. My colleague is able to run this command without any problem. I am on Mac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Bluetooth Automatic Connection with Paired Devices I am new here and I have read a lot of your post, and still don't find the solution of my problem. I am writing an App for Android 2.2 using Bluetooth to connect to an End-Device. I have a list of Paired Devices and I can connect my Android-Tablet with each of my al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Tool to capture every event details from other applications Is it possible to create a Windows application to capture all event details (control type,event type,window etc) triggered from different types of applications (winform, wpf, silverlight, etc) I tried the "record" tool in "white framework". http://white.cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get same server response data for two different application? I'am using LVL to get server response data. I want to know if I can get the same server response data for my two different applications and if so, what changes I have to do in LVL to make it possible? A: This can only happen if you are using the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: execute inline script from Ajax request On my application homepage, I built a 'widgets' system. The source of the widgets is generated server side, and pushed to the client through Ajax. Ext.Ajax.request({ url: '/get-widgets', success: function( response ) { var boxes = Ext.decode( response.responseT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: edit rich:extendedDataTable using rich:modalPanel I have a <code>rich:extendedDataTable</code>. Each row has a a4j:commandLink as below. Table Page: <a4j:commandLink id="editlink" oncomplete="#{rich:component('editPanel')}.show()" reRender="editPanel"> <f:setPropertyActionListener val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Response to DELETE method request sent using node.js never arrives I have node.js server which acts like a proxy. It recieves localhost requests and forward them to web service on another domain. GET, POST and PUT requests work just fine. But I have a problem with DELETE method request. It causing "Gateway Timeout ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what is the best way to update status bar message? May i know which is the best way to update a statusbar message in MDI application.I have come across this code for displaying the message in status bar of parent form from child form but i want to update the message based on user's action. In parent form private voi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery Mobile Dropdown List Positioning I am using jQuery Mobile and am having an issue with the margin added to the top of a drop down list element. I am trying to align a drop down list next to a text input, but the top of the inputs appear out of line. Here is a sample: http://jsfiddle.net/f6Prp/ What I want is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use Python bottle server to receive FileEntity of a POST request from Android On Android phone, I used setEntity() to put the FileEntity to the POST request. HttpPost post = new HttpPost(uri); FileEntity reqEntity = new FileEntity(f, "application/x-gzip"); reqEntity.setContentType("binary/octet-stream"); reqEntity.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: java & phpseclib, RSA and OAEP? I am encrypting in Java using Cipher.getInstance("RSA/ECB/OAEPWITHSHA-512ANDMGF1PADDING") and setEncryptionMode(CRYPT_RSA_ENCRYPTION_OAEP) in phpseclib, but the phpseclib is not decrypting the data correctly. It worked perfectly when I used RSA/ECB/PKCS1Padding in Java, and setEncryp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where to obtain the apache JavaHL subversion binding library? I can find the API-docs for JavaHL 1.6 at http://subversion.apache.org/docs/javahl/1.6/ . However I can't find any pointer to a jar+native binary (win32) package, or maven resource. Where do you obtain these artifacts? A: There seems no obvious way to re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Navigation text overlapping in wordpress Im using the whiteboard theme for wordpress. My navigation is aligned to the right hand side of my header, however the navigation text is overlapping, the two inks in the navigation overlap each other on the header. any idea why? #nav-primary { clear: both; width: 100...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i use one HttpURLConnection download many pictures from one website? My app should download many pictures from one website,the number is more than 200.So if i put this below code in a for(int i = 0; i++ ; i < 200),it looks not nice,the connection should connect and disconnect every time. So anybody have some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there focus and lost-focus event on black berry sdk? I am very new developer for black berry environment. Is there a focus and lost-focus event for the controls which are currently selected or deselected? Please give me some like or example. Thank you. A: If you are writing your own custom field, or want to cat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Listing data from 3 different but associated table into one dropdown (using linq-to-sql and mvc3) i ve 3 tables in my database : item,group,groupdetail; in table item there are 2 fields : id,item_name (bigint"long",string) in table group there are 2 fields : id,group_name (bigint,string) in table group_details there...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Mvc 3 hasErrors is always false I have following class, public class MarketPlace { @NotEmpty(message="This Template Name is required") @Size(max=50) private String templateName; public String getTemplateName() { return templateName; } } With the following post method, @RequestMa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What base resolution to design for with Android? I am new to designing interfaces for Android. (I have gone through the Multiple Screens section in the Developer Guide.) What base resolution are you designing your screens for? A: That is based on your app is for phone, or tablet, or both. Currently when designing l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I use a Less than or greater than symble in the WHERE statement with a SUM feature I want it to list the records if the total number of Yes's are less than 5. I am getting an error: An aggregate may not appear in the WHERE clause unless it is in sub query contained in a HAVING clause or select list , and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to detect Chrome Inspect Element is running or not? Is there any way to detect whether the Chrome Inspect Element window is running? For example if the user clicks "Inspect Element" in Chrome, the window shows a Hello World alert. Is that possible? A: UPDATE This no longer works. The property console.profiles h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Css in Javascript I would like to display a status message in javascript and would like to include some css to that staus message.Can anyone help me out with this? Now I have two css classes named Available and Not available for the available I need to apply the Available css class and for not available I need to ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: flashlike javascript framework or simple html5 solution I am kind of new to javascript/html5. normally I would do that kind of stuff inside flash/as3. but since the iPad doesn't support that I need to switch the horse... I want to build a website where words are floating in position and size and if the mouse comes o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ruby on Rails 3 Tutorial by Michael Hartl - Lesson 3 Static Pages Problem the system-created page http://localhost:3000/pages/home shows up fine. but when i change the content of the file home.html.erb and reload the page in the browser and view the source code, i see the content from my home.html.erb file gets adde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the Android device screen size from the adb command line? I need a way to detect device screen size and density with adb. If there is no solution, where can I get the complete list of all existing android device with their screen size and density ? A: LCD density is in the build.prop: adb shell getprop ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: Consuming WCF service in objective C I m new to iPhone programming. What I want to do authenticate a user in iPhone using webservice. For instance I Have a WCF webservice that I want to consume in my objective C code. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Texture loading I am using libgdx and I am loading all my textures as shown below, Texture objTexture=new Texture(Gdx.files.internal("imagename")); This code was inside my ApplicationListener. But, I want to load all my images at the start of my game. I don't want to load them inside of ApplicationListener. I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio : Search Uncommented Code only Is there any way to restrict the Find/Search to uncommented lines only ? (Maybe using regex would be a good lead) A: Lets say, if you need to search all occurrences of an uncommented text "VPEntity" then try using the following regular expression in Find in files after ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Error when using Impersonation with Powershell and Exchange 2007 from C# I'm using a Windows system service to create a mailbox in Ecxhange 2007 using Powershell. As it's running as a system service I'm wrapping the powershell call using impersonation (using advapi32.dll) to run it as a user with the appropriate ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to grab multiple (int) from title I'm using $intVariable=(int)$_GET[var1]; to output and select a variable in mysql records i.e /myfile.php?cat=5 selects different results. I am dealing with a dropdown from SQL so need to output a list based on selected ID's.. so I need to have something like /myfile.php?var1=X&...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eclipse plugin for exporting svn diff to JAR I'm looking for SVN plugin, which can export diff files between 2 revisions to runnable jar file. So I will give it to another man, who just run it on test/production server, and jar automatically will update project with exported diff files. It's easy to write command to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make html page by link name I am building a page for produce name "product.aspx" I have display some products in this page with hyperlink. Now I want, when I click my product (such as pen) then it automatically makes an html page name pen.html with some information. When I click clock then it automatically ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ie6 frame or mode for ie 7/8/9? Very backwards question really, but we have a legacy system which only works with ie6, and no-other browser. Theres not much chance of this system being renewed anytime soon unfortunately and having to support ie6 for an entire dept is really holding up some of our dev work. Is there...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to deal with Java Polymorphism in Service Oriented Architecture What is the path of least evil when dealing with polymorphism and inheritance of entity types in a service-oriented architecture? A principle of SOA (as I understand it) is to have entity classes as mere data constructs, lacking in any business logi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to inspect if javascript/jquery is loaded in the DOM? no examples this time. I am a bit new to javascript. What is the best option to inspect if a certain javascript is loaded in the DOM? Let's say now I applied colourbox to my site, but still its not working, so what I want to see if it is a problem with javasc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Emacs Word-Reordering Completion Style I'm missing one piece in Emacs' already superbly unique completion system (completion-styles and completion-styles-alist), namely word and sub-word-reordering a la google search. As an example, file-write should complete to write-file if no other style finds a completion. Word-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Programmatically select the login item's hide option in Mac I need to create a cocoa application, that run in back ground. I used lssharedFilelist to write an an application this was successful and the application is added to the login item in my Mac. My problem is to done the hide option check-box automatic selecti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CodeIgniter htaccess subfolder problem I want a second website in my domain inside the folder test www.mydomian.com/test Apache server running on linux. But when I load it in my navigator styles, images, helpers can't be found. My htaccess is like this: RewriteEngine On RewriteBase /test RewriteCond %{REQUEST_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Modal view does not redisplay? I'm developing an app that needs to pick up a JPEG from a web site on start-up. The splash screen displays, then the app attempts to get a web address from a file. If the file is missing I open a modal view (as UIModalPresentationFormSheet) that has a text view for the user to type in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to generate reports for Android Automation I have a Robotium test cases that I would like to run nightly using automation tool, however I am not sure if it can be done without manually running it through Eclipse first. Is there a build script that would enable me to run the Robotium test cases automatically on n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How good is NVCC at code optimizations? How well does NVCC optimize device code? Does it do any sort of optimizations like constant folding and common subexpression elimination? E.g, will it reduce the following: float a = 1 / sqrtf(2 * M_PI); float b = c / sqrtf(2 * M_PI); to this: float sqrt_2pi = sqrtf(2 * M_PI)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to populate Radio button and Check box from database? I have Radio button on my page.I am saving the radio button value in database as 1 or 0 format. My question is when I want to populate the radio button how should i do? Please can anyone help me EDIT: DataTable dt = DataAccess.GetHRInfo(userId); if((int)dt.R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use f:loadbundle with facelets Using f:loadbundle when using jsp as the view description language for an JSF application is pretty straight forward. I want to know where to put this f:loadbundle when i am using facelets A: Except from the way the taglibs are declared, it's really not different from JSP. <!DO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to reuse a CryptVerifySignature() hash object? MSDN says that after CryptVerifySignature() you cannot reuse HCRYPTHASH object to try hashing more data, instead it says you need to recreate it with CryptDestroyHash() and CryptCreateHash(). Reusing really fails. Anyone is familiar with a hack that can s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can i use CLUTO package from C#? I am wondering whether there are some C#-specific builds of CLUTO package for using its APIs directly from C# project. As i understand, you need to include ".h" file, provided with the package, to make it work. That's a problem. Edit: adding reference to Cluto: http://glaros.dtc.umn....
{ "language": "en", "url": "https://stackoverflow.com/questions/7527514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Variable calculation time I want to calculate a string once (basicaly a concatenation) in a variable using the result of my report's query and then submit it to my subreports. But for the moment it's calculated in this order (let say operation A is my variable calculation and operation B is my subreport's call) : A ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python - List of dictionary to list of list of dictionary I have this kind of list of dictionary [ {'word': u'live', 'sequence': 1L, 'part': 1L}, {'word': u'school', 'sequence': 2L, 'part': 1L}, {'word': u'job', 'sequence': 1L, 'part': 2L}, {'word': u'house', 'sequence': 2L, 'part': 2L}, ] That I'd like to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Construct the Shared Access Signature URL using C#? Unable to generate signature (sig) part in the shared Access Signature while constructing URL to request list blob storage. Can anyone please provide a c# code to create sas? A: This: http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storagecli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get a Part of the Directory path in a batch file I have a BAT file in a directory D:\dir1\dir2\getpath.bat when i run the bat with the below code it prints D:\dir1\dir2\ i want only the path D:\dir1\ The directory structure is not fixed , need the complete directory path other than the current directory i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: lambda Expression as a property I have a working setup which is not strongly typed and relies on reflection. I have a class, say class Person{ public string FirstName {get ; set;} public string LastName {get; set;} public int Age {get; set;} ... // some more public properties } and class Cel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Bind DataGrid to a Matrix I have a 'matrix' object like follows: public class Matrix { public Dictionary<string, string> PropertyBags { ... } // Sample Property Bag: [{"Column A", "A"}, {"Column B", "B"}] public List<PropertyBags Row { ... } } I wonder what's a practical solution for displaying my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why would some code that should work NOT work and then START working with nothing changed? xCode4 First question here and can I start by saying how much help this site has been to me and how much I like the way it is laid out! Can anyone help me with this.. Yesterday I had an issue with a simple bit of code in xcod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Duplicate Database Table in C#? See this Code: switch(someString) { case "11": Con1_1.ConnectionString = conStr; Con1_1.Open(); Dapt1_1 = new SqlDataAdapter("SELECT * From StdList", Con1_1); Dapt1_1.Fill(Dset1_1, "StdList"); count = Dset1_1.Tables["StdList"].Rows.Count - 1; break; ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find the best posts based on their ratings and the time of posting? I have a Posts table with a lot of posts submitted at various times, and every post has a rating with it. For question's sake let's say I have all the required details in the Posts table itself (i.e.contents, ratings, created_at etc are in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Conversion of float to String is adding a lot of numbers var myNumber:Number = 1.8; trace(myNumber); The above gives "1.7999999999999998" conversion of String(myNumber) also gives "1.7999999999999998" This only happens with certain numbers. If (myNumber == 1.4) it doesn't give me this problem. I've checked with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Refreshing profile documents in XPages I created a profile document in Lotus Notes that saves a boolean value. Then I created an XAgent that returns the value as plain text (either true or false). The problem is: when I changed the value of the profile document in the Lotus Notes client, the changed value is not ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is checking savedInstanceState for null in onCreate a good way to tell if the device was rotated? There's stuff I'd like to do in my Activities' onCreate() method only if they're constructed the first time, not when the device was rotated (on configuration changes). Currently I'm checking the savedInstanceState para...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why can't I take the address of a return value? I've split some code into two files, it was working before. In one file I have a function which has an out value parameter which is a pointer to a pointer. I'm filling this parameter with a call to a getter and dereferencing it: foo(&bar()); however I get an error sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Serialization in .NET - deserialization in Android is there any way how to be able to serialize object in .NET and deserialize it in Android APK? I have tried WOX, but it is available only for pure Java (Android misses some imports). Is could be some custom serialization, but how to write it? Thanks A: Your best op...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to load web view in dialoge in android I am trying to load web view in to dialog. I am usuing the following code. final TextView seeMonthlyBill = (TextView) parentLayout .findViewById(R.id.my_ac_my_service_timewarnercable_link); seeMonthlyBill.setOnClickListener(new OnClickListener() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VirtualPathProvider Not Working on Hosting Environment My .Net project works fine on Local IIS7 (Windows 7 IIS7 x86). But it does not work on hosting environment (W2008 Server x64 IIS7). I can fully control hosting environment. But I could not locate the error. When working locally I can access the USer Controls in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to achieve embedded custom tags in asp.net? I found this example: <telerik:RadDatePicker ID="RadDatePicker1" runat="server"> <DateInput Width="100%"></DateInput> <Calendar CellAlign="Center" CellVAlign="Middle" DayNameFormat="FirstLetter" FirstDayOfWeek="Default" MonthLayout="Layout_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you connect a Flex UI to a Unix backend server? Im working on a project with the following basic needs: * *Need to invoke a Flex Webapp in a new Tab from another Webapp in Java/Jsp *This Flex UI must be connected to a unix backend to show the backend operations on the UI *The unix backend server has tel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get Javascript to work on the WP-Ecommerce Javascript for product entry? We have installed version of Wordpress (3.2.1) and WP e-commerce (3.8.6.1) and I have noticed that in the product editor (within the admin interface) has a lot of gadgets that no longer work and I believe it has to do with a Javascript c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Escaping issue in maxscript I have some issues with the edittext of maxscript and string escaping. First, I want to escape the string written in an edittext (accents and simple quotes). The purpose is to feed this string to a mysql query. Then I’d like to limit the number of characters per line in the edittext, forc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there such a thing as a reverse foreign key? In MySQL, is there a way to specify that a.column cannot exist in b.column - a reverse foreign key? In other words: # Would not return any rows ever SELECT * FROM a INNER JOIN b ON a.column = b.column; # Would fail INSERT INTO a SELECT * FROM b; # Would not insert an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Flash Player interface problem I am facing an interface freeze issue with Flash Projector running a flex state based application. A Flash Projector exe was generated from a standalone flash player ver 10.2. The target machine on which the problem occuresd has 10.3. Basically "screen freeze" means that the user inter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Axis2 : When to use Modules in Axis2 Webservices I am pretty new to webservices . We need to develop a web service using Axis2 . Please tell me when to use Modules Concept , when using Axis2 . Could anybody Please tell me a scenario where this Modules would be useful ?? A: Modules/handlers are extension points of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Elegant way of getting gray scale pixels from a scanned image I will have scanned images with gray toned handwriting on white background. What is the elegant way of selecting, and getting pixels of gray level(non-white) contigous areas? Which image processing library should i use? So far i research for a class and m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use multiple places in Spring viewresolver? this is how I define the loaction of my jsp files: <bean id="jspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> <property...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to install FFMPEG on windows server..? Thanks in advance.. I would like to install ffmpeg on my windows server. My php version is 5.2.3. i followed and copied the avcodec.dll and avformat.dll files to system32 folder.and i copied ffmpeg file into php5\ext folder.Then i added tha extension php_ffmpeg in ini file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disable JVM Hot Swap We are instrumenting byte code and we use Eclipse for software development. We now have to following problem: when debugging, Eclipse is replacing our instrumented code with the compiled code using hot swap since it detects that it was changed. In Eclipse I did not find any way to disable the fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to update the alarm ringing time While updating calendar events? I'm trying to set alarm for calendar events that are inserted through my application. I have also set alarm for events(i.e) when calendar event notification shows, Alarm also sounded. Now, if I update the event time, I must get the alarm time also...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: uibutton not allowing uiscrollview to scroll hi i have uiscrollview and uipage control and in uiscrollview i have buttons (custom buttons) and the coading is as follows bodyView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Communication between processes using WCF and F# I would like to make a simple one to one communication between two long time running F# processes using F#. They will exchange information regularly every ca. 5 seconds. Until now, I have reached this point: #r "System.ServiceModel" #r "System.Runtime.Serialization" /...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery animation delay not working I am animating a div when a user hovers over and just wanted a bit of a delay on it but it doesn't seem to add the delay in, is there something i'm doing wrong? $(".carousel-desc").mouseenter(function () { $(this).delay(1000).animate({ 'height': '180px' }, { queue: false, durat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redis write to master read from slave We want to use Redis to distribute data to remote servers. There is one master instance in the HQ and many remote slaves in our subsidiaries connected to the master. Our applications are running in our subsidiaries. In 99% of the time there are read-only requests made to the sl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: URL to Keyword API I'm trying to get keywords from any webpage I provide as a param. Unfortunately meta-tag keyword data is no longer used and DIY text-parsing usually takes to long per request. So I'm looking for one of the following two solutions: Solution 1: a URL to Keyword API Does anyone know of an API/servi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difficulty using jquery I am trying to learn making ajax calls using jQuery. But I am stuck at a very basic point in using jQuery itself. Follwing is the code I have, <head> <script type="text/javascript" src="jquery-1.6.2.js"></script> <script language="javascript"> $(document).ready(function() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Php and strings I'm receiving string variable in php and need to add something to it. I dump the variable and see: var_dump($myvar); string(length) " ... " After that I write: $myvar += '~'; And it's inserted into DB (This is wordpress plugin and I'm adding a text into post content). As a result, I get '0' :( Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: c# custom installer class .net 4.0 not called I have c# custom installer class that originally targeted .net 2.0. I have re-targeted it to .net 4.0, and now it does not seen to run. I've proved this by adding Debugger.Break at relevent locations. Under .net 2.0 the breakpoints are hit. I even tried targeting 3.5 and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex texItem internal Shadow I searched a lot but without result... is it possibile to add an internal shadow to a textInput? using skin or css? I'd like to have the textInput feel like it has some depth not a simple flat rectangle... A: Add a RectangularDropShadow to the skin, turned 180 degrees.
{ "language": "en", "url": "https://stackoverflow.com/questions/7527643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No. of hits on Website using c# Could anyone helps me by giving the answer for my question. Here is the question... How can we count the number of hits on our website for the day using c# Thanks, Bharath A: You can create a google analytics account and place the javascript on your site. then google analytics will d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Apache Command Line Not Functioning Installed Apache Ver 2.2.3 on my vps with Centos 5.6 but when I try the a2dismod and a2enmod got Command not found error. What can I do to fix it? Thank you * *This is my first vps and this is also my first experience with linux and centos. *The server is running fine just n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Send data via http to android web service I have to send data via http to android web service. How to do this? A: This may help you; public void postData() { // Create a new HttpClient and Post Header HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://www.yoursite....
{ "language": "en", "url": "https://stackoverflow.com/questions/7527653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using statistical tables with Rails I'm building an app that needs to store a fair amount of events that the users carry out. (Think LOTS as in millions per month). I need to report on the these events (total of type x in the last month, etc) and need something resilient and fast. I've toyed with Redis etc to stor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I add qt-mobility 1.2 to my sis file? I have QT Quick app for Symbian that use qt mobility 1.2 for Map element representation. So I need to add qt mobility as a dependency to my sis file. For qt mobility 1.1 it is very simple – just add one string to settings of smart installer. But I dont know GUID of qt mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7527656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }