instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
hello i want to apply tween motion on UIcomponents using actionscript in flex.
i searched alot but didn't find something useful help required.
thanks in advance.
| stackexchange/codereview |
I'm using TinyMCE ( http://tinymce.moxiecode.com/index.php ) as an editor on a webproject running on a Java-platform (Tomcat, Spring)
There's a filemanager on the webpage for TinyMCE:
http://tinymce.moxiecode.com/plugins_filemanager.php
But as stated on that page:
"The MCFileManager is a online file management utility... | stackexchange/codereview |
I have this embed code for a flash project:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="333" height="380" id="RallyHorseRace">
But it is not showing up in Chrome. Any suggestions why it is not sho... | stackexchange/codereview |
I'm working on a project developed with JSF 2.0 (Mojarra 2.0.3) front end and deployed on Glassfish v.3.0.1 server. Application must accept ISO-8859-2 charset and write data to MySql database.
To problem is that data is not in right charset.
The request Http header has attribute value:
content-type: application/x-www... | stackexchange/codereview |
I use aa python program which inserts many new entries to database,
this new entries are spread across multiple tables.
I'm using load data infile to load the file, but this solution is only for one table, and I don't feel like to do this multiple times.
I found http://forge.mysql.com/worklog/task.php?id=875 this but... | stackexchange/codereview |
Does anyone know an easy way to use jQuery (or other Javascript if necessary) to extract only the Javascript portion of an anchor tag's href attribute (like the one below), so it can be assigned to another event at runtime?
<a id="FancyLink" href="javascript:DoSomething('Input1')">Do</a>
I know how to get the anchor's... | stackexchange/codereview |
I've been trying to think of a way to dynamically return property values for a class using __call instead of creating a slew of functions whose only purpose would be to return those values. The idea I have is to be able to request ( for example ) $this->fetch_PersonFirstName() and have the class check if $this->person[... | stackexchange/codereview |
So I copied the sample code from the Moq home page pretty much verbatim, and am getting a castle proxy exception.
Here's my code (as a console app for an easier sample)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Moq;
namespace MoqTestConsole
{
public interface ILove... | stackexchange/codereview |
Let's say I have a Question and QuestionHeader class. Question extends QuestionHeader. My mapping looks like this:
<entity class="hr.leads.services.model.jpa.QuestionHeader">
<table name="question" />
<inheritance strategy="SINGLE_TABLE" />
<attributes>
<basic name="description">
<column... | stackexchange/codereview |
I am coming across situations such as this:
if(x == NULL)
{
printf(" The value of X is Null, exiting..");
return -1;
}
and this "situation" gets repeated many , many times..... laziness aside is there a better way to write this ?
Cheers!
| stackexchange/codereview |
I need a memory efficient int-int dict in Python that would support the following operations in O(log n) time:
d[k] = v # replace if present
v = d[k] # None or a negative number if not present
I need to hold ~250M pairs, so it really has to be tight.
Do you happen to know a suitable implementation (Python 2.7)?
EDIT... | stackexchange/codereview |
Take for example following code from a class:
public class Employee : IEntity
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int EmployeeID { get; set; }
}
public class Company : IEntity
{
public string Name { get; set; }
public string TaxID { get; set }
}
I al... | stackexchange/codereview |
I have next dependecy property:
public static DependencyProperty IsInReadModeProperty =
DependencyProperty.Register("IsInReadMode", typeof(bool),
typeof(RegCardSearchForm), new PropertyMetadata(false, ReadModeChanged));
and I have next method which handle Property changed event:
public static void ReadModeChan... | stackexchange/codereview |
var a = window.a || {};
| stackexchange/codereview |
<td><span id="v">77483.2231</span></td>
When the #v value changes I want to get an pop-up alert
$('#v').change(function() {
alert("ok");
});
That's my code, its not working though, what could be wrong?
Thanks
Jean
| stackexchange/codereview |
This is a rather general question, as I don't have any solid evidence atm.
I have an iPhone app with about 20,000 users. It allows users to message each other, and saves those messages in core data. The only other thing it saves in core data is the users profile, a copy locally and a copy on the server.
I have a small... | stackexchange/codereview |
I have the exe of an old VB application. It seems that this app saves the data in .hat files, txt files, and a .fil file. I'm trying to create a new app and I want to migrate the data in OpenOffice Base. I managed to migrate the .txt, .hat files but I have a problem migrating the .fil file. I open it in Calc or Writer ... | stackexchange/codereview |
I've created a script that will offer the user a choice in which action to run from the same program. The problem is, the person who created the program I'm calling set parameters that do not have switches like / or -. Whenever I run the batch and try to call the correct action, only the executable runs without the par... | stackexchange/codereview |
I am writing a Linux CLI program. I need to get a password from the user and, obviously, I don't want the password to be echoed to the console.
There are several solutions available here, but they are all for plain C.
C command-line password input
How to mask password in c?
Getting a password in C without using getpa... | stackexchange/codereview |
i am trying to call my Rails app using Ruby code .
I m having 2 tables .
Blogposts (id,name,slug,desc)
Comments (id,data,node_id,node_type)
I m trying to post a comment through my ruby code.
The Url for me is like
http://localhost:3000/api/blogs/comment.xml?slug=blogtitle-0&comment=aaaaaaaaaaaaaaa
I dont know how to ... | stackexchange/codereview |
Consider the factory method below which takes some meta data and creates a column of the relevant type.
Its all good until I encounter a column which relies on some additional data (ColumnType.DropDownList). This needs some additional data (a list of values) for display purposes.
I dont want to provide this data at a... | stackexchange/codereview |
We have an app with a long polling scheme over HTTP (although this question could apply to any TCP-based protocol). Our timeout is fairly high, 30 minutes or so.
What we see sometimes is mobile devices hop from IP to IP fairly often, every minute or so, and this causes dozens of long-lived sockets to pile up on the ser... | stackexchange/codereview |
I have a Lua function that returns table (contains set of strings)
the function run fine using this code:
lua_pushstring (lua, "funcname");
lua_gettable (lua, LUA_GLOBALSINDEX);
lua_pushstring(lua, "someparam");
lua_pcall (lua, 1, 1, 0);
the function returns a table. How do I read it's contents from my C++ code?
| stackexchange/codereview |
I created an iPhone app "App1" and installed on my device and everything worked fine. Now, I copied all the code from App1 and made App2. But now when I run the App2 is replaced the icon of App1 and completely replaces the App1 with App2 on the iPhone device. What can I do to resolve this issue?
| stackexchange/codereview |
I want to ask how to check if a variable is table 1x8 or 8x1 of type logical?
I know I can check the class of an array for logical like this:
strcmp(class(a),'logical')
I know I can get the size of table like this:
[h w] = size(a);
if(w==1 & h==8 | w==8 & h==1)
But what if table has more than 2 dimensions? How can I ... | stackexchange/codereview |
So I have a Blog object which has a list of tag objects (List<Tag>).
I'm trying to create a method that takes a list of tags and returns a list of blogs that contain all the tags in the passed in list.
I was able to make a method that will return a list of blogs if it matches one tag, but not a list of tags.
to do that... | stackexchange/codereview |
WPF is a great toolset, and XAML databinding is very powerful, but I've often run into difficulty arising from its transparency: It can be tough to debug a databinding failure when no errors are thrown.
For example, I recently had to change a Style declaration like this:
<DataGrid.RowStyle>
<Style>
<Style.T... | stackexchange/codereview |
I have a MIME-encoded messages (in Maildir), that are having both base64-encoded headers (solved by lurking for related question ( Decode an UTF8 email header ), decode('MIME-Header', $val), main body in plain text and a text/plain base64 encoded data in the body;
It is said, that base64 data is encoded in utf-8.
Howev... | stackexchange/codereview |
I want to use NHibernate in my project, and it comes with log4net by default.
In my opinion, it would be a wiser choice to go for Nlog as it still gets updates, log4net on the other hand is completely outdated.
Is there a best choice because I don't really believe in using outdated technologies in my application. On th... | stackexchange/codereview |
I am having a little trouble with parsing XML from a google checkout response. The XML is coming straight from the google server so there is no problem with the XML itself.
I want to get hold of all the new-order-notification tags
I tried this but get an empty array() returned everytime.
$xml = new SimpleXmlElement($r... | stackexchange/codereview |
I created a structure to represent a fixed-point positive number. I want the numbers in both sides of the decimal point to consist 2 bytes.
typedef struct Fixed_t {
unsigned short floor; //left side of the decimal point
unsigned short fraction; //right side of the decimal point
} Fixed;
Now I want to add two f... | stackexchange/codereview |
I want to create an on-screen display, i.e. text or simple graphics that appear on top of everything else being displayed. I know in Linux this is achieved with xosd, but how do you do it in Windows? (Assume XP and up if it makes it easier, and I would also be interested in knowing if the method is different in Vista/7... | stackexchange/codereview |
We have a Java/Spring/Hibernate codebase which is the core to our pretty large platform. We also have quite a few separate Java webapps (Struts or Spring MVC) running alongside which reference the core system, pulling in the applicationContext and services from it.
We have a requirement to build another webapp that als... | stackexchange/codereview |
I have this website to search for books, there is only ONE text field, to search by words, title author, whatever it types.
if the name of the book is hello goodbye, and the author is A. Jones
if i type hello
i get the result of the book (my query is using the like statement)
i check if title like %string_introduced... | stackexchange/codereview |
I'm having trouble with the Authlogic-gem. Before I write my own auth-scheme I wanted to ask if anyone had the same problem:
When logging in it successfully executes the user_session.save and redirects, but the "current_user" is not set. It works perfectly locally, but it won't when using Passenger.
I updated Passenger... | stackexchange/codereview |
Is it possible to set up a ListView so when it scrolls it only scrolls in intervals related to the height of the List Item. In other words if my item height is a number h and a swipe of the list is given a number p to represent how hard the swipe is so it can go further if the swipe is harder is it possible to set the ... | stackexchange/codereview |
I have some pretty simple code that attempts to slide a custom progress bar over. Here is the XAML:
<!-- Progress display -->
<uControl:ProgressDisplayPie
x:Name="soakProgressDisp"
Canvas.Left="357" Canvas.Top="29"
ProgressValue="0" Height="198" />
In response to a button click, the progress bar slides over:
... | stackexchange/codereview |
I’ve problem with this function using winsock2. When program leave this function in debug mode I receive 2 statements (only during exiting this function):
“Run-Time Check Failure #2 - Stack around the variable 'filePath' was corrupted.”
“Run-Time Check Failure #2 - Stack around the variable 'recBuf' was corrupted.”
I’m... | stackexchange/codereview |
I have this text. . .
"I got them from the Wicked Witch of the East, when my house fell on her and killed her," she replied.
"Where did you get the mark upon your forehead?" continued the voice.
"That is where the Good Witch of the North kissed me when she bade me good-bye and sent me to you," said the girl.
Again the... | stackexchange/codereview |
I developed a large web application with VS2008 installed on an old Win2k3 server. I now have Visual Studio 2010 installed on Win7 Pro and work on the application fine.
Parts of my web application need to switch into and out of SSL which they did on the Win2k3 server using the IIS tool that creates a private SSL cert.... | stackexchange/codereview |
I am doing asp.net project using C#.I want to display the contents that are being typed in HtmlEditor control onto a A4 size as preview and i also want to save this content to a file(.doc or .txt).
How do i do it??
Please help
| stackexchange/codereview |
How can I get all the IP addresses and associated host names in a LAN?
| stackexchange/codereview |
I've got the following problem.
We have Development, Testing and Production environments for our system. All these environments will contain SQL Server 2005, but different editions. The Production will work with Standard Edition.
Now we would like to install Dev Edition on other servers (to save our money), but as far ... | stackexchange/codereview |
I have a list that i fill with data from a database, and now i want to sort this data by title and date.
Im still new to programming for Android, so cant figure out how to do this here, hope someone can help.
Here is how the list is filled:
public void fillData()
{
// get all the data from database
DBAdapte... | stackexchange/codereview |
I wrote a small app that Generates words and then verifies them against Microsoft Word 2007 dictionary.
This works great for me when I test it against the english dictionary with 3 letters length(and I guess with more letters) but for some reason it stops working when I try to run it against the hebrew dictionary.
Does... | stackexchange/codereview |
When I write this, compile it, and run:
int x;
scanf ("%d", &x);
while (x!=4) {
scanf ("%d", &x);
}
then when inserting char or double number less than 4 it enter an infinite loop. When inserting double greater than 4 it terminates.
Any explanation for this?
| stackexchange/codereview |
I have a quick question, suppose I have the following code and it's repeated in a simliar way 10 times for example.
if blah then
number = number + 2^n
end if
Would it be faster to evaluate:
number = number + blah*2^n?
Which also brings the question, can you multiply a boolean value times a integer (Although I am ... | stackexchange/codereview |
My iPhone app is crashing and getting EXC_BAD_ACCESS error when using this code:
NSError *error;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); //1
NSString *documentsDirectory = [paths objectAtIndex:0]; //2
NSString *path = [documentsDirectory ... | stackexchange/codereview |
I added
<key>UIInterfaceOrientation~ipad</key>
<string>UIInterfaceOrientationLandscapeRight</string>
in Info.plist
When I run the app, app can't show full.
Why and how to make full to rightbar in UISplitview ?
| stackexchange/codereview |
Alright, I am not sure if this is even possible with Java specifically, but I am working on a a small program very similar to synergy and I need to be able to completely disable input from the mouse and keyboard on the host computer, but still record the input within the program. I can not think of any clean and robus... | stackexchange/codereview |
I am reading existing posts on Generics at SO. If Generics has so many advantages like Type safety, no overhead of boxing/unboxing and it is fast, why not always use it? Why would you ever use a non-generic object instead?
Edited (Question further extended below)
I am a bit confused. The last time I read about Generics... | stackexchange/codereview |
In WPF MVVM environment, I'm trying to ensure that focus is given to a TextBox. What happens is that the Cursor appears in the TextBox but is not flashing and the TextBox does not have focus. The code is:
I have a Popup containing this UserControl:
<UserControl x:Class="Rendevous.BusinessModules.AdministrationModule.Lo... | stackexchange/codereview |
Standard IEEEDoublePrecision
What is the largest and smallest number be displayed in the standard? how is it?
| stackexchange/codereview |
I am using a list view with page size 10 and added a numeric data pager for paging.everything is working fine but how i can hide the page number shown below when the data in list view is less than 10 and show it only data is greater than 10.
pls help me out....
| stackexchange/codereview |
How much HTML5 android 2.2 's browser supports?
Is there any place/doc where I can find that what all HTML5 tags are supported by android 2.2 browser.
Thanks for help.
| stackexchange/codereview |
HI
I need to change the application title as when i move to new tab.
i tried to change the app_name with varying string in string.xml but that is not actual dynamic change that i want.
is there any alternative way of doing this?
| stackexchange/codereview |
I would like to do some microbenchmarks, and try to do them right. Unfortunately dynamic frequency scaling makes benchmarking highly unreliable.
Is there a way to programmatically (C++, Windows) find out if dynamic frequency scaling is enabled? If, can this be disabled in a program?
Ive tried to just use a warmup phase... | stackexchange/codereview |
hi
i need some help with vba.
i know that when you want to copy excel cells based on a condition, you do so by right clicking the sheet and entering the visual basic screen.
thing is, i'm not very familiarized with vb. i've read some similar posts but haven't been able to understand them completely.
this is what... | stackexchange/codereview |
I'm still working on my number guessing game in Common Lisp, and I've reached a standstill. When the following code is invoked:
;;;; number-game.lisp
;;;;
;;;; Andrew Levenson
;;;; 10/25/2010
;;;;
;;;; Simple number guessing game. User has
;;;; five guesses to determine a number between
;;;; one and one hundred, inclus... | stackexchange/codereview |
After looking at the available options, I'm looking at making a plugin for jQuery (and coincidentally, a library for ASP.NET MVC) that will provide some simple methods for dynamically adding objects to a collection of a ViewModel.
I speak of things like this ( http://www.highoncoding.com/Articles/640_Adding_Multiple_N... | stackexchange/codereview |
I am wondering if it is still worth with modern compilers and their optimizations to write some critical code in C instead of C++ to make it faster.
I know C++ might lead to bad performance in case classes are copied while they could be passed by reference or when classes are created automatically by the compiler, typi... | stackexchange/codereview |
I cant see my error of Sql. It cuts my queries, and the error is meaningless except it informs there is an error.
Like
error in statement "select * from o.."
how can I get full query, so i can investigate how the error occured?
I previously wrote a sql function that throws debugging string if sql has error. I though ... | stackexchange/codereview |
I'm not a fan of JSF. Spring MVC makes a lot of sense to me and I've used it in the past.
Can you talk me out of it or provide tips for integrating it nicely into JEE6 and share and gotchas with CDI.
I don't mind having an application context just for the MVC stuff but if I use @Inject or @EJB in my MVC controllers, wh... | stackexchange/codereview |
In data structures, I know that the size of the structure depends on the internal links from one section to another. Is there a way, aside from JProfiler to tell exactly how much memory is tied up in a particular structure?
For example, the class project this semester has to do with applying various structures to a so... | stackexchange/codereview |
I'm used to using VB.net for web programming.
Often, I have something like:
Dim s as string = Session("s")
I get a string value for s from the web session. If there is no value in the web session, I get a blank string.
However, AFAIK, in C#, I have to have something like the code below to do the same thing.
string s;... | stackexchange/codereview |
I have a main navigation but I need to apply the class of 'current' to the <li> if it matches the URL I have specified it should.
This is what I have:
$(function() {
var url = location.pathname;
if(url.indexOf('girls')) {
$("li#nav-01").addClass('current');
}
if(url.indexOf('boys')) {
$("li#nav-02").... | stackexchange/codereview |
I have a project in Eclipse 3.4.1 where i would like to use Japanese symbols (like 象形文字).
The problem is that such symbols cannot be displayed correctly in Eclipse and i see black boxes instead of them.
I am using "Utf-8" encoding for all files.
Could anyone advise me how to fix this ?
Thank you
| stackexchange/codereview |
I'm writing code to deal with errors, and part of this is printing a message to the user (eg "Whoops!")
However, the error code does not know what has gone before, so there is a danger that the error message might be hidden.
For example, what if the error occurs when generating Javascript? Then the HTML output would lo... | stackexchange/codereview |
I've looked over this about 15 times by now to no avail. I cannot understand why this is seg faulting? It doesn't even get to the "print" statement which makes no sense. the error codes actually do work tho (when I dont have a shared memory present) I have a load.c program but it works perfectly (im 100% sure of this)
... | stackexchange/codereview |
I started with the following code:
class Vereinfache2_edit {
public static void main(String[] args) {
int c1 = Integer.parseInt(args[0]);
int c2 = Integer.parseInt(args[1]);
int c3 = Integer.parseInt(args[2]);
/* 1 */if (c2 - c1 == 0) {
/* 2 */if (c1 != c3) {
... | stackexchange/codereview |
Does anyone know how I would load up a flex application and on load the application would open on a different tab within the application. The only thing I can think of is sending a parameter into the application to tell it where to go, but how does the app load that tab then?
| stackexchange/codereview |
I have an array with a few elements:
MSN = 34.3433423432434%
Chrome = 12.4343434353534%
Gtalk = 32.23233543543532%
...
And I'm passing this array as y-axis labels to use with a module called GD::Graph. The problem I am facing right now, is that the number are so big on the graph that they overlap with the adjacent ... | stackexchange/codereview |
We're getting a very curious error in our application.
java.lang.InternalError: Memory Pool not found
for ( final MemoryPoolMXBean bean : ManagementFactory.getMemoryPoolMXBeans() ) {
final MemoryUsage usage = bean.getUsage(); // Error thrown on this line
System.out.println(usage);
}
What does this error mean, an... | stackexchange/codereview |
I have this url here: http://www.webpronews.com/feeds
Now i need to get the feeds and display it in android. Any clue?
| stackexchange/codereview |
Thanks !!i have two .java classes as trial.java and CommonActivity.java as:
public void onClick(View v)
{
switch (v.getId())
{
case R.id.btnSequence:
Intent intent1 = new Intent();
intent1.setClass(this,CommonActivity.class);
Bundle bun1 = new Bundle();
bun1.putString("Stri... | stackexchange/codereview |
Where we need to deploy or publish wsdl so that consumer can get the service?
| stackexchange/codereview |
I am trying to implement an autocomplete textbox whose values are generated by a remote script returning XML contents. I'm using JQuery-1.4.3 and the autocomplete widget from JQuery-UI-1.8.5.
I've studied the autocomplete demo page for the XML data parsed once example, and am trying to implement the comments:
This sho... | stackexchange/codereview |
I want to get the displayed name, id the label, that is associated with a android account.
For instance, when you create a new contact, you have to precise the type of the account and to do so, you can pick up one of the account that enable contact synchronisation, or the 'telephone' type.
I have search thru the Accoun... | stackexchange/codereview |
I am working on a web application where images has to be scaled dynamically and served to the client as fast as possible (with low overhead). I need to create something that scales and compresses high-quality PNGs to medium quality JPEGs.
Now, there are multiple ways of doing this and I am slightly confused which metho... | stackexchange/codereview |
I am implementing jersey restful web service to get application/json mime type from the java bean classes. Given below is the resource class code
@GET
@Produces({"application/json"})
public synchronized Flights getFlightList() {
return myFlights;
}
Here if the return object (Flight) converts t... | stackexchange/codereview |
I try to add/customize markers with Gmap V2 by using this way (example) :
for (var i in table)
{
var myvar = table[i]['text'] ;
var myaddress = table[i]['address'] ;
geocoder.getLatLng(
myaddress ,
function(point) {
alert(myvar) ; // here myvar is wrong
... | stackexchange/codereview |
All over where I read about the Collada file format I see some hint as to how integrated Collada is to OpenGL ES - or the other way. How integrated is it really? I suspect not, but are there functions that directly work with Collada files? - or even parts of Collada files? Or do I need to create my own parser from t... | stackexchange/codereview |
I have a R package in the directory ~/package; I also keep the output from my use of the package in the directory ~/package/out. When the content of ~/package/out gets very large, it takes minutes instead of seconds to build this package. Is there a way to have "R CMD build package" ignore the ~/package/out directory?
| stackexchange/codereview |
What are the different collections available to store objects and which one's best to use when? IList, IEnumerate, IQueryable...
I'm new to .net
Thanks.
| stackexchange/codereview |
I have a lot of trivially parallelizable computations and a lot (100s) of cores distributed overs SSH + NFS network.
What is the simplest way of parallelization.
The problem is that I don't know how long each task will take so I need some kind of queue.
Is there something that is very easy to use?
| stackexchange/codereview |
I've been writing a simple sniffer tool. I started out with libpcap, but then realized it would be useful to keep track of TCP stream information, so I began reading about and experimenting with libnids.
It's a great tool, however it does not create a new record in its internal hash table of streams if it does not wit... | stackexchange/codereview |
I'm not seeing it in docs, good to check here:
Does HttpClient manage HTTP authorization (preemptive or otherwise) with credentials in the URL line?
For instance: http://foo:bar@hostname/Hello/World inlines username foo and password bar for authorization (actually authentication, but just using same nomenclature).
Basi... | stackexchange/codereview |
Ok so my problem is this im trying to get a Pixel collision.
When im using getImageData in a single function call it works.
But if im using Setinterval its like getImageData becomes a Break.
The code after getImageData essent being compiled anymore.
Why is this happening??
If I do this its works:
checkCollision();
func... | stackexchange/codereview |
How do I programmatically open a file in its default program (I'm using Windows XP).
For example, opening *.txt will open the file in notepad.
| stackexchange/codereview |
Have been working non-stop for last 8 hours and so don't have enough energy to fix this IE6/7 only bug. Can some jQuery /CSS experts please help out?
Access this url using any browser other than IE6/7:
http://www.sumanasa.com/technews
On the topmost right hand corner, a) click on the Quick guide link to show a quick g... | stackexchange/codereview |
On our jqGrid pager the page number textbox size is off. Some of our other site CSS is liking causing an issue. Anyone know how to fix this?
This is our footer:
![alt text][1]
And an example from the jqGrid demo site with a correct size:
![alt text][2]
Update 3 (removed prior 2 updates)..
The issue appears to go awa... | stackexchange/codereview |
I have searched everywhere for an answer to this, but I think I must not be using the right lingo... I have text like this:
This text is actually just
one paragraph, but every
few words are broken to a
new line, and that's
annoying as hell, because
I have to go to each line
and fix it by hand...
Then there's a second... | stackexchange/codereview |
Imagine you have the following table (note: this is a contrived/simplified example):
CREATE TABLE foo (
book_id number,
page number,
-- [a bunch of other columns describing a single page in a book]
);
ALTER TABLE foo
ADD (CONSTRAINT foo_pk PRIMARY KEY(book_id, page));
While (book_id, page) pairs are unique,... | stackexchange/codereview |
I'm writing my Exception Handler from Spring MVC controller and I have the following code:
@ExceptionHandler(NullPointerException.class)
public ModelAndView handleMyException(NullPointerException exception) {
System.out.println(exception.getMessage());
ModelAndView modelAndView = new ModelAndView("/e... | stackexchange/codereview |
I currently have a Use Case Diagram that is similar to the above one:
In my final application I will probably share the same Login form for both Employees and Employers. Should I reflect that in this Use Case Diagram, having both Actors using the same Login Use Case? If so, how can I then represent what each one of th... | stackexchange/codereview |
I am new in hibernate,after read the hibernate api and tutorial,it seems that the session should closed when not used.
Like this:
Session sess=getSession();
Transcration tx=sess.beginTranscration();
//do something using teh session
sess.save(obj);
tx.commit();
sess.close;
I have no question when using it in a standlo... | stackexchange/codereview |
I am getting this stacktrace:
System.Runtime.InteropServices.COMException (0x800A13E9): Word ðú÷ì ááòéä.
at Microsoft.Office.Interop.Word.Documents.Add(Object& Template, Object& NewTemplate, Object& DocumentType, Object& Visible)
at Crm.DocumentGeneration.Printing.DocumentsPrinter.MergeDocuments(ApplicationClas... | stackexchange/codereview |
I need a DIV to have constant width, regardless showing the scroll bar.
This is what I have so far:
<div style="overflow: auto; width:100%; height: 100px;">
How should this be changed ?
| stackexchange/codereview |
I'm relatively new to hibernate technology, and want to create an application with that. I have read that is not recomanded to use "hibernate's creation tabels" option (hibernate.hbm2ddl.auto) for a production environment. Does that mean that i need to create first tables and after that my POJOs classes or this recoman... | stackexchange/codereview |
I got the code from this question: How to hide UITabBarController programmatically? which is brilliant, however the view doesn't expand to fit the space left by the tab bar now.
I have set the appropriate UIViewAutoresizingMasks to the view, but I'm assuming that just because its hidden doesn't mean its not still takin... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.