instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am new in Android and i am working to make an on-screen keyboard which can be visitable via arrow(direction) keys of my external keyboard. I mean i wanna move left, right, up and down in the on-screen keyboard's UI (keys) with pressing arrow keys from my external(hardware) keyboard. The key that cursor is on should b...
stackexchange/codereview
I am not able to find the file where the entry get saved that which controller is for which view. i am facing a issue that i have created a controller and then right clicked on it and generated a .ascx user control. but it generates it in HOME directory but when i move that .ascx to shared folder its not link with con...
stackexchange/codereview
I have a issue designing am asp.net site. The problem is that I want to have a search component that searches article titles. Also I want to catch closely words. Since there are tens of thousands of articles I cannot run SQL directly. Can you give me a hint... or some good articles how to design a search component? ...
stackexchange/codereview
I have a big site with lots of .html files, and I want to start using PHP in my pages, but I don't want to change the links to .php . I read on Apache servers you can add a rule to the .htaccess file that will allow PHP parsing in plain .html files. Is this possible in IIS?
stackexchange/codereview
I'm currently making a code that creates an Excel using Java jxl. I've encountered no problem as long as the formula I'm using exists. The problem is, I need to input a formula which excel will not be able to find because we use a special excel to read it. I need my code to retain the invalid formula instead of writing...
stackexchange/codereview
The question says it all. Is there a way to browse for website links such that, upon selection, it'll return the URL string from the dialog?
stackexchange/codereview
I have written a program which sends more than 15 queries to Google in each iteration, total iterations is about 50. For testing I have to run this program several times. However, by doing that, after several times, Google blocks me. is there any ways so I can fool google maybe by adding delays between each iteration? ...
stackexchange/codereview
can anyone tell me the error in this java declaration String[][] t=new String[15][15]; this works fine and if i use String[][] t=new String[][]; because i need to declare the variable t as dynamic as i am not sure how much values i am going to store in t.
stackexchange/codereview
I have a basic search page that replaces html in a div with the search results. Clicking on one of the search results brings up a detail page. And I have a link on that detail page that says "Go back to search results". My problem is that it just generates a link to the root_url. Is there a way I can generate a valid ...
stackexchange/codereview
Is it possible to use different Oracle schemas in Crystal Reports and change between them at runtime? I have a report that uses three tables. The report was created using one database user schema. In the other schemas that I have to use, the names of the tables are the same. I need to change between them at runtime. D...
stackexchange/codereview
Hey, I'm learning C# and just thought of a cool idea. Considering that a game was simple enough. Say, a remake of a classic text-entry style game, a C# game could theoretically be ported to all of the platforms I listed above, with little to no change of the original source code, correct? Obviously the UI would have ...
stackexchange/codereview
I'm trying to optimize a query that takes way too long to run as it is. It seems to be stuck in Sending Data a lot and takes about half an hour to run. $campaignIDs = "31,36,37,40,41,42,43,50,51,62,64,65,66,67,68,69,84,338,339,355,431,505,530,549,563,694,752,754,755,760,769,772,777,798,799,800,806,816,821,855,856,94...
stackexchange/codereview
While I drag an uiimageview, the center is positioned at clickpoint..I am using the following code imageView.center=[[touches anyObject] locationInView:self.view]; so the mouse jumps to image center even I drag at the corner. How can I make the mouse to position at clicked position of the imageview.??? Thanx in adv...
stackexchange/codereview
I have problems including a facelet template. I wanted to split some content up, so that I can reuse it somewhere else. So I changed this code: <!DOCTYPE html> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://...
stackexchange/codereview
I need to check data produced in the data warehouse back to source each day. The data warehouse is data in SQL Server, the source data is in Oracle. When I get to work each day, I run my set of queries in SQL Developer to get records of my expected results from source. At the same time, I kick off my second set of q...
stackexchange/codereview
I need onftenly to serialize big objects to bytes. So it is necessary to have fast serializer for it. Is there is any variants which perform better than java default one?
stackexchange/codereview
I am trying to put a check box list in a table cell. I am generating all this dynamically at server side. Now i want to include a select all option above the check box list to select all the options and it should deselct all the options if unchecked and also if one of the options is unchecked it the check mark from sel...
stackexchange/codereview
It doesn't have to be uncrackable, just enough to dissuade casual attempts at hacking. FOSS - usable in commercial projects. Limit number of consecutive sessions. I have my own ideas as to how to code it simply. But why reinvent the wheel? Edit: To limit the number of consecutive session I was thinking of a simple co...
stackexchange/codereview
i am reading this article http://manas.tungare.name/blog/howto-setup-webdav-on-mac-os-x-leopard-for-syncing-omnifocus-to-iphone/ and it says how to setup a webdav but its doing it through the web sharring routh throuhg mac options but i have mamp setup and i was following along until i saw the alias setup of this folde...
stackexchange/codereview
Could some one show me how I can make a DNS request to a particular DNS server and get the response as well as the response time? I intend to use this in an signed applet. Is this allowed in an applet?
stackexchange/codereview
So I was trying to append a newly created post to the list once a user hits the submit button. However, the list will not be updated until I refresh the page, so I guess the problem must come from my javascript code. In index.html.erb I put this line: <div class="posts"> <%= render :partial => 'post', :collection=> @...
stackexchange/codereview
Here is an example of $_POST data from paypal's IPN: cmd=_notify-validate &test_ipn=1 &payment_type=instant &payment_date=18%3A49%3A30+Nov+01%2C+2010+PDT &payment_status=Completed &address_status=unconfirmed &payer_status=unverified &first_name=John &last_name=Smith &payer_email=buyer %40paypalsandbox.com &payer_id=TES...
stackexchange/codereview
I'm working on a board game to get a grip on WPF and I'm stuck after trying the whole night to get this part working. The following code belongs to the 'House' user control and works just fine on the designer. I can select the 'house' object and change the HouseType property on the property grid and see the desired eff...
stackexchange/codereview
I'm completely new to Python and I've been trying to make a fibonacci program with it. def fib(n): print 'n =', n if n > 1: return n * fib(n - 1) else: print 'end of the line' return 1 n = raw_input('Input number: ') int(n) fib(n) When I try to run this program, I get the following err...
stackexchange/codereview
I am trying to install Tk-ExecuteCommand package which i downloaded from CPAN. While installing i am getting this error. sait109@debian:~/Desktop/Tk-ExecuteCommand-1.6$ sudo make make: Warning: File `/usr/lib/perl/5.10/Config.pm' has modification time 2.3e+07 s in the future Makefile out-of-date with respect to /usr/li...
stackexchange/codereview
I have an asp:wizard control that contains five WizardSteps. All of these steps have form controls, and most of these controls have validators. When the user steps through the wizard with the next and previous buttons everything is working great, and validation triggers as it should. However, if the user chooses to nav...
stackexchange/codereview
I use Visual Studio 2008 Professional with .NET 3.5 SP1 installed. It is not showing Entity Model when I select "New Project". The MSDN links show that it was included with .NET 3.5 SP1. Why it is not appearing on my VS 2008?
stackexchange/codereview
Given this sql schema: create table [dbo].[Courses_Students] ( [DummyColumn] [int] null, [CourseId] [int] not null, [StudentId] [int] not null, primary key ([CourseId], [StudentId]) ); How do I define the composite primary key and the additional columns in the EntityConfiguration?
stackexchange/codereview
I've created a VB.Net application that starts by creating an Outlook application object. I've since created multiple profiles on my PC but can't see any obvious methods to choose a certain Profile when opening the Outlook application programmatically. I was expecting this line Dim oa As New Microsoft.Office.Interop.Out...
stackexchange/codereview
public static String openAssetFile(Context ctx) { BufferedReader br=new BufferedReader(new InputStreamReader(ctx.getResources().openRawResource(R.raw.hung))); String readLine; String sout=""; try { while ((readLine = br.readLine()) != null) { sout+=readLine; } } catch (IOException...
stackexchange/codereview
Which of the 2 methods is theoretically faster and why ? (The pointer to string must be constant.) What is the exact difference between destination[count] and *destination++ ? Does destination[count] keep moving from 0 to count on every call ? Does *destination++ just add 1 on each call ? char *const string = "Hello wo...
stackexchange/codereview
Is there a way when clicked on a button in a C# Windows App, that it can fire off a stored procedure to update data? Im also having issues seeing the SP in my data sources, first time this has ever happened to me. Amy ideas on these things? Should I use an SSIS instead, is that even possible? Thanks ALTER PROCEDURE db...
stackexchange/codereview
What does it mean when you add the static keyword to a method? public static void doSomething(){ //Well, do something! } Can you add the static keyword to class? What would it mean then?
stackexchange/codereview
I'm trying to come up with the correct url-encoded info hash to send to the tracker in order to get the peers list. For testing, I tried parsing the torrent in this url. After opening the file, manually cut the info dictionary piece and SHA1-hash it's value I get this binary value: <<84,124,15,255,155,171,156,168,91,46...
stackexchange/codereview
I would like to add a page to an existing PDF document containing simple text. I have tried the following code that I found on the internet, but so far I haven't got it to work: PdfReader reader = new PdfReader("1.pdf"); Document document = new Document(reader.GetPageSize(1)); PdfCopy copier = new PdfCopy(doc, new File...
stackexchange/codereview
I have setup NSCopying and I can copy an array successfully. theArray = [[NSMutableArray alloc] initWithArray:results.availableData copyItems:YES]; When I am finished with theArray and all its data is junk I would like to get another fresh copy of the data from results.availableData array. Whats the best and safest w...
stackexchange/codereview
Looking for proper regular expression syntax to use in Xcode’s "Project Find" to get all occurrences of "nslog" but not "//nslog". Can do each search independently but not sure how to "chain" them.
stackexchange/codereview
In a tab bar application with a UIWebView for each tab, I want to show a loading screen that is displayed in webViewDidStartLoad and then gets hidden in webViewDidFinishLoad. Right now I have a UIView in every nib file, but I was wondering what could be a better way to reuse just one UIView. Thanks!
stackexchange/codereview
I'm trying to come up with a dictionary-like data structure that I can use in Erlang. The goal is to guarantee that all the values, as well as the keys, are unique. I can do it with explicit consistency checks after every modification, but I'm hoping there's an obscure type that does this for me. Is there one? If not, ...
stackexchange/codereview
Okay I have list items, some have a span, some not. On my event I want to add the span when they don't have any yet. has() works fine, but not() adds the span to both?? HTML: <ul> <li> <p>item</p> <span class="spn">empty span</span> </li> <li> <p>item 2</p> </li> <ul> <hr> <a cla...
stackexchange/codereview
When using Safari at a place with a captive portal like Starbucks, iOS devices will launch a special modal webview to authenticate with the portal. I've seen third party apps trigger this so it's possible to do outside of Safari but I don't know how. It doesn't seem to come for free just by using Reachability or making...
stackexchange/codereview
The US date used to be accepted/parsed correctly, but not anymore in Rails 3. The %Y-%m-%d is accepted but not %m/%d/%Y. g = Grant.new g.budget_begin_date = '12/31/2010' #g.budget_begin_date returns nil g.budget_begin_date = '2010-12-31' #g.budget_begin_date returns Fri, 31 Dec 2010 00:00:00 UTC +00:00
stackexchange/codereview
I have a piece of jQuery code which - in theory - scrolls down to a specific part of the window depending on what's after the hash in the URL tag (myaddress.html#wheretoscroll). The code called is this: $(document).ready(function() { anchor = unescape(self.document.location.hash.substring(1)) if (anchor) { ...
stackexchange/codereview
Java Socket Server I have a Java process that is creating a listener on a TCP Socket using java.io.ServerSocket something like this (simplified): ServerSocket server = new ServerSocket(4444,20); server.accept(); The Java Process Fires off a Worker Thread when a Request Is Received and the Worker then sends a JSON st...
stackexchange/codereview
For example I have the following: struts.xml: <action name="personForm"> <result>/jsp/personForm.jsp</result> </action> <action name="savePerson"> <result>/jsp/successSave.jsp</result> <result name="input">/jsp/personForm.jsp</result> </action> <action name="countries"> <result>/jsp/countries.jsp</resul...
stackexchange/codereview
I have two functions that start pretty similarly. Hence I wonder if this is the right moment to dive into inheritance in R. firstfunc <- function(table,pattern="^Variable") { dframe <- get(table) cn <- colnames(get(table)) qs <- subset(cn, cn %in% grep(pattern, cn, value=TRUE)) ..... } secondfunc <- function(...
stackexchange/codereview
I have just converted my c# code to vb.net. And it is giving exception. c# code : private static short[] muLawToPcmMap; decoded[2 * i + 1] = (byte)(muLawToPcmMap[data[i]] >> 8); vb code : decoded(2 * i + 1) = CByte(muLawToPcmMap(data(i)) >> 8) Exception : Arithmetic operation resulted in an overflow. I am in very m...
stackexchange/codereview
I try to retrieve a text file using ftp_get() and when I execute the script I get warning: ftp_get() [function.ftp-get]: Can't open data connection Can some one give some clue what is wrong. This was working on my previous hosting/server since I moved it it broke. Are there some specific PHP configurations. I checked...
stackexchange/codereview
I have an XML document that has nodes in it that look like this: <Variable name="var1" dataType="INT32"/> <Variable name="var2" dataType="INT16"/> <Variable name="var3" dataType="INT8"/> I can loop over the variables and display the name and data type just fine, but I'd like to display the size of the variable, as wel...
stackexchange/codereview
I want to take strings like: Submit Changes Create New Update Record Save Item and convert them to: Submitting Changes Creating New Updating Record Saving Item with a function like: var ConvertToProgressivePresent = (function(){ // cache this regex var rProgressivePresent = /\b(?:(Submi(t))|(Creat|Sav|Updat...
stackexchange/codereview
So I've been reading through Javascript - The Good Parts and one thing that Crockford points out is the use weakness of global variables in Javascript, in such a way that if your product is expanded in some manner, and it relies on a 'global' variable it could be inadvertently set. That's all good and fine and I unders...
stackexchange/codereview
I am working on patching the Zoidberg Perl shell to fix some errors that modern Perl versions throw when testing. Note, I am not the original author nor am I criticizing him. I came upon an interesting problem that I would like a little history on. The code below takes an array of inputs and for each strips off and en...
stackexchange/codereview
It seems that my understanding of MIPS fails me. What I need to do is create a program that reverses a string input from terminal, using a stack, but without using $sp. Is there anyone here that knows MIPS? Register usage t0 - theString address start t1 - stack address start t2 - temp for retrieved character t3 - count...
stackexchange/codereview
I have two select boxes, the second of which is populated once the first has been chosen. Currently I use $('#category').live('change', function() { }); which changes the 2nd box after the user has made changes to the first. The problem is, if I load a default value into the first box, the 2nd box isn't populated beca...
stackexchange/codereview
I am currently using Jersey Framework (JAX-RS implementation) for building RESTful Web Services. The Resource classes in the project have implemented the standard HTTP operations - GET,POST & DELETE. I am trying to figure out how to send request parameters from client to these methods. For GET it would be in the query ...
stackexchange/codereview
Is there any possibility of me hyperlinking a specific part in a html page. Suppose i have a big image, When i click on the left side i would like to hyperlink it to a partcular image and when i click in the middle to another and on the right. I want to do this without cropping the image into 3 parts. any idea how thi...
stackexchange/codereview
I've been learning Java for the last 2 months with a Core Java book. Now I want to write something real, but at first I decided that I need to improve my knoweledge about algorithms and data sturctures so I'm currently reading a book on that. I want to join an open-source project which is mature enough to learn from i...
stackexchange/codereview
Is it possible to share on-disk data between iOS applications, or are they truly sandboxed? In other words if I wanted to make a shared repository of data to be accessed (and/or modified) by one or more of my apps, could it be done? One of the listings on the iOS features page is "Share Data Among Apps", but is this wh...
stackexchange/codereview
I know I can use NSLocalizeableString() for strings. But how about about other kinds of resources? I guess there are some kind of language folders where I put that into? Is there an good blog article that describes this?
stackexchange/codereview
I have an image icon in an HTML page that should show right to a label only when some condition is true. If the condition is false, it should not show, but it should still take up the same space. I'm sure most of you have done something like this and I got a couple of solutions. Put the img tag as usual but add to its...
stackexchange/codereview
This question got me thinking about how one might go about doing the relatively undoable: seamlessly integrate server-generated HTML from ASP.NET with client-side control via javascript. Sure, you can always use javascript/jquery/libraries to create the same display client-side. But much of the time, it's easier to do ...
stackexchange/codereview
I'm having the following design for my hibernate project: @MappedSuperclass public abstract class User { private List<Profil> profile; @ManyToMany (targetEntity=Profil.class) public List<Profil> getProfile(){ return profile; } public void setProfile(List<Profil> profile) { this.p...
stackexchange/codereview
I have a several command objects of the same type to bind, each of which represents a row from a form. How do I bind these in an annotation based controller? How do I access them on the JSP?
stackexchange/codereview
In MXML-based apps, you set the target framerate for the app and I believe this is a core part of Flash as well. Two questions... In many games you want the game to run as fast as it can for graphical smoothness, with some upper cap like 50-100Hz. How can you have variable framerates in Flash, or is it really not how ...
stackexchange/codereview
I need to use VBA from Excel to load an Excel workbook in access and transfer it out to a database. Dim acc As New Access.Application acc.OpenCurrentDatabase "C:\Test.xls" I got that far and Excel crashes and has to restart. My plan was to use the following but I can't get that far. acc.DoCmd.TransferDatabase Any id...
stackexchange/codereview
To all the .NET experts, I have a question for you. I need to do SOAP/HTTP over named pipes on Windows, in C#. (This is for a client talking to a Python library/server using SOAP for RPC. Using socket/port was deemed both insecure, and port configuration becomes a hassle.) There are two problems. There is an Http...
stackexchange/codereview
I have an MVC 2 app that has a System.Timers.Timer object starting up during Application_Start in global.asax. One of the things this timer needs to do is generate a daily e-mail to users when they have an item to review in their work queue. Inside the e-mail is a link back to the item to review. In code I have runni...
stackexchange/codereview
I am in the process of working on a perl script that will connect to Gmail and download all the emails. Do keep in mind that I'm only concentrating on connecting to Gmail at the moment, so the script is only set up to cycle through some folders for now. This is what I have so far: #!/usr/bin/perl use strict; use w...
stackexchange/codereview
I need help with a pretty basic Postgres command, but I cannot find a reference anywhere. My cluster is set up like this: database_1 \- schema_1 \- schema_2 \- relation_1 \- relation_2 \- ... \- relation_3 \- relation_4 \- ... I know how to list databases (\l), and I know how to ...
stackexchange/codereview
I'm building a DataTable dynamically and I'm trying to add a "link" in the DataRow(s) that I'm adding to the DataTable. The DataTable is bound to a GridView after it's creation. Something like that : DataTable dataTable = new DataTable(); foreach (Item item in items) { DataRow row = dataTable.NewRow()...
stackexchange/codereview
Before I ask the question I realize I may not be using the full potential of simplemodal, so bear with me please. I have the following modal dialog in my HTML: <div id="confirm_delete_role"> <h1>Are You Sure You Want To Proceed?</h1> <div id="confirm_parameter_role"></div> <p class="right_button"><a class="ui_...
stackexchange/codereview
on form load, my datagridview display a datatable. once the user clicks the delete button, it deletes one of the rows in the data source: private void btnDelete_Click(object sender, EventArgs e) { Int32 selectedRowCount = dataGridView1.Rows.GetRowCount(DataGridViewElementStates.Selected); ...
stackexchange/codereview
I need help getting my headers correct for an azure table storage request from an iPhone app. I've been using these two posts to try and get the encryption of the key right but I'm still having trouble: iPhone and HMAC-SHA-1 encoding Objective-C sample code for HMAC-SHA1 The service is returning an error for my request...
stackexchange/codereview
I use Latex, document class is book. After each chapter, there is a page with page head and foot, and also a strange symbol on it, and the rest is blank. Then after this page a normal blank page is generated. Has anyone ever encountered such problem? How can I get rid of this "non-blank" blank page? Thank you very much...
stackexchange/codereview
I need example code or even a 3rd party object that will allow me to get to an excel object embedded in a word doc. I have already tried Aspose and they do not have the capabilities yet. Has anyone done it or do you know of a 3rd party object that will?
stackexchange/codereview
Let's say you are planning to design a hash function which will generate keys between 0-256. Will using first 2 digits of MD5-digest be a great idea for a uniform distribution? What do you think on this? Is it expensive to md5() some word (2-10 letters)? I know it is a rough definition of requirements but it would be g...
stackexchange/codereview
I created a TabPanel on my aspx file. In my code behind, I dynamically create: the tabs inside it and also an HtmlEditor in each Tab. I also create a listener on each tab, so that when they get activated or show, the HtmlEditor in that tab get the focus. When i execute the program, I see that the tab have been created ...
stackexchange/codereview
Trying to update multi PivotTables by changing the date on another sheet. I can do this if I use a range on the same sheet by using ActiveSheet.PivotTables("PVT1").PivotFields("Month").CurrentPage = _ "11/1/2010" and change it to ActiveSheet.PivotTables("PVT1").PivotFields("Month").CurrentPage = _ Range("C1")...
stackexchange/codereview
Lots of people recommend to wrap the MVC JsonReturn result in a textarea to play nicely with jquery forms etc. That part makes sense but how do I get the json object back in my client jquery code? The client jquery plugin should look something like this: // Doesn't work since data is "<textarea>{"error":true,"msg":"fo...
stackexchange/codereview
I'm trying to generate a properly formatted json object to use in javascript. I've tried simplejson.dumps(string), but it behaves differently on my local machine (in the python shell) vs. on the server (running google app engine). For example, locally i'll get: >>> s= {u'hello': u"Hi, i'm here"} >>> simplejson.dumps(s...
stackexchange/codereview
I have an ASP.NET MVC2 application that is maintaining a library of about 10GB of images. Many of these are customized by the application. We had been storing these in SQL but for a number of reasons, we are moving our images to the file system. The file system vs SQL issue aside, should I be serving up my images throu...
stackexchange/codereview
If I call CFUserNotificationDisplayAlert() to display an alert box, it prints the following message in the console: CFUserNotificationDisplayAlert: called from main application thread, will block waiting for a response. I don't want this message printed. Is there any way to disable it? Or, is there a better way to go...
stackexchange/codereview
With this code: $a[1]=1; $a[2]=& $a[1]; $b=$a; $b[2]=7; print_r($a); I was expecting output to be 1 because $a is not assigned by reference to $b ($a = & $b) but it comes out to be 7. Why?
stackexchange/codereview
i need some help with switch/case statement syntax im trying to use onClick to have different buttons do different things i have the first one working it just uses an intent to start a new activity. for the next button, i want it to open a specific url looks like this so far public void onClick(View v) { switch (v....
stackexchange/codereview
I'm having an issue with MSBuild 4.0 not resolving a path correctly in one of my imported MSBuild files. ProjectOne.csproj at the very beginning of the file imports GenericProject.proj. GenericProject.proj then goes on to import the ProjectOne.settings file when it needs it via a call structured like: <Import Project="...
stackexchange/codereview
I realize this is a popular topic, and I've searched through many posts here but haven't found anything that has helped my issue. I'm a beginner, for what it's worth (as you'll see by my question :-) My app has a tab bar with 3 items. The first loads a UINavigationController that is intended to have 3 "screens" to dril...
stackexchange/codereview
On my site I've implemented Facebook login button and it works well on all browsers except IE. Not sure why on IE it doesn't work well. You can see it broken on the main page of my website http://colnect.com with the following Javascript error: Message: Unknown runtime error Line: 43 Char: 729 Code: 0 URI: http://conne...
stackexchange/codereview
I know the exact sequence and length of my TrueCrypt partition's password, but I can't recall which characters are up-shifted via the Shift key. I wrote a perl script (like CrackTC) that simply tries all passwords from a file but I'm seeking an algorithm to generate the password file quickly. The password is 42 chara...
stackexchange/codereview
I have a function mainFunc which needs to call a several times another function process. A process has a lot of arguments but mainfunc in different calls change only two of them/ Instead of another it passes local variables which are defined and assigned before this calls to process. So I wrote a simple macro which sub...
stackexchange/codereview
I am making my PM system and I would like to invert so you can see the dialog between you and who you are messaging with.. So if you have pm'ed with eachother previously, it will show under. Here's an example where I am "Pat", and im about to answer the last pm I got from Diana: ***TEXTFIELD*** Yes okay, ill be there a...
stackexchange/codereview
Looking for something like this: http://min.us - where user can easily drag'n'drop images onto the page, and there is a listener that takes them, does something with them (uploads to server). Does there exist an easy jquery plugin for that? Or is this way complicated?? Thanks! Maybe HTML5 has a drag'n'drop listening ...
stackexchange/codereview
I am dealing with large integral numbers in my script and I want to format the numbers into strings using the 'K', 'M' and 'B' postfix chars to denote scale of thousands, millions or billionsб respectively. Rather than rolling my own function, I wonder if there is an built-in function that either does this "out of the ...
stackexchange/codereview
I'm using the "shade" Maven2 plugin to build a monolithic JAR with all Java dependencies bundled together. The relevant section in pom.xml is pretty straightforward: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.4</version> <executions> ...
stackexchange/codereview
When I run a query in Toad, sometimes it splits the output into blocks. How do I get the whole dataset as a single set?
stackexchange/codereview
first of all, I'm sorry for my English I am doing some scripting in Python using Selenium RC. The aim is to access to some website, and download some files I would like to know, at the end of the script, what files exactly have been downloaded At that moment, I'm doing something a bit naive, which is checking the new f...
stackexchange/codereview
i use jquery calendar in a page. i used a common settings for all the dates such as dob, date of join, married date, order date etc. Now i want to set some additional settings for some dates, such as dob should not take future value. So i want to use the general settings and additional seetings. I keep the general sett...
stackexchange/codereview
can someone please refresh me how I can programatically set the background image of a picture box? Thank you very much!
stackexchange/codereview
i am very new to this can any1 tell me the difference between them
stackexchange/codereview
I've a ListView that can have 0 custom items inside (like "My Downloads"). Is there anyway to show a default text "No download yet" ? Thanks ! EDIT : here is my solution, TextView emptyView = new TextView(getApplicationContext()); emptyView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PA...
stackexchange/codereview
I am using an Android Intent with ACTION_SEND and EXTRA_STREAM to share a generated PNG via a ContentProvider. This works perfectly for e-mail/GMail, Flickr, MMS, etc. but doesn't work if I select Bluetooth from the activity chooser dialog. The device is an HTC Legend running Android 2.1. The device is able to share ...
stackexchange/codereview