instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Does anybody know when first ASP.NET MVC 3 books will come out? I know it is kind of early to ask but I'm wondering if there are some release dates from Apress, Wrox or any other publisher.
| stackexchange/codereview |
I'm trying to find out if a url variable exists, and if it doesn't, make sure that it's not empty.
This does not work:
<cfif IsDefined('URL.affiliateId') and is not "">
//
</cfif>
| stackexchange/codereview |
The long date for culture "en-ca" is MMMM-dd-yy . This is correct and I have verified this with documentation. You can verify the result in .NET by doing the following.
Dim culture As CultureInfo = CultureInfo.GetCultureInfo("en-ca")
MsgBox(culture.DateTimeFormat.LongDatePattern)
I am trying to figure out why t... | stackexchange/codereview |
I have a tree view created in my HTML Page
<asp:TreeView ID="TreeView1" runat="server"
onselectednodechanged="TreeView1_SelectedNodeChanged"
PopulateNodesFromClient="False" onunload="TreeView1_Unload">
<Nodes>
<asp:TreeNode Text="Reports" Value="Report">
... | stackexchange/codereview |
I'm new to setup proj in vs2008.
I need to know how to configure a file in my setup project, so that it is installed to a specific location other than the install directory.
example: main install directory = c:\program files\etc..
this other file: install directory = c:\mydirectory\myfile.txt
There is probably a simple... | stackexchange/codereview |
I have a set of MP3 files for a podcast, and I'd like each to have an image in it. I've looked through MP3::Tag but it isn't clear exactly how to do this.
| stackexchange/codereview |
We were given a php inventory program. We are then supposed to say if a design pattern will make the program better or if it will just make the program more complicated.
The program is structured like this.
The program is broken down into php scripts embedded with html. Either there is (A) one entire php page dedicate... | stackexchange/codereview |
In my quest for knowledge I sometimes find myself scouring the source of a page only to find that the javascript method im looking for isnt on the page directly. That said I think it must be on one of the linked javascript pages. However I dont really want to have to look through each individual file to find the line. ... | stackexchange/codereview |
I've got an application where all the sprocs are running nice and quick, but the sp_reset_connection calls between them are taking anything up to 20 seconds. I've looked at locking and blocking but can't see any happening and don't understand how this would effect sp_reset_connection.
Help!
| stackexchange/codereview |
I'm currently trying to install the "new" Microsoft WebMatrix Beta 2 (a web programming IDE). I was trying to use Web Platform Installer for this. But it 404's on the SQL Compact 4.0 CPT2 and it's tools. I was able to get the runtime from the Microsoft downloads page but the tools I am not able to find. I can not insta... | stackexchange/codereview |
i have data of thousand records which i read line by line . Each line has some fields and their value but field names contain a non ascii character, below is the example of such a record :
| | | X:720 | N°227: Done
where X and N°(non ascii character) are fieldnames and 720,227 and "... | stackexchange/codereview |
Something happend when I replaced a footer for a sticky footer, I really dont have a idea where it happend because I usually test the website in Firefox and then ie 8 is allways as good as FF.
Something in my code has created a mayor gap between the upper top menu and my main menu.
My website
| stackexchange/codereview |
I am trying to replace any instances of uppercase letters that repeat themselves twice in a string with a single instance of that letter in a lower case. I am using the following regular expression and it is able to match the repeated upper case letters, but I am unsure as how to make the letter that is being replaced ... | stackexchange/codereview |
When a generate my code with wsimport using a .net wsdl I've got extreme long exception classes like [servicename][operationname]FaultFaultFaultMessage.
I know how to rename each single exception but can I use a jaxb .xjb file to "template" all the exceptions at once?
| stackexchange/codereview |
Can anyone advise on how I might best solve my "little challenge"?
assume someone created a (not overly complex) design in a layered PSD file.
the PSD has various LAYERs with given LAYER NAMES containing various TEXTs using different FONTS and SIZES and the text located at different POSITIONS in the design (e.g x/y co... | stackexchange/codereview |
In a previous question I wrote about a javascript date function that was mysteriously stopping on 11/07/101. Thanks to the stackoverflow users I was told my problem is Daylight Savings Time. Javascript date, is this my error or did I find a bug?
So my last question on this is what is the recommended approach in Javas... | stackexchange/codereview |
SELECT
*
FROM
users
WHERE
username IN ("john", "bob", "ray", "sexay")
Let's say I have these in my table:
ID USERNAME
------------------
1 john
2 bob
3 jack
I want to know which of my set did not match, so I need "ray" and "sexay". Is there a pure SQL way of doing this? I know I can do this with multiple queri... | stackexchange/codereview |
I have the first key/value pair in a LinkedHashMap, which I get from a loop:
for (Entry<String, String> entry : map.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
//put key value to use
break;
}
Later on, based on an event, I need the next key/value pair in the linkedHashMa... | stackexchange/codereview |
Have looked for a solution for 2 days now and am beating my head against the wall. I have tried both the normal authlogic build and the fork
authlogic or 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3'
I have everything working except for when I create a UserSession it will not take... | stackexchange/codereview |
i'm new to GDB so hope it's a fair question...
i would like to run a script with GDB that get a coredump file and save the BT of all threads into a file.
my problem is to operate the GDB.
i tried:
GDB <exe> <core file> --command = my_script
where my script is:
thread apply all bt
that doesn't work of course.
is the... | stackexchange/codereview |
I have it so that users can copy and paste objects from one page to another. I use cookies to hold the object data.
On very rare occasions the amount of data (when escaped) has exceeded the 4k limit.
There are two ways around this I can see.
compress what goes into the cookie (in tests this will give me about 5 time... | stackexchange/codereview |
I know this is dependant on the operating system, but in modern operating systems, are equal time slices given to threads/processes of the same priority, or are there other factors involved?
| stackexchange/codereview |
I have a query I'm attempting to port from SQL (T-SQL) to LINQ-to-Entities 4.0 (C#). The result set contains a combination of standard "detail rows" as well as aggregate "statistic" information.
The original SQL used a standard select left-joined to the aggregate information, similar to this:
SELECT
UserId,
N... | stackexchange/codereview |
I have an html form that looks like this:
<form name="form_" method="post" id="contactUs" action="myPage.aspx" enctype="text/plain">
<input type="text" class="acc_input" name="mail" id="emailadress" />
<input type="text" class="acc_input" name="name" id="firstName" />
<input type="button" value="Send" />
</for... | stackexchange/codereview |
I am currently coding in C and I have lots of printfs so that I can track, at some times, the flow of my application. The problem is that some times I want more detail than others, so I usually spend my time commenting/uncommenting my C code, so I can get the appropriate output.
When using Java or C#, I can generally s... | stackexchange/codereview |
For parsing an xml response using TagSoup I am extending the DefaultHandler, now I have the problem that it ignores an attribute with a qualified name in the method;
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
The element looks as follows;
<elemen... | stackexchange/codereview |
I need to get an automation macro like thing within our desktop application. The desktop app will probably be in VB.NET or C#.net.
The reason is to enable the user to record and replay certain tasks that they'd like to automate. Something like macros within office apps and visual studio.
The first thing that comes to m... | stackexchange/codereview |
I have a custom keyboard with toolbar on the top. But i want to get default keyboard because i only want to use the custom keyboard in one view. In other view, i want to use default keyboard.
- (void)keyboardWillShow:(NSNotification *)notification {
for (UIWindow *keyboardWindow in [[UIApplication sharedApplica... | stackexchange/codereview |
I can't figure out how to install the Oracle/Python adapters to make this work. Whenever I try to install cx_Oracle I get the following error:
python setup.py install ~VIRTUAL_ENV/build/cx-oracle
running install
running bdist_e... | stackexchange/codereview |
I'm having a really hard time finding any examples that are close to what I'm doing, or I'm simply not understanding the examples I'm finding.
I have a research database that contains a persons responses to multiple questions at different points in time. 'Admin#' below represents which "administration" of the test th... | stackexchange/codereview |
I am trying to do something fairly easy to understand with WCF data services, but can't find how to do it.
I have 3 table, Customer, Product and a joint table Customer_Product linking the two other tables (a basic n to n relationship):
Customer <= Customer_Product => Product
I want to get a customer and its products in... | stackexchange/codereview |
I want to call a function from a C dll. This dll was created by compiling on ubuntu/mingw. I want to use this dll functions in C#. How can I do this?
| stackexchange/codereview |
@UiHandler("addDynamicTextboxbutton")
void addMoreTextbox(ClickEvent event) {
textboxplaceholder.add(new TextBox(),"textboxplace");
}
when addDynamicTextboxbutton button is clicked, this method is executed and new textbox is created. how to have another button, so that when click, will get all the values ... | stackexchange/codereview |
I'm using this to populate a dropdown:
$result = mysql_query("SELECT user from `users` order by user asc") or die(mysql_error());
echo '<select name="user" class="user">';
while ($row = mysql_fetch_array($result)) {
echo "<option value=".$row['user'].">".$row['user']."</option>";... | stackexchange/codereview |
I have to do some reaserach about this topic - LSDM, but only thing I could find is purchasable PDF in this site: Website
I would like to know if there is anybody willing to share this document or give some resource that can be viewed freely.
| stackexchange/codereview |
Sometimes we have one application which uses multiple database schemata.
E.g. There is a table company1.someTable which looks exactly like company2.someTable. But some users have access to company1., others to company2. oder both.
Is there an easy way to tell grails to work with a database like this and let the user s... | stackexchange/codereview |
Possible Duplicate:
C++ Returning multidimension array from function
how can i return two dimensional array from function in c++?
| stackexchange/codereview |
I am trying to write a conditional batch insert based on Java Parameters, for example
List<Object[]> params = new ArrayList();
params.add(new Object[]{1, 2, 3});
getSimpleJdbcTemplate.batchUpdate(
"INSERT INTO SomeTable( colA, colB, colC)" +
" VALUES(?, ?, ?)" +
" WHERE EXISTS ( // some condition )", params);
This ... | stackexchange/codereview |
I have good experience in sybase and have started looking into oracle in free time.
Most of the sybase procedures that i have worked with have temp tables and it makes sense to join two or more temp tables get a result set.
Question:
Is there a way to join two or more cursors like a logical table.
Something like:
SELEC... | stackexchange/codereview |
I use JDBC to retrieve Oracle database by ‘IN’ statement. But there are too many expressions, about >1000.
It looks like:
SELECT * FROM MyTable WHERE name IN (?, ?, ?......); --More than 1000 question signal
It causes ‘syntax error or access rule violation’ which means ‘maximum number of expressions in a list is 1000... | stackexchange/codereview |
I'm building a custom Audio Player. The whole thing drives a MediaPlayback component. I have a scrubber set up that moves with the progress of the song. I want to be able to click and scrub with it though. Currently I have it set to set the playheadTime equal to the percent distance the slider is dragged to times the t... | stackexchange/codereview |
is not an object" in the safari browser. The entire code is
function addLinks () {
var p0 = document.getElementById('Pic0').onclick = addLinkAction;
}
function addLinkAction () {
var el = document.getElementById('vid0');
el.style.display = "block";
el.play();
}
The functions work fine but safari cont... | stackexchange/codereview |
I would like to improve the load of my activities in my Android app.
Every activity is either a GridView, a List or a Gallery.
My questions is : How can I load only what's displayed ?
Let's say I have to display a list of 500 songs (The same with a grid of 500 pictures), and each cell includes the Thumbnail, title and ... | stackexchange/codereview |
hi im trying to make a function in haskell that takes a number a makes a partion of it using lists i.e. for number 4 it would create [[1,1,1,1],[1,1,2],[1,3],[2,2],[4]]. I was thinking of using list comprehension for this where it would create list x and then create further lists using numbers from [1...n] (n being the... | stackexchange/codereview |
I have an assignment which is to import mpp file into database via ASP.NET (C#).
Can anyone please advice me on this matter.
Any help is very much appreciated.
Thanks.
| stackexchange/codereview |
I got a XML file which is full of utf-8 strings from French. Some messages are as follows:
"N'oubliez pas d'écrire le nom exact de le professeur, sans utiliser des abréviations"
As you can see, accents are failing. I tried to convert the file with iconv but seems that is not recognised as UTF-8 (when the file is usin... | stackexchange/codereview |
I've created an installer Exe file with InstallAnywhere. This Exe installs some files. This Exe also shows info about current version number. Later I want to change some of the installed files via patches. current version number gets changed after applying patches. How can I show this new version number without re-crea... | stackexchange/codereview |
I'm building a web app dealing with online file storage/access. In my local environment I used .htaccess to set
php_value upload_max_filesize 100M
php_value post_max_size 101M
After testing the app on a variety of servers I found that not all setups allow you to use the .htaccess method of modifying the ini settings.... | stackexchange/codereview |
how to install Freetype library modules.
| stackexchange/codereview |
i need trace the route of an ip, actually i am using the TIdTraceRoute indy component from the idTraceRoute unit.
IdTraceRoute1:= TIdTraceRoute.Create(Self);
IdTraceRoute1.ResolveHostNames:= True;
IdTraceRoute1.ReceiveTimeout:= 5000;
IdTraceRoute1.OnReply:= TraceRoute;
IdTraceRoute1.Host:= 'www.google.... | stackexchange/codereview |
I have problem with creating border for an icon in JLabel. I have JPanel in which I set it into GridLayout. I added Jlabel on the JPanel. The size of the JLabel were according to the size of the icon. However when I tried to set the border on the icon, it created border according to the size of the grid and not the si... | stackexchange/codereview |
Next week I am getting an exam on using basic commands and shell scripting using terminal in Ubuntu. Please help me out with two quick questions:
-Does a practice environment for the Ubuntu terminal exist? I don't want to dual boot with Linux, so I want to find somewhere I could practice using some basic terminal comma... | stackexchange/codereview |
My code is dispalying the array fine. How to display the number of times the given integer is repeated and display the subscript locations where it is repeated?
#include <iostream>
#include <cmath>
#include <iomanip>
#include <ctime>
using namespace std;
int main()
{
int table [10][10]={{0},{0}};
int repeat=0;... | stackexchange/codereview |
I have an error that goes like this
In file included from Level.hpp:12,
from main.cpp:4:
Corridor.hpp: In method `void Game::Corridor::update()':
Corridor.hpp:41: invalid use of undefined type `class Game::Level'
Corridor.hpp:13: forward declaration of `class Game::Level'
Corridor.hpp:42: invalid u... | stackexchange/codereview |
I have been looking into why WYSIWYG editors are bad for content creation. The most common reason given is that they output incorrect html. But what if I use editors with reduced functionality?
My requirements are only the ability to italicize, make text bold, create ordered/unordered lists and (maybe at a later date) ... | stackexchange/codereview |
I have a hefty PHP script.
So much so that I have had to do
ini_set('memory_limit', '3000M');
set_time_limit (0);
It runs fine on one server, but on another I get: Out of memory (allocated 1653342208) (tried to allocate 71 bytes) in /home/writeabo/public_html/propturk/feedgenerator/simple_html_dom.php on line 848
Bot... | stackexchange/codereview |
Is there anyway to highlight each selected row and keep it highlighted until the user reclicks on the item to unhighlight it? And can the user select multiple rows?
Thanks!
| stackexchange/codereview |
I'm currently doing some proof of concept for the test team to test our WPF app. Everything works great except for when we try to do Assertions on items in the Grid.
We are currently using Telerik GridView for WPF 4, which obviously isn't a standard WPF control. Have anyone used any UI Automation Test tools that work w... | stackexchange/codereview |
I am developing a webflow based workflow and during the initialisation action I am trying to populate a set of command objects from a single domain class, with each command object containing just a subset of the fields available in the domain class... there's a LOT of fields you see..
What I'm struggling with is how to... | stackexchange/codereview |
I've been trying to get a basic app working that doesnt use an XIB. It simply should load and draw a button.
At the moment the screen just appears white with apparently nothing on it.
In my delegate I pass across to my viewController Class.
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOption... | stackexchange/codereview |
ie:
boolRef = (CFBooleanRef)CFDictionaryGetValue(descriptionDictionary, kDADiskDescriptionMediaRemovableKey);
if (boolRef) {
CFRelease(boolRef); // do i need this code?
}
| stackexchange/codereview |
i am making an android APP, and i need to have a submenu, permanent, same menu in all my windows. This menu haves the navegability between the parts of my app, (googlemap view, invite, config and tabhost with listviews)
i can do a menu that only changes the superior part of the window? i mean, like html frames
how i ca... | stackexchange/codereview |
in 2000 I could do this DTSTransformStat_OK. Is there an equivalent of this in BIDS 2008?
| stackexchange/codereview |
I'm allowing users of my application to run snippets of C# to be able to directly manipulate certain objects in my assemblies without me having to write a big scripting interface layer to explicitly expose everything.
This code will be injected into a dynamically compiled assembly, so I can control the assembly itself,... | stackexchange/codereview |
I am writting a wpf application using C# (VS2010) and when my application runs , the input language is taken from the system input language which is English.
I want my application to change the input language automatically without having to press (Shift + Alt)
Can you tell me how to do that please?
Another question, ca... | stackexchange/codereview |
I've the following question:
This is my Create-table:
CREATE TABLE `mod_users` (
`u_id` int(11) NOT NULL auto_increment,
`u_date` datetime NOT NULL,
`u_type` int(1) NOT NULL default '',
`u_adddate` datetime NOT NULL,
PRIMARY KEY (`u_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
u_type contains an int (doh) wh... | stackexchange/codereview |
I hope to create thumbnail from an UIImage/UIImageView.
There are some undocument solution:
http://ofcodeandmen.poltras.com/2008/10/30/undocumented-uiimage-resizing/
..
I wonder if there is a documented way to create thumbnail from UIImage/UIImageView?
Thanks
interdev
| stackexchange/codereview |
I have a db with +- 60000 records in, I need to obtain the last 10 records entered, can this be done via postgres? I was thinking off maybe setting the offset to 50 990 and the limit to 10 or something similar, but not sure if this will be efficient?
| stackexchange/codereview |
I'm attempting to modify some PHP to suit my needs and I'm having a bit of trouble.
I've created the variable $mutitag to hold the names of some variables from which I need to fetch some values.
I made a foreach loop to set $tv as each value of $multitag, fetch the values from the database, and return them into $get_t... | stackexchange/codereview |
I have a ListActivity with my customized adapter and inside each of the view, it may have some buttons, in which I need to implement OnClickListener. I need to implement the OnClickListener in the adapter. However, I don't know how to call the function like startActivity() or setResult(). Since the adapter doesn't exte... | stackexchange/codereview |
I'm fairly new to the whole web programming stuff and have the following problem:
I have 2 webapps, one a axis web service and another one is a spring application. Both should get a set of data from a library which contains the data in memory. This data is large so copying the data for each app is no option.
What I did... | stackexchange/codereview |
I have embedded you tube video into my project.The problem which i'm facing is that when i double click on that video it opens in new tab.What i want is that when i click that video it should open in full screen.
Thanks
| stackexchange/codereview |
I am building a WPF application in C# using VS2010
I have a listview that contains items from a database , and each item contains a field called (Name) and another field called (Time) .
Back in the database , each item has a third field called (Description) too ...
Now what I want is :
When I choose an item from the li... | stackexchange/codereview |
I am wondering about the best way to store a hotkey in preferences in a Coco application.
| stackexchange/codereview |
I'm new to socket programming, I'm just starting to play around with a multi user server script. The problem comes with reading a socket, if my response is
"A, something or other"
socket_read only gives me "A"
Any idea why this may be occuring?
if (false === ($input = socket_read($clients[$i], 2048, PHP_BINARY_READ))... | stackexchange/codereview |
I am now on the road to learn Python (not the first time I wanted to get this done) now I am standing in front of a decision which I am not able to make so easily
Which Version should I use?!
I found that question was asked about a year ago and Python 2.6 was chosen (more or less) now whats the status quo now ?!
I am r... | stackexchange/codereview |
I have a mysql database,I want to have an xml file in the end like so:
<user>
<column>id</column>
<column>name</column>
<column>password</column>
</user>
<dept>
<column>id</column>
<column>name</column>
<column>code</column>
</dept>
No doing the output formating part I'm sure i can do with awk or somethin... | stackexchange/codereview |
My magento installation at http://parisera.com shows the homepage with different template (Modern) while the inner pages use the template that I need (default).
Where is the control to change the homepage template?
| stackexchange/codereview |
I need a toolkit to implement SOAP requests and responses in a C production application. I've looked into gSOAP (no support), Apache Axis (not fully implemented according to their site). Has anyone been able to implement SOAP responses/requests over HTTP or TCP/IP?
| stackexchange/codereview |
I'm using the following code to close an InputStream and an OutputStream from a connection to a server:
try {
if (mInputStream != null) {
mInputStream.close();
mInputStream = null;
}
if (mOutputStream != null) {
mOutputStream.close();
mOutputStrea... | stackexchange/codereview |
I want to modify the code for the Order/Sales table in the admin interface and the PDF generation code without alterting the files in the core directory. How do I do this? I understand that I have to create a new module that uses the same paths as the files I want to overwrite, but I'm not sure what else I have to do..... | stackexchange/codereview |
I have a table A and a table B. A has a foreign key to B on B's primary key, B_ID.
For some reason (I know there are legitimate reasons) it is not using an index when I join these two tables on the key.
Do I need to separately create an index on A.B_ID or should the existence of a foreign key provide that?
| stackexchange/codereview |
I have a project that is composed of two different modules. I do not have control over the pom files of these modules and can therefore not change them. I have full control over the project pom file. Project id not defined as a parent in the modules.
Folder structure:
project
+ module1
+ module2
As part of a work a... | stackexchange/codereview |
I have run into a rather odd problem, my app crashes if I try to run [webView loading]!
The BOOL is even declared in the docs, but it throws an exception when trying to access it.
This is really annoying, since without this BOOL, I can't work out wether or not the webView has really finished loading…
(running iOS 4.1)
... | stackexchange/codereview |
I am successfully making a CMTime with following code:
endPoint = CMTimeMake([mp currentPlaybackTime], 1);
The current position, which originally was a float value, of the movie in my MPMoviePlayerController is given back as a CMTime in seconds, which is not bad.
But how I can get this position in e.g. in milli second... | stackexchange/codereview |
Possible Duplicate:
How do I count the number of occurrences of a char in a String?
I am looking to count the occurrences of a specific character, for example "i" that occurs in the input.
Example, from standard input:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
This returns 6, because there are 6 occur... | stackexchange/codereview |
Since every compiler has its own version of thread local storage, I ended up creating a macro for it. The only problem now is GCC (with pthreads turned off), which gives me:
"thread-local storage not supported for this target"
Fair enough, given that pthreads are actually turned off in this case. The question is, is th... | stackexchange/codereview |
I am learning to work with the MSN Messenger API.
After adding the tlb file, and copy/pasting some example code, I noticed that in the Visual c++ IDE it's telling me about an undefined identifier.
Though once I compile the code, everything works fine.
I see the problem: The problem is that the IDE (the intellisense, mo... | stackexchange/codereview |
I have an C# application. I can debug the application and Visual Studio C# writes de debug files to bin/debug.
When I use "Built Solution" to compile the application, C# shows no errors and says "Build succeeded"... but the bin/release directory remains empty.
All other applications I compile don't have this problem.
... | stackexchange/codereview |
I have a program that has a ton of sensors producing data at a fairly high rate, and consumers that need to consume it. The consumers consume at very different rates.
Since I am using IObserver/IObservable, the trivial solution was to simply create a Task for each event and wrap the OnNext() call and the data in a lam... | stackexchange/codereview |
I am reading a simple text file which contains single line using filestream class. But it seems filestream.read prepends some junk character in the beginning.
Below the code.
using (var _fs = File.Open(_idFilePath, FileMode.Open, FileAccess.ReadWrite, FileShare.Read))
{
byte[] b = new byte[_fs.Length];
UTF8... | stackexchange/codereview |
I am in the middle of optimizing the indexes in an SQL Server 2008 DB I'm working on. Right now I'm on the "central" table.
This table is joined on 7 columns. It also has a primary key (of course), plus a datestamp that I indexed in DESC order. Due to the nature of the joins, I believe 6 indexes is required (some of th... | stackexchange/codereview |
I have been working on the problems presented in Python Challenge. One of the problems asks to sift through a mess of characters and pick out the rarest character/s.
My methodology was to read the characters from a text file, store the characters/occurrence as a key/value pair in a dictionary. Sort the dictionary by va... | stackexchange/codereview |
I have this
NSDate *date1Val = date1.date;
NSDate *date2Val = date2.date;
NSTimeInterval interval = [date2Val timeIntervalSinceDate:date1Val];
int hours = (int)interval / 3600; // integer division to get the hours part
int minutes = (interval - (hours*3600)) / 60; // interval minus hours part (in seconds) d... | stackexchange/codereview |
I have a gridview that normally loads when a user clicks a View Report button. However, I now want to show the gridview while the page loads.
I tried calling the following method from the Page_Load event:
protected void btnView_Click(object sender, EventArgs e)
{
try
{
grvReport.DataB... | stackexchange/codereview |
I am trying to develop a web based map application where the user can interact with the map. But I am new to this field and do not have much idea about how to approach this. Basically I want to use a static map created by me, so I think google map API s may not be used in this case. My development platform is unix. Can... | stackexchange/codereview |
I would like to load a custom file put as a resource file in my silverlight application, but the FileStream doesn't works (since I must stay in a partial trust environnment).
Is there any solution to load my file? (it is a binary serialized data).
UPDATE
Answer found :
I put my file as a "Resource" (not embedded neith... | stackexchange/codereview |
Hi
I have assigned 20 products to a category called Phone, I would like to create a module to retrieve these products and displayed as a list format. Could someone tell me how to do this?
thanks
| stackexchange/codereview |
I've built a web part and after several deployments to a specific site, SharePoint suddenly won't give the option to deploy to a specifi site, a message is immediatelly displayed that the solution is deplyed globally.
I don't know what I did to cause this. I've been useing stsadmn -o addsolution method, except once whe... | stackexchange/codereview |
I have a MySQL field called description and a field called specs. They need to be the same, but I only have specs filled out.
Can I do something like: Update products set description = specs;?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.