instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to implement an attachment feature for email, like Gmail has, using jquery+javascript.
So I use input type file to select the file - which gives only the name of file, not the full path of file where it is located. I want the full path of file so that I convert file into bytes then send ajax request to server wi... | stackexchange/codereview |
Hi is it possible to add a TTHUmbsViewController on a UIView like
[UIView addSubView:TTHUmbsViewCOntroller.view]
?????
| stackexchange/codereview |
I have hunted around a lot on posts to do with NSURLConnection and more generally SIGABRT debugging but have had no joy on this. Any help is greatly appreciated.
So, at the start of my app the user is presented with a login view and on supplying user name and password I start an NSURLConnection by doing the following i... | stackexchange/codereview |
I am using ClearCase remote client Version 7.1.1, and I am wondering if it's possible to delete a version that was checked in by mistake.
I know that in ClearCase, this is possible by choosing delete in the right click menu (Versions tree)
Anyone has the answer ?
Thanks
| stackexchange/codereview |
I'm stuck on what I thought was going to be a very simple task in ASP.Net MVC2.
I need to apply a background color to certain SELECT OPTION elements. To generate the dropdowns we're using the Html.DropDownList and Html.ListBox html helpers, and ideally I'd like to continue using these so I don't have to deal with re-bi... | stackexchange/codereview |
I'm trying to make a scrolling calendar script using jquery (similar to the one on an iPad)
So, I want to record the yPosition of the mousedown and the mouseup and move a div accordingly. I tried recording the mouse positions using two variables, one to be recorded on the mousedown event and one to be recorded on a mo... | stackexchange/codereview |
<asp:Button ID="btnEditAdd" Text="Edit"
CausesValidation="false" CommandName="Edit" Visible="false" runat="server" OnCommand="btnEditAdd_Click"/>
How come the above control's got both OnCommand and CommandName attribute? When that button is clicked what method is called ? I don't why I am confused.
I mean the repeat... | stackexchange/codereview |
I have some problems during when and which object to be release
You can say my knowledge towards this is less
i have following conditions please suggest me the answer accordingly
situation-1
NSMutableString *str=[[NSMutableString alloc]initWithFormat:@"Hello World!"];
NSMutableArray *array=[[NSMutableArray alloc]init... | stackexchange/codereview |
I have working on C#.NET project.In this project we follow CAB framework(Win forms). Now we plan to moving CAB to Composite Application Library for WPF. THis migrating process what are the things i have to consider, follow & learn?
| stackexchange/codereview |
I understand how using a full domain with an A record works ($_SERVER['SERVER_NAME']), but when using a subdomain with bit.ly, they ask for it to point to cname.bit.ly - why dont subdomains just get pointed to the same IP address as normal domains and is there a difference in determining the referring sub-domain?
| stackexchange/codereview |
I want to develop a facebook application but it seems that they're changing their API, I mean, they're changing the old REST for the new Graph API, so my question is, should I start learning the old REST API and make my application there? or should I wait for facebook to completely change their API?.
| stackexchange/codereview |
How would i go about finding the number of 'zero' bits in C++.
Suppose I have an integer;
int value = 276;
For which I have the bits 100010100, but how do I count the zeros?
| stackexchange/codereview |
I'm trying to debug a program that calls a function in the HashSet class, but I get a message saying: Source not found. I know this is something with not finding the library files. Please, can someone guide me to how I can set it up? Which library files should it be pointing to?
Thank you very much for any pointers.
| stackexchange/codereview |
I want to open an Excel file in browser using java 1.6. If I have changed excel sheet cell value then it will reflect on original excel file...
How to do this?
| stackexchange/codereview |
In my attempt to learn Ruby, I've been reading Mr. Neighborly's Humble Little Ruby Book.
Most examples have been very easy to follow giving me a good introduction to Ruby, however I can't run DB related examples easily.
I'm trying to run this code: (slightly modified from the example given in the book)
#!/usr/bin/ruby
... | stackexchange/codereview |
I have a domain Payment
class Payment {
String name
PaymentType paymentType
}
PaymentType is an ENUM
to search all payments of a particular payment type is simple
def results = Payment.createCriteria.list = {
'in' ('paymentType', PaymentType.valueOf(params.paymentType))
}
how can i handle the situation when I w... | stackexchange/codereview |
I have a rar archive, I shake it to the ftp folder to be stored in the folder files.
How do I unzip the archive, that archive would not be seen in the system?
that would not have been possible to users of its intercept.
archive - the secret information, I can not open whatever it could to keep
| stackexchange/codereview |
Can you explain me what exactly are SO_SNDBUF and SO_RCVBUF options?
OK, for some reason the OS buffers the outgoing/incomming data but I'd like to clarify this subject.
What is their role (generally)?
Are they per-socket buffers?
Is there a connection between Transport layer's buffers (the TCP buffer, for example) an... | stackexchange/codereview |
I'm doing an application which allows user to take a picture from camera or select picture from library.
I'm using the code
- (BOOL)startCameraPickerFromViewController:(UIViewController*)controller usingDelegate:(id<UIImagePickerControllerDelegate>)delegateObject
{
if ([UIImagePickerController isSourceTypeAvailab... | stackexchange/codereview |
I'm using clj-oauth for a school project where I am creating a desktop client that reads from Twitter. I've been attempting to authenticate the client against Twitter and get the PIN so I can set it in the client and forget about it (since this is only for personal use and doesn't need to be distributed). It seems to m... | stackexchange/codereview |
Please help me, I am having problems with sending an html formatted mail message using php mail()
I think the problem lies in the header. I have included two headers with a slight difference only in single quotes or double quotes:
header 1:
$headers = 'From: webmaster@example.com\r\n Reply-To: webmaster@example.com';
$... | stackexchange/codereview |
I would like to create a random GeoPoint within 50 feet of a given GeoPoint. (Using SQL Server 2008 or IPhone SDK)
Can I just add some number to the long & lat to create this random Geopoint?
Example:
mylatdistance = Random(1,50) newlat = lat + mylatdistance
or
Is this a Spatial SQL/area problem?
Thanks
| stackexchange/codereview |
Every time I put an inline tag on the link's href attribute it somehow gets auto-encoded. Is this ASP.NET's default behavior? How can I dynamically set the Href attribute using code? This is in MVC btw.
Attempted something like this
<link href="<%: Link.Content.Jquery_css %>" rel="stylesheet" type="text/css" />
whic... | stackexchange/codereview |
I know you can set fastScroll for listViews, but currently I would like to use a ListActivity with a simplecursoradapter instead. Is there a way to make such a view fast scroll?
| stackexchange/codereview |
(In the process of writing my original question, I answered it, but the information might be useful to others, and I thought of a new question)
For instance:
int x;
if (x = 5) { ... }
Creates an error:
Type mismatch: cannot convert from int to boolean. (Because assignment doesn't return a
boolean value)
Howeve... | stackexchange/codereview |
Or only possible to play it loading over the internet?
| stackexchange/codereview |
I use Spring framework 3.0.5 to build a web application. I use @Configuration annotation to configure my domain object, and some of the domain objects are with session scope. And when I write a unit test using jUnit 4.8.2, the AnnotationConfigWebApplicationContext variable cannot get the beans which are defined in conf... | stackexchange/codereview |
I am using fbconnect to get list of owner's facebook friends. For this I am implementing:
FBSession* _session;
FBLoginButton *loginButton;
and in .m file:
- (void)session:(FBSession*)session didLogin:(FBUID)uid {
NSLog(@"User with id %lld logged in.", uid);
[self getFriendsName];
}
-(void)getFriendsName
{
NSSt... | stackexchange/codereview |
I really only need my ScrollView wrapped around 1 of the 3 LinearLayouts I have in my ViewFlipper, but I try to wrap it around my 3rd child and it gives me the error that ScrollView can only host one direct child.
Any workarounds?
<ViewFlipper>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android... | stackexchange/codereview |
I have written a function which takes a whole bunch of files, zips them up and then allows the user to download this zip all through an asp.net website.
However, these zip files are going to be pretty large (like 1GB large), so it won't happen immediately, what i'd like to do is to be able to have this running on a sep... | stackexchange/codereview |
I am new to iPhone/Objective-C development, I am successfully parsing XML with NSXMLParser but I can't get exceptions to work properly. I'd like to use exceptions to deal with unexpected XML.
I'm wrapping the code for creating the NSXMLParser object and sending the setDelegate and parse messages to the object inside a ... | stackexchange/codereview |
In Python, I can check if a value exists in a container with 1 in (2, 3) which returns False. How do I do this in Java?
| stackexchange/codereview |
Im using the Visualization API Gauge widget in my Drupal 6 site.
Is it possible to set the value of the gauge dynamically by reading values from the database? Also, can the GVS module be used to achieve this?
| stackexchange/codereview |
I have a single columns table which holds 50 records. I would like to create 50 buttons from those records. How can I do that in Vb.Net?
Any help will be appreciated.
| stackexchange/codereview |
I have a thread that is listening on a socket and forwarding on the messages it receives to processing engine. If something untoward happen (such as the socket is unexpectedly closed) how should that thread notify it's "parent" that it's about to end?
UPDATE: For example, here's a simple illistration of the issue:
cla... | stackexchange/codereview |
The is my real folder scheme:
ROOT
index.html
news.html
+articles
|-obama.html
|-oil.html
I want some htaccess rule so if people go to domain.com/obama.html the server will fetch the one in the articles folder without redirecting.
If some one goes to domain.com/index.html will still fetchs the one in the articles even... | stackexchange/codereview |
public class check extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
void myonclick(View view)
{
Intent mIntent = new Inte... | stackexchange/codereview |
I want to know has anybody successully implemented an audio sampledataevent using the adobe iphone packager?
I've being trying to do this recently but the audio does not play smoothly. Also I've tried a range of different buffer sizes but this too was unsuccessful.
function sampleDataHandler(e:SampleDataEvent):void
{
... | stackexchange/codereview |
Is it possible to programmatically set the session timeout for a user-session based on the user's IP address?
Example: if IP address is in the range of 192.0.X then set session timeout to 6 hours. Otherwise, leave at default set in web.config (or set to 30 minutes).
Presumably this would be done in Global.asax:Session... | stackexchange/codereview |
I have a C# program, that works fine on my computer, but on other computer.
I receive the following error:
EventType : clr20r3
P1 : serialport terminal.exe
P2 : 1.0.0.0
P3 : 4ccdc565
P4 : system
P5 : 2.0.0.0
P6 : 471ebf0d
P7 : 3b73
P8 : 51
P9 : system.io.filenotfoundexception ... | stackexchange/codereview |
I have created a website that works with different sessions and every users has his own page at mydomain.com/user . I want to know that is it possible that if one user logs in from his account and clicks on a button, it displays a HTML BOX on the dashboard of the button specfied user?
When the intended user logs in, he... | stackexchange/codereview |
Controller: Products and Action: Save, return a JsonResult. If a trapped exception occurs, i would like to signal that error to the client (ie:jQuery) with a custom error message. How can I do that both on the server and client? Can i utilize the function pointer error in this scenario?
Here's the client code
$.ajax({... | stackexchange/codereview |
I am new to kernel development and I am trying to understand about new kernel patch sched: automated per tty task groups .
Can some one explain in brief what exactly it is doing?
| stackexchange/codereview |
I can't get the same result of encrypted text in JAVA from my php script.
This is my php code (client side - my side):
$input = 'my text to be encrypted';
$key = 'my key';
$size = mcrypt_get_block_size(MCRYPT_DES, 'ecb');
$input = pkcs5_pad($input, $size);
$td = mcrypt_module_open(MCRYPT_DES, '', 'ecb', '');
$iv = mcr... | stackexchange/codereview |
What I try is to fetch some model objects from the database and serialize them to xml, but when including a specific (has_many) association I get the below error. The JSON serialization (to_json) works without a problem (with properties included too). Also the serialization of one object (XML and JSON). What could the ... | stackexchange/codereview |
Rails 3, Cucumber 0.9.4, Capybara 0.4.0
I want to test my features with subdomain. I found that solution:
Given /^I visit subdomain "(.+)"$/ do |sub|
Capybara.default_host = "#{sub}.example.com" #for Rack::Test
Capybara.app_host = "http://#{sub}.example.com:9887" if Capybara.current_driver == :culerity
end
It work... | stackexchange/codereview |
I'm using a jQuery's scrollTo plugin and I want to scroll a divs under a "mask" horizontally, and that works for me very well, but I don't want to scroll a page vertically (of course smooth scrolling don't want to work with that, there's only a jump like in HTML a few pixels down (according to vertical resolution of mo... | stackexchange/codereview |
We have been running into an issue where we get this error message when we try to alter a clr assembly in SQL Server:
Failed to initialize Common Language Runntime (CLR) due to memory pressure.
This is probably due to memory pressure in the MemToLeave Region of memory.
Error 6513
I found information about looking at h... | stackexchange/codereview |
I have a linux busybox based system on a chip. I want to provide an update to users in the field and this requires updating some files in /lib /usr/bin and /etc. I don't think that it's safe to simple untar the files directly. Is there a safe way to do this including /lib files that may be in use?
| stackexchange/codereview |
I have one class named A and one class B
public class A : UserControl { }
public class B : UserControl { }
Now i have one assembly whose class's function accepts objects of class A. This assembly is not created by me so i don't have any control. Basically it is 3rd party assembly.
But i want to supply my objects of c... | stackexchange/codereview |
I would like to bind a column in my DataGridView class to an entry in a 2nd level object in C# using .NET 4.0. For instance:
I have Object A:
public class A
{
public long id;
public B bClass;
}
and Object B
public class B
{
public long id;
public string name;
}
Is there a way to declare a list of class A... | stackexchange/codereview |
Good morning all, i want to create an event in MySQL that will UPDATE the table after a particular no of days, i have a dateAdded column , i needed the event to take the value of the dateAdded column and check it with the current date if it's >= 365 days it should update a column called status and change the value from... | stackexchange/codereview |
When you convert between 2 entities, you usually do it via the UnitConverter. How should I find out what the conversion factor is? For example:
public static final Unit<Length> KILOMETRE = METER.times(1000);
public static final Unit<Length> CENTIMETRE = METRE.divide(100);
I would like to get the conversion factor prog... | stackexchange/codereview |
hi friends
im making a simple chess game.and i want to know how can i move between pictureboxes?i made 64 pictureboxes(for each place one picturebox) and for example i want to move the king piece that is in picturebox2 in the picturebox that is on top of the picturebox2.thanks for your help
for example like this:
pic... | stackexchange/codereview |
I am trying to create an ICollection Interface pointer in Native C++ code using the below piece of code.
ICollectionPtr ptrPopItems (__uuidof(mscorlib::ICollection));
But I am getting a compliation error saying "Class not registered".
Can someone help in solving this error?
| stackexchange/codereview |
I've been working with base-36 recently and have never been satisfied with the usual answer to converting ints into base-36 strings. It looks a little imbalanced…
def to_base36(value):
if not isinstance(value, int):
raise TypeError("expected int, got %s: %r" % (value.__class__.__name__, value))
if val... | stackexchange/codereview |
What is the guideline on creating a program or part of a program based on a non-free code, for example from codes Microsoft's sample code for .net or code found in someone's blog? The codes are there to help a programmer's work right? If one feels that part of such code is helpful in his work, does he have to reimpleme... | stackexchange/codereview |
I have a time on user control, and button on the web page. On perticular time I want to fire button click event. Please tell me how do this.
| stackexchange/codereview |
I know how to make a Window Modal to a Window
I have a Page as my main window. I want to open a window and make it Modal to the Page. Is it possible? Does Page class have API's to support my requirement? If yes a sample illustration will be nice!!
| stackexchange/codereview |
I'm looking to replace a vector<string> and a boost::unordered_map<string, size_t> mapping string to indices in the former with a boost::bimap.
What instantiation of bimap should I use? So far, I've come up with
typedef bimap<
unordered_set_of<size_t>,
vector_of<string>
> StringMap;
but I'm not sure if I've re... | stackexchange/codereview |
When you press Enter anywhere in a HTML form it triggers its action, that is equivalent of pressing the submit button.
How to make a window that when I press Enter anywhere it will trigger an event?
| stackexchange/codereview |
I have a problem. I have a table of support tickets (wh_task). Each task has a date_completed (d/m/Y) and has_met_sla field (0 or -1). I want to allow the user to search this table by date_completed and display a chart based on the results.
The charts data has to look like this so I can populate a barchart (fusion cha... | stackexchange/codereview |
I'm using the following code from the apidemos..
return new AlertDialog.Builder(AlertDialogSamples.this)
.setIcon(R.drawable.ic_popup_reminder)
.setTitle(R.string.alert_dialog_multi_choice)
.setMultiChoiceItems(R.array.select_dialog_items3,
new boolean[]{f... | stackexchange/codereview |
I've been put on a project using a ancient mule version 1.3. They use a split configuration setup, as suggested e.g. here.
All these files had http://www.symphonysoft.com/dtds/mule/mule-configuration.dtd as their DTD definition. This turned out to be a problem for the just-as-old Mule IDE, since it apparently tries to ... | stackexchange/codereview |
I have kept a list of videos in vector {http://a/video1.mp4, http://a/video2.mp4, http://a/video3.mp4, http://a/video4.mp4, http://a/video5.mp4, http://a/video6.mp4}
I want to play all the videos one after the another using the Android native player VideoView.
Kindly provide me the sample code to implement the same.
| stackexchange/codereview |
This might be a little confusing. I'm creating this slider thing. When a slide is displayed, its onclick == "", and if it is hidden, onclick == "slide(#)" where # is the number of the slide. When you select a number to slide to, the current slide slides out, and the next slide comes in. During that, the onclick for the... | stackexchange/codereview |
I posted a detailed question here:
https://stackoverflow.com/questions/4252194/need-help-closing-accessing-my-views-in-a-simple-app-included-an-img-of-my-progr
but I might have been too confusing.
Basically, I have an app that has a main menu where the user can click a button to open a camera. The user then snaps a ph... | stackexchange/codereview |
I'm trying to "tweek" the TimeAgo plugin so that I can remove the suffix "ago" on a case by case basis.
Here's what I've tried
$("time.timeago-nosuffix").timeago({suffixAgo: ""});
and
$("time.timeago-nosuffix").timeago({ settings: { strings: { suffixAgo: null}} });
as well as
$(document).ready(function () {
$("ti... | stackexchange/codereview |
Seeking some advice as to whether use jQModal window or instead use the jQuery UI Library for a modal window ?
The jQModal lib is only 2.4KB while the jQuery UI lib is like 32KB - generally all I am looking for is a modal window ?
| stackexchange/codereview |
I'm facing this issue when calling to a web services. Pls how to solve it.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.lang.N... | stackexchange/codereview |
Hi what I'm trying to do is put all 5 of the file id's into sessions so I can later move the according physical file names. the $sid sessionID will be the same for each, the query pulls the unique $data[Id]. The limit is set to 5, how do I make sure each session gets a unique data[Id] from the results and if there is o... | stackexchange/codereview |
I have a ThingViewModel with a DateTime property:
public class ThingViewModel
{
public DateTime ConfigDate{get;set;}
}
My view has a reference to a ViewUserControl that it imports and renders, with the textbox for ConfigDate:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ThingViewModel>
<% u... | stackexchange/codereview |
How do I write and read string (~200 KB) with lots of 0 bytes inside into MySQL BLOB field?
This is not working:
$data = ... // PNG image raw data
$queryPart = "'" . addslashes($data) . "'";
... compose and execute query
| stackexchange/codereview |
I have created a website. How do I publish it on the web so that it can be accessible from anywhere?
| stackexchange/codereview |
We have a Java web application that uses Spring and Hibernate and has a fairly standard architecture. Currently the application supports SOAP based clients in addition to a Flex GUI client that communicates via AFM/HTTP to a BlazeDS backend. Today the application runs only in Tomcat, but support for JBoss and Websphe... | stackexchange/codereview |
I am implementing XML parsing in android.
Can anyone help me out by telling what I must do to implement a SAX parsing method in my application?
| stackexchange/codereview |
Is there a way to force the UIWebView to always show the scroll bar?
| stackexchange/codereview |
What's the best way to simulate a troolean variable with an HTML form?
Specifically, I've got a column that is to be sorted, so it can have three states: unsorted, ascending, and descending. I want to store the state in a form so it is recovered after page submission.
Is there an elegant way of doing this?
EDIT
Java... | stackexchange/codereview |
Just have a problem here that I have no idea how to fix. I am doing a small project which involves a GUI and serial data. The GUI is being run by the main thread and since the data variables that hold my incoming serial data need to be updated continuously, these are being updated in a second thread. The problem is whe... | stackexchange/codereview |
Using XQuery:
List the id, name, publisher and platforms for each game that is supported by more than one
platform. Platforms should be enclosed in one XML tag delimited by a comma.
I am getting problem in thinking that how do i count the patforms. The platforms that I need to count is given like in the above figure. ... | stackexchange/codereview |
I was trying to make an app for practice. Its basically a greeting app written in Cocoa and Objective-C. It has a textfield that asks for the user name. And a textView that prints out Hello, userName. Okay, I got this done with a button that starts the action. When I type in something say Kris. And pressed the button, ... | stackexchange/codereview |
So far i have used this coding for view formy mvc contrib grid....here the when i bind grid it becomes too large it the last column is going outside of the page...pls say how to reduce the size and make the
grid some how stylish.....
<%= Html.Grid<Product>(Model)
.Columns(column =>
{
... | stackexchange/codereview |
I have created a Package and i want to use the BPL File of my Package ...
My Package have VCL.dcp and RTL.dcp as Required libraries , i load this Package in my application without any errors but when i want to unload it , an Access Violation shown !
If i Build my Application with Run-Time Packages ( "vcl" and "rtl" ) ,... | stackexchange/codereview |
I have two text files bala.txt and bala1.txt
bala.txt contains text line by line as
balamurugan,rajendran,chendurpandian
christopher
updateba
bala1.txt contains text line by line as
ba
Here i need to check bala1.txt with bala.txt and write into a log file as
LineNo : 0 : balamurugan,rajendran,chendurpandian
LineNo : ... | stackexchange/codereview |
I'm trying to output xml file as html. It seems like simpleXML processing is faster than XSL on my files (files are 2-3mb each). So I ended with simpleXML. Everything seems fine, files loaded ok with $data = simplexml_load_string($file) but now I need to replace node names with html tag names and build a new document w... | stackexchange/codereview |
i m using sharepoint webservice admin.asmx to create a site collection in my webapp
using following method
adminService.CreateSite(fullUrl, siteName, string.Empty, LCID, SITE_TEMPLATE, loginName, displayName, string.Empty, string.Empty, string.Empty);
adminService is object of this service
| stackexchange/codereview |
What language/framwork does google and others like msn, yahoo, orkut, facebook, twiiter etc use. Or for the matter of fact any popular website.
I know the following
Facebook - PHP
Yahoo - PHP
Gmail - Java
Twitter - ROR and Scala
Foursquare - Scala
What about others
EDIT:
Google employees are officially allowed to use... | stackexchange/codereview |
I'm looking for tips or research papers that will help me perform the sum (i=0 to k) of X^i * Y, or more explicitly, Y + X^1 * Y +...+ X^k * Y in CUDA C. Where X is an N-by-N matrix, and Y is a N-by-1 vector
| stackexchange/codereview |
I am trying to figure out if I should migrate my gwt-rpc calls to the new GWT2.1 RequestFactory cals.
Google documentation vaguely mentions that RequestFactory is a better client-server communication method for "data-oriented services"
What I can distill from the documentation is that there is a new Proxy class that si... | stackexchange/codereview |
I have a live Django site that already has registered users. I am trying to update the site with a new version that is different from the original site -similar idea but different models.
How can I keep the current users on the new site?
I have heard South may be a good solution, but the old site doesn't have it instal... | stackexchange/codereview |
I just met a piece of error log when I was trying to resume the paused mp4 streaming. Here is the log from the server:
[INFO] [NioProcessor-1]
org.red5.io.mp4.impl.MP4Reader - Frame
position was not found for timestamp:
92000
I'm very new to Red5 so I don't know if this is a known issue, is it? And is there any... | stackexchange/codereview |
I'm writing an S3 class in R that is just an integer with some attributes attached to it. If x1 and x2 are objects of this class (call it "myclass"), then I would like c(x1, x2) to return a vector of myclass objects with the original class definition and attributes intact. However, the documented behavior of c() is to ... | stackexchange/codereview |
I have a table that looks like this
CREATE TABLE `purchases` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`totalAmount` INT(10) NOT NULL DEFAULT '0',
`purchaseDate` DATETIME NOT NULL,
PRIMARY KEY (`id`)
)
and another table that stores all the details of the purchases (eg.line items)
CREATE TABLE `purchase_i... | stackexchange/codereview |
I am a C++ noob and I wanna know how can i return an array from a C++ function.
I tried the following code but doesn't seem to work.
char some_function(){
char my_string[] = "The quick brown fox jumps over the lazy dog";
return my_string;
}
| stackexchange/codereview |
As I have so far learnt, a pointer is a place in memory (heap) where a memory address is stored, I really understand that and can deal with it so easily, but the question is : if it only stores an address, then it's size is symmetric with the size of the memory of the computer, and so all pointers have the same size, t... | stackexchange/codereview |
Let's say I have 2 Divs.
The first one has a height of 100px.
The last one should go from the end of the first one up to the end of the site.
I tried all what I know: When I set it to 100% it takes up the complete site, so 100px too much. When I try it without setting a height, I get only as much as I write into.
| stackexchange/codereview |
Column families for the same row belong to the same RegionServer.
So, the question here is will a RegionServer store different column families in different machine?
| stackexchange/codereview |
I am using the jqtransform jquery plugin to change the look and feel of my form elements. However, I am unable to override the width of a text input element - no matter how I style the element it is overriden. Is there any known way to override this property?
Thanks in advance,
JP
| stackexchange/codereview |
I have a DBGrid coupled to an ADOQuery using a SELECT statement.
I want to update one field for all records. For example, when I enter some data in a textbox, the Field "Name" (just an example) of all records would be changed.
| stackexchange/codereview |
I have static left column and right column on right. The problem is when I have a big image on the right column and I scroll, the image moves over the static div.
Is there a way so when I horizontal-scroll the image, it'll stop at the left div and cut off before it goes over the static div?
body {
height:100%;
}
#... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.