instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a bunch of photos taken from old mobile phone (i.e. Motorola E7), that the file is named using the date and time that the photo was taken in the format YY-MM-DD_HHMM.jpg.
I wonder if there is any way for inserting the time and date of photo taken into these photos in ubuntu? Is jhead a possible solution?
Thanks!... | stackexchange/codereview |
Alright, so this is basically the usual "how to vertically center with CSS" question, but with some catches.
No Javascript. HTML and CSS only. CSS3 is fine as long as it's reasonably well supported by today's browsers.
The element's content, and therefore height, is not known. It may be anywhere from a few dozen to a ... | stackexchange/codereview |
I would like to implement a sort of CI where I build my solution on every checkin. There is one problem, however, and that is that my build scripts often will automatically update certain files that do not change the actual compiled assemblies. Is there a way to stop the automatic build (or to not even start) if the ... | stackexchange/codereview |
I have a Rails app that uses a lot of custom statistics code I wrote, things like calculating the mean and standard deviation of an array of numbers, or calculating statistical significance tests.
Where do I put all this code? It's not tied to any database object, so I'm guessing it shouldn't go into /models. And if I ... | stackexchange/codereview |
I've been badly let-down and received an application that in certain situations is at least 100 times too slow, which I have to release to our customers very soon (a matter of weeks).
Through some very simple profiling I have discovered that the bottleneck is its use of .NET Remoting to transfer data between a Windows ... | stackexchange/codereview |
Does anyone know any resources regarding to the creation of a custom scheduled task under Telligent 5.5 ?
From what I read, all I need to do is the following:
1.Create a type that implements the ITask2 interface
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telligent.Tasks;
... | stackexchange/codereview |
Basically, I have stored information in a database field and I want to display it again through a form.
The original form has the same checkboxes but they are always empty. The user can check the boxes off and the values are put into the database.
Graduate Courses: Fall? Spring? Summer? Stored as a list in a column n... | stackexchange/codereview |
How do you delete all text above a certain line. For deletion below a line I use "d shift g"
| stackexchange/codereview |
I posted this on the pygame mailing list but maybe someone here will have an answer. I can't be sure whether it's a pygame problem or an SDL problem, really.
Essentially, I have some code that uses PyOpenGL and pygame to render rudimentary animations. It works fine under Linux but for some reason, the pygame windows on... | stackexchange/codereview |
ok i have an ajax call that recives a json object.
the idea of whatn i am trying to do is get a list of all records flagged, and geocode them do a reverse lookup and save back to the database, but as a batch
I want to loop through the data and then perform an additional ajax call (which will geocode the data) and then ... | stackexchange/codereview |
Update III:
After googling around I've found that this is not an uncommon problem. But I seem not to be able to resolve it. I've tried:
"-no_order_inits"
-v -v -v -gcc_flags "-no_order_inits -L${ProjectDir}/libs/iPhone -lCorePlot -force_load ${ProjectDir}/libs/iPhone/libCorePlot.a"
I also have tried to set it to "not... | stackexchange/codereview |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
locmanager = [[CLLocationManager alloc] init];
[locmanager setDelegate:self];
[locmanager setDesiredAccuracy:kCLLocationAccuracyHundred... | stackexchange/codereview |
After updating from the native .NET oracle data provider to Oracles ODP.NET, I've run into the following issue.
I have a stored procedure that is part of a package, and it accepts 32 parameters, all IN but one, designated as an OUT parameter. Anyway, here is the issue I'm having. I have a date parameter passed in a... | stackexchange/codereview |
Q. How is "Application Layer" different from "Transport Layer" of the TCP Network Model?
I am a student learning about the basics of networked programs.
This was one of the questions given in the assignment which I can't explain clearly.
I do understand the concept of each layer and what it does in the model, but how c... | stackexchange/codereview |
Using Javascript I'm trying to test whether or not a DIV with the id "test_div" exists in the document.
I'm using
if (getElementById("test_div"))
in the below script to check if the DIV exists in the document. However it does not work. I don't have very much experience with Javascript; but from the research I have don... | stackexchange/codereview |
I am working on a program which uses realpath() to get the absolute path of a file. Unfortunately, this function takes a string buffer that is expected to be so large that it is big enough and that's not safe when this application has to run across multiple platforms. Is there a safe version of this function which avoi... | stackexchange/codereview |
I have a section of simple Javascript in my application that has a link "Add Day", which adds 1 day to a date. It always works perfectly, except when the date gets to be 11/07/2010, and then the link suddenly will not work any longer. Its really wierd, because it only hangs up on the specific date of 11/07/2010.
How... | stackexchange/codereview |
'Sizzle is an open source implementation of the Sawzall programming language designed for interoperation with the Hadoop MapReduce and DFS stack.' https://github.com/anthonyu/Sizzle
| stackexchange/codereview |
I've read a lot of post, but haven't really found anything to help with this problem. I want to select all cells from a database that contains the current text being type in the combobox.
But when I try it this way it only lets me enter 1 character at a time.
private void GetSource(object sender, EventArgs e)
{
var... | stackexchange/codereview |
I'm using Python and I need to be able to take a string of the form
abc | pqr | [1,2,3,4,5]
and get the actual array of integers [1,2,3,4,5] from it. Any suggestions?
| stackexchange/codereview |
i have a multi-threaded program which has ~200 threads running on linux, i know it's kind of a lot. well, this is a legacy program :)
this program is running on 2.6.29 with debian OS
how can i easily find out which thread's stack frame contain like functionA?
i am using "thread apply all bt" to display all the threads... | stackexchange/codereview |
I have created a combo box in my project which takes a certain amount of numbers from a file.
This Combo drops down the list of the numbers each of represents something.
That something I want to be displayed in a tooltip when the mouse hovers on the combo box.
Until now everything has gone fine.
What I want now is to s... | stackexchange/codereview |
I've seen suggestions saying to set NSZombieEnabled to true while debugging. What is NSZombie? Is it a framework? A setting?
| stackexchange/codereview |
I am working with MKMapView Based application. I need a clarification whether it is possible to eliminate the pin OverLap in the MKMapView? Because at some places there are large number of pins displaying. It is difficult to me to identify the pins.
| stackexchange/codereview |
is there a Java library in existence for creating .obj files. There are many for loading .obj files for use with APIs like JOGL but I can't find anything to do with creating an .obj file.
| stackexchange/codereview |
$arr1 = array('apple' => 1, 'mango'=>5, 'banana'=>3 );
$arr2 = array('apple' => 3, 'banana'=>2 );
my result array should be
array('apple'=>4, 'mango'=>5,'banana'=>5);
How can i do that?
| stackexchange/codereview |
I have (only) Visual Studio 2010 installed. I'm trying to run my unit tests from a command-line build-system. All my development work is in my home directory on a Linux server that's shared out using Samba. When I try to run NUnit I get an error like this:
Unhandled Exception: System.TypeInitializationException: The ty... | stackexchange/codereview |
i want to know as how to search or filter records in a gridview dynamically based on the character(s) entered on a textbox. What is the best way to achieve this? Any sample codes or examples will be really helpful.
| stackexchange/codereview |
I have a script that loads an external image into the stage(I have the addChild() script somewhere else) but I keep getting an error that says:
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.display::Loader@b1b7101 to flash.display.MovieClip. at
project1_fla::MainTimeline/drag()
var my_loader... | stackexchange/codereview |
I have my recent E-learning web site developed in Classic ASP. However, I need to incorporate SCORM in my E-learning web site. Does anyone know a sample how to do this?
I'm new in using SCORM and as my research, I've seen example on how SCORM incorporate using ASP.NET but my current develop site is in Classic ASP.
Any ... | stackexchange/codereview |
I have this problem, I can create a setup for my app/database but everyone can open the backend file which is an MS Access database. I want it so we can only access the database using the frontend app. Please help me ...
| stackexchange/codereview |
I've created a little tuple of langauges and when using it in the interactive window they are listed in reverse. Is this normal F# bahavior?
let languages = ("English", "Spanish", "Italian")
let x, y, z = languages
val languages : string * string * string = ("English", "Spanish", "Italian")
val z : string = "Italian"
... | stackexchange/codereview |
I am building a blog and for my comments I have this CSS.
#comments {
position:absolute;
border: 1px solid #900;
border-width: 1px;
border-style: solid;
border-color: #900;
border-bottom: none;
border-right-style:none;
left:0px;
top:352px;
width:475px;
height:183px;
}
However, after posting only one c... | stackexchange/codereview |
When a user logs into my site, Devise tries to update the field in the user model current_sign_in_at with the time. But it's producing this error:
NoMethodError: undefined method `getlocal' for Mon, 08 Nov 2010 03:11:01 +0000:DateTime
[GEM_ROOT]/gems/activesupport-3.0.1/lib/active_support/time_with_zone.rb:75
I've fou... | stackexchange/codereview |
Hi i'm using this code for my subdirectories redirect for usernames
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ profile.php?username=$1&%{QUERY_STRING}
I have this problem that is user enter domain.com/username/ it will have problems, it only works if the... | stackexchange/codereview |
I'm working with a CBIR (Content-based Image Retrieval) project which will draw RGB histogram of images and also calculate the distance between other images with query image.
I'm using VS 2008 - MFC and OpenCV Library. The method I wanted to use for calculating the distance is Euclidean Distance(ED), but somehow I fail... | stackexchange/codereview |
This may be very basic question. If we open a sql transaction with "Begin Transaction", is commit transaction or rollback is mandatory...?
I have a scenario where i need to exit the SP when a row exists in if statement fails. This if statement is currently inside the transaction scope..
Thanks in advance!
Regards
Bala
| stackexchange/codereview |
I have a language I am making a parser for which contains function calls. A few function names are reserved and I would like to handle them differently in my grammer. In EBNF it would look like
FunctionCall ::= FunctionName '(' ')'
SpecialFunctionCall :: SpecialName '(' ')'
FunctionName ::= VariableName - SpecialFunct... | stackexchange/codereview |
I have a designer working on several pages in Dreamweaver. The designer is creating .aspx files with the Page directive at the top. These are getting shipped to me and I'm adding them to the Visual Studio ASP.NET WebForms Web Application Project. The problem is that there's no code-behind file by default, and I'm tr... | stackexchange/codereview |
I am trying to edit a TFS Workflow xaml file in Visual Studio and notice that intellisense is not working. What xsd is required for this to work?
| stackexchange/codereview |
Is there a recursive chmod command that would allow editing of existing files, but not creation of new files or directories? I have a hosting user who has a website that keeps getting hacked to host a phishing site. While he works on closing the hole in his code, I'd like to chmod his whole home directory so no new f... | stackexchange/codereview |
I have some images that I want to put on top of each other on random order.
If it possible using one ImageView or do I need to create multiple image views based on number of images?
| stackexchange/codereview |
I have the code below. The purpose of the code is to grab all the values stored in the local storage and display them in two HTML elements with ids of 'title' and 'textLoc'. 'title' is an <input type="text"> and 'textLoc' is a <textarea>. I want the values to be stored in the <textarea> and the keys to be stored in the... | stackexchange/codereview |
I'm trying to use EHCache's transactional abilities together with Atomikos and Apache Tomcat (for usage with JMS and Hibernate but that's just to assure the sceptics I really need JTA).
I'm currently working on a small POC where I'm trying to put an instance of MyValue which implements Serializable and when I try to ... | stackexchange/codereview |
I'm trying to plot 2 scatter plot graphs on one report using SSRS2008. One should be a regular scatter plot (disconnected dots), but another one should connect the dots into a line, or a curve.
What properties need to be set and how?
Any help will be greatly appreciated.
| stackexchange/codereview |
I have a JMenuItem callback that calls a new instance of a derived class of JFrame.
Whenever the JMenuItem callback is called, the original popup is not brought back to the front of my main application. Instead, it creates a new instance and a new window popup (so there are two or more of the same derived class).
Ho... | stackexchange/codereview |
This might be a dumb question to ask but I am new to multi-threaded programming in Java.I created 4 threads and then invoked the run method on them.In the run method I am using an array and am assigning values to it's indices.I see that each thread is maintaining it's own copy of the array and there is no thread-unsafe... | stackexchange/codereview |
I have tried to google for answers to this, but perhaps there isn't widely available research or perhaps I'm not using the right terms.
Basically, I would like to have some idea as to the average time it takes between key presses when typing. The reason I want to know this is I'm working on a fuzzy search that would be... | stackexchange/codereview |
I've made a user control in asp.net and it's being used as a Sitefinity control. I've enabled localization and I have two local resource files, one default and another language. In Sitefinity when you drop a control onto the page you have the option of editing content and tags through Sitefinity. I want these values to... | stackexchange/codereview |
When deploying an extension I follow various steps : copy to a temporary folder all the files, copy/paste back and forth the code to the on-line minifiers / obfuscators and create the zip to be uploaded.
It's obvious that this could be simplified with scripting, but my experience on Windows scripting is very limited (m... | stackexchange/codereview |
How can I implement the A* algorithm on a gridless 2D plane with no nodes or cells? I need the object to maneuver around a relatively high number of static and moving obstacles in the way of the goal.
My current implementation is to create eight points around the object and treat them as the centers of imaginary adjace... | stackexchange/codereview |
Possible Duplicate:
How can I handle a keyboard shortcut when my program isn't active?
hello guys
i need to make a delphi program that creates a short cut key that works outside the delphi app. for example: when i press ctrl+1 it pastes a certain text. When i press ctrl+2, another text, and so on. It really helps my... | stackexchange/codereview |
My Code:
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
ngr.Dispose();
List<Image> list = new List<Image>();
Graphics g = Graphics.FromImage(pictureBox1.Image);
Brush redBrush = new SolidBrush(Color.Red);
Pen pen = new Pen(redBrush,3... | stackexchange/codereview |
Im having trouble converting a working solution that takes a directory folder as an input and outputs the filenames and other file attributes of files container in the folder into an excel spreadsheet to a recursive solution that also outputs the files contained in subfolders. I would greatly appreciate any help!
Sub G... | stackexchange/codereview |
I am a beginner in js, and am puzzled by the following code:
Foo = function(arg) {
this.arg = arg;
};
Foo.prototype = {
init: function () {
var f = function () {
alert("current arg: " + this.arg); // am expecting "bar", got undefined
}
f();
}
};
var yo = Foo("bar");
yo.... | stackexchange/codereview |
I have a client and server program that attempt to communicate with each other. In my policy file for the server, I have specified the following:
grant signedBy "vivin" {
permission java.io.FilePermission "-", "read, write";
permission java.net.SocketPermission "localhost:2220-2230", "accept, connect, listen, resol... | stackexchange/codereview |
I'm building a small media selector application. All medias of a given directory are loaded one by one based on left/right key navigation and displayed in Windows Media Player control that is on a windows form (C#).
I works well with videos, audio, but less with still images.
The image is displayed correctly, but after... | stackexchange/codereview |
What are the top issues and in which order of importance to look into while optimizing (performance tuning, troubleshooting) an existing (but unknown to you) database?
Which actions/measures in your previous optimizations gave the most effect (with possibly the minimum of work) ?
I'd like to partition this question ... | stackexchange/codereview |
This is a continuation of my question: How to get reverse of a series of elements using Enumarable in C#?
Now I need alternate elements only. Here is my solution using for loop:
int Max = 10;
int limit = 5;
Dictionary<String , String> MyDict = new Dictionary<string,string>();
int j = 0;
for (int i = 0; i <Max; i++)
{
... | stackexchange/codereview |
This is a question about Extension Method visibility in .Net (specifically C#), and why intellisense may work, but the compiler fail on the same piece of code.
Picture this...
I have .Net 3.5 class library consisting of a bunch of objects and a single Extension Methods class. Here is one of the methods:
namespace MyAp... | stackexchange/codereview |
The following code loop does not leak memory (as verified by watching it loop infinitely under "top");
NSBitmapImageRep *this_bmap = 0;
while (1) {
CGImageRef windowImage =
CGWindowListCreateImage(CGRectNull,
kCGWindowListOptionIncludingWindow,
windowI... | stackexchange/codereview |
So I have some code that can read the methods out of a .coverage file...
using (CoverageInfo info = CoverageInfo.CreateFromFile(this.myCoverageFile))
{
CoverageDS ds = info.BuildDataSet();
foreach (ICoverageModule coverageModule in info.Modules)
{
CodeModule currentModule = new CodeModule(coverage... | stackexchange/codereview |
I have two different get_posts functions as follows:
<!-- Begin Left Middle -->
<div id="leftmiddle">
<h1><a href="/category/recent-cases">Recent Cases</a></h1>
<?php
global $post;
$postslist = get_posts('category=5&numberposts=2');
foreach ($postslist as $post) :... | stackexchange/codereview |
I'm building a wp7 app in Silverlight. Is there some system widget/icon/animation/spinner/etc for when something is loading? Or should I implement my own?
| stackexchange/codereview |
I would like to get a range from an ObservableCollection for the purpose of looping through it and changing a property on those items. Is there an easy built-in way to do this with the ObservableCollection class?
| stackexchange/codereview |
pls give me any suggestion ...
i create a new web application in the sharepoint 2007 ...
but web site folder are not created in the iis of front end server
but created in the iis of the index server ...
i need to appear web site folder in the iis of the front end server ...
pls give me any suggestion ...
thanks,
MTH83... | stackexchange/codereview |
I am using jboss 5.1.0 GA and am connecting to a postgresql DB from my application using hibernate. I am using the default hibernate jars found within jboss.
Within my application war I am only packaging application specific jars and other 3rd party jars NOT found within jboss.
If I place my postgres jdbc jar under ser... | stackexchange/codereview |
I'm new to PHP, and love it. I want to write a script that send's my phone a text message whenever someone I follow posts on a forum. This could be any of the forums I follow.
Is there a way to do this?
For instance, let's say I want to follow someone who posts on Hacker News. Could I run a cron job that checks if that... | stackexchange/codereview |
I have a bunch of divs that the user can create and which represent messaging boxes. When a user clicks on one of their friends' names a box is created. I have been able to make it so that when a new box is created it is positioned the right distance away, but I have not been able to figure out how to make it so that w... | stackexchange/codereview |
I have a Rails 3 app that I would like to tweet certain status reports and so on. I am using the Twitter Gem. I have all the API keys and so on, and can actually tweet to a logged-in users account. But this isn't what I want to do.
I want the app to tweet to its own account, "in the background" so to speak. So, whe... | stackexchange/codereview |
This code is currently working, but it looks terrible - and probably can be much improved in terms of performance.
Any Suggestions?
def OnClick():
global Selection, touch, set_elsb, set_vreg, set_els, BAR_Items
A = viz.pick(0, viz.WORLD, all=False)
if touch != A: return
for i in BAR_Items:
if no... | stackexchange/codereview |
My current CheckedComboBox has a large list of items. I need to have selected list out of those items checked when the drop down is clicked. e.g CheckedComboBox will have P,Q,R and S as the itmes. But only P will have a tick in front of it.
Is there a property for this defined already?
Thanks
| stackexchange/codereview |
Do anybody know how to apply transformation to sprite without opportunities of SpriteBatch.Draw() method ?
(Update from comments)
This is what I need: I have a circle sprite. This picture contains shadows. I need to stretch this circle (make ellipse) and rotate it, but I want the shadow does not change its position int... | stackexchange/codereview |
In my SP I have the following:
with Paging(RowNo, ID, Name, TotalOccurrences) as
(
ROW_NUMBER() over (order by TotalOccurrences desc) as RowNo, V.ID, V.Name, R.TotalOccurrences FROM dbo.Videos V INNER JOIN ....
)
SELECT * FROM Paging WHERE RowNo BETWEEN 1 and 50
SELECT COUNT(*) FROM Paging
The result is that I ... | stackexchange/codereview |
I have an xml file with mixed encoding (file is to be said in iso-8859-1 encoding though) but contain characters from windows 1252 also (trademark symbol, endash etc)
Im using PHP and xmlreader to parse xml file to save in database. MySQL 5.0 server is saving the mixed encoded characters as box character but MySQL 5.1... | stackexchange/codereview |
I am trying to get Json format data from this website .. http://www.livetraffic.sg/feeds/json
however when i use ajax.. i run into this particular error in my chrome console.
Error:XMLHttpRequest cannot load. Origin null is not allowed by Access-Control-Allow-Origin.
Is the external website preventing my from using inf... | stackexchange/codereview |
I m using Java.I want to know,is any algorithm is available that will give me an unique and the same hash code when I will run the application multiple times sop that collisions of hash code will be avoided.
I know the thing that for similar objects, jvm returns same hash code and for different objects it may return sa... | stackexchange/codereview |
I have usercontrol which has required field validation in it. I have 2 instances of this usercontrol in single web page . Now if I click button on first usercontrol the validation messages are fired for 2 user controls. But only the required fields of that user control has to be fired. Please could any one solve thi... | stackexchange/codereview |
I have domain A that opens an IFRAME with domain B, which opens IFRAME with domain A in order to access the parent.parent.
I am able to do JS functions from A, except for SAFARI & Chrome.
I have the Iframe DOM element, and I do iframe.contentWindow.location but it doesn't give me the right domain! (gives me domain B)
W... | stackexchange/codereview |
Re-doing this question since I don't know if I was getting my point across correctly.
I have a signedXML object
Dim signedXml As New SignedXml(envelope)
I need to set the SigningKey property of this object
signedXml.SigningKey
I also have my certificate object
Dim cert As X509Certificate = Me.GetX509Certificate
How ... | stackexchange/codereview |
Hello friendly computer people,
I've been studying openGL with the book iPhone 3D programming from O'Reilly. Below I've posted an example from the text which shows how to draw a cone. I'm still trying to wrap my head around it which is a bit difficult since I'm not super familiar with C++.
Anyway, what I would like to ... | stackexchange/codereview |
My Boss give me an image (please see below) and told him I would make his site look the same. Here is my code, but it doesn't look like the image:
HTML
<div class="clearfix" id="footer">
<ul>
<li><a href="/pages/facility">Become a Virtual Active Facility</a></li>
<li><a href="/pages/about">About Us</a></li... | stackexchange/codereview |
I'm currently using JSch as the library for connecting to my remote server. In one of the scenarios, I should be able to log in to a server2, through server1. That is, I should first log in to server1, then ssh to another server (server2) and execute my command. Moreover, sometimes I should be able to connect to a serv... | stackexchange/codereview |
I have a QT application with a bunch of menu within another menu. Each menu list item, when selected shows different forms. I would like to create another application that would test this QT application's menu if all the menu item selected are working and are showing the forms they're supposed to show.
I'm a beginner ... | stackexchange/codereview |
Quite simply in PHP I have a date of 8th January 2011, in the format 08-01-11 - when I run this into strtotime and convert it back into a different date format, it reverts back to 1st August 2011 - not ideal!
Is there any easy way around this, rather than having to place everything into different arrays/variables and b... | stackexchange/codereview |
i am using php tp upload images.... i was wondering
how to create thumbnails of images ?
how to customize their dimensions & proportions ?
| stackexchange/codereview |
I know I can just use a master page, but what markup do I use on the master page to always have a header at the top and a footer all the way at the bottom using some CSS code?
| stackexchange/codereview |
On a particular page, I am using jquery ui tab to tabify my web page. My JavaScripts are placed in external files and loaded at the end of my HTML. On document ready event, the very first thing I do is to call the tabify plugin.
The problem is that the browser has already painted the page at this point, then repaints i... | stackexchange/codereview |
I found there are lots of advanced featured stored procedures in SQL Server which are not documented by the Books Online. I found them from googling. Here are some of them if you have others please share them with me.
Undocumented Stored Procedures in SQL Server
sp_checknames
sp_columns_rowset
sp_enumoledbdatasources
s... | stackexchange/codereview |
I'm using AspectJ annotations instead of writing actual aspect files. I want to expose an annotation value to my advice.
I currently have this but it it doesn't expose the values inside MyAnnotation
@Before("execution(@MyAnnotation * * (..))")
public void intercept(JoinPoint jp) {
...
}
What I was thinking was somet... | stackexchange/codereview |
In C# 4.0, say I have
List<HSZPAIR> myList
with three elements where the HSZPAIR struct is defined by:
[StructLayout(LayoutKind.Sequential)]
public struct HSZPAIR
{
public IntPtr hszSvc;
public IntPtr hszTopic;
}
How do I create a byte array for the entire myList? In C++, you could just cast as array of st... | stackexchange/codereview |
I have a UIPickerView that is populated by an NSMutableArray called sectionNamesArray. When an item is added to sectionNamesArray, how do I manually get this delegate to be called?
-- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
{
return ([sectionNamesArray count] + 1... | stackexchange/codereview |
I am a Java guy who is familiar to basic SQL and PL/SQL. I can write simple procedures and functions. Now, I am expected to do some Oracle performance tuning. Can anyone help me with some crash course material? Thanks in advance.
--Siddharth
| stackexchange/codereview |
i want to ask how How to get count of nodes XML with sign 'question'...
If i have some xml data like this:
<?xml version='1.0' encoding='utf-8'?>
<questioner>
<question>
<id>001</id>
<content>soal 1</content>
<answer>a</answer>
</question>
<question>
<id>002</id>... | stackexchange/codereview |
I'm about to release new versions of some of my modules, and I'm wondering which metadata files I should include in the distributions. The CPAN Meta Spec version 2 has been released, but I'm not sure how well supported it is right now in the Perl toolchain.
I'm thinking of including both a v2 META.json and a v1.4 META... | stackexchange/codereview |
One measurement of link strength between two users (buddies) is the following:
S = (number of common buddies)/(number of buddies of person1 UNION number of buddies of person2)
To calculate the value above I have started to write the following query:
WITH user1 AS
(
SELECT calling_party, called_party FROM monthly_connec... | stackexchange/codereview |
I have no idea how to do this? I'm adding comma numbers, result is of course always a number with way too many digits after the comma. anyone?
| stackexchange/codereview |
I'm trying to save and load a DataTable in PowerShell.
I save it like this:
$dt | Export-CliXml -path "c:\exports\data.xml"
and load it like this:
$dt = Import-CliXml -path "c:\exports\data.xml"
But the type I get back is an array of Rows rather than a DataTable!
This is causing me major problems as it needs to be pa... | stackexchange/codereview |
Just browsing over the latest release of the PHP coding standards, and something caught my eye:
http://svn.php.net/viewvc/php/php-src/trunk/CODING_STANDARDS?revision=296679&view=markup
Coding standard #4 states that "When writing functions that deal with strings, be sure to remember that PHP holds the length property o... | stackexchange/codereview |
I've been reading up on DDD a little bit, and I am confused how this would fit in when using an ORM like NHibernate.
Right now I have a .NET MVC application with fairly "fat" controllers, and I'm trying to figure out how best to fix that. Moving this business logic into the model layer would be the best way to do this,... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.