instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have 2 forms: signin and control_panel. After signin done I'm hiding this form by this.Hide() function and same time I am making new object of control_panel form and showing it by newobj.Show();. But when I am closing directly control_panel form, I am seeing first form thread are still running. I am closing it by sto... | stackexchange/codereview |
Hy,
It's there a way to make the SecondaryHeaderRow synchronous resizing when I resize a column in the HeaderRow ?
Here is the link to it http://li.ro/4bJw
Thanks!
| stackexchange/codereview |
I have placed the following code at the top of my page in the head:
<script type="text/javascript">
function stopRKey(evt) {
console.log(evt.keyCode);
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : nul... | stackexchange/codereview |
I have been trying to no avail to get the observer pattern working in a relatively simple application.
I have 4 GUI classes
StarterClass (contains a CompositeWordLists and a CompositeWordListData)
CompositeWordLists (contains many CompositeListItem/s and a CompositeWordListData)
CompositeListItem
CompositeWordListDa... | stackexchange/codereview |
Please run me through what happens on execution of this code Basically looking at toggleClass(function(n)
$(document).ready(function(){
$("button").click(function(){
$("li").toggleClass(function(n){
return "listitem_" + n;
});
});
Complete code is here
| stackexchange/codereview |
In iOS to get the delegate I use following code:
AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication] delegate];
How to get the delegate in Cocoa Mac programming?
| stackexchange/codereview |
Anyone know how to disable/hide notification bar at the top which show battery and other things in android.
Any help will be appreciated.
EDIT: Please also add how can I hide ActionBar+NotificationBar for later android versions.
| stackexchange/codereview |
if i click a button the last value in id should be incremented and displayed in the textbox in windows application(.net).
eg..
in database there are 10 records... in the column id from 1 to 10... if i click the button
the value should be increment and 11 should be shown in my textbox in windows application..
please ... | stackexchange/codereview |
I have a problem where the nested templates are being evaluated before the parent template. Due to the ordering issue, this is causing issues with a tag library that insists nesting.
template.jsp
<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://tiles.apache.or... | stackexchange/codereview |
Why does this work
select geography::STGeomFromText('POINT(-77.010996 38.890358)',4326)
but this doesn't
declare @Latitude decimal(9,6) = 38.890358
declare @Longitude decimal(9,6) = -77.010996
select geography::STGeomFromText('''POINT(' +
cast(@Longitude as nvarchar(15)) + ' ' +
cast(@Latitude as nvarchar(15)) +'... | stackexchange/codereview |
If I declare a class with default constructor and define a instance of this class with initializer list as below, will the default constructor be called for this definition? And why been called or not been called?
class Sample
{
// this should be any aggregate type in c++
};
int main()
{
Sample s = {0};
return 0;
... | stackexchange/codereview |
I have a simple copy from-to script for one of my friends who is missing a file 20 km from my desk.
When testing the script out I am prompted if my file shapes.atc is a file or a folder.
I can tell you that its a file. How can I automatically copy it with my friend needs to just double click the batch to get the file c... | stackexchange/codereview |
So I'm attempting to build something:
1>------ Build started: Project: some_project, Configuration: Release Win32 ------
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'CGAL-vc90-mt.lib'
1>Build log was saved at "file://c:\Users\Whoever\Documents\some_project\some_project.dir\Release\BuildLog.htm"
1>some_p... | stackexchange/codereview |
When I email Posterous with content to post, how do they know it's really me?
Their FAQ reads:
"Email can easily be spoofed, but Posterous has come up with some ways to figure out if the email we receive comes from you. If we think it might not be you, we ask you to confirm the email before we post it."
| stackexchange/codereview |
I've been searching for a solution to this problem for a few days now and could not find anything that would reduce the time it takes to run the query.
I have 2 tables:
"product_db":
unique_id - [index]
image
url_title
status - [index]
"product_page"
id
product_unique_id - [index]
page_id - [index]
What I want t... | stackexchange/codereview |
In Matlab, given a vector of logicals, for example, v>0 creats a vector of logicals where v is a numerical vector, what are the efficient ways to respectively
(1) check if there is zero(s) in it?
(2) check if there is one(s) in it?
(3) count how many zeros in it?
(4) count how many ones in it?
Thanks!
| stackexchange/codereview |
I am trying to use a ManyToOne relation where the foreign key links to an @Embedded field in the target class. This compiles and enhances fine, but when running this code, OpenJPA will complain with an exception. This is with OpenJPA 2.0.1. In code this looks like so:
@Embeddable
public class NormalizedNumber {
pr... | stackexchange/codereview |
I am currently writing a security tool in python that runs as a daemon on a host computer. Whenever a usb storage device is detected, it will copy all of the files from the usb to some dir on the host computer. Is there any easy way to do this sort of usb detection / interface? Thanks in advance!
| stackexchange/codereview |
Is there a library call that would allow for sending/receiving of variable sized messages using MPI?
A work around would be to send the data size in the first message and follow it with the actual payload, but I was wondering if there was a convention for combining these two separate messages.
| stackexchange/codereview |
May I know is there a such module in python?
Basically I need print database table records to terminal in python supporting page-up and page-down key press.
Also I need a highlighted title bar on top of the screen looks like "top" output, and the output will auto scale to fit the terminal window resize.
Thanks!
| stackexchange/codereview |
I am having trouble embedding my applet into a webpage. I don't think I'm doing it correctly.
* I have my html file in the same directory as my .class files
My main method is in CardApp class
This is my html code
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>TestJCardBet.... | stackexchange/codereview |
I need to convert following nginx rule to Apache configuration.
can anyone help me.
location /chat {
rewrite /chat(/.+)$ $1 break;
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header Cookie $http_cookie;
proxy_buffering off;
proxy_send_timeout 310;... | stackexchange/codereview |
I've got a bean (id="myBean") defined in e.g. core.xml. myBean is NOT abstract, and its definition in this file CANNOT be modified.
However I need to set a new property (myProperty) somehow, in a separate XML file (overrides.xml) that is loaded after core.xml is loaded at a particular client site.
If I redefine the be... | stackexchange/codereview |
My goal is to associate a tooltip (containing a definition) to certain words on the client side using JS.
The text is generated with Django/Python (from a GAE datastore).
To accomplish this, I need to scan a block of text for multiple key words that require definitions and dynamically create a html 'title' for the to... | stackexchange/codereview |
<?php if (!$page): ?>
<h2 class="title"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
<?php endif; ?>
the code is used to make a decision if the displayed page is a full page state. if $page is true( a full page state) , then !$page is false. the following code is executed. but i saw the f... | stackexchange/codereview |
This is what happens:
code here:
self.connectAction = createAction(
self, "设备连接(&C)", self.setupDevice,
icon_id = QStyle.SP_DialogNoButton)
and this the createAction:
def createAction(parent,
text,
slot=None,
shortcut=None,
icon=None,
... | stackexchange/codereview |
I'm trying to set up a custom message source for Hibernate Validator 4.1 through Spring 3.0. I've set up the necessary configuration:
<!-- JSR-303 -->
<bean id="validator"
class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">
<property name="validationMessageSource" ref="messageSource... | stackexchange/codereview |
I have a problem, The rows are not grouping properly and I am not sure if it is a dataset problem or reporting problem. In the example below how do I get the 'S003' rows to show in one row? Is there some grouping property not set correctly? This report is off the reporting wizard + some formating changes adn drill down... | stackexchange/codereview |
I am trying to use WPF UI Automation working without using spurious thread.sleep statements. What I would like to do is have a function GetElementById that continually polls until the control is available (or a timeout occurs). The problem is that it appears to cache the child controls of my parent element. Is it po... | stackexchange/codereview |
I start a new activity when clicking on a button , but the content(ui components) of the new activity doesn't appear , why ??
button listener to start new activity
m_sendButton.setOnClickListener(
new OnClickListener(){
public void onClick(View view) {
Intent in = new Intent(context, SendMessageF... | stackexchange/codereview |
Can someone kindly put a good & simple example of JQuery with ajax to send json to a php script. I need to send json to a php script when page loads. I mean will be lot easy for me if the link contains example using $(document).ready(function()... I need a simple example as my problem is not big, & I need a simple solu... | stackexchange/codereview |
I need to be able to show one div before the new year, and another after the new year - it's a set of certain form elements so I think this is the best way to do it.
Can someone point me in the right direction of syntax?
Any advice appreciated!
| stackexchange/codereview |
I am developing an application,In My application,I am downloading lot of images from url using dom parsing.It is working fine.i wanna use cache memory for when i see that image in first time ,that image downloaded from url,otherwise ie second time again see that image will not download from url,That time i will displa... | stackexchange/codereview |
I just want to return four results with the following C# snippet. How can I accomplish this? I know I could probably just parse the returned results, but I'd rather just grab only four to begin with, if that's possible.
var searchTerm = "pizza boxes";
using (var web = new WebClient())
{
we... | stackexchange/codereview |
I am doing some heavy network tasks - downloading pictures (previews) -
For my main UI to not be blocked it did that in an AsyncTask, I want to put them in a GridView but I set the adapter before the AsyncTask finishes. Some code will be more helpfull
public void onCreate(Bundle savedInstanceState) {
su... | stackexchange/codereview |
I have the following class:
[Serializable]
public class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
public Dictionary<string, string> Attributes { get; set; }
}
I would like to serialize it using XmlSerializer and get the following output:
<Person>
<FirstName>Joh... | stackexchange/codereview |
Could any one give the html code for the below table using rowspan and colspan
Many Thanks
Hari Gillala
| stackexchange/codereview |
I'm using SQL Server 2000 and I want to return a string like the following from this table:
Field1 | Field2 | Field3
ABC | 123 | abc
DEF | 456 | def
Output Desired:
"ABC,123,abc"
"DEF,456,def"
I believe I can do this by simple concatenation, but it feels messy. What is the best way to do this?
NOTE: ... | stackexchange/codereview |
While developing a web app using ZF, I had an haha! moment regarding the _forward method in Zend_Controller_Action. As stated in the Programmer's Reference Guide, when calling the _forward method inside an action, the requested action will not be executed until the current action completes. This begs the question:
When... | stackexchange/codereview |
In this example:
public void Linq40()
{
int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };
var numberGroups =
from n in numbers
group n by n % 5 into g
select new { Remainder = g.Key, Numbers = g };
foreach (var g in numberGroups)
{
Console.WriteLine("Numbers with a rema... | stackexchange/codereview |
i am newbie in c#,
i want to build query string , i do some conditions , every condition add another condition to where clause
i want something like that :
// BUILD SELECT QUERY
string where = "";
string[] where_arr = new string[];
if (condition1)
{
where_arr[index++] = " field = 5 ";... | stackexchange/codereview |
I`ve created my first ajax contact using jQuery and PHP form but it doesn't seem to work.
My jQuery code:
var dataString = 'address=' + address + '&title=' + title + '&name=' + name + '&mail=' + mail + '&message=' + message;
jQuery.ajax({
type: "POST",
url: "sendmail.php",
data: dataString,
success: fun... | stackexchange/codereview |
The title neds work, but the best explanation I can think of for the questions is an example.
Say you have an object "Note" that represents a note that can be attached to other types of objects in the system like Account, Appointment or something else. The notes only have a date and the content of the note, and can onl... | stackexchange/codereview |
I have the following Url which returns me the list of resources:
http://example.com/resources/
I also implemented a method which returns a specific resource (in this case, the resource 142).
http://example.com/resources/142
I would like to add a method which is outside the typical HTTP method: List, Create, Retrieve, R... | stackexchange/codereview |
Hey everyone. Got a custom on how to do this as im new to MVC and trying to get a couple of small things implemented. This is the way I did it in WebForms but want to transition it to MVC.
I have a user control that contains CSS which will render a message. This control is located in the MasterPage and called from a AS... | stackexchange/codereview |
What is the meaning of these statements in Haskell:
a)
(\x -> x + 1)
b)
(\x -> x - 2)
c)
(\x -> mod (x * 3) 5)
I understand the x + 1, mod(x * 3) 5 etc but the \x before those statements makes them difficult for me to understand.
thanks for your help
| stackexchange/codereview |
I would like to test proloading of hover images in various browsers, so it'd be nice if the Rails server
can report what static files (public/images/foo.png) are given to the browser. Is there a way to show or see it (on development server)?
(it is using Rails 2.2.2)
| stackexchange/codereview |
i have this loop and it loops for large count like 30 000 times at least
i am looking for some way to improve it's performance
DbRecordDictionary is derived from DictionaryBase class
here is the loop:
ArrayList noEnter = new ArrayList();
DbRecordDictionary oldArray = new DbRecordDictionary();
DbRecordDictionary use... | stackexchange/codereview |
I am going through a tutorial and just came up with this error statement when trying to add a user to my db. I'm trying to figure out how to properly read these error statements. For instance I see that the output says syntax error, unexpected tASSOC. expecting keyword_end. So to try to fix that before posting here,... | stackexchange/codereview |
I'm having trouble working out how to quickly find out yes/no is a username in a role? I've gotten as far as:
Roles.FindUsersInRole("Admin", usersName)
But am a bit stuck, any easy way of doing this?
| stackexchange/codereview |
I'm a new programmer and English is not my mother language, so please forgive me in advance for both programming and English mistakes.
Here is what I want to do: I have a div tag that contains an image and a table (outside this div tag). Via jquery i'm trying to archieve a 'cropping effect' so I make my table draggable... | stackexchange/codereview |
I have strange program behavior while trying to read a value from a structure after assigning a value to it. I'm showing the related structure and function below:
/*Data struct for cor_entry */
struct cor_entry {
struct cor_entry * pre_entry;
struct cor_entry * next_entry;
long long unsigned int entry_data;... | stackexchange/codereview |
While trying to "git push heroku master", I keep getting the error :
Counting objects: 266, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (239/239), done.
Writing objects: 100% (266/266), 222.68 KiB, done.
Total 266 (delta 55), reused 0 (delta 0)
-----> Heroku receiving push
-----> Rails app... | stackexchange/codereview |
So I was trying to run some simple code with Code Contracts (that I haven't used for some time)
static void Main(string[] args)
{
double res = sqrt(-5);
}
static double sqrt(int a)
{
Contract.Requires(a >= 0, "a must be >= 0!");
return Math.Sqrt(a);
}
But it doesn't se... | stackexchange/codereview |
I need to customize how the m2m widget for Django Admin gets displayed but I am kind of stumped where to start. I have tried subclassing couple of widgets from django.forms and django.contrib.admin.wigets but nothing seems to be working.
Here's a depiction of what I am looking for https://i.stack.imgur.com/81AY3.png.
... | stackexchange/codereview |
I just installed the searchlogic gem, and when I run rake gems:install, I'm getting the following output:
gem install serachlogic
ERROR: could not find gem serachlogic locally or in a repository
Not the misspelling of "serachlogic". I don't think that's an error I introduced, but I'm not sure where I can fix it.
An... | stackexchange/codereview |
how can I stop threads safely?
downloadThread = new Thread(new Runnable() {
@Override
public void run() {
});
downloadThread.start();
}
| stackexchange/codereview |
I have an OpenGL program that uses shaders (OpenGL version 3.3, GLSL version 1.5). I have heard that the shaders actually run on the CPU unless you specifically tell it to run on the GPU. (Of course the whole reason I am using shaders is to speed up rendering by doing the calculations in the GPU instead of the CPU, so ... | stackexchange/codereview |
I have a .NET class that initialises some fixed readonly reference data. If I instantiate this class as a Singleton in Castle Windsor in ASP.NET then presumably all attempts to access this class by transient web calls will read from the single instance of the reference data in memory.
Is this a valid approach? Are the... | stackexchange/codereview |
This is a follow on from this post which does exactly what I need it to do except there's a problem.
I am rotating images using divs which just show and hide a div every 5 seconds using setInterval.
The problem with this approach is that I am loading animated gif files so even when the next image switches, it becomes m... | stackexchange/codereview |
I am trying to use RRDtool to create some graphs for monitoring network traffic.
I understand how most of the config to create the RRD's works, but im a little lost on the RRA definitions.
I want to create RRA's for 1 Hour, 1 Day, 1 Week, 1 Month and 1 Year.
Im jsut not sure how to work out the numbers for the RRA defi... | stackexchange/codereview |
So....
I have a SQL (MSSQL 2005) query that gathers some data I need to represent or send elsewhere. In this particular case I need to create a CSV from the query, which in PowerShell is pretty simple stuff.
HOWEVER my problem is this.
How do I run my query (preferably against a remote system/the SQL server) ?
How do... | stackexchange/codereview |
Can someone please explain how to install the hibernate plugin in Eclipse 3.6. I have tried to use the automatic install through market place but when after when i try to import the package
import org.hibernate...
it does not sees the file
Please, I'm in a real mess, someone helps please
thanks in advance!!
| stackexchange/codereview |
We have 3 functions with big o notations:
Func A: O(n)
Func B: O(n^2)
Func C: O(2^n)
If these functions does n proccesses in 10 seconds, how much time need to proccess 2 * n processes for each functions ? Also if you explain why i will be happy.
Thank You
| stackexchange/codereview |
How would you be able to stop people from downloading flash video from your site instead of viewing it in a flash player. I would like to prevent people from downloading the flash video by ripping the stream.
I am not looking for 100% prevention but ways to make this difficult and annoying.
| stackexchange/codereview |
I've run into a small problem using the WPF RibbonControl (October 2010 version). My idea was to bind the ItemsSource property of a RibbonGroup to my viewmodel, and use a DataTemplate to create RibbonButtons as needed. This works, but it causes a binding error (one for each button) when you show the window:
System.Wind... | stackexchange/codereview |
What is the SQL Server equivalent of the MySQL expression below?
... WHERE somefield REGEXP '^[[:blank:]]*ASD[[:blank:]]*$|^[[:blank:]]*ASD[[:blank:]]*[[.vertical-line.]]|[[.vertical-line.]][[:blank:]]*ASD[[:blank:]]*$|[[.vertical-line.]][[:blank:]]*ASD[[:blank:]]*[[.vertical-line.]]'
| stackexchange/codereview |
I want to create a service on Google App Engine (Python) that will receive a URL of an image and store it on Google Storage. I managed to upload from a local file using boto or gsutil command line, but not by retrieving the file via URL. I tried doing it using the HTTP requests (PUT) and I'm getting error responses for... | stackexchange/codereview |
So I've got a simple update trigger that copies the the deleted data into another table of the same format, with the addition of the modified date. It works great, however there are a lot of cases in the application code when an update is performed that doesn't actually change any values.
I'm trying to avoid these bein... | stackexchange/codereview |
I have some content on a webpage which contains æ ø å, but my webview cant show them properly.
Does anyone know what the problem might be ?
| stackexchange/codereview |
I am trying to use PdfSmartCopy from ItextSharp but I cannot find any relevant examples in c#.
The ideea is that I have a pdf containing form fields and the fields add 700kb to the size of the pdf document. The original document without form fields was 100kb.
Any other sugestions are welcome, especially o reduce the pd... | stackexchange/codereview |
I wanted to build a basic cookbook. With a Recipes habtm Ingredients Relation.
My first attempt was like this.
class Recipe < ActiveRecord::Base
# title, description
has_many :recipe_ingredients
end
class Ingredient < ActiveRecord::Base
# name, unit
has_many :recipe_ingredients
has_many :recipes, :through =... | stackexchange/codereview |
I am using JCarousel in my application to display images from the DB to my web page.In FireFox JCarousel is working fine but when the web page is loaded in IE8 browser it throws this error
Stop running the script? The script on this page is causing IE to run slowly.
If it continues to run your computer might become unr... | stackexchange/codereview |
I am developing an app where I need an image to be positioned precisely at a certain x and y position.The image will randomly be moving to new positions.
I cannot see how to accomplish this.
| stackexchange/codereview |
I am trying to output a very complicated matrix (~1.3MB in plain text) from Mathematica to use in a Fortran program. When I do this (via Splice) the resulting matrix is off by ~2% when numerical values are given to the variables. This is a problem since there needs to be an eigenvalue that is exactly zero, and the comp... | stackexchange/codereview |
I have a common partial for index where i want to insert some links.
On this links i would like to use the named_routes, like
link_to "Say hi",things_path(:param1=>:hello, :params2=>:there)
but i dont know if things_path is users_path, places_path or reviews_path, because this partial is shared for all controllers. Th... | stackexchange/codereview |
I want that users can surf to http://www.yyy.com/xxx for xxx being a parameter. and so with www.yyy.com/xxx/zzz . I have following routing which works fine:
Router::connect('/:town', array('controller'=>'places', 'action'=>'index'), array('pass' => array('town')));
Router::connect('/:town/:category', array('controller'... | stackexchange/codereview |
Using GDI+ to draw text on glass:
graphics.DrawString(s, Length(s), font, MakePointF(x, y), brush);
You'll notice that the ClearType enabled text draws very poorly on glass:
But with glass disabled the text, of course, draw fine:
By way of comparison here is Anti-alias font smoothing:
And here is no font smoothing:... | stackexchange/codereview |
Quick summary
Pinging back to a webservice in ajax from the client keeps the user's session alive, I don't want this to happen.
More extensive summary
For a website we're developing, we need the client to ping back (in js) to a webservice (ASMX) on the server (IIS7.5). This happens to let the server know that the user ... | stackexchange/codereview |
I have a strange error only happen in Window 7 and IE 8.
I use jQuery in a html. I double click and launch the html in IE. It will show error document.body is null inside the jquery library in the first time. But the error will disappear after i reload the page. The html just loading the jquery js file only and no othe... | stackexchange/codereview |
Do you have a better way to do that ?
QString str("I am a long long long"
+ QString("long long long")
+ QString("long QString") );
I don't like all this QString.
| stackexchange/codereview |
I have generated pdf programatically bt problem is text doesnt appear in pdf.
PLz provide me simple example of pdf creator.
This is my code :
-(void) MyCreatePDFFile //(CGRect pageRect, const char *filename)// 1
{
CGRect pageRect=CGRectMake(10,10,400,600);
const char *filename="/Users/msoni/Desktop/my.pdf";
CGC... | stackexchange/codereview |
I'm trying to parse HTML using TouchXML. However, it seems that the data I want to parse (I do not control the source, it's downloaded from the internet) is partially malformed - I get various errors during the parse. Therefore, it seems that I should be using the inbuilt tidy support to fix the HTML but I cannot seem ... | stackexchange/codereview |
I have a
<div style="cursor: move;">
<script type="text/javascript" src="h**p://www.some-external-js"></script>
</div>
the external JS loads some iframe with content:
<iframe src="somesource"></iframe>
I would love to change the mousecursor above the iframe, which is in my div box.
Unfortunately this is not possible w... | stackexchange/codereview |
Usually when an Activity starts using an Intent ,it uses from right to left transitions.i want to start activity that uses from left to right transitions.
How to do this?
| stackexchange/codereview |
I have an array of data that I would like to plot
temp=0.5*rand(500,10);
[~,offset]=meshgrid(1:500,1:10);
figure(101)
plot(temp+offset')
How can I set the line style to automatically change to the next style once the line colours have been through one cycle?
For this example I would like the 8-10th lines to have a dif... | stackexchange/codereview |
If I have 10 queries, and each query is updating a particular table (i.e., 10 different tables).
Can I open one mySQL connection, spawn 10 threads, each thread handles 1 query such that they can run concurrently instead of executing one by one.
Thanks!
| stackexchange/codereview |
I have less information about share point (only basic info). Microsoft released SharePoint for web developers. Microsoft also said SharePoint has compatibility with other .NET technologies like Workflow Foundation, WCF, etc and it's easy way to develop web sites and web apps.
Also as I know ASP.NET has compatibility ... | stackexchange/codereview |
I am working on some code that was previously written by another developer, and I came across the block of code below:
/// <summary>
/// Default Constructor.
/// </summary>
public Body(Revision parent)
{
mContainer = parent;
mSections = new ArrayList();
mSummary = new ArrayList();
}
/// <summary>
/// Constructs ... | stackexchange/codereview |
I'm doing a lot of GUI and graphics stuff and sometimes it would be convenient to break the running program when I press a hotkey.
Example: I want to analyze behaviour that depends on the current mouse position. I would like to place an inactive breakpoint, move the mouse to the interesting spot, press some hotkey, and... | stackexchange/codereview |
I'm doing a simple file upload in jsp. And i seem to have been stopped by this simple path issue. I'm developing on windows but will propably deploy on a linux machine. so i have the tmpdir and the finaldir under mywebsite/tempfiledir and mywebsite/finalfiledir
so i use this code (snippet of the servlet)
public class S... | stackexchange/codereview |
Does the Joomla framework provide functionality to programmers to install an extension from another extension? I mean a full joomla extension and not an extension to a component (such as a plugin for a particular component).
The purpose is to create an update tool that checks versions and updates extensions. It would b... | stackexchange/codereview |
I'm making the switch from Linq-to-SQL to Linq-to-Entities and in the process of conversion came across the error "LINQ to Entities does not recognize the method 'System.String Format(System.String, System.Object, System.Object)' method, and this method cannot be translated into a store expression". The following cod... | stackexchange/codereview |
I'm trying to format a mysql TIMESTAMP I get using the get.json function in jquery to look like this Nov 21st 2010, tried formatting through the initial select from the php script using the DATE_FORMAT class but it is all the information is read out as undefined. I tested out the php script by itself and it worked fine... | stackexchange/codereview |
I have a requirement.
I am accepting an USER input in a variable using UNIX(ksh) script.
file_name='po_header*.dat ; po_line*.dat ; po_dist*.dat'
When I echo,
echo "Data File Names : " $file_name
I will get all the file names available at the location. The output will be like given below:
po_headers_057.dat
po_h... | stackexchange/codereview |
I am trying to automate a website using WatIN IE.
As the website bans the ip after few request .So I am setting a bool ipbanned =true when ip gets bannned. In that case and i wish to change the IP. The SetProxy method successfully changes the ip adress with port.
but on next request I am getting this screen :-
Note: ... | stackexchange/codereview |
I'm working on some custom Control classes and need to do some initialization on them which is dependent on them being added to a form. Is there an event that fires when this happens?
I think this sample should be sufficient to show what I'm trying to do:
public interface IMyForm
{
ISomeObject SomeObject {get; set... | stackexchange/codereview |
I currently have a table that has a few hidden text boxes... The text boxes become visible when certain actions are performed.
The table though changes size according to when the textboxes are visible or now. Ex. When the textboxes are visible the table grows, and vice versa.
I would like to keep the table size at its ... | stackexchange/codereview |
why cannot we use process id insted of taking the port we are binding in socket programming.
in socket programming we create socket and get a socket descriptor and we bind to a specific port .for multiple connection why are we not using the process id as all the connection are also a process returning the processs id?... | stackexchange/codereview |
I currently have a bunch of methods in my controllers which take selected records from table rows.
So I might have something like
var ids = [];
var prices = [];
var customers = [];
$selectedRow.each(function() {
ids.push($(this).find('.id').text());
prices.push($(this).find('.price').text());
customers.pus... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.