instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
How can i have a UILabel with two different colors for the font? I will have text in two different strings and i want to make text with first string as red and second as green. The length of both the string is variable.
| stackexchange/codereview |
Im having trouble identifying my databases as correct and valid version of my model. I have a GUID-id for my model I could use, but where do I put it? I dont want an entire table with only one row for this GUID. Is there any metadata-repository for databases (SQL Server 2008) or is there any other methods of identifyin... | stackexchange/codereview |
I need a readable tutorial on working with Flex+BlazeDS+Spring+GAE (storing more than one table in GAE Datastore). Is there any such?
| stackexchange/codereview |
I have gone through Qtestlib manual & tutorial and got to know step by step procedure for developing a test.
If i'm right, Qt has already developed few test cases for testing its functionalities. Can anyone tell me where are those codes in Qt's source tree?
If i have to modify them(test cases), is it possible for me to... | stackexchange/codereview |
I have two windows form and both set the topmost property to true. But the form border style of the one form is Set to "None". The other form has border. When these two forms launch together, the one without the border is always on top and overlap the other form. How do i make the form with border always on top? thanks... | stackexchange/codereview |
In my jquery snippet, am using the function(e) and also in some places i used function(event)
How system really understand the e is the event object,
is any where they declared by default ,
| stackexchange/codereview |
I have a table with four columns. I'm adding rows to the table dynamically with jquery and in the fourth column is a "Delete" link. I need to remove the link from the row when a new row is added. This is all happening and working as I want it too. The problem comes when I want to delete the row. I need to put the ... | stackexchange/codereview |
I have got this super weird bug in my current project. To understand what is going on, I narrowed down everything to the simplest app, which can be downloaded here:
download simple example here (no autoreleasing of the mentioned indexes array here)
It seems like the method: sectionIndexTitlesForTableView has something ... | stackexchange/codereview |
I want to do some calculating after touch-Event on my widget.
Is there a possibility to do this without starting an activity? My problem is that i have to register an onClickPendingIntent to the touch-action....
There is an annoying visual response with my solution: screen flashes to black and reappears to homescreen.
... | stackexchange/codereview |
I'm trying to extract src value from image tag using prag_match with perl pattern. I don't know where I'm making wrong but, I'm getting unwanted part as well. Here's how my pattern look like -
preg_match_all('#src="http.+"#',$imagetag,$temp);
$imagetag = "<img src="http://....." alt="build4.jpg" title="build4.jpg" wid... | stackexchange/codereview |
I have an application which has settings where user can define what file will be played on different events (complete, cancel etc.)
What is the difference between words audio and sound (settings) in computer program? Or is there difference at all? In my case what would be the settings called?
| stackexchange/codereview |
Hey everyone. I've found examples of rewriting a URL to a variable, given that you go example,com/r/33 and the variable would be r=33. I'd like for the variable name to be default, and just put example,com/33 and then the php would get r=33
Specifics.... I would like our site http://www.buybattle.com/houston to pass ci... | stackexchange/codereview |
I have some xml in the following format:
<fileExport>
<rows>
<row id="0">
<columns>
<column id="0">
<name>Date Time</name>
<value>2010-10-2 23:00:00 GMT</value>
</column>
<column id="1">
<name>Primary</name>
<value>100.1</value>
</colu... | stackexchange/codereview |
I want to open the workitem from outside visual studio using C# code. is it possible?
I tried with this :
IWorkItemDocument widoc = null;
try
{
string tfsName = "http://rd-tfs-no2:8080/tfs/siproducts";
var projectCollectionUri = new Uri(tfsName);
var projectCollection = TfsTeamProjectCollectionFactory.Get... | stackexchange/codereview |
I've been writing some code that replaces some existing:
while(runEventLoop){
if(select(openSockets, readFDS, writeFDS, errFDS, timeout) > 0){
// check file descriptors for activity and dispatch events based on same
}
}
socket reading code. I'd like to change this to use a GCD queue, so that I can pop event... | stackexchange/codereview |
I have a web project set to deploy from a git repo.
If I set up the project with http submodules (e.g. http://github....etc) it fails to deploy, with:
** [my-dev-server.com :: out] Synced lib/vendor/odm
** [my-dev-server.com :: out] Cloning into lib/vendor/odm...
** [my-dev-server.com :: err] fatal: Unable to find remo... | stackexchange/codereview |
What is the problem with Ajax (jQuery) And Php ?
Why my code does not work ?
jQuery Code:
$(document).ready(function(){
$.ajax({
type: "GET",
url: "Tags.php",
dataType: "xml",
success: function(xml) {
alert("success");
}
});
});
Tags.php Code
<?xml version="1.0" encoding="UTF-8"?>... | stackexchange/codereview |
Getting a weird segmentation fault on following code when I try to pass a number into my application on command line.
int offset = 3;
int main(int argc, char *argv[]) {
// Check for arguments to see whether there is a custom offset
if (argc == 2) {
// If argc == 2 then we have a offset?
if (isd... | stackexchange/codereview |
The script is in data.py and template file is search.mako. The search form is in MainPage method (not included in the code below). I enter the search term but nothing happens. Can you help understand what I am doing wrong? Thank you.
class Pet(db.Model):
name = db.StringProperty()
class Search(webapp.RequestHandle... | stackexchange/codereview |
how i can select five items in the single click on the list box??
if i click any item, i just want to +2 and -2 from the selected index. so my single click need to select five items in the listview.
Am using C#(WPF).
| stackexchange/codereview |
I got a field with sizes(VARCHAR). The sizes can have int and string values,
e.g. (1, 2, 3-4, X, XL, M, ...).
When i use the normal order by function of mysql the output is the following:
1,10,11,2, 44-46, L, M, S, XL, XXL
The values that does not contain a number are sorted as i want to do it.
(I know that the values ... | stackexchange/codereview |
Could somebody recommend some of the best strategies they've used to populate items in an HTML select list on the client side?
I'm using an ASP.NET MVC application and making use of jQuery.
The select list in question is simply a collection of strings which will need to be saved with the model.
I'd rather not have a se... | stackexchange/codereview |
Can you point me on an idea of how to get all the HTML files in a subfolder and all the folders in it of a website?
For example:
www.K.com/goo
I want all the HTML files that are in: www.K.com/goo/1.html, ......n.html
Also, if there are subfolders so I want to get also them: www.K.com/goo/foo/1.html...n.html
| stackexchange/codereview |
I am trying to use jquery to do an animated scroll from one div to another. I am halfway there but can't seem to get it to scroll on both axis. I have called the scrollto plugin and am open to using that. Here is the site live and the code: http://littleboxcreative.com/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tran... | stackexchange/codereview |
What I want to do is alert() an error message to the user if my PHP script returns an error. Can someone tell me how to do this?
| stackexchange/codereview |
how to embed a bash prompt/terminal inside ruby on rails web page?
how to execute a linux command from the web page, and get the output of the ommand?
| stackexchange/codereview |
I'm currently creating a concept which uses Boost::Serialization and which needs to implement its own Boost::Archive cause the data has to be serialized in a certain way.
There is documentation about implementing custom archives in the documentation:
http://www.boost.org/doc/libs/1_44_0/libs/serialization/doc/index.htm... | stackexchange/codereview |
I wanted to rename a folder from "Frameworks" to "frameworks", but git would not let me add the new lowercase name. I guess it treats filenames case insensitive, does it?
A git add frameworks/ -f didn't help
| stackexchange/codereview |
How would I get the directory and filename from the following string using C#:
string test = "test@test.com, snap555.jpg, c:\users\test\desktop\snap555.jpg";
I only want to be able to get the "c:\users\test\desktop\snap555.jpg" from the string and turn it into another string.
The characters before the "," will always b... | stackexchange/codereview |
I'm using the following query to gather information about a table's columns:
SELECT COLUMN_NAME,
ORDINAL_POSITION,
DATA_TYPE,
CHARACTER_MAXIMUM_LENGTH,
Is_NULLABLE
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'TableName'
ORDER BY ORDINAL_POSITION
If this query returns zero... | stackexchange/codereview |
I've created web site in c:\website folder using visual studio 2010. Then, I've created web site in IIS 7.5 that maps to that folder. However when I access Default.aspx page and request to css is issued like
http://localhost/webapp/Styles/Site.css
it's redirected to something like this:
http://localhost/website/Account... | stackexchange/codereview |
I am launching a simple UIView with a textField - let's call it orderSetNameView - upon a button tap. I wish to make this view modal, but without using a
[UIViewController presentModalViewContoller:animated:].
It seems I could simply set textInputView.exclusiveTouch = YES to achieve that.
Apple documentation says a... | stackexchange/codereview |
All,
I'm developing an application using Zend Framework to manage tenders for construction work.
The tender will be a rather complex set of models with an architecture resembling the code snippet below.
My question is... should I store the total value of the tender as part of the tender model, or should I compute it ea... | stackexchange/codereview |
Input = Line number.
Output = Replace the line at given line number by new line.
example =
a.txt
aaaa
bbbb
cccc
input= line number=3 replace with dddd
output
aaaa
bbbb
dddd
| stackexchange/codereview |
Would recursive=-1 help in case of find("list") in cakephp. I mean any performance benefit
| stackexchange/codereview |
I have two questions on wss 3.0
How to know that kind of authentication is currently in use.
How do I set the authentication in such a way that users on office network don't have to input user name\password? So if users are in the office they can just go straight in without using a password? Those outside the office w... | stackexchange/codereview |
I wish to send some components to my customers. The reasons I want to deliver source code are:
1) My class is templatized. Customer might use any template argument, so I can't pre-compile and send .o file.
2) The customer might use different compiler versions for gcc than mine. So I want him to do compilation at his en... | stackexchange/codereview |
I have a for loop that I pass through ssh to a server that is formatted to look kind of like this...
i=0
for cmd in cmd_list;
do ${cmd} | sed "s/^/OUTPUT_${i}_: /" &
(( i++ ));
done;
wait
The idea is that the for loop will run a list of commands that I give it and pipe each one to sed where sed prepends each line of o... | stackexchange/codereview |
I need to be able to get the properties (i.e. cron expression or type of simple trigger (daily, hourly, etc) and it's parameters) of a trigger in C#, and display them and also let them be modified. I have this right now:
Trigger[] trigger = sched.GetTriggersOfJob(id, groupid);
But I can't find any methods to let me ac... | stackexchange/codereview |
I'm wondering about if there is a difference (in performance) when I use:
User usr = (from u in Adapter.User
where u.Login == login
select u).FirstOrDefault();
or
User usr = Adapter.getUserByLogin(login); //stored procedure
?
| stackexchange/codereview |
On this page, the <body> element has a background color of #77BFBC. The image (rv-banner.jpg) set as the background of the <header> element also has a background color of #77BFBC.
On windows (either FF or IE), the two colors blend perfectly. However on FF on the Mac, there is a noticeable difference between the backgr... | stackexchange/codereview |
Since this question staled a year and a half ago, has there been some significant development on these projects that would warrant a re-evaluation of the answers? The majority opinion seemed to be that NetBeans was better for JAVA GUI development or JavaScript, otherwise Eclipse was equal or better.
| stackexchange/codereview |
Hey... so I attempted to run the query below and it just won't do it. I've checked:
The number of fields in the form matches the number of fields in the table.
The number of session variables matches those numbers too.
That the actual query contains the data to be input with an echo.
That the table name is correct.
Th... | stackexchange/codereview |
I have a mysql table set up like this
id | refference_id | data
Is it possible to count the number of entries for each refference_id all in the query ?
| stackexchange/codereview |
i've converted a my application originally written in MS Visual Studio 2008 to be compiled on MS Visual C++ 6.0 (see my previous question).
After the conversion of all my code now compiles in Release, without debug informations. In Debug i encounter a strange problem... the error C1063.
fatal error C1063:
Error exec... | stackexchange/codereview |
Can I create parametrized control template, i.e. create control template which might contain different controls. For instance, I can use control template with label or with button - whatever I want in some position.
<ControlTemplate x:Key="MessageCTemplate">
<Grid …>
<Rectangle …/>
<Rectangle …/>
<Rectangle …/>
... | stackexchange/codereview |
Total noob here. Just installed eclipse and SDK. I was instructed to
"To update your PATH variable to include the Android tools directory, right-click
Computer and choose Properties. In Vista, you also need to click Advanced System
Settings. You continue by clicking the Advanced tab of the System Properties dialog
and ... | stackexchange/codereview |
I have a problem with resource files.
I have a solution with two projects. The first project contains ImageResource.resx file with the images that I use. Every Form in this project can access this file from the designer. But I can see in the designer ImageResource.resx file to use it from second project (Reference to s... | stackexchange/codereview |
I'm trying to find out if it is possible to do the following HQL using the Hibernate Criteria API:
String hql = "select new InitialCount(substring(name, 1,1), count(id)) from Person group by substring(name, 1,1)";
Where InitialCount is a very simple bean with a string and long contructor:
public static class InitialCo... | stackexchange/codereview |
I am not running Django on AppEngine. I just want to use AppEngine as a content delivery network, basically a place I can host and serve images for free. It's for a personal side project.
The situation is this: I have the URL of an image hosted on another server/provider. Instead of hotlinking to that image its better ... | stackexchange/codereview |
I'm able to run the following curl command (at the command line) successfully:
curl -XPOST --basic -u user:password -H accept:application/json -H Content-type:application/json --data-binary '{ "@queryid" : 1234 }' http://localhost/rest/run?10
Here is what I'm doing so far however it doesn't seem to be working with the... | stackexchange/codereview |
How htaccess syntax?
I have 3 files (php)
a. premium.php
b. direktori2.php
c. direktori_det2.php
this Flow:
example.com/AbelPutra-com (inside premium.php) and i direct to direktori2.php file
---> RewriteRule ^([A-Za-z0-9-()/&]+)/?$ direktori2.php?NamaToko=$1 [NC,L]
this is OK
example.com/AbelPutra-com/Modern-Karaoke... | stackexchange/codereview |
I was wondering why the try-except is slower than the if in the program below.
def tryway():
try:
while True:
alist.pop()
except IndexError:
pass
def ifway():
while True:
if alist == []:
break
else:
alist.pop()
if __name__=='__main__':
... | stackexchange/codereview |
Can I create a clean URL for WebBroker webpages/applications ?
A typical WebBroker URL normally looks like:
hxxp://www.mywebsite.com/myapp.dll?name=fred
or
hxxp://www.mywebsite.com/myapp.dll/names/fred
What I would prefer is:
hxxp://www.mywebsite.com/names/fred
Any idea how I can achieve this with Delphi/WebBroker ? (I... | stackexchange/codereview |
would like to learn how I can calculate the time between two dates. I am working on an Unlock user functionality and the following is what I have:
// get offender's username from session
$username = $_SESSION['UserName'];
require_once('./connections/mysql.php');
$checklockoutexpiration = mysqli_query($conn,"SELE... | stackexchange/codereview |
I am using the C# SerialPort class to write to my COM port. Weird thing is that I can get data from the port just fine - it sends data that I am expecting. However, I cannot send any data to the port. Any data that I send is immediately echoed back to me as new data coming from the port. I am expecting a "Done" command... | stackexchange/codereview |
I have a php script that uses exec() function to execute curl to download file. The file is about 600mb. So when I acess the php file on a browser, browsers shows me 'waiting for response' message.
How do I avoid that?
my php source is
$a = exec("curl 'http://lab.test.com/test/test/down.php?c=23212' -o 'test.avi'");
| stackexchange/codereview |
#include <string>
#include <tr1/regex>
#include "TextProcessing.h"
const std::string URL_PATTERN("((http://)[-a-zA-Z0-9@:%_\\+.~#?&//=]+)");
const std::string REPLACEMENT("<a href=\"$&\"\">$&</a>");
std::string textprocessing::processLinks(const std::string & text)
{
// essentially the same regex as in the prev... | stackexchange/codereview |
What I'm looking for is this:
Say I have a file "database.conf" that has some default values for a database connection (dbname, user, password, etc). Everyone needs this file with different settings (eg. password). However, the local changes to this file should not be commited to the repository ever. So the file should... | stackexchange/codereview |
Is there any package to perform Sparse Linear Algebra computations, maybe based on fast and efficient C libraries? I searched on Hackage but I didn't find anything at regard: hmatrix, which uses GSL, BLAS and LAPACK, is great, but doesn't seem to include special algorithms to solve linear systems and eigen-values/vecto... | stackexchange/codereview |
I'm trying to write PostgreSQL script(s) but having a problem with shebang line
#! /usr/bin/psql [ psql_args_here ] -f
select now();
This gives me error as if I just entered psql without any arguments in command line. How do I do it right?
| stackexchange/codereview |
I am preparing to develop a web application that will (hopefully) be used by an audience with many different native languages.
What should I do to prepare my software project to have the user interface be almost entirely internationalized?
Are there any software stacks that make this easier?
| stackexchange/codereview |
My site running locally works OK. Once deployed to web server I get the following error:
A script reference cannot be included multiple times in composite script references.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information a... | stackexchange/codereview |
I want to make list object as my data source, can you tell me for .jrxml file how should i design my report ?
public class TestReport
{
public void runReport(String fileName, String outFileName)
{
try
{
List<R> list = new ArrayList<R>(5);
Map parameters = new HashMap();
list.add(new R("a1" ,"a2"));
... | stackexchange/codereview |
I'm coding a custom panel representing the hand of cards. It's a panel that will stack the cards horizontally. If there isn't enough space, each card will overlap part of the card left of it. Minimum part should be always visible. I accomplished this and this is the code:
using System;
using System.Windows;
using Syste... | stackexchange/codereview |
How should we separate models into sub directories? 100+ tables.
For example, for contract, there are
app/models/contract/contract.rb
app/models/contract/contract_signer.rb
class Contract::Contract < ActiveRecord::Base
end
class Contract::ContractSigner < ActiveRecord::Base
end
I dislike it!!!!!!!!!!!!!!!!!!!!!!!!!!... | stackexchange/codereview |
I have an ASP.Net webforms application that uses the .Net globalization features to deliver .aspx pages in different locales. I have custom errors defined as
<customErrors mode="RemoteOnly" defaultRedirect="Error.htm">
I prefer using a non-.Net page for the defaultRedirect to prevent the potential for infinite loops... | stackexchange/codereview |
Using JSlint to validate my javascript.
I am getting an error saying eval is evil! Why is this and is there an alternative I can use?
Here is an example of where I am using eval and would like a workaround for it.
I have an array like this:
var Resources = {
message_1: 'Message 1',
message_2: 'Message 2',
message_3: 'M... | stackexchange/codereview |
I am receiving the following Hibernate Exception:
@OneToOne or @ManyToOne on Matchup.awayTeam references an unknown entity: Team
The simplified Matchup class looks like this:
@Entity public class Matchup implements Serializable
{
protected Team awayTeam;
@ManyToOne
@JoinColumn(name="away_team_id")
public... | stackexchange/codereview |
I'm just wondering if there is a way to download some apps for the emulator. The thing is that we're about to start our own application and we want to make sure we're doing everything 'Windows Phone 7 Compliant'. I want to go through some apps and see what / how they do stuff; like going to the settings, animations, na... | stackexchange/codereview |
I have recently been trying to learn about basic design principles and the OCP has me a bit confused. It makes sense that when a change happens it is preferable to extend the system rather than modify existing and working parts. But isn't this more of a principle for how to implement changes in a system rather than how... | stackexchange/codereview |
My domain model in my Java EE 6 application contains bi-directional relationships like the following:
@Entity
public class Users implements PrimaryKeyHolder<String>, Serializable {
@Id
private String username;
@ManyToMany(mappedBy= "users")
private List<Category> categories;
public List<Category> getCatego... | stackexchange/codereview |
I'm attempting to create a process that verifies data within a database and notifies users of errors. My initial thought was to create a web service that is triggered when the user saves the web form. That web service would begin the process of validating the data and populating another table with information about wh... | stackexchange/codereview |
I have a MySQL table containing event data.
On this table, I have a FULLTEXT index, incorporating event_title,event_summary,event_details of types varchar,text,text respectively.
Examples of titles include: "Connections Count", "First Aid", "Health & Safety".
I can search the table as follows:
SELECT * FROM events WHER... | stackexchange/codereview |
What is quicker, for camelCase to underscores, preg_replace() or ord()?
My guess is that using ord() will be quicker, since preg_replace() can do much more than needed.
function __autoload($class_name) {
$name = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $class_name));
require_once "some_dir/" . $name . "... | stackexchange/codereview |
I need to select a single row from MySQL and get the results as well-formed XML, where the XML tags are the column names. Is there some built-in way to do this, or will I need to manually assemble the XML?
I want something like this:
<id>2</id> <name>John Smith</name> <age>34</age>
To clarify: I am inside of a stored ... | stackexchange/codereview |
I have a table with three columns and I have fetch a column whose value matches with value 'aaaa' and 'bbbb'
columnA ColumnB ColumnC
data1 yyyy aaaa
data2 zzzz mmmm
data1 hhhh nnnn
data3 aaaa bbbb
So, if I query with "Se... | stackexchange/codereview |
I'm just getting started with WPF.
I have TextBox declared in xmal like so:
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Path=TestComplex.Something, Mode=TwoWay}"/>
In my code behind I have registered the property that I am trying to bind to like so:
public TestComplexObject TestComplex
{
get { ret... | stackexchange/codereview |
I have a VERY simple C# Winforms project that I made using Visual Studio 2010. It uses SQL Express 2008. This is my first time using SQL, so I wanted a hands-on approach to learning SQL, and this project allowed me to do that.
I want to post my project on my website for people to see. However, I have stored procedures,... | stackexchange/codereview |
I have a listbox with several items in it. I would like to programmatically insert a separator bar into the list box. Is this possible?
MSDN speaks of a Separator control, but Visual Studio doesn't recognize it when I try to instantiate one.
I'm using Silverlight 4.
| stackexchange/codereview |
I am trying to retrieve some data from a database using jQuery's $.getJSON method to display in a table, but for each user who's info I get, I have to get the many related systems related to that user, which requires a second $.getJSON call nested in the first, which I have tried turning into a function, which seems to... | stackexchange/codereview |
I'm struggling to choose appropriate names for my actions. I want to distinguish between actions that return a view to:
Create
Edit
Edit-Create
Here is what I have so far:
Create --> Show the Empty Form for Create
Add --> Receives data from Create and Save New Entity
Edit --> Shows Existing Entity in ... | stackexchange/codereview |
I want to connect my java web application with the mysql database but whenever I am running the program it is throwing the following error
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Nati... | stackexchange/codereview |
How would I get the userid of somebodys facebook from there email address :)
Thanks
| stackexchange/codereview |
We have three anchor tags. When all on one line they display correctly in IE8:
But when you separate the anchor tags onto separate lines for better code readability they do NOT appear correctly (there is a random extra "e" character and the alignment is off):
Any ideas?
| stackexchange/codereview |
I recently put together a website exclusively using a computer with a wide screen monitor. Later, When opening the same pages online using a computer with a smaller sized monitor, I suddenly noticed that all the div positions are completely out of place. My question is how to use the widescreen monitor to continue to d... | stackexchange/codereview |
A triple job: I have to do a job with tree task. We have three tasks:
Fetch pages
Parse HTML
Store data... And yes - this is a true Perl-job!
I have to do a parser-job on all 6000 sub-pages of a site in suisse. (a governmental site - which has very good servers ).
see http://www.educa.ch/dyn/79362.asp?action=sear... | stackexchange/codereview |
Having considerable trouble with some pointer arithmatic. I think I get the concepts (pointer variables point to a memory address, normal variables point to data) but I believe my problem is with the syntax (*, &, (*), *(), etc.)
What I want to do is build dynamic arrays of a custom struct (i.e. arrays of pointers to h... | stackexchange/codereview |
I am using:
$this->Session->setFlash('gotcha!!', 'msg_success');
to write a msg in the Session and try to access it in the file
\app\views\elements\msg_success.ctp
with the code
if($session->check('Message.flash'))
{
echo $session->flash();
}
My Phpinfo() says
memory_limit 512M 512M
My app/config/core.... | stackexchange/codereview |
Possible Duplicate:
Parsing ksoap2 response
So I managed to call a webservice using KSoap2 in android but I can't find a way to parse the response...
So here's what I receive from the webservice
anyType{
WORCCategoriaSubcategoriaRecord=anyType{ssENCategoria=anyType{Id=1; Nome=Problema na rua; }; ssENSubcategoria=any... | stackexchange/codereview |
I'm tring to install Hookbox but without success, when I call easy_install or
python setup.py install
it gives me [Errno 13] Permission denied: '/usr/local/lib/python2.6/site-packages/test-easy-install-68779.write-test'
When I try to grant write permissions to this derectory it gives
chmod: /usr/local/lib/python2.6/... | stackexchange/codereview |
I read that way back programmers have to think of special names for their classes in order to do not conflict with another one when the file got loaded on users PC. That is what I do not understand, if the class was within e.g. DLL, how it could collide with other class on that PC?
Even without namespaces, if I import ... | stackexchange/codereview |
I would like to use JSON, however, the security issues related to using JSON are holding me back.
There are two main issues CSRF (Cross Site Request Forgery) and the JSON/Array hack.
I have read that Double Submit the Cookie expanding from Secret Hidden Fields are possible solutions to the CSRF problem.
I wonder if ... | stackexchange/codereview |
I have created a simple MVVM wpf project. The basic Idea is to display data about the annual Income of a customer and the loans he has with various Banks.
The Model consists of 2 Classes , Financial and FinancialLoans.
The ViewModel consists of 2 Classes FinancialVM and FinancialLoanVM
Below are the VM Classes:
namespa... | stackexchange/codereview |
I'm using a third-party library which needs urlfetch from google.appengine.api. It is imported into the executing tests using this line:
from google.appengine.api import urlfetch
The google_appengine directory is on my PYTHONPATH, and if I execute my unit tests directly from Eclipse, I see no errors. However, if I us... | stackexchange/codereview |
I'm know CruiseControl.rb used for Continuous Integration but it Prerequisites ruby 1.8.6. please sugguest me a lib sloved for all version ruby. Thanks
http://cruisecontrolrb.thoughtworks.com/documentation/getting_started
| stackexchange/codereview |
I am creating an application in Visual Basic 6.0 which has SQL server as its database. I want to connect to the database without having MS SQL service manager installed on the client. How can this be done? Should i add any dll's or .tbl or .ocx files?
| stackexchange/codereview |
I have a web site in php. Here I have uploaded image with size 1 MB. It's uploaded in the server successfully. But it's not displaying. I have enabled the read write permission to the folder, which contains images. While uploading smaller size it's working fine.
But in the case of larger image (greater than 1 MB) it's ... | stackexchange/codereview |
The environment:
Clean (new) install of Windows 7 64bit.
Clean (new) install of Visual Studio 2010 Professional (10.0.30319.1).
Windows Update is up to date.
The problem:
I cannot start the debugger on Visual Studio 2010 (hit F5): 'Unable to start debugging on the web server. Unable to connect to the web server. Veri... | stackexchange/codereview |
I've responded to threads here (or at least commented) with answers containing code like this, but I'm wondering if it's good or bad form to write a series of if branches with one (or more) of the branches doing nothing in them, generally to eliminate checking for null in every branch.
An example (C# code):
if (str == ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.