instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to store image documents in MongoDB. I am using java.
Any links or suggestions would be appreciated.
| stackexchange/codereview |
Is there a way to autofill a windows application login screen using .net?
Basicaly I want to simply have my user put their credentials into my application where I then launch this other program and put their credentials into the login window for them.
Thanks for the help.
| stackexchange/codereview |
I am about to start a new webapp that will be running on P/GAE and reagarding the front end we would like to use one of the mentioned frameworks (GWT, SC, Cap).
Which one do you think is the most developer friendly? It seems that Cappuccino looks stunning but you have to learn Obj-J. Sproutcore seems nicer (since there... | stackexchange/codereview |
Possible Duplicate:
C# - Get a list of files excluding those that are hidden
How do i make sure that i only get the folders that are NOT hidden?
this is what i do know but it returns all folders.
string[] folders = Directory.GetDirectories(path);
| stackexchange/codereview |
I am trying to create one table using the <span> and <div> concept.
But the table is not coming together properly. I couldn't find where the issue is. Please tell me what the problem is. I have to produce 4 to 5 lines in a same row.
Sample code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www... | stackexchange/codereview |
The Jquery :contains function is very good in that it will find an instance of a string. However what if I am performing this contains: function on a table which in the second column contains the following.
0
20
01
44
The code below when run on the above table with the column values will return every row where there i... | stackexchange/codereview |
I have a custom adapter to display a list of items with section headings. I've looked at Jeff Sharkey's SeparatedListAdapter and CommonsWare's MergeAdapter as examples of how to achieve this, and I now have a solution which works by providing a separate adapter for the content of each section.
This creates a big perfor... | stackexchange/codereview |
I'm trying to make my first servlet to run in eclipse for j2ee with tomcat 7.0, but I can't figure it out what i am doing wrong. I run the whole project like this: Right-click on my project->Run As->Run on Server, the index.html file appear to me in the browser, but when i hit "Continue", it's showing me this message: ... | stackexchange/codereview |
Here is the problem. I need to transform this query to get the right information and Im not sure how.
Database info
Id | Client_Code | Time_Date | Employee_Name | Date_Time | Time_Stamp
1 | 000010 | 2010-11-17 07:45:00| Jerry | 2010-11-17| 07:45 AM
2 | 000022 ... | stackexchange/codereview |
I want to make really good websites.
Pet projects do really help in exploring blank spots and consciously mastering aspects you want to acquire.
I'm happy with the process and the result but what to do next with this product?
Users start to use it and I don't want to support them because I want to continue building my ... | stackexchange/codereview |
android.database.sqlite.SQLiteConstraintException:
error code 19: constraint failed
error in my application and not sure why.
It happens when i add a new Inbox item into my database.
here is the Create statement of my inbox table:
CREATE TABLE inbox (uid text, title text, sender text, timeRecieved text, PRIMARY KEY... | stackexchange/codereview |
I have WCF service that returns an object that contains an array of bytes that can be saved as a PDF (my .NET component of this implementation works like a charm, the bytes are saved to a stream and they write out the PDF without issue). I can modify the WCF to return just the bytes if necessary. My question is: How ca... | stackexchange/codereview |
How do I properly load the a certain value into a textbox using jQuery? Tried the one below but I get the [object Object] as output. Please enlighten me on this, I'm new to jQuery.
proc = function(x, y) {
var str1 = $('#pid').value;
var str2 = $('#qtytobuy').value;
var str3 = $('#subtotal').load('compz.php?prod... | stackexchange/codereview |
I'm getting "external allocation too large for this process" errors in my app. Lots of these at once:
11-16 10:56:59.230: ERROR/dalvikvm-heap(2875): 1303680-byte external allocation too large for this process.
11-16 10:56:59.230: ERROR/GraphicsJNI(2875): VM won't let us allocate 1303680 bytes
11-16 10:56:59.230: ERROR/... | stackexchange/codereview |
I am trying to print a result for example:
for record in result:
print varone,vartwo,varthree
I am trying to concatenate the variables which are from an SQL query, but I am getting whitespace. How can I strip whitespace from a 'print'? Should I feed the result into a variable then do a 'strip(newvar)' then print t... | stackexchange/codereview |
Hi I need some code to send e-mail directly with javascript, without load the information on a outlook server, or any other email server.
I am using HTML as its a static website. Is there any way to achieve this or do I have to move to asp.net just to get the system.mail library.
Any help will be highly appreciated.
R... | stackexchange/codereview |
Is there a way of setting a one of delivery charge for multiple items using the paypal shopping cart. I have a website that sells postcards for the small local museum but I can only get the delivery charge added on for every different item, or not at all. Delivery is 65p, So if someone buys;
6 x "a" postcard
there is o... | stackexchange/codereview |
I am working with Bluetooth Chat sample code. In sample app the Device opens up in another screen but I have implemented the same code with the difference that DeviceListActivity is called as soon as the app is started but this opens it in another screen and I want that it should be opened as pop-up in Bluetooth chat s... | stackexchange/codereview |
We have a main repo Core where we maintain libraries we use in many projects.
I was developing a library in a separate repo ErrorHandling, that I now want to permanently merge to Core, while keeping the commit history.
Is this possible?
| stackexchange/codereview |
I am new to Qt and I have problem. I downloaded Qt SDK for Open Source C++ development from http://qt.nokia.com/downloads/sdk-windows-cpp, I add C:\QT\2010.05\bin in my PATH. When I start some demo projects it works, but when I create same project (I create a new project and copy the source code from the demo) it shows... | stackexchange/codereview |
I want to display a message while editing a node in drupal like this "we are updating this page, we will get back to u soon"
can anyone help me!
| stackexchange/codereview |
I am successfully able to read and print the contents of a text file. My text file contains 5 data entries such as
Rashmi 120
Prema 900
It must sort only the integers in descending order and swap the respective names attached to them. the first column of serial number must remain the same. Each time a new entry is ... | stackexchange/codereview |
Please can someone advise me why the following code appears to work fine in Internet Explorer, but not in Chrome or Firefox; I've tried all variations I can think of using .get, .ajax, .load but none seem to want to work. The XML file is one of w3c's examples, and I'm using jquery-latest.min.js:
$(document).ready(func... | stackexchange/codereview |
I have a ruby on rails app running on passenger / nginx. The app allows users to have download access to very large files (VM backups, sometimes 200Gigs) and I'm on a burstable connection with my ISP up to 100 Mbit/sec.
The problem is that if you begin downloading one of these large files the transfer will climb as ... | stackexchange/codereview |
Would it be wrong if write the following code
Sub Something()
Dim i As integer
Dim xRange As Range
Dim yRange As Range
Set xRange= Range("x_table")
Set yRange= Range("y_table")
For i = 1 To xRange.Columns.Count
xRange.Columns(i) = Application.Sum(y_table.Columns(i))
Next i
End Sub
without specifically dec... | stackexchange/codereview |
I'm building a text at runtime that will be put into a TextView.
This text has composed with different size fonts.
I must calculate the width in pixels of this text.
I have tried to use Paint.measureText, but it does not consider the different font sizes.
How can I calculate the real width?
this is an example:
LinearLa... | stackexchange/codereview |
I recently began exploring Scapy. A wonderful tool indeed!
I have a problem... When I monitor my network card using Wireshark and I do a regular ping from the systems command prompt with the standard PING installation, wireshark pops up with "Ping request" and then "Ping reply" indication that it sent a reply. But whe... | stackexchange/codereview |
I decided to try project euler problem 17 today, and I quickly wrote a pretty fast code in C++ to solve it. However, for some reason, the result is wrong.
The question is:
If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
If all the... | stackexchange/codereview |
I can't seem to ascertain whether or not the PHP Adodb Active Record, DB ORM secures against SQL Injection.
http://phplens.com/lens/adodb/docs-active-record.htm
Specifically I am using the updating and inserting methods, e.g.:
$person = new person();
$person->name_first = $_POST['firstname'];
$person->name_last = $_PO... | stackexchange/codereview |
I'm attempting to map a database field ("LS_RECNUM") possible values of NULL, 'M' and 'F' to a property with a Gender enumeration type.
The mapping looks like this:
Map(x => x.Gender).Column("LS_GENDER").Access.Using<GenderPropertyAccessor>();
...and the GenderPropertyAccessor class looks like this:
using System;
usin... | stackexchange/codereview |
I have 2 tables:
The question table with the following structure:
id
title
userid
date
and answers table with the following structure:
id
idquestion
userid
message
date
I want to show all the questions and the latest answer to that question.
For example, if we have 5 questions, I would like to get something like this... | stackexchange/codereview |
How do I create a subclass in C# for ASP.NET using Visual Studio 2010?
| stackexchange/codereview |
I am trying out ruby by making a program i need. I have a custom class, and I need an array of objects of that class. This custom class has some attributes that change in the course of the program.
How can I find a specific object in my array, so I can access it and change it?
class Mathima
attr_accessor :id, :tmimat... | stackexchange/codereview |
Almost all C# files have using statements at the top of the page
i.e.
using System;
using System.IO;
//code....
What do the using statements mean that are at the top of the page? Why is the syntax different from other using statement declarations.
i.e.
using (ResourceType resource = expression) statement
| stackexchange/codereview |
I'm working with some legacy code, and trying to get it to compile in Linux. It was originally built in visual studio, whose compiler didn't keep with standards. Anyways, now I'm going through the code fixing it and I came across a templated function that is declared globally. I get the error:
/home/blah/blah;/blah.h:... | stackexchange/codereview |
I have an ASP DropDownList that gets populated on the Page_Load event, after i select an item and hit a button the selected item gets cleared and the first item in the DropDownList gets selected. (The DropDownList is only populated when the page is not postback)
if (!IsPostBack)
{
List<Country> lCountries = new Lis... | stackexchange/codereview |
How does an assembler handle classes and objects when a programme is compiled? And how is this stored in RAM and the executable file?
At first, memory is allocated according to the class' size, for example 20 bytes. In these 20 bytes, all variables of the class are stored. But there are two problems:
How do pointers t... | stackexchange/codereview |
As far as I understand, the purpose of a Bridge pattern is, quoting from Wikipedia, "to decouple an abstraction from its implementation". Well isn't that exactly what an interface does. By deciding on an interface and forcing a class to use that interface, any other class can interact with this one without the need for... | stackexchange/codereview |
Hi
In my application I append a date received from the user in a dd/mm/yyyy format for example("11/11/2010") to a selection list using ajax and js.erb file
my selection list code is
<select name="hour[reported_date]" id="customDate_link_hours">
<option value="Today">Today</option>
<option value="Yesterday">Yes... | stackexchange/codereview |
I have a csv file that required to be encrypted. I want to ask that is there any difference between encrypt the content and encrypt the file? Or they are the same? Because our client doesn't clearly specify what they want?
Thanks,
| stackexchange/codereview |
I have used one javascript function which is being called after login on facebook connect.
var FB_API_KEY = "api key";
var FB_CHANNEL_PATH = "xd_receiver.htm";
FB.init(FB_API_KEY, FB_CHANNEL_PATH, {permsToRequestOnConnect : "email"});
FB.Connect.ifUserConnected(FB_ConnectPostAuthorization);
function FB_ConnectPos... | stackexchange/codereview |
I need to select a price range from 0 to 50 euros.
I have this query:
SELECT * FROM products WHERE price >= 0 AND price <= 50;
Is there a better way to do it?
| stackexchange/codereview |
What are the environments a software product can go through. Up to now I've only seen:
designing
development
testing
staging
uat
performance
production
Anything else?
| stackexchange/codereview |
I'm trying to make iPhone-style EditText element on android.
The one that will have an additional clear button appear on the right after text input.
Adding a new button is not a problem, but I'm a bit stuck with another thing.
A button occupies some space on the right part of EditText, and now characters display beneat... | stackexchange/codereview |
I see there's no "duplicate" when I right click on a .xib. So is the way to do it: just to go to finder, copy the file to another name, and then drag it to my resources? Would that be all I'd need to do?
[Note: just wondering if there's other files or settings I need to bother with.]
| stackexchange/codereview |
I am upgrading to emacs23. I find that my emacs.el loads much more slowly.
It's my own fault really... I have a lot of stuff in there.
So I am also trying to autoload everything possible that is currently "required" by my emacs.el.
I have a module that exposes 12 entry points - interactive functions I can call.
... | stackexchange/codereview |
I do have a TableLayoutPanel with AutoScroll=true. Works fine: But is there any chance to change the style of the scrollbars. I'd like to have smaller scrollbars.
Any ideas - Regards HW
| stackexchange/codereview |
Is there already an implementation of all the date, time, duration and interval usage of the ISO 8601 standard in ruby? I mean something like a Class where you can set and get the details like, year, month, day, day_of_the_week, week, hour, minutes, is_duration?, has_recurrence? and so on which also can be set by and e... | stackexchange/codereview |
I created a masked image using a function form an iphone blog:
UIImage *imgToSave = [self maskImage:[UIImage imageNamed:@"pic.jpg"] withMask:[UIImage imageNamed:@"sd-face-mask.png"]];
Looks good in a UIImageView
UIImageView *imgView = [[UIImageView alloc] initWithImage:imgToSave];
imgView.center = CGPointMake(160.0f,... | stackexchange/codereview |
UPDATED 2010-11-25
A legacy stand-alone application (A1) is being re-created as a web application (A2).
A1 is written in Delphi 7 and uses a MS Access database to store the data. A1 has been distributed to ~1000 active users that we have no control over during the build of A2.
The database has ~50 tables, some which co... | stackexchange/codereview |
I am developing an augmented reality iOS app (iPhone/iPad/iPod) and I would like to have a list of devices where this feature is supported.
I mean the compass and the geomagnetic field so that I can get the orientation of the device in all degrees of freedom.
Thanks!
| stackexchange/codereview |
I am developing an application in which the layout is independent of screen resolution.
Now my problem is that in TextView the textview layout does change itself when the resolution of screen changes but the size of text remain same.
I want that when the resolution is high, according to that the text size should also a... | stackexchange/codereview |
I'm having a problem with abstract/virtual classes, a replication of the problem here:
#include <iostream>
class A
{
protected:
virtual std::string getDateTime() = 0;
virtual void Write(std::string data, bool addDate) = 0;
virtual bool CheckFile() = 0;
virtual bool OpenFile(std::string path) = 0;
v... | stackexchange/codereview |
I'm new to ASP.NET MVC 3 and looking to upgrade our website from other tools to asp.net mvc 3.
In current scenario, I have Products which are user specific and each product have Primary Category, Category and Sub Category. When the User logins in, user can only view the products applicable to him (with paging). On the ... | stackexchange/codereview |
I've got a table that looks something like this:
CREATE TABLE `mailer__opens` (
`id` int(10) unsigned NOT NULL auto_increment,
`idSubscriber` int(10) unsigned NOT NULL,
`date` datetime NOT NULL,
PRIMARY KEY (`id`)
)
I'm trying to build a query which returns only the results where the value in idSubscriber is repe... | stackexchange/codereview |
How would you convert following code to use only jquery library?
<html>
<head>
<script>
function do_it(value)
{
function newXMLHttpRequest()
{
try{ return new XMLHttpRequest(); }catch(e){}
try{ return new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){}
try{ return new ActiveXObject("Microsoft.XMLHTTP"); }catch(e)... | stackexchange/codereview |
Some time ago I found Joe Armstrong's example on Erlang and websocket, but I couldn't get it work.
I fixed an error and a couple of warnings in the Erlang code but with Apache I wasn't able to get a good result.
Can anybody give me some hints with a really simple example? Do I need to put the web page with the JavaSc... | stackexchange/codereview |
As above, I'm implemented the client side validation no problem, and it pops up the relevant messages as required. However, the submit button still appears to submit the form even though the form is not in a valid state.
The controller method throws it out immediately, because ModelState is not valid, but is there a f... | stackexchange/codereview |
Using MacPorts i have just installed arm-elf-gcc on to my MacBook Pro. This worked flawlessly and all seems to run fine.
However, after compiling a simple hello world test program in C and C++ and trying to run either on the target board (an ARM9 based board running Debian Linux) they immediately seg fault.
I'm a bit s... | stackexchange/codereview |
I have looked in vain and I need to get a some linked text and add target="_blank" to it. I can't use js as it's for a newsletter.
The linked text could be just a word or it could be a url that is linked.
I need to get the link text and the link and then recreate it with the target="_blank" in..
Any ideas?
Just to clar... | stackexchange/codereview |
I would like to make sure an advice is executed every time an exception is thrown by a method that is annotated with a specific annotation. Is this possible?
| stackexchange/codereview |
i am very new to play with JSON. I need to iterate over JSON response coming from AJAX, actually, i am fetching checkboxe values from db table in the form on 2,3,7,9,3. Now i am stuck with iteration on each number.
If you run following code in FF console area you will notice it is looping against each numeric NOT THE V... | stackexchange/codereview |
I have a problem, I need to compare two inputstreams fast.
Today I have a function like this:
private boolean isEqual(InputStream i1, InputStream i2) throws IOException {
try {
// do the compare
while (true) {
int fr = i1.read();
int tr = i2.read();
if (fr != tr... | stackexchange/codereview |
I have implemented the following functionality that connects to webservice and downloads a favicon from a given site and saves it to a byte[] which I store in our database. I now want to set it up so that it saves the icon to the disk. However I am getting a "Parameter is not valid" when I try and create the image from... | stackexchange/codereview |
Have a table called person.
which has personid and contactid.
if a person is deleted then i wish to remove the person from the db and also and related contacts for that person.
Is it better practice to do the DELETES in ONE Store procedure or should my business layer first call the pContactDelete and then call pPerso... | stackexchange/codereview |
I think this gets the first element called <gallery>
$gallery = $objDOM->getElementsByTagName('gallery')->item(0);
I'm trying to get <gallery name="Third">
I think I need something equivalent to:
$gallery = $objDOM->getElementsByTagName('gallery[@name="Third"]')->item;
Thanks, Andy
| stackexchange/codereview |
I have a hyperlink/image button that uses javascript to submit a form,
<p>
<a href="#" onclick="checkOutFrm.submit();">
<img src="images/btn-checkout-basket.gif" width="169" height="28" alt="Checkout" border="0" />
</a>
</p>
and would like to add a checkbox that would disable the hyperlink until it is checked... | stackexchange/codereview |
What kind of debugging tools you've been using to debug working binaries?
Is there are debugging toolkits in addition to GDB?
The only reason is that I'm quite new for system debugging and I've been debugging my system service.
Sultan
| stackexchange/codereview |
Should encodeURIComponent be used to encode parameters of post ajax request?
Thanks Yosef
| stackexchange/codereview |
I am using PHP to work with JQuery and Javascript and integrating fullcalendar.
I am happily viewing the calendar with events over months and weeks. I am also happily creating and editing events in fullcalendar by using event.Click, event.Resize and eventDrop.
However, when I return from the edit and then try to chang... | stackexchange/codereview |
I'm profiling a web application, trying to cut on unnecessary delays on queries and I found one that seems to be simple, but take a lot of time for execute.
Using EXPLAIN I get the following messages:
Using where; Using temporary; Using filesort
This is the query:
SELECT `bt`.`id_brand`
FROM `brands_translation` AS `b... | stackexchange/codereview |
Is there a method to determine, whether the echo/print in a random place in a file is being buffered with ob_start? Thanks
| stackexchange/codereview |
I have a particular set of views relating to one of my controllers, whereby I want any call to *_path or *_url to append a set of parameters.
Is there some magic method I can override that will let me do this? I have no idea where in the Rails code the *_path or *_url methods are even handled.
Edit for clarity: I'm lo... | stackexchange/codereview |
I'm trying to find all the methods that an interface grants me through reflection. I have a type array which I verify has only interfaces, from there I need to extract all the methods.Unfortunately, If I do something like typeof(IList).GetMethods() it only returns the methods on IList not those on ICollection, or IEnum... | stackexchange/codereview |
I have the following Linq to group a list by year, then by month.
var changesPerYearAndMonth = list
.GroupBy(revision => new { revision.LocalTimeStamp.Year, revision.LocalTimeStamp.Month })
.Select(group => new { GroupCriteria = group.Key, Count = group.Count() })
.OrderBy(x =>... | stackexchange/codereview |
While using Google Analytics for android, if i use
tracker.start("UA-YOUR-ACCOUNT-HERE", 20, this)
then every 20 seconds, events will be dispatched automatically even if i dont do it manually using
tracker.dispatch()
My Question is, what happens if the user quits my application within 20 secs?
will it be dispatched?
o... | stackexchange/codereview |
I'm having some difficulty understanding a certain aspect of the @async annotation, and possibly the workings of threads and threadpooling as a whole. When I set this in my spring configuration file:
<task:executor id="WhifExecutor" pool-size="10"/>
<task:annotation-driven executor="WhifExecutor" />
wouldn't that mean... | stackexchange/codereview |
i having a high mysql cpu usage , on server Intel(R) Xeon(R) CPU E5520 @ 2.27GHz 16 core of processors and 16 G.B ram running on centos 5.4
the load average for the server 500 - 900 , that's really HIGH NUMBERS
here is some information to help us out
mysql configuration file /etc/my.cnf
[mysqld]
local-infile=0
safe-sho... | stackexchange/codereview |
Anyone know how to ignore the build folder when doing a 'Find in Projects' on NetBeans (v6.9.1).
Currently the Search results pane shows all results from src folders but also those from the build folder so if your project contains a lot of JSP files for example, many results are duplicated...
| stackexchange/codereview |
Hi so this is my situation up to now. I've added a UIImageView to Interface Builder and set it to a .png image of a needle (Needle.png), I've also connected it to the corresponding IBOutlet in Xcode.
In my viewDidLoad: method I set the anchor point,
- (void)viewDidLoad {
[super viewDidLoad];
[needle.layer set... | stackexchange/codereview |
I have a modified CRM 4 application that uses cases as the main enitity. In the application we have a number of teams setup and a number of queues that correspond to each team. I have written a plugin that restricts the queues a user can see depending on whether or not they are a member of the corresponding team (on th... | stackexchange/codereview |
I'm having problems with using the MVC pattern in a command line application.
Are there some good and/or simple c/c++ examples which i could study.
| stackexchange/codereview |
I want to add a comment to some elements in a Flex document, and process the comments using ASDoc. I can easily do this for the script portion, but I end up with a ton of ugly "This property can be used as the source for data binding." messages for each element I declared in Flex.
Is there any way to embed a comment i... | stackexchange/codereview |
I am running my app on google app engine. All I have is a simple servlet that is trying to use Jsoup. However when I run the application I get java.lang.ClassNotFoundException: org.jsoup.Jsoup.
I am using Eclipse so I added the jsoup jar file in the Java Build Path -> Libraries
| stackexchange/codereview |
Here's the DB design (DDL):
CREATE TABLE Countries
(
iso_code CHAR(2) NOT NULL,
name VARCHAR(50) NOT NULL,
PRIMARY KEY (iso_code)
);
CREATE TABLE Zips
(
country_code CHAR(2) NOT NULL,
code VARCHAR(10) NOT NULL,
PRIMARY KEY (country_code, code),
FOREIGN KEY (country_code) REFERENCES Countries (iso_code)
)... | stackexchange/codereview |
I'm refactoring some MVC code that originally used POST'ed form data. The form's fields are serialized using jquery's serialize() method and sent to an MVC controller Save Action that checks things out and redirects as appropriate (if errors in form values, redirect to the Edit Action, if fine then save and redirect to... | stackexchange/codereview |
I need to give user one alert after saving an item.So I am using an open script to display this alert.But when I am moving out from that page and
and coming back through history.go(-1) ,again getting the alert.How to make sure that this alert comes only if I am saving the item?
| stackexchange/codereview |
quick question regarding Array's in xcode. I have ht efollowing code, which is supposed to go through an array of strings which it has got through php and JSON, and trun these strings into a custom object with the strings as the ivars for the object then add that object to a new array:
for (int i = 0; i<[list count]; ... | stackexchange/codereview |
I need to add functionality to my iPad app so that I can save and load notes from a UITextView then load them when the user selects the date in the UIDatePicker that it was originally saved on, much like a calendar, notes for different dates.
I have asked around on Stack Overflow and people have been spoon feeding me c... | stackexchange/codereview |
I've got the hex code of a DLL (which was added as an assembly in my SQL DB).
Is there a way to use this hex code to rebuild my dll?
The DLL is a .net dll, written in VB.
| stackexchange/codereview |
I am sitting on a cross development chair and created a JFFS2 file system to be used on the target.
Inside that tree are several directories and files that have root permissions only.
When I git add this tree I get
error: Unable to index file [file with problem]
fatal: adding files failed
I don't want to run git comman... | stackexchange/codereview |
is there an easy way to disable double buffering in a java applet if necessary?
I have a java applet that displays and animates a musical score so I needed it double buffered. However for teaching purposes I need to print this applet. The problem is that before I added buffering the output to the printer was vector bas... | stackexchange/codereview |
what is the best way to uniquely store and image name in a DB, assuming two persons have the same image name, or the same user uploads the same image twice. How can i manage scenerios like this so that when i want perform operations like updating, deleting, i don't end up deleting both images or all. My DB is MySQL.
Ed... | stackexchange/codereview |
I have an ArrayList of Strings in my java bean. I want to be able to add/remove from this list at design time in the property editor. How do I implement this? I am coming back to Java after like 5 years so I'm a little stupid. I have managed to get all my simple type properties to be editable in the editor, but thi... | stackexchange/codereview |
Hi i have a css style sheet which works fine untill you shrink the window then the footer gradualy moves up, i have been looking at it for a long time and i really carnt figure out what is wrong with my code here is my css stle sheet:
/* *
* Misc *
* */
* {
margin: 0;
padding... | stackexchange/codereview |
I have a relative positioned div with many absolute positioned img in it:
<div class="container">
<img />
<img />
</div>
.container{
position: relative;
border: 4px solid #ccc;
}
.container img
{
position: absolute;
}
What am I trying to achieve? I'm using a jquery image fader plugin to fade in ... | stackexchange/codereview |
<style type="text/css">
.model {
display: none;
}
.header {
cursor: pointer;
}
</style>
<div class="model">item <span>1</span></div>
<div class="header">Add an item</div>
<div class="itemlist">
<div>item <span>1</span></div>
<div>item <span>2</span></div>
<div>item <span>3</span></div>
</div>
If the user cli... | stackexchange/codereview |
Do the loop terminates when it qualifies the return statement? even when value is null?
| stackexchange/codereview |
I'm starting C++ programming in my first job. I'm a CS student and I have learn programming in Java. What advice would you tell me to watch out so I don't cause trouble in my new job?
Would you have any advice or references would be appreciated.
(example: I know C++ is more likely to have memory problem than Java)
Tha... | stackexchange/codereview |
From a winforms app, I am trying to open a document stored on a shared drive accessed by UNC. It works fine on my network, but fails on my client's network. If I check to make sure the file exists, it says it does, but when I try to open it I get an error message saying
System.ComponentModel.Win32Exception:
The s... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.