instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
does setting uid has the same effect that sudo has?
What happens if setuid'ed executable open whoami with popen? Do I get 'root'?
| stackexchange/codereview |
This is probably a stupid question, but does object Properties occupy any memory per instance?
As I've understand it when you instantiate an object each value field occupies its size and reference field types 4 bytes per field. But say you have an object with 1000 properties that fetches data via some other object, d... | stackexchange/codereview |
The table below prints out a comment (($rowquote["comment"]))in its entirety. How could I limit it to 250 characters?
Thanks in advance,
John
echo "<table class=\"samplesrec1quote\">";
while ($rowquote = mysql_fetch_array($resultquote)) {
echo '<tr>';
echo '<td class="sitename1quote">"'.stripslashes($rowquote... | stackexchange/codereview |
How to load an ADO.NET driver but when a connection is needed I want to specify the connection string manually which means through my code and without having it in the config file ?
If there's no way to do this, what's the best approach to achieve this, knowing that I'm writing an app that manages different databases (... | stackexchange/codereview |
I'm having a problem with my navigation controller. If I add a view controller to the stack:
- (void) tui_ToggleListStudy:(id)sender
{
listVC = [[ListViewController alloc] init];
[self.navigationController pushViewController:listVC animated:NO];
[listVC release];
}
I have NSLog messages for the view contro... | stackexchange/codereview |
I'm supporting an Access application that's about 10 years old, and I'm trying to fix some weird behavior.
There is a form with a combo box on it and for some items in the list, but not all, after I select the item, the listindex property reverts to the originally selected item.
For example, if the listindex starts at ... | stackexchange/codereview |
Could someone help me translate this code to PHP 4?
try
{
$picture = PDF_open_image_file($PDF, "jpeg", $imgFile, "", 0); // This is the original statement, this works on PHP4
}
catch(Exception $ex)
{
$msg = "Error opening $imgFile for Product $row['Identifier']";
throw new Exception($msg);
}
Basically when there... | stackexchange/codereview |
Before writing to the file:
using (StreamWriter outfile = new StreamWriter(filePath, false, System.Text.Encoding.UTF8))
{
outfile.Write(content);
}
I'm checking the file write accsses using this:
public bool CheckIfAccessToFileIsGranted(string filePath)
{
try
{
new FileIOPermission(Fi... | stackexchange/codereview |
I can't figure out the following problem:
I use HTML 5 video on my web site. For crossbrowser support, I keep video in "mov" and "ogv" formats, so that Firefox can play it.
In ./config/initializers/mime_types.rb I have the following code:
Rack::Mime::MIME_TYPES.merge!({
".ogg" => "application/ogg",
".ogx" =... | stackexchange/codereview |
I’m playing around with the Stack Overflow API using Python. I’m trying to decode the gzipped responses that the API gives.
import urllib, gzip
url = urllib.urlopen('http://api.stackoverflow.com/1.0/badges/name')
gzip.GzipFile(fileobj=url).read()
According to the urllib2 documentation, urlopen “returns a file-like ob... | stackexchange/codereview |
I have a table that was created using this mysql statement below.
CREATE TABLE `jos_ttvideo` (
`id` int(11) NOT NULL auto_increment,
`video_id` int(11) NOT NULL DEFAULT 0,
`thumbnail` varchar(255) NOT NULL DEFAULT "",
`thumbnail_med` varchar(255) NOT NULL DEFAULT "",
`thumbnail_lrg` varchar(255) NOT NULL DEFAULT "... | stackexchange/codereview |
I developed a Android-Homescreen-Widget and got a weird problem: The "Open"-Button in the Market grayed out because there is actually no Application to launch. So, many people complain because they don't realize that my package is a widget. They even give me a bad rating and I want to avoid that by giving the people a ... | stackexchange/codereview |
The answer to this question might be really obvious but its giving me a headache. I have a simple LinearLayout with one single ListView in it. I do this: onCreate
public void onCreate(Bundle b) {
super.onCreate(b);
setContentView(R.layout.friends);
ListView listView = (ListView) findViewById(R.i... | stackexchange/codereview |
I'm trying to create a custom HTML helper and I would like to know how I can access the Model object without passing it as a parameter.
Thanks
| stackexchange/codereview |
In the example below (from my coursepack), we want to give to the Square instance c1 the reference of some other object p1, but only if those 2 are of compatible types.
if (p1 instanceof Square) {c1 = (Square) p1;}
What I don't understand here is that we first check that p1 is indeed a Square, and then we still cast i... | stackexchange/codereview |
I'm running Ruby 1.9.2 and Rails 3.0.0 in WinXP. I ran gem install nifty-generators from inside a new project directory. It said the gem, version 0.4.2, was successfully installed but there was an error installing ri and rdoc, so I ran the same command again but with the --no-ri --no-rdoc switches. Now it appears nifty... | stackexchange/codereview |
I'm upsizing my application from MS-Access FE and BE to MS-Access FE and SQL Server BE. I used the SSMA Access "upsizing" tool to convert all the tables from Access to SQL, then I linked the SQL tables in the Access FE using ODBC.
In my access database, some tables had DateTime columns that were converted in datetime(0... | stackexchange/codereview |
Hey!
I know title of question is very scary but I still I am not able to express the problem in single line!
So Here I go:
There is a Data Pointer say DataPtr which is pointing to a dynamically allocated memory and Another Structure Pointer say StructPtr which also points to a Dynamically allocated structure.
And These... | stackexchange/codereview |
Embedding Jetty webserver into a Java application is supposedly easy; examples abound.
No examples indicate the Jetty libraries that must be imported.
I have downloaded the Jetty distribution package... it has 36 jar files.
Where can I find a step-by-step example of exactly must be accomplished to embed Jetty in an app... | stackexchange/codereview |
I have a long running program, my_prog that has some output that I want to parse to get two variables, $start and $end. Here's what the output might look like:
Important data between the first set of pipes|3|a|
This line is not interesting to me|5|c|
...
Another line with data (at the end this time)|4|b|
In the exam... | stackexchange/codereview |
If I run the command-line program mysql like
mysql -u someone -p < sql-file
so that a password is required (-p), it prompts for a password:
Enter password:
However, as you can see from the above, standard input is actually a file, sql-file.
How does "mysql" (or similar programs) do this?
(Please note that this is ... | stackexchange/codereview |
I tried this in my ubuntu telnet client:
> telnet www.google.com 80
> GET / HTTP/1.1
What I got back is a bunch of HTML lines in the console.
I noticed one thing at the end of the last line, right after closing tag /Script.
There is a character '0' ... what does it mean?
| stackexchange/codereview |
Is it possible to change fillfactor of an existing table in PostgreSQL 8.4?
Or do I have to create copy of a table with new fillfactor - which is not the best approach because of foreign key problems?
| stackexchange/codereview |
i have id "@+id/call" in single_item.xml when i use findVewById it (the layout setcontextview(R.layout.main)) .the app crash .how to fix the error
code single_items.xml used to inflate listView in class CustomSqlCursorAdapter
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com... | stackexchange/codereview |
I have a simple app I coded for android that I want to go on Blackberry too - How easy is it to get the code over to their SDK and run it working as intended?
I was only wondering if anyone knew from experience. The only API's on Droid I really use are camera and face detect.
Thanks!
| stackexchange/codereview |
I was wondering when you update a status using twitter api, can I change the name of the via text, i.e. via android, or via facebook, or does twitter only allow one name for each app!
| stackexchange/codereview |
My friend sent me a joke:
Q. What's the difference between C and C++?
A. Nothing, because: (C - C++ == 0)
I tried to change order and got stuck.
Look at this code:
public class Test {
public static void main(String args[]) {
int c = 10;
System.out.println(c++ - c);
System.out.prin... | stackexchange/codereview |
I've downloaded the C# Facebook SDK "Simple MVC Website Example" from CodePlex at:
http://facebooksdk.codeplex.com/releases/view/54371
and have successfully got it to authenticate to my test Facebook app. But I can't quite work out how to get the access token (and I'm going to want offline access, so I only need to gr... | stackexchange/codereview |
While trying to learn the source for GameLibrary sample application I saw a line like this:
ConventionManager.AddElementConvention<Rating>(Rating.ValueProperty, "Value", "ValueChanged");
Looked into the source of Caliburn but couldn't really understand what element conventions are.
Can someone describe briefly please?... | stackexchange/codereview |
Folks,
I'm using SOAPClient in PHP to call a .NET webservice. All fine and dandy, right up to the point where I'm passing parameters. The remote webservice makes a request to a listener.php file which processes the response, however at present it doesn't seem to be able to get the parameters... checking the request bef... | stackexchange/codereview |
I would like to grab the time (something like): 16:08 from the server - and display it on the website real time. (Like, each minute do the update, and display the new time.
I'm not sure however, what would be a good way for accomplish this nor if there is any nice plugin that I should be aware of. :D
Can I have some in... | stackexchange/codereview |
I'm trying to setup xerces so that I can use it in Qt Creator for Windows.
Does Qt support windows/linux binaries or do I have to compile it using mingw as a target? How one goes about compiling those libraries in Windows?
| stackexchange/codereview |
i have a String
NSString *const kAUrl = @"http://www.google/start.php?show=best&usr=(here)&pwd=x";
and
i want to pass another String
NSString *a = @"aa";
to above url at the place i have written (here) in above url.
How can i pass it?
regards.
| stackexchange/codereview |
I'm new in postgresql and could use a pointer to get forward.
Problem:
I've got a table with several fields. 3 of these needs to be updated with the result from a functions which returns 3 numbers. How do I do that?
Example(which obviously doesn't work):
update gravitational_relations
set x, y, z = SQL_CALCULATE_GRAVIT... | stackexchange/codereview |
I'm writing a code formatter and I need some help. I have to find the code blocks and I want to use regular expressions. The code I need to format looks basically like this:
KEYWORD name {
word
word
...
}
I am able to find the blocks that start with { and end with } with this expression:
[{](.*?)[}]
But I... | stackexchange/codereview |
We have a structure like below:
template<size_t size>
class Container{
public:
char characters[size];
};
And we have a function like below:
template <size_t size>
void function(Container<size> input,size_t Size){
//all instances do exactly same thing and with regard to Size that determines the size of object
}
No... | stackexchange/codereview |
In our DB, we have: (x means don't care)
GID UID COST
================================
A 1 100
A 1 x
A 2 200
A 2 x
B 3 330
B 3 x
And the customer report required to look like:
UID COST
================================
[Group - A]
1 100
1
2 200
2
---... | stackexchange/codereview |
I have two items from my model and I want to iterate them at the same using jstl foreach. how can I achieve this using a correct syntax?
| stackexchange/codereview |
I'm experiencing some problems when unlocking a locked account on AD.
I'll keep it very simple. I'm assuming that the account is currently locked.
UserPrincipal oUserPrincipal = ADMethods.GetUser("test.user");
oUserPrincipal.UnlockAccount();
oUserPrincipal.Save();`
oUserPrincipal is returned using an Admin account... | stackexchange/codereview |
I'm trying to get two-way binding working with a simple GridView with Dynamic Template columns. The code for the Template is as follows:
public class GridViewCheckboxTemplate : ITemplate
{
private DataControlRowType dcrType;
private string strColumnName;
private string strDataType;
public GridViewChec... | stackexchange/codereview |
I have some buttons that when clicked, invoke jQuery to remove and replace their class. The jQuery.mouseover event that I want to call is ignoring the manipulated classes, and only obeying the classes from the page load.
Here's an example JSFiddle
Details below:
I have a row of buttons that, when rolled over invoke som... | stackexchange/codereview |
I have a servlet that invokes generic actions passing in a form and object (depending on what the action needs)
CommitmentServlet.java
CommitmentListDAO clDAO = new CommitmentListDAO();
CommitmentItemForm form = new CommitmentItemForm(clDAO);
CommitmentItem obj = new CommitmentItem();
actionMap.put(null, new ListActio... | stackexchange/codereview |
I'm still learning all of the powers of OO design and have much more experience in database (in particular, E-R) designs. Each time I approach a problem and attempt to come up with a design following OO strategies, my diagrams(UML classes, for example) come out looking like an ERD. I've read/heard it's then smart to ... | stackexchange/codereview |
I have a complex function (optimisation) that can potentially enter in a loop or just to take too much time, and the time allowed is set by the user.
Therefore I am trying to make to run the function in a separate thread, and to stop it if the maximum time is passed. I use a code similar to the one below, but it doesn'... | stackexchange/codereview |
I'm using ASP MVC application + WCF service with custom session behavior implementation. Clients receive, store and use (for authorization) session tokens. Now I'm searching for most secured way to store session token at client side in ASP MVC.
I see few ways:
Hidden field. Drawback: user can open page source code a... | stackexchange/codereview |
I'm trying to keep my HTML very simple. I have a set list which declares the name of a Wizard like set of Steps...
<div>
<ul class="wizardBar">
<li class="step1">Step One</div>
<li class="step2">Step Two</div>
<li class="step3">Step Three</div>
</ul>
</div>
And I have the following in ... | stackexchange/codereview |
var x = 5;
function f(y){ return (x+y)-2 };
function g(h){ var x = 7; return h(x) };
{ var x=10; z=g(f) };
I'm working through some problems from my textbook in my class to prepare for our next exam, and can't figure out how the above evaluates.
Mostly, I don't understand the call z=g(f), as when f is evaluated,... | stackexchange/codereview |
I am modifying an existing app.And there is an issue trying to run ADT
environment
Eclipse-galilo
jdk 6
ADT android sdk lattest editon.
error bellow
[2010-11-19 11:01:12 - iDonatedIt] Android Launch!
[2010-11-19 11:01:12 - iDonatedIt] adb is running normally.
[2010-11-19 11:01:12 - iDonatedIt] Could not find iDona... | stackexchange/codereview |
I use this code :
$url = $this->uri->segment_array()// OR $this->uri->uri_to_assoc(3);
print_r($url);
but it always return empty array ?
the requested URL like :
http://localhost/my_proj/index.php/thumb/index/id/87
| stackexchange/codereview |
My database (MySql) has 2 tables
Table 1 - contains a record for each car
cars= id(int), reg(int), type(int)
Table 2 - contains jobs for each car
jobs = id(int),date(date)
I need a SELECT command which will get me the most recent job for all id's
Thanks in advance.
| stackexchange/codereview |
I'm wondering a simple way to find back the object corresponding to the clicked item..
They're tons of examples on the web on how to figure out the ListView setup with the setListAdpater, but much less on how to well handle its listener.
Is "by position" the only way ?? I'm wondering a possibility to associate the obje... | stackexchange/codereview |
I have any array of type int and need to store, within this array, a pointer to another part of the array.
The problem is that, on 64bit systems, the size of the pointer is 8 bytes, and the size of the int is 4 bytes causing complier warnings (e.g. warning cast to pointer from integer of different size)
I (think0 i und... | stackexchange/codereview |
Had an interview, and got a question about MEF (Managed Extensibility Framework), which I had never heard about.
What are the main current such frameworks I should know about?
(General .NET and ASP.NET)
| stackexchange/codereview |
How can i detect that the browser is Safari 5 or higher?
| stackexchange/codereview |
Not sure why this isn't working, but connect(button, SIGNAL(clicked()), this, SLOT(addMenu())); force closes the application when I click on the button.
mainview.h
#ifndef MAINVIEW_H
#define MAINVIEW_H
#include <QtGui/QMainWindow>
#include <QtGui/QScrollArea>
#include <QtGui/QFrame>
#include <QtGui/QVBoxLayout>
#inc... | stackexchange/codereview |
I've been playing around for some time now with Clojure and I simply love the LISP-syntax, it's really beautiful, expressive, simple and yet extremely effective. I've also been toying around with C# for some months and find it's syntax really verbose and quite ugly, but yet it works for me but I'd prefer the LISP-synta... | stackexchange/codereview |
Here's the situation. I have a base class which implements a method that accepts a string, and sets a property to the value of that string. Under that, I have a group of concrete classes that implement the base. Some of the concrete classes can accept any string value to be stored. However, some of the class's valu... | stackexchange/codereview |
In my remote MySQL, when I try to execute this query,
I am getting the MySQL Error Code : 13.
Query -
LOAD DATA INFILE
'/httpdocs/.../.../testFile.csv'
INTO TABLE table_temp
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\\r \\n'
(sku, qty);
Error Code : 13 Can't get stat of '/httpdocs/.../.../testFile.csv' (Errcode: ... | stackexchange/codereview |
I have a register.php file which creates new users for my site . But if a person uses a username which is already existing an error is generated only when he enters the whole form and submits . How to implement Ajax/Jquery so as to show it without him submitting the form ?
| stackexchange/codereview |
I had no idea where to start in Googling... I have a workbook and want to have 2 cells on different sheets where if one is updated, so is the other. However I want to be able to change either cell and the other to update... Is this possible?
| stackexchange/codereview |
At the moment I have all my views specified in my mainWindow.xib file in interface builder.
So when a tab bar button is tapped it loads the correct navigation controller.
But I want to do something different in code when they tap the tab bar button for one button.
How do I do that?
EDIT - Not quite working solution...
... | stackexchange/codereview |
They both have the same name and use the new Graph API, but which is better for ASP.NET 4.0 WebForms? The official SDK hasn't been updated in a few months, but the one on Codeplex was just updated last week. Does anyone have experience with both that could offer an opinion?
https://github.com/facebook/csharp-sdk
http:/... | stackexchange/codereview |
I heard there is a port of spring framework to .Net framework which is called spring.net.
Anyone can compare those two frameworks? If design the system, which one is prefered or both can be used.
| stackexchange/codereview |
I have sorting django sortingtags component on my page.
I want render differently my page depending on what field it is sorted by.
How can i implement that?
example:
{% autosort object_list %}
<tr>
<th>{% anchor first_name Name %}</th>
<th>{% anchor creation_date Creation %}</th>
...
</tr... | stackexchange/codereview |
I've got a file containing several channels of data. The file is sampled at a base rate, and each channel is sampled at that base rate divided by some number -- it seems to always be a power of 2, though I don't think that's important.
So, if I have channels a, b, and c, sampled at divders of 1, 2, and 4, my stream wil... | stackexchange/codereview |
I am building a web crawler in .Net which executes approx 500 httpwebrequests at a time.
Everything runs fine but the problem arise at some points; Looks like garbage collection thread takes over the whole application pause for a few seconds. Is there anyway that reduce the delay generated by GC.
| stackexchange/codereview |
I'm having some questions I'd like to clarify.
Volatile read ensure you read the
latest value of a variable. Does it
means that it forces to all CPU's to
flush their cached values for that
variable? only that variable or all?
So if it will force all CPUs to
flush cached writes and get latest
version from main memory, ... | stackexchange/codereview |
Do you know any "semantic" rails gems for form generation which integrates well with the mongoid gem ? By integration I mean, correct automatic association based on the rules in the models (referenced_in, references_many).
I tried simple_form but it seems to fail ...
Cheers
| stackexchange/codereview |
Problem
It seems like running Tomcat as a service doesn't play well with Rails 3 applications that are packaged up using warble. Looking at the log files, it looks like there is either a circular dependency or a dependency that is being dynamically resolved but cannot be found, so it loops. Eventually, org.jruby.except... | stackexchange/codereview |
I find myself doing the following a lot to define return values from ruby methods:
def foo
val = (some expression)
val
end
This always seems a bit contrived. What's the best practice here?
| stackexchange/codereview |
So, I've started looking into using AspectJ to handle processing events when the state of an object in my domain changes.
Effectively, I'd like to write advice that wraps all of the setter methods in my domain. When the advice is called, it'll check the initial value of the field being set, run the setter, then check t... | stackexchange/codereview |
I have an editing window with several fields, all bound to the 'content' controller key of an NSObjectController, which is in turn bound to the 'selection' controller key of an NSArrayController. I also have an NSTableView, bound to the same NSArrayController, along with its selection.
In my editing window, as soon as ... | stackexchange/codereview |
If I have PHP script, how can I get the filename of the currently executed file without its extension?
Given the name of a script of the form "jquery.js.php", how can I extract just the "jquery.js" part?
| stackexchange/codereview |
Given a string like: "0.123, 0.456" what is the simplest way to parse the two float values into two variables a and b?
| stackexchange/codereview |
Attaching data to elements in jQuery is easy:
$(selector).data(key, value).
However, it occurred to me that I may want to prefix all my keys with my root namespace. For example:
$(selector).data("MyDotComApp." + key, value)
Is this a waste of time? Am I overthinking this? Do I need to worry about overwriting any data ... | stackexchange/codereview |
Say, I have a file foo.txt specifying N arguments
arg1
arg2
...
argN
which I need to pass to the command my_command
How do I use the lines of a file as arguments of a command?
| stackexchange/codereview |
Here is the scenario.
I have a C++ application using CMake that has been setup on Ubuntu server machine. I have setup a remote development interface to it using Netbeans 6.9 on client machine, and I have been able to build it.
The problem is that (as per the setup of CMake script) the executables from the program are... | stackexchange/codereview |
What is the "standard" way of using mysql in python. I define standard as something that won't go away for a long time.
import _mysql
db = _mysql.connect(host, user, pass, db);
db.query("sql");
vs
import MySQLdb
db = MySQLdb.connect(host, user, pass, db);
cursor = db.cursor();
cursor.execute("sql");
Obviously My... | stackexchange/codereview |
I am trying to use SharpFFMpeg
http://sourceforge.net/projects/sharpffmpeg/
I found avcodec-52.dll and avformat-52.dll somewhere on the Net...
When I use SharpFFMpeg and make calls like av_init_packet
I get PInvoke errors like so
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'WpfApplicationFFMp... | stackexchange/codereview |
Zend Studio 8 has performance problems with large php source files (around 3,000 lines of code) causing MAJOR typing lag. There has been a patch developed but apparently they haven't rolled it out yet as nothing happens when I to go Help > Check for Updates.
Is there any way I can manually update the IDE so I don't hav... | stackexchange/codereview |
Does this scenario work using mercurial?
so if you have a central rep
Central -> Bob clones. Bob makes changes.
Alice Clones off bob, alice makes changes
Bob makes further changes
Alice pushes to central.
Bob pushes to central
| stackexchange/codereview |
After developing for a few years (or more), I still do not understand:
What makes User Instances impossible/incompatible with Developer (or any other) edition of SQL Server?
Why has developer to install more than one (i.e. developer edition) of SQL Server because user instances are available only through Expre... | stackexchange/codereview |
I am trying to do a very simple AD query to see if a computer is in a group. The following code seems intuitive enough but does not work. The LDAPString is a fully distinguised name for the group that the computer referenced by NetBIOSName is a memberOf.
public bool IsComputerInADGroup(String LDAPString, String NetBIO... | stackexchange/codereview |
How can I change this code to take advantage of jQuery?
function download(elm) {
var iframe = document.createElement("iframe");
var param = elm.innerHTML; //$get("filedownload").innerHTML;
//iframe.src = "GenerateFile.aspx?filename=386c1a94-fa5a-4cfd-b0ae-40995062f70b&ctype=application/octet-stream&... | stackexchange/codereview |
Im a beginner of javascript and ajax. and i would like to use
ajax to populate my tag with which are the
content of a particular directory.
is there such opendir() fxn in ajax just like in php?
Where do i start from here?
| stackexchange/codereview |
I have created an application, where I need to get error logs (if any) when web services fail. I'm planning to go ahead using ExternalInterface in Flex and using JavaScript. Does anyone have any experience with this?
| stackexchange/codereview |
I would like to know a way to open the default browser on OS X from a C++ application and then open a requested URL.
EDIT: I solved it like this:
system("open http://www.apple.com");
| stackexchange/codereview |
Hi there got this from jscrollpane but can't figure out how to make the first tab active and it does not show information until clicked. I know what code i have to put it i just dont know where or what i have to take out to make it work
$(function()
{
// Create the "tabs"
$('.tabs').each(
function()
... | stackexchange/codereview |
I have 2 test suites created in the FrontPage, lets say Suite1 and Suite2. Now I have 1 test case created in Suite1, lets say TestCase1, and would like to have another copy of TestCase1 inside Suite2, may I know how can I use the "Recfactor" feature in the FitNesse to "copy" TestCase1 into Suite2?
Thanks @!
| stackexchange/codereview |
I am writing a Linux kernel module. It is released with all the source files (although the license is proprietary) to be compiled against the running kernel. When installing my module (distributed as a .deb package) it is compiled and installed automatically. This works.
The issue is that during the regular upgrade pro... | stackexchange/codereview |
I'm trying to initialize a RDF datastore using Jena and HSQLDB. From http://jena.sourceforge.net/DB/hsql-howto.html I wrote the following code:
import com.hp.hpl.jena.db.DBConnection;
import com.hp.hpl.jena.db.IDBConnection;
import com.hp.hpl.jena.db.impl.Driver_HSQL;
import com.hp.hpl.jena.rdf.model.Model;
import com.... | stackexchange/codereview |
I read a little about the new features of Silverlight 4 and it seems possible to 'access' microsoft office . Does this mean that we can reference local dll and COMs ?
Thanks
| stackexchange/codereview |
Does anyone know a good link or help / steps to undergo to setup PHP (5) on tomcat 6.x ?
I have spend a lot of time on research in the net, downloaded lots, followed steps / tutorials with no success.
Would really appreciate step by step guide, or a link etc. - the stuff I found is usually for older versions - when i ... | stackexchange/codereview |
I'm using GDI+ to draw a string on a Graphics object.
I want the string to fit inside a pre-defined rectangle (without breaking any lines)
Is there's anyway of doing this besides using TextRenderer.MeasureString() in a loop until the desirable size is returned?
something like:
DrawScaledString(Graphics g, string myStri... | stackexchange/codereview |
I am trying to work out the best way to configure my Zend_Log_Writer_Stream instance to write to a filename relative to my APPLICATION_PATH.
For example, with the following config:
resources.log.stream.writerName = "Stream"
resources.log.stream.writerParams.stream = "logs/production.log"
The normal way to init your lo... | stackexchange/codereview |
We're trying to figure out validation in the mvvm doing validation in the business logic or model.
I've implemented the validate by exception type in our business logic - a simplified diagram can be found here:
If we've got lot's of inputs that are independent of each other, there is no problem, the exception is throw... | stackexchange/codereview |
I'm trying to consume a SAP Web Service from .NET via WCF. I've generated the proxy and I have configured the app.config file.
Here is my test code:
WebServiceSAP.ZTEST_RFCClient myWCFService = new WebServiceSAP.ZTEST_RFCClient("MyEndPoint");
myWCFService.ClientCredentials.UserName.UserName = "<UserName>";
myWCFServi... | stackexchange/codereview |
If you have a query such as:
select a.Name, a.Description from a
inner join b on a.id1 = b.id1
inner join c on b.id2 = c.id2
group by a.Name, a.Description
What would be the most optimal columns to index for this query in SQLite if you consider that there are over 100,000 rows in each of the tables?
The reason that I ... | stackexchange/codereview |
a very simple problem, maybe someone has a tip for a MVC Beginner like me. I want to Password protect an MVC Application - just on user / password is necessary - I did it via ASPNETDB and SqlMembershipProvider, but there should be hopefully an easier way - in webforms I did it via adding user / password to web.config. ... | stackexchange/codereview |
why when trying to add some resource dictionaries to my CaliburnApplication.Resources tag, it does not work, and when do it in code behind of my app.xaml it works?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.