instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
in VS 2010 Ultimate if You type a JS code an then press Enter, You'll notice that the 1st bracket is in the same line as e.g function header. How to turn it off ? It is very annoying for me
after pressed enter... =>
function a() {
}
I want it as:
function a()
{
}
| stackexchange/codereview |
I am trying to write a simple DCT algorithm in java. I want my findDCT method to have as a parameter an integer array like this:
public class DCT {
private Random generator = new Random();
private static final int N = 8;
private int[][] f = new int[N][N];
private double[] c = new double[N];
public ... | stackexchange/codereview |
I wanted to get a regex pattern for name where i m using for validation purpose.The pattern which i m using now is having some problem.The problem is if i give a single name like
jack morrison paul
its taking but if i give
jack paul
where i am giving jack and double space and paul its not taking.jack is first name ... | stackexchange/codereview |
How can I check if a scrollbar is present on a datagridview in Winforms.
Something like (pseudocode)
If(datagridview.verticalscrollbar = true)
do something......
Thanks.
| stackexchange/codereview |
I am trying to debug a package with in the SQL Developer. The method that i am trying to debug takes 2 parameters
PROCEDURE procedure_name (dblink IN CHAR, bDebug IN BOOLEAN DEFAULT FALSE)
When i click on "Debug" icon, it asks for inputs that i need to give to this procedure. I give
dblink:='linkname';
bDebug:=TRUE;
... | stackexchange/codereview |
why google map does not show duplicate markers?
My data has duplicate addresses - how to make them all appear e.g. 1-3 markers per city?
var map =
new google.visualization.Map(document.getElementById('map_div'));
var options = {};
options['dataMode'] = 'markers';
options['showTip'] = 'tru... | stackexchange/codereview |
When the webpage is loaded, a table with roughly 50 rows and 288 columns is loaded, but only about 5 rows and 25 columns are shown. We are trying to implement navigation of the rows and columns, pressing down moves up only 2 rows and show 2 new rows, or moving right shows 12 new columns and hides the 12 left most.
We a... | stackexchange/codereview |
I thought utf-8 would be able to handle just a neat £ instead of having to convert to entities?
What's the proper way of handling the GBP symbol with UTF-8 and HTML5?
(ps. don't think the html5 part should make any difference)
update:
Here's test document:
<!doctype html>
<head>
<meta charset="utf-8">
<title>GBP... | stackexchange/codereview |
Possible Duplicate:
Is there a way to get an user's email ID after verifying her Twitter identity using OAuth?
Using oAuth I'm able to sucessfully login and forward it back to my PHP application.
How can I get the email address of the authenticated person? At this point I just have an authenticated oAuth.
Can you ... | stackexchange/codereview |
Possible Duplicate:
How do I clone a generic list in C#?
hey i have been trying to clone a list and so far i found the function
addRange but i am pretty sure it does not clone the objects inside the list but doing a shallow copy of the list i would like to know how to clone the list
thanks in advance.
| stackexchange/codereview |
I have a logfile that is written by a 3rd party application and I'd like my application to "read" that log file in real/near-time, parse the new log entries and act upon certain events.
My thought was that I could achieve this with a combination of FileSystemWatcher (to signal file changes) and MemoryMappedFile (to con... | stackexchange/codereview |
I use the following command in some old scripts:
curl -Lk "https:www.example.com/stuff/api.php?"
I then record the header into a variable and make comparisons and so forth. What I would really like to do is convert the process to PHP. I have enabled curl, openssl, and believe I have everything ready.
What I cannot s... | stackexchange/codereview |
Trying to execute this statement in a rails migration to generate a multi column unique constraint/index:
add_index :contributors, [:project_id, :user_id], :unique=>true
I've also tried providing an optional :name to the method, but still getting the failure. There are no existing keys in this table
Mysql::Error: Dupl... | stackexchange/codereview |
This may not seem like a development question but there is a link.
I have been experiencing some issues loading some web pages from my development machine. They were painfully slow. I disregarded this until I tried running my own site and found that the culprit was the show.ad.js file provided by google adsense.
Using ... | stackexchange/codereview |
I'm trying to order a queryset by its generic relation names
Item.objects.order_by('content_object__name')
I have the following models in django:
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
class Item(models.Model):
conte... | stackexchange/codereview |
We're using Jboss, but we are really only using its JMS stuff. So, is there a way that I can trim down what's loaded when Jboss starts?
| stackexchange/codereview |
I have multiple menu files menu_language_en, menu_language_es...etc
I would like to load them using another variable, something like:
String lang="en";
inflater.inflate(eval("R.menu.language_menu_"+lang), menu);
Any idea??
Thanks
jo
| stackexchange/codereview |
I have created a project using the m2 eclipse tool and selected the web application archetype now if I try to package this empty application I get a build failure saying
[ERROR] Plugin org.apache.maven.plugins:maven-war-plugin:2.1 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugin... | stackexchange/codereview |
I am working with Gridview and one of columns takes long time load and makes the whole page to load slowly. I want to know if there is a way I can show everything (other controls and partial gridview) first except for the slow column, and load the gridview(or the column) later as soon as the data for the column is ava... | stackexchange/codereview |
I'm trying to use Ajax Upload (http://valums.com/ajax-upload/), a jQuery plugin for async. file uploads.
To use the plugin, you're supposed to create an qq.FileUploader object, pass an options object and attach the object to a 'div' in the DOM.
My problem is that the plugin works as long as the 'div' wasn't dynamically... | stackexchange/codereview |
I've a got a method in ActiveRecord::User:
def create_user_from_json(user)
@user=User.new(user)
if @user.save!
@user.activate!
end
end
And I'm trying to call it in a plugin's module method. The plugin is json-rpc-1-1. Here is the relevant code:
class ServiceController < ApplicationController
json_rpc_servi... | stackexchange/codereview |
I want to copy all the data in one namespace, say www.mysite.com, to another namespace, say nightly.latest.mysite.appspot.com. What's the best way to do this?
The example namespaces are not random: they're the namespaces that are set by a NamespaceFilter for the given domains that serve the app.
I want to be able to pu... | stackexchange/codereview |
I have a string where i want to detect if it contains at least one question mark. if it does return false. I tried to look for it but questiomark seems is a special character. How would you go about it?
thank you.
| stackexchange/codereview |
Please take it easy on me. I'm a newbie and is trying to learn mapkit. Just wondering if you can help me find my way with this one.. I have a function which find the coordinate in AppViewController.m
(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLoc... | stackexchange/codereview |
If I use jQuery, I can get at externally defined styles like:
$("#element").css("background-image")
If I try to do this without jQuery, like
document.getElementById("element").style.backgroundImage
I get an empty string back. Is there a way to get this information without jQuery?
| stackexchange/codereview |
I would like to change the report is being generated progress indicator icon
(circle) with a custom one.
We're on: SQL Server 2008 R2. Reporting Services 2008 R2.
I know that I can customize the text with IReportViewerMessages Interface.
Is there a similar approach for changing the progress indicator icon?
Best regar... | stackexchange/codereview |
http://u.neighborrow.com/items/recent/ for this page I obviously want to ban links and other spam.
The data is entered on this page http://u.neighborrow.com/items/create/
| stackexchange/codereview |
I'm developing a swing project in Netbeans. I've created a JFrame and added a modal JDialog instance in that JFrame to get credentials from user. The JDialog instance is set visible in the JFrame's constructor. When it runs, the JDialog instance is shown before the JFrame, as expected, but the JDialog window comes resi... | stackexchange/codereview |
This code only shows categories with articles in them.
I want to show all categories.
Pls help.
$query = "SELECT C.id, C.jcat_name,COUNT(A.catid) AS catid FROM jt_categories C INNER JOIN jt_articles A ON C.id = A.catid GROUP BY C.id";
| stackexchange/codereview |
Is @MvcHtmlString.Create(Html.SomeHelperThatReturnsHtml) the prefered way of printing Html with Razor view engine?
| stackexchange/codereview |
Class A
{
A(int& foo) : m_foo(foo) {}
int& m_foo;
};
int main(void)
{
A* bar = 0;
{
int var = 5;
bar = new A(var);
}
std::cout << "Is m_foo still valid?:" << bar.m_foo << std::endl;
}
"m_foo" is a reference and "var" is a local variable which is given to the constructor. "var" gets out o... | stackexchange/codereview |
So if I have something like [(a,b,c,d)] and I wish to remove the ()s (in the whole list there will only be one set of parentheses - immediately after the '[' and before the ']'), how come my rule: curly_for_square( [(C)], [C] ). doesn't work? Seems like it should but I'm sure there's a simple reason!!
| stackexchange/codereview |
I have a Google Map (API v2).
It is located in http://mydomain/maps.
Under that address it works fine in every browser.
I use it, however within a Thickbox (3.1) from the home site http://mydomain.
That doesn't work in IE8 (but only in the IE8 mode; IE7 and IE8-compatibility work fine) - the output is as attached.
No ... | stackexchange/codereview |
I have some RTF data shared between Windows and Mac. I use RichEdit control to edit this data for Windows and so if user inserts some images, I get the RTF with embedded images.
Now I need to display (and edit) this data on a Mac, but NSTextView supports only RTFD (rtf with attachments) and just skips embedded images.... | stackexchange/codereview |
For example:
public class Stereo {
public Speaker? LeftSpeaker;
public int? Volume;
}
The int? works fine, but I'm unable to make Speaker nullable. This is turning out to be surprisingly hard to Google, I thought this would be simple ...
| stackexchange/codereview |
I am trying to change images of my tabbar in a ViewController, but to display the new images, I must click on each tab bar item.
for (CustomTabBarItem *myItem in self.tabBarController.tabBar.items){
myItem.enabled = YES;
myItem.badgeValue = @"1";
UIImage *myImage = [[UIImage alloc] initWith... | stackexchange/codereview |
It appears that all the touch methods of a UIView are only called if the touches began within the bounds of that view. Is there a way to have a view respond to a user who has touched outside the view, but then dragged his fingers into the view?
In case it matters, my specific application is for dragging a MKPinAnnotati... | stackexchange/codereview |
I want to get a few lines from a file which is in a compressed .gz file.
The .gz file contains many txt files and I want to search a string in all these txt files and need to get the previous 3 line as output, including the current line (where the search string is present).
I tried zgrep and got the line number, but w... | stackexchange/codereview |
Is it possible to use background and background-color for body in one time?
body {
background-color: #AAA;
background: url(../images/foto.jpg) no-repeat bottom right;
}
Background-color works only if I remove background.
| stackexchange/codereview |
I'm trying to connect to vbox hypervisor on an Ubuntu 10.04 machine through libvirt java binding by simply invoking:
Connect conn = new Connect("vbox:///session", false);
but I got this exception:
libvir: warning : Failed to find the interface: Is the daemon running ?
libvir: Remote error : unable to connect to '/var/... | stackexchange/codereview |
This code gives me segmentation fault about 1/2 of the time:
int main(int argc, char **argv) {
float test[2619560];
int i;
for(i = 0; i < 2619560; i++)
test[i] = 1.0f;
}
I actually need to allocate a much larger array, is there some way of allowing the operating system to allow me get more memory?
... | stackexchange/codereview |
I'm having problems with a Nullable DateTime in VB.NET (VS 2010).
Method 1
If String.IsNullOrEmpty(LastCalibrationDateTextBox.Text) Then
gauge.LastCalibrationDate = Nothing
Else
gauge.LastCalibrationDate = DateTime.Parse(LastCalibrationDateTextBox.Text)
End If
Method 2
gauge.LastCalibrationDate = If(String.IsN... | stackexchange/codereview |
I want to write a chroot wrapper in python. The script will be copying some files, setting up some other stuff and then executing chroot and should land me in a chroot shell.
The tricky part is that I want no python processes running after I am in the chroot.
In other words, python should do the setup work, call chroot... | stackexchange/codereview |
This is the simplified version of my problem:
I'm trying to extract all letters surrounded by non-word characters but my regex doesn't work when the non-characters overlap.
Here's my code:
var text = "Z#A#B#S";
var regex = new Regex(@"\W(?<letter>\w)\W");
foreach (var m in regex.Matches(text).Cast<Match>())
{
Conso... | stackexchange/codereview |
Eclipse is very handy for generating javadocs for me. I have it set up to generate a class javadoc in the following format simply by pressing Ctrl-Shift-J:
/**
*****************************************************************************
* Class name - Desc
*
* @author Scott Johnson
* @version 1 <timestamp>
****... | stackexchange/codereview |
I have a list object in my application:
List<TestData> data = new ExportBM().GetData();
This list object contains an ImportDirectory field. I want to use Xceed Unzip to unzip the files in the ImportDirectory
so far I have the following:
foreach (TestData item in data)
{
item.ImportDirec... | stackexchange/codereview |
I need to compare a string grabbed from a URL, with a list of cities in a MySQL DB, using PHP
SELECT 'city' WHERE 'city' IN (" . $citynameArray . ") LIMIT 1;
$citynameArray is to be list of all possible permutations of $cityname, where $cityname may be up to 5 strings separated by hyphens, BUT 'city' may use either sp... | stackexchange/codereview |
I have two associated tables (simplified schema)
mysql> describe booking;
+----------------+------------+
| Field | Type |
+----------------+------------+
| id | int(11) |
| room_id | int(11) |
| date_from | date |
| date_to | date |
+----------------+----... | stackexchange/codereview |
I have the following code in my App.xaml.cs
private void App_Start(object sender, StartupEventArgs e)
{
if ( CompletedInstall())
{
//using show to allow for pacifier if loading is slow
var manager = new WINServiceConfig();
MainWindow = manager;
manager.ShowDialog();
}
}
private bool CompletedInst... | stackexchange/codereview |
I was just reading The Linux Kernel Module Programming Guide and and got stuck on character device drivers example.
Makefiles for previous examples were provided, but not for this one, so I'm trying to make one:
obj-m += chardev.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make ... | stackexchange/codereview |
I want to know how to execute two subroutines in parallel.
In Perl Tk, I am using one buttons widget and text widget.
Button : is to execute the parser function
Text : is to display the print statement of the parser
Thing is that after executing the parser function only the text widget is getting executed
[because... | stackexchange/codereview |
I made a simple function
localStorage.setItem('foo', 'bar')
alert(localStorage.getItem('foo'));
If I run it like this it works.
If I remove the first line after I run it once and I let only this
alert(localStorage.getItem('foo'));
I get a null value in Firefox 3.6.12
In chrome it works.
Any ideas ?
| stackexchange/codereview |
When we Truncate Table in SQL then all the all records from but table exist. I want to know constraints,indexs remain exist or not ?
| stackexchange/codereview |
I have created my first hello-world application on BlackBerry and I am using Eclipse to write the code. Unfortunately I get java.io.filenotfound when I create the .cod file from the command prompt with bbwp.exe.
| stackexchange/codereview |
var global_ref = null;
function a(){
function some_click_handler {
global_ref = $(this);
}
}
// later in
function b()
{
$(global_ref).css(...) // or global_ref.css(...) ???
}
Is above concept right? and the syntax right?
| stackexchange/codereview |
In using Enterprise Library, there was an issue with having to manually close db connections, as GC, when scanning the heap, looks for items out of scope.
A connection that is part of a pool that is being used but the connection state is broken or fetching, but you have already received your results, will be kept open,... | stackexchange/codereview |
My scenario is:*
Workflow A - configured to start when a new item is created in List A:
Creates a new list item in List B.
Workflow B - configured to start when a new item is created in List B:
Creates a new list item in List A.
When I test this i get the following:
I manually create a list item in List A.
Workflow A... | stackexchange/codereview |
Okay, so I'm making a platformer, and I wanna know how I can make a arc'd jump easily. Like what Mario does in super Mario Bros 1. Any ideas on a simple way to accomplish this?
| stackexchange/codereview |
I want to create windows service for existing in Sun Glassfish v2 server.
| stackexchange/codereview |
I have this Caliburn.Micro sample project I'm putting together and I am having trouble with the convention-based bindings with nested views/viewmodels.
As an example, let's say I have a shell view, ShellView, backed by ShellViewModel which is a screen conductor.
I have a content control in the ShellView bound to Activ... | stackexchange/codereview |
how to configure Sweave it's work and recognize for Rpy2?
I use this
import rpy2.robjects as robjects
R["library"]("utils")
R["library"]("tools")
R['sweave("/var/www/tmp/pywps/central.Rnw")']
R['texi2dvi("/var/www/tmp/pywps/central.tex", pdf=TRUE)']
but I get these errors
[File "/usr/lib/python2.6/dist-pack... | stackexchange/codereview |
I built 2 custom posts (firemen and mario) for my template, and I built for each of them 2 taxonomy (type-mario and the term game, type-firemen and the term game)
at the moment I use query_posts() for showing title of both posts linked with their term but I d'like to use get_posts() instead.
<?php query_posts( array( '... | stackexchange/codereview |
I am brand new to C#. I'm taking a class on it right now, and one of our class examples wont compile. Visual Studio 2010 gives me this error: There is an error in XML document (3, 2).
How should I edit the XML file to make it work with the code?
Thank you for your help!
public class SerializeIn
{
public static void... | stackexchange/codereview |
I'm trying to take the text displayed in a TextView and apply tweening to individual characters. I can't think of how to accomplish this without having a separate view for each character. I hope that's not the only way to solve this problem, because it just seems incredibly messy.
| stackexchange/codereview |
I'd like to start doing limited beta testing of an iOS app. I know how to do regular ad-hoc distribution of my existing app, but I've had one of my potential beta users tell me that when they test other apps, they end up having a separate app installed alongside the production one. But I don't know what the other devel... | stackexchange/codereview |
./configure --enable-avfilter --enable-filter=movie --enable-gpl --enable-postproc \
--enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis \
--enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac \
--enable-libxvid --enable-libx264 --enable-libvpx --enable-libspee... | stackexchange/codereview |
I have popup in my android app. In popup I have button for closing popup with id="imbClosePopUp", but when I try to set to that button clickListener app crashs.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
... | stackexchange/codereview |
I am still in a process of figuring out the exact typing rules/implications involved in here.
It seems easy/easier if the types in the examples are "simple enough" to "fit well" as in almost all simple examples is the case, but it becomes more interresting/difficult (at least for me) in comparing things to the typing g... | stackexchange/codereview |
I have some usage queries for my web app's database, the results of which I want to display graphically. Is there an easy-to-use API that exists for this purpose?
I want to show things like average query-time per user (a small user-base), average query time per day, and things like that. I think it would be cool to sho... | stackexchange/codereview |
So im basically using a link, to scroll through a series of divs to select the correct one.
Ie click on happy, and scrolls to 'happy' div,
However, the scroll seems to not go to what its linked to, but scrolls to the third div in the list.
Heres the code:
<div id="portfoliowrapper">
<div class="title">My Por... | stackexchange/codereview |
I am starting to write an xbap (wpf web app).
I create a new project and run it and Firefox fails (it just keeps trying to open it with "Windows Presentation Foundation Host).
I know that Firefox and Microsoft don't really see eye to eye, but surely there is a way to do this now days?
Saw this post that shows a hack of... | stackexchange/codereview |
I have a dozen text boxes in a web page that I wish to 'bind' to the properties of a javascript object. So - when you update the textbox, the object changes and vice versa.
The other day I thought I stumbled across a jquery library that did this - however, for neither love or money, I can't find it today!
Can someone... | stackexchange/codereview |
I have just started out learning rails and ruby, so please bear with me if this is too dumb.
There are several different AppModule types in my app, which have different behavior but similar data, so I save them using single table inheritance.
However when trying allow the user to explicitly select which type they want... | stackexchange/codereview |
I need to escape entire javascript code block using escape() compatible function via PHP, and then put resulting JavaScript code back into a code construct like this:
document.write(unescape(ESCAPED_JS));
I'm not trying to increase security by doing this, protect code, or anything like that. Just to make it a bit hard... | stackexchange/codereview |
I am loading about 40 files to Oracle from my SSIS ETL package. At the end of each files load process, I run a SQL query to to perform a Type-2 update for old data expiration.
The SQL Query is stored in a variable called ExpireOldRecordsQuery which is built at runtime so the EvaluateAsExpression property is set to TRUE... | stackexchange/codereview |
Is there some intelligent date / time parser library for Java? By intelligent I mean, that I don't need to specify the date / time format. The API should be similar to this:
Calendar cal = DateTimeParser.parse("01/06/10 14:55");
cal = DateTimeParser.parse("1 Jan 2009"); // assumes 00:00 time
cal = DateTimeParser.parse(... | stackexchange/codereview |
I am working on an NHibernate project and have a question regarding updating transient entities.
Basically the workflow is as follows:
Create a DTO (projection) and send over the wire to client. This has a small subset of properties from the entity.
Client sends back the changed DTO
Map the DTO properties back onto th... | stackexchange/codereview |
I can't seem to pass an argument to a slot. If I don't pass an argument, the function rolls through fine. If I pass an argument (integer), I get the errors "No such name type" and "No such slot" when I compile.
In my header, I declare:
private slots:
void addButton(int);
signals:
void clicked(int)
in my Main.cpp, I... | stackexchange/codereview |
I try to arrange two buttons (with images on them which work fine) next to each other and to center them horizontally. That's what I have so far:
<LinearLayout android:orientation="horizontal" android:layout_below="@id/radioGroup"
android:layout_width="wrap_content" android:layout_height="wrap_content"
... | stackexchange/codereview |
Possible Duplicate:
return statement vs exit() in main()
I've just read the first chapter of Accelerated C++ (seems like an awesome book), and at the end the author says
However, explicitly including a return from main is good practice.`
Why is this considered good practice? In C99, I always omitted the return 0, ... | stackexchange/codereview |
I'm making a function that takes two pointer to strings as arguments.It works fine, as long as you pass it valid arguments.
I wanna know how to check that these pointer are valid and not for example two random ints . How do I do that?
char ** LCS ( char * s1, char * s2) //thats the function
...
LCS(0,0) //...awful ... | stackexchange/codereview |
I've currently got a service that I created on my machine and it worked fine locally, but when deployed to our Windows 2003 server using IIS 6.0 I get the exception:
The HTTP request is unauthorized with
client authentication scheme
'Anonymous'. The authentication
header received from the server was
'Negotiat... | stackexchange/codereview |
I'm currently coding a raytracer. I wonder how to blend a primitive color with a light color.
I've seen many combinations.
Some just add the two colors. This gives me very strange results.
Some mutiply each components. It looks ok, but in the primitive is blue ({0, 0, 1}) and the light is red ({1, 0, 0}), it is just bl... | stackexchange/codereview |
I was trying to override a C-style function (func) in a library with a C++ style function accepting different arguments, as the code below demonstrates.
I compiled test.cpp into a shared library libtest.so, and compiled main.cpp and linked it with the libtest.so library. This all works, upto the linking step, where I g... | stackexchange/codereview |
What's an accurate way of checking whether an object can be atomically pickled? When I say "atomically pickled", I mean without considering other objects it may refer to. For example, this list:
l = [threading.Lock()]
is not a a pickleable object, because it refers to a Lock which is not pickleable. But atomically, th... | stackexchange/codereview |
I have the following setup in Java,
public class Main {
// starts sub class
SubClass sub = new SubClass();
sub.start();
// sub will keep running and call method alert() on a specif change
// method alert is void but updates a public variable named status on sub
while(1==1) {
// I shou... | stackexchange/codereview |
Why can you kind of cheat compiler this way:
const int a = 5;
*((int*)&a)=5; // VC/armcc does not complain
when above is "abridged" equivalent of this:
const int *ptr2const = &a;
int *ptr = ptr2const; // as expected error is raised here
*ptr = 5;
| stackexchange/codereview |
I'm looking at this so question where the answerer shows a great way to throw a NotFoundException from the Application_Error method in the Global.asax.
This is great however I'd like to modify it a little... just not sure how.
I've got a NotFound view and a Error view in my Shared views folder. I'd like to continue wi... | stackexchange/codereview |
On my page i have some javascript and ofcourse IE has prevented the page from running scripts or activex controls. if they click to allow the scripts to run can i store that in a cookie?
I am willing to read and write the cookie in which ever language that would allow this.
| stackexchange/codereview |
Like the following, I'd like to communicate with many PC's in a specific IP range.
My PC ---+------> Client A PC
+------> Client B PC
+------> Client C PC
.................
+------> Client Z PC
Because there are too many clients to communicate, I tried it by mulit-threading.
socket.... | stackexchange/codereview |
I have an Options menu up and running in my Android application and I've overridden the onCreateOptionsMenu, onOptionsItemSelected and onPrepareOptionsMenu methods to customize the menu a little.
My question is related to keeping the Options menu open after the user clicks on a menu item. Basically, I'd like to be able... | stackexchange/codereview |
I have a sharepoint workflow that I created in VS2010, and I've deployed it through the web interface to my sharepoint 2010 environment. The ui says that it's been deployed, and it is activated on my site. If I look in my site features, I do see the entry for it and everything looks good. But when I go to any of my ... | stackexchange/codereview |
I've got my page working in FF, Chrome, Safari, and even IE8... as long as ActiveX is enabled.
[link removed]
To get the CSS3 features (rotation, opacity, text-shadow) working in IE8, I had to use ActiveX filters. My problem with this is that when you first go to the site, it pops up with a banner at the top, which us... | stackexchange/codereview |
I am trying to use a static constructor like the following:
public static DataManager()
{
LastInfoID = 1;
}
and getting this error:
access modifiers are not allowed on static constructors
I would like to know what's my problem.
| stackexchange/codereview |
In this thread we learn how to associate MIME types and file suffixes with your iPhone app so your app will be invoked when someone tries to open a document of that type. Great.
I'm wondering how to invoke this magic from another app: given a document with a known MIME type, how do I ask iOS to "launch whatever app ac... | stackexchange/codereview |
I have a jqgrid where the database table has a few thousand rows, but the jqrid shows only 15 at a time.
It should be displaying very quickly (it doesnt take long to query 15 rows). But instead it takes 10 - 20 seconds, which indicates to that it is retrieving the entire table each time.
The grid is defined like thi... | stackexchange/codereview |
I have an old function which is missing lines for Mozilla/Firefox and thus JavaScript is not working properly in it. The function tracks mouse-coordinates, so that I can position windows.
How to make the code work in Firefox as well?
Xoffset = -60; // modify these values to ...
Yoffset = 20; // change the popup positio... | stackexchange/codereview |
Would NServiceBus or an equivalent ESB be appropriate for an application that has a bunch of different kinds of background maintenance-type tasks? For example:
Scanning databases for the occurence of certain words in user-generated content
Updating database tables that store the results of relatively expensive queri... | stackexchange/codereview |
I know this is probably not the right place to ask this question, but I don't know where else to turn. I tried google, but it hasn't helped me this time.
I have Visio 2007 Professional. I am trying to create a database model, complete with primary keys, foreign keys, and relationships. The problem is that I can't figur... | stackexchange/codereview |
$name = $_POST["name"];
$url = $_POST["url"];
$active = $_POST["active"];
if($action == "add")
{
var_dump($name); // Returns: String(10) "..."
var_dump($url); // Returns: String(27) "..."
var_dump($active); // Returns: String(2) "..."
addSponsor(); // Returns: NULL NULL NULL
}
function addSponsor()
{... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.