instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm writing a kind of "generic container dialog", which will ensure that all modal dialogs in an app will have the exact same "chrome" (namely, buttons, icons, etc.). I came up with the following:
The containerPanel is just a System.Windows.Forms.Panel.
Now what I want is as follows: for each dialog in an app, I want ... | stackexchange/codereview |
I wrote a simple program in C on Linux to delete all the files in a directory except one called svn like this:
1 #include <stdio.h>
2
3 int main()
4 {
5 system("rm !(svn)");
6 return 0;
7 }
But when I compile and run it, the terminal says: sh: Syntax error: "(" unexpected
However, when I type a... | stackexchange/codereview |
Did you ever find yourself in this position - a bug is reported by the client but you are unable to reproduce the bug. Even the QA team is unable to reproduce the bug. We are facing such a situation with our desktop application(C#, windows forms). What do you suggest we should do to reproduce the bug, or track the scen... | stackexchange/codereview |
One of my homework assignments is to solve the Eight Queens problem using a two dimensional array to represent the board. I keep getting an index out of bounds error:8 in my "isUnderAttack" method at:
if (board[row][j] == QUEEN)
and in my "placeQueen" method at:
if (isUnderAttack(row, column)) {
and
queenPlaced = pla... | stackexchange/codereview |
All of the sudden all of the calls to my web services get this error:
2010-11-04 17:42:16,321 [9] ERROR ABCKiosk - System.InvalidOperationException: Response is not well-formed XML. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)... | stackexchange/codereview |
as stated above I need to know what the difference is between this two possibilities when trying to pass a delegate as a callback to a native DLL. I sometimes have to use the first one and sometimes the second one for my code to work. However, it is unclear to me what's the difference and when to use which possibility.... | stackexchange/codereview |
Here is what I am trying to do.
I have a MySQL table in my database that holds email addresses and payment amounts. I am trying to schedule a job that would read from the table according to certain criteria set in the SQL and send the email addresses and payment amounts to Paypal using MassPay API using the Name Value ... | stackexchange/codereview |
How can I find the width of an element in JavaScript/jQuery without counting the part that is trailing whitespace. The result for the example below would be 16px because it is only one character, and the font size is 16px.
<div class="styled"
style="width: 1024px; margin: 5px; border: 100px solid lemonchiffon;"... | stackexchange/codereview |
I've been having some problems with implementing the jCarousel plugin for jQuery.
The code I'm using is available at http://projects.klavina.com/stackoverflow/index-slider.html
Problem 1:
I need to highlight the active external control on slider #1. I found a solution at http://heidzir.com/blog/?p=21, but as already st... | stackexchange/codereview |
I bought and implemented this from Vatlab:
- http://demo.faceconn.net/InviteFriends.aspx
If you go here and click "SKIP" button on the top right, it works:
- http://www.leapup.com.au/invite.aspx
On the other hand if you go here and click "SKIP", it throws an error page:
- http://www.uniquevolve.com/Webform1.aspx
There ... | stackexchange/codereview |
Let's say I am using django-tagging application and I decide I want to add a form class to the existing tagging forms. I do not want to patch the form into the existing forms.py since it will be blown out when updated. How do I extend forms.py to include my form class?
I tried adding a "tagging" folder in my app with... | stackexchange/codereview |
I am looking to draw some unicode text and I am trying to clip the individual characters on the screen. I've only been able to get it to clip the entire character, not partially like I need.
Specifically I am trying to clip: ★★★★★ so it will only show a 1/2 of the last star (clipping rect configurable in my code).
I... | stackexchange/codereview |
Given these 2 lists
L2 = [A,B,C,D,A,B]
L3 = [3,2,1,2,2,1]
I want to obtain
L2_WANTED = [A,B,C,D]
L3_WANTED = [5,3,1,2]
The lists are always ordered and same size and elements correspond as key value pairs eg A:3, B:2 and so on.
The objective is to eliminate the dups in L2 and sum the corresponding terms in L3 to obta... | stackexchange/codereview |
I'm trying to write a program that alters a .txt file of a variable directory.
However when I attempt to do so I get an error.
My error:
no matching function for call to `std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::string&)'
My code:
#include <iostream>
#include <fstream>
using name... | stackexchange/codereview |
Is there a way to catch two different exceptions and process them in one catch block in .NET?
I'm thinking of something like
try {}
catch(OverflowException ex1, FormatException ex2)
{
}
I know I can use functions to reuse redundant logic in my catch blocks but I'm still curious as to whether a shorthand method ex... | stackexchange/codereview |
I've created that is hosted on my home site, and included on 3 individual sites via IFrame. After the poll is completed, we would like to give pollers the ability to share their results via Facebook online. The Facebook share requires meta tags to manipulate the title and description. What would be the best way to comp... | stackexchange/codereview |
I wrote a swing lib and i used it into my project with matisse.
Now i want do some name-packaging-change, a very simple operation but the problem is refactoring can't touch the code written by matisse (locked for editing).
So the question is:
There is a smart way to refactor all without opening my java classes in exter... | stackexchange/codereview |
Is it possible, using SQL Server Reporting Services (SSRS) 2008 R2, to somehow use the dataset that is used for the actual list of data for the report for a report parameter dropdown?
Explanation: Let's say I have a dataset with products and their respective prices. Now I'd like to be able to filter the dataset on the ... | stackexchange/codereview |
I am trying to find the most efficient way of running multiple (> 1000) insert statements with NHibernate.
The actual insert statement is very simple as it uses an FK ID from a newly created object together with values from a subquery. Here's what I would write in SQL:
insert into dbo.NotificationView
select
1 AS ... | stackexchange/codereview |
This is a more detailed version of the same question asked yesterday.
I have a client app which communicates with the server app through RMI calls to stateless EJBs. The initial context is being built with these config params:
InitialContext ctx = new InitialContext(new Hashtable<String, String>() {
{
this.put("j... | stackexchange/codereview |
I am using jQuery to refresh a DIV content box every 5 seconds or so, the time is actually controllable by the end user.
I want to have a countdown timer on the page which will count down until the next page refresh (or query) based on the value that is set.
For now, it can be a static value of 5 seconds but I really c... | stackexchange/codereview |
Is it possible to stretch an image horizontally?
Use case: I have a one pixel wide (60 pixel tall) image that I would like to stretch horizontally to fill its parent container. The purpose of stretching this image is to give the container in question the appearance of a gradient background.
Here's what I tried without... | stackexchange/codereview |
Let's say I have the following class hierarchy:
class A(object):
_d = {}
class B(A):
_d = {'b': 1}
class C(A):
_d = {'b': 2, 'c': 3}
class D(B):
_d = {'d': 4}
Is there a way to write an @property method d on A which will return the aggregated dictionary over all superclasses of an object? For example, B().... | stackexchange/codereview |
How we can draw a line chart using fusionchart.rendercharthtml
| stackexchange/codereview |
I need a away to find the tag containing the actual relevant text of webpage. For example on a new papers website where there are adds , menus and banners etc I need to be able to parse the webpage ,assuming it is in XHTML to simlify the scenario , and return only tag containing the actual news on the page .
The way I... | stackexchange/codereview |
My requirements are
Embedded Database
Easy Integration with Netbeans IDE
Should be able to develop using JPA
Free of cost
Size of the database should be minimum
Please do suggest me a database with the above mentioned features and some pointers to good tutorials regarding that.
| stackexchange/codereview |
I have a query that I run once a day that takes certain tables from my database and puts them into a single table so that I can quickly export the information in any format I require.
I am running into a problem however that gives me the following error: "SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when... | stackexchange/codereview |
I have created a static library libTest.a.
i am added that library into my new project.
After that i added the header search path and Library search path.
And i added -ObjC -all_load in OtherlinkerFlag.
In Simulator everything works fine... In device i am facing a error "_OBJC_CLASS_$_Test", referenced from:
How to f... | stackexchange/codereview |
I may already know the answer to this question, but I thought it was worth asking anyway. If I have a load of using statements within my code file that aren't being used;
Does that have any sort of detrimental performance impact?
How does the compiler deal with them at compile/run time?
Thanks
| stackexchange/codereview |
I'm rather new to PHP programming but I thought I'd do it right from the beginning, so I came across this fine pdf Web Performance Boot Camp where he suggests:
All sites should always prepare for CDNized static content
and this is how:
<img src=”<?php echo CDN(‘/i/left-menu-background.gif’) ?>”
etc., he also gave a... | stackexchange/codereview |
In my website (php) I want that if I have created session from IE browser then no need to login if i open site on other browser like mozilla etc in.
Is it possible to share single session on all sites ?
| stackexchange/codereview |
I'm having an xml file like:
<root>
<RowDetails RowName="A" ColumnSize="1">
<ColumnDetails ColumnName="A1" />
</RowDetails>
<RowDetails RowName="B" ColumnSize="2">
<ColumnDetails ColumnName="B1" />
<ColumnDetails ColumnName="B2" />
</RowDetails>
<RowDetails RowName="C" ColumnSize="3">
<ColumnD... | stackexchange/codereview |
var all = document.getElementsByTagName( 'img' );
for( i = 0; i < all.length; i++ ){
var newimg;
(newimg=document.createElement('div')).style.cssText="display:inline;width:"+all[i].width+"px;height:"+all[i].width+"px;background-image:url("+all[i].src+");";
all[i].parentNode.replaceChild( newimg, all[i] );
}... | stackexchange/codereview |
I'm using Service Broker as a messaging queue for a job engine. When the jobs are created they are given a Guid that is used by the system to track the progress of a job. Given that, would it be possible to create a dialog in Service Broker that uses a given Guid instead of creating it's own?
| stackexchange/codereview |
I have Tasks table: Id (PK), TaskName, Status
Status is one of: Queued, Busy, Complete.
I want to use multiple threads to process the tasks, and for that I need to be able to do in one operation:
var task = db.Tasks.FirstOrDefault(t=>t.Status == (byte) TaskStatus.Queued);
task.Status = (byte) TaskStatus.Busy;
db.Subm... | stackexchange/codereview |
I've been using MVC to re-implement an application that I once built using WebForms. What I've noticed is the follow:
MVC works really well for simple pages, pages that don't require large amounts of state to be maintained between requests. If the page requires any sophistication, then the purity of page's adherence... | stackexchange/codereview |
currently I am working on an activities management system, in this application I want to give facility to show the visitor location of this site. I am using c# and asp.net
so how we should start implementation can any one will suggest.....
Thanks
... | stackexchange/codereview |
I'm trying to add some text to some spans within a div pretty simple but I cannot for the life of me get this to work in IE. It works in Chrome, Safari, and Firefox.
heres the jQuery:
$("div#dateRanges #startDate").text(typeValues.dateRanges[1][0]);
$("div#dateRanges #endDate").text(typeValues.dateRanges[1][1]);
and h... | stackexchange/codereview |
I want to get hard disk serial number. How I can I do that?
I tried with two code but I am not getting
StringCollection propNames = new StringCollection();
ManagementClass driveClass = new ManagementClass("Win32_DiskDrive");
PropertyDataCollection props = driveClass.Properties;
foreach (PropertyData driveProperty in p... | stackexchange/codereview |
I am new to blogging and started using BlogEngine.Net. Default [code:c#] [/code] formatting doesn't work with all the skins.
For example, if I use inove theme, it doesn't format the code with the above whereas if I use ProfessionalLight theme, it formats the c# code.
I will be posting lot of code in my blogs from now o... | stackexchange/codereview |
Working on a lift and shift of a spring MVC app from Weblogic to Websphere. The previous owners swear that they had failover working, but half of the objects that are stored on the session are not even serializable.
Does Weblogic silently ignore serialization errors these or perhaps does it gracefully treat any non ... | stackexchange/codereview |
I'm using pdftk to concatenate pdf files on the fly by making an exec() call like so:
exec("/path/to/pdftk /path/to/file1.pdf /path/to/file2.pdf cat output path/to/output.pdf", $execoutput);
This all works perfectly well in a linux environment, but when run locally on our development environments (a mix of Windows/Uni... | stackexchange/codereview |
In a Silverlight User Control's code behind file there is a method, to which I should pass a string parameter. I'm trying the following way but get an error System.Collections.Generic.KeyNotFoundException
Message=The key is not found in the dictionary.
public partial class MyUserControl : UserControl
{
publ... | stackexchange/codereview |
I read pretty much about xml sitemaps and how they help search engines to crawl web pages. I believe the sitemap helps that website get into search results of google more often. But what I fail to understand is how a url would give all the required infor mation.
For example, We have a large website where used cars are ... | stackexchange/codereview |
When working with breakpoints in Eclipse I sometimes notice that they have different icons / annotations (markers on left sidebar). Sometimes it's just a blue ball, sometimes it has a checkmark on it and sometimes it is crossed. What do all these annotations mean?
| stackexchange/codereview |
I have a .Net 4.0 WCF service that I'm trying to setup ninject for. I downloaded the WCF extension for ninject and had a look through the TimeService example. Everything looks simple enough, however I can't see how ninject is doing its job correctly as there is a parameter-less constructor manually injecting the depend... | stackexchange/codereview |
Consider the iterators count(3,3) and count(5,5). How can I create a iterator that outputs only the numbers that occur in either count(3,3) and count(5,5)?
| stackexchange/codereview |
I joined a new company using Mainframes (z/os) for developement, documentation, design and testing. Now we are planning to migrate the whole system to ClearCase for version control.
My question is: are there any connectors I can use to connect the mainframe to ClearCase, so that the user can checkin/checkout straight i... | stackexchange/codereview |
I am using [[UIApplication sharedApplication] delegate] to share a variable across several classes. I set the value in the AppDelegate. I am able to NSLog it from the myAppDelegate.m and see the value. Then I try to NSLog the value when one of my Tabs loads, and it crashes:
myAppDelegate *app = (myAppDelegate *)[[UIApp... | stackexchange/codereview |
I recently stumbled upon the Object.create() method in JavaScript, and am trying to deduce how it is different from creating a new instance of an object with new SomeFunction(), and when you would want to use one over the other.
Consider the following example:
var test = {
val: 1,
func: function() {
return... | stackexchange/codereview |
I want to know the amount of data arrived at my updclient including damaged/bad data, packet header etc. i want to calculate throughput using udp.
Thanks.
| stackexchange/codereview |
I have nodes being displayed as 'promoted to homepage'. The nodes body can contain basic html which is fine for that nodes page but when not for the homepage. Is there any way to modify this to strip any html tags?
Thanks,
Jonesy
| stackexchange/codereview |
Is there a method in Java that I can use to convert MM/DD/YYYY to DD-MMM-YYYY?
For example: 05/01/1999 to 01-MAY-99
| stackexchange/codereview |
For example I have a date:
$date = mktime();
And in out project I have many palces were we used
echo $date
Can we change formatting of date in this case? How can we make it?
| stackexchange/codereview |
I've always wanted to send objects that you can serialize in XML across websites, such as a dictionary or an exception (because I'm perverse).
I know for example in the dictionary, I shouldn't send custom objects (as the value part) in case I upgrade the class library on the web service, but not on the client as this w... | stackexchange/codereview |
I have a Moose object with a non-required attribute:
has 'optional_attr' => (
is => 'ro',
isa => 'MyCoolType',
required => 0,
);
How can I confess if I ever try to read this attribute while it's not set?
| stackexchange/codereview |
In short, what I'm looking to achieve is the ability to run wsdl2java and generate extra code. Has anyone done this and can offer hints/tips/advice, has anyone done anything similar with a different approach the one outline further down the question (a lot further down)?
In the long form:
Background:
We have a third pa... | stackexchange/codereview |
I am trying to connect to a mysql db through php running on my schools unix server. This is what I am trying:
$ php setupDatabase.php
PHP Fatal error: Call to undefined function mysql_connect() in /users/cs/summers/Fall2010/webCentric/ass4/sessionTime/setupDatabase.php on line 16
Line 16 refers to this line:
db_s... | stackexchange/codereview |
I am trying to get a value from a list box after it has been added to the page the listbox ID is ql_domain_groups i need somthing like $('#').live() the only reason why i am not using live is becuase i dont not want to click something to get the value i am trying to get the information into Ajax
function GetQL... | stackexchange/codereview |
I am trying to create a calculated column in SharePoint 2007. I want it to return the year of the CreatedBy column date and set the day to be 1 and the month to be January the data type returned by the formula is of type Date.
Any ideas how I can do this?
=YEAR([Created]) does not seem to work as expected.
Thanks
Nav
| stackexchange/codereview |
With the following code
Query query = pm.newQuery(User.class);
query.setFilter( "username == :usernameParam" );
query.setResult( "count(username)" );
query.setResultClass(Long.class);
Object result = query.execute(username);
return (result!=null && (Long)result>0);
I get this exception:
javax.... | stackexchange/codereview |
Is there any difference between these two ways of querying the context?
Firm firm = base.context.Firms
.Where(f => f.SomeId == someId)
.Where(f => f.AnotherId == anotherId)
.FirstOrDefault();
Firm firm = base.context.Firms
.Where(f => f.SomeId == someId && f.AnotherId ==... | stackexchange/codereview |
I've made a function (posted at the bottom), which will look at a multi-dimensional array, and remove "partly duplicates". What I mean by this is:
Array
(
[0] => Array(5,10)
[1] => Array(5,10,15)
)
All the elements in the first array (5, 10), are also available in the second array (5,10,15), and we therefore w... | stackexchange/codereview |
The data:
list = ['a','b','x','d','s']
I want to create a string str = "abxds". How can I do that?
Right now I am doing something like:
str = ""
for i in list:
str = str + i
print(str)
I know strings are immutable in Python and this will create 7 string object. And this goes out of my memory when I do thousands o... | stackexchange/codereview |
I'm looking for a definitive answer (if indeed one exists) on how much memory should be allocated when creating a static chunks of shared memory via boost::interprocess's managed_shared_memory. Even official examples seem to allocate arbitrarily large chunks of memory.
Consider the following structure:
// Example: simp... | stackexchange/codereview |
I am writing an app that prints out a (rendered) HTML page to every printer that is installed on the computer the app is running on. I do this by creating a WebBrowser, calling print() on it, and then closing the form. I do this for each printer that is installed on that computer.
My problem is that when I call attempt... | stackexchange/codereview |
I'm trying to place an image on a canvas without resizing it. I thought drawImage(img, x, y) would do the trick, but it stretches the image to fill the canvas.
Also supplying drawImage(img, x, y, width, height) with the dimensions of my image doesn't seem to work.
Here's my code:
<canvas id="story" style="position:rela... | stackexchange/codereview |
When the user clicks on this element, I want it to show an alert.
However, when I click on the DIV that this Panel generates, nothing happens.
How can I make an alert execute when the user clicks on the following panel?
var content = new Ext.Panel({
region:'center',
margins:'5 0 5 5',
cls:'empty',
bodyS... | stackexchange/codereview |
do you any experiences with xmpp protocol for chat room applications?
not for messenger IM.
| stackexchange/codereview |
I am using t-sql. I have what I thought would be an easy search. There is a 1-to-many relationship between SalesPerson and TradeShow. 1 salesperson could have gone to many trade shows. I need to be able to search on the SalePerson. I also need to be able to search on the LAST trade show they attended. I thought I would... | stackexchange/codereview |
hope you guys can give me a hand now! this is tricky to me
I have run into an requirement of my application that i cant find a way to do this.
I need my application to be fullscreen and no title bar (done), and this application will have a background image. However, all the activities/views of my application must be tr... | stackexchange/codereview |
I modified my project's AssemblyInfo.cs as following:
[assembly:AssemblyVersion("1.0.*")]
//[assembly:AssemblyFileVersion("1.0.0.0")]
This updated the dll file version. However, the Build Number and Revision number appear to be some random integers. Is it possible to specify the start point for Build/Revision number o... | stackexchange/codereview |
I would like to create a global var inside my bootstrap, this is the configuration:
require_once 'Initializer.php';
require_once 'Zend/Loader/Autoloader.php';
require_once 'Zend/Controller/Router/Route.php';
require_once 'Zend/Controller/Action/HelperBroker.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$a... | stackexchange/codereview |
I understand that & is used to reference the address of object so &char* = char**. Is there anyway to reverse this so that I can get char* from char**?
So I have:
char** str; //assigned to and memory allocated somewhere
printf ("%s", str); //here I want to print the string.
How would I go about doing this?
| stackexchange/codereview |
I have a quick question about programming using Vim. I sometimes make a silly mistake in my program.
For example, the Python code below has an infinite loop (say foo.py . . . be careful when executing it!)
x = 1
while x == 1:
x = 1
You won't see any result, but find a fan inside your computer is becoming louder, ... | stackexchange/codereview |
I've this old and static website which is just a collection of html pages created in 2005 using DreamWeaver. I need to recreate it in ASP.NET MVC.
However, I've noticed that there few contents that are not susceptible to change over time, such as The Ministerial decree that created that organization, its mission, and ... | stackexchange/codereview |
I need to make a base class enforce this:
public class DialogForm : Form
{
public DialogForm()
{
base.HelpButton = true;//enforce this
base.MinimizeBox = false;//enforce this
base.MaximizeBox = false;//enforce this
}
}
AND be sure it is not modified afterwards, how can this be do... | stackexchange/codereview |
My suggestions:
1) either enums exist only before compilation (like generics; but I've never heard anything about it whilst it's written everywhere that generics are being erased after compilation)
2) or Enum is a way to maintain backward compatibility in some way (but I don't see that way yet).
Any other suggestions?... | stackexchange/codereview |
I realise that if you have an iterable you should always use .join(iterable) instead of for x in y: str += x. But if there's only a fixed number of variables that aren't already in an iterable, is using .join() still the recommended way?
For example I have
user = 'username'
host = 'host'
should I do
ret = user + '@' +... | stackexchange/codereview |
With
use Term::Size;
say $Term::Size::VERSION;
I can find out the version of the module.
How could the script find out the release-date of this module-version?
| stackexchange/codereview |
Im trying to get data from a mysql database and display it in an mvc view. I am getting the following error -
Input string 'N/' was not in the correct format.
I have the field that is being queried mapped as a string. Is the "/" character not allowed? That field is not even being displayed in the view.
I can run t... | stackexchange/codereview |
I have the following tables:
order
message: contains an order_id column that is a foreign key to the order table
review: tracks which users have reviewed an order, contains an order_id column that is a foreign key to the order table and a user_id that is a foreign key to the user table
user: tracks a user in the syste... | stackexchange/codereview |
Question 1449994 addressed my question, but I dont see where to put the sample code:
static void Main(string[] args)
{
if (System.Environment.UserInteractive)
{
string parameter = string.Concat(args);
switch (parameter)
{
case "--install":
ManagedInstallerClas... | stackexchange/codereview |
Is it possible to access items in DataTemplate in the code? I mean, I have DataTemplate defined in Window.Resources like this:
<Window.Resources>
<DataTemplate x:Key="MyTemplate" DataType="MyType">
<StackPanel Orientation="Horizontal" Height="Auto" Tag="ColorString">
<Rectangle Width="16" Height... | stackexchange/codereview |
I have the following code below in a javascript file and need to have the link that is being generated open in a new window.
if (currentSearchType === 'extSearch') {
extSearchSearchValue = extSearchSearchInput.val();
window.location.href = replaceByObject(global.uhg.data['general'].body.extSearchSearchUrl, {
... | stackexchange/codereview |
Consider the TranslateAllCoords static function:
static class CoordinateTransformation
{
public static void TranslateAllCoords(ref int x, ref int y, ref int z,
int amount)
{
x+=amount;
y+=amount;
z+=amount;
}
}
Then, later in code, you have:
int x=0, y=0, z=0;... | stackexchange/codereview |
In Visual Studio, sometimes due to unnecessary clicks on Form elements in design page, a blank event handler definition is created which we actually don't want to define. Usually we can undo our action to have this blank definition removed.
Although, keeping those won't harm the application, but it surely will make cod... | stackexchange/codereview |
Anybody familiar with this bug with box-shadow in CSS3?
It renders ok at first. But when scrolling the page up and down(so the shadows goes in and out of visible area) the shadows from the horizontal lines does error and needs to be reloaded to render right. I experience this only in Opera, and not in IE(where I use cs... | stackexchange/codereview |
We are trying to Integrate SQLite in our Application and are trying to populate as a Cache. We are planning to use it as a In Memory Database. Using it for the first time. Our Application is C++ based.
Our Application interacts with the Master Database to fetch data and performs numerous operations. These Operations ar... | stackexchange/codereview |
I know this question has been posted several times, but after 1 hour on google I still can't get this to work
SELECT
ROW_NUMBER() OVER(ORDER BY x.Year DESC, x.Month) AS ID,
x.*,
Finance.fGetRates(x.XTimeStamp)
FROM
( SELECT Client,
Month(TimeStamp) As Month,
Year(Ti... | stackexchange/codereview |
With array notation such as the following:
$.each(data.feed.entry, function(i, item)
{
var id = item['id']['$t'];
});
I can retrieve the id field from a Youtube JSON feed as this string:
tag:youtube.com,2008:video:W5XpXU8TBoo
corresponding to this JSON:
entry: [
*
-
{
o
-
... | stackexchange/codereview |
On eventRender of the fullcalendar, I want to identify the element belongs to which row of the calendar.
eventRender: function(event, element) {
//find calendar row of the element
}
| stackexchange/codereview |
How do I put this python script:
a = ['f','d','s','a']
x = -1
scope = vars()
for i in a:
scope['x']+=1
print a[x]
inside of a html file?
| stackexchange/codereview |
I want to create a flash Facebook application in which, after pressing a button, the user will be able to browse his/her photo albums and choose a photo. How should i do that? What will be the code under the button to gain authentication from any user using this application?
Thanks.
| stackexchange/codereview |
How hard is it to create a UI, which views is based on the data that a user has?
So say I can have a scroll view, and a particular user A can have a view which consists of X,Y,Z and user B can have a view which consists or Y, Z? I am just concerned about positioning the views in a views because we can't do that now via... | stackexchange/codereview |
This question is easy people. Make autocomplete beautiful in the client side of a web app is simple. There are a lot of plugins.
But, in the backside, in the server side, what's the best way to do it? I don't like the idea to hit the DB with each keypressed by the user.
I've been thinking about sphinx, or some full-tex... | stackexchange/codereview |
We have an outlook add-in project in visual studio 2008 that uses VSTO 2005. This works with outlook 2003 and outlook 2007 so far.
Now my company is moving to visual studio 2010 so I tried to migrate to visual studio 2010 with VSTO 2005, I am having a few compilation problems. My question:
Will VSTO 2005 work on vs 20... | stackexchange/codereview |
I am writing a Linux (Ubuntu and Debian Lenny) application in C++.
Now I need to know the distance/offset between UTC and the currently set system time at a given day in the past. Since I need to convert recorded data, I the distance need to be calculated with respect to a date in the past (which may have a different D... | stackexchange/codereview |
I am using ajax function to call a method on server side which will return a set of values, I need to add these values to the next row of a jqgrid. How to insert values to a jqid by iterating the rownumber?
| stackexchange/codereview |
Does anybody know a way to create a keyboard shortcut for the button 'Expand All' in the Synchronize view? Or is it possible to have the tree autoexpand on startup?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.