instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
According to my professor in Intro. to Database Theory, there are NO examples in existence to show when this occasion would arise which seems a little bizarre considering its a specific part of the theory.
What I'm looking for is just an example relation that is in 4th normal form and such that 5th normal form decompos... | stackexchange/codereview |
I've written MATLAB code for a one dimensional advection-dispersion for a conservative contaminant as follows.
% Analysis of 1D conservative contaminant migration through porous media.
% For t=25 days.
% Parameters:
dt = 1;
dx = 10;
% Coeffecients
m = (dt/dx^2)- (dt/dx);
n = -2*dt/(dx^2);
p = dt/(dx^2)+ dt/dx;
%Init... | stackexchange/codereview |
The publisher exposes an event to which multiple subscribers can hook up to
on subscriber side -> publisher.OnSomeEvent += subscriber.CallMe()
Later the subscriber subscribes based on some dynamic arguments
publisher.Subscribe(arguments)
publisher.Unsubscribe(arguments)
Depending on what arguments are passed by the su... | stackexchange/codereview |
We've been using information from a site for a while now (something that the site allows if you mention the source and we do) and we've been copying the information by hand. As you could imagine this can become tedious pretty fast so I've been trying to automate the process by fetching the information with a PHP script... | stackexchange/codereview |
I have a simple form, a query and a report in Access 2003. I have to manipulate the results from the query in a recordset using VBA and then pass it on to the report as its RecordSource.
If I declare the recordset as RecordSet and use its Name property as the RecordSource of the report then it is working. However, bec... | stackexchange/codereview |
I am developing a web site in which I am using REST web services, now there are 2 ways of making calls to the REST web services..
1. directly through AJAX
2. AJAX calling a servlet which will in turn make a call to the REST web service
from personnel experience I have observed that companies tend to follow the 2 app... | stackexchange/codereview |
I'm creating a library that consists of a Log4J appender that asynchronously sends events to a remote server. When a log statement is made, the appender will asynchronously record the event into a local queue which a pool of consumers will then retrieve and send to the remote.
The completely in-memory solution would b... | stackexchange/codereview |
Is it possible to load objects by a list of ids using subsonic ActiveRecord?
My code looks like:
IList<Video> videos = Video.Find(v => videoIds.Contains(v.ID));
I get an exception: The method 'Contains' is not supported
Do I do something wrong ... or I hit one of subsonic's limitations?
Thanks, Radu
| stackexchange/codereview |
Any one know how to implement auto send message using MFMessageComposer....i mean No need of displaying The message Composer..we Have to sent the pre-defined message to a given Number..Or any other way without using MFMessageComposer..???
| stackexchange/codereview |
I have a class which has a number of static function to perform some calculation. However, before the calculation, I need to pass in a data to initialize some of the static data members. Currently I have an init(data) function and a clearResource() function which should be called before and after the use of the class. ... | stackexchange/codereview |
In android I have my textview, I type "HELLO I AM KELLO I kie HAMBERY"
I want when I click on Kello it will pass into kello activity
and when I click on Hambery it will pass into Hambery activiy
| stackexchange/codereview |
$ time __git_ps1
((v2.6.33.4))
real 0m1.467s
user 0m0.864s
sys 0m0.564s
It's making my prompt unusable; on the other hand, though, it's too useful a feature to give up lightly. Any idea why it runs so slow and what I can do about it?
Setup details:
$ uname -a
Linux martin-laptop 2.6.35-22-generic #35-Ubuntu SMP... | stackexchange/codereview |
I am half way reading the OWL2 primer and is having problem understanding the universal quantification
The example given is
EquivalentClasses(
:HappyPerson
ObjectAllValuesFrom( :hasChild :HappyPerson )
)
It says somebody is a happy person exactly if all their children are happy persons. But what if John Doe h... | stackexchange/codereview |
When I write C/C++ code for Windows platform, I usually use Windows APIs as necessary. But when it comes to multi-threading, I read the following quotaion from < Windows via C/C++ >
The CreateThread function is the
Windows function that creates a thread.
However, if you are writing C/C++
code, you should never c... | stackexchange/codereview |
i just want to break a large image into some equal parts like 4, 6 or 8.
can we do it?
actually i want to store every parts of image as a separate image in my
drawable folder for future use.
can any one help me?
Thanks in advance
sunit
| stackexchange/codereview |
I'm using strpos to find the position of a string in another string. I first check if the string is found at all in there. Here's my line:
if (strpos($grafik['data'],$ss1)<>false && strpos($grafik['data'],$ss2)<>false && strpos($grafik['data'],$ss1) < strpos($grafik['data'],$ss2))
I check if both strings are contained... | stackexchange/codereview |
I'm wanting to build an app with 2 core data handlers for one iphone app.
The app will be a sports game with pre-filled information. Lets call it prefilledDB as a reference. This prefilledDB will be read-only, I do not want the user to add/edit/delete or change anything in this.
The second db ("gameDB") would have the... | stackexchange/codereview |
I am trying to set up Message archiving for my ejabberd server. I tried to add new module mod_archive following the link http://lboynton.com/2009/11/25/ejabberd-mod_archive-with-mysql-on-ubuntu/. After that i am not able to restart ejabberd server and gives me the following error in ejabberd.log
=ERROR REPORT==== 201... | stackexchange/codereview |
I need something like this :
Regex validSelector = new Regex("^[.#a-zA-Z0-9_:[] ]+[,><a-zA-Z0-9_~=\"\":[] ]*$");
Has anybody written a regular expression for validating jQuery or CSS selectors?
(CSS3/jQuery1.4)
Or, does anybody know where I can find a regex or regex generator to validate a jQuery selector?(or atleast ... | stackexchange/codereview |
I´m using a jquery plugin (Gmap) to load a google map , and several markers on it.
I need to refresh the markers(like changing a category or something from a drop down menu) and charge some other points on the same map without reloading the whole thing (only the markers)
How can i do this?, thanks!
| stackexchange/codereview |
This is my user table schema
CREATE TABLE IF NOT EXISTS `ehobe_user` (
`user_id` bigint(20) NOT NULL,
`user_email` varchar(80) NOT NULL,
`user_password` varchar(50) NOT NULL,
`user_fname` varchar(255) NOT NULL,
`user_lname` varchar(255) NOT NULL,
`user_terms` enum('yes','no') NOT NULL DEFAULT 'yes',
`is_a... | stackexchange/codereview |
I need to make a program that runs a process (my another programm) and can communicate with this process (sending stdin and recieving stdout).
I have read about functions like popen() and CreateProcess() but I don't really understand how to work with them.
Would be great, if you show me some sample code (how to start p... | stackexchange/codereview |
I have Googled and read for hours now and I can't find anyone that deals with my specific scenario...
I want to use interfaces in my WCF service contracts to loosely couple the service from the classes used on each end of the wire. This will enable us to have a low-level assembly that contains just the Service and Data... | stackexchange/codereview |
I'm unsure how to convert the following SVG snippet containing a viewBox attribute to VML coordorigin and coordsize attributes.
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="600px" height="600px" viewBox="-67235,-57840 124725,118547">
Any help would definitely b... | stackexchange/codereview |
Note: I'm not talking about preventing the rebinding of a variable. I'm talking about preventing the modification of the memory that the variable refers to, and of any memory that can be reached from there by following the nested containers.
I have a large data structure, and I want to expose it to other modules, on a ... | stackexchange/codereview |
If I do
git checkout -b samename origin/samename
then tracking appears to work fine. If I do subsequent commits, I can then do
git push
and git pushed up my commits to origin fine.
However, if I do
git checkout -b diffname origin/samename
then tracking doesn't work, despite this section of the pro git book:
$ git ch... | stackexchange/codereview |
I am able to create a new sheet inside an Excel file with sheet name as "Usage-08" by writing a query like
strQuery = "CREATE TABLE [Usage-08] ( Client TEXT,Division TEXT,Site TEXT)";
cmd.CommandText = strQuery;
cmd.ExecuteNonQuery();
And the new sheet is creating at the end of already existing sheets i.e. Sheet1,she... | stackexchange/codereview |
I have two websites.I want to validate,if the person who is signing in the 2nd website is come from the my 1st site.For example
if (websiteAcess == www.test.com)
{
allow user;
}
else{
deny user;
}
My question is how to get the value of websiteAcess?
Please help me sort out this problem.
Thanks in advance
| stackexchange/codereview |
I try to deploy static and I configure like many guides on the internet:
Go to qt folder
Edit \mkspecs\win32-g++\qmake.conf:
QMAKE_LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
to (add -static -static-libgcc)
QMAKE_LFLAGS = -static -static-libgcc -enable-stdcall-fixup -Wl,-ena... | stackexchange/codereview |
I have often encountered the following warning from gdb:
warning: .dynamic section for XXX is not at the
expected address
where XXX is the name of some library.
Most recently I got it for libgobject-2.0.so. My app uses GTK. gdb had been launching it without problems till yesterday when I synced the latest code from the... | stackexchange/codereview |
I'm trying to do a screen scrape using the cUrl library.
I managed to successfully screen scrape, few urls(5-10).
However whenever i run it in a for loop scraping a bulk(10-20) urls,
it will reach a point the last few urls will returns "HTTP/1.1 400 Bad Request".
Your browser sent a request that this server could not... | stackexchange/codereview |
How to make printout using C#. At the moment I would like to make printouts of text contents only. That is something similar to Notepad, but the print actions would be executed when a Form Button is clicked.
| stackexchange/codereview |
hy there!
i'm having that simple server-control:
public sealed class FooControl : CompositeControl
{
public string ValidationGroup
{
get
{
this.EnsureChildControls();
return this._fooValidator.ValidationGroup;
}
set
{
this.EnsureChildCo... | stackexchange/codereview |
Let me preface this by saying, I am not a programmer. So bear with me...my inquiries might sound a little "duh" for the programming masters out there. Anyway, I am trying to mesh the functionality of two JQuery scripts together. One script hides parts of the form (in divs) until the user selects from a dropdown the ... | stackexchange/codereview |
I have a program that create classes which looks like:
MyClass = Class.new do
def initialize; end
# ...
end
But I would like to name dynamically MyClass, from a string. And because it's for the name of a class, I would like to classify that string, for instance (thanks Rails methods):
"hello_world".class... | stackexchange/codereview |
I'm sure this is fairly trivial but I can't get it right.
public static string DoSomething(this Enum value)
{
if (!Enum.IsDefined(value.GetType(), value))
{
// not a valid value, assume default value
value = default(value.GetType());
}
// ... do some other stuff
}
The line val... | stackexchange/codereview |
I wanted to create a JFileChooser with thumbnail view of image files.So I subclassed FileView and in the method which creates ImageIcon did some scaling sothat thumbnail images are shown.
However,the overall effect is that, the filechooser widget takes some time before opening a directory and showing thumbnails..In cre... | stackexchange/codereview |
Here's my database:
id name parent_id
1 Computers NULL
2 Apple 1
3 Books 1
4 Music NULL
5 CDs 4
6 Records 4
My categories function:
public function showCategories($parent_id = 0){
if($parent_id == 0){
... | stackexchange/codereview |
A MySQL timestamp field is written and read as 'yyyy-MM-dd hh:mm:ss', how can I get the actual amount of seconds since 1970-01-01 UTC?
| stackexchange/codereview |
Are there any tools that could analyze code and suggest rewrites that use Linq?
| stackexchange/codereview |
I need some help optimizing a MySQL query or table
When I run this query it return in .01s with 650 records:
select mm, name, display, year
from tbl d
where active = 1 and tbl2_id = 'val' and lvl_id = 9
order by mm;
When I run this query it return in over 15s with the same records:
select d.mm, d.name, d.dis... | stackexchange/codereview |
I want the Android speech recognition system analysing audio file and not the default incoming voice from microphone.
Is there any way to do that ?
Thank you.
| stackexchange/codereview |
EmployeeId Name ManagerId
------------------------------
1 A null
2 B null
3 C 1
4 D 3
5 E 2
just using this table, how can a linq query (using linq to sql) be written to fetch the parent data recursively.
For instance if the Employer Id selected ... | stackexchange/codereview |
I have read all treads about value restriction in F#, but I still not understand it. I have the following code:
type tree<'a> =
| Nil
| Node of (tree<'a> * 'a * tree<'a>)
let rec flatten = function
| Nil -> []
| Node ( Nil, b, Nil ) -> [b]
| Node ( l, h, p ) -> List.concat [(flatten l);[h];(flatte... | stackexchange/codereview |
I have tried this in all browsers and works in all - except IE. Here's is the scenario:
in Host A Page 1 we will redirect you to host B when you click a link:
<%@Page Language="C#"%>
<script runat=server>
override protected void OnLoad(EventArgs e)
{
if (Request.QueryString["l"] != null)
... | stackexchange/codereview |
I've been having a play around with Mootools 1.3 server-side today. Its really nice took some bashing to get it Classic ASP friendly but still full of goodness (tm).
While showing a friend what Mootools can do I came across a strange ASP related error that I've not seen before.
Microsoft JScript runtime error '800a138f... | stackexchange/codereview |
I am programming in Java, trying to make a simple RDF Store using Jena library and lastfm.rdfize.com website.
I'm getting into the following problem:
the lastfm.rdfize.com produces an rdf, for example in Turtle on the request like:
"http://lastfm.rdfize.com/?username=&eventID=&artistName="+artistName+"&venueID=&output=... | stackexchange/codereview |
I have a nice little for-loop and I am stuck. I am afraid I've gone code blind, or is it object blind? I can't tell... My app crashes on the line marked --> and I can't see why.
for(int search = 2; search<10; search=search+2) {
NSString *arrayTime = [searchArray objectAtIndex:search];
arrayTime = [@" " stri... | stackexchange/codereview |
I was wondering what kind of values can the itemid attribute have beacuse I see it with a url value for example http://purl.oreilly.com/products/9780596007683.BOOK and with a set of numbers like a Books ISBN# for example, urn:isbn:0-330-34032-8 so what is the official value for the itemid attribute in laymans terms.
| stackexchange/codereview |
we are making a finnish language app and it seems that the MFMailComposeViewController isn't localized. It doesn't look very professional if some part of the app is in english. Anyway to get a localized version?
| stackexchange/codereview |
My iPhone app uses "AVAudioRecorder" to make voice recordings. It also uses "UIImagePickerController" to record movies and "MPMoviePlayerController" to play movies.
Everything works fine until I do all three things in a row:
Record a movie using UIImagePickerController
Play back the recorded movie using MPMoviePlayer... | stackexchange/codereview |
I have written a simple app and would like to try it out on my Samsung Galaxy i9000. After some trouble finding the proper USB-driver i finally have the device show up in the Device Manager under Android Phone/Android Composite ADB Interface. I am running Vista SP1 and my phone is a Samsung Galaxy i9000 with 2.1-update... | stackexchange/codereview |
Anyone ever seen this error? It's happening seemingly out of nowhere in a .net 3.5 Web app project that instantiates this namespaces object for use in xml serialization. I have cleaned and tried to rebuild the solution, checked and reset references to System.Xml. This is in code that has not been touched in over a y... | stackexchange/codereview |
I have a UISplitViewController, and I'd like to change the root view controller (on the left side of the screen) when I click a button in the detail view (the right side of the screen).
If I do this in the detail view:
NextGameViewController *newTableViewController = [[NextGameViewController alloc] init];
NSArray *newV... | stackexchange/codereview |
i used to -//depot/xxx.. but its not good because i need to write the correct depot path after -//.... is there any better way to comment this ?
such as :#//depot/xxx..
| stackexchange/codereview |
Google App Engine gets angry about image files over 1M.
http://code.google.com/appengine/docs/python/images/overview.html#Quotas_and_Limits
Given an arbitrary user-provided image, and the ability to run C code to pre-process it, is there any clever way to get down to 1M with maximum quality?
The brute-force way is to s... | stackexchange/codereview |
I am using git-svn to develop code that is hosted on a SVN+SSH repository. I do not have to input my ssh password on the server every time I dcommit/update/rebase, so I assume it is cached somewhere.
Where are my credentials saved? Inside the .git directory, or globally in some dot-file in my home directory?
I ask beca... | stackexchange/codereview |
I am trying to figure out a way to see if a bitstring has 2 consecutive ones in the bitstring size n in less then n time.
For example, lets say we had a bitstring size 5 (index 0-4). If index 1 and 3 were both 0's, I could return false. But if they were both ones then I may have to do 5 peeks to find my answer.
The... | stackexchange/codereview |
I need to create a simple installer of sorts for a different application. That other application already has it's own simplistic installer, and I don't want to meddle with it.
The reason for my own installer is to allow the user to install SQL Express if (s)he so chooses, and also to pre-install any other basic require... | stackexchange/codereview |
I'm trying to prepare for my midterm and I was going over some problems out of my algorithm book but can't seem to figure out the following problem:
Find necessary and sufficient conditions on the reals a and b under which the linear program
max: x+y
ax + by <=1
x, y =>0
(a) is infeasible.
(b) is unbounded.
(c) has ... | stackexchange/codereview |
I created a style.css.php file with this code:
<?php
$gzip = (ob_get_length() === false && !ini_get("zlib.output_compression") && ini_get("output_handler") != "ob_gzhandler" && extension_loaded("zlib") && substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && !headers_sent());
if(!$gzip) header('Location: styl... | stackexchange/codereview |
I tried using PARSE on a PORT! and it does not work:
>> parse open %test-data.r [to end]
** Script error: parse does not allow port! for its input argument
Of course, it works if you read the data in:
>> parse read open %test-data.r [to end]
== true
...but it seems it would be useful to be able to use PARSE on la... | stackexchange/codereview |
I'm in the process of creating a new web application using classic ASP. I've done this before and have 2 similar websites that have been running for over 2 years. My problem is that the ISP I'm using has me hosted on a system running Server 2008, IIS7, and I cannot rely on session state remaining constant. I use a s... | stackexchange/codereview |
In my project i am making big changes on pixels of a bitmap and i want to add undo redo feature to this project.Sincesaving several bitmaps on VM's memory is not a good idea i thought my only choice is storing history(bitmaps) as temp files.Before starting to implement i want to be sure i am doing something not stupid ... | stackexchange/codereview |
I'm developing a simple shooter game in XNA. I'm adding the copy of the object to an array list whenever it hits an hostile. The problem is, the object is added 2 times.
Here is the code:
--> Player fires spheres.
--> s is fired sphere
--> sp is copy of s
--> a sphere is drawn iff it's active
if(s.isCollided)
{
s.... | stackexchange/codereview |
I built a VB Windows Forms application a while back using VS05 (or VS08? Not exactly sure) that I've recently converted to use VS10. I reference a .dll called ExcelPackage (another article, usage) so that I can create/manipulate Excel docs serverside. This app has worked fine on my old computer (PC/Vista) for a number ... | stackexchange/codereview |
Suppose you have a database schema with tournaments related to games. A tournament may have many games.
I'm trying to join tournaments to games and only pull back tournaments with all games in the future.
SELECT DISTINCT tournaments.*
FROM tournaments
INNER JOIN games ON tournaments.game_id = games.id
WHERE games.even... | stackexchange/codereview |
I am trying to parse a table in the form of a text file using ifstream, and evaluating/manipulating each entry. However, I'm having trouble figuring out how to approach this because of omissions of particular items. Consider the following table:
NEW VER ID NAME
1 2a 4 "ITEM ONE" (2001)
1 7 "2 ITE... | stackexchange/codereview |
I'm trying to setup my databases in Sequel Pro (a mysql app). Localhost won't do. Any idea how I can get server name?
| stackexchange/codereview |
If I have allocated some amount of memory via ::operator new(nbytes) and later I have constructed in this pool via "new (where) what" some number (but lesser than nbytes) of objs of appropriate type, is there a way to check where is the uninitialized memory starts?
Example
struct T{};
short noOfObj = 10;
T* p = stat... | stackexchange/codereview |
I have a named comboBox, let's call it: "comboBox1"
I want to reference the value of comboBox1 from a cell.
=if(comboBox1.Value=1,1,0)
The idea above is what I'm looking for. I know I can attach an even to comboBox1, which populates a cell, which can be read by other cells, but that just introduces more moving part... | stackexchange/codereview |
What controls would be most suitable for creating a complex context menu, similar what you see in Windows Word. Should it be pop up, tooltip, or context menu or a transparent window?
What you think would be the best control to start with?
| stackexchange/codereview |
I'm looking to change this code into a dropdown menu, changing the list is fine but cant figure out the onclick event.
for (var z = 0; z < ShipTable.length; z++)
sOutput += "< input type=radio name=\"ZONE\" value=\"" + z
+ "\"" + (z == ZoneChecked ? " checked" : "")
+ " onClick=\"NewZon... | stackexchange/codereview |
Having problems getting CPAN to work with a MiniCPAN repository from within a script (aim is a code deployment system to build local modules together with modules from CPAN, install to a local-lib, and then sync out to servers)
$HOME/.cpan/CPAN/MyConfig.pm exists, with urllist set to ['file:///home/user/minicpan/']
The... | stackexchange/codereview |
I have the following tables:
Post
Id int
User
Id int
Then I have the table
Favorite
PostId int
UserId int
and the table
Vote
PostId int
UserId int
IsUpVote bit
IsDownVote bit
LastActivity datetime2
the problem is that if I merged both Favorite and Vote into a single table, then I'd have something like
UserPost
Post... | stackexchange/codereview |
I am writing a rails app and have so far written the html/css for my own front-end by hand. I am starting to feel like I am "re-inventing the wheel" in that my app looks and feels like a lot of other rails apps out there (tab bar at the top, main content area, secondary navigation area off to the side).
Rather than co... | stackexchange/codereview |
What happens when the process which owns a spawned port dies and is restarted by the supervisor?
Is there a way for the old port not to die with its owner and for the new owner to "take over"?
Failing that, is it possible to ensure that the spawned process terminates when its port dies?
| stackexchange/codereview |
I have an iPhone, an Ipad, don't have yet windows phone 7, but will get it right now if rebol can run on windows phone 7 so does/will rebol support it :)
Note: rebol could run on windows mobile so my question : will it continue to run on next version ?
Well if they don't release NDK, I will buy a tablet with classic Wi... | stackexchange/codereview |
I'm trying to get freemarker working under Google App Engine. I've gotten simple ftl template files working when requested directly however I'd like to have index.ftl work if available otherwise index.html -- or vice versa.
If I request /index.html, it renders fine as HTML.
If I request /index.ftl, it renders fine as... | stackexchange/codereview |
I'm looking for the best way to parse XML on iOS. There seem to be SO many ways to do this, so many different examples. Specifically, I want to send a request to a weather service, then extract the weather from the XML response.
If you could point me in the right direction and hopefully someone else will also find thi... | stackexchange/codereview |
i want to open the Design Report perspective from code (perhaps when I double click a report, the perspective should open) in a rcp eclipse application and I do not know where to start.
could anyone help me and tell where to begin, what are the first steps.
thank you very much
| stackexchange/codereview |
Possible Duplicate:
casting unused return values to void
I read some source code, and in it many virtual functions in the interface classes are declared and default-implemented as such:
virtual bool FunctionName(TypeName* pointer)
{
(void)pointer;
return true;
}
May I ask what is the purpose of casting the po... | stackexchange/codereview |
You know how Eclipse reloads classes automatically running in Tomcat when resource files they depend on such as spring context files are updated so that you don't have to re-start Tomcat? How do I make a class dependent on a resource file so that Eclipse re-publishes it when the resource file changes? Eclipse would re-... | stackexchange/codereview |
Looks like Apple has disabled the window.onbeforeunload event for iOS devices (iPhone, iPad, iPod Touch). Unfortunately I can't find any documentation as to why this event doesn't work in Mobile Safari.
Does anyone know if there's a reliable alternative to this function? Android's browser appears to support it just fin... | stackexchange/codereview |
Everything else remaining the same, some of my objects are more valuable than others.
Is it possible to boost objects at index time, let's say according to the USD price?
Or if you have a limited number of values, I was hoping that this would work:
f:aaa^4 f:bbb^3 f:ccc^2 animal:elephant
but I must be missing somethin... | stackexchange/codereview |
I've got a serious head-scratcher on my hands here. I'm investigating performance issues with a WPF component in our application.
Our .net application is very large, and almost entirely in windows forms. As part of a new initiative we rewrote one of our core components with a rich WPF ui. There is a lot of WinForms<... | stackexchange/codereview |
How do I do a simple if/else in the Genshi templating language?
I've found this ticket, which seems to suggest that Genshi doesn't support if/else, but it doesn't really explain what it supports instead.
I basically just want something like this:
<py:if test="c.row.currency">
${c.row.currency.upper()}
<py:else>
... | stackexchange/codereview |
I'm using Eclipse to write a small Java application that uses WLST to manage a few development servers. I want to be able to give this application to our developers who do not have Weblogic installed. We are using Weblogic version 9.2.
When I add weblogic.jar to the classpath (but leave it in my WEBLOGIC_HOME tree) i... | stackexchange/codereview |
I have an image with an image map that I need to overlay with a semi-transparent div and anchor. Since the image and image map vary page to page, the actual code dynamically generates an image map, reusing a single div and anchor for the overlaid link.
You can see a simplified version of the code on Fiddle. I have had ... | stackexchange/codereview |
I am trying to login to a website using screen scraping and I am having difficulties.
private static string GetWebRequestContent(Uri uri)
{
string sid = String.Empty;
string userName = "username";
string password = "password";
string postData = string.Format("FormName=Login&Login... | stackexchange/codereview |
I need to add custom handling to a lists' adding event. However, the event does not appear to be firing. I would like my custom handler defined in EventReceivers to fire anytime a new item of the custom type is added to the list.
I would appreciate any suggestions.
Here is my code:
using System;
using System.Collection... | stackexchange/codereview |
If so, what is the syntax for such a declaration?
| stackexchange/codereview |
I need method for construct ring (сircle from which cut a circle of smaller radius) and return it as System.Windows.Shapes.Shape. Can I do this with Path? May be exist another ways?
| stackexchange/codereview |
Normally when I ask for a thread dump, the symptoms of a poorly performing system are easily explained; i.e. normally I would be able to see that a number of threads are clearly waiting on a monitor which has been acquired but not released by another.
In this case, I have a lot of threads waiting for a monitor (0x965ad... | stackexchange/codereview |
There seems to be hardly any examples out there so here goes:
Here are my three structures but it doesn't seem to create the tables properly and when I call the following line it says Id is not recognised:
IEnumerable<Permission> permissions = _data.Find<RolePermission>(x => x.Role.RoleKey == roleKey).Select(x => x.Per... | stackexchange/codereview |
So I have a project - which I guess can be considered a relatively 'large-ish' project, that I want to build.
However, I am completely new to Rails. I am intimately familiar with UX & front-end development, but dealing with the back-end is new to me. I really want to learn though, and I remember DHH famously saying tha... | stackexchange/codereview |
I have the following class definition, written in C++, residing in it's own header file (ManageFeed.h)
#include <string>
#include <fstream>
#include <iostream>
#include <cstring>
class ManageFeed
{
bool get_feed();
void format_feed();
bool refresh_feed();
int find_start_of_string(string tag, ifstream& ... | stackexchange/codereview |
Hey people, looking for some help here.
Basically I have two tables in a MySQL database, jobs and dates.
Each date references a job by id, sometimes more than one date reference a single job.
I'm doing this query (x being a variable integer):
SELECT * FROM jobs LIMIT x,50
Now I have a result with 50 job-records and I w... | stackexchange/codereview |
I have an entity public class GroupUser { Group g; User u; }. How do I fetch just the primary key(s) of all users. (i.e. List of u.getId() for a query where you fetch all users which belong to a group). I don't want to fetch the entire row, since it seems to take more time right now
| stackexchange/codereview |
I have a large C++ API, which I need to wrap in a C++/CLI skin to make available in .NET
For the most part it works fine, but I have encountered one area that causes a polymorphism problem.
On the pure C++ API I have a function like:
vector<Parent*> getCppObjects()
{
return myVector;
}
Parent is a type with two ch... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.