instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
In my jQuery plugins I often expect to have some callbacks defined by the user like in the simple example below (function($) { $.fn.myplugin = function(options) { var s = $.extend({}, options), $this = $(this); if (typeof s['initCallback'] === 'function') { s['initCallback']...
stackexchange/codereview
I'd like to know how to use SelectMany(). It seems to take so many arguments and from my own research I noticed that SelectMany() might be the 'father' of all other select operations.
stackexchange/codereview
Please consider following rich faces tree example: <rich:tree switchType="ajax"> <rich:treeNodesAdaptor id="officeNodeAdaptor" nodes="#{officesBean.offices}" var="office" > <rich:treeNode changeExpandListener="#{office.loadEmplyeesIfNeeded}" > <h:outputText value="#{office.name}" /> </rich:treeN...
stackexchange/codereview
I've got a UIWebView that I've created with code and I am using initWithFrame to define the startup size. As default when I rotate the device nothing is rotated and the orientation is the same as when it started. The application is based on a UITabController and all Tabs in the controller are not displaying UIWebViews ...
stackexchange/codereview
How to acheive this in my mp3 files. Artist:www.xyz.com      ----> Artist: Artist:free downloads,free music,xyzhi.com   ----> Artist: Artist:Kurukuru Kan (Amma Na) - www.musicxyx.com - ® Danaa collections ®     ----> Artist: Kurukuru Kan (Amma Na) Artist: Nan Pogiren - - ® Danna collections ®  ...
stackexchange/codereview
I am trying to use the RSA algorithm for learning purposes. Now I have the following issue. I stuck at the following point. i need to solve the following function: c = value^e % n c = encrypted result value = the number to be encrypted d = my public key n = RSA module I only use double as a datatype for all variables....
stackexchange/codereview
I need to use a python module (available in some library). The module looks like this: class A: def f1(): ... print "Done" ... I need only the functionality of class A. However, when I import the module, the code at bottom (print and others) gets executed. Is there a way to avoid that? Essentially I need to impor...
stackexchange/codereview
Let's say I have an interface IAutoTask and few other classes implementing that interface, RegularTextAnswerTask, SelectAnswerTask, JoinPairsTask etc. Each of these classes defines an EvaluateAnswer method returning an int - but the parameter for the method differs. public sealed class SelectAnswerTask : IAutoTask { ...
stackexchange/codereview
I have a WinForms Form that used to be a standalone application, but is now being started as part of a larger WPF app. It is still a separate window, not contained within a WPF window. The problem I'm seeing is that the ProcessCmdKey event in the window never fires anymore, so I'm having problems handling special comma...
stackexchange/codereview
I got a model with a string property that is required defined as so: [Required(ErrorMessage="Party one is required")] public string PartyOne { get; set; } In my view I have a <%: Html.ListBoxFor(model => model.PartyOne, ListSource) %> <%:Html.ValidationMessageFor(model => model.PartyOne)%> It's acting funky. When I ...
stackexchange/codereview
I am really struggling to find a solution to this i want to find every instance of a number in a paragraph of text. <div id='text'> this is the number 20px and this is the number 100 and this is the number 10. </div> So i want to take this and have it ouput the following. 20 100 10 <script type="application/javascript...
stackexchange/codereview
i need to use auto suggest in my website and i need to suggest multiple lines say if someone search for ex ex example one example2 two example 3 is it is possible to do it using jquery...
stackexchange/codereview
If in one of my columns in my Table I want the values as either Yes, No or Optional then what data type do I need to use?
stackexchange/codereview
I have a flat list like following. nodeA nodeB nodeC endnodeC nodeD endnodeD endnodeB endnodeA Is there any way to create parent child data structure in java like folliwng. A | B / \ C D
stackexchange/codereview
Hello Guys can you help me for creating a TextView in title bar so that if we type 'a' in that TextView than all entries in the ListView starting with 'a' only will get displayed. The TextView will be something of type filterBox in Contact list. Thanks in advance.
stackexchange/codereview
Do anyone know any simple solver that can solve linear constraint math models? Example a simple model: a + b + c = 100; a/b/c = 2/3/4; a > d I'm using MS Solver foundation and this is my C# code, but it throw UnsolvableModelException: SolverContext solverContext = SolverContext.GetContext(); Model mode...
stackexchange/codereview
For preview of scanned TIFF-document currently I use the following: Bitmap bmp = new Bitmap(@"document.tif"); var ms = new MemoryStream(); bmp.Save(ms, ImageFormat.Png); var bmpBytes = ms.GetBuffer(); bmp.Dispose(); ms.Close(); return new FileStreamResult(new MemoryStream(bmpBytes), "image/png"); Is there any way t...
stackexchange/codereview
I am trying to access a button on my default created form from a different thread in the same application. However, I get the error An object reference is required for the non-static field, method, or property 'BElite.Form1.testButton1' where Form1 is the default form created and testButton1 is the test button that I...
stackexchange/codereview
In the Settings.bundle file in Resources group, so far, I have only a PSGroupSpecifier and inside a PSMultiValueSpecifier with this XML code: <dict> <key>Title</key> <string>First day of week</string> <key>Type</key> <string>PSMultiValueSpecifier</string> <key>Key</key> ...
stackexchange/codereview
I have a CSS dropline menu on my page. I have been trying for weeks to make the dropline part (submenu) fade in when you hover over the "what we do" link. I've tried various Jquery tutorials and I have a few alternative functions working, but I can't get what I want. I'm very new to this code business so go easy :) Her...
stackexchange/codereview
I made an AS3 animation with Flash. The SWF work perfectly playing directly in the Flash Player. If I read the SWF file in a browser, interactions like "onRollOver" or "onEnterFrame" doesn't work anymore. What could be causing this?
stackexchange/codereview
I just started using Team Foundation 2010, but I'm connecting to the server with Visual Studio 2008 SP1. It's working alright, except I can't install Power Tools to include shell integration because for some reason it requires Visual Studio 2010. 1) Is there any way I can get tfpt Shell Integration without having to i...
stackexchange/codereview
We are currently using a meta refresh to initiate a download on a page, I read on Wikipedia that using this is not UX (user experience) friendly. So what is the way to have a download start after a few seconds when landing on a download page.
stackexchange/codereview
I want to know how Can I check the checkbox of a asp.net tree view node ( it can be either parent or child) based on matching a condition from the code behind?First Im getting all the nodes from the database. After that I want to check the checkbox corresponding to the ID which that user is a part of. I hope i'm able ...
stackexchange/codereview
I've started playing around with doxygen to generate documentation from my PHP code. I notice there are two diagrams in the generated output - inheritance and collaboration. I know about the inheritance one, but the collaboration one has piqued my interest since reading the manual: If the COLLABORATION_GRAPH and HAVE_...
stackexchange/codereview
I am writing code to generate an Excel file. I am generating a detailed report in 3 sheets in single XLS file. I am able to write 1 detailed, sheet1. Now I want to fire SQL query on sheet1 table to generate sheet2 table. My sheet1 contains 9 columns. Out of 7, one is price. I want to fire query like this: Select Produc...
stackexchange/codereview
I'm building a hybrid flash and HTML5 user-generated video site. I'm a novice but have some more knowledgeable developers helping me. I've bought a virtual dedicated server with 30 GB of disk space and 500 GB of bandwidth. My expectation is that we'll get 1000 videos uploaded and 10,000 downloaded year 1. Each video wi...
stackexchange/codereview
After searching the API and no luck, mybe anyone know how could I retrieve the SIM ID of the device? thanks, ray.
stackexchange/codereview
The best explanation I've found for a postBack is from Wiki. a postback is an HTTP POST to the same page that the form is on. While the article does explain how a second page was needed in ASP, but no longer needed in ASP.NET, it doesn't give much detail or background. I am looking for a freakin' tome of information o...
stackexchange/codereview
I am using emacs 23.1.1 on Ubuntu 10.04. I wish to program in Python with a 2-space indent. emacs looks to have a default mode for python (python.el?). I put the following in my .emacs: ;; Only spaces, no tabs (setq indent-tabs-mode nil) ;; Always end a file with a newline (setq require-final-newline ...
stackexchange/codereview
Here is my situation: XMLRPC::Client has a proxy constructor, new3, that takes a hash of options. It takes out the individual values to then delegate the construction to the default initializer, initialize I am deriving from XMLRPC::Client. I want a class that is XMLRPC::Client but with some added functionality. I wan...
stackexchange/codereview
I'm trying to draw a gradient in Flash using beginGradientFill and drawRect, but when the rect being drawn is partially outside the bounds of the parent, the gradient isn't drawn at all. For example, consider the code below: function testGradient():void { var g:Graphics = container.graphics; var width:Number = ...
stackexchange/codereview
I need inherit one form based on another as described in Django documentation. I have created next code: '''models''' class Blog(db.Model): slug = db.StringProperty('blog url', required=True) name = db.StringProperty('blog name', required=True) author = db.UserProperty(auto_current_user_add=True, required=...
stackexchange/codereview
I'd like to know if it's possible to do a conditional statement when choosing which join to do. A example of what I mean might be something like: SELECT * FROM Table1 IF (TRUE) THEN INNER JOIN ELSE (FALSE) THEN OUTER JOIN END Table2 ON (SOME CONDITION) This obviously doesn't work, but I think it illustrates my questio...
stackexchange/codereview
---added (edit) -- should you do validation at the service layer, even if you validate at the front-end? eg struts has validations so you can validate it a lot. (I don't mean java script validations.) -- are you using hibernate validator or spring validations in your service layer even though you have validations alrea...
stackexchange/codereview
I'm trying to get my prof's overengineered C++ code to compile. This is the code I have: /** * Vector class. * Common mathematical operations on vectors in R3. * * Written by Robert Osada, March 1999. **/ #ifndef __VECTOR_H__ #define __VECTOR_H__ /** * Vector3 **/ struct Vector3f { // coordinates float x, y...
stackexchange/codereview
When do these events actually fire. Msdn speaks about the update button. I dont have any update button in my gridview so which update button does the site talk about?
stackexchange/codereview
I am creating an Outlook automation, where i have to manage several mailboxes. I'd like to send mails using different mailboxes. The logged on user has the required rights to all those mailboxes. I have created profiles, where every given mailbox is the default mail box. So how can i switch those profiles and/or mailbo...
stackexchange/codereview
I'm working on a web service to read data from a 3rd party feed, modify it a little and store it, then return it to my clients. It only needs to update from the 3rd party site periodically. It will be running as a WCF service in a web role in Azure. At first I thought I would just always make a call to my parsefeed met...
stackexchange/codereview
When I try to check whether a string is an IPv4 address or not, I found out that the function gives the following results. 144.122.1 --> true 144.122.1.a -->false 144.122.1.333 -->false Any idea why the first one is true? The function is: sun.net.util.IPAddressUtil.isIPv4LiteralAddress
stackexchange/codereview
I have this small PHP/MySQL cart system that users add products to, checkout, and pay. These products all have IDs on them so that when the user checks out, I can get that product's attributes (price, weight, the vendor's account id, etc). Right now it would be really easy for someone to open up Firebug, guess anothe...
stackexchange/codereview
I would like to set some variables in my PHP document that get parsed through into the XSLT I am generating. I can set a parameter like this: $xp->setParameter($namespace, 'title', 'My title'); and echo it in my XSLT like this: <xsl:value-of select="$title"/> However, I would like to set the value of 'title' dynami...
stackexchange/codereview
say i have first.last or maybe Bob.Dylan Can i can break it apart? So i have $first and $last So the variable for first would be Bob. and the Variable for last would be Dylan. I was thinking php split but its DEPRECATED.
stackexchange/codereview
I am using cherrypy as a server. This server gives you ability to download .mp3 files. I am using the following code to make the .mp3 files downloadable. The problem is that the mp3 file that I get after downloading it is a data file which should actually be an mp3 file. import glob import os.path import cherrypy from ...
stackexchange/codereview
Don't know if this is possible. I'm using tinymce as a text editor and I want to allow user insert images. I achieved this, and tinymce inserts a tag with the proper src attribute. The problem will come if later, I decide to change the path of the image or change its name, the text will still point to old location. So...
stackexchange/codereview
The title pretty much sums it up. Now that we have List<T>'s why would anyone want to use an ArrayList instead? The only reason I can think of is if you are forced to use an old version of .NET before List<T> was implemented?
stackexchange/codereview
I'm developing a game server in python. Since this server is distributed to other people who don't have much coding experience(or common sense) I try to include any modules I can into a pre-reqs folder in the project, so users can run the code without installing things. I tried out python on my program, and noticed a s...
stackexchange/codereview
I am using Cocos2d for a CoreAudio project. This project previously run well without Cocos2d. I am getting erros when building that seem to indicate that my build does not tolerate C++files. I have tried to change the C++ file extension from ".cpp" to ".m". I was careful to select the GCC4.2 Compiler. But no luck. Her...
stackexchange/codereview
I've just created a SiteMap controller which generates a sitemap for my site. I'm trying to output the url of the products that I have listed throughout the site. In my products list view for example I have this code: Url.Action("Details", "Products", new { id = item.Id, productName = Url.ToFriendlyUrl(item.Brand + " "...
stackexchange/codereview
What real world applications are people using Clojure for? I use Groovy for glue stuff, Java for big systems, Python/Perl scripts for parsing and glue. I could see myself calling into Clojure from Java but I can't see where I would use it in its own right. It strikes me it would be easier to use almost any scripting l...
stackexchange/codereview
I were trying to make a macro for binding variable if it is unbind, else if it is binded than appending to its value (defmacro set-or-nconc (var &rest args) `(,(if (and (boundp var) (not (null ,var))) 'nconc 'setq) ,var ,@args)) The intended output wanted is (set-or-nconc i '(a b))...
stackexchange/codereview
(Related to a previous unanswered question I asked). I want to implement a function which can be called only with vectors of related classes as parameter. For eq if we have class A; class B: public A; class C: public A; class D then it should be possible to call function with vector<A*>,vector<B*> or vector <C*> bu...
stackexchange/codereview
I'm trying to create a jQuery plugin for a mobile website that turns a div container into a scrollable container. I accomplish this by wrapping all the children that are inside the div container in another div container thats absolutely positioned. Then I modify the top or left css styles of the inside div to simulat...
stackexchange/codereview
I am trying to train a Naive Bayes classifier with positive/negative words extracting from a sentiment. example: I love this movie :)) I hate when it rains :( The idea is I extract positive or negative sentences based on the emoctions used, but in order to train a classifier and persist it into database. The pr...
stackexchange/codereview
I would like to have a call that returns me a vector with the names of all function that I could call in the current R session. Does anybody know how to achieve this? (I would like to check user entered variables against this vector. We had some unforseen problem with users entering e.g., c as variable names) UPDATE: I...
stackexchange/codereview
I have a problem, in that I need to get a list of the files in a Directory. Using this previous StackOverflow question as a base, I've currently got this code: void get_files(int maxfiles) { int count = 0; DIR *dir; struct dirent *ent; dir = opendir(DIRECTORY); if (dir != NULL) { /* get al...
stackexchange/codereview
Got a Zend Framework web application using Doctrine 1.2 connecting to a MYSQL 5.1 server. Most data needs to be entered and displayed in local timezone. So following the advice here, I'd like (I think) to set PHP and MySQL to use UTC and then I'll handle the conversion to local time for display and to UTC prior to ins...
stackexchange/codereview
I am learning Linq. Most of the Linq examples available are in query expression format. To understand it better I would like to learn what a query expression looks like in dot notation or lambda syntax. Though I can translate the simple query expressions in dot format, I find myself wanting when the expressions grow co...
stackexchange/codereview
I have 2D closed vector paths, specified in SVG paths-like syntax - i.e. these paths include straight lines and various Bezier curves. Is there anything like a small, nice & discrete library (preferably in C, Java or Ruby, but any language will do if this library is clean and easy to use) that allows to do boolean oper...
stackexchange/codereview
I downloaded atomsite , opened it in visual studio, published it to somewhere c:\blog file systems then copied it to (c:\intepub\wwwroot\blog), then in IIs7, right click on blog , convert to application all done, but when i browse http://localhost/blog, it shows a blank screen.... what do i need more to start bloggi...
stackexchange/codereview
I have a console application and what I'm trying to do is that every time the appllication runs, the date and time is sent to a table within my database. The table structure is like so: FTPRuns ID int Last Run datetime Simple enough. I've updated the model.edmx within my application also to reflect this new change...
stackexchange/codereview
Basically, In any application for UI we have access control for various element. Say, I have a button to be visible to PM <logic equal=pm> TheButton </logic equal> <logic NotEqual=pm> TheButton=disabled </logic NotEqual> Now say there is one more condition say developer has different access. Since there is no AND i...
stackexchange/codereview
Panel pnl_Confirmation = (Panel)form1.FindControl("ConfirmationPanel") as Panel; pnl_Confirmation.Visible = false; I keep getting a "NullReferenceException" in the above code. "ConfirmationPanel" is a panel I show/hide depending on if the form is submitted successfully or not. The panel is wrapped in a LoginView ...
stackexchange/codereview
First of all my apologies to those of you who would have followed my questions posted in the last few days. This might sound a little repetitive as I had been asking questions related to -ffunction-sections & -fdata-sections and this one is on the same line. Those questions and their answers didn't solve my problem, so...
stackexchange/codereview
The situation is this: I have more than one remote repository - for reference, lets say that one is the "alpha" repository, and we have recently set up a new "beta" repository, which some users have migrated to. Both repositories have a "master" branch. How do I set up my local master such that it will attempt to autom...
stackexchange/codereview
ClassWriter cw = new ClassWriter(...); byte[] bytes = cw.toByteArray(); I would like to create new class instance from bytes array. How do I do this? Is it possible at all?
stackexchange/codereview
How to update binded to WindowsForms.TextBox.DataSource.. mmm.. data source on every TextChanged event (during typing)? That is useful if you want to update some "counters" or "error statuses" when you are typing. Sometimes ago I've used this code, but it looks too complex. May be there are other simpler solution? clas...
stackexchange/codereview
So here is portion of the array that i am trying to work with, it is pulled in from an xml file. Array ( [0] => Array ( [SKU] => 0016 [StandardProductID] => 32109876453210 [Condition] => NEW [ItemPackageQuantity] => 1 [Currency] => GBP ...
stackexchange/codereview
Can someone explain in simple terms what is Key-Value-Coding and Key-Value-Observing? Please don't provide links to Apple Developer's reference Document. I have gone through them. I expect an explanation in very simple terms.
stackexchange/codereview
I want to open popup in full screen from javascript in IE7 & IE8. Basically I am using window.open('default.aspx','OnlineTest','scrollbars=yes,resizable=yes,fullscreen=yes'); this not working. Plz help
stackexchange/codereview
I have two matrices (A and B), 2-dimensions. And i think i'll speed up a bit if instead of putting it into global memory and access via pointers, i put them into textures 2d and use it. The matrices aren't that big, and different positions are read by different threads. So right now my code is using global memory, and ...
stackexchange/codereview
I have a model with a FileField. I want to unittest it. django test framework has great ways to manage database and emails. Is there something similar for FileFields? How can I make sure that the unittests are not going to pollute the real application? Thanks in advance PS: My question is almost a duplicate of Django t...
stackexchange/codereview
I've tried a lot to implement a validation inside a MultiActionController and it seems it's not plain sailing. I need to validate a form and, in case of failure, I want to redirect to the same form, displaying the errors and also being able to load some info from a database. So basically I have this: @RequestMapping("...
stackexchange/codereview
I need to pass a DataTable into a stored procedure in MS SQL 2008 to insert multiple rows into a table at the same time. I have come across methods that use XML documents for this and even passing lists as image data. What is the best way to accomplish this? Give code samples and/or references if possible.
stackexchange/codereview
We've been having a discussion in our office as part of an upgrade of an old application from VB6 to .Net 3.5 about how best to approach logging. The old system used local log files, the path for which was contained in the registry (with a default should one not be specified). Most of us are now leaning towards using t...
stackexchange/codereview
this is my code: <div contenteditable=true style="position:absolute;top:300px;width:200px;height:300px;background:red;color:black;"> ddwwwwwwwwwwwwwwwwwwwww </div> i use contenteditable=true to make the div editable, but it also can resizeable and draggable on firefox , so how to make it not resizeable and d...
stackexchange/codereview
I am trying to parse the arguments in the command line using switch and getopt(). The structure is very easy: I have a makefile, a .c and a .h file. This is the first time that I am using switch, so I might be doing some basic mistakes. I have used this link as my guide to switch link text and link text If you see any ...
stackexchange/codereview
I've done a couple of integrations that are similar. In one, I was taking product data from one system's database, formatting the product data to work with another systems database and then import those products into that system. In another, I was taking users from one systems database, formatting them, and then import...
stackexchange/codereview
I have a module load a file by its path, However I find it is slow. I want to accelerate it, Is there any technology in Windows to create a virtual memory file for the module? Many thanks
stackexchange/codereview
When does the compiler choose ldloc or ldloca? My guess is that it chooses ldloca for interfaces and valuetypes. But is that it? Does it choose it for other things too?
stackexchange/codereview
I have a dynamic page where clicking a link triggers some javascript that sets some page elements to display:none, and thus changes the height of the page. The typical browser behavior for this is that the scroll position from the top of the page is retained. I want to retain the scroll position from the bottom instead...
stackexchange/codereview
I am using backtrace to get the information from where the exception is thrown. In the constructor of my exception, I am storing the backtrace in a std::string, and in the catch block for exceptions of this type, I am printing this backtrace. But I was wondering, is it possible to somehow get the same backtrace in the ...
stackexchange/codereview
I have a list of Objects on which I use dynamic LINQ to perform sorting. The object is like this, public class SampleDTO { public string Vendor { get; set;} public string Invoice { get; set; } .. .. } And I use Dynamic Linq library to sort this, var list= new List<SampleDTO>()...
stackexchange/codereview
I am using an Asp.Net MVC PartialView page that supposed to make a call to a Server Action every 5 seconds. This is the action procedure (note it returns null): public ActionResult StillOnline() { // bla bla bla return null; } This is the HTML javascript that supposed to call that procedu...
stackexchange/codereview
In my android application i would like to have bitrate shifting between 2G and 3G. i have found connectivity_Action method in connectivity manager to know if the connection is changed. Please let me know if this event will be called whenever there is a change or do we have to set any timer for the check. Please let m...
stackexchange/codereview
I'm very new to this. Why is openssl_pkey_new() returning false? I am using XAMPP and there is a an OpenSSL under the Apahce\bin directory. What obvious beginner mistake am I making? Maybe it's a matter of SSL configuration? My goal is to write the two keys into two files. Update: as suggested, I used openssl_error_s...
stackexchange/codereview
I can't work out how to get rid of the margin around a button's content. Here is some example XAML: <Button Background="Red" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"> <Grid Background="Blue" Margin="0"> <TextBlock Text="me" Padding="0"></TextBlock> </Grid> </Button> I can...
stackexchange/codereview
I have some templates written with Smarty 3: A layout page An index page An include page layout.tpl: {block "css"}{/block} {block "js"}{/block} {block "content"}{/block} index.tpl: {extends "layout.tpl"} {block "content"} content text {include "include.tpl"} {/block} include.tpl {block "js" append} include some ext...
stackexchange/codereview
I have created an iPhone application to record our voice. When I try to record, I am getting error message in following statement. recorder = [[ AVAudioRecorder alloc] initWithURL:url settings:recordSetting error:&err]; Error Domain=NSOSStatusErrorDomain Code=1718449215 "Operation could not be completed. (OSStatus er...
stackexchange/codereview
I hope you can help me. I am a Haskell noob after years of imperative languages so if I'm making a stupid mistake, please explain it so I can learn. I have the following data type: data DicomSopInstance = DicomSopInstance { sopInstancePath :: String, sopInstanceUid :: String, sopInstancePk :: Int64, seriesFk :: Int64, ...
stackexchange/codereview
When using LTPA basic authentication with WebSphere 7 if a password is incorrect an exception is thrown thus: [11/24/10 14:51:44:405 CET] 00000011 exception W com.ibm.ws.wim.adapter.file.was.FileAdapter login com.ibm.websphere.wim.exception.PasswordCheckFailedException: CWWIM4512E The ...
stackexchange/codereview
We have svn+ssh setup on non-standard port. We added svn+ssh credential in Hudson, when it asked us. Ordinary build goes fine, without any problems: Started by user anonymous Checking out svn+ssh://xxx:22222/usr/local/svn_repo/repo/project/trunk A pom.xml U . At revision 485 However, when we try to "Per...
stackexchange/codereview
Because of the performance issue, I try to initialize my mapview in multithread. it works perfectly in iOS4.1 or below version.. however today some users send me emails that they got problem with the map. and I got this message: Terminating app due to uncaught exception 'NSRangeException', reason: '<MKMapView: 0x643cd...
stackexchange/codereview
I wonder what the idiomatic/builtin/fastest way is to do this: I get numbers as a string of characters, they look like: 0012345 or 001234p Strings that end with letters represent negative values. The scale is available separately. Depending on the scale info, the first could be what we'd normally write as 1234.5, .0...
stackexchange/codereview
If I call a (generic) varargs method with objects of different classes, I get an interesting warning: List<?> result = Arrays.asList("1", 1); A generic array of Object&Serializable&Comparable is created for a varargs parameter I can get rid of the warning by casting to a common interface or class, List<Serializable...
stackexchange/codereview
I got this Text box with default value as "First Name" ..Now when I click inside this text box to enter name , this value "First Name" keeps on displaying. What I want is to the text box to clear as soon as I click inside it. What property do I need to set in mt textbox tag ? [Edit] ok anything from Telerik that I can ...
stackexchange/codereview
I am trying to get my site uploaded to my host and have been getting this error when navigating to the domain url. "Invalid loadConfiguration() SQL query!" I believe the problem is the configuration.inc.php file the following part in particular /* Load all configuration keys */ Configuration::loadConfiguration(); I ...
stackexchange/codereview
We have been trying a prototype of a scheme where we encrypt decrypt data between two systems: One in .NET and the other in Java. We were going to use simple 128 bit AES Encryption. The problem I am facing is trivial, but I cannot find a proper solution. Maybe my understanding of AES or Encryption in general is less. A...
stackexchange/codereview
I am trying to figure the best way to login via php command to a remote server and run a command to convert a FLV file into an MP3 (and then possibly moving it to the local server)? I can always move the file later but I need to do it in this order as the remote server hosts ffmpeg. Using this will do it locally: exec(...
stackexchange/codereview
I am using java based UDP sockets to communicate with a 3G module; but the port (and sometimes the IP address) of the received packet changes every time, which is very surprising. This indicates that i can't assign a fixed IP/Port to the 3G module and communicate with it, but only rely on the incoming packets to get th...
stackexchange/codereview