instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
i have a calender control like this
<asp:Calendar ID="CldrDemo" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
OnSelectionChanged="CldrDemo_SelectionChanged" OnDayRender="CldrDemo_DayRender">
</asp:Calendar>
OnDayRender event i have code like this
protected void CldrDemo_DayRender(object s... | stackexchange/codereview |
I am trying to teach my self hibernate with a net-beans tutorial. Here are one link, but I tried several, using same sample database: (so far I am only allowed one hyperlink ;0 )
http://netbeans.org/kb/docs/web/hibernate-webapp.html
I would have thought Netbeans makes it simple, but the creation of pojos / mapping f... | stackexchange/codereview |
Is was wondering how to search for try/catch block that does't have log.Error(ex) inside its catch block. By search, I mean using Visual Studio built in regex search.
Regex would find block like this:
try
{
CallSomeExceptionalFunction();
}
catch(Exception ex)
{
CallSomething();
// missing error handling
}
... | stackexchange/codereview |
Im using the following code:
jQuery(document).ready(function () {
jQuery('<%= btnSave.ClientID %>').click(function(){
alert('hello world');
});
});
And when I click the asp.net button:
<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
It just doesnt fire. Anybody know why?
Cheers,
... | stackexchange/codereview |
I've registered as an app developer with the Microsoft store but I'm at a loss, under devices I'm told that I need to authorize devices to use for app development but it says: "Adding additional devices must be accomplished through Visual Studio" with no added information. I tried using the 'XNA Game Studio Device Cent... | stackexchange/codereview |
I have the following class of Schedule and using .Net Framework 4.0.
this class has two constructors, both having the parameter of interval with a default value of 120 seconds. is there any way to set the default value of interval in a private variable and then assign that variable to interval parameter. I tried doing ... | stackexchange/codereview |
im using jquery ui potlet and i need the portles be initialized dropper.
Now when the pages load portles collapse is on mode.
Thanks.
| stackexchange/codereview |
I am having a little trouble getting this to work. I have several anchor tags on a page that use scrollTop for its animation. HTML example
link
<a id="TOS" href="#Svc">What are your terms of service?</a>
and the target
<div class="tabWrapp" name="TOS" id="Svc">
<!-- /tos tabWrapp --></div>
and the jquery
$('a#TOS').b... | stackexchange/codereview |
Is it possible to spoof the user agent using a Safari extension? I know that Safari itself is able to spoof using the Develop menu item, but it's too limited for me.
As far as I know, Safari extensions use 'start' and 'end' scripts, but both are executed after the document has been loaded, so I can't use those scripts ... | stackexchange/codereview |
I have a domain class that looks like this. I want NHibernate to save the current value of LastUpdate when inserting/updating so that I can use it in queries, but to ignore it when retrieving a Foo from the database and let the object itself recalculate the value when I actually access it.
public class Foo {
public... | stackexchange/codereview |
To mimic the MySQL-REPLACE statement (aka UPSERT) I need to try to UPDATE a record and if that fails - INSERT it. But how can I detect that the UPDATE has failed in my SQL procedure?
begin transaction;
create table pref_users (
id varchar(32) primary key,
first_name varchar(32),
last_name varchar(... | stackexchange/codereview |
When starting my android application, I need to create a directory on the sd card, for a small number of users this fails and I can't figure out the reason for it...
(I've found similar problems caused by the WRITE_EXTERNAL_STORAGE permission missing, it's there and it works for almost all users so I don't think this i... | stackexchange/codereview |
am used lot of time , i know the diff between sql query and sp ,
SQL query will be compiled everytime it is executed.
Stored procedures are compiled only once when they are
executed for the first time.
This is general database question
But one big doubt is ,
For example ,
one dynamic work , that is i pass the us... | stackexchange/codereview |
hey guys im creating a stored procedure for search form in the asp.net im getting error, code is given below
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[sp_searchcustomervendordetails]
@customervendortype varchar(30)=Null,
@customervendorid varchar(30)=Null,
@customervendorname va... | stackexchange/codereview |
I don't know if GDI+ supports saving a bitmap to 16-bit grayscale indexed png, but if it does I can't seem to be able to do it. Is this possible? If not, is there an open-source library that can be used?
| stackexchange/codereview |
In Perl, how can I delete everything in a string that comes right after a specific sequence of characters?
For example, if I had the string TATPASSTERMABSD, I want to only keep TATPASS because I want to delete everything that includes and comes right after TERM.
| stackexchange/codereview |
When loading a page of my site I see a htaccess password popup. If I click cancel 2 or 3 times the page loads fine, so it must be one of the resources.
How can I find out which resource is triggering the password pop-up? This is annoying our customers ...
One important point: I only see the popup in Internet Explorer! ... | stackexchange/codereview |
I'm trying to figure out how to enhance the authenticate method with additional functionality.
e.g.
Expiring passwords
special password formats
length requirements
etc...
It is pretty straight forward for the site's frontend, but what about the admin panel?
I reckon that I should override the User's Manager obje... | stackexchange/codereview |
I created a new MVC application and added an Entity Framework model generated from the NerdDinner database.
I looked at the connectionStrings section of my web.config and was confused at the connection string that it created:
<add name="NerdDinnerEntities" connectionString="metadata=res://*/Models.NerdDinner.csdl|res:/... | stackexchange/codereview |
I tried to search for my error, read some topics, but I couldn't find a hint why it would be happening. If someone could help me to at least get some hint of how I can check out what is happening, so I`m able to fix it, it would be greatly appreciated.
I have coding an application that has several bpl linked together t... | stackexchange/codereview |
I'm writing a landing page to test a business idea.
For testing purpose, I want to write a Credit card number field, to see if the customer is actually ready to buy the product.
As it is only a test, I don't want this value to be submitted.
Actually for security purposes I don't even want this value to be sent in the r... | stackexchange/codereview |
How do I code a WMD plug-in for the Elgg framework?
| stackexchange/codereview |
i want to develop a web based multi player game. how can i use x3d format to make such game? or will i stick to standard download and play type game usually written in c++?
| stackexchange/codereview |
I've two different template classes, one of them using as parameter an object of the another template class. i'm getting an error message:
collect2: ld returned 1 exit status
make: * [main] Error 1
I'm working with explicit instantiation of templates and I found some related posts but they were mostly related... | stackexchange/codereview |
I have a final question on my piece of code. As a last thing i want to build in a function which will ignore the case sensitivity. So "user" and "USER" and "UsEr" should be treated the same way. I have a first idea how to implement such a function. Thats what i tried out:
<% if (name != null) { namecheck = na... | stackexchange/codereview |
I have written a JCA resource adapter before.
However, now I find myself in a position of having to write one solely to get access to the BootstrapContext and its associated WorkManager, and effectively for no other reason.
If I'm reading the specification correctly--and that's my question--it looks like if I want some... | stackexchange/codereview |
Let's say Class contains a reference called matrix_:
Class.h
class Class
{
Matrix& matrix_;
}
Class.cpp
Class::Class() : matrix_(Matrix())
{
}
I get the error: invalid initialization of non-const reference of type ‘Matrix&’ from a
temporary of type ‘Matrix’.
I see that the problem is that the temporary object w... | stackexchange/codereview |
This is my Java 1.6 class:
public class Foo {
private ArrayList<String> names;
public void scan() {
if (names == null) {
synchronized (this) {
this.names = new ArrayList<String>();
// fill the array with data
}
}
}
}
Findbugs says:
Inconsistent synchronization of com.XXX.Foo.n... | stackexchange/codereview |
How can I go from an SQL statement to AJAX?
I know this is a broad question so here is what I am trying to do and what I have tried.
I have using asp.net(vb) connected to the database and put the information in a dataset and datagrid.
(I don't want to use a datagrid anymore)
I know how to make my dataset into xml and j... | stackexchange/codereview |
In Django admin interface, Is to possible to exclude some of the fields in Inline?
| stackexchange/codereview |
I am using the following NSManagedObject which was automatically generated by Xcode:
@interface Portion : NSManagedObject
{
}
@property (nonatomic, retain) NSNumber * volume;
I would like to create a custom getter/setter to convert between ml/oz depending on what the user has set, that way the database always stor... | stackexchange/codereview |
I am writing a Silverlight class library to abstract the interface to a WCF service. The WCF service provides a centralized logging service. The Silverlight class library provides a simplified log4net-like interface (logger.Info, logger.Warn, etc) for logging. From the class library I plan to provide options such th... | stackexchange/codereview |
Hello is it possible to know if the user tries to uninstall an application and ask for password in order to continue? I have a security application and I would like to ask the user to authenticate before uninstalling the application is it possible and how?
| stackexchange/codereview |
I have a report that joins multiple tables. One possibility for this join is that no rows are returned under part of the selections criteria. Sort of.
I have 3 groups: Movie Rental Place, Type of Movie, Rented / Not Rented / No Interest to Rent.
So an example could be:
Blockbuster | Comedy | Rented: List rented movie... | stackexchange/codereview |
I have a backup program that is currently running in our Corporate Environment on about 70 machines. A mixture of Laptops, Desktops and Windows (xp-32, vista-32, vista-64, 7-32-7-64) with no problems.
There is one exception, and it's the reason I'm posting here for assistance.
On one machine that is a Dell Latitude ru... | stackexchange/codereview |
I have a web server and installed wordpress on it. I would like to know about the files permissions which are required to secure my site. (last time XSS happed on my site, they wrote inside my all index.php files and some other files. I don't know how they did this.)
What are the best file permissions?
| stackexchange/codereview |
I got a gridview which auto generates columns. One of the columns is a date field.
Somehow, i cant sort the date field. It's being interpreted as a string.
The data comes out a database. The datatype there is set on datetime.
This is the code in the aspx file:
<asp:BoundField DataField="date" HeaderText="date" SortExpr... | stackexchange/codereview |
I have a problem connecting to any serial port (want to exchange with an Arduino) using c++ on visual studio.
I'm using the SerialClass given in the Arduino playground, but can't open an handle to my port. It throws ERROR_FILE_NOT_FOUND on every try..
I've been testing many other ways of notating the port:
"COM1"
"COM1... | stackexchange/codereview |
I've been following the polls tutorial up until the point where I should have a login page for the admin backend. http://docs.djangoproject.com/en/dev/intro/tutorial02/
Instead I get the welcome page like this:
I have enabled the admin app in INSTALLED_APPS, synced the db and tweaked urls.py so I'm not sure what the p... | stackexchange/codereview |
When I print out a value it has a u in front of it, I think it is some type notation, what is it? Where I can find a list of such notations?
| stackexchange/codereview |
I saw there are apps that have a different price on different iTunes stores (according to location). How do they do that? I didn't see any place in iTunes Connect that enables that.
| stackexchange/codereview |
I'm searching for a master list of all Tkinter events. I've been googling for such a list all all morning without success. Any references for such a list would be appreciated.
| stackexchange/codereview |
4.7 and like to overlay two images on a qgraphicsview. The image on top shall be semi-transparent to allow to see through it. Initially both images are fully opaque. I expected some function for setting a global alpha-value for each pixel to exist, but it seems like there is no such function. The closest thing to it is... | stackexchange/codereview |
I want to install a Rails 3 plugin from a local git repository. I have tried
rails plugin install git:/c/Users/Mike/myplugin
where myplugin is the git repository, but I get a not-found error
Plugin not found: ["git:/c/Users/Mike/myplugin"]
I've also tried these to commands without success:
rails plugin install git:/... | stackexchange/codereview |
I'm trying to write a function to determine the euclidean distance between x (one point) and y (a set of n points).
How should I pass y to the function? Until now, I used a matrix like that:
[,1] [,2] [,3]
[1,] 0 2 1
[2,] 1 1 1
Which would pass the points (0,2,1) and (1,1,1) to that function.
Ho... | stackexchange/codereview |
Like the example in cakephp manual, http://book.cakephp.org/view/1323/Containable#Containing-deeper-associations-1325, i need to fetch data from a model through a condition on its association model.
I have:
Model Language:
class Language extends AppModel {
var $name = 'Language';
var $actsAs = array('Containab... | stackexchange/codereview |
I've got a form which is being submitted via PHP with 3 submit actions:
Save and Continue
Save and Exit
Exit without Saving
I'd like to trigger an "OnBeforeUnload" alert to display if the user DOES NOT click on any of the form actions to advise them that they're leaving the page, and their changes may not be saved.
I... | stackexchange/codereview |
Have taken over the management of a system written in C# MVC. It's a pretty big project so working my way through it bit by bit to learn what everything does. I've just made my first set of changes to it, and am ready to deploy. To do this I changed the debug mode to production which has have all the correct settings f... | stackexchange/codereview |
I am writing a multithreaded program in java. I have written something like this
exec.execute(p) // where p is a runnable task working on an array
print array
exec.shutdown
The problem I am facing is that the array gets printed giving the correct output but then the rejected Execution Exception comes
I don't understa... | stackexchange/codereview |
How do I iterate through a range of IP addresses provided by the user?
I'm flexible on the format, provided it allows all ranges to be specified. Perhaps something like the nmap-style:
'192.0.2.1' # one IP address
'192.0.2.0-31' # one block with 32 IP addresses.
'192.0.2-3.1-254' ... | stackexchange/codereview |
I'm trying to find a guide on PHP file/folder structure conventions.
I'm using GitHub and want to ensure I'm following a standard convention as to not confuse users.
Any help would be appreciated.
| stackexchange/codereview |
I have two columns in a table: VisitorID, and URL.
An entry exists in the table for every page view a visitor makes. I'd like to see the total number of visits for each Visitor, where NONE of the URLs in a visitor's group are LIKE "%page=checkout%".
I'm thinking it's something like this:
SELECT *, COUNT(*) AS TotalVis... | stackexchange/codereview |
I'm trying to get a WHERE clause working so,
when @Status is 2 then find where the UnitBookedDate is between the StartDate and EndDate
when @Status is 4 then find where the InstallDate is between the StartDate and EndDate
when @Status is null then find where the UnitBookedDate OR the InstallDate is between the Start... | stackexchange/codereview |
If customsort function is passed in with a variable, it seems it will access violation.
public
...
col: integer;
...
Procedure listviewcol;
begin
col:=5
...
end;
procedure TForm1.sortcol(listview: tlistview);
function CustomSortProc(Item1,Item2: TListItem;
OptionalParam: integer): integer;stdcall;
begin
... | stackexchange/codereview |
There is a list standard python exceptions that we should watch out, but I don't think these are the ones we should raise ourselves, cause they are rarely applicable.
I'm curious if there exists a list within standard python library, with exceptions similar to .NET's ApplicationException, ArgumentNullException, Argumen... | stackexchange/codereview |
I'm using XMLReader and PHP to process a moderately-sized XML file (6mb) and basically break up the attribute data and insert it into my own database. Problem is, each element has a variable number of subelements with identically named attributes.
Here's an example (this is open data about the government courtesy of g... | stackexchange/codereview |
I have created a simple game for Android; I want to prevent users from sending the game to the background by pressing the home or back buttons accidentally. I planned on using a dialog to confirm the user's action. What I want is similar to what Sirius does with their app, if you need an illustration.
I tried adding th... | stackexchange/codereview |
I have the following method for looping through a table, changint some values in every row and saving the chages back to the database. To make things go faster I am fetching data in sets of 10,000 rows. This is a large table with over 25 million records in it.
The problem is that my application doesn't seems to be rel... | stackexchange/codereview |
I have two bytes, 8 bit octets, which should be read as: [3 bits][4 bits][3 bits].
Example:
unsigned char octet1 = 0b11111111; // binary values
unsigned char octet2 = 0b00000011;
As integers: [7][15][7].
Anybody can give me a hint where to start?
| stackexchange/codereview |
How can i remove preprocessing instructions from an XML in a greener way? suppose that I have this xml in a string variable (which is a property of a class),I wanted to write it as value of another xml node,How can i achieve it in a cleaner way?
<?xml version="1.0" encoding="utf-8" ?>
<bookstore>
<book genre="autob... | stackexchange/codereview |
I have a hardware device that broadcasts bluetooth as a serial port.
The device is in production, meaning that there are high financial costs to re-layout a circuit board to include any Apple chip to comply with their "Made for iPhone" program.
So, is there any chance I can use the gamekit api to listen (just need one ... | stackexchange/codereview |
It's a seemingly simple API. I thought that I was incorrectly releasing the AVAudioRecorder object altogether, but even after eliminating that concern, I'm still getting a leak reported.
Here's are the four methods I use to handle recording:
-(void) startRecording {
[[AVAudioSession sharedInstance] setCategory:AVAudio... | stackexchange/codereview |
I am trying to write a list to a text file that is included in my project (Deck.txt) the relevant code is as follows:
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Deck" ofType:@"txt"];
NSFileHandle *fileHandle = [NSFileHandle fileHandleForWritingAtPath:filePath];
deck = [[NSString alloc]initWithFormat:... | stackexchange/codereview |
I'm getting a bizarre error in Chrome... check out the screenshot below.
I define record using object literal syntax.
I try setting the "id" property and get the exception.
I've tried both :
record['id'] = 'wtf';
and also
record.id = 'wtf';
I use this type of syntax all over the place in my script.... what could b... | stackexchange/codereview |
I'm looking at a set of requirements for a web site and it lists, among other things:
User authentication - cookies and ip filtering
I understand what ip filtering is (forwarding or ignoring packets based on data such as packet type, source ip address, etc.), but how is this used to authenticate users?
| stackexchange/codereview |
What are the benefits of a XML HTTP request? A given server could send data (e.g. some JSON serialization) for a normal request (non-XHR) as it would send data for a XHR request. And that data could be processed asynchronously (by a browser for example) as well. So why was the XMLHttpRequest invented?
Some things I can... | stackexchange/codereview |
I create elements on the DOM by JS. The question is, how to assign .change() function for each new created element ?
| stackexchange/codereview |
I'm working on and ASP.NET app. A key functionality is that it copies a pdf document to a share on FILE_SERVER_1. I'm using the System.IO.File.Copy method to copy the file.
When I run locally (from the debugger), everything works fine. When I run the app from WEB_SERVER_1, I get an UnauthorizedAccessException. I presu... | stackexchange/codereview |
When I try to parse many p, I don't receive the 'expecting p' message:
> parse (many (char '.') >> eof) "" "a"
Left (line 1, column 1):
unexpected 'a'
expecting end of input
Compare to
> parse (sepBy (char '.') (char ',') >> eof) "" "a"
Left (line 1, column 1):
unexpected 'a'
expecting "." or end of input
which repo... | stackexchange/codereview |
WebSphere comes with parent last and parent first. Is this Java EE compliant? Is this supported by all application servers that are Java EE 5 compliant?
| stackexchange/codereview |
I am working on a MVVM wpf application and I need to show various dialogs with ok cancel. I have seen few on the net but the look overcomplicated or may be its me struggling.
I Have noticed that many that use "IDialogService"
Can anybody point me to a link or has a snippet handy on how to implement a Dialog using a MV... | stackexchange/codereview |
I'm trying to programmatically bind an IList to a datagrid and one of the columns is a boolean value, so I decided to use a DataGridCheckBoxColumn instead of my usual DataGridTextColumn. Unfortunately, this doesn't seem to be working.
This the code I am currently using:
DataGridCheckBoxColumn dgcbc = new DataGridCheck... | stackexchange/codereview |
I want to learn about Eucalyptus cloud computing. I have read few documentation pages on eucalyptus website but im still confused about some parts of it.
I have downloaded Eucalyptus and Eucatools.
I would like to know whether we can install all the components needed (Walrus, NC,etc.) for Eucalyptus on single compute... | stackexchange/codereview |
My friend says it's possible to write a C program that will print "hello world" without IF/WHILE/FOR and without semicolons. After minimal research I told her it was not possible. Is it possible?
| stackexchange/codereview |
I have a list of ListIterator<PointF> as a class field. I fill it in method grow(). When i try to use iterators from this list i get ConcurrentModificationException.
ListIterator<ListIterator<PointF>> i = mPoints.listIterator();
while (i.hasNext()) {
ListIterator<PointF> j = i.next();
if (j.hasNext())
P... | stackexchange/codereview |
I need to implement a spatial data structure to store rectangles then be able to find all rectangles that intersect a given rectangle. This will be implemented in JavaScript.
So far I am developing a Quad Tree to cut down the search space but because it is for a game, all objects that move will need to update its posit... | stackexchange/codereview |
I can't seem to get a connection made on my Java program to java, I have started the MySQL Server, made a database in phpMyAdmin. But I'm confused on how I should use the JDBC Driver that I downloaded from MySQL.
Here's my code:
private void startConnection()
{
Connection conn = null;
String url = "jdbc:mysql://loc... | stackexchange/codereview |
I'm making a mess of creating an object in a method and returning it to a variable. As in this post I know I should autorelease an object in this case, but when I do, it crashses.
I have written a method to create an array of images, and return this array. It looks like this:
- (NSMutableArray *)createImagesFor:(NSStr... | stackexchange/codereview |
I'm using the Feeds module to import lots of Feed Item nodes. Due to a malformed feed file, I'm getting lots of duplicates. I'm using a View to display these nodes, and need to be able to add a DISTINCT filter on the "Node: Post Date" field, so I only get 1 result for each post-date.
I will also look into tackling the ... | stackexchange/codereview |
I have read somewhere that you can run ms access programs as independent exes but you have to have ms access runtime.Question is,how can i bundle ms access runtime with my ms access program and can i also bundle a database of my choice i.e mysql.
| stackexchange/codereview |
I need a data structure that could automatically sorted based on a struct.
struct{
int key;
int comparisonValue(size of the vector);
}
I need it in the following form:
datastructure<struct, vector<int>>
Where the data structure is automatically sorted based on the comparisonValue and based on the minimum value of... | stackexchange/codereview |
We want to add a constraint in a Oracle database to check if the employee's salary respects the hierarchy.
An employee has an id, a name, a rank and a salary.
We have 3 ranks (rank1, rank2, rank3), rank1 is superior to rank2 and rank2 is superior to rank3.
When adding an employee that has rank2, his salary shouldn't be... | stackexchange/codereview |
template < unsigned int i >
struct t {
static const char *s;
};
template < unsigned int i >
const char* t<i>::s = ...;
where ... is "0 1 2 ... i-1", for example "0 1 2 3 4" for i == 5.
Is this possible? (no solutions doing this at run-time, please!)
Question asked out of curiosity (doing it with preprocessor macr... | stackexchange/codereview |
I am trying to add tabbed layout to a jsp page using struts2 but the TabbedPanel is not being found. I'm using struts2-core-2.0.11.2.jar
Thanks
| stackexchange/codereview |
I have heard many times the word assemblies. Still I don't know what they are and its uses in programming language.
| stackexchange/codereview |
I am creating an app for iOS using PhoneGap, phonegap packages HTML, CSS & Javascript into a native iPhone application.
The app will feature a large old style Combination Lock Spinner in the center of the screen. This concept is pulled off very very well in the Native iPhone app (obj-c) Converbot.
So my question is, i... | stackexchange/codereview |
I need to calculate a unique code for several int, double and string values.
The actual challenge is that code generated for a particular set of values must be same in C# and in T-SQL.
I use C# 3.5 and SQL 2008
| stackexchange/codereview |
I have been starting out in the world of Android development recently and I am working on an application which shows a map using the Google API SDK, it is pretty much the original example but edited a little bit. It works a treat but I wish to do more with it. My question is:
How do you add a KML layer to this? I've no... | stackexchange/codereview |
I have problem to display the first row in in each group in Reporting Service.
City Name Cash
----------------------
Boston James 10
Mattias 5
Adam 4
LA Sara 34
Sakura 23
NY Melissa 69
Jessica 34
I have used group on in row groups at Column City.
The r... | stackexchange/codereview |
I would like to determine if a rect inside a window is completly visible.
I have found RectVisible, but that function determines if any part of the rect is visible, I want to know if the entire rect is visible.
Is there any function for this?
| stackexchange/codereview |
I have a table "Item" with a number of related items, like so:
ID Rel_ID Name RelRank
--- ------ ---- -------
1 1 foo 1
2 1 bar 2
3 1 zam 3
4 2 foo2 1
I'm trying to get a query so items with the same Rel_ID would appear in the same row, like so:
Rel_ID Name1 Name2 N... | stackexchange/codereview |
I tried to shutdown tomcat as shown below, but tomcat still seems to be running (http://localhost:8080/)
vandegraff@vandegraff-laptop:~$ /usr/share/tomcat6/bin/shutdown.sh
Using CATALINA_BASE: /usr/share/tomcat6
Using CATALINA_HOME: /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME:... | stackexchange/codereview |
I have written a PHP script that I would like to use on several domains on the same server (pointing to same script). I want to add functionality to the script so I can find out which domain the script is working with at any time. HTTP_HOST can be used to find the domain ,however, I have read that its not reliable espe... | stackexchange/codereview |
I want to send some Data with tha $.ajax()method from JQuery. The problem is, that the data (a string) include ";" and other special characters. The problem is, that ";" ist the separator for the key/value. How can i submit this over POST with jquery?
Here is the code:
$('#save_patterns').click(function() {
$('#save_p... | stackexchange/codereview |
I have a query with 4 Select Queries joined by Union All to return one resultset, they are pretty complex select queries but no joins are involved, they actually select from 2 different views. I am just looking into optimising it but not really sure where I should start. The "Actual Execution Plan" is saying the "Estim... | stackexchange/codereview |
I need to design a system in a website to display different pages to different users based on multiple rules:
If the user's visit is organic, direct hit to the homepage, show /url1
If the user's visit is not organic like he was referred from a blog, show /url2
If the user wants to shop, but isnt logged in, show /url3... | stackexchange/codereview |
I'm trying to brand our SharePoint 2010 site using designer but can't find the start point. I've tried creating new master page from "minimal.master", but it doesn't have other SharePoint control like Site Actions-Settings etc .
Any tutorial or doc which can explains about 2010 branding ?
Rish
| stackexchange/codereview |
I have a pretty complex dom-tree with various exceptions etc. So I don't want to use
I wanna do functions like "for every error message I wanna add a class to the previous input".
Right now I'm doing it with tree traversal, but for various reasons it's not a good solution. Is there a good way to directly target the co... | stackexchange/codereview |
trying to exclude a set of elements from the matched set when it's parent object has a cetain class.
current solution is:
$("#pages li a").not($(this).parent().hasClass('no-script'))
but this is not behaving as I would expect, what am I doing wrong?
| stackexchange/codereview |
I have some code using DirectoryEntry to manipulate the local Active Directory via LDAP. Currently I find a specific OU, add a user to it, update the properties of the user and then commit all changes:
DirectoryEntry ldapRoot = new DirectoryEntry(ldapString, user, password);
DirectoryEntry userGroup = ldapRoot.Children... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.