instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a maven project infrastructure like this:
/trunk/all/pom.xml
/trunk/all/libs/lib1/pom.xml
/lib2/pom.xml
...
/trunk/all/projects/p1/pom.xml
/p2/pom.xml
...
You see, I have a lot of libraries and a lot of projects using these libraries.
All this... | stackexchange/codereview |
I need to convert 24- and 32-bits jpeg and png-files to a lower bit depth (16). I found some code to do this, but the resulting images keep the bit depth of the original file although there file size is lower.
Image img = Image.FromFile(filePathOriginal);
Bitmap bmp = ConvertTo16bpp(img);
EncoderParameters parameters... | stackexchange/codereview |
I am making a update password module for an application in rails. Now the problem is that I am encrypting the password before_save, and it is required that the password be between 6 to 20, so after encryption the password becomes 64 chars, but since the encryption happens after validations, the code works. Now when I w... | stackexchange/codereview |
I want to convert powerpoint into images when a user uploads it to my server. What is the best way of doing it?
I was using interop, but it seems to be working only on client side.
| stackexchange/codereview |
I have a class in a WCF service, lets call it A. A is a data contract, which contains as one of its DataMembers a collection of another custom object B. To avoid Null Reference problems on the client side, I instantiate the BList in the constructor like so:
[DataContract]
public class A
{
[DataMember]
public St... | stackexchange/codereview |
I am working on a vb.net program, I want to click a hyperlink on a page, the source look like this:
<a href="user_messages_view.php?id=23112">messages for Today, 2010-10-19 </a>
I want to check it everyday too!
I tried to click it with the following methods(Both couldn't click the link!):
Dim theElementCollection As H... | stackexchange/codereview |
var options = {
series: {lines: {fill: true, fillColor: "rgba(255, 255, 204, 0.5)"} },
xaxis: { mode: "time", timeformat: "%d %b %y", minTickSize: [1, "month"]} ,
yaxis: { max: 50000}
};
var d3;
var plot;
$(document).ready(function(){
d3 = <?echo $balarray;?>;
plot = $.plot($("#placeholder"), [d3... | stackexchange/codereview |
I have debugged this legacy code, and would like a sanity check on it.
The purpose of it is to allow someone to choose a delivery frequency for shipping a product. If someone wants their product Every Other Week, the system needs to determine if they should get an order next week, or two weeks from now. We call it A we... | stackexchange/codereview |
I have a method which I will accept either a single object or a list of objects. I want to add whatever is passed to another list. Currently, my method looks like this:
def appendOrExtend(self, item):
if type(item).__name__ == "list":
self.list.extend(item)
else:
self.list.append(item)
It seems to me that ... | stackexchange/codereview |
I want to make a static copy of a site, retaining existing URLs. The problem is that the URLs looked like:
http://mysite/index.php?id=XXX
and Apache does not want to find the file "index.php?id=XXX". Instead, it interprets the request as the file "index.php" with the query "id=XXX".
How can I ask Apache to stop handlin... | stackexchange/codereview |
I'm writing some code that will synchronize data in a database with a chart (it's ZedGraph, in fact - but it doesn't matter).
I want to do something like this:
chart draws data from the databse
whenever new data is added to database, it's immediately drawn on the chart
So far everything works OK, because I can bind ... | stackexchange/codereview |
I have used AsyncFileUpload AJAX control to upload a file to a column in a SQL Server database using LINQ to SQL. How do I retrieve the document from the database and allow the user to save to local drive using a Save As Dialog box using LINQ to SQL? This is ASP.NET web application. The DocumentFileContent database ... | stackexchange/codereview |
I have a SQL 2008 Ent server with the databases "DBOne", "DBTwo", "DBThree" on the server DEVSQLSRV.
Here is my Powershell script:
$DBNameList = (Invoke-SQLCmd -query "select Name from sysdatabases" -Server DEVSQLSRV)
This produces my desired list of database names as:
Name
-----
DBOne
DBTwo
DBThree
I has been my ass... | stackexchange/codereview |
I would like to build my first Wordpress site as quickly as possible, but I happen to lean towards Microsoft products. I don't plan on touching code/PHP to build my Wordpress site, but I should mention that I am currently an expert C# developer in Visual Studio and have built ASP.NET 1.1 in the past. So should I go w... | stackexchange/codereview |
I have project which implements MVVM pattern. I have WPF window which has reusable usercontrol in his xaml. UserControl consist of WPFDataGrid. Also DataGrid has ContextMenu. I want do some staff when context menu is closed. But ContextMenu class have not dependency property which give me ability to know is it close or... | stackexchange/codereview |
I have a page with several different forms on which people can insert their zipcode and housenumber. After an onblur on these input field I make an ajax call to get the streetname and city from the server based on the zipcode and housenumber.
function getAddress(postcode, streetnum, form, tr) {
$.ajax({
typ... | stackexchange/codereview |
I'm probably worrying about wrong optimization, but I have this nagging thought that it's parsing the xml tree over and over and over again, maybe I read it somewhere. Can't remember.
Anyways, here's what I'm doing:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.L... | stackexchange/codereview |
I'm pulling my hair out because I've run into the following problem with one of my clients:
My program uses extensive VBA automation in Word. Macros are saved in a specific Word template that is attached to each document. Some of the macros save the current document to a temporary folder under [User]/AppData/Roaming/..... | stackexchange/codereview |
I am new to OpenGL and Qt, and I am learning both simultaneously(3 days already:). I couple of years ago I did some exmerimenting with DirectX and I clearly remember that it was possible to make a full-screen window there. By full-screen I mean really full-screen, even without the top part where you have the close full... | stackexchange/codereview |
Im using libxml2 on the iPhone with the nice Method: PerformXMLXPathQuery from Cocoa with Love. The problem is how to find out witch xml got sent without first parsing the whole document... I tried to use the @"/" query to retrieve the first element as written on the introduction of Cocoa with Love but unfortunately, t... | stackexchange/codereview |
if I have the following table:
<tr class="alternate">
<td>{$order.titel}</td>
<td>{$order.auteur}</td>
<td>€{$order.prijs}</td>
<td>{$order.aantal}</td>
<td>€ {$order.aantal*$order.prijs}</td>
<tr>
and inside jquery I currently have the 4th td selected, how can i get the data from within ... | stackexchange/codereview |
I have to save about 1kb of text. The text is not updated very often (about once a month). But is read once every time the app is started.
Would saving it to NSUserDefaults slow down the reading/writing from/to NSUserDefault? Would it be better to save it to a text file in the documents folder?
Thanks in advance!
| stackexchange/codereview |
I have an handler in one activity, and I would like to use sendBroadcast in order to start receiver of another application(different APK).
I cant do this since i am into an Handler and i`am losing the scope of my activity.
Any idea how I could achieve this idea?
some code:
private Handler mHandler = new Handler() {
... | stackexchange/codereview |
Pardon me for the title, that's the best my limited brain can came up this late.
So, i have a list of string, something like [abc, def, ghi].
The question: in JSF, how do I iterate the list and create a string that look like this "abc, def, ghi" (notice the commas)?
For those who have the urge to tell me that I'd bett... | stackexchange/codereview |
I'm using a FileStream to download information of an FTP server to a directory on my C:\ drive. For some reason, even though I've even tried setting the directory permissions to even 'Everyone' access, it's given me this exception:
System.UnauthorizedAccessException: Access to the path 'C:\tmpfolder' is denied'
Why i... | stackexchange/codereview |
I am a newbie to FFMPEG, I am stuck at using FFMPEG to extract a segment of video. Since I am using the direct command line interface.
What would be the command line arguments if I am to extract say, video from frame 0 to frame 100000 or if I wanted to extract a video segment of 1 hour from a video that is 5 hours long... | stackexchange/codereview |
I'm looking for toolset recommendations to automate testing of an Oracle Forms application, with the tests (ideally) to be driven from Cucumber.
I believe this is normal/unavoidable in apps based on Oracle Forms, but I'll spell it out anyway; the way the application works from an end-user perspective is:
User connects... | stackexchange/codereview |
i have created a sharepoint site urls:
internal url : http://orbsp:2323
external url : http://orbsp.com:2323.
when i am trying to access from other computers,its not opening.
plesae help me regarding this issue.
| stackexchange/codereview |
During one of my project i need to add required field validation on the combo box of wpf application. in our process we are generating a form depending on the condition. after the form is generate and all of controls are rendered we need to implement the validation rule for the controls like for required text box i nee... | stackexchange/codereview |
I am getting the above error on a client's machine when executing the following code
for i := 0 to crpe.Subreports.Count - 1 do
for j:=0 to crpe.Subreports[i].Tables.Count - 1 do
crpe.Subreports[i].Tables[j].Path := path;
crpe.Subreports[0]; {This line points the VCL back to the main Report}
for i := ... | stackexchange/codereview |
Current Problem
In relearning jQuery/jQueryUI, I'm trying to call an event on an element after sorting it. This is probably relatively simple to do since jQuery has many ways to implement callbacks.
jQuery(document).ready(function($) {
$('ul').addClass('list-unstyled');
$('.sortable').sortable({
revert: tru... | stackexchange/codereview |
I plan to start creating tomorrow interenet shop (Ubercart). I'd like to take the 7 version - lots of nice things. Can you tell me now start to create on drupal 7 or can only work with Drupal 6?
| stackexchange/codereview |
I have an application, let's call it myapp.exe, which is dual-mode console/GUI, built as /SUBSYSTEM:WINDOWS (There's a tiny 3KB shim myapp.com to cause cmd.exe to wait to display the new prompt.)
If I launch from a command prompt:
myapp -> cmd.exe runs myapp.com which runs myapp.exe. stdout is initially a detached co... | stackexchange/codereview |
I am trying to debug a project, suddenly I'm running into an issue where enumerating any object collections results in a timeout if I try to view it.
If I run the program normally I have no issues. If I try to view any collection, such as a list, I get a timeout error and the whole thing bombs out.
I thought something ... | stackexchange/codereview |
I am using MonoTouch.Dialog's OwnerDrawnElement, but it doesn't seem to allow the user to 'highlight' the cell when touching the screen. I've looked at the sample, but it doesn't show the highlighting. Any suggestions?
I noticed that TweetStation doesn't seem to user OwnerDrawnElement. Should I take another approach? ... | stackexchange/codereview |
I'll have to develop some private web-services, so I need a way to authenticate the users in order for each service to be able to know if a request is valid and to maintain some session states.
I'd like to have a central authentication service with some simple operations like "logIn(login, password)" (that uses a direc... | stackexchange/codereview |
I have a table with columns 'Date, Name, Score'.
I wish to get the MAX(Score) for rows which share a common value (for e.g. the same date or even name), before averaging them to give me a figure, for example:
---- Date -----| -- Name -- | Score
2010-10-10 | John Smith | 86
2010-06-05 | Tedi Jones | 71
2010-10-10 | John... | stackexchange/codereview |
I am working on a windows application that will need to be branded. The client will be selling this to other businesses, and needs a customized logo and name for each sale.
The client does not know how to use visual studio!
I think I need to write a packager app to inject custom logo and string resources into the execu... | stackexchange/codereview |
I have a C++ ATL COM component that displays a popup window (plain ol' Win32, using the WS_POPUP style) which allows the user to input some search information. This component has been tested pretty extensively against a VB6 form (primarily for ease of debugging), but we want to use it with .NET winforms.
The curious t... | stackexchange/codereview |
In Wordpress you get the default post statuses: Published, Draft and Pending Review. Is it possible to add some more post types via registering them via the function.php file of the active theme?
Also is it possible to edit the lables of the Publish Meta Box? What I'm submitting really isnt Publishing...
Also like to a... | stackexchange/codereview |
I'm new to objective-c. I can't find such classed as NSStack, NSList and so on. But i need containers to write the application. The only containers i've found are NSArray and NSMutableArray. I know that i can use STL containers, but i'm not sure it's the best way.
| stackexchange/codereview |
I installed RMagick on my MacOSX system and when I try it with IRB everything works fine:
~ $ irb -rubygems -r RMagick
irb(main):001:0> p Magick::Long_version
"This is RMagick 2.13.1 ($Date: 2009/12/20 02:33:33 $) Copyright (C) ..."
=> nil
But when I try to put this in a simple Ruby script:
#!/opt/local/bin/ruby
requi... | stackexchange/codereview |
Is there a way to put a breakpoint on any function in Visual Studio, sort of like bm kernel32!LoadLib* in WinDbg?
I know one way is to break at application start, find the required DLL load address, then add offset to required function you can get via Depends, and create a breakpoint on address. But that's really slow,... | stackexchange/codereview |
I can't seem to find an explanation for this and I'm pretty sure that it has previously worked as expected.
SELECT CAST(-1 AS UNSIGNED INTEGER);
Expected: 0
Result: 18446744073709551615
Has something changed, or is this a MySQL bug?
[UPDATE]
OK, I think that I found a reason why it had appeared to work before:
SELEC... | stackexchange/codereview |
I tried to use full-text search for a table called "Business" in SQL Server 2008. Here is the statement (the search term is in Chinese).
select * from Business biz where CONTAINS(biz.*,'家具')
And then I use like statement to do the same
select * from Business where Name like '%家具%'
The full-text search returns 8 resu... | stackexchange/codereview |
I am an usual Java developer but now I'm trying to create some OpenGL stuff in C#.
However, in Java I do it like this:
private FloatBuffer verticesBuffer;
private float[] vertices = new float[]{... some vertices ...};
ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);
vbb.order(ByteOrder.nativeOrder());
... | stackexchange/codereview |
I have a matrix
0 0 0 0 0
0 1 1 2 1
0 1 1 2 2
0 1 1 2 3
So now I would like to understand how to do the following
First go to the bottom right pick up the first no {which is 3} then traverse diagonally, and then pick the {2} but since the no directly above the diagonal 2 is also 2. I would like to create two pointers... | stackexchange/codereview |
How to setup the attribute to achieve the rounded corner for each item in the ListView?
Please kindly give an example if you can, thanks!
for example:
http://www.flickr.com/photos/jaxxdotorg/3640222441/in/set-72157619952823330/
EDIT:
That's my code here for the answer.
<?xml version="1.0" encoding="utf-8"?>
<shape
... | stackexchange/codereview |
I'm using VC++ and want to write a script that can scan my source-code and at some places where it sees a text like "abc" then extract characters of that text and generate a selective piece of code like ones below at build time:
first example of a piece of code :
Func1(a);
Func2(b);
Func3(c);
second example of a piece... | stackexchange/codereview |
I have a SQL server 2005 server database on a server and need to conect to it from a client on the same server network, any ideas?
| stackexchange/codereview |
I have a single-threaded IronPython WPF application and if an event handler (FrameworkElement.SizeChanged for example) throws, the exception is just eaten and execution continues without any kind of notification.
Because of this I spent a lot of time today solving an "impossible" bug.
Does the same thing happen when us... | stackexchange/codereview |
I am looking to build a tooltip that allows the user to click links within that tooltip to allow them to navigate to various sections of the site. My problem is that the tooltip disappears when I leave the a with my mouse? what I want is for the tool tip to disappear if I change to a new a or click close on the tooltip... | stackexchange/codereview |
I have a simple IEnumerable collection of Order objects. I want to write a generic sort function that accepts the collection and a sortkey that corresponds to a property on an Order object. I don't want to hardcode the sort instructions for every property. How can I build a dynamic LINQ string that automatically genera... | stackexchange/codereview |
I have this library in CI that retrieves my latest twitter updates. It has a function that sends my latest updates as objects to my controller.
I would like to show these twitter updates on the footer of my page, so they're visible at all times.
Now my question is how I call these directly from a view? I know this is n... | stackexchange/codereview |
I'm trying to write a simple server that talks to clients via tcp. I have it sending messages around just fine, but now I want it to interpret the messages as Erlang data types. For example, pretend it's HTTP-like (it's not) and that I want to send from the client {get, "/foo.html"} and have the server interpret that a... | stackexchange/codereview |
In MVC 2 I have a user control - Partial page as below.
Model has four records
id Dtext Dtext1
1 A, A1
2 B B1
3 C C1
4 D D1
On My machine - Output is as above in the ID Order which is expected.
But after deployment output is totally bizarre something like below.
D D1
B B1
A, A1
C C1
Would ... | stackexchange/codereview |
I'm using the inline-app from Django-Basic-Apps for inserting images in Blogposts. But in some templates I don't want the images to appear. It's not enough to just not render them, I don't even want the inline-code to be in the html. Is there a way to delete the inline-code with a filter? I tried to use the "|cut" filt... | stackexchange/codereview |
It appears that in WPF I cannot bind to a public field on an object, but only to public properties. Is this an intentional design decision on the part of WPF, or am I just getting the syntax wrong?
Here's a sample snippet:
public class User
{
public string Username;
public string FullName;
public string Displa... | stackexchange/codereview |
I want to add in a C# application a bookmark to a particular range to my Word document at runtime . I have found one solution
Microsoft.Office.Tools.Word.Bookmark bookmark1;
bookmark1 = this.Controls.AddBookmark(this.Paragraphs[1].Range, "bookmark1");
But an error shows that the Windows form has no definition for AddB... | stackexchange/codereview |
I want to receive model data by find(all), but the user should get only a restricted set of table fields. That's easy:
$ret = $this->find('all',array('fields'=>array(
'Employee.id','Employee.address_id'
)));
But this model (Employees model) also has a belongsTo association:
var $belongsTo = array(
'Address' =>... | stackexchange/codereview |
First off, I admit I'm a WP-noob, so I'm not even sure I'm going about this the right way. I'm trying to create a simple plugin that replaces matched text in the_content. The code works on my PHP test server, but fails in WP, leaving me to believe I'm missing something. I am hoping someone can point me in the right dir... | stackexchange/codereview |
I am using a CustomValidator in ASP.NET as follows:
<asp:CustomValidator ID="cvComment" ControlToValidate="txtComment" Display="None"
EnableClientScript="true" ClientValidationFunction="validateComment"
runat="server" ></asp:CustomValidator>
And this is the function that gets called:
function validateComme... | stackexchange/codereview |
I have a pylons project with an extensive set of functional tests that I want my manual QA's to be able to read from time to time, so I'm using epydoc to build out the html pydocs on the functional test modules.
It seems to be working fine. It generates the docs, and I can navigate through them without any apparent pr... | stackexchange/codereview |
we are in the process of upgrading our crappy cms system and the new assemblies have changed from int to int64. I'm running into a problem when trying to build now. I've tried casting but it doesnt seem to help. here is one excerpt of code that is causing a problem.
IDictionary<int, string> aliases
= new UrlAli... | stackexchange/codereview |
We have an application suite that we update via a homegrown "Auto Update" application. This application basically connects to our "Updates server" and downloads files to overwrite, update, or even add new features/applications to our application suite. However, this does not work well with UAC. Our Auto Update appli... | stackexchange/codereview |
I have a navigation set up using ULs, LIs, and As. The hightlighted/selected tab's anchor has a class of selected. When a new nav link is clicked, how can I find out what the ID of the previously selected anchor's tab is?
| stackexchange/codereview |
I'm not sure why my event isn't firing? I simply want to change the list style type when the user hovers over an li. It doesn't look like I'm missing anything, but nothing is happening.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD... | stackexchange/codereview |
This is not a "is math required for programming?" question.
I always thought that for programming, a scary amount of complicated math would be involved (I only got as far as intermediate algebra in college because I'm bad with it).
However, I just got my first job as a developer and have found there is not a ton of ma... | stackexchange/codereview |
One Interview question i was asked in an interview and i was not get an solution.
Following is the sample paragraph and our program should give the hyperlinks for the words which mathes
"Network protocol Driver- A net-protocol fully Java technology-enabled driver translates JDBC API calls into a DBMS-independent net pr... | stackexchange/codereview |
I am a c# programmer that loves android phones knowing that I am never going to learn Java.
What I want to to is an ordinary website that starts the relevant applications from my android phone (Legend) with parameters like:
This works:
Mail - this opens the email klient with correct to=john@doe.com
href="tel:+451234567... | stackexchange/codereview |
hi all:
recently i'm working on make checkpoint on linux process and encountered a problem,it looks like that when i munmap memory map of the executable to current process,the symlink /proc/self/exe is dead.what i want is to make this symlink pointing to a other executable(the one for my resumed processs),is that p... | stackexchange/codereview |
i think the title says everything.
Is it better(faster,space-saving according memory and disk) to store 8-digit unsigned numbers as Int or as char(8) type?
Would i get into trouble when the number will change to 9 digits in future when i use a fixed char-length?
Background-Info: i want to store TACs
Thanks
| stackexchange/codereview |
The same old problem ... I want to run my jar on Mac or Linux with high memory allocation. I do not want the user to open the Terminal and write java -XMx512 -jar MainJar.jar manually.
I have seen a lot of solutions to fix this ... But i was wondering if this might work : "Executing the Terminal command java -XMx512 -... | stackexchange/codereview |
Our tortoiseSVN repository unfortunately became corrupt today due to a disk glitch.
We have a good working copy based off revision 2897.
Our most recent backup repository is from revision 2848.
We would like to salvage as much as possible of the history, rather than start a new repository.
So, can we do this by committ... | stackexchange/codereview |
Evening all.
I have created a basic HTML5 site. It validates in W3C validator. It seems to work fine in Chrome, Safari, Firefox etc. However, upon opening the page in IE8 I just get a black screen.
The site can be found at www.soultrainer.co.uk
I assumed I had missed a bracket out or something. However I am receiving ... | stackexchange/codereview |
I have a SP that I have created to check for validations and return an OUTPUT Parameter of 0 (No Error) or 1 (Error). However, I have to run this SP within Dynamic SQL since it will be ran through a loop of different data.
Can I pull the OUTPUT from the SP through the EXEC sp_executesql @SQL?
I can not post the actual ... | stackexchange/codereview |
I am building an e-commerce site and am wondering if having 2 identical navigation menus will hurt my SEO efforts.
I have a drop-down menu at the top of the page. That lists main categories, followed by sub-categories.
On my left navigation I have the same thing.
Both are structured like so:
<ul>
<li><a href="#">Mai... | stackexchange/codereview |
I use following command to mount "/dev/sdb1" to "/storage" directory:
mount -t ext3 /dev/sdb1 /storage
After run above command, I can use "df -h" can see it:
/dev/sdb1 147G 188M 140G 1% /storage
But after i restart the server, it disappear, and i have to run mount command again.
Is there a command that ... | stackexchange/codereview |
I have been looking into Code First with Entity Framework CTP4 and you can use the ModelBuilder to build up your table columns. Is there a way to set the default value for a column in the database using the ModelBuilder or some other mechanism?
Thank You!
| stackexchange/codereview |
Is there a function out there to make sure that any given array conforms to a particular structure? What I mean is that is has particular key names, perhaps particular types for values, and whatever nested structure.
Right now I have a place where I want to make sure that the array getting past has certain keys, a cou... | stackexchange/codereview |
I have a problem with a timer class based on a SDL timer.
class CTimer
{
public:
CTimer(): startTick(0), endTick(0), curTime(0), running(false) {};
void Start() { startTick += SDL_GetTicks() - endTick; running = true; };
void Stop() { endTick = SDL_GetTicks(); running = false; };
void Reset() { star... | stackexchange/codereview |
It's my first time with SL (but not WPF). Im learning PRISM watching the great videos of MTaulty: http://channel9.msdn.com/blogs/mtaulty/prism--silverlight-part-1-taking-sketched-code-towards-unity
So far so good, I'm with the last video and I'm doing the same things He does in my VS. I'm using SL4 & mvc2 web & prism f... | stackexchange/codereview |
I understand that a set can be defined as:
<bean id="toolbox" class="tools.Toolbox">
<property name="tools">
<set>
<ref local="foo" />
<ref local="bar" />
</set>
</property>
</bean>
but I can't find anything in the documentation to allow me to define the set first, for e... | stackexchange/codereview |
I recently came across Pytables and find it to be very cool. It is clear that they are superior to a csv format for very large data sets. I am running some simulations using python. The output is not so large, say 200 columns and 2000 rows.
If someone has experience with both, can you suggest which format would be mor... | stackexchange/codereview |
When I try this:
$a = 1;
$b = 2;
print ($a && $b) . "\n";
The result is 2. Why?
| stackexchange/codereview |
I have a java project which contains multiple classes spread out over multiple files.
How do i compile and get this to work ?
Can anyone suggest how to compile this using jCreator (without using a build tool like ant)
| stackexchange/codereview |
My question is similar to this SQL order of operations but with a little twist, so I think it's fair to ask.
I'm using Teradata. And I have 2 tables: table1, table2.
table1 has only an id column.
table2 has the following columns: id, val
I might be wrong but I think these two statements give the same results.
Stateme... | stackexchange/codereview |
Why does this compile in java 6 (Sun 1.6.0_16):
System.out.println("\u000B");
... but not this:
System.out.println("\u000A");
On this program:
public class Test {
public static void main(String argv[]) {
System.out.println("\u000A");
}
}
I get a
Test.java:3: unclosed string literal
System.out.println("\u000A"... | stackexchange/codereview |
I am picking up Groovy. The language is fine. But I have a non-technical problem. One of the classes is called GString. In some context, it can be misleading. And mentioning it is not very appropriate in the office, especially when some non-technical female colleagues are around.
I guess this is not enough to justify r... | stackexchange/codereview |
Json object is returned to a webservice which gets the i/p as
[OperationContract(Name = "Create")]
[WebInvoke(UriTemplate = "/Create/Data", Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json)]
bool CreateCustomer(StringBuilder objCustomer);
//in my servi... | stackexchange/codereview |
From C# with EF, I call a long stored procedure with ExecuteStoreCommand
30 sec after the procedure starts, I have a timeout exception.
How can I configure timeout ? On the server or in my C# client ?
Thanks
| stackexchange/codereview |
I have a project running live for couple of years and it uses plain JDBC.
Now I have to implement a small module for which I am considering Hibernate. I configured Hibernate (hibernate-cfg.xml) and it's up and running.
So I have DB properties defined in two places oracle-ds.xml and hibernate-cfg.xml
Is it OK to mix JD... | stackexchange/codereview |
I want something that's simple, in-depth and explains from basics.
| stackexchange/codereview |
I have a file as follows:
line 1: _____
...
# for AAA
#export CONFIG = AAA_defconfig
# for BBB, BbB, Bbb, BBb3
#export CONFIG = BBB_defconfig
# for CCC, CcC, Ccc, Ccc1
#export CONFIG = CCC_defconfig
...
other lines
I want manipulate the file, so that based on the given string, I could export the right "CONFIG"... | stackexchange/codereview |
UPDATED INFO:
Hi,
I uninstalled Flash Player 10 and re-installed Flash Player 9 debug version. I also uninstalled and re-installed Firefox. Unfortunately, I'm getting the same problem. If I set Flex's browser to Safari in the preferences, then everything works fine. If I switch it to Firefox, then it blows up. My proj... | stackexchange/codereview |
I have a sqlite database, with potentially tens of thousands of rows, which is exposed as a UITableView on the iPhone. There's many columns in the relevant table, but for now I only care about a 'name' column. (The database is in a server app, the iPhone app is a client, talking over a socket) Naturally to make this us... | stackexchange/codereview |
i want to understand this piece of code as i m a beginner.Mostly these red color fonts. they are taking which page value?
$(function() {
$("#title").blur(function() { QuestionSuggestions(); });
});
function QuestionSuggestions() {
var s = $("#title").val();
if (s.length > 2 && !($("#tit... | stackexchange/codereview |
I wrote this PHP script to retrieve my form results via email. Everything works great, but I don't know how to add a time and date stamp of the results. Here is my current code:
<?php
$name = $_REQUEST['name'] ;
$carenumber= $_REQUEST['carenumber'] ;
$email = $_REQUEST['email'] ;
$topic = $_REQUEST['topic'] ;
$messag... | stackexchange/codereview |
How do u redirect a small(<20k) file to be piped to another program, so that it is never written to disc.
You could use cfront and gcc as an example. Any example will do as long as you are redirecting something that normally outputs a file to something that usually accepts a file.
You could could use any script or shel... | stackexchange/codereview |
In a software (client-server arch.) I would like to create a cache in local filesystem for some data received over network. (they are marked as DataContract and Serializable). The data can be modified by other users so must be syncronized.
In a few words: I need something like Outlook's *.ost files for Exchange.
What i... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.