instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I need to design some digital circuits , but it kills me drawing them by hand. I've searched a easier way to do them, and found VHDL and what's more interesting SystemC. The last one is pretty nice and easy to understand but i need to be able to print the results in a Visual Representation of the circuit.
Is the Syste... | stackexchange/codereview |
I'm geting started with Hibernate and try to save some data into my DB from a web app.
My servlet code is here:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter pr = response.getWriter();
ServletContext ctx = super.getServletContex... | stackexchange/codereview |
Im trying to close a file (not an application) ussing batch. I namely need particular files and folders closed to execute a delete option. i have noted that open files and folders will not delete.
| stackexchange/codereview |
I'm trying to find the best way to split data into groups, for example Quintiles (groups of 5). I'll be using this SQL is to bring back data for an SSRS report.
What i'm currently doing is selecting 3 columns into a temporary table called #quintiles (customer ID, customer spend and adding a rownumber).
The data is ord... | stackexchange/codereview |
I have an application with various tabs (on a tabhost). Each tab is an activity that extends activity and has some textfields and things on it.
Now, I need that my tabs have inside a listview, but in the example from Android developer guide says that you have to extend ListActivity and not Activity.
Basically, I need t... | stackexchange/codereview |
In my eclipse RCP application there are a few buttons & few input boxes & this below Text component. My problem is as soon as I press one of the buttons a cursor starts blinking in the below test component. Can you please let me know how to solve this.
I tried:
setting focus to false for Text.
SWT.READ_ONLY for Text .... | stackexchange/codereview |
I've got a Ninject setup that creates a JobContext resolver InRequestScope() This works just fine, however, I have a very specific call in the Website that requires me to loop through a few databases (all the data in databases by year). I couldn't quite figure out what was going on because I had forgotten that the JobC... | stackexchange/codereview |
This page:
The boxes were originally floating fine and showing 4 products across the middle. After a coleague copied and pasted the exact same code from notepad, other than a URL change, the floating issue has occurred. I have looked through and can't see the culprit.
Any help is appreciated.
| stackexchange/codereview |
I'm not sure if this is possible in LINQ, but I have the following scenario:
I'm calling a SharePoint list service multiple times with multiple queries. I am then populating a single object and its properties from all of the queries. I am using LINQ to query the XElement returned. I know that if the call gets to this... | stackexchange/codereview |
I want to increment a value in a array when a link is pressed in JavaScript
i Used the following code
<script type="text/javascript">
var i=0;
var numbers = new Array();
function go(val){
numbers[i]=val;
i++;
alert(numbers[i]);
}
</script>
Called the Function like this
<a href='javascript:go(1)' </a>
b... | stackexchange/codereview |
*Here is what I am trying to acheive: *
Basically I have a form where people can submit events to our database. In the CMS I have a page which displays a record of the number of events.
*Here is what I have: *
After the button is clicked, this script is called:
if($subject_type == 'Event') {
$query = "SELECT town, u... | stackexchange/codereview |
We have a project that will involve reports being produced in both A4 and Letter formats.
Obviously this can be done dynamically but will screw formatting up big time.
What are your workarounds/strategies to cope with this?
(and no I don't want to create 2 versions of each report if I can help it)
| stackexchange/codereview |
I have recently installed full sql server 2008 (trial version), for doing a research on SSAS.
I created a SSAS project (with sqlserver business intelligence studio), deployed locally (where sql server instance is) with success.
The problem is that I dont see it in databases list with SSMS.
Is there a special way to con... | stackexchange/codereview |
I've had a look around to see if this has been answered, and there are many similiar questions here but none that match the problem I'm having, so here goes.
I have a jQuery animation that runs on all pages. It works fine on all pages except those with a .NET Update Panel. The items that are animated are not part of th... | stackexchange/codereview |
I want to email a template in django. The template has one variable say name. I want to filled this value. How to do that. context is not working because i don't need to render the page.
| stackexchange/codereview |
I have a page that contains a form, where part of it is dynamically generated based off of what SKU's are on an order.
<% for each i in ViewData.Model %>
<script type="text/javascript">
$(function () {
$('#return_<%=i.SKUN%>').change(function () {
... | stackexchange/codereview |
Hi I am facing problem in handling special charecters inside
text area.
<textarea name="comments" value="$!comments" rows="4" cols="35">
$!comments
</textarea>
In a page where the text are takes input had given
as
o!@#$%^&*()_+=//\""':;<>,./?}{[]"?
when I navigate to same page for edit the
Text area should show th... | stackexchange/codereview |
I'm currently in the process of converting an old bash script of mine into a Python script with added functionality. I've been able to do most things, but I'm having a lot of trouble with Python pattern matching.
In my previous script, I downloaded a web page and used sed to get the elemented I wanted. The matching was... | stackexchange/codereview |
I've got a controller that can't be accessed directly, in the traditional RESTful way, but rather only through a particular url.
Normally I'm used to using get and post in my controller specs to call controller actions. Is there a way that I can exercise my controller by visiting a particular url?
EDIT:
Here is my rou... | stackexchange/codereview |
For part of my app, the user is presented with a list of names and is asked to group them as they see fit.
(Note, the ListView code was copied verbatim from the Android Views tutorial. I haven't yet customized it to my needs, I'm just trying to figure out how to make this work.)
The basic layout is a LinearLayout, co... | stackexchange/codereview |
Hi at all
I try to get data back from my unmanaged c-dll. The c function expects a pointer to a struct, initialize the struct with some value and finish. The mistake could be anywhere, even in the c dll declaring. (I'm doing this the first time)
Here the c code h-file:
#ifndef MYFUNCS_H
#define MYFUNCS_H
__declspec(dl... | stackexchange/codereview |
Background: I have a code of 64 in my IIS logs which I think are client disconnects whilst uploading large files. I also get some ComExceptions with the same status code which I have gathered are pretty much the same issue. Given the infrequency of these issues I've decided these are only to be expected and are not a p... | stackexchange/codereview |
I have a custom component with a couple of text input fields (among other things) that is used as the row components in a tree. I have had to write my own drag and drop handling, and have almost finished the start handler (which I did last), using mouseDown as the event to kick if off.
It basically works, but when the ... | stackexchange/codereview |
I have a hierarchical list of objects. Assume that the structure is as follows:
Root node
Parent node
child node
Parent node
child node
Parent node
child node
The child nodes could have their own children, but the objective is to basically search the "parent nodes". So, let's say that the parent node class ... | stackexchange/codereview |
I am having a listview and binding it with items retrieving from database. I have used pager to navigate to various page. But problem is that suppose currently I am in page number 25 and refreshed the page by hitting F5 or clicking on the browser refresh button, it will redirect me to the page number 1. I mean to the f... | stackexchange/codereview |
How can I check if a certain link is found in Chrome's browsing history(on the computer that accesses the link) using JavaScript or jQuery? I am interested (if any) in the functions that I have to use. Also how can I get the date and time of the accessed link?
| stackexchange/codereview |
I have the following declaration:
ResolveTexture2D rightTex;
And I use it in the Draw method like so:
GraphicsDevice.ResolveBackBuffer(rightTex);
Now, I then draw it out using the SpriteBatch:
spriteBatch.Draw(rightTex, new Rectangle(0, 0, 800, 600), Color.Cyan);
This works fantastic in XNA 3.1. But, now I'm conver... | stackexchange/codereview |
Can someone please tell me why no data is being displaysed in my WPF DataGrid with the following code:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300"
... | stackexchange/codereview |
I would like to map a file into memory using mmap function and would like to know if the amount of virtual memory on the current platform is sufficient to map a huge file. For a 32 system I cannot map file larger than 4 Gb.
Would std::numeric_limits<size_t>::max() give me the amount of addressable memory or is there an... | stackexchange/codereview |
Let the following code:
public abstract class MySuperClass {
public abstract void update();
/* ... */
}
public class A extends MySuperClass {
@Override
public void update() { /* ... */ }
/* ... */
}
public class B extends MySuperClass {
@Override
... | stackexchange/codereview |
I've looked all over the web for about a week now and not found a solution to my problem. I have a Ruby on Rails application I'm trying to deploy to a production Ubuntu 10.04 server edition box. I've got Apache2.2 and Passenger3.0.0 installed with Ruby 1.8.7, Rails 2.3.5 and RubyGems 1.3.7. My rails application is in /... | stackexchange/codereview |
When trying to copy the values of TableA to TableB in SQL 2008 environment, I'm trying to conditionally map some values to a new type and value.
For example, TableA has column Letters varchar(1) and stores letters of the alphabet, and I want to move these values to TableB in column Numbers int.
INSERT INTO TableB( Som... | stackexchange/codereview |
For many years I used Darcs as my only DVCS...some time ago I explored Monotone which I like as well.
However, the main problem with both is the lack of complete hosting solutions.
Fossil looks as interesting option (although we don't like its use of non-standard wiki markup) considering it's very light in regard to ho... | stackexchange/codereview |
I have a pretty simple form that I am wanting to localize (I actually have quite a few in this project, they all have the same problem). When I set the form property Localizable to true Visual Studio generates a .resx file with the form name (as you would expect). The problem though is that it's adding all sorts of thi... | stackexchange/codereview |
I've read that this is not possible but that was from a discussion from about 4 months ago. Some Windows Phone 7 games do display the keyboard so surely it must be doable now?
edit: just to clarify I want to show it in an XNA application.
| stackexchange/codereview |
here my code-
while($row = mysql_fetch_array($order, MYSQL_BOTH))
{
<tr>
<td>$row[][0]</td>
<td>$row[][1]</td>
</tr>
}
</table>
$order is a 2d array that contains 2 column each row. like $order[1][0] , $order[1][1]
$order[2][0], order[2][1] and so on...how to get each row?
| stackexchange/codereview |
Several of my partials can be rendered in two "modes". If full_display is false, I don't render several fields. To make things easy I wanted to make one of the "modes" default - if full_display is not defined, treat it as false. I came up with this code:
(((not defined?(full_display).nil?) && full_display) || false)... | stackexchange/codereview |
I tried with File getFreeSpace() also which returns me 0. Is there any other way to do this?
| stackexchange/codereview |
Let's say I want to display a list of books and their authors. In traditional database design, I would issue a single query to retrieve rows from the Book table as well as the related Author table, a step known as eager fetching. This is done to avoid the dreaded N+1 select problem: If the Author records were retriev... | stackexchange/codereview |
I want the code which allows us to do multiple logins in same window using zend framework. Currently when i try to do multiple logins in same window its gives me an error.
If not possible to do multiple logins in same window then is it possible to logout from first account when you try to login to another account?
And... | stackexchange/codereview |
I have the following HasMany convention:
instance.Key.Column( instance.EntityType.Name + "Fk" );
instance.Inverse();
instance.Cascade.All();
That I am then trying to override to remove the Inverse part of it
mapping.HasMany(x => x.Details).Cascade.All().KeyColumn(mapping.EntityType.Name + "Fk")
Unfortunately this isn... | stackexchange/codereview |
Ok my wsdl server is expecting this as a call :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:esc="http://escoles.webservice.jovtitus.dasc.gencat.net" xmlns:impl="http://impl.escoles.webservice.jovtitus.dasc.gencat.net">
<soapenv:Header/>
<soapenv:Body>
<esc:login>
... | stackexchange/codereview |
I have 3 view controllers in my UINavigationController. If I use pushViewController and popViewController to switch between view controllers, everything is okay.
But if I invoke setViewControllers in order to re-arrange their order, I get crash when I touch backward navigation bar button.
[UIBarButtonItem performSelect... | stackexchange/codereview |
I have Mysql installed on my Linux box and wrote a sample program to access one of it's table.
I am using 'mysql-connector-java-5.1.10.jar'
The code is working fine if i put the jar in 'jre/lib/ext'. However, other ways of recognizing that jar are not working. I tried with setting $CLASSPATH and tried to use '.' curre... | stackexchange/codereview |
I got a working program compiled with gcc 3.44 but when I compiled it again using 4.44 there's something wrong. Some of the local variables in a function seems to be modified by unknown so that a for loop will not terminate because variable in its condition is constantly changing to 0 even if it's incremented. Calling ... | stackexchange/codereview |
I have some bitmap.
I know that the bitmap format is PixelFormat.FormatXXXXXXbppRgb => but i want dynamically to calculate the size of each pixel.
For example => if the bitmap pixel format is Format24bppRgb i want to calculate that the R/G/B range is between 0 to 255.
So, i don't know how to get the information that... | stackexchange/codereview |
i have a two table called A and B
both have same structure but B table have a one more field who may be filled or not.
i wanna a thing that when i move row from A to B then the extra field need to filled by value i have
INSERT INTO B SELECT * FROM a WHERE a.ID =?id
by this extra column can not be filled.
are anyone kn... | stackexchange/codereview |
I'm attempting to marshal a safearray of BSTRs from a COM object, back to a C++ client application.
My IDL definition of the function involved:
[id(5), helpstring("method GetStreams")]
HRESULT GetStreams( [out,retval] VARIANT* pvarStreamNames );
Here's my implementation of the GetStreams() function:
STDMETHODIMP ... | stackexchange/codereview |
I have a multi-line text box in Excel. I have linked this text box with a cell, for example we will say this is linked with cell("A1").
EXAMPLE:
I enter "Hello" into the multi-line text box and press ENTER. This will write "HELLO" into cell("A1"). I then type, "World" into the text box and hit ENTER again. I would like... | stackexchange/codereview |
I recently wanted use regex in Cocoa app. But I found that Cocoa does not include a regex class. So I decided to use RegexKit (OgreKit is good, but I don't know why it did not run fine on my OSX 10.6.4 x86_64).
I have a file content like:
12:20:30 - 01:20:30
some text
11:20:30 - 04:20:30
some text
And I want to pick ... | stackexchange/codereview |
I am a NHibernate newbie. Suppose you have a Customer class like this
public class Customer {
public virtual int CustomerID { get; set; }
public virtual string Name { get; set; }
public virtual CustomerType CustomerType { get; set; }
}
where CustomerType is a lookup class that simply handles values as
In... | stackexchange/codereview |
My understanding of the session lifecycle in Ruby on Rails (specifically v3 and upwards) is that a session is created at the start of a request, for each and every request, and if that request doesn't carry an existing session cookie a new one will be created, otherwise the session cookie is deserialized and stored in ... | stackexchange/codereview |
The statement is
SELECT * FROM tableA WHERE x = ?
and the parameter is inserted via java.sql.PreparedStatement 'stmt'
stmt.setString(1, y); // y may be null
If y is null, the statement returns no rows in every case because x = null is always false (should be x IS NULL).
One solution would be
SELECT * FROM tableA WHER... | stackexchange/codereview |
I can't get Core Data debug logging working.
I've gone into the arguments tab of my executable in Xcode and added:
-com.apple.CoreData.SQLDebug 1
as per the documentation and this question. And yes, I am on the Mac not on the iPhone.
What I've Tried
Different compilers (LLVM 1.5 and GCC 4.2)
Have all debug symbols inc... | stackexchange/codereview |
Class definition:
template<class K, class V,
unsigned hashFunc(const K&),
int compFunc(const K&,const K&)=&_compFunc<K> > class X {};
I want to define a class method outside of the class code block. like so:
template<class K, class V,
unsigned hashFunc(const K&),
int compFunc(cons... | stackexchange/codereview |
I need to generate visitorId in JS, max length is 7 chars, valid chars are [0-9][A-Z], any ideas?
| stackexchange/codereview |
After my application has been restored, of course.
or I have to store everything at onSaveInstanceState()?
| stackexchange/codereview |
I've got an unmanaged C++ dll which is being called from a C# app, I'm trying to get the C# app to catch all exceptions so that in the event of the dll failing due to an unmanaged exception then the user will get a half-decent error message (the C# app is a web service implementing it's own http handler).
The problem I... | stackexchange/codereview |
var categoryModel = AfvClassifiedsDB.Categories.Include("Listings")
.Single(c => c.Title == categoryName);
var viewModel = new ClassifiedsBrowseViewModel
{
Category = categoryModel,
Listings = categoryModel.Listings.OrderBy(c => c.Price).ToList(),
Dat... | stackexchange/codereview |
Using ORACLE SQL.
I have a table 'Employees' with one of the attributes 'hire_date' . My task (book exercise) is to write a SELECT that will show me how many employees were hired in 1995, 1996, 1997 and 1998 .
Something like:
TOTAL 1995 1996 1997 1998
-----------------------------------------
20 ... | stackexchange/codereview |
I have an upload function on a page that uploads any attached file.
Below the attachment button, i have a list of uploaded files that fails to refresh and display the latest attached file.
When a small file is added, by the time my refresh function kicks in, it has already uploaded, and so my page refreshes and displ... | stackexchange/codereview |
I am currently working with the Google Maps API and returning static maps (images) from the API.
I need to place markers on the map. The documentation says how to place markers on the map by defining long/lat values: http://code.google.com/apis/maps/documentation/staticmaps/#Markers
My problem is that i don´t know wher... | stackexchange/codereview |
Here is the code that i save audio file in string. After that i add in array. But still not work here..
Is there any options here to store audio file in array after that storing documentdictionary.
fileArray = [[NSMutableArray alloc] initWithContentsOfURL:recordedTmpFile];
fileArray = NSSearchPathForDirectorie... | stackexchange/codereview |
We have a web service that sends requests to a windows service which hosts a WCF service for processing.
The interface is simple:
namespace MyApp
{
[ServiceContract]
public interface IMyApp
{
[OperationContract]
string DoSomething(string xml);
}
[ServiceBehavior(InstanceContextMod... | stackexchange/codereview |
Is CodeIgniter suited to building high traffic sites ? Are there any examples of such sites ?
I've used CI for a personal site and I liked it but I've read conflicting news on whether it can handle sites with lots of traffic.
I'm not really looking for other frameworks that can probably do the job better though if ther... | stackexchange/codereview |
Do you know how to create borderless popup screen within Blackberry app?
| stackexchange/codereview |
I have a few questions concerning how to create a VoiceXML application.
I found some nice tutorials, but there are still some questions:
-what's a good development environment? I wanted to use VS08, there should be under C#, a project called "speech", but it doesn't appear, do I have to install the speech server local ... | stackexchange/codereview |
i been creating my first application iam stuck with following problem
when clicking a particular button it will display flipping of
current (rotate layout in the direction of the perpendicular to screen
and about an axis parallel to to screen) ui and go to another ui that for
setting preferences of the applicatio... | stackexchange/codereview |
I need to override the an add form within the admin panel.
I'm thinking of accomplishing this by writing a view which would then point to the admin view for the final result.
Something similar to this (where admin_basic_ass_user_view is the admin view)
@required_login
def add_user(request):
if condition:
re... | stackexchange/codereview |
This is old stuff! Is related to delphi 5.0 and interbase 1.6.
I'm trying to open a DB connection via code. But this code is related to enabling the connection, all the components were added using delphi drag-drop User Interface: DataSource1, TForm1, DBGrid, DBNavigator etc..
procedure TDataModule2.DataModuleCreate(Sen... | stackexchange/codereview |
So I was reading a bit on AutoComplete of textboxes in VB.NET, but I can't really understand where these are stored? Is it a fully built in feature, or do I have to write some code for it to work? I've found the AutoCompleteMode and AutoCompleteSource properties of textboxes. But I want to append whatever I've written ... | stackexchange/codereview |
Here's a part of the code that I have, why isn't the init function called? I am trying to use the javascript here http://www.openjs.com/scripts/ui/calendar/
<link href="http://www.openjs.com/scripts/ui/calendar/calendar.css" type="text/css" rel="stylesheet" /><script type="text/javascript">
<SCRIPT LANGUAGE="Jav... | stackexchange/codereview |
Are they useful for anything outside of a database administrator? If I understand them correctly it's merely queries that can be saved directly into MySQL, so it'd be useless for any web development team to use them.
| stackexchange/codereview |
How can I set the document to expire every day at 2AM in PHP?
| stackexchange/codereview |
Where to find complete tutorial for posting twitter status from android?
Thanks
| stackexchange/codereview |
I'm developing client/server software for Android.
While connected to the phone via USB debugging, I'd like to access the webserver I'm running on my developement PC - using the USB connection.
Is that possible and if so, how ?
| stackexchange/codereview |
Using the PhotoScroller example by Apple and ImageMagick I managed to build my catalog app.
But I'm having a rendering bug. The tiled images are rendered with a thin line between them.
My simple script using ImageMagick is this:
#!/bin/sh
file_list=`ls | grep JPG`
for i in 100 50 25; do
for file in $file_list; do
... | stackexchange/codereview |
How can I display image in an ImageView in android from a URL (from the internet)?
| stackexchange/codereview |
I have a page layout that intherits from PublishingLayoutPage. In it there is specified a number of fields - the content can be seen here: http://pastebin.com/L4fmc3qb.
However, two of the fields (SendSMS and SendEmail) I only want shown on the edit form on the page, not when it is viewed as a page. How do I hide these... | stackexchange/codereview |
Error message is: planets_array cannot be resolved or is not a field. I have it declared in my strings.xml file
package com.android.hellospinner1;
import android.app.*;
import android.os.*;
import android.view.View;
import android.widget.*;
import android.widget.AdapterView.OnItemSelectedListener;
import android.*;... | stackexchange/codereview |
Is there any module that could aid me in producing something like this?
| stackexchange/codereview |
Currently I am developing an custom tool. The requirement is as below:
Consider user wants to compare the file checked out in his machine with TFS lates version. User will go to the tool, will give the local path and server path of file. I want to provide the user this option without opneing to VS 2008. Can anyone help... | stackexchange/codereview |
I would like to be able to restart a service when it is using too much memory (this is related to a bug in a third party library)
I have used this to limit the amount of memory that can be requested:
resource.setrlimit(resource.RLIMIT_AS, (128*1024*1024, 128*1024*1024))
But the third party library gets stuck in a mem... | stackexchange/codereview |
Is there a possibility to manipulate the items in a pipeline of PowerShell?
In more concrete words: I start my pipeline with an "svn list". This returns me a list of paths in my repository, all directories with a trailing "/". The list of paths should be stored in an array, but without the "/".
This:
svn list svn://ser... | stackexchange/codereview |
When I try to access a webapp remotely I get 401 errors, and a websocket connection I have does not work probably as a result of that. Using localhost works perfectly fine, but I can't seem to figure out for the life of me why it doesn't work. Any suggestions? As a reference point, this is a fairly untouched new instal... | stackexchange/codereview |
I am having trouble thinking of a php function to add zeros after a decimal. Let say I have $money="10000" I need a function that will add .00 to 10000.00 and to add just a zero to 0 after 234.5.
can anyone help me please?
| stackexchange/codereview |
users = User.all()
user.each do |u|
b = get_id_blah()
u.some_id = b.id
u.save
end
I get the error:
ruby-1.8.7-p302@rails3/gems/activemodel-3.0.1/lib/active_model/attribute_methods.rb:364:in `method_missing': private method `update' called for #<User:0x1017b8188> (NoMethodError)
Should I be calling save outs... | stackexchange/codereview |
Could some one tell me why my array is out of scope?
Here's my class:
// Paper.h
@interface Paper : NSObject {
NSMutableArray* items;
}
@property (retain) NSMutableArray* items;
// Paper.m
#import "Paper.h"
@implementation Paper {
@synthesize items;
}
// ParserUtil.m
@implementation ParserUtil {
+(Paper*) parsePa... | stackexchange/codereview |
@ref prototype.js
I have seen this Prototype.js ajax syntax used everywhere. However I have not been able to figure out what role ajaxCall plays here. It holds NO reference to the Ajax object being created. Prototype, by default creates an instance for every new Ajax.Request you call, so why are people using the varia... | stackexchange/codereview |
What is the difference between System.Threading.ReaderWriterLockSlim.EnterUpgradeableReadLock and System.Threading.ReaderWriterLockSlim.TryEnterUpgradeableReadLock? in .NET? Is it just the timeout option? Thanks!
| stackexchange/codereview |
I have an issue with letting my secret API key be all over the world on potentially thousands of mobile devices. It could easily be compromised and used for malicious purposes by a hacker.
So what are the options for me?
I would guess a private server which has the secret API key and a web service that encapsulates all... | stackexchange/codereview |
Maven's Surefire (testing) pluginmvn test-compile copies files in src/test/resources to target/test-classes. It compiles .java in src/test/java, and copies the compiled .class files to target/test-classes.
But it doesn't copy resources from src/test/java, and it's more convenient to be able to put test resources in the... | stackexchange/codereview |
I'm working with a goods selling website that each product in the database (MySQL) belongs to several categories. I use a many-to-many table mapping to store the product-category relationship.
ProductID CategoryID
1 1001
1 1002
1 1003
2 1001
2 1003
2 1005
I think t... | stackexchange/codereview |
I have a msql table that has data input ever hour of every day, so each date is entered 24 times and then a hour field as seen below...
How do I get the information between a daterange ?
Here is what I have, but I think the time is stopping it from working...
$sql = "SELECT * FROM report WHERE date BETWEEN '$start' AND... | stackexchange/codereview |
I'm forced to use custom closed source lib in my web app deployed in tomcat 6. It is logging a lot of exceptions in my stdout log (catalina.out) via printStackTrace and then rethrowing them for me to handle. Is there a way to prevent or reroute logging of exceptions from a specific package deployed in webapp?
| stackexchange/codereview |
I am trying to get a program for iPhone running on the simulator. My problem is with receiving UDP data. I use asyncUdpSocket. If I make a socket and use sendData:(NSData) toHost:,... well it works fine.
The think i can just not figure out is how the receive functions works.
I assume something like this:
socket = [[A... | stackexchange/codereview |
I'm using jQuery Typewatch but it's no longer maintained and I'm having a problem with it.
I'm using it to power an ajax search function. If the user enters a search term, for example "bob", it will perform the ajax callback as expected. However, if the user, or a script, clears the text box containing the search term ... | stackexchange/codereview |
I'm trying to use eclipse for Java EE to develop web applications.
I need to use Tomcat as my server. I've downloaded Tomcat and it's running. But my program doesn't compile.
I get the following error:
The import javax.servlet can't be resolved.
What do I need to do?
| stackexchange/codereview |
I am trying to create my own DSL for a project, and I'd like to create one T4 file that contains the main engine for this, and then to create small T4 files that includes this engine and invokes it.
I was thinking of attempting this format for the T4 files that will invoke the engine:
<#@ include file="EngineLib\Engine... | stackexchange/codereview |
I am trying to bind a few WPF controls to a trie. I have created a wrapper that exposes the methods in the trie as properties. I am trying to filter my listbox with the matches returned by the trie. When there are too many matches I don't want to enumerate all the matches since that takes a few seconds, and is totally ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.