instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a view which is displaying 9 lines of information per every document. In this view I have Export to Excel functionality using the below code to Export document to excel.
Data isn’t exporting properly for first two documents , for example if I have 7 lines for the first document then it should export 7 lines but... | stackexchange/codereview |
This is a simple one, and one that I thought would have been answered. I did try to find an answer on here, but didn't come up with anything - so apologies if there is something I have missed.
Anyway, is there an equivalent of StringBuilder but for byte arrays?
I'm not bothered about all the different overloads of Appe... | stackexchange/codereview |
I would like to build a gallery view of the photos similar to native Photos app, with possibility to slide image to left and to right. I want to display some extra buttons and label on each slide. could you advice me, please, where to dig?
| stackexchange/codereview |
i red on internet about reflection, i have understood a few codes too, but the problem is that i am really unable to get what is the use of reflection and where should i use it.
could some body please explain me about this using an example.
| stackexchange/codereview |
I have have a repository, for example "http://svnserver/repository". Users have different permissions in the folders: "http://svnserver/repository/folder1" or "http://svnserver/folder2". How can I get the permission (read only or read and write) of the user logged in for a specific folder?
| stackexchange/codereview |
I need a script that can spider a website and return the list of all crawled pages in plain-text or similar format; which I will submit to search engines as sitemap. Can I use WGET to generate a sitemap of a website? Or is there a PHP script that can do the same?
| stackexchange/codereview |
hi
i'm trying to create a new drupal theme which has many different pages and many diffrent style pages and many css files.
The template is for a specific website with specific modules and ofcourse each module has it own template
i am developing my theme under zen.
in template .info i had defined manay css files and my... | stackexchange/codereview |
I cant load this plugin how can i load this?
I have IndexController.php and I have OthersController.php. For all those controllers, to have 1 single preDispatch method i wrote a plugin as following. Can you please guide me kindly, how i can now attach this with all other controllers???
@file: application/controllers/Gl... | stackexchange/codereview |
I know I can use ReadKey for that but it will freeze the app until user presses a key. Is it possible (in console app) to have some loop running and still be able to react? I can only think of events but not sure how to use them in console.
My idea was that the loop would check for input during each iteration.
| stackexchange/codereview |
I have the camera working in my app, but after the picture is captured and I select use, the app crashes.
How can I connect this use button and make it set a UIImageView I have created to the captured image?
EDIT
Camera is available and ready
Using two-stage rotation animation.
To use the smoother single-stage ani... | stackexchange/codereview |
Possible Duplicate:
R: determine if a script is running in Windows or Linux
How can an R script determine what platform it's running on? I'm using R 2.10.1, sometimes on Windows, sometimes on Linux. I would prefer a built-in function over filesystem taxonomy. I've already searched the index of the base package for a... | stackexchange/codereview |
I'm building a site with a lot of similar css between pages. I've decided that a good approach would be to have the css generated as strings by php functions (with parameters) and outputed as an internal stylesheet in every page that i serve. The benefits:
this way if i make a change it will reflect throughout the ent... | stackexchange/codereview |
I need to pass a folder (java.io.File) as a function parameter.
I tried to just declare the location of the folder, but it looks in SERVER_HOME (/home/user/tomcat).
So my next try is to inject a File (directory) which is located in WEB-INF/myFolder.
my first try failed:
<bean name="path" class="java.io.File">
<... | stackexchange/codereview |
I am embedding Python into my C++ program, and have used PyRun_SimpleString quite effectively but now am having trouble.
What I have done is loaded a python.py file a std::string but am now having troubles running it. PyRun_SimpleFileEx didn't seem to do the trick either so some help would be great!
std::string con... | stackexchange/codereview |
I have a red5 server (JAVA) running on my Linux server.
Sometimes, the server shuts down. When I try to restart it I got an error:
"Binding error, this port is alerady in use".
So I try to kill the server with killall -9 java
and try to restart the server: same error.
I have to wait for a while (about 2-3 minutes) and ... | stackexchange/codereview |
I'm a little confused as to exactly what segment is used when you have x86 assembly like the below (Intel syntax):
mov ax, [di]
I'm pretty certain it wouldn't be the code segment, I'm thinking either the data segment or the stack? (Or is the stack part of the data segment?)
| stackexchange/codereview |
I have a table where I store comments for user users. I will have 100 Million+ comments.
2 ways I can create it:
Option 1: user name and comment id as PK. That way all comments are stored physically by user name and comment id.
CREATE TABLE [dbo].[Comments](
[user] [varchar](20) NOT NULL,
[com_id] [int] IDENTIT... | stackexchange/codereview |
I if have a method signature as follows
public void deposit(@RequestParam("accountId") Integer accountId,
@RequestParam("amount") BigDecimal amount) {...}
And because i have a locale specific decimal value which needs to be converted to a BigDecimal, is there some annotation which allows me to set... | stackexchange/codereview |
I want to know how to implement java code to parse the apk file, get the android application version number and so on, such as after you uploaded android application in Android Market, it will get the version number, permissions.
Anyone can give me idear? Thanks a lot.
| stackexchange/codereview |
I'm trying to print a swing component to paper. It's basically an extended JPanel which hosts (among other things) multiple JTextFields. These fields look correct when viewed on the screen, but when printed to paper, the text in the fields is not printed correctly... in some fields, the spaces in between words is quite... | stackexchange/codereview |
The following line on page 110 of Pro ASP.NET MVC Framework does not make sense to me:
string links = ((HtmlHelper)null).PageLinks(2, 3, i => "Page" + i);
I don't understand what is the null doing in the above statement?
I was unable to do .. HtmlHelper.PageLinks(....)
Is the PageLinks Method an extension method?
| stackexchange/codereview |
Following is a source code which takes in only 'files',lists the file permissions of a file and prints the output by replacing
r=READ,w-WRITE,x-EXECUTABLE.
It should also echo "User".But the My problem here is that I have replaced '-' by User but then if the file has a permission of r--x,it also prints "User" @ that p... | stackexchange/codereview |
I have the following code
private void button1_Click(object sender, EventArgs e)
{
ResXResourceReader resourceReader = new ResXResourceReader("EN-US.resx");
foreach (DictionaryEntry dictonary in resourceReader)
{
//call google API to translate the entry
MessageBox.... | stackexchange/codereview |
i have a scenario where i have to group the PinCode by city name like one city can have many pincode.
I have to do this in winform in datagrid. How can i do this so in datagrid i can see the + and - on before city.
I thing it can be done by nested grid. please, help.
Column A | Column B | Column C
Countr... | stackexchange/codereview |
I like to add a dynamic css file to a Parent window.
I build this code for it:
function LoadJSCSSFile(filePath,fileType,parentBOO){
//-
var fileRef; // Get the file reference
//-
//Set external JavaScript/CSS file
switch(fileType){
case "js":
fileRef = document.creat... | stackexchange/codereview |
I need to convert the canvas tag into a image file and it need to support the IE6+,Mozilla 3+
and saffari 5+
| stackexchange/codereview |
i have two tree one tree lets say TreeDrag is drag enabled and other is drop enabled lets say TreeDrop.. when i drag item from TreeDrag to TreeDrop,, i want to show feedback and everything else normal except the addition of dragged item in TreeDrop....
| stackexchange/codereview |
I just had a miserable failure with SOLRJ. Somehow StreamingUpdateSolrServer failed on some of the items that are being indexed, but others succeeded. It simply throws out an Exception with "Bad Request" message, without any further explanation or stack trace. I suspect that this is due to malformed data, but after dou... | stackexchange/codereview |
I have a @Stateless @Local Bean successfully deployed in an ear. I can see the new EJB 3.1 standard global JNDI name when I browse the JNDI tree. (java:global/product/product-ejb/ProductManagement)
I want to use this EJB in a different application on the same app server. Do I need to add a remote interface for this ... | stackexchange/codereview |
I'm going to do async auditing on my SQL Server 2008 as shown here: http://auoracle.blogspot.com/2010/02/service-broker-master-audit-database.html
What it does is:
a trigger sends a message to a queue in the service broker
another SP in other database receives the messages and process them
The possible problem I see ... | stackexchange/codereview |
I have a rounding issue inside of .Net.
I am rounding a 3 digit number down to two digits and it is causing some problems with one number.
If I try to round 34.425 to two decimal places it should round it to 34.43. I am using the roundawayfromzero option and it has worked for every number in the program except for thi... | stackexchange/codereview |
neI have a DropDownList with a list of value.
I need in my code USE the value selected by the User in the DropDownList AS INT DataType (numeric).
At the moment I am using this code below (CONVERTING DATATYOES).
Script work just fine.
But I would like to know if exists an alternative way to do it.
Any ideas it is very ... | stackexchange/codereview |
I am having trouble with a plug-in for word press which has very little documentation about it. I am working on http://goo.gl/fgVM and where ever the marker is, it has NO ACTION on click, whats strange is that a pop up appears if I install this plug-in on another theme/install. I was wondering if anyone with Google map... | stackexchange/codereview |
I have seen a lot of iphone apps which provide an easy to use navigation controll for text fields, which contains next previous and done.
What is the technique for this? any
sample code?
they also scroll the screen until
the selected textField is placed on
top of the keyboard, how do they do
that?
| stackexchange/codereview |
All the Intel CPUs in the last decade (at least) include a set of performance monitors that count a variety of events. Do the latest Intel CPUs, Core i3, i5 and i7 (aka Nehalem) provide a mechanism to count Instructions Per Clock (IPC)? If so, how are they used?
If this is possible, I'll probably be writing the cod... | stackexchange/codereview |
Is it possible to develop an add-on to Outlook 2007 that will appear under the task box(or anywhere else). The add-on will be a simple iframe like the HTML tag.
For example I want to show sport results site in this iframe.
This this possible? How can you create a 'frame' for use by an Outlook add-on?
| stackexchange/codereview |
I try to map NHibernate to an existing database structure. Unfortunately I can not change the existing structure.
First I'll give some background and then explain the problem itself
Relational analysis is quite simple:
Log is the main Entity. he has one-to-one relationship with Form.
the foreign key is FormID.
Buyer &... | stackexchange/codereview |
Given url /Page.aspx?a=b&title=apples+%26+pears, Request.Url property returns /Page.aspx?a=b&title=apples+&+pears
Note that the url-encoded ampersand in the second key-value pair has been automatically decoded.
Other url-encoded reserved characters aren't being automatically decoded.
Is this behaviour correct?
EDIT: Th... | stackexchange/codereview |
I am trying to setup a local Fedora repository in a local LAN network.
Unfortunately I cannot run rsync in daemon mode because I'm behind a firewall on which I have no control.
Could anyone guide me on how to setup rsync using shell?
I tried the mirrors in http://mirrors.fedoraproject.org/publiclist , I get prompted... | stackexchange/codereview |
Could anyone suggest the best Build Tools for use in the build process when building a blackberry application.
Is it just the creation of an ANT project, does that cope with signing etc?
Is there a better tool out there? I'd prefer a lightweight Windows solution.
I normally use Automated Build Studio -- it can build A... | stackexchange/codereview |
is there a way to tell rubygems to always search for remote gems (instead of local)? I tried adding the following line to my ~/.gemrc
gem: --remote
but the problem is, that when i do gem list i get the following result
~$ gem list
*** REMOTE GEMS ***
- (1)
10io-jekyll (0.7.0)
1234567890_ (1.0)
2Performant (0.0.8)
36... | stackexchange/codereview |
I'm scratching my head whether this idea is worth exploring:
I'd like to use a tab control to filter a subform field by the value of the tab control page. There are about 5 different values for that field, so it would be neat to have 5 tabs where you click on the tab and see the list of just those matching records.
I'm... | stackexchange/codereview |
Here is my problem. I have a model Project, that has a quote field in it. When a new instance of project is created I need to append the last 2 digits of the year plus a hyphen onto the start of the "quote" field. Ex. 2010 = "10-". Im just not quite sure how to start it?
As of right now I have hard coded in "10-" i... | stackexchange/codereview |
After a lot of experiments and reading many articles, Q&As, I still didn't find the answers to my problem, then I decided to ask my question at great stackoverflow forum:-)
The setup of my project is as follows:
- Create an AS3 project in Flash Builder 4 (Main.as3proj), and write source code in it;
- Create graphical a... | stackexchange/codereview |
I want to create an application which permits to the user to download media files and play them, but only with my application. So first of all I thought that encrypting files will be a good solution, but it takes to much. Now I'm thinking to create a custom codec for my media files. I didn't work until now with codecs ... | stackexchange/codereview |
I am new to the dynamic languages scene, and trying to find a good starting point.
Looking at how Microsoft is diminishing the role of Iron Ruby in its offerings, I am looking around for a dynamic programming language that will be supported on dotNET platform. Could you list specific features that are found in one but... | stackexchange/codereview |
I wrote a code:
let rec compareVs v1 v2 =
if List.length v1 == 0 then
true
else
((match v1 with [] -> 0. | h::l -> h) == (match v2 with [] -> 0. | h::l -> h)) &&
(compareVs(match v1 with [] -> [] | h::l -> l) (match v2 with [] -> [] | h::l -> l))
And ran it:
# compareVs [0.1;0.1] [0.1;0.1];;
- : bool = false
... | stackexchange/codereview |
I'm relatively new to dependency injection, so I'm probably butchering the concept to some extent. However, I'm trying to achieve something like the following, but am unsure as to whether or not it's feasible:
Lets say I have two containers, each containing different instances of the same type of dependency. For exampl... | stackexchange/codereview |
When the image gets saved, the height and width of the image get saved in the model correctly. I have a requirement where I need to validate the dimensions of the image before save. It has to be of precisely the same dimensions. But when I try to access height or width before save, it gives me nil.
Is there any way whe... | stackexchange/codereview |
In Delphi 2009 I found that the flicker of a PageControl - which occurs during resizing of the form - can be reduced by setting its DoubleBuffered property to true.
However if I add controls to the PageControl tabsheets, they will flicker regardless of their DoubleBuffered property setting. I have also tried with and w... | stackexchange/codereview |
i have two files.
In first (parent, address: www.myaddress.com/fun/test.php) is jQuery function:
<script type="text/javascript">
$(function(){
$(document).ready(function()
{
import_f = setInterval(function()
{
$('#file').load('fun2.php?id='+ Math.random());
}, 5000)... | stackexchange/codereview |
I have this shortcut in my .vimrc file:
map cmt :!start TortoiseProc.exe /command:commit /path:"%" /closeonend:3 <CR>
What this does is whenever I type cmt, Vim opens the commit dialog for the file I'm currently editing with Vim.
What I'd like to do is to write this command in such a way that if I put a number in fron... | stackexchange/codereview |
I have a table my_table with column my_column and a large list my_list of LONGs. I'd like to find all values that present in the my_list but not present in the my_table.my_column. How can I do that with SQL without repeating huge list of LONGs twice? Please shed some light as I'm Oracle beginner. Thank you.
EDIT:
my_li... | stackexchange/codereview |
According to MSDN Library
using Statement (C# Reference)
Defines a scope, outside of which an object or objects will be disposed.
But I got this code posted here by some user and I got confused about this: (please see my comment on the code)
using (OleDBConnection connection = new OleDBConnection(connectiongString))
... | stackexchange/codereview |
I've read this link here, but this guy is doing a one off copy from 1st normal form to 3rd, so that's not what I'm doing: StackOverflowPosting
I am going from 3rd normal form to 3rd normal form, pretty much the same design, on a daily basis, only copying hte new data.
Example Data
Parent
ParentId
Created Date
Child
... | stackexchange/codereview |
I am having trouble to what i should name this in the title field...
Question is. I want to select a blogpost by entering its title, like this:
http://localhost:3254/blog/2010/10/net-programming
The title of the blogpost should be ".net programming". So i have setup a route to look for a year a month and finally a stri... | stackexchange/codereview |
Is it considered good practice or bad practice to write an interface that exists solely to concentrate other interfaces?
interface InterfaceA : InterfaceB, InterfaceC {
}
In doing this, a concrete implementation only needs to implement InterfaceA, which seems like a good thing, but it doesn't add any value by extendin... | stackexchange/codereview |
I'm quite new to Android development and face UI implementation issues. Namely I'm trying to find a good way (design pattern?) that addresses view hierarchy and navigation between views (with history). Does is always has to be about launching new Activity? I don't want to learn bad habits during my first steps with And... | stackexchange/codereview |
I have some XML with <ListItem> elements, and I'd like to wrap any consecutive runs with <List> elements. So, source XML would look something like this:
<Section>
<Head>Heading</Head>
<Para>Blah</Para>
<ListItem>item 1</ListItem>
<ListItem>item 2</ListItem>
<ListItem>item 3</ListItem>
<ListItem>item 4</List... | stackexchange/codereview |
I am trying to execute the following code and I keep getting an Index out of range exception when trying to assign array values to the list:-
int[] array = new int[1000000];
for (int i = 0; i < array.Length; i++)
{
array[i] = i;
}
List<int> list = new List<int>();
... | stackexchange/codereview |
I want to implement a logic similiar to what some of the websites do is they ask for your email address and send you a link on that mail address when you click on that link you are redirect to there home and given a temporary password which expires in a time limit and ask you for setting up your new password.
I am int... | stackexchange/codereview |
Apple has deprecated their JVM and it may not be supported in future versions of OS X. I am not primarily a Java developer, but I do write Java applications now and then, and the primary application I work on uses Tomcat and Opal to provide a SOAP interface to command line executables written in C.
I keep seeing sugges... | stackexchange/codereview |
I have an application that runs on a headless linux box (a SheevaPlug, to be precise). (It collects data from a weather station and sends it to a database, in case you're wondering.) I'm having a hard time debugging problems with the application because I can only SSH into the box or view it on the network (thanks to S... | stackexchange/codereview |
I have a parent entity with a list of child entities. When using NHibernate to retrieve a given parent with children from SQL, it works fine if there are no children OR if there are children with dates that match the where condition.
If there are children that do not match the where clause, the parent is null. I want... | stackexchange/codereview |
I'm doing some maintenance programming on a fairly large project, which was started by someone who's now left the company...
I've just backed up one of the company's databases, and then reattached it to our test server. That much appears to be working okay.
I then go through the program's usual login procedure, and tha... | stackexchange/codereview |
If you want to override a template coming with an app in django (in app/templates/app/) you create a template of the same name in another directory, which the template loader checks before the app's template dir. If you just want to override certain blocks of the template you also have to copy the whole template and ch... | stackexchange/codereview |
I am calling a .Net assembly from a Delphi project using COM interop.
Can I catch .Net exceptions in Delphi thrown by the assembly?
| stackexchange/codereview |
My problem is related to getting the correct mouse co-ordinates from SFML while using OpenGL.
Basically I am making a polygon rotate on the Z axis to look at the current cursor position.
You can also move the polygon around the screen with the WASD keys.
If the polygon stays in the center of the screen everything works... | stackexchange/codereview |
Is it possible to have a Radio button list, like we have a checked List box?
Actually I want to load all the options from database to the list but do not want user to allow to check more than one item.
Also how to read it (say item 4 of the list) I want to store its value in the variable.
Thanks and best regards.
Furq... | stackexchange/codereview |
I'm trying to run this tool in order to convert a Visual C++ project to makefile.
The project I'm trying to convert project is written in VS2008, so I'm using a reference to Microsoft.VisualStudio.VCProjectEngine.dll from version 9.
It fails in this line:
VCProjectEngine vcprojEngine = new VCProjectEngineObject();
Wit... | stackexchange/codereview |
Hi I have the following:
$.ajax({
type: "POST",
url: global.pathPrefix + '/services/brochure.asmx/ShowPostRequest',
data: "parkIds=" + $('input.ids').val(),
success: function(msg){
alert( "Data Saved: " + msg );
},
e... | stackexchange/codereview |
Quick question (I think). I have users, and I would like to allow them to send messages to one another. My question is, should I have a user table, a message table, and a users to messages join table, or should I just store to_user_id and from_user_id in the messages table. If the latter, what would the association l... | stackexchange/codereview |
The problem is that my JNLP file works locally on my 64-bit machine (running on my own machine), and locally and remotely on my 32-bit machine - but not remotely on the 64-bit machine (you see the Java 6... message for a looong time, and then it just terminates!). Any suggestions about how to trouble-shoot this? Shou... | stackexchange/codereview |
I think I understand the difference between ASCII mode and Binary mode on regular FTP transfers -- in Binary mode the file is copied exactly, and in ASCII mode the client may modify line endings (stripping the Carriage Return from Windows -> UNIX or adding it in the other direction). However, I thought that the SFTP pr... | stackexchange/codereview |
how do i preserve sentences that start with X criteria and delete sentences that match Y criteria.
using vim, I would like to delete all sentences that do not start with void.
void set_first_name(string in_first_name);
string first_name();
void set_last_name(string in_last_name);
string last_name();
void set... | stackexchange/codereview |
I want the procedure to take parameter answertable and partid in the select statement,
but when i call it it doesn't replace the parameter answertable with the value
the call call updateTotalScores('quiz_participation', 'quiz_answer', 1)
returns the error: 1146 - Table 'quizdb.answertable' doesn't exist
passing the id ... | stackexchange/codereview |
I'm developing a Windows Mobile application in C# using .NET Compact Framework 3.5. My target version of WM is 6.5.x. It was my impression that Microsoft has updated the stock controls in this release of the OS to be more finger friendly (larger fonts, greater space between rows in listboxes, etc.) but when I create, f... | stackexchange/codereview |
HI,
How do I get data from gps module from my windows mobile phone?
Is it through serial port communication?
And how do I transform this data?
Is there any article out there?
| stackexchange/codereview |
I need to declare a property for a C array of a custom struct type.
Can someone explain what I should be doing with this C array as far as property declarations? Should I not be using a property declaration at all?
I tried memset()ing the memory in the array, and failed miserably with a compile error. Can someone exp... | stackexchange/codereview |
I'm using the mvvm-light toolkit in my windows phone 7 application.
I have in my view :
<TextBox Height="78" HorizontalAlignment="Left" Margin="108,33,0,0" VerticalAlignment="Top" Width="313" Text="{Binding MyValue, Mode=TwoWay}" />
<Button Content="Go" Height="78" HorizontalAlignment="Left" Margin="127,252,0,0" Name=... | stackexchange/codereview |
I am looking into using the HTML5 History API to resolve deep linking problems with AJAX loaded content, but I am struggling to get off the ground. Does any one know of any good resources?
I want to use this as it seems a great way to allow to the possibility of those being sent the links may not have JS turned on. Man... | stackexchange/codereview |
I have a ListBox that displays some words. Words are entered in TextBox, and when submitted on button click, they are added to ListBox. The problem is, if I add many words, scroll is always on top of ListBox, so I don't see last but first words added. Is there a way to dynamically move scroll to the end of ListBox ever... | stackexchange/codereview |
Small apps like Freedom and Anti-social have created quite a stir lately. They cut you off from the internet either entirely or just block social networking sites in order to discourage procrastination and help you exert self control when you really want to get some work done.
I looked at the available options and also... | stackexchange/codereview |
Example for array
arr = ["a", "b", "c"]
# TODO create an alias for arr[1] as x
x = "X"
# arr should be ["a", "X", "c"] here
Example for hash
hash = { :a => "aaa", :b => "bbb" , :c => "ccc" }
# TODO create an alias for hash[:b] as y
y = "YYY"
# hash should be { :a => "aaa", :b => "YYY" , :c => "ccc" } here
And also a... | stackexchange/codereview |
What is the difference between configuration.Save(ConfigurationSaveMode.Modified, true) and configuration.Save()?
Background: I have a programme, where I manipulate a web.config, which I use for configuring WCF Services. I load it into a Configuration object, change some attributes and save it back. When I use configur... | stackexchange/codereview |
Given a table of
Name Age
Bob 30
Paul 35
John 35
and a statement
select * from table ORDER BY Age DESC
What is the ordering of the resulting table?
Name Age
Paul 35
John 35
Bob 30
or
Name Age
John 35
Paul 35
Bob 30
or undefined behaviour?
| stackexchange/codereview |
I've got a set of ASP.Net pages that display a number of asp:TextBox fields depending on the number of entries in a configuration file. I know that the number of fields won't be going above 10 or so. Given that, should I declare a sufficiently large number of text boxes in markup, or should I dynamically create the t... | stackexchange/codereview |
I'll try to explain my problem as simply as possible but it's a tricky topic and people who haven't encountered the issue probably won't know what I'm talking about.
I want to use a BorderLayout using west, east, north, south, etc. components that are my "normal" components (JLabels, JButtons, etc.) then I want the cen... | stackexchange/codereview |
Is it possible to pass w3 xhtml strict validation and still use google analytic code on my webpage?
| stackexchange/codereview |
I have this project where I need to load 3 external variables into my swf-file on a webpage.
The wierd thing is that I got this to work before, but now it suddenly wouldn't :\
I use swfObject to setup the variables like this:
<script type="text/javascript">
var flashvars = {page:"page1", box:"head2"};
var param... | stackexchange/codereview |
On a regular aspx page, I have events such as Page_Init, Page_Unload, etc., which occur in a well-defined order.
I have an asmx page providing [WebMethod()]s. Do similar events exist? In particular, some events that allow me to initialize some data (like Page_Load) and do some clean-up (like Page_Unload) would be extre... | stackexchange/codereview |
I have a webservice project and a web project in the same solution.
The web project implements a membershipprovider.
I want to be able to authenticate user via the webservice project but when i call this method in the webproject:
public static bool AuthUser(string userName, string password)
{
return... | stackexchange/codereview |
So, I have this application for which we are producing further development versions.
If the application gets uninstalled by the user (from Add/Remove Programs let's say), then I want the application to delete a certain folder in the file system which contains app-related information.
However, if the application is upgr... | stackexchange/codereview |
I'm a confused newbie. I read in a tutorial that you create a javascript object like so:
function myObject() {
this.myProperty = "a string";
this.myMethod = function () {
//Method code
}
}
Then I read somewhere else that you create an object like so:
var myObject = {
myProperty: "a string",
... | stackexchange/codereview |
Hi i want to overwrite the content(object) in a specific file i have set the position but it always add to the end of the file
Code
int InputIO::editPatient(int location,Obj P){
int positon=location*sizeof(P);
f.open("File.dat",ios::in|ios::out|ios::app|ios::binary|ios::ate);
f.seekp(0,ios::be... | stackexchange/codereview |
I have a div with default display:none. how do I reserve the height so when the div shows, it does not reshift the elements around it? thanks
| stackexchange/codereview |
The title sounds a bit crazy but having the * function for java.lang.String in Scala ("a" * 3 = "aaa"), why don't we have a / function so that "aaa" / "a" = 3 ?
Cheers
Parsa
| stackexchange/codereview |
I'm trying to send messages (byte arrays) from Node.js to Java via TCP socket (serialized with protobuf).
I create a server socket on the java side, and connect to it from Node:
var client = net.createConnection(12345, "localhost")
client.addListener("connect", function(){
client.write(serializedMsg1)
client.... | stackexchange/codereview |
Firstly, this is just an Object Oriented Programming question and does not apply to any Language in particular.
This is quite embarassing for me. This incident happened @ work and I was too shy to clarify this with my colleagues as it would indicate a poor understanding of Object Oriented Programming on my part. So her... | stackexchange/codereview |
I would like to start on Chinese hand-writing recognition program for IPhone...but I couldn't find any library or API that can help me to do so. It's hard for me to write the algorithm myself because of my time span.
Some of suggestion recommended that I should make use of a back-end server to do the recognition work.... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.