instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a module that supplies a block. The block is set to BLOCK_NO_CACHE, and its content is pulled from a function. It lets a site admin create a 'message' to display on the site, kind of like CNN, where a breaking update is displayed at the top, and a user can close it by hitting X. When they close it, the action is... | stackexchange/codereview |
I want to upload and crop an image via ajax.
Please suggest how I can do this.
| stackexchange/codereview |
I'm trying to build a simple deficit round robin scheduler, and right now I'm trying to get the function that has had the least time running. I'm getting a "Bus Error" returned to me when I try to convert an iterator to a pointer. Below is my code, ptof is simply a typedef pointer to the kind of functions I have in my ... | stackexchange/codereview |
This carries on from my previous post (http://stackoverflow.com/questions/4182664/ipad-app-pull-and-push-relational-data). My plan is that when the ipad application starts I am going to pull data (config data i.e. Departments, Types etc etc relational data that is used across the system) from a webhosted MS SQL Server ... | stackexchange/codereview |
What is the difference between Radius and PAM?
| stackexchange/codereview |
Is there any objective-c ide for linux ? Where to start , how to start , any ideas ?
All good starter tutorials and links appreciated.
| stackexchange/codereview |
Given this code:
WriteThisMessageToThePage1.sendMessageToThePage += delegate(string message)
Can anyone explain me what this line means in delagates? What does this code represent?
| stackexchange/codereview |
OK so I want to use FixedSystem as a font on a web page.. I COULD use Cufon but I want people to be able to select the text as in mouseover it and copy it.
Anyone have anything?
| stackexchange/codereview |
I have two java file, Point.java and PointTest.java. The work fine in eclipse but I'm trying to compile them through commandline
I downloaded the junit 4.8.2 jar file into the same directory as the .java files
I am currently trying this command to compile them but im getting errors
javac -cp junit-4.8.2.jar:. Point.jav... | stackexchange/codereview |
I maintain a Ruby-on-Rails website (actually running JRuby 1.5.5, Rails version 2.3.10) and am seeing something fairly strange. A certain controller action is causing an exception in the logs, when accessed by a search engine bot:
ActionView::TemplateError (can't convert nil into String) on line #14 of app/vie
ws/scena... | stackexchange/codereview |
I have a SQL file with temporary tables creation, some load data infile, some selects and some updates.
I would like to know the time spent on each statement, through the CLI on the shell. If my file contains:
SELECT "Step 1" AS '';
SELECT col1, col2 FROM t1 ORDER BY col3;
And I run:
mysql -h host db < file
The output... | stackexchange/codereview |
I am in need of an integer data type which starts with 00 from 1 to 10 and 0 from 10 to 99.
Is there any data type in c#
Thank you very much....
| stackexchange/codereview |
I want to create a PHP program that could create a .php file that could read this HTML file:
<html>
<head>
<title> Hello World! </title>
</head>
<body>
</body>
</html>
It will search the <head> and </head> TAGS incuding the tags in between, and transfer the selected tags to header.php
So, the header.php will have this... | stackexchange/codereview |
I'm working on an application which will store around 50.000 images within it's first year and another 75.000 in it's second. Images can come from Galleries, news images, article images and profile images. So I want to give each image a GUID and store the GUID in the database.
As for the directory structure i was think... | stackexchange/codereview |
I use the validate plugin on a form to get the correct input.
When that is done I also need to do a confirm if an input value is more then 50% larger than last input (that is stored in hidden field in form). I think of a dialog saying "is it ok that new number if 50% plus? yes/no". No, then they go back to the firm, ye... | stackexchange/codereview |
We have a site that is public facing, let's say it's http://www.example.com. When the SSL is implemented, https://www.example.com, I can no longer access the jQuery 1.4.3 file on my own server. Furthermore, after a tweak to the security setting, I was able to get past the 'Access is Denied' error, but the first call wa... | stackexchange/codereview |
I have received a specification for a webservice call which looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
... | stackexchange/codereview |
I have a search people search page that makes use of RefineSearchResults where I can define which field I want the search refined by. This is setup and works to some extent, but I am experiencing problems whenever the column contains values with spaces in it.
Say I wanted to refine the search by OfficeNumber (from AD, ... | stackexchange/codereview |
I'm trying to print a ndarray on the screen. But python always shows it in scientific notation, which I don't like. For a scalar we can use
>>> print '%2.4f' %(7.47212470e-01)
0.7472
But how to do that for a numpy.ndarray like this :
[[ 7.47212470e-01 3.71730070e-01 1.16736538e-01 1.22172891e-02]
[ 2.7927964... | stackexchange/codereview |
Where exactly is the data of a "Groove 2010 Workspace" stored?
On the product page, it says that it will just synced by peer-to-peer, but i can't belive.
I just tried the following:
Turn off my PC.
Adding file to workspace on my laptop.
Turning off my laptop.
Turning my PC on.
Receiving the new file.
If it will jus... | stackexchange/codereview |
I have two inputs Time and Date. I want to convert these fields to one using php and insert them into a datetime field in mysql. I think I need to use a STR_TO_DATE. But I'm unsure how to do it. Thanks
Format
Time = 12:00 PM
Date = 2010-11-17
| stackexchange/codereview |
I have make my own method in the RPC schema by using the GWT framework. Now, i need to add another method.
So, i wrote this code for each part of RPC :
package org.sinfonet.client;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelat... | stackexchange/codereview |
I have an AdView in the main activity with its requestInterval set to (the recommended) 20 seconds.
The problem is that the Advert never seems to change.
I know that the refreshes are occurring as I get callbacks to onReceiveRefreshedAd on the AdListener, furthermore the impressions are being counted in the Sites and ... | stackexchange/codereview |
I have a C# WinForms Application with a Collection (ArrayList) whose content I want to view in a Grid and want to find an easy way to do this.
| stackexchange/codereview |
Why am I getting this error with the code below ParseException: End of string expected at position 4.
Here's the code: The error is on the 3rd line.
var db = Sitecore.Configuration.Factory.GetDatabase("web");
string query = @"fast:/sitecore/content/foodservice/home/Products/3492-5326/3518-7";
Item item = db.SelectSingl... | stackexchange/codereview |
I have this type of XML -
<leadareas>
<pho>
<phoName>NWPHO</phoName>
<csName>nw_btn</csName>
<phoTit1>Drugs</phoTit1>
<phoTit2>Sexual Health</phoTit2>
<phoTit3>Violence</phoTit3>
<phoTit4>Alcohol</phoTit4>
</pho>
<pho>
<csName>ne_btn</csName>
<phoName>NEPHO</phoName>
<phoTit... | stackexchange/codereview |
We use the xmltask ANT task for conditional logic (ie: if statements) in our ANT scripts.
Currently this task is bombing, apparently because can't reach "http://java.sun.com/dtd/application_1_3.dtd". We can't access this URL either in our browser. Has Sun "deprecated" these Java DTD URL's?
Update: Appears http://ja... | stackexchange/codereview |
The exact structure of the struct is not important.
From what I gather the following c code is reading a "chunk" of binary data (equal to the size of the struct) and directly writing that to a struct (i.e first 32 bytes to name, next 2 bytes to attrib, etc). Is there any equivelent in C# managed code?
Please provide a... | stackexchange/codereview |
I'm designing a DB2 table, one VARCHAR column of which will store an alpha-numeric product identifier. The first few characters of these IDs have very little variation. The column will be indexed, and I'm concerned that performance may suffer because of the common prefixes.
As far as I can tell, DB2 does not use hash... | stackexchange/codereview |
I have the following code, which uses a struct to declare a const value to be used as the namespacce for the XmlRoot attribute, as we all know we can only have const values for attributes.
public struct Declarations
{
public const string SchemaVersion = "http://localhost:4304/XMLSchemas/Request.xsd";
}
[XmlRoot(Ele... | stackexchange/codereview |
Im doing some performance optimising on some code, and I've got two ways of doing a calculation.
I've got a simple test harness:
long start, end;
long oldDuration, newDuration;
int answer;
final int TEST_COUNT = 1000;
start = System.currentTimeMillis();
for(int i = 0 ; i < TEST_COUNT; i++)
... | stackexchange/codereview |
I just need to highlight a div by changing its background color for just a moment on page load. I dont want to include jQuery UI plugin just for this.
Is there is any way to do this just by pure jQuery 1.4?
| stackexchange/codereview |
Is there some way in Python to capture KeyboardInterrupt event without putting all the code inside a try-except statement?
I want to cleanly exit without trace if user presses Ctrl+C.
| stackexchange/codereview |
Hi
I have an array list that has seven objects with type "Points"
my "Points" class has 2 fields (1) int x ,(2) int y.
how can I print this list with System.out.println ?
thanks
| stackexchange/codereview |
Can somebody explain me the difference between using <%: and <%= in an aspx view of an MVC application.
Thanks,
Radu
| stackexchange/codereview |
I need to create a "Today's Daily News" page for an internal company 'newspaper'. It is run on a wordpress, so the not-so-savvy can handle it. The page just needs to display a tree-ish view of the categories with ONLY TODAY's posts listed in them. If there are no news items in any of the categories for today, then they... | stackexchange/codereview |
I am using ScheduledExecutorService, and after I call it's shutdown method, I can't schedule a Runnable on it. Calling scheduleAtFixedRate(runnable, INITIAL_DELAY,
INTERVAL, TimeUnit.SECONDS) after shutdown() throws java.util.concurrent.RejectedExecutionException. Is there another way to run a new task... | stackexchange/codereview |
I'm dealing with a database schema that is err... less than ideal. The domain deals with courses. The courses have prerequisites and related courses. The db model is somthing like this:
Courses
courseid -int
code -varchar
related_courses
part_number varchar
related_part_number varchar
type int
As you mi... | stackexchange/codereview |
I am currently trying to play a youtube video in iPad but device only display blank screen.
- (void)viewDidLoad {
[super viewDidLoad];
NSURL* videoURL = [NSURL URLWithString:@"http://www.youtube.com/......."];
MPMoviePlayerController * moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
[movi... | stackexchange/codereview |
In a Windows Phone 7 application, I would like to query a big XML file (list of cities) stored using Isolated Storage. If I do that this way, will the file be loaded to memory (> 5 mo) ? If so, what other solution do I have?
Edit:
More details. I want to use AutoCompleteBox (http://www.jeff.wilcox.name/2008/10/introduc... | stackexchange/codereview |
Does anyone know how to program a database to function as a workflow? I would like it to identify the user as they open the database and then open up their 'queue' of work. Any ideas?
| stackexchange/codereview |
I'm trying to detect when a checkbox is un-checked and if the corresponding field below (with an Id) has a value, then empty it.
Any ideas?
I'm working with the following but it isn't working:
$('#end_date_specified').click(function() {
$('#end_date_datepicker, #end_date_datepicker_altfield').empty();
$('#datediv').t... | stackexchange/codereview |
I have a function that returns a user-defined object. First I want to know if that object is returned by reference and what if it was private?
Also, how do I return it as Constant (final) reference because I don't want someone to mess with it? I'm so confused between returning an object and returning object.copy(); or... | stackexchange/codereview |
I'm looking to replace all occurrences of space characters that follow a new line (or occur at the beginning of the input string). I know that I can achieve this using preg_replace_callback() with a callback that uses str_repeat and strlen, or similarly with the /e switch; but was wondering if it could be done more sim... | stackexchange/codereview |
I have some JavaScript code that dynamically injects an iframe in a given HTML page. Unfortunately, in Firefox, and only in Firefox, although the iframe is created from time to time the relevant URL isn't loaded into it.
I know it wasn't loaded because the relevant URL doesn't appear in the Firebug Net tab, and when I... | stackexchange/codereview |
So, can you tell me or give article about CruiseControl installation on FreeBSD?
| stackexchange/codereview |
I'm doing a opengl program, and found an example that does what I want, but when I try to compile it, using
gcc -o picksquare picksquare.c -lglut
I get:
/tmp/cchE9Z0Y.o: In function `pickSquares':
picksquare.c:(.text+0x41d): undefined reference to `gluPickMatrix'
picksquare.c:(.text+0x442): undefined reference to `gluO... | stackexchange/codereview |
I've just started to build my very own MVC framework. Feel's kind of nice to know everything from the ground up and only get the stuff that's really necessary for my app.
I come from a codeIgniter background which helped me to get into the MVC perspective of seeing things. In codeigniter, to include a file, codeIgniter... | stackexchange/codereview |
I have multiple threads modifying an stl vector and an stl list.
I want to avoid having to take a lock if the container is empty
Would the following code be threadsafe? What if items was a list or a map?
class A
{
vector<int> items
void DoStuff()
{
if(!items.empty())
{
... | stackexchange/codereview |
I wanted to know if there is a possibility to dump all stack variable when an exception occurs in .NET 4 so I can analyze it later (in production serveR)
Thanks
| stackexchange/codereview |
for example, i have a lib file named test.a. test.a have three modules: test1.o, test2.o, test3.o. i just need modules test1.o, how can i achieve this in my Makefile.
if anybody knows how to trim the test2.o and test3.o modules, please let me know.thanks for the help!
| stackexchange/codereview |
I am trying to saw google map in emulator.
I also have obtained googleApi key for that...
but when i run my code it doesn't saw just grid insted of google map.
Any help?
Thanks......
| stackexchange/codereview |
Suppose I have something like an alarm activity which launches the alarm through the lock screen, accomplished via
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
Now, from here I could press the back button to kill the acti... | stackexchange/codereview |
I searched a lot, but I could not find anything. The function below is making a database request and getting the data through $.post. I get the data in the inner function but I need it outside to equal some data to outputString variable. If you read the code you will see what I need.
function calculatePrice(checkIn... | stackexchange/codereview |
I have a python as CGI and the POST from jquery will transform json object to array, so when I see the POST from jquery, I actually see:
login_user[username]=dfdsfdsf&login_user[password]=dsfsdf
(the [ and ] already escaped)
My question is how I can convert this string back to JSON in python? Or, how can I convert thi... | stackexchange/codereview |
Using jQuery, I change the value of an input text field through some process. After the process is done, I need to capture this change and apply it to another process. My problem is that I can't seem to capture this change and assign it to a variable. I know the changes are happening because the DOM is getting updated.... | stackexchange/codereview |
I have the below SQL query:
SELECT
g.name AS gname,
COUNT(u.id) AS noMembers,
f.name AS client,
p.name AS projectName,
g.formed_date AS formedDate
FROM `groups` as g
JOIN users AS u ON u.group_id = g.id
JOIN users AS f ON g.client_id = f.id
JOIN projects AS p ON p.group_id = g.id
What I'm tryin... | stackexchange/codereview |
In the epic quest of me getting my Create and Edit methods working for my complex model, I've come up with an idea - adding a boolean IsSelected property to one of my entity classes for use with checkboxes in my views. Is it possible? Would something as simple as
public partial class Platform : SomeBaseClass
{
pu... | stackexchange/codereview |
I have just entered the world of jquery and am pretty new to javascript too. I have a small javascript snippet like below:-
<script type="text/javascript">
$(function(){
$('a').click(function(event){
event.preventDefault();
$.get('/_add_navigation_',function(response){
$('#themaincontents')... | stackexchange/codereview |
I have a UITableView containing a list of items.
When the user taps the Edit UIBarButtonItem, the top row needs to be removed, because it is not editable.
I do that like this:
- (void) setEditing: (BOOL) editing animated: (BOOL) animated
{
if (editing)
{
[self.theTableView deleteRowsAtIndexPaths: [NS... | stackexchange/codereview |
I am trying to build a rpm but unfortunately in my build machine I only have limted permission, which means the operation in %install can't be done inside the build machine. How to build the package(.rpm file) without running %install section? It looks like that no options are available for this purpose:
http://www.rpm... | stackexchange/codereview |
I'm trying to reproduce the vertical jcarousel example show by the author in this page:
http://sorgalla.com/projects/jcarousel/examples/static_vertical.html
here is my html code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href="skin.css" rel="stylesheet" type="text/css" />
<scrip... | stackexchange/codereview |
How can I call some code upon entering a UITextView (user taps to edit it) and leaving the view (user taps to leave it)?
Appreciate any help.
| stackexchange/codereview |
Hey, I have a UITextField where the user can input a word. If there is a spelling suggestion (the little pop up) available for the word written, I would like this suggestion to be used if the user presses return on the keyboard.
Right now, the user has to hit space to change the spelling to the suggestion, erase the sp... | stackexchange/codereview |
I need to cater for 20,000 connected users in a 4-node ejabberd cluster. How would you distribute incoming connections over multiple ejabberd nodes?
| stackexchange/codereview |
Is it good idea to create Java project with Spring persistence using Maven?
What maven archetype to use?
AppFuse is seemed to be freezed.
| stackexchange/codereview |
Could anyone help me in assessing why the code below doesn't work. I'm using the common extension method for implementing Include when using IObjectset. In our repositories we were seeing this not returning correctly so I've isolated the code in test app as below. I've also included the interface based Context if th... | stackexchange/codereview |
When I'm using findBugs, I get list of bugs. Some of the bugs I fix and some of them are not errors I wish to fix.
How can I configure findBugs to ignore these errors the next time I run it on my code?
| stackexchange/codereview |
When i add shaders (in cg) to my opengl program all the local transformations (glRotatef, glTranslatef and glScalef between glPushMatrix and glPopMatrix) stop working. Transforms outside push/pop still working though. So what might be the problem here?
update:
I have a rotating cube in the center of the scene:
glPushMa... | stackexchange/codereview |
i need to compare the dates in a existing table with the selected date for equality. I am developing an asp.net application and i am tying to insert a new record in the already existing table and i am using ajax calender extender in that asp.net form where i need to compare the selected date with already existing dates... | stackexchange/codereview |
I have lots of control repeated in my xml (a Button for instance). Is there any possibility to write the Button once in a xml and then import it in all the layout I need it?
| stackexchange/codereview |
Sticking to Apple's guidelines, I create one subclass of UIViewController per screen of my iPhone application. However I consistently find that these classes become very large, both in terms of sheer lines of code and number of member variables.
By definition they end up being responsible for quite a number of differe... | stackexchange/codereview |
Ok this is a tricky one. I have a list of Sets. I would like to sort the objects in the Sets in an order.
Imagine each set as repressenting a class in a school. Each set contains person objects. A person object holds a String value for name. I'd like to arrange the Persons in the Set by name before I loop through and w... | stackexchange/codereview |
java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/tc5/WebAppClassLoader) previously initiated loading for a different type with name "xyz/xyz/xyz/xyz/GateAuthorisationManagerRemote"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineCl... | stackexchange/codereview |
i want to get all filenames in folder in c/c++ .i use dirent.h but it shows error on the dirent.h?
how should i proceed?
Is any way rather than dirent.h?
Thanks in advance
| stackexchange/codereview |
I know I'm not the first one that would like to have #region and brace matching support for Javascript. That's why I don't want to install one by one and see which one behaves better and which functionality it supports.
I would like to ask other fellow developers to provide feature comparison for these Visual Studio 20... | stackexchange/codereview |
I have a string "a ; b; c d; e"
How can I remove the white space around ";" but keep the one between chars. So after replacement, I want to get "a;b;c d;e"
Thanks
| stackexchange/codereview |
I'm trying to create a wizard that will guide a user through a lot of individual containers I have built. I have a main page that has many checkboxes for the user, each checkbox ties to a container. What I would like to have happen is once a checkbox is clicked it makes that container visible, then the next and back ... | stackexchange/codereview |
I'm currently trying to get into jQuery. And I'm having a hard time (-;
Right now I'm trying to load a page via .load()
scan_music : function ()
{
var target = $('#crawl_results');
target.load('/admin/scanner/crawl_product_ids/de/music #product_ids', function()
{
admin.hide_loading();
});
return false;
}
That... | stackexchange/codereview |
I am having trouble importing the vcalendar "script" below into Outlook 2003. What I am doing is using php's mail() function, and essentially sending a message that will contain this calendar, and thus create an event. Unfortunately, the team I am creating this for cannot upgrade to a newer version of Outlook, so if th... | stackexchange/codereview |
I´ve just started playing around with Java and Hibernate and have gotten an application working. Everything works "perfectly" when I run it from eclipse but when I use Eclipse builtin function for packaging the project with dependencies into a jar files I get:
org.hibernate.InvalidMappingException: Unable to read XML
... | stackexchange/codereview |
Hey everyone, I am playing around with ASP.NET MVC and Entity Framework. I was wondering what is the best way to deal with passing around data from controllers to views and then back. I will explain a little better:
I have an action that is for creating a new "Receipt" object
[Authorize]
public ActionResult... | stackexchange/codereview |
In the past few days I've researched this extensively, I've read so many things that I am now more confused then ever. How does one find the longest common sub string in a large data set? The idea is to remove duplicate content from this data set (of varying lengths, so the algo will need to run continuously). By large... | stackexchange/codereview |
I'm working on a fairly complex Android application that requires a somewhat large amount of data about the application (I'd say a total of about 500KB -- is this large for a mobile device?). From what I can tell, any orientation change in the application (in the activity, to be more precise) causes a complete destruc... | stackexchange/codereview |
I was studying some sample examples for Android and one of them got me really curious:
the NoteList (or Notepad) example application - here
My question is: Is there any way to make a NoteList shortcut, that always starts the application with its 'Editor' activity, for example. [of course if the creator of that 'third... | stackexchange/codereview |
I want to display text such that it would be like:
TITLE 1.1
text about title 1.1
TITLE 1.2
text about title 1.2
TITLE 2.1
text about title 2.1
and so on
it would be a scrolling windows, but another problem is text could be lengthy and could span multiple lines. What do you recommend i should breakup my layou... | stackexchange/codereview |
I am not new to CSS, I'm just not that adept with it. I ran into an 'issue' today in having a sub-element being overwritten by the parent's css. After some head scratching I realized all I needed to do was add an '! important' to the css (which to show you my ability is brand new to me)
(I have placed a working exam... | stackexchange/codereview |
This line of code is generating an error:
Accessing unknown 'zPosition' component of a property.
textLabel.layer.zPosition = 5;
The bizarre thing is that I have used this line of code in other apps and it works perfect. I cannot see a difference in anything. They are all declared in the same way.
Is there something I... | stackexchange/codereview |
I'm trying to test out a controller action on Rails 2.3.10 that connect to Google to retrieve contacts. I'm using Rspec and Mocha for testing. I want to stub out the actual call to Google since this is a unit test. I want to verify that the authsub_url method is called with the correct parameters. Stubbing the meth... | stackexchange/codereview |
How to fire an event based on selected item in Checkboxlist (ASP.net 3.5), the OnSelectedIndexChanged in Checkboxlist returns a list of all the selected items, where I need to know just the current selected item.
| stackexchange/codereview |
I'm having difficulty with some SQL - and finding it hard to describe so please bear with me. I'm trying to select products that have an x number of correct features. To simplify things, the problem I'm having is with a few tables. The relevant information about my tables, is:
products(**product_id**)
features(**featu... | stackexchange/codereview |
trying to do below, but don't know enough about reflection obviously.
Example of what I'm trying to do is, I want to "resolve" a list of JazzDancer into a list of Dancer (which all dancer types inherit from). Want to make sure that if DanceStyle here is Jazz, only JazzDancer type will be in the list of dancers. hope th... | stackexchange/codereview |
One of the decisions I need to make is what caching framework to use in my system. With so many to choose from, I am currently investigating redis, ehcache and memcached.
Can anyone point to performance benchmarks of these three particular frameworks? Also an overview of their features - I am particularly interested in... | stackexchange/codereview |
In R, let's say we have a vector
area = c(rep(c(26:30), 5), rep(c(500:504), 5), rep(c(550:554), 5), rep(c(76:80), 5)) and another vector yield = c(1:100).
Now, say I want to index like so:
> yield[area==27]
[1] 2 7 12 17 22
> yield[area==501]
[1] 27 32 37 42 47
No problem, right? But weird things start happening w... | stackexchange/codereview |
Here's a quick rundown on how my app is built:
Elements are created dynamically. All the elements are draggable and resizable. I've created a function that runs when a button is clicked. Here is the function:
$( '#save_canvas' ).click( function(e){
var _tmpArray = []; //Temp Array
var i = 0;
$( '#c... | stackexchange/codereview |
I have an application in java, which is permanently pulled. Execute it as follows:
nohup ant> log.txt &
The problem is that last indefinitely, the application quits and get a message "Exit 143".
| stackexchange/codereview |
Im generating a report from a template html file in my program. It resides in /src/main/resources and its name is "template.html". Im using ClassLoader inside the code like this:
private String readTemplateFile() {
String str = "";
URL url = ClassLoader.getSystemResource("template.html");
tr... | stackexchange/codereview |
Im pretty sure the answer is no, but im using the new IntelliJ EAP version and have a project i worked on a while back which was just written against JDK 1.6 for an applet based application.
However now i could see how it could be useful in an android app that im interested in creating.
Do i now have to re-write all th... | stackexchange/codereview |
I tried to make use of some classes of com.sap.mw.jco.*, such as IRepository and JCO. But my IDE (Intellij) cannot recognize this classes. There are always compilation errors. I tried to add the libsapjco3.jnilib to the classpath and also add the vm parameters
-Djava.library.path="MY_sapjco_folder"
My other JCo packag... | stackexchange/codereview |
I am new to EF using EF4 with Database First and generation taking place.
I have to place the connection string in a different config than the app.config.
How can I do it? How can I bypass it?
I have a partial class of MyTextContext
and I have a method like this
public static string GenerateConnectionString()
{
... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.