instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
If class A extends class B and class B has already implemented the Cloneable interface, then is it necessary for class A to declare 'clone() throws CloneNotSupportedException'?
I guess it should not be mandatory, as the property to clone objects of class A would automatically be inherited from class B.
| stackexchange/codereview |
i've a string like1.00E+4
Is there any built in function to convert this string to 10000.(Integer convertion [1.00E+4=10000]).?
Now i'm using regular expression for this kind of strings
| stackexchange/codereview |
Hopefully this is just a quicky....
I have a form to edit a product and each product belongs to a category.
In the form_for(@product) I can populate a select box for the categories in a couple of ways:
<%= f.select :category_id, Category.find(:all).collect{|c| [c.category, c.id]}, :prompt => "Pick a Category" %>
or:
<... | stackexchange/codereview |
I'm reading Apple's documentation on using QTKit to capture streaming audio and video from input sources. I read that the central class QTCaptureSession handles the input and sends it to every possible output (QTCaptureOutput). The documentation lists six subclasses of QTCaptureOutput (e.g., QTCaptureMovieFileOutput).
... | stackexchange/codereview |
I have a variable defined as
define dbs '&1'
Suppose I pass database1 as an argument. Then the statement is interpreted as
define dbs database1
I want to append single quotes around the string, ie I want it to be interpreted as
define dbs 'database1'
How should I do this?
| stackexchange/codereview |
I have a simple sinatra app that uses haml and sass for the views. One of the views (located in the views folder) is a partial for my navigation menu. I am trying to render it from index.haml but I get the following error: wrong number of arguments (1 for 2)
I am trying to render it with the following lines in index.ha... | stackexchange/codereview |
I have read the documentation but I don't understand.
Why do I have to use distutils to install python modules ?
Why do I just can't save the modules in python path ?
| stackexchange/codereview |
I have couple FlowPanels related like pages in a book, when i click the 'next' button it will go to the next page, which is flowPanel too. on one of the page, it have lots of widgets, from previous page to this page, it always goes to the bottom of the page not the top. how can i make it show the top of the page instea... | stackexchange/codereview |
I have several WCF wsHttp services using Transport security over an SSL connection. Presently I use "Windows" for the clientCredentialType and all has worked fine with exception of one scenario where my e-commerce site (its own SSL) had a problem communicating with the other server via SSL and I had to create a separa... | stackexchange/codereview |
How can you generate a unique value for a field that matches a concatenation of certain fields and a random number
i.e.
First Name: Jim
Last Name: Jones
Field Value: jimjones0345
obviously there's a need to ensure that this value was not populated before. How would one go about this?
| stackexchange/codereview |
I have two identical databases on the same server. During a deployment process, I have data in tables in database A that need copied over to the tables in database B. What is the easiest way to programmatically accomplish this task?
EDIT:
Tables do have identity columns.
There are tables with foreign key constraints, ... | stackexchange/codereview |
I'm trying to understand better how data binding works in .net. I was checking this article, and I came up with this code:
public partial class Form1 : Form//, INotifyPropertyChanged
{
public event PropertyChangedEventHandler MyTextChanged;
[System.ComponentModel.Bindable(true)]
public string MyText
{
... | stackexchange/codereview |
I am looking for C++ code to indent an xml line. I don't want to link with a library.
I have my stream in one line like this
<root><a>value_a</a><b>value_b</b></root>
and I want to print it in a multi-line way (with tabs).
<root>
<a>value_a</a>
<b>value_b</b>
</root>
does it ring a bell to anybody?
| stackexchange/codereview |
I am wondering why:
$.post("remote.php",
{'f':a_searchtype, 'partial':value},
function(data){
$("#result").html(data);
});
worksfine. but using a variable such as:
ajax_arg = {'f':a_searchtype, 'partial':value};
$.post("remote.php",
ajax_arg,
function(data){
$("#result").html(data);
... | stackexchange/codereview |
Is it possible to host a silverlight 4 application with iis 5 because i am using windows xp. or are there other ways to host silverlight application without iis
| stackexchange/codereview |
i want to get android camera gallery folder path to save images in that
in different mobile phones it is different for example in galaxy it is
/sdcard/DCIM/camera/image.jpg
and in other phones for example
/sdcard/media/images/image.jpg
hot get path up to gallery folder dynamically?
any help would be appreciated.
| stackexchange/codereview |
I recently stumbled upon a piece of code that would not compile in my Eclipse due to the "same erasure" issue (looked very similar to this one). The guys who wrote the code assured me that it compiles in their local environment and their continuous integration and so I played along to emulate it.
Take a look at this s... | stackexchange/codereview |
I'm currently trying to run the jQuery Validation plugin inside a jQuery dialog. The code is as such in the document.ready function:
$("#Dialog").dialog({
bgiframe: true,
autoOpen: false,
height: 600,
width: 590,
modal: true,
resizable: false,
open: function (type, data) {
$(this).pa... | stackexchange/codereview |
I am trying to design an activity in Android which consist in a ListView with a button to add items to the List.
When the button is clicked, it opens a chain of Dialogs to configure the new item (each Dialog configures one attribute of the item Object). When the last Dialog is validated, the item is added to the list.
... | stackexchange/codereview |
I want to make a class that can hold settings for my app. Its pretty basic. I will access it from a few different classes, but only want 1 version of this container class to exist so they all see the same data.
Is there something special i need to flag for this?
Here is what I've done so far:
Filters.h
#import <Founda... | stackexchange/codereview |
I am trying to get my head around how Javascript function behaves. Is it a function or an object or both?
| stackexchange/codereview |
If my css is:
border-bottom-right-radius: 20px;
is there a JavaScript library that will convert it to
-moz-border-radius-bottomright: 20px;
automatically if it detects a user agent that is a mozilla browser, example: Firefox?
| stackexchange/codereview |
I have an ANT target that runs findbugs twice on the same source code to generate a xml and html report
<delete dir="${findbugs.dir}"/>
<mkdir dir="${findbugs.dir}"/>
<findbugs
home="${findbugs.home}"
output="xml"
outputFile="${findbugs.dir}/findbugs.xml"
jvmargs="${findbugs.jvmargs}"
timeo... | stackexchange/codereview |
Suppose there is a interface Subject.
interface Subject { void request(); }
We have a RealSubject class. Suppose we want to enhance RealSubject, we can either use Proxy pattern that wraps around a RealSubject:
class Proxy implements Subject {
private RealSubject ref;
void request(){ ... }
}
or we can extends ... | stackexchange/codereview |
In my Java app, I have a JFrame window, how can I minimize it from my Java program ?
| stackexchange/codereview |
Hi there, it my first time here - please go easy on me!
I am struggling to find an answer to my question which is:
How to add and remove a CSS .current class to a link when another link is clicked. For example, using this code:
<a class="boldthislink">Bold me?</a>
<a class="boldhim">bold him</a>
<a class="unboldhim">u... | stackexchange/codereview |
I know the BindingFlags are used to fetch public and non-public members from a Type.
But is there a way to determine if a MemberInfo instance (or derived like PropertyInfo, MethodInfo) is public or not (after it was returned from one of the methods on Type)?
| stackexchange/codereview |
I am using PHP_excel to export to xlsx. where im using template which has each row with a fixed height of 48. But some times the text within the cell is increases, during which row height doesn't grow even if i use wraptext().So is there any possible way to grow the height of row only in case it has more text.
| stackexchange/codereview |
I love fullCalendar. Its an awesome plugin. However one thing that I have found hard is testing. I am using rails, cucumber, capybera and selenium. I spent a good part of yesterday using the selenium IDE and could not for the life of me get selenium to simulate a click on fullcalendar's interface. I was wondering if an... | stackexchange/codereview |
I am using code from http://osmorphis.blogspot.com/2009/05/multiple-buttons-on-navigation-bar.html to implement multiple buttons in the navigation bar.
The huge problem I have now is that this construction "leaks" into the main window. By this I mean that if I press (up to about 15px) below the navigation bar the butt... | stackexchange/codereview |
If I have a class like the following:
public class Customer {
public int id {get;set;}
public string name {get;set;}
public string line1 {get;set;}
public string line2 {get;set;}
public string line3 {get;set;}
public string line4 {get;set;}
}
And I only want to select the ID and Name val... | stackexchange/codereview |
I am currently using javascript to enable changes to css on hover for certain items in my html page. In Firefox I never get an ActiveX message but in IE8 I get a message stating "To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your... | stackexchange/codereview |
@RequestMapping(value = "/post/{postThreadId}", method = RequestMethod.GET)
@ResponseBody
public String paramTest(PostParams params) {
return params.toString();
}
Spring MVC Path Variable ("postThreadID") can be mapped to Command object field?
PostParams have setPostThreadId(int ...)
But, it looks not working.
| stackexchange/codereview |
I'm having a little issue right now that has turned into a festering wound.
I've recreated Google Business Hours for setting which hours during the week that a company is open, or whether they are closed on that day. Now, if they are closed, the user can select a checkbox and the times DIV hides. Right now I'm using .s... | stackexchange/codereview |
We have a couple <button> elements which we style with JQuery UI like this: $("#my-button" ).button();. Is there a way to have JQuery UI automatically style the buttons without explicity writing that code?
| stackexchange/codereview |
I have found the following info "To update a status message, send an updated status document in Atom format using an HTTP PUT request"
but i don't underctand how to sent the xml file to the lotus connections server. I tried to submit a form with xml data...I tried to call ajax query..
Please anybody help - give... | stackexchange/codereview |
I need to run a javascript function from a phpunit test with selenium and check the javascript returns true. I've looked into using runScript but it never seems to run (I've tested this by adding an alert to the code, but it never shows..).
My javascript needs to check the opacity of an element is 1, if not use setTime... | stackexchange/codereview |
I have a web app that has a list of user comments. I want extra options for these comments (vote, reply, etc..) to appear only when the comment itself is mouseover-ed
The best example of what I am looking for would be a youtube video:
http://www.youtube.com/watch?v=s2VzLn6DMCE&ob=av3e
When you go to the comments the ... | stackexchange/codereview |
I've heard it's better to read the first edition of "Introduction to Functional Programming" by Bird & Wadler than the second edition. The first edition uses Miranda, and the second edition uses Haskell.
Is this a common recommendation? My goal is to get serious about functional programming. Thoroughly knowing the c... | stackexchange/codereview |
I'm trying to need to access/parse all outgoing connections on a particular port number on a Linux machine using a Python script. The simplest implementation seems to be to open a subprocess for netstat and parse its stdout.
I imagine someone somewhere has had this problem before, and am surprised not to find any netst... | stackexchange/codereview |
I am using Http get and post methods for Http Connection
I just wanted to ask that what all exception can occur in using them.
I know list may be too long but can someone tell me the general and frequent exceptions that occur and must be handled?
my code is :
public class httpconnection
{
HttpClient client=new... | stackexchange/codereview |
I have a GridView which binds data from DB, and using rowboundevent, I want to get the second cell value of each row and compare it with the second cell value of next row. If they are the same then the cell should be empty, else the value should be written in the cell.
| stackexchange/codereview |
I've generated LINQ to SQL classes from a database not under my control which has a lot of Decimal(38, 5) fields. Apparently the range of the .NET Decimal type is smaller than this, so the LINQ to SQL code generator is throwing a lot of warnings:
DBML1008: Mapping between DbType 'Decimal(38,5)' and Type 'System.Decima... | stackexchange/codereview |
I am trying to create a Bluetooth application that will simultaneously listen for incoming connections (as a server) and seek out available connections (as a client) using Java and BlueCove. The premise being that two Bluetooth devices (such as smart phones) can automatically discover one another and begin some sort o... | stackexchange/codereview |
I build a iPad project,i want to run the project on iPhone with auto-resize and it's run successful on iPhone 4.1 simulator,but it's always alert 'can only installed on ipads' when i run it with my iPhone,how can I run a iPad project on a iPhone or touch,what can i do?
| stackexchange/codereview |
I want to delete some data use:
$dbc=mysql_connect(_SRV,_ACCID,_PWD) or die(_ERROR15.": ".mysql_error());
$db=mysql_select_db("qdbase",$dbc) or die(_ERROR17.": ".mysql_error());
switch(postVar('action')) {
case 'changedata':
changedata(postVar('id'),postVar('chlotno'),postVar('chrange'),pos... | stackexchange/codereview |
I implement a SSO with NTLM and passthru, and it works if our client had joined into domain.
As in our code we will check if there is a "Authorization header" in the request header. And the problem is:
If our client joined domain, then in our application, I can receive the Authentication header which contain NTLM ..... | stackexchange/codereview |
I want the row to be scale automatically. The effect of my code is really strange...
i can't post images, so image is here: https://i.stack.imgur.com/NQfkO.jpg
the code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
andro... | stackexchange/codereview |
e.g.
1.1.1.1 a.com
2.1.1.1 b.com
1.3.1.1 c.com
1.1.5.1 d.com
1.2.1.1 e.com
now I want to replace this ip from another text, not the same width, like 111.222.111.222, is also store in a rect text.
I know that Ctrl+v can do rect select, but how to do copy and paste?
| stackexchange/codereview |
On Beauty of the Web, there is a purple/blue swoosh at the beginning, if you are in IE9 or Chrome. How is that done? What is that? How come it only displays in IE9 and Chrome?
| stackexchange/codereview |
I've been trying to make a form with 68 items while positioning all the items on a form via a loop, but this loop isn't working :( Can someone please help me get this to work? I've tried looking everywhere but can't see what to do :/
Dim Items(67) As String
For x = 0 To 67
Items(x) = "Ctl" & x
Next
#It go... | stackexchange/codereview |
I'm trying to have a website that hosts different applications (also websites) in iframes. Note: only one application is active (displayed) at a time. My problem is that links that rely on targets are loaded in the wrong iframe (the first that is found).
To avoid problem with links that rely on a specific target, the s... | stackexchange/codereview |
problem Statement :
I have to make a table consists of ( i,j,s(i,j)) where i and j are Keyframes or images and S(i,j) is similarity measure value between those images.
how to find similarity value between two images?
Can anyone please tell me how to find this Using sum of squared distances of pixels using Matlab ?
... | stackexchange/codereview |
I am using ck editor to compose my mail , to send mails to my user I am using the libmail class. my issue is if I echo the posted data from the ckeditor
eg: echo $message = $_POST['editor1'];
output : " < data > "
but if I send the message using the libmail the mail sended like this
<p>
&qu... | stackexchange/codereview |
I have to retrieve all the items from a list based on the condition that are modified in the last 1 month. I am using the following Caml query but its not working.
<Query>
<Where>
<Geq>
<FieldRef Name="Modified" />
<Value Type="DateTime">[Today-30Day(s)]</Value>
</Geq>
</Where>
</Query>
Please help me regarding this i... | stackexchange/codereview |
How to check if a word at a position is in a Span[i] of the xshd-ruleset?
Thanks!
| stackexchange/codereview |
I'm trying to get will paginate to link to my nested route instead of the regular posts variable. I know I'm supposed to pass some params to paginate but I don't know how to pass them.
Basically there is an array stored in @posts and the other param paginate has access to is category_id.
The nested route is /category/1... | stackexchange/codereview |
I would like to include local business address/phone numbers into my site.
Does anyone have thoughts on using google local search api vs. twitter's geo api vs. purchasing a directory listing?
| stackexchange/codereview |
I am looking for a good way to implement - default characteristics for an object and override the defaults in a database.
I have a table called Products - that maintains the list of products
One of the products is mailbox and the value for the attribute color is blue
I need the ability to specify that mailbox is red w... | stackexchange/codereview |
I want to change the color of the row in a extjs-3.1 grid from default to "dark red", When i either hover my mouse on row or i select a row , Please help.
| stackexchange/codereview |
How can I point imagemagick to a directory of images and use the adaptive sharpen tool to increase the sharpness of all the files in the folder?
Thank you.
| stackexchange/codereview |
When I enter insert mode, vim will not allow deleting text behind where I entered insert. Also when I use auto indent, I cannot delete the indentations that get automatically created.
I've tried a blank vimrc and even tried my own version of vim compiled from source. How can I delete properly in vim?
| stackexchange/codereview |
I've got a GridView that can be edited. My problem is that when I click Edit, the textbox is too small (the File Name column). It isn't large enough to display its contents, and it isn't as wide as the rest of the column.
How can I make that textbox wider?
Here's the ASP code:
<asp:GridView ID="FileGridView" runat="se... | stackexchange/codereview |
I want a batch script which checks for a file(*.txt) for last 7 days in a folder. If the file are there, will ignore and exits. If there is no files in last 7 days, sent a alert email to xxx@xxx.xxx
Thanks,
Jay
| stackexchange/codereview |
can i make my enum private or protected. for ex
enum day{sun,mon,tue};
this is what we usually give. Can i give like
private enum day{mon,..};
| stackexchange/codereview |
I am a junior software engineer,I like this site and people in it.So,I want to ask my problems to see your answers and suggestions.Then,please don't mad at me for asking without searching.
My problem is about Distributed database communication(MSSQL Server 2008).In picture,I need a Main Server in center of star topolog... | stackexchange/codereview |
Does anybody know some XNA 4.0 papers. I'm interested in e-books and other documents/papers. Preferably free....
Non-common websites are also welcome :) (Not returned from google search)
| stackexchange/codereview |
I have a UITextView at the middle of a View, a UIToolBar at the bottom of a View. I want a visual keyboard to appear above a UIToolBar when I touch on UITextView. How can I do it?
| stackexchange/codereview |
How to create a factory class that prevents direct instantiation of a class ?
say, i have class Comment that should only be instantiated from a class CommentFactory.
I don't want Comment to be able to be instantiated directly.
I figured I could do this :
public partial class Comment
{
private Comment(){}
pu... | stackexchange/codereview |
Realize this may sound like a broad question - so let me clarify. I have a Repository exposed via an interface, with two concrete implementations - a MockRepository and a EntityFrameworkRepository.
Now, i have a Unit-Test project for which all tests can be run against either repository, via flicking over a line in [Tes... | stackexchange/codereview |
I am just curious if someone can get me pointed in the right direction with searching MySQL with AES encryption.
There are a couple of things that need to be considered. If I take the keyword and encrypt it before searching, i'm comparing encryption to encryption and even if one letter is cap and another letter isn't ... | stackexchange/codereview |
I have a listview which populates the data using CheckedTextView. Here is the xml
<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textSize="14dp"
android:padd... | stackexchange/codereview |
With print_r I get:
stdClass Object
(
[field_car_image] => Array
(
[0] => Array
(
[filename] => HERMAN 096.jpg
[filepath] => sites/default/files/HERMAN 096.jpg
[filemime] => image/jpeg
[filesize] => 933105
[status]... | stackexchange/codereview |
There are 2 parts to my question but both are related. I have searched all over the place but cannot find a way to put in an array, all file names from R.raw, such as MP3s in string format.
I also want to create new buttons on the fly in Java, as opposed to using the XML files to lay out buttons.
psuedocode:
array[] = ... | stackexchange/codereview |
I'm trying to declare a function that will let me change a number in a char list list (I'm still working on the sudoku game from earlier).
changesudo : char list list -> int * int * char -> char list list
I need to be able to call changesudo xs (r,s,c) where xs is the char list list, r is the list, s is the position i... | stackexchange/codereview |
When working with database transactions, what are the possible conditions (if any) that would cause the final COMMIT statement in a transaction to fail, presuming that all statements within the transaction already executed without issue?
For example... let's say you have some two-phase or three-phase commit protocol w... | stackexchange/codereview |
Long story short, I would like to take my usercontrols that are loaded dynamically and stick them into a list that references the actual object that has been loaded. So I can go into the list and pull results from the usercontrol. I would like to use mycontrol.GetResult() and it will then reference the control and grab... | stackexchange/codereview |
Is it possible to programmatically from a silverlight app to get the runtime information of silverlight?
Note: that does not include making a call out to javascript
| stackexchange/codereview |
How can you make an animated GIF with a transparent background in Adobe Flash CS5?
I have make an animation in Flash CS5. And I want to export it to an animated GIF file. But I want this animation with a transparent background. How can I do this?
| stackexchange/codereview |
$('.showprayer').click( function(event)
{
$.post('/show_prayer', { 'name' : $(this).text() }, function(data)
{
eval(data);
});
});
The jQuery function above returns the following string as the ajax response coming back from the server:
'#prayer_date'.html("03/19/1968");
Someone seeing this code earlier ... | stackexchange/codereview |
Suppose you have to develop a software to access customer database, let's say for example "SQL Server".
Are there good libraries to accelerate this job in order to give to my client a good UI?
For example, I could show a grid where he can select his desired customer for updating and deleting existing customers data, al... | stackexchange/codereview |
I want just know how Adobe makes Photoshop cross-platform? I know Photoshop is written completely in C++, but what about the GUI? Does Adobe use GUI toolkits?
| stackexchange/codereview |
Like this http://forums.silverlight.net/forums/p/62122/460886.aspx
| stackexchange/codereview |
I'm working with an API that returns a server's IP address as an unsigned int value. What's the simplest way to generate an NSString from this that displays the IP address in the format "255.255.255.255"?
| stackexchange/codereview |
In Objective-C, is there any way to find out which objects are the ones retaining another object?
For example, I have a collection of MyClass objects and if I iterate through them to get the retain count on each object, I see the count at 2. How can I find out who the holders are?
for (NSString *aKey in aDictionaryOfMy... | stackexchange/codereview |
What exactly is the technical difference between console.writeline and System.out.println?
I know that System.out.println writes to standard output but is this not the same thing as the console?
I do not fully understand the documentation for console.writeline.
| stackexchange/codereview |
i was wondering if you could point me in the right direction. Im extending the mysqli class but cant seem to call the error function..
<?php
class mysqli_ls extends mysqli
{
private $activeConnection = 0;
private $linkArr = array();
private $queryArr = array();
private $errorArr = array();
public f... | stackexchange/codereview |
If i bind a data table to WPF Toolkit-data-grid.....no need to specify the column names there...it will automatically take that from the datable.
But if I am binding a list-view to an observable collection...I have to specify the column header names for each column one by one..in xaml file.
So if I have a list of col... | stackexchange/codereview |
I found the following guide:
http://mark.reid.name/sap/setting-up-clojure.html
but it seems like a whole lot of manual steps, and I bet it is out of date already. Installing ClojureBox on Windows was a breeze. Does anyone know of a simple installer for it? Where can I download it, and what are the steps?
Thanks!
EDIT: ... | stackexchange/codereview |
I would like to know your opinion of a good jQuery and JavaScript book. There are just too many of them [when I try to search]. Please suggest some really good books which I could buy.
My current knowledge on these technologies - Close to Zero.
Thanks in advance,
Rahul
| stackexchange/codereview |
Trying to test a controller in Rspec. (Rails 2.3.8, Ruby 1.8.7, Rspec 1.3.1, Rspec-Rails 1.3.3)
I'm trying to post a create but I get this error message:
ActiveRecord::AssociationTypeMismatch in 'ProjectsController with appropriate parameters while logged in: should create project'
User(#2171994580) expected, got ... | stackexchange/codereview |
I was wondering what the best way was to detect when a page has finished loading, where the page in question is in a different tab or window, ... and where page to be loaded could be any page on the web and is not under my control.
I am using Firefox only and I don't mind if the solution requires a Firefox extension o... | stackexchange/codereview |
I'm trying to passing an arguments (array) for update, but seems CouchDB unable to parse them correctly.
curl -X PUT http://localhost:5984/mydb/_design/timeline/_update/hello/container-1?tags\\[\\]=1\&tags\\[\\]=2
in CouchDB:
"updates": {
"hello": "function(doc,request){if(!doc){doc={_id:request.id};}for(i in... | stackexchange/codereview |
l want to invoke the native sms application with the specified text but without the phone number
, I want it to start with add recipient screen.
I have tried many ways but without the solution to my problem.
By the way this does not work for me (BB9700, JDE 5.0.0):
code:
public void send(String text) {
MessageConn... | stackexchange/codereview |
In my application am getting an xml file from server and in that i have some attributes for the element.i donno how to read the attributes .The following is my XML file
<History>
<Result ImageId="4507" Description="" Date="10/19/2010 12:49:22 AM" />
<Result ImageId="4505" Description="" Date="10/18/2010 8:01:... | stackexchange/codereview |
I have something like this:
<img class="side_image right" id="side_image" src="http://path/to/file_large.jpg" width="300"
height="210" onload="document.getElementById('loading_gif').style.display = 'none';" />
My problem is how to tell if the image does not exist. This block of code will hide the loading gif only if... | stackexchange/codereview |
I have the following code
Response.TransmitFile(filePath);
Opens the new window using the following line of code
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "Download", string.Format("window.open('{0}', target = 'new');", downloadURL), true);
This works on IE8 however doesn't work on IE6 and IE7
anyi... | stackexchange/codereview |
I have been using the url intercept method to pass data from javascript to objective C by passing the data as url encoded parameters and using NSURLProtocol to intercept the request however I am now wanting to send larger amounts of data like say 10,000 character long strings but this does not seem practical to do in a... | stackexchange/codereview |
I have a C# console application with three assemblies: Main, Common and Utilities.
In a file in the Main assembly, Main.cs, I have the line:
using Utilities;
In a directory within the Common assembly, I have the DLL IBM.Data.DB2.dll.
In the Utilities assembly, I have a source module which accesses said dll.
Utilities ... | stackexchange/codereview |
Here is something so simple
<p:commandLink value="Tom" onclick="document.getElementById('tom').focus()"/><br/>
<input id="tom"/>
When u click on the Tom, the textbox get focus. Great, now try this
<p:commandLink value="Tom" onclick="document.getElementById('tom').focus()"/><br/>
<h:inputText id="tom"/> <br/>
when I c... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.