instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Is there any reason why MUL operator is only in single operand form?
IMUL operator can be in three different forms (with one, two or three operands) and this is much more convenient. From the technical point of view I don't see any reason why MUL operator can't be in two/three operands form.
| stackexchange/codereview |
I'm not really sure how to go about this. I created a generic class to open reports up for my application. The reports are contained in another DLL that is not referenced as an embedded resource though.
If I reference the DLL I can just do:
Viewer.LocalReport.ReportEmbeddedResource = "SomeLibrary.ReportName.rdlc";
Howe... | stackexchange/codereview |
Any ideas for how to convert an openoffice.org text document
into spreadsheet format, programatically, if possible?
| stackexchange/codereview |
I have bunch pages and I need to validate data there. If culture for example "es-ES" I should use one validation logic, if culture "en-US" than another validation logic. For example I need validate phone number. Minimum length is 11 digits. For other culture 9 digits. How can I do this? Some patterns or other decision... | stackexchange/codereview |
what is the regular expression to validate a text box to allow "united states social security number" and also the text "- -" using regular expression validator.
| stackexchange/codereview |
So assume you have two clients, C1 and C2, each client has a GUID associated with it.
How do you, when you receive a message on C2 that supposedly comes from C1 (by checking the GUID and seeing that it matches the GUID of C1), but since the message is not guaranteed to have come from C1 (C3 might just have sent the mes... | stackexchange/codereview |
I'm developing a new Spring+JPA2/Hibernate+Wicket project and am wondering where some of the configuration files should go?
applicationContext.xml
I've seen this both in src/main/resources/META-INF and just src/main/resources/
persistence.xml
Most of the time, I've seen it in src/main/resources/META-INF. In my case, it... | stackexchange/codereview |
I have some frames in my presentation, where I want to get rid of my standard Headline/Footline since i need the space for figures, which i include using \includegraphics. These figures take the whole space. Now i want to inset the frame number at the bottom right corner.
Note. I use the standard theme with a custom h... | stackexchange/codereview |
I want to display all the pages the user is admin of with the new Graph API in Facebook. What I do is:
$queries = '{
"page_admin_ids" : "SELECT page_id FROM page_admin WHERE uid = ' . $uid . '",
"page_name_and_id" : "SELECT name FROM page WHERE page_id IN (SELECT page_id FROM #page_admin_ids)"
... | stackexchange/codereview |
I have a DataGrid in a UserControl and I have added a ContextMenu to the DataGrid.
The XAML is as follows:
<sdk:DataGrid ItemsSource="{Binding Path=GridSource}">
<sdk:DataGrid.Columns>
<sdk:DataGridTextColumn Binding="{Binding Path=Name, Mode=OneWay}" Header="Name"/>
<sdk:DataGridTextColumn Binding=... | stackexchange/codereview |
u=User.find(:first)
u.to_s
=> "#<User:0x9b017ac>"
how can i output User this class string
| stackexchange/codereview |
Basically in the treeview, I have a list of items, if the item is of type "Group", then I can add / drag drop items into it.
How can I achieve that in code? I tried DragEnter, DragOver events and setting the allowdrop property to false if the target item is not a group object but to no avail. Any advice please?
Cheer... | stackexchange/codereview |
Can someone exlain the view hierarchy in iphone/ipad development?
I want to know what is the "root" element I need to display a textBox on the screen.
I also would like to know how I can populate a UITableViewController subclass without having to use a NIB.
Is the minimum components is:
Window
UiViewController ... | stackexchange/codereview |
Can you please help me here...
I wants to create a text file through application (c#-.Net2005)and need to update it for every sucessful transaction...I created text file and also updation is sucessful but new line is gets added as last line...BUT I want newly added line should be a TOPMOST line in the text file...Can y... | stackexchange/codereview |
I have come accross many solutions similar to what I need but I have tried changing them and have had no luck, it seems to be ignoring them sometimes and not other times.
Essentially I have a site which I need to have https on only on certain pages or all php pages if that is easier but not for friendly urls e.g. /wome... | stackexchange/codereview |
Datagrid control is missing in Toolbox. I tried to add it from WPF components, but it is not listing there also. And iam using 3.5 framework
| stackexchange/codereview |
Trying to set up my shipping rates as follows:
If the total shopping cart is under 1KG in weight then the shipping will be £3.68
If the total shopping cart is over 1KG in weight then the shipping will be £6.68
If the total price of the cart is over £100 shipping is free.
I’ve managed to hack this all together using a f... | stackexchange/codereview |
I am inserting data into SQL 2005 using SQLXMLBulkLoad.SQLXMLBulkload.3.0
My data table has following column:
objDataTable.Columns.Add("TaskDateTime", System.Type.GetType("System.DateTime"))
My bulk insert schema has following definition:
<xsd:element name="DepartureTime" type="xsd:date" />
(Using xmlns:xsd="http://www... | stackexchange/codereview |
I've got a simple ASP.Net form with txtBox and btn.
User click btn, which adds text to an ASP:TextBox in a postback (its adding a known "starter text".
After the postback I'd like the focus to be set to the end of the text in the textbox.
If I call Page.SetFocus(...) or txtBox.Focus() then the txtBox gets focus, but at... | stackexchange/codereview |
Please let me know is why taxonomy is important for website development? What are the important considerations for taxonomy development? Many thanks,
| stackexchange/codereview |
I am working on application wherein I need to create a List of lists. For example
EmployeeGroup1 GroupName, GroupId, JobType
Empployee1 Name, Designation
Empployee2 Name, Designation
Empployee3 Name, Designation
Empployee4 Name, Designation
EmployeeGroup2 GroupName, GroupId, JobType
Empployee5 Name, Designation
Empploy... | stackexchange/codereview |
How can convert time in seconds to standard time format in rails.For example 1971 seconds
should be displayed as 0:33:25
| stackexchange/codereview |
I want to customize the DatePicker dialog which i am using in my Android application so that it allows the user to select only the current and the future dates. Is there any way this can be done ?
| stackexchange/codereview |
Currently I am using the below code to start my application (which is working):
ProcessStartInfo myApp = new ProcessStartInfo();
myApp.FileName = "cmd.exe";
myApp.Arguments = @"/K D:\dir\file.bin additional args to raise app";
myApp.WindowStyle = ProcessWindowStyle.Hidden;
myApp.CreateNoWindow = true;
try
{
Proces... | stackexchange/codereview |
I've written a scheme file in DrRacket/Scheme and I have my .rkt file. I need to now compile what I've written with Bigloo. I have Bigloo installed, but I'm not sure how to use it.
Anyone know how?
| stackexchange/codereview |
I'm trying to fetch data from Facebook, using the graph API.
The request I make looks like this: http://graph.facebook.com/<page_name>/, it returns basic data about the page. If I do request for: http://graph.facebook.com/<page_name/feed/, I get a json with data from this page's feed.
There are some pages that require ... | stackexchange/codereview |
I have 2 listviews in an asp.net page. Both use a datapager with a dropdown (showing X of X pages, each listview can show just 5 records in a single list page).
Based on selection in the first, I show some items in the second listview and I also have ability to add new items in the second one.
When I add new items in t... | stackexchange/codereview |
I have a window with the following properties set int he .rc file:
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
It has an associated class (derived from CDialog) and when I instantiate it, then call that object's DoModal() on
it it is not really modal - I can click on the "paren... | stackexchange/codereview |
I am using mod_rewrite for clean urls but I'm just having a small problem.
The line in particular is:
RewriteRule ^events/(.*)$ fe_events.php?event_url=$1
This works. I can go to url.com/events/something_or_other and it works as expected. The problem however is then if I just go to url.com/events it doesn't work - I'v... | stackexchange/codereview |
I was wondering if there was an inexpensive way to get the width and height of a JPEG after loading an array of bytes.
I know JpegBitmapDecoder can get the JPEG's pixel width and height but it loads alot of information as well, which I assume would be an expensive operation.
Is there another way to get the width and he... | stackexchange/codereview |
I've found a work-around, but I am completely perplexed by an issue I ran into with Adobe Air and SQLite. An UPDATE query that I believe worked correctly earlier in the development process suddenly started failing with the error details:'could not convert text value to numeric value.', operation:'execute', detailID:'23... | stackexchange/codereview |
I was left a comment that many-many associations are to be avoided, but I cannot find the original comment/user who left me this info. So I'm asking the community, are many-many associations to be avoided, if so why, and what is the alternative?
example:
A restaurant offers many types of burgers which can be dressed wi... | stackexchange/codereview |
The ways to reduce startup time of Java and Scala applications have been already discussed here and here. One of the solutions suggested there was to use client-server approach with either Nailgun or a simple hand-written server communicating through a TCP socket with netcat.
On the one hand, Nailgun is designed for th... | stackexchange/codereview |
i hava created the ajax XMLHttpRequest request for getting the data dyanmically ,
here is the code
var XMLHttpReq;
function createXMLHttpRequest() {
if (window.XMLHttpRequest) {
XMLHttpReq = new XMLHttpRequest();
} else {
if (window.ActiveXObject) {
try {
if(XMLH... | stackexchange/codereview |
In the past I have used Python for backend stuff along with Django for frontend stuff, but I don't know how well those two work with Android.
Can anyone recommend a good way to go about making server-side software that works well with Android?
Please take into account that I also want a web application as a frontend, s... | stackexchange/codereview |
http://jsfiddle.net/pahnin/rdgbq/16/ look at this fiddle.
In this fiddle the animate function is running late and looking weird also the first time when I click the logo the animate doesn't work
Any suggestion please . .
| stackexchange/codereview |
I have a XBL component which creates a checkbox control in javascript. Value is set in javascript during the component initialization. Component works well when not used inside repeat but inside repeat when I try to move rows up or down XBL control doesn't change the state.
xxforms-iteration-moved event is fired on the... | stackexchange/codereview |
The code worked in iOS 3.2 and in 4.2 it keeps crashing.
Here's the line that it crashes on.
NSArray* address = [NSArray arrayWithArray:[[[access.filteredResults objectAtIndex:[indexPath row]] addressArray] objectAtIndex:0]];
2010-11-04 12:20:03.060 ContactMapper[2211:207] -[__NSCFDictionary getObjects:range:]: unre... | stackexchange/codereview |
I have an Oracle view that uses a table that I cannot find anywhere. However, I can still query the view, which I would have thought would be impossible.
Are the view contents cached somewhere, from when the table still existed, or am I simply not looking hard enough for the table?
Just to be clear: I've looked in ALL_... | stackexchange/codereview |
I'm attempting to build ruby 1.8.7 on OS X. This is only for one project so I need to build from source and not use a package manager because I don't want to overwrite the older build of ruby I use for everything else.
Ruby 1.9.X supports --with-arch in ./configure but 1.8.7 doesn't seem to.
Am I missing something obv... | stackexchange/codereview |
I'm setting up Prawn right now and for one param it wants to know the img location.
In their case they wrote :
img = "#{Prawn::BASEDIR}/data/images/card_cutout.jpg"
But that points to a local gems folder. How can I make this from the controller point to card_cutout.jpg in my public/images/ folder.
I tried using an abs... | stackexchange/codereview |
I usually create conditional rules with shipping to assign different costs for:
national shipping (a specific country is selected)
and international shipping (the same country is selected but a NOT is added to the condition)
I have now to assign different shipping costs according to Europe / Not Europe. A solution wo... | stackexchange/codereview |
Is it possible to instruct Fiddler to only show me traffic directed to a specific host name?
In other words, can Fiddler traffic be filtered for Host?
| stackexchange/codereview |
I know, this probably wins the award for longest and most confusing question title. Allow me to explain...
I am trying to refactor a long-running batch process which, to be blunt, is extremely ugly right now. Here are a few details on the hard specifications:
The process must run several times (i.e. in the tens of t... | stackexchange/codereview |
I need an example of how to code a jQuery autocomplete to populate product_id while showing the product_name calling an ajax page "remote.php"
<input name="product_name" id="product_name" type="text" value="" />
<input name="product_id" id="product_id" type="hidden" value="" />
remote.php:
$partial = addslashes($_P... | stackexchange/codereview |
This is a really dense question, but I'm tired.
I need a regular expression that can do in a validator control that will catch any non-alphanumeric characters. In other words the regexp needs to match if the string contains only a-z, A-Z or 0-9.
I'm aware that it's quite easy to write a regular expression that will ma... | stackexchange/codereview |
In the doReplace function below, how would I determine if the instance of $keyword is not a child of any of an array of named html tags (h1, h2, h3, h4, h5, h6, b, u, i, etc) from the replacement point where the keyword appears in the content? I don't care to check for nested tags at this point.
I'm thinking that some ... | stackexchange/codereview |
I really like how symfony handles routing (internal URIs and external URLS, especially the "reverse lookup" side). I have been trying to implement a similar (standalone) routing as an exercise (and possible use in the future). However, after trying for hours, I am no-where close. :(
I can see that symfony uses a tokeni... | stackexchange/codereview |
I'm trying to insert a link into an empty < a > that has the id "popup". The link will open the current page in a popup box (with parameters I'll define later). I'm trying to string together the HTML needed to make a hyperlink plus the JS variable 'window.location.href' -- how can these be strung together? i.e. how do ... | stackexchange/codereview |
All I did is to run below script:
D:\Tools\MongoDb\bin\mongod.exe --dbpath D:\MongoDb\data\
Then I got exception:
Error connecting to the service Control Manager: Access is denied. (5)
I was using administrator account to operate this, I already created folders related to the script.
And I didn't experience issue like... | stackexchange/codereview |
I am logged in as the dba account and I want to create a view in User1's schema, but selecting data from User2's.
I used the following query:
CREATE OR REPLACE VIEW User1.NewView (Column1) AS
SELECT DISTINCT Column1 FROM User2.Table
and I get the following error:
SQL Error: ORA-00942: table or view does not exist
0094... | stackexchange/codereview |
In an SSIS data-flow task, I'm using a Multicast transform at a key part of the flow which I want to hang a File Output destination off.
This, in itself, is no problem to do. However I only want output in the file if I enable it; i.e., I'd be using it for debugging the data if the flow fails unexpectedly and it's not ... | stackexchange/codereview |
In my project I'm asking the user for some measures, prices and weights. I want to store data as a two decimal value. I guess I should be using DecimalField instead of FloatField, because I don't need much precision.
When I print values in my templates, I don't want zero non significant decimals to be printed.
Exampl... | stackexchange/codereview |
Some time ago (like 3 or 4 years) I heard about ability to generate JavaScript (client) code based on C#.NET source code. I don't remember details, probably that was for validation purposes only...
If you know something about that, could you please remind?
Thanks a lot.
P.S. Any thoughts are welcome.
| stackexchange/codereview |
I´m trying to use my webservice via the jersey client api.
This is my webservice:
@Path("/myresource")
@Component
@Scope("request")
public class MyResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
@Path("test")
public String test(){
return "test";
}
}
This is my Client:
public class MyClient {
public static void ... | stackexchange/codereview |
Basically I want to send a block of xml as a parameter to my ms sql 2005 db, which gets parsed and inserts row data.
I've seen plenty of examples of storing xml in the database, or retrieving table data as xml, but no examples where xml is used to insert tabular data.
I have a method in c# which calls my stored proc in... | stackexchange/codereview |
I need to get the latitude and longitude of all the transportation locations. Google Earth has a transportation layer, can I export this layer information? Specifically I am looking for all the airport locations in the United States and to do some stuff with it in Matlab.
| stackexchange/codereview |
I want to escape brackets in heredoc (in php),
for example,
$str = <<<EOD
hello <hello inside>
EOD;
but when i echo this string, i just get "hello" as output
| stackexchange/codereview |
I'm interested in sending email notifications from a laboratory instrument (implemented on an ARM9, C/C++, RTOS). From what I understand, I would need to configure the SMTP gateway, username and password. The instrument has a limited UI, but I think we could manage it. Do solutions like this work? It seems like it woul... | stackexchange/codereview |
I am trying to apply negation on regular expression in .Net. It does not work. When string has valid last name reg ex should not match. For invalid last name it should match. Valid name allows only charecters, spaces, single quote and length between 1-40. Somebody suggested to parse the XML, I don't want to do that. I ... | stackexchange/codereview |
I have installed the Java plugin for Eclipse Galileo on Windows. However, i don't know how to choose the sdk in Eclipse. any idea? Thanks
| stackexchange/codereview |
I'm using 2 similar LINQ queries to return a result, the only difference is the where clause (&& s.OptIn == "Yes"). Is there a way to execute this with only one query?
Instead of having a result of
A 2
B 3
and another result of
A 1
B 1
I want to have
A 2 1
B 3 1
Here's the LINQ:
var result = fr... | stackexchange/codereview |
I have a solution with the main project, helping project and installation project
When I build or rebuild the main project I get:
Build: 1 succeeded or up-to-date, 0 failed, 1 skipped
Now since the helping project generate the following message:
Build: 1 succeeded or up-to-date, 0 failed, 0 skipped
I don't understand... | stackexchange/codereview |
There are two tables - incoming tours(id,name) and incoming_tours_cities(id_parrent, id_city) where id_parrent is id from first table.
Here is the query i wrote
SELECT t.cities
FROM `incoming_tours` t
JOIN `incoming_tours_cities` tc0 ON tc0.id_parrent = t.id
AND tc0.id_city = '1'
JOIN `incoming_tours_cities` tc1 ON tc1... | stackexchange/codereview |
i have an interface that defines some methods and i have N classes that implement it. How can i register all the classes found in all the loaded assemblies with autofac?
| stackexchange/codereview |
Possible Duplicate:
How to increase my “advanced” knowledge of PHP further? (quickly)
I have just finished learning the basics of PHP and MySQL and I need some kind of practical experience to improve my skill or some kind of professional job. Any idea how to do this and expand my knowledge as a PHP developer?
| stackexchange/codereview |
How do I use a ServiceHostFactory with multiple bindings?
This is what I've tried and I keep getting issues, one after another error.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using... | stackexchange/codereview |
We have an installed application (MSI), and we try to remove it using the following command line option:
MsiExec.exe /x{code} /qn /liwearucmopvx+ C:\Log\UnInstall.tra
However sometimes (no clue why) it generates the following errors:
MSI (s) (BC:F8) [02:02:50:031]: Note: 1: 1725
MSI (s) (BC:F8) [02:02:50:031]: Note: ... | stackexchange/codereview |
I have a the following setup
m_handsets = From p In RL.App.TComEntities.tblTelephoneNumbers _
Where p.companyId = m_CompanyID _
Select p
m_handsets = DirectCast(m_handsets, ObjectQuery(Of RL.TelephoneNumbers)).Include("tblCa... | stackexchange/codereview |
I'll try to ask this correctly. This has got me licked.
I have a script online that will bring up items according to a search on let's say, page1.php. The results come from a table called items. The results list has links to the items that look like this: a href=\"/" . "boats/$name/" . "$p". $line["PID"]. ".html\"
In a... | stackexchange/codereview |
I'm trying to move some old code from hand-made persistence to Hibernate. The issue here is a peculiar mapping where the target entity type/table is defined by a column value.
Example database table:
Table "Relation":
id - my primary key
parentType - a char that specifies the type of parent (e.g. 'I' meaning an object... | stackexchange/codereview |
Is there a way to dynamically set a div width / make the width relative to the content - using jQuery? It has to be with a numerical value because otherwise, it doesn't work with the horizontal website layout I'm dealing with...
The div will only contains images with a defined width values.
Thanks.
| stackexchange/codereview |
I have created a form that inserts the entered data into the database. It works perfectly except when I put SHA1('$password') into the INSERT INTO VALUSE tag. If I put only '$password it works fine.
Putting SHA1 displays - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server vers... | stackexchange/codereview |
I have to return data fetched from MySQL table into a php file as JSON. Here is my code to connect to mysql & get data from it. How could now I return it as JSON.
<?php
$username = "user";
$password = "********";
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username, $password)
... | stackexchange/codereview |
I have a 3rd party DLL that I need to use in my application. My project is signed with an SNK so therefore I cannot use these unsigned DLLs without signing them.
I tried to use ildasm.exe as explained here but I get error messages when attempting to sign the DLL as the DLL contains unmanaged code. The error message I g... | stackexchange/codereview |
trying to make a .bat script, and need to get some strings working properly.
This is what I've got so far
@echo off
for /r %%i in (*.csv) do (
set str=%%i
set str=%str:csv=rar%
echo %%i
echo.%str%
)
Say I've got this running in C:\, and got 5 csv, 1.csv, 2.csv... 5.csv
First time I run it, I get output of:
C:\1.csv
C... | stackexchange/codereview |
This car dealer company has many branch offices. In each of these branch offices, some sales people are working whose job is selling cars to customers. You need to define your branch offices in your diagram. And also, you need to define sales people who are working in these branch offices.
- This company sells cars, so... | stackexchange/codereview |
Add a type of contact (RawContact), sometimes they are combined with telephone contacts LOOKUP_KEY. It turns out that some contacts entries contain two RawContact'a one integrated phone, one of mine. The question is how to find out whether there is a Contacts RawContract my type? Or learn to RawContacts to which he ref... | stackexchange/codereview |
i have converted a C++ library to managed and get the following error on this code line:
std::ifstream fin(filename, std::ifstream::in);
Errors:
Error 30 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0003b5). C:\Users\Freeman\Documents\Visual Studio 2010\Projects\test... | stackexchange/codereview |
I'm using the fxcomponent: Flv video player to play my flv/mob files.
You may get it from here.
Now, player works perfectly as shown in their site, but when I try to use the FXVideo control in popup window (popup manager help is here), the component gives mirror image!, strange, I didn't change any code in that.
So can... | stackexchange/codereview |
I'm using jQuery's autocomplete. I'd like to draw the map based on the
result that is selected from the autocomplete. I have the
lat/long to use captured in variable "latlong"
autocomplete code: http://pastebin.com/YTNnDS51
google map code:
var map = new GMap2($("#map").get(0));
var burnsvilleMN = new GLatLng(latlo... | stackexchange/codereview |
I'm developing an Android application.
I have several objects loaded on a ListActivity. I want to know the item clicked on event onListItemClick.
I see method onListItemClick has a parameter called id. How can I setup this id?
My objects are identified by an ID, how can I add this ID to listItem?
Thanks.
| stackexchange/codereview |
In both IE8 and Firefox I am experiencing the following:
I have a panel that is 30px in height, within this panel I have a single row table with 30px in height. When it displays on the browser window the table does not fill the height of the panel (there is a small amount of the panel showing on the top and bottom. How... | stackexchange/codereview |
I'm new to android,I'm using tabHost adding some tabs to it,its working quite fine but when i rotate my device in landscape mode it also work there fine but i don't need tab bar there because it covers much space and i also have google ads so both of them cover half of the screen and leave a little space for user to in... | stackexchange/codereview |
I have problem when using modalPresentationStyle.
I call the following function in my tabbarcontroller's first view controller's viewDidload
So that the login viewController is displayed when app launches
But the problem is when I launch app in Landscape mode I can see the login view correctly and I rotate the iPad to... | stackexchange/codereview |
I thought there would be lot more info/tutorials on this one, but some how I'm not able to figure out how to call an async SOAP web service using Java. The web service in question may not necessarily be a Java web service. I only have access to web service's run time WSDL.
Any pointers will be greatly helpful.
Also wou... | stackexchange/codereview |
Hi Im trying to add some color to this string for a simple Console app im creating.
I would like each letter to be in a different color.
const string WelcomeMessage = @" _______ _ _______ _______" + NewLine +
@"|__ __(_) |__ __| |__ __| " + NewLine +
... | stackexchange/codereview |
I have a question regarding how the Internet checksum is calculated. I couldn't find any good explanation from the book, so I ask it here.
Have a look at the following example.
The following two messages are sent: 10101001 and 00111001. The checksum is calculated with 1's complement. So far I understand. But how is the... | stackexchange/codereview |
First of all, I'm not a hacker :)
We're doing a project where we'll award points to users for visiting certain groups of sites.
Obviously there are major privacy concerns, but we have no interest in actually knowing where they've been, just as long as the program we create can check the history and through an algorithm... | stackexchange/codereview |
I am using following code to resize an image - it all works well and as expected...
Resize UIImage the right way
I use interpolation quality as kCGInterpolationLow and UIImageJPEGRepresentation(image,0.0) to get the NSData of that image.
The problem is that the image size is still a bit high in size at around 100kb.
M... | stackexchange/codereview |
I posted on Friday (sql multiple count) and had a few responses.
Having tried to implement them today, I keep getting the same error.
My SQL code now is:
SELECT MBDDX_STUDY.STUDY_NAME,
COUNT(MBDDX_EXPERIMENT.STUDY_ID)
AS NUMBER_OF_EXPERIMENTS
FROM MBDDX_STUDY
INNER JOIN MBDDX_EXPERIMENT
ON MBDDX_S... | stackexchange/codereview |
I have CustomerID declared as
int? CustomerID=null;
I am checking null values while reading DataReader
Id = reader["CustomerId"] is DBNull ? null :Convert.ToInt32(reader["CustomerID"]);
It is throwing
Type of conditional expression cannot be determined because there
is no implicit conversion between '<null>'... | stackexchange/codereview |
I am using Webkit Nightly because i'm working on some new HTML5 features. I would like to look at the application full screen, without the window chrome.
Other browsers have F11 and other buttons to go fullscreen, but webkit doesn't. Is there a way I can launch it in fullscreen mode?
Dennis
| stackexchange/codereview |
In my master page I have a placeholder where a Html.RenderPartial() will render a collection of (bread)crumbs which are effectively a list of links I build up using action, controller names and RouteValueDictionary's.
I have an action that is called from multiple places to view a short-list and so when building the lis... | stackexchange/codereview |
i would like to do a HTTP POST method to communicate with an ASPX page.
I will need to pass the value through form-variable.
how can i achieve it on objective-c?
| stackexchange/codereview |
I want to know the total length in kb of mp3 file .how to do this in android
Thanks in advance...
| stackexchange/codereview |
Is there a simple way of doing the following:
String s = myObj == null ? "" : myObj.ToString();
I know I can do the following, but I really consider it as a hack:
String s = "" + myObj;
It would be great if Convert.ToString() had a proper overload for this.
| stackexchange/codereview |
Consider the following implementation of Web app and Client - that uses Spring/Hibernate for the web app. The Application container is Tomcat
Web App 1 (Primary)
Web App 2
Web App 3
Web App 1, 2 and 3 expose services that talk JSON
The Client is a normal browser, say there are 3 clients
Client 1
Client 2
Client 3
The r... | stackexchange/codereview |
I have made a custom ControlDesigner that I need to include and exclude properties shown in the property grid. But for some reason it seems just to ignore the code? I don't know what I might have done wrong? Could I be missing something? Do I need to setup VS or something?
Also in the examples I have found they seem to... | stackexchange/codereview |
We have parent DIV and inside parent div we have following structure.
Div Main
table1
table2
Child div
Div Main end
Now our child div have overflow:auto. So when scrollbar comes and we scroll it, it also scroll table1 and table2. This happen only with IE8. Works fine with previous version of IE. There is no o... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.