instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a Winform hosted WCF service with Ajax Web endpoint.
I also have an ASP.NET project separately, with ScriptManager component on the page.
My question is, should that work if I make service calls to my Winform hosted service from the client side of ASP.NET app using javascript?
My ASP.NET Default page looks li... | stackexchange/codereview |
I use clisp 2.48 (2009-07-28) on Mac OS X 10.6.4. I downloaded the clisp with 'sudo port install clisp'.
After installing quick lisp, I installed some packages, and most of them are OK.
However, when I tried to install "sqlite", I got the following error.
[1]> (ql:quickload "sqlite")
To load "sqlite":
Load 1 ASDF... | stackexchange/codereview |
I am using KSoap2 for consume web service in my application. I need to send date as parameter in the request.
Can anybody know how to send date as a parameter and send the request and please give the sample code for it.
Does Ksoap2 support date format?
Thanks
| stackexchange/codereview |
I want to read 8byte chunks from a binary file at a time till I reach end of the file. Why doesn't this code work? What are the alternatives?
// read a file into memory
#include <iostream>
#include <fstream>
using namespace std;
int main () {
long long int * buffer;
ifstream is;
is.open ("test.txt", ios::binar... | stackexchange/codereview |
Hi Guys I have a problem!
I want to change the custom cell if mediaurl==@"string" and move the label on the left if i not load the picture... How can I do? Any issue? if I create a label from code the the method call if mediaurl==@"string" I will make a mistake.
| stackexchange/codereview |
This is driving me nuts. What am I missing here. I'm using EF and if I have code like the following:
using (LexiconEntities ctx = new LexiconEntities())
{
var query = from w in ctx.Words
select new WordEntryDataModel
{
Word = w.Anagram,
NumOfAnagrams = w.NumAnagrams.Value,
... | stackexchange/codereview |
Any suggestions on how I might go about plotting the RGB color space as a 2-D matrix? I need a theoretical description of what's going on; a code sample or pseudocode would be helpful but is not required. Thanks!
| stackexchange/codereview |
I am using Devise for authenticating a Rails application. I am now able to successfully route /users/sign_in and /users/sign_out to /sign_in and /sign_out via this code in routes.rb:
devise_for :user, :as => ''
How do I map /registration/sign_up to /sign_up?
So that sign_in, sign_out, and sign_up all have the same pat... | stackexchange/codereview |
Possible Duplicate:
Font size in CSS - % or em?
well i was trying to understand the different sizing options in css and i got lost between ems and percentage.
they seems to be the same i mean 1em = 150% and 1.5em = 150%.
and they do cascade too from parent elements.
am i missing something?
| stackexchange/codereview |
This is my code:
The ExecutorImp extends AbstractExecutor which extract the same execute logics of its implementers(ExecutorImp is one case),when calling the execute() method of ExecutorImp, it will call the method in its supertype,but the supertype (the AbstractExcutor) should know another class binding to the impleme... | stackexchange/codereview |
One hell of a long question :)
Here's how I usually do it:
StringBuilder b = new StringBuilder();
BufferedReader r = new BufferedReader(new StringReader(s));
while ((String line = r.readLine()) != null)
b.append(doSomethingToTheString(s) + "\n");
However, this replaces all the new line characters in the file with ... | stackexchange/codereview |
I wanted to use the INCLUDES script that will grab external html and place it in a page. I was thinking of using this for the header and footer for every page.
Is this a good idea? Will it interfere with SEO?
I hate to have to change every footer and header on every page if there is an edit.
Is there a better approac... | stackexchange/codereview |
I was looking at some code and have seen these comments, how does promoting a function to global help performance?
// this function is promoted to be global
// to make firefoxs jit happy - URGH
function clamp(x, min, max) {
if(x < min) return min;
if(x > max) return max-1;
return x;
}
| stackexchange/codereview |
Is Base64 encoding safe to use for filenames on Windows and Linux systems? From my research I have found that replacing all / characters of the result with - or _ should resolve any issues.
Can anyone provide more details on this?
Currently in Java I am using the following peice of code:
MessageDigest md5Digest = Messa... | stackexchange/codereview |
Just got the iphone 4 and am eager to run my 'personally built' apps on it. Have looked everywhere on the apple website, but can't see where you 'sign up for a developer certificate'. Can someone explain to me how to do this, in baby steps?
| stackexchange/codereview |
How can I add title and meta tags for content pages in a project based on master and content pages (dynamically) ?
I used the below method for master page :
public void SetMetaTags(string title, string description, string keywords)
{
// Get a reference to the HTML Head
HtmlHead headTag = (HtmlHead)Page.Header;... | stackexchange/codereview |
Hello here is my code :
var one = 0;
var two = 0;
var three = 0;
var free = 1;
function open() {
if ($('#one').is(':visible')) {
one = 1;
}
else {
one = 0;
free = 1;
}
if ($('#two').is(':visible')) {
two = 1;
}
else {
two = 0;
... | stackexchange/codereview |
I have an application to save the canvas data instantaneously to server. My requirement is to export the canvas data on every second, save it to the server through ajax and import the same data to another canvas in another browser through ajax. I am using Jquery for ajax. I used the following code to pass the data
fun... | stackexchange/codereview |
How do i write a regex that matches the syntax in either perl ruby javascript
The syntax is like /my pattern here/modifiers where modifiers are i, g and other single letters.
I wrote the below however that wouldn't allow me to escape escape / with using . AFAIK i can write /Test\/Pattern/i in those languages to match ... | stackexchange/codereview |
I have an array in my template files ($data) witch looks like this
$data.1.name
$data.1.date
$data.1.place
$data.2.name
$data.2.date
$data.2.place
$data.3.name
$data.3.date
$data.3.place
now I would like to check the entire array and remove an item where the date is older then today.
The date check i figured out but i... | stackexchange/codereview |
In my activity, I have an AutoCompleteTextView that gets its contents from my custom adapter. I created my adapter by following this example.
The adapter works so far, but I am getting so many errors on leaks and cursors that are not finalized. My question is: how do I close the db in runQueryOnBackgroundThread?
Here... | stackexchange/codereview |
I'm working on an iPhone app which graphs a large database, accessed through core-data, in a line-chart. I'm using a tile-based approach to rendering this graph. The distance between datapoints is irregular.
Each tile uses a predicate to retrieve the data that is relevant for that tile:
NSPredicate* predicate = [NSPre... | stackexchange/codereview |
During the last months I have tried to code using the functional programming paradigm. Now I have a solution in OOP and I am trying to find a functional solution.
The problem is simple. I have an algorithm, which produces two different arrays as result (a and b). Now, I want to check how good the results are. Therefor... | stackexchange/codereview |
I am following the guide on railstutorial.org. I get this error when I type the command on the title.
Counting objects: 66, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (52/52), done.
Writing objects: 100% (66/66), 86.47 KiB, done.
Total 66 (delta 3), reused 0 (delta 0)
-----> Heroku receivi... | stackexchange/codereview |
I would like to do this: Dim str As String = class.isGuest("yes") but it won't work.
Public Property IsGuest(ByVal guestStatus As String) As String
Get
Dim guestCookie As New HttpCookie("g")
For Each key As String In Context.Response.Cookies.Keys
If key = MYACCOUNT_SESSION_COOKIE_NAME T... | stackexchange/codereview |
Using Calendar I can get the week, year and all details for the current day. How can I navigate to a particualr day in that week?
Say, calendar.get(Calendar.DAY_OF_WEEK); returns 3, which means a Tuesday. Now, I want to go to say Friday for that week or any other day in that week. How can I do that?
Thanks for your rep... | stackexchange/codereview |
This is my code (Jersey 1.4 + Mockito 1.8.5):
import org.junit.Test;
import static org.junit.Assert.*;
import com.sun.jersey.api.client.WebResource;
import static org.mockito.Mockito.*;
public FooTest {
@Test public shouldMakeAHttpCall() {
WebResource wr = mock(WebResource.class);
doReturn(wr).when(wr).accept... | stackexchange/codereview |
At the moment I am struggling with a bug in Sun's class java.net.Authenticator. It seems that the Authenticator class has a system wide static Authenticator. This results in the following problem in my multi-threaded application.
Thread 1 - Authenticates for User 1
Thread 2 - Authenticates for User 2
Thread 1 - Execut... | stackexchange/codereview |
I am using Eclipse and I am creating a web project. I am also using SLF4J for storing logs in a log file.
I am putting the log4j.properties file into the WEB-INF/classes folder .
When I access the login page, all of the associated logs and my debug statement log are being loaded into the log file, but I want a specifi... | stackexchange/codereview |
I know this sounds a little ridiculous, but I'm just honestly wondering how I can create a MySQL database on my Mac OS X machine. I have MySQL installed (as far as I know) as well as PHP, and I'm wondering how I can create one.
I have downloaded a sample PHP ecommerce site to kind of delve into what I'm trying to fami... | stackexchange/codereview |
I want to clone a AIX LPAR and was wondering if the physical machine could be converted into a VM Image?
I have used the VMWare Converter to create a VM Image of a physical windows box and the documentation states that you can do that for Linux Boxes too.
http://www.vmware.com/products/converter/
I don't see informat... | stackexchange/codereview |
I've built a Windows Application using c#, on Windows 7.
Everything was working fine, so I've created a Setup Wizard project and then built it. Once I install the app, I can open it correctly, but when I try to make some action that writes a text file(with logging purposes) it crashes, thrwoing me the following error m... | stackexchange/codereview |
I'm curious what the best method of web 2.0 form validation is...
I'm looking into: http://docs.jquery.com/Plugins/validation
And the claim to fame here is that it doesn't bother the user until he submits the form. However, that's what I want to happen. I don't want the user going through the entire form before he's in... | stackexchange/codereview |
I'm learning Python and ran into some code that has this line...
self.clear()
I am curious as to what it would do and why would someone need to do this?
| stackexchange/codereview |
I am trying to merge data between two identical schema databases using Linq-to-sql:
List<Contact> contacts = (from c in oldDb.Contact
select c).ToList();
contacts.ForEach(c => c.CreatedByID = 0);
newDb.Contact.InsertAllOnSubmit(contacts);
newDb.SubmitChanges();
Merely throws an "An attempt has been made to Attach ... | stackexchange/codereview |
In an effort to reduce duplication, I have my app's workspace split into 3 projects:
Main (A library project, where all of the common code lives)
Free (To make the free version)
Paid (To make the paid version)
Behavior in the free version and the paid version must differ sometimes. How can I "call into" the final pr... | stackexchange/codereview |
I'm using VS2008 to connect to a SQL server database in order to populate it in C#. It's going pretty well, I'm able to query, insert, and update all tables in my database successfully, except one. Anytime I try to query or insert into one table I get the following error:
Message = "Invalid object name 'DB_NewModelStor... | stackexchange/codereview |
I have a string:
Dim strXMLTags As String = "<tags><test>1</test></tags>"
And I want to verify that all opening tags have a closing tag in the proper place. So if I put the previous string through, it'd work. However, if I put:
Dim strXMLTags As String = "<tags><test>1</test>"
Then I want it to give me an error. I... | stackexchange/codereview |
Is there a method to remove an item from a JavaScript array?
Given an array:
var ary = ['three', 'seven', 'eleven'];
I would like to do something like:
removeItem('seven', ary);
I've looked into splice() but that only removes by the position number, whereas I need something to remove an item by its value.
| stackexchange/codereview |
I'm trying to parse dates with regex, using groups, but python is returning empty lists. I'm not doing anything fancy, just 12/25/10 sort of stuff. I want it to reject 12/25-10 though.
date = re.compile("\d{1,2}([/.-])\d{1,2}\1\d{2}")
I've tried online regex libraries, but their solutions don't seem to run either. ... | stackexchange/codereview |
I'm making a web app and I'm checking for the presence of a configuration file to determine whether or not to run the installation script. However, since it is a web app, I have no idea at what URL this script will be stored.
Is there any way to redirect a page, either using PHP or HTML, to a relative file?
Thanks in a... | stackexchange/codereview |
Is it possibe to launch grails based java web project from within Eclipse or Netbeans IDE and setup breakpoints in both java and javascript sources and be able to debug both?
If so then how?
I understand debugging javascript is normally done using browser based debugger such as firebug for firefox but there are situati... | stackexchange/codereview |
i have some problem in javascript validation...
My requirement is user sholud enter value in text box less than 5
he sholud not allow to enter value which is more than 5
he can enter 4.25
3.10
he should not enter 5.1 how to restrict user not to do this..
what is code for this.on which event we sholud call it
| stackexchange/codereview |
Requirements: We have a form for users to submit.
On submission, form data is used for calculations and generation of reports.
On postback, a confirmation message and further options are displayed.
We want to display report in a new window/tab.
Conditions:
We do not want to use JavaScript on postback to open a new wind... | stackexchange/codereview |
hEY ALL
i have a table that shows transactions and their status. How can i create a column that shows the total of transactions that are completed,rejected,declined and the grand total of all on a different column
for example i am looking something like this
Completed 100
Rejected 50
Declined 20
Total 170
In 3... | stackexchange/codereview |
I have a concatenated file made up of some number of bzip2 archives. I also know the sizes of the individual bzip2 chunks in that file.
I would like to decompress a bzip2 stream from an individual bzip2 data chunk, and write the output to standard output.
First I use fseek to move the file cursor to the desired archiv... | stackexchange/codereview |
I would like to use the JQuery UI tabs in my Django app but how should I do that? I cannot figure it out with Django's template system.
Or, is it another smoother way to get tabs in a Django app?
Thanks
/Tobbe
| stackexchange/codereview |
I have a horizontal menu in my website, and each for item in menu I have a image and a sub menu.I write an event handler for hover. I should hide all visible sub menu and images before show right image for the menu. But the problem is when I switch between two menus rapidly first one become visible after handler for se... | stackexchange/codereview |
Situation: Got 160 ids in array, need to build xml requests, in sets of max 50 and submit each set separately.
Problem: How to loop the function and continue with ID 51?function doBatch($ids)
Simplified Code:
function doBatch($ids)
{
$start = "<feed>";
foreach($ids as $id)
{
$add .= '<entry>'$id.'... | stackexchange/codereview |
I need to perform the following conversion:
0 -> 12.00AM
1800 -> 12.30AM
3600 -> 01.00AM
...
82800 -> 11.00PM
84600 -> 11.30PM
I came up with this:
(0..84600).step(1800){|n| puts "#{n.to_s} #{Time.at(n).strftime("%I:%M%p")}"}
which gives me the wrong time, because Time.at(n) expects n to be number of seconds f... | stackexchange/codereview |
I need to build a website that keeps the content & appearance themes separate. I figured that a content management system is the best way to achieve this goal. I expect the user base to be hundreds of hits a day.
What is the best content management system for:
Speed (given the low visits)
Development & maintenance (co... | stackexchange/codereview |
i got set up a jScrollPane horyzontal scrollbar but right now the scrollbar is horyzontal but on top(this means the scrollable content is below the scrollbar), i need the contrary: scrollbar below, scrollable content on top, how can i make this?
regards
| stackexchange/codereview |
I have a menu which is created from the database.
When the users navigate through pages the current page is highlighted with the css class.
Menu is rendered with the Html.RenderAction("Menu","Home");
Because of being datadriven menu i use the new ChildActionCache attribute which is in the ASP.NET MVC 2 Futures projec... | stackexchange/codereview |
I have a UIViewController whose view is a UIWebView with an embedded movie. When the movie is playing full screen, and the device is rotated, the title bar ends up behind the status bar after the movie is dismissed. Why might this happen?
| stackexchange/codereview |
localNotification.soundName doesn't support sound with duration more than 30 second
Is there any way to solve this problem ?
| stackexchange/codereview |
I have an ASP.NET 2.0 application (with Ajax Extensions 1.0) that I just migrated to ASP.NET 3.5.
In my app, I have a web service that's called from javascript (the service has the [ScriptService] attribute) and everything was working perfectly until I migrated my app. Now, the web service doesn't respond anymore.
Note... | stackexchange/codereview |
so im trying to include this file for an application
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
would including it as this url slow the load time of my site when using an application that requires it?
as opposed to downloading this file and including it locally
| stackexchange/codereview |
Is it possible to call a C++ function from a C source code?
Please advice.
Many thanks.
| stackexchange/codereview |
How to do a java script validation in joomla?
| stackexchange/codereview |
I want to reset the ZipInputStream (ie back to the start position) in order to read certain files in order. How do I do that? I am so stucked...
ZipEntry entry;
ZipInputStream input = new ZipInputStream(fileStream);//item.getInputStream());
int check =0;
while(check!=2){
entry ... | stackexchange/codereview |
Can anybody tell me that how I can get current month and year and show it in a label in ASP.NET?
| stackexchange/codereview |
I've been writing some custom WinForm controls which do a pretty heavy amount of drawing and therefore tend to have a lot of disposable graphics based fields lying around (Brushes, Pens, Bitmaps etc..) and as a result my Control's Dispose() method has to call Dispose on each of them.
I got concerned that I (or a future... | stackexchange/codereview |
I am trying to join two objects, the first is a (static) local object defined in a Helper and the second (Subsonic) Database object.
Here is the offending extract from my repository, I wont bore you with the models and helpers unless requested.
public IQueryable GetData(string DataType)
{
IQueryable<Dat... | stackexchange/codereview |
LogCat filtered by errors is in the following:
10-17 19:08:18.650: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
10-17 19:08:18.650: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
10-17 19:08:18.650: ERROR/v... | stackexchange/codereview |
I tested with simple nant (0.90) on Mac OS X 10.6.4, but I got the following error message.
Even with the error message, I could run nant to get the binary successfully.
What might be wrong?
log4net:ERROR XmlConfigurator: Failed to initialize configuration file watcher for file [/Library/Frameworks/Mono.framework/V... | stackexchange/codereview |
I need to set up correctly the FIRM ID for my app(according to target).For example I wrote in my Distribution.h the following lines:
#define X_FIRM_ID @"X"
#define XX_FIRM_ID @"XX"
#define FIRM_ID XX_FIRM_ID
For each build that I made I must manually change the FIRM_ID.I want to this automatically, just like I do for... | stackexchange/codereview |
I have started learning WCF. I wrote a simple service to query a SQL relation through LINQ.
[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode = aspNetCompatibilityRequirementsMode.Allowed)]
public class Order_WCFService
{
[OperationContract]
public List<Order> getOrders()
{
... | stackexchange/codereview |
I have a header class which has a background and a header-center class which provides the nav content for the header. My problem is that if the window is smaller than the header-center width, the header background doesn't span the entire top when you scroll over. Stackoverflow seems to have the same problem, try resizi... | stackexchange/codereview |
Is it legal to use the google search results in my own website not using the google custom search that google provides?
I have 2 different cases:
The first is that I design a search box, with a google logo and provide options so the user selects which type of content (web, images, videos...), and the the results open i... | stackexchange/codereview |
I have a Visual Basic .Net 2.0 program. I'm moving the settings from an older settings file, to an app.config program settings file. I'm trying to do this as nicely as possible.
So, I added my setting as shown in this image.
On load I do this:
If My.Settings.databaseConnectionSettings Is Nothing Then
My.S... | stackexchange/codereview |
Basically I have the following in my .htaccess file in the root of my site:
Options -Indexes
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=$1 [L,QSA]
</IfModule>
In my PHP script when I use $... | stackexchange/codereview |
I have build a simple application that opens a ServerSocket, and on connection, it connects itself to another server socket on a remote machine. To implement port forwarding, I use two threads, one that reads from the local inputstream and streams to the remote sockets outputstream, and vice versa.
The implementation f... | stackexchange/codereview |
I have declared <InputBindings>
<UserControl.InputBindings>
<KeyBinding Key="C" Modifiers="Ctrl" Command="{Binding CopyImageCommand}" />
<KeyBinding Key="V" Modifiers="Ctrl" Command="{Binding PasteImageCommand}" />
</UserControl.InputBindings>
For testing purposes, I have added buttons bound to those commands ... | stackexchange/codereview |
In the Rails ActiveRecord Associations guide, I'm confused over why the tables for has_one and has_many are identical:
Example tables for has_many:
customers(id,name)
orders(id,customer_id,order_date)
Example tables for has_one:
these tables will, at the database level, also allow a supplier to have many accounts, but... | stackexchange/codereview |
In my vague understanding, any texts are transferred over the internet as streams of bytes. And when you change texts to and from bytes, you need encoding. MailMessage.Body is just a plain string(text) and it gets sent over the internet as emails. Why is it that it can correctly display Chinese characters without even ... | stackexchange/codereview |
I'm sure this has been asked before in some other way that I just can't find, so I apologize upfront for repeating if I am.
I am trying to calculate the difference between two dates and then display that difference in days, minutes, and seconds; something like "3 days 23 minutes and 59 seconds"
Very easy, I'm sure, but... | stackexchange/codereview |
I have a NSDictionary with a NSString and NSArray
I have to save only the NSArray in a variable without knowing the key.
Is this possible?
| stackexchange/codereview |
I am writing a web service in vb.net/asp.net 2, that needs user's name. It works fine when the url request is "www.mysite.com" but if any one has logged-in using "mysite.com" without a "www" and goes to the page that calls my web service, The HttpContext.Current.User.Identity.Name gives null.
How can I resolve this pr... | stackexchange/codereview |
here is my HTML -> http://aivan.info/
Structure
<div id="wrapper">
<div id="leftg">
</div>
<div id="container">
<div id="header">
</div>
<div id="logo">
</div>
<div id="navigation">
</div>
<div id="body">
<div id="bleft">
</div... | stackexchange/codereview |
In my project (an XNA .contentproj) I have files that need compiling, and files that just need to be copied to the output directory:
<Compile Include="Foo.cs" />
<None Include="Bar.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
This works fine when i'm compiling from vi... | stackexchange/codereview |
let me start off with what I need; the program is given a directory, it will then examine all the files in the directory (works) and do stuff to the files (waiting till it can find all the files for this part). then it will look for subdirectories and re-run its self for each subdirectory.
the directory I'm testing wit... | stackexchange/codereview |
Consider this function getPos() which returns a tuple. What is the difference between the two following assignments? Somewhere I saw an example where the first assignment was used but when I just tried the second one, I was surprised it also worked. So, is there really a difference, or does Python just figure out that ... | stackexchange/codereview |
I'm just opened FireBug and saw this on my site
<div style="display: none; width: 0px; height: 0px; overflow: hidden;">
<iframe src="javascript:void(0)" style="display: none;"></iframe>
<iframe src="javascript:void(0)" style="display: none;"></iframe>
<iframe src="javascript:void(0)" style="display: none;">... | stackexchange/codereview |
I have an XML file that gets bulkloaded into a database. now at the top of the xml there is a doctype newfile.
<!DOCTYPE NEWFILE SYSTEM "XXX_OUT_1234_YYMMDD_00.dtd">
What i'd like to know is what it is used for and if it is needed there at all. The data gets loaded into SQL with a C# bulk uploader, using a schema and ... | stackexchange/codereview |
In GetPrivateProfileString, lpReturnedString returns the string value present in the key of a particular section of an ini file.
My question is that how will i know exactly, how much memory has to be allocated, rather than just allocation a large chunk prior to calling this function.
DWORD WINAPI GetPrivateProfileStrin... | stackexchange/codereview |
I've been using SVN and Windows for a while now, but recently I tried to get it working on a new machine. I have a svn+ssh:// repository that I need to access but I am unable to because, as I understand it, plink is not hooked up to the console input and thus I cannot type in my password when running svn commands.
This... | stackexchange/codereview |
I mean, with EJB, LINQ2SQL, EF etc we're trying to (at least in my perspective) map the rdb in a way so we can use the entities as objects. How come there hasn't been a surge of OODBMS since they should remove many barriers we face today, or at least lessen the burden?
I'm probably overlooking something but the main r... | stackexchange/codereview |
Just a simple question in onSharedPreferenceChanged you can do something based on if a change is made in a specific key which would look like, if (key.equals(Theme_Preference)). I want to do the same thing but instead of just a key I want it to be for a specific entryValue in that key. Hope this makes sense.
| stackexchange/codereview |
I'm using JBoss 4.0.5 GA on Windows 7 with Java version 1.5 (I have to use older java version and a JBoss because I'm working with a legacy system). And when I'm starting the server I get the following error:
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
And I believe this causes many o... | stackexchange/codereview |
I am trying to make a color chart for my classroom. I would like to be able to add these cells together to get totals based on the color the cell given.
I am using cells b3:ao3
If I fill-in a cell with the color yellow I want it to represent 1.
If I fill-in a cell with the color red I want it to represent 2.
I then wa... | stackexchange/codereview |
Possible Duplicate:
Unable to hide welcome screen in Emacs
Is there a way I can prevent the GNU Emacs buffer from coming up when emacs starts?
| stackexchange/codereview |
In rails, when updating a model, how do you prevent certain properties of the model from being updated when using a call like:
@user.update_profile params[:user]
Since anyone can just create a form input with a name like 'password', how can you filter the set of properties that you are allowing to be updatable?
Is thi... | stackexchange/codereview |
Is there any objective reason not to remove unused default includes from C# program?
Let's take this hello world project as an example:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
... | stackexchange/codereview |
Here's what I have today:
I output a list of @users
What I need to do is output a list of users and say if they are assigned to the current project.
I could loop through each user and check in the database, but that would be a lot of data base hits, an additional 10 hits for displaying 10 users.
My question to you, is ... | stackexchange/codereview |
Sorry if I missed anything about this but I have a table view with 2 large sections and an index to navigate between sections:
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {
NSMutableArray *listArray = [[NSMutableArray alloc] init];
listArray = [NSArray arrayWithArray:[@"S|H"componentsSe... | stackexchange/codereview |
I usually create a solution folder in Visual Studio and put my DB scripts in them. I always use at least this set of scripts:
Drop model
Create model script
User functions
Stored procedures
Static data (lookup tables)
Test data (not deployed)
Then I simply combine them and run against an SQL Server so I'm able to rec... | stackexchange/codereview |
I am trying to understand how to create a complex POCO which in the backend tied to a stored procedure or multiple tables. All the examples I have seen are simple one table to one entity or two tables. Could some one point me to a link or example on how to create a complex POCO which talks to stored procedure or multip... | stackexchange/codereview |
lets say i have the following html element on my host page:
<input type="text" onfocus="this.value = ''" id="textField"/>
In gwt i wrap this into an TextBox Widget like this:
final TextBox myTextBox = TextBox.wrap(DOM.getElementById("textField"));
If i now want to add a focus handler what will happen?
myTextBox.addFo... | stackexchange/codereview |
Me and some other guys are creating a game, and i would like to add a very simple menu with only Start and Exit Game. Now I already downloaded the Game state management sample, but thats a very long and complicated code. My question: someone knows a site or something where i can make such a simple menu or someone creat... | stackexchange/codereview |
//when document loads
$(document).ready(function() {
//navigation item is clicked
$('.nav_item').click(function() {
//get the clicked nav items id
var nav_item = $(this).attr("id");
var location_to_load = nav_item + '.html';
//load the loading html then the page
$('#sliding_content_co... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.