instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
If you have used the concurrency contention profile tool provided in vs 2010, you will notice that all the thread ids used in the report are not managed thread ids, which is annoying. I want to know which thread is which one and how can I easily map those thread ids (usually a 4-digit id) used in the report against the... | stackexchange/codereview |
I have a container cont. If I want to find out if it has duplicates, I'll just check len(cont) == len(set(cont)).
Suppose I want to find a duplicate element if it exists (just any arbitrary duplicate element). Is there any neat and efficient way to write that?
[Python 3]
| stackexchange/codereview |
I was wondering if it were possible to use jQuery to change the colour of a link when hovered, getting the colour randomly from an array? I have the following but not sure how to grab the random colour.. This might be SUPER easy but I can't seem to work it out..
var colors = Array("#fb2900", "#ff7800", "#fff43b", "#8df... | stackexchange/codereview |
I am using a windows service to execute ffmpeg.exe for converting video files. I do this by staring a process in c#.net. The problem is that
My code within the OnStart() of windows service is as follows:
FilArgs = string.Format("-i {0} -ar 22050 -qscale 1 {1}", InputFile, OutputFile);
Process proc;
proc = new Process... | stackexchange/codereview |
i have the following model:
public class FlatMap : ClassMap<Flat>
{
public FlatMap()
{
Id(m => m.FlatID).GeneratedBy.Identity();
Map(m => m.Name);
Map(m => m.Notes);
Map(m => m.Released);
}
}
public class BuildingMap : ClassMap<Building>
... | stackexchange/codereview |
I'm creating an application that uses Entity Framework 4 as the ORM. I'm using the designer and have generated the Domain.emdx.sql file to create the database.
So far, I've just run that edmx in sqlserver manually to create the db, but I'm now working on a lightweight installer and I'd like to connect to the db if it ... | stackexchange/codereview |
I am looking for a class that implement a horizontal slider bar like the one on the "lock" screen. In other words, user must slide the bar from left to right to run an activity. Thank you so much for your time.
| stackexchange/codereview |
Can someone help me understand how OpenID works? I'm interested in the following answers:
Do you still have to store user ids and passwords if using OpenId?
How does my application create a new session when a user logs in?
When users log out of the application do I need to do anything other than clear their session da... | stackexchange/codereview |
I have a DB like this that I generated from EF:
Now I'd like to add a "fielduserinput" entity so I write the following code:
public bool AddValueToField(string field, string value, string userId)
{
//adds a value to the db
var context = new DBonlyFieldsContainer();
var fieldSet = (from ... | stackexchange/codereview |
Possible Duplicate:
Disable webkit's spin buttons on input type=“number”?
I want to replace the Chrome's spinner UI with something nicer. I would set the text to type=input but then I loose the specialized keyboard in iPhone. Anyone know how to disable chrome's UI treatment?
<input type="number" />
| stackexchange/codereview |
so I got a budget to clean up code that I've inherited from another programmer. the code is in really bad shape, there's lots of files not being used, there's lots of functions not being used. It actually looks like linear programming instead of object oriented. My issue is whether or not I should
a) Clean the code, re... | stackexchange/codereview |
My view model class has a method (not sure if that is good practice or if view models are supposed to be strictly property and property changing mechanisms) that connects to a service. Of course I want to handle any possible WCF exceptions when connecting or disconnecting.
Let's use endpoint not found as an example con... | stackexchange/codereview |
Hi I'm using bison for a school project, but I'm having an problem i got the next rules:
callsubrotina : callfunction | callprocedure;
callprocedure:
T_IDENTIFICADOR
{identifier_check( GOTO, $1, TIPO_PROCEDIMENTO );}
| T_IDENTIFICADOR T_PARENTESE_E listaexpressoes T_PARENTESE_D
{ident... | stackexchange/codereview |
I've seen the term "configuration language" come up during the course of studying for the CSDA certification exam.
The formal definition provided is:
Configuration languages create files usually read and interpreted only once, during initialization
I also know that one use of a configuration language is to create fil... | stackexchange/codereview |
How can i convert a datetime of type dd-mm-yyyy to dd/mm/yyyy in sql?
I dont want to convert to varchar but to datetime.
Can anyone give me an idea please?
| stackexchange/codereview |
I have an app called portfolio and I am trying to map out the pages so that i end up with a fixed area that always exists called 'gallery'. I have set this up and it's working fine, but the gallery items are mapped to page_type areas, such as 'images', 'videos' etc so I wanted my root urls.py to detect this and then se... | stackexchange/codereview |
I have a property grid and I want to be able to set the selectedobject to a class. The class contains properties. This is what I have, but it 'OtherFiles' is not an object.
pgProperties.SelectedObject(OtherFiles)
How do you create a class as an object. In VB.NET 2008 please. C# is ok. Thanks
| stackexchange/codereview |
I could base it on IP address, or I could base it on the lat. and long. I retrieve from a user's address.
However, the IP address information I've seen from two leading services looks pretty bad. They both said I was in a different city, and neither one got it right.
On the other hand, if a user is not logged in, I cou... | stackexchange/codereview |
I have a UIViewController with a standard UITableView and Search bar with Search delegate added. The view has a segmented control in the navigation bar, when the user changes the segmented control I would like to hide the searchBar.
The code I am using is:
- (void)segChange {
if ([segmentedControl selectedSegmentI... | stackexchange/codereview |
I want to encrypt a binary file. My goal is that to prevent anyone to read the file who doesn't have the password.
Which is the better solution, AES or Blowfish with the same key length? We can assume that the attacker has great resources (softwares, knowledge, money) for cracking the file.
| stackexchange/codereview |
The following code logs "NO" every time. Help would be very appreciated!
Code:
NSString *filePath = @"settings.plist";
NSDictionary* plistDictionary = [[NSDictionary alloc] initWithContentsOfFile:filePath];
if ([[plistDictionary objectForKey:@"hideToolBarInDetailedView"] boolValue] == YES) {
detailedView.hidesB... | stackexchange/codereview |
#!/usr/bin/env python
import mechanize
mech = mechanize.Browser()
page = br.open(SchoolRank('KY'))
Gives:
Traceback (most recent call last):
File "mechanize.py", line 2, in <module>
import mechanize
File "/home/jcress/Documents/programming/schooldig/trunk/mechanize.py", line 12, in <module>
mech = mechan... | stackexchange/codereview |
I put the file need to return in the content folder. If I want to return the file, what the path to use? Is there anyway that MVC can find reources in the content folder?
| stackexchange/codereview |
Suppose I have a n by 2 matrix and a function that takes a 2-vector as one of its arguments. I would like to apply the function to each row of the matrix and get a n-vector. How to do this in R?
For example, I would like to compute the density of a 2D standard Normal distribution on three points:
bivariate.density(x = ... | stackexchange/codereview |
I have a subscriber resource (mailinglist) and want to make a unsubscribe form. I created a remove view with a form
<%= form_for(Subscriber.new, :action => :delete) do %>
email: <%= text_field_tag :mail %>
<%= submit_tag "Sign out" %>
<% end %>
I try to call the delete method of the controller but instead ... | stackexchange/codereview |
I have a MVC project where I have a Class Library setup as my Test project. However, when using NUnit to run my tests, it is complaining about not finding the Nhibernate.config (which is in my Web project bin.
The exact error:
<solutionName>.UnitTests.CatelogEditing.Can_View_All_Products_On_Admin_Product_List:
System.... | stackexchange/codereview |
We have the typical Silverlight and Silverlight.Web application that are hooked together through WCF RIA Services. We've added an MVC project to the solution and don't want to have to write all the methods that were created in the DomainService class for us (all the inserts, updates, deletes, etc.). When we reference... | stackexchange/codereview |
I have found one way which uses JS, but I would rather use CSS, which I think I had seen used before, but I cannot remember how. I what kind of CSS would I use to position the webpage inside and iframe?
| stackexchange/codereview |
I want to include the code in a javascript file inside of my Asp.net MVC page view (the view is a javascript result as described here. I want to do this for consolidation reasons for my javascript, to lower the loading overhead of my complex GUI for my RIA, to make compression more efficient, and to make debugging eas... | stackexchange/codereview |
I am trying to parse an XML response from the YouTube API with jQuery. My goal is to take the url links and the geotag data from the results and insert markers into a google map. Each marker will have an embedded YouTube video in the infoWindow object. The API request I make to the YouTube servers asks for videos with ... | stackexchange/codereview |
I get the following error when calling the Update() method on an Item in my VB .Net application using EWS (logged on to Exchange 2007 SP1):
Property update did not succeed
What could be the cause?
I'm really hoping this is not due to EWS requiring Exchange 2010 to update categories on an item. The only update I made to... | stackexchange/codereview |
I have a program called A. It produces a file, A.exe. A.exe MUST run as a x86 program, and is thus build as one. A.exe refers to B.dll and C.dll.
B.dll and C.dll is set to build as x86 programs to make them available to A.exe
I am fairly new to this building with msbuild.exe so im still learning. I made a buildfile tha... | stackexchange/codereview |
I have an application that presents a form that accepts many data items. I would like to "dim out" those non required fields that have not been completed (by setting the alpha to ".5"). I was thinking of creating an array and manually entering all the TextInputs and CheckBoxes etc but then I thought there might/shoul... | stackexchange/codereview |
I need to cleanup a some legacy code. Removing unused code is an important step.
Is there a tool that finds all deprecated code, removes all items which are still used somewhere and gives me a list of unused deprecated code?
For bonus points: Is there a tool which can find unused code non-deprecated code?
I'm aware tha... | stackexchange/codereview |
I'm writing python code for IRC client.
I want to understand how IRC client and server communicating each other.
Can anyone give me good tutorial or IRC communication architecture to understand it in depth?
Thanks
| stackexchange/codereview |
The Wikipedia article for Distributed transaction isn't very helpful.
Can you give a high-level description with more details of what a distributed transaction is?
Also, can you give me an example of why an application or database should perform a transaction that updates data on two or more networked computers?
I unde... | stackexchange/codereview |
Is there a way to make graph api search case sensitive ?
for instance:
https://graph.facebook.com/me/home?q=%22Salt%20And%20Pepper%22&access_token=2227470867|2.lBGnkrD6uHK_TyFDPp3qVw__.3600.1290103200-2908836|xmhv-FS3f2_GEw6LrGPi70Nbmhs
to not return any "salt and pepper" ?
Thanks
| stackexchange/codereview |
I'm using FMDB to interface with an SQLite database. I have it inserting rows fine, but when I try and UPDATE one of them, the UPDATE does not occur, but no error is reported.
Here's what I'm doing:
userHistoryDB.logsErrors = YES;
userHistoryDB.traceExecution = YES;
NSString *query = [NSString stringWithFormat:
... | stackexchange/codereview |
I have a function that does xml parsing. I want to make the function thread safe, but also as optimized (less blocking) as possible.
In short code is something as follows:
public Document doXML(InputStream s)
{
//Some processing.
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder... | stackexchange/codereview |
Is it possible to generate stub files using a "WSDL" file?
I know how to generate stub files using wscompiler in j2me.
I have a wsdl file is it possible to create stub files using it?
I am using these stub files in my j2me application.
| stackexchange/codereview |
I am trying to create a database and table from within my Java code to no avail. Here is my database code and the error I am receiving when I run my program. When I debug my PreparedStatement variables are null.
public class RecordDao {
/** Creates a new instance of RecordDao */
public RecordDao() {
this("Require... | stackexchange/codereview |
I have a scrollview which cointains a uitextfield, a uitextview and two label
The uitextfield and the two label don't scroll.
In portrait mode all works fine.
In landscape mode, I resize the scroll view in the way that the labels are not visible, only title and textview remains, but I have a problem when the user try t... | stackexchange/codereview |
Im starting to develop a website that will have 500,000+ images. Besides needing a lot of disk space, do you think that the performance of the site will be affected if I use a basic folder schema, for example all the images under /images?
It will be too slow if a user requests /images/img13452.jpg?
If the performance d... | stackexchange/codereview |
I'm using nyroModal plugin. By simply putting a setup scripts in the head tag and define a class attribute with nyroModal will make that link open as a modal window.
<a href="Page1.aspx" class="nyroModal">Show</a>
Now, Page1.aspx will open in a modal window. This page has a simple asp:button having a OnClick defined w... | stackexchange/codereview |
NSString *stalklabel = ;
NSURL *url = [NSURL URLWithString:@"http://news.search.yahoo.com/rss?ei=UTF-8&p=%@&fr=news-us-ss", stalklabel];
I have the code above, and I need to know how to get the value of the row that the user pressed into stalklabel. I use Core Data to fill the table; does that complicate things?
EDIT... | stackexchange/codereview |
I have a file containing country, catalog number, year, description and price
Kenya 563-45 1995 Heron Plover Thrush Gonolek Apalis $6.60
Surinam 632-96 1982 Butterfliers $7.50
Seychelles 831-34 2002 WWF Frogs set of 4 $1.40
Togo 1722-25 2010 Cheetah, Zebra, Antelope $5.70
File isn't delimited by a "tab" or ":" anythin... | stackexchange/codereview |
<div style='height:2000px;'>please scroll down</div>
<a href=# onclick="location.reload();return false;">Reload Page</a>
<div style='height:1000px;'>...</div>
demo here
in chrome or firefox,when I click "Reload Page",the page can revert to my scrolltop,
but in IE(6,7,8),they stay on the top
how to implement revert scr... | stackexchange/codereview |
For some reason, EventLogEntry.Category returns a number instead of the category's text. It returns the same thing as the CategoryNumber property, which I'm assuming isn't supposed to happen. Am I doing something wrong here, or is there a different way to get the category text for an EventLogEntry?
Here is some code to... | stackexchange/codereview |
I want to use https://github.com/brione/Brion-Learns-OAuth for posting twitter status from android
But I have problem with filling this constants. Where to find
public static final String USER_TOKEN
public static final String USER_SECRET
public static final String REQUEST_TOKEN
public static final String REQUEST_SEC... | stackexchange/codereview |
I've been using a few simple union queries with no problems in Access 2003 and then in Access 2007. With Access 2007 SP2/Access 2010, these queries now fail with error 3360 Query is too complex even when no filters are used. (OS doesn't matter - same problem on XP SP3 through Win7 64-bit). The same .mdb on earlier syst... | stackexchange/codereview |
I have some difficulties to parse an XML using Stax in order to create org.w3c.dom.Document objects for parts of the XML tree.
Ex.:
<root>
<children>
<child>child 1</child>
<child>child 2</child>
<child>child 3</child>
</children>
</root>
=> I would like to create 3 DOM objects for each <child> node.
I tried to do this... | stackexchange/codereview |
Grails 1.3.5
I've written a handful of functional tests and I'm running into issues when my controllers and services reference configuration data via grailsApplication.config. It is always coming back null, so it errors out.
I know there is a mockConfig for unit tests. But how do I get the config to get wired up for ... | stackexchange/codereview |
I'm trying to access a SOAP webservice from iOS.
But I only get this response:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Den spesifiserte SOAPAction ble ikke gjenkjent.</faultstring>
<detail/>
</... | stackexchange/codereview |
I'm making a testbed for a Linux based application that uses multiple GPRS connections and aggregates their bandwidth.
I'd like to test this application on my local ethernet by emulating low bandwidth high latency network conditions on multiple network interfaces.
To achieve this, I tried setting up multiple Virtual N... | stackexchange/codereview |
I have a countdown script that counts down until a certain day that is specified. I want it to just count down 24 hours every time its loaded but can't seem to get it to happen.
thanks
http://pastebin.com/zQ4ESHuG
| stackexchange/codereview |
I thought Magento came with this feature out of the box but it doesn't appear to be working at all. I'm not sure if I haven't set it up properly, but right now I'm resorting to using cat and altering the page.xml layout file to use the combined javascript and css files.
Can I make Magento do this instead or is there an... | stackexchange/codereview |
I have created a private Google Site for a university project and I only assigned several people to be able to access to this site. The thing is I want to know who actually comes in, access the site. Is it possible?
| stackexchange/codereview |
I am using the approach in this article to return a list of objects that are posted to my action. My method looks like:
//
// POST: /LeaveRequest/Create
[Authorize, HttpPost]
public ActionResult Create(LeaveRequest leaveRequest, IEnumerable<DayRequested> requestedDays)
{
return RedirectToAct... | stackexchange/codereview |
I have a client who will be uploading videos to Expression Engine and will need to convert to MP4 before doing so. This client is largely tech- and web-ignorant so I need to make this as simple as possible.
Can you guys recommend a simple desktop conversion tool for the PC for converting videos to MP4?
| stackexchange/codereview |
Is there an automated way to do shell piping in Ruby? I'm trying to convert the following shell code to Ruby:
a | b | c... > ...
but the only solution I have found so far is to do the buffer management myself (simplified, untested, hope it gets my meaning across):
a = IO.popen('a')
b = IO.popen('b', 'w+')
Thread.new(a... | stackexchange/codereview |
I don't want to optimize anything, I swear, I just want to ask this question out of curiosity.
I know that on most hardware there's an assembly command of bit-shift (e.g. shl, shr), which is a single command. But does it matter (nanosecond-wise, or CPU-tact-wise) how many bits you shift. In other words, is either of th... | stackexchange/codereview |
This ruby code works great:
require 'soap/wsdlDriver'
wsdl_url = 'http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl'
proxy = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
print proxy.NDFDgen(35.05,-106.65,"glance","2010-11-20T00:00:00","2010-11-20T07:00:00","temp")
This Perl code returns an empt... | stackexchange/codereview |
I am a beginner in SQL and I hope you people can help me get through this ordeal.
The below data should be grouped by client, Date and User ID (Which I have already achieved).
Client User ID Date Action Module
Moha Mother 01/10/2010 12:35:36 PM Login PP
Moha Voodoo 02/10/2010 05:15:28 PM Login PP
Moha Panther 04/10/201... | stackexchange/codereview |
I have a list that uses a checkbox itemrenderer. The dataprovider is a collection of people. When I load the data from a file, each list item shows the person's name (last, first -- labelFunction), and the checkbox's selected property shows the person's included property. I.e.,
Smith, Doug - [x]
Williams, Bob - [ ]
... | stackexchange/codereview |
I generated a hash function with gperf couple of days ago. What I saw for the hash function was alien to me. It was something like this (I don't remember the exact syntax) :
unsigned int
hash(str, size)
register char* str;
register unsigned int size;
{
//Definition
}
Now, when I tried to compile with a C++ co... | stackexchange/codereview |
I have an image setup inside an absolute panel.I am trying to set it's position via code.But I do not see any applicable method/property to set its position.
Here is my layout.
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns... | stackexchange/codereview |
Hi
I have a question that :
for example I have a linked list that has 4 elements. [1,4,2,7] and their index will be 0,1,2,3.
when I remove the third element which is "2" and it index is 2 ,the index of fourth element will be 2 ,I mean that the index of "7" will be 2? my problem is because of the code bellow.
with doub... | stackexchange/codereview |
I am trying to display all users based on a meta_key called "points" like this:
$wpdb->get_col($wpdb->prepare("
SELECT user_id, meta_key = 'points', meta_value
FROM $wpdb->usermeta
ORDER BY meta_value DESC
LIMIT $limit OFFSET {$paginate->offset()}"));
The users are displayed properly, but the order is not working, ... | stackexchange/codereview |
I would like to display a <div> element inline so that it is surrounded with text.
My code is:
<span>Here is some <div class="a"></div> text</span>
Let's say, the class "a" is defined as below:
.a {
width:20px;
height:20px;
background-color:#f00;
}
The result should be like this:
Is it doable? Thank you ... | stackexchange/codereview |
Comparing Scala 2.7.7 (last 2.7.x release) with Scala 2.8.1 (latest 2.8.x release) I gathered the following metrics:
Scala version | 2.7.7 2.8.1
------------------------------------------------
Compressed jar file | 3.6 MB 6.2 MB
Uncompressed files | ... | stackexchange/codereview |
<?PHP
if (ereg("www\.test", $_SERVER['HTTP_REFERER']) != true)
{
header("location http://www.example.com");
end;
}
echo "111";
//dosomting?
?>
It still not working
| stackexchange/codereview |
How can I create below type of gridview with merge merged header columns? If anybody have example share with me.
Thanks in advance.
| stackexchange/codereview |
I have a contact form with a calendar widget that pops up when the user clicks in a specifically classed input field. It works in IE8, Chrome, Firefox, but not in IE7. However, it doesn't throw up any errors, so I don't know where to begin debugging.
Site: http://www.exclusivevillas.co.za/contact-us/
Other (possibly re... | stackexchange/codereview |
I'm working on a "people you may know" feature. I have two tables:
USERS
id
email
name
etc
FRIENDSHIPS
user_id
friend_id
For each friendship I make two records. Say users 7 and 9 become friends... I would make a record where user_id=7,friend_id=9 and another where user_id=9, friend_id=7 in the friendships table.
How wo... | stackexchange/codereview |
I need to zip data that is coming from one stream and put zipped data to another. Here is the code that operates with files (MyOutputStream is a simple FileOutputStream wrapper used for debug purposes). This code works fine.
ZipOutputStream jos = new ZipOutputStream( new MyOutputStream(new FileOutputStream(zipF... | stackexchange/codereview |
Are there any "after-save", or "before-delete", entity listeners for ADO.NET Entity Framework? If not how could I implement them?
| stackexchange/codereview |
I need to call oracle stored procedure from spring (via Hibernate).
I'm not familiar with PL/SQL so I would like to know how to proceed with that.
1) Can I use spring/hibernate (for instance annotations) to begin/close transaction. I assume that it's not an issue and I don't have to begin/close inside stored procedure... | stackexchange/codereview |
i have a uiwebview. when i read string (from ) from this uiwebview i encodes come characters like #. how can i decode?
for example it gives %23test instead of #test. i need #test
thanks.
| stackexchange/codereview |
Maybe I'm missing something here... we are trying to adopt a framework for data access and have been exploring EF3.5.
Everything we do in our organization is required to be in a stored procedure so the DBA's can have a feeling of control. If I generate my entities from my database schema, I see how to map stored proced... | stackexchange/codereview |
Whenever I use Console in Chrome's Developer Tools or Firebug to interpret a jQuery selector, it only returns the innerHTML of the result of the selector if only one item matches. If multiple items match, I'm given the array of matched items, with their innerHTML as the contents of each array slot. However, in Safari... | stackexchange/codereview |
Using Python, how can I programmatically scroll (not using the scrollbars) the window in a Tix ScrolledWindow? The normal way would be to call xview / yview, but those calls do not seem to be available. Googling suggest that it is not possible at all, but I hope for something better.
| stackexchange/codereview |
Just wondering what the proper syntax is to add a related field to a select statement. Example Employees all have a department which is set in the departmentID field in the Employee table. What is the OData select syntax if i want to pull back all employees but only want to show their FirstName and DepartmentName. I wa... | stackexchange/codereview |
I understand that I can reload the data model by typing this
> reload!
But I am wondering if there is a similar way to reload the data itself.
Thanks!
| stackexchange/codereview |
I need to upload some files using SFTP, this works from the command line:
$sftp myuser@my_remote_host
Connected to my_remote_host
sftp>
This is my Paramiko script:
#!/usr/bin/env python
import paramiko
import sys
import os
host = "my_remote_host"
port = 22
transport = paramiko.Transport((host, port))
username = "my... | stackexchange/codereview |
When I click a button I want the textarea in this li element to focus.
<li class="commentBlock" id="commentbox-79" style="display: list-item;">
<div>
<div class="grid userImageBlockS">
<div class="imgSmall">
<img width="35" height="35" alt="image" src="/bakasura1/files/images/small/1288170363aca595c... | stackexchange/codereview |
try {
BufferedReader br = new BufferedReader(new InputStreamReader(item.getInputStream()));
String strLine = "";
StringTokenizer st = null;
while ((strLine = br.readLine()) != null) {
st = new StringTokenizer(strLine, "\t");
while (st.hasMoreTokens()) {
urlcnt = st.nextToken(... | stackexchange/codereview |
If one user have login in one computer or a browser,then he login in another computer/browser again,so the former login should be marked as invalid,is there any way to implement this?
| stackexchange/codereview |
Is there a way to dynamically get Page X of Y in LaTeX using the fancy pagestyle or is some other package needed?
| stackexchange/codereview |
In applications.rb I added this:
SOME_CONFIG = = YAML.load_file(File.expand_path('../some_config.yml', __FILE__))
I placed the file in:
/some/folder/myapp/config/some_config.yml
Then when I run 'rails server' I get an error:
.. in 'initialize' : no such file or directory /some/folder/myapp/config/some_config.yml (Er... | stackexchange/codereview |
I'm using Merge Replication. The Identity range management is AUTOMATIC
I HAVE A TRIGGER ON COMPANIES TABLE WHICH INSERTS ROWS IN SERIALNUMBERSCHEME TABLE which has documentID as identity column
While synchronizing I'm getting below error
A row insert at 'SERVER\MUMBAI.PROD_SUB' could not be propagated to 'SERVER\NEWYO... | stackexchange/codereview |
Suppose I have a dataset:
data animals;
input animal $
group $
control $;
datalines;
dog A c1
dog B c1
dog C c1
dog D c2
dog E c2
dog F c2
dog G c3
dog H c3
dog I c3
;
run;
I would like that to be sorted in such a way that the resulting dataset looks like:
dog A c1
dog D c2
dog G c3
dog B c1
do... | stackexchange/codereview |
Possible Duplicate:
Oracle: What does (+) do in a WHERE clause?
Consider the simplified SQL query below, in an Oracle database environment (although I'm not sure that it's Oracle-specific):
SELECT
t0.foo, t1.bar
FROM
FIRST_TABLE t0, SECOND_TABLE t1
WHERE
t0.ID (+) = t1.ID;
What is that (+) notation for in... | stackexchange/codereview |
I have a piece of code that parses some obscure text file.
This text file can contain various keywords. At some point, there is some lengthy part that reads like this:
void loadKeywords() {
tmpString = getValueForKeyword("width");
if (tmpString != NULL) {
/* do something for several lines */
}
... | stackexchange/codereview |
Can you recommend a way to use the JqueryUI Position plugin so that the collision logic is applied to a container div rather than the window viewport?
| stackexchange/codereview |
If (in Android) I have an EditText box, how can I trigger an event when the user has finished entering data and hits return/Next?
I have tried using the code below but it seems to have no effect. I also get an 'The method onEditorAction(EditText, int, KeyEvent) from the type new extView.OnEditorActionListener(){} is ne... | stackexchange/codereview |
Is there a place I can view/change global shortcut options like Command + 9 (turn into Input style)?
In particular, I need a faster way of creating bulleted lists. It's the style "Item" in the Cell context menu which doesn't have its own shortcut.
| stackexchange/codereview |
A simplified example of what I want to do:
I have a file: input.txt which looks like
a 2 4 b
a 3 8 b
c 9 4 d
a 3 4 8 b
and a script: add.sh which takes command-line parameters and returns their sum
I want to search input.txt for all instances of the pattern 'a (.*) b' where I pass the (.*) part as a command line param... | stackexchange/codereview |
I got this code:
function server_request(module,section,action,data) {
data['module'] = module;
data['section'] = section;
data['action'] = action;
var responsetxt = null;
$.post('../application/server.php', data, function(data) {
responsetxt = data;
});
return responsetxt;
}
And i... | stackexchange/codereview |
With connection pooling or at least the assumption that the connection is not closed between calls, is there a network or server performance difference and how significant is it between one stored procedure execution with multiple result sets and multiple stored procedure executions.
In pseudo code, something like
usin... | stackexchange/codereview |
I was wondering about the performance of using XNA in C# for developing games and not using it. Could I not use PictureBoxes instead of 2D Textures? Is it viable to go with Windows Form programming for games, or is XNA the best solution? Any advantages/disadvantages?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.