instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
SOURCE: http://pastebin.com/mBJMGean
Variables are still not calculating correctly,
They always reset every time even with using $_SESSION variables.
This is trying to become a slideshow with 2 buttons that control 'next' and 'prev'
The variable controls are Picture ID and then the buttons control what the variable is.... | stackexchange/codereview |
function lab09unknownLoopCountPart2() {
//Constants
var ONE_HUNDRED = 100;
var ZERO = 0;
//Variables
var employeeHourlyWage;
var hourlyMaximum = ZERO;
var hourlyMinimum = ZERO;
var totalHourlyWage = ZERO;
var records;
var counter = ZERO;
var average;
records = openEmployeePayrollRecords();
while (records.readNextRe... | stackexchange/codereview |
I have a simple piece of Scala code. I loop sequentially through a List of Strings, and I want to count the occurrence of each String which I collect as tuples (String, Int) in the list r. The part in the main function should remain (so no groupBy or something). My question is about the update function:
right now I do ... | stackexchange/codereview |
I have a config file linked from web.config e.g.
<features configSource="feature.config" />
When I make changes to the "feature.config" file the IIS application appears to restart, is this expected behaviour?
| stackexchange/codereview |
Hey guys,
when using listings to present code in my PDF, it adds whitespaces after some characters.
This is how it looks in the pdf (I'm not allowed to post images because of reputation, 'hence add ".png" to the url, sorry).
I'm using the following code to add the listings.
\newcommand{\lstchange}[2]{
\lstset{breakli... | stackexchange/codereview |
I have a performance issue with the WPF DataGrid (.net 4.0)
first, some details:
I have a datagrid with an Observable collection as ItemsSource.
this observableCollection itself contains collections of objects, each collection hence being a row, each object being a cell ("logical" cell of course, not actual dataGridCe... | stackexchange/codereview |
I've got an object defined as a function, and it's got a lot of methods and properties in it, what are some ways to modularise this to make it more manageable? It is possible to put functions inside the object into external files?
Edit:
Someone mentioned in one answer to include other files, but this would have an unw... | stackexchange/codereview |
I have an XMPP application where two clients interact (1) a bot programmed with Smack (Scala/Java) and (2) a GUI chat client programmed in strophe (Javascript).
The app needs to exchange custom XML (e.g., as shown below)
<myPacket>
<response type='sensorData'>
<temperature units='Kelvin'>
234
</... | stackexchange/codereview |
I use cache tag like this :
{% cache 1200 special %}
<div id="recommended-topics" class="ui-ce ui-ce-simple">
{{aticle_list}}
</div>
{% endcache %}
I found that there is a key named template.cache.special.d41d8cd98f00b204e9800998ecf8427e in memcache.
however, I still find django execute the query to get the arti... | stackexchange/codereview |
I have an issue with a virtual keyboard.
This Soft Keyboard Covers Data Fields - and can't See what's going on.
I want to use this soft keypad and at the same time it should not become a problem to use data fields.
So how can I manage the data fields in such cases?
| stackexchange/codereview |
I'm using the console version of emacs (that is, I'm SSH'ed into a remote machine and using emacs there) and I was wondering how (assuming it's possible) to start up the REPL from there. I'm pretty new to Lisp and emacs.
| stackexchange/codereview |
Using Uploadify plugin which uses jQuery and SWF. Some web servers it works, some it does not. Seems to get a HTTP 401 Not Authorized when attempting to upload. Might be related to SWF. In Fiddler, when it does not work, seem to get this Proxy-Support: Session-Based-Authentication, but when it does work, we don't g... | stackexchange/codereview |
I am working on an application for windows mobile 7.
I need to send some information from my application to some user via email.
I am using "EmailComposeTask()" for this. But i am getting error "email cant send. make sure u have setup an accout"
How to setup an email account in windows7 emulator.
Can anyone help me?
... | stackexchange/codereview |
I have COM dll that I am using in C++/Cli, one of the method in this COM dll returns IntPtr
I want to convert that back to the native object pointer. How I can do that ? please in put
| stackexchange/codereview |
I'm trying to build a Spring application with Eclipse. Since I've added the DAO layer with Hibernate this exception appear when I try to access to my web service with a browser.
Caused by: java.lang.ClassNotFoundException: org.springframework.orm.hibernate3.support.HibernateDaoSupport
at org.apache.catalina.load... | stackexchange/codereview |
I am setting the value for java bean in one class. how to get the value in another class can anybody give example ?
import java.util.ArrayList;
public class HomeBean {
String indexname="";
String lastvalue="";
String changepercentage="";
ArrayList aindexname=new ArrayList();
ArrayList alastnam... | stackexchange/codereview |
I am quite familiar with ASP.NET MVC and know that a controller’s method can respond with XML and JSON apart from other things (i.e. behave like a restful webservice). I am just wondering whether I can make a controller method behave like a soap web service which responds with a SOAP XML response to a POST request? May... | stackexchange/codereview |
Hello
So i have an ext.GridPanel with a GroupingStore. This panel is meant to display search results. When the page loads it is empty - correct. The panel should reload when the user enters search criteria and returns with valid json. I tested everything and it all works until the reload bit - which doesnt do anything.... | stackexchange/codereview |
I have a WCF service that returns a class that implements IExtensibleDataObject. I need to add a new field to this class. I updated the DataContract interface and made the change to the class. Now when I try to run my client application I get the following error:
Could not load file or assembly
'xxx.yyyy.zzzz, Ver... | stackexchange/codereview |
I just had a quick question about downloading files. I was reading this page:
http://groovy.codehaus.org/Simple+file+download+from+URL
Can someone explain what the difference is between the two ways explained on that page? (Aside from overriding the leftshift operator) Is there any significance for doing it one way or ... | stackexchange/codereview |
My company has a MOSS 2007 Enterprise (SharePoint 2007) website with users already setup. Everything is working fine. The users are setup in Active Directory. Now they want something really complex. I know how to do it in a few weeks in an ASP.NET website. That is my bread and butter. Here is what I would like to do.
I... | stackexchange/codereview |
I am currently working on a project where I want to implement a bit of logic for each .aspx viewed.
My idea was to use an httphandler that will target *.aspx, and in the handler, I would do my bit of logic, such as printing out: This is the xth page you have visited in this session.
I am curious if there are any proble... | stackexchange/codereview |
Recently I've heard an opinion that binary search may be improved by taking by splitting the range by phi (golden ration) instead of by 2. This was a big surprise to me, because I've never heard about such optimization. Is this true? Would this have been true if division by 2 and by phi was equally performant?
If not, ... | stackexchange/codereview |
I have a website with an authentication form that users must use to access the site.
When Google Chrome is used to access the site, there is no offer to save the user's credentials, despite browser settings being set to allow. The FORM tag is not using autocomplete="off", but it is running over HTTPS if that makes any... | stackexchange/codereview |
I have a piece of code that loops through every pixel in an image to edit its' aRGB values.
I've been coding up to up to iOS sdk 4.0 and it has been in the order aRGB. Since the release of iOS sdk 4.1, I've downloaded and installed. Now when I choose to run in the simulator with iOS sdk 4.1, the ordering is BGRa! (same... | stackexchange/codereview |
In my VF page i have option of selecting an account, i need to auto populate a label in VisualForce page with a custom field from the selected account.
How can this be done?
Thanks
Prady
| stackexchange/codereview |
I have a problem with my app, the new market feature added the "uses feature" implicitly, for the wifi feature.
the wifi feature in my app is optional, so I wanted to add
<uses-feature android:name="android.hardware.wifi" android:required="false" />
but, now the app does not compile (using SDK version 5 for android 1... | stackexchange/codereview |
Hi I am evaluating ICUTest for use on a project. My initial view is that it looks like a promising Visual testing library. The scenario I have for using ICUTest is to start an application with a specific configuration and I expect the main application window to display based on the configuration settings. Each unit ... | stackexchange/codereview |
page structure-
Page1 = aspx page with iframe(Page2)
page2= aspx page contain user control
usercontrol UC = have a link
Problem- if I click any link of US there is a popup message but the problem is that popus comes inside the I-frame.I want that popup on my main page (page 1)
| stackexchange/codereview |
I have a sharepoint list with a choice column containing the following choices (InProgress, Done, NotStarted, Abandoned etc...) what I'd like to do is sort the list by this column but define the sort order as NotStarted, InProgress, Done, Abandoned rather than an alphabetic sort.
Is there anyway to do this? I have conv... | stackexchange/codereview |
In C++ I need to convert a string to any type at runtime where I do not know what type I might be getting in the string. I have heard there is a lexical_cast in boost that I can use, but what would be the most effective way to implement it?
I might get a bunch of string like this from a client: Date="25/08/2010", Some... | stackexchange/codereview |
I want to add new field in My Account page, say check box for subscription, how can I do that ?
If there is a new field added in user profile, How can set its value on user's successful registration ? that is , one time setting DB value for that field .... Please suggest the way to do this ...
| stackexchange/codereview |
I have an Article controller & model. I want to have a function that adds one to an integer when a link is clicked. So I have say a "i like" button (link) it takes me to Articles/thumbsup it will then take the thumbsup field of that article and increment it by one, then save the article, and redirect to the view.
I'm ... | stackexchange/codereview |
I have a text file that looks like the following:
Line 1
Line 2
Line 3
Line 4
Line 5
filename2.tif;Smpl/Pix & Bits/Smpl are missing.
There are 5 lines that are always the same, and on the 6th line is where I want to start reading data. Upon reading data, each line (starting from line 6) is delimited by semicolons. I... | stackexchange/codereview |
If I have a mail object, eg:
mail = Mail.new do
from "jim@gmail.com"
to "jane@yahoo.com"
subject "Example"
text_part do
body "Blarg"
end
add_file "/some/file/or/some_such.jpg"
end
If I were to receive the above mail in my application
received_mail = mail.encoded
Message.parse(received... | stackexchange/codereview |
My GUI application controls its sister Windows Service using WCF's NetNamedPipeBinding. I want to prevent other applications from impersonating my GUI application and controlling my service.
Is it necessary to authenticate the GUI application to the Windows Service to prevent impersonation?
And how should I go about it... | stackexchange/codereview |
Assembly.GetEntryAssembly() does not work for web applications.
But... I really need something like that.
I work with some deeply-nested code that is used in both web and non-web applications.
My current solution is to browse the StackTrace to find the first called assembly.
/// <summary>
/// Version of 'GetEntryAssemb... | stackexchange/codereview |
Javascript = looked through Google and Stack Overflow -I am still lost as I am still new in programming and everything else. I have some questions that I need to know
so far, I have this below:
var getUrladdress = window.location.href; //get current url address
var sortbydiscount = "?sortby";
var discount = ["2... | stackexchange/codereview |
I have the table "Customer"
It contains the fields - CustomerID,Email and ExpiryDate.
eg:
CustomerID Email ExpiryDate
1 aji@gmail.com 19/11/2010
2 john@yahoo.com 18/11/2010
3 Joseph@gmail.com 19/11/2010
I have to send an alert m... | stackexchange/codereview |
I have a project that I am trying to install and run on another machine. One of the dependencies is visualbasic powerpacks. How do I ensure that the powerpacks .dll goes with the install?
On the properties tab I have set 'copylocal' to true, is there anything else?
Let me add a little bit more, when building the proj... | stackexchange/codereview |
I have a template class definition that needs to be in the cpp file. Adopting from http://www.parashift.com/c++-faq-lite/templates.html#faq-35.13, I did something like this:
// File "foo.cpp"
#include <iostream>
#include "foo.h"
template<typename T> void foo()
{
std::cout << "Here I am!\n";
}
template void f... | stackexchange/codereview |
Now that maven-3 did drop support for the <uniqueVersion>false</uniqueVersion> for snapshot artefacts it seems that you really need to use timestamped SNAPSHOTS. Especially m2eclipse, which does use maven 3 internally seems to be affected with it, update-snapshots does not work when the SNAPSHOTS are not unique.
It see... | stackexchange/codereview |
I want to have a small audio player on my website. It must have a play/pause and next and previous track buttons.
That's the easy part, but I want the player to work for I.E versions >= 6, FF, Safari and Chrome.
Are there any existing javascript/html solutions out there or perhaps you have done something similar befor... | stackexchange/codereview |
for (int i=0;i<[tableDataSource count];i++)
{
NSDictionary *dict = [tableDataSource objectAtIndex:i];
rowText = [dict objectForKey:@"title"];
UIButton *btn = [UIButton buttonWithType: UIButtonTypeRoundedRect];
[btn setTitle:rowText forState:UIControlStateNormal];
[btn addTarget... | stackexchange/codereview |
I'm trying to use GET variables to transfer some simple data but for some reason I'm doing it wrong.
My code is pretty simple. I use Node.js HTTP & URL libraries. When I try to run following code, I get TypeError: Cannot read property 'foo' of undefined. I really don't understand why because foo is passed in the URL an... | stackexchange/codereview |
I'm using PNUnit framework (based on NUnit) to run tests in Parallel. Basically the Runner deploys the PNUnitAgent on a client machine and sends it an NUnit Test as a dll file (as is normal for running PNUnit tests).
The problem is that the test is failing unexpectedly on the client machine. I need to troubleshoot how ... | stackexchange/codereview |
If I have the function:
function(foo, bar, baz);
And I want to allow for both named arguments and normal function calls, what is the best way of handling this? In php you can extract the variables into the local namespace but as far as I know the only way to handle this in javascript is by handling both scenarios sepa... | stackexchange/codereview |
I want to open my form with Default window size and ii have two panel inside them LeftPanel and RightPanel.I want those also resize with windows size.How will i do this in Windows C#.net.
| stackexchange/codereview |
I have a situation where I have been asked to write a program that essentially does an arbitrary SQL select over JDBC, convert the ResultSet to something loadable in Excel and send it as an attachment in an email.
The question goes for what dataformat to use in order to be loadable by as many different versions of Exce... | stackexchange/codereview |
I'm in a trouble managing a spinner, so may I ask for your help ?
I have a spinner with its adapter.
I initialize the spinner with a list of values when starting my activity.
Then I force the selected value to be the one used in the object that I manage.
Once the screen is initialized :
When the user selects a value in... | stackexchange/codereview |
irb(main):104:0> s = Status.all
=> [#<Status id: 1, card_id: 1, user_id: 1, next: "2001-01-01 00:00:00", level: 1, created_at: nil, updated_at: nil>, #<Status id: 2, card_id: 2, user_id: 1, next: "2001-01-01 00:00:00", level: 1, created_at: nil, updated_at: nil>, #<Status id: 3, card_id: 3, user_id: 1, next: "... | stackexchange/codereview |
I'm designing an xml-base language that is meant to be widely used. I've made an xsd file to define it. I'm in the process to finish the english specification.
My humility tells me that I really need to make it review by language design experts, xml/xsd experts and domain-related experts.
However, the related domain is... | stackexchange/codereview |
if ($node->taxonomy) {
$query = 'SELECT DISTINCT(t.nid), n.nid, n.title FROM {node} n INNER JOIN {term_node} t ON n.nid = t.nid WHERE n.nid != %d AND (';
$args = array($node->nid);
$tids = array();
foreach ($node->taxonomy as $term) {
$tids[] = 't.tid = %d';
$args[] = $term->tid;
}
$query .= implode... | stackexchange/codereview |
ExtJS:
I have a button where I want to associate a menu. I want to define the layout of the menu myself, and from what I gather from the documentation, the layout can be specified directly.
Button + menu:
{
xtype: 'button',
menu: {
xtype: 'menu',
plain: true,
layout: 'fit', ... | stackexchange/codereview |
this is my xml file...
-->
<!--Daily Genarated File Path-->
<add key="DailyFilName" value="C:\DailySummary.xls"/>
<!--Weekly Genarated File Path-->
<add key="WeeklyFilName" value="C:\WeeklySummary.xls"/>
<!--Log File Path-->
<add key="LogFilName" value="c:\\TranmittalsLog.txt"/>
i need to edit my DailyFilN... | stackexchange/codereview |
I am trying to make an on-line user content which refresh it self and calls every time php function.
I used
<div class="onlineFriends">
<?php
$members = find_online_friends($_SESSION['id']);
foreach($members as $member):?>
<div class="user" href=<?php echo ($member['f_id']); ?> rel="popup_name" >
<img src=<?ph... | stackexchange/codereview |
How do I convert a byte array to a string? Is this the correct syntax?
byteArray.toString();
| stackexchange/codereview |
I am using my own controller factory and sometimes in function
public IController CreateController(RequestContext requestContext, string controllerName)
controllerName parameter assigned with value "Content" which I can't find in my CompositionContainer.
That's why I have 2 question:
What is "Content" how can I filte... | stackexchange/codereview |
I'm crawling windows-1250 site (meta http-equiv="Content-Type" content="text/html; charset=windows-1250").
Since my database is utf-8, I need to convert data to utf-8.
For that job I tried iconv('windows-1250', 'UTF-8', $s); it gives "ÄŚarls" instead "Čarls".
It gives a bit better results when encodings switch places... | stackexchange/codereview |
I have to process spatial data which are nodes in a graph.What data type /variable type /data structure allows me to access the values of i-th node's x value and i-th node's y value.
| stackexchange/codereview |
I need to check if a file exists within a directory. The two options I thought of are using a regex (vbscript.regexp) to determine if the file is present. The other option being to use the FileSystemObject's FileExists method.
The cons of using the regex implies that I will need to loop through every file in the direct... | stackexchange/codereview |
I faced a problem with src attribute for images when parsing a html doc using HAP. Id the src attribute value is a long url with parameter, example: <img border='0' title='Kommunelogo' alt='Kommunelogo' style='margin-top: 5px;' src='http://livskraftig.bedrekommune.no/more/reports/profilechart.jsp?legend=Y&graphtype=xy&... | stackexchange/codereview |
Is routine2 ok too or shouldn't I do this? (I don't need a copy of @list in the subroutine)
#!/usr/bin/perl
use 5.012;
use warnings;
my @list = 0 .. 9;
sub routine1 {
my $list = shift;
for (@$list) { $_++ };
return $list
}
my $l = routine1( \@list );
say "@$l";
sub routine2 {
for (@list) { $_++ };
}... | stackexchange/codereview |
I installed Instant Rails on windows and tested using http://127.0.0.0:3000 on browser it showing WELCOME page.
Next : i started a sample application using commands
> rails hello
> ruby script/generate controller Hello index
with this it created a hello app
but i am when accessing http://127.0.0.0:3000/hello
it is giv... | stackexchange/codereview |
how i can alert div element reached particular top position,By default i have set top to 500 and animating towards top.
| stackexchange/codereview |
benfordd = dict()
for attr in attrs:
benfordd.setdefault(attr, []).extend([val*1e6 for val in x if not np.isnan(val)])
the above is just parts of my code, why is it that when I run this in ipython, I get this:
TypeError: function not supported for these types, and can't coerce safely to supported types.
does a... | stackexchange/codereview |
hi im new to android i have added defined login screen in one screen or activity im now navigating to next activity where i have to place elements for user to enter there details ..but where to place these elements since there is only one main.xml..
| stackexchange/codereview |
I want to make an application in c++ which will run periodically. much like an windows service. Is it possible to create a windows service in C++. If yes how?
Any tutorial for this?
EDIT: How can I create an installer for the Windows service?
| stackexchange/codereview |
A Silverlight application uses WCF RIA Services for connection to a SQL Server database. Before inserting a bunch of new records into a table, I should check if this table contains any records with a certain value in one of the fields.
My server side method in Domain service class:
[Invoke]
public bool CheckRec... | stackexchange/codereview |
In C, at least every positive value except for 0 is treated as a boolean true. But what about a negative value? I did some tests and it seems that also negative values are treated as a boolean true. Is this a defined behaviour or implementation specific?
(I came to think about this when I saw in a question, someone pro... | stackexchange/codereview |
I Have 5 spans i am trying to move them up/down (swap positions) in jquery
<a href="#" id="up">Up!</a>
<a href="#" id="down">Down!</a>
<span id='1'>Test1</span><br>
<span id='2'>Test2</span><br>
<span id='3'>Test3</span><br>
<span id='4'>Test4</span><br>
<span id='5'>Test5</span>
i have tryed but nothing is happenin... | stackexchange/codereview |
How can I create date and time settings dialog in Android? I want:
3 fields - day, hours and minutes
it should look native to the system - that makes writing my own widget quite hard - how to make the plus/minus buttons above/below each field look like the standard buttons that are in TimePickerDialog? I mean even on ... | stackexchange/codereview |
I've been looking for a while and want a way to sort a JSON object like this:
{"results": [
{
"layerId": 5,
"layerName": "Pharmaceutical Entities",
"attributes": {
"OBJECTID": "35",
"FACILITYTYPE": "Pharmacy",
"FACILITYSUBTYPE": "24 Hr Pharmacy",
"COMMERCIALNAME_E": "SADD MAARAB PH... | stackexchange/codereview |
I want to detect, in a JavaScript String, if there are some tags except than a list that I have. It means if in my String there are undesirable tags, then I detect them.
What I have done is :
var expression = new RegExp("<[^(BR|SPAN|STRONG|STRIKE|EM|U|FONT)]*>", "gi");
if (expression.test(aString)) {
// detectio... | stackexchange/codereview |
I use the readelf utility to check (-h) an executable file, and i see the e_entry field has the value: 0x8048530 . Then i recompile the checked program and have it to print its own program entry by adding the line: printf("%p\n", (void*)main) and outputs: 0x80485e4. Why do i have this difference? (OS: Linux 32-bit)
| stackexchange/codereview |
I have read the omniauth oauth rdoc
@consumer = OAuth::Consumer.new(key, secret, {
:site => "http://term.ie",
:scheme => :header,
:http_method => :post,
:request_token_path => "/oauth/example/request_token.php",
:access_token_path => "/oauth/example/access_token.p... | stackexchange/codereview |
The documentation poignantly explains that this parameter should be "true if the auto-expand rules should be used; otherwise, false.", but what does it mean exactly?
I can't seem to find any explanation online.
| stackexchange/codereview |
<table cellpadding="0" cellspacing="0" width="100%">
<% if(ViewData["CustomerInfoList"] !=null && ((List<SaaSModel.CustomerInfo>)ViewData["CustomerInfoList"]).Count()>0)
{
%>
<tr>
<td>
<%
Html.Grid((List<SaaSModel.CustomerInfo>)ViewData["CustomerInfoList"]).Columns... | stackexchange/codereview |
I'm playing with an algorithm to 'solve' activity networks - it's for a course in Project Management. The algorithm works on paper, but in order to solve it with a computer, I need a clever query which finds non-existent tuples in a self-joined table.
Let's say that the activities are as follows:
A goes to B, A goes t... | stackexchange/codereview |
I'm running ri version 2.5.8 and ruby 1.9.2. If I try something like ri Enumerable | less, the paging is broken in less. I see output but I can't use CTRL-F or CTRL-B to page back and forward. If I try to, I just see the literal "^F" and "^B" characters output at the bottom of the screen. What's wrong?
| stackexchange/codereview |
It's quiet hard to describe this problem but it's easy to see it graphically:
x y
1 1
2 1
3 1
* 4 1 *
5 2
* 6 2 *
7 3
8 3
9 3
* 10 3 *
I have sorted a table by x, then sub-sorted by y. I need to return the x value of the last item in the sub-so... | stackexchange/codereview |
I am using the following web.config file to redirect the non-www version of a site to the www version. However, I would also like to have it strip the file name of the index file as well.
For example:
redirecting www.example.com/index.html to www.example.com
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<... | stackexchange/codereview |
Just upgraded to hibernate 3.6.0 and found that this method is deprecated.
public Serializable getIdentifier(Object object, EntityMode entityMode) throws HibernateException;
It has been 'replaced' by this
public Serializable getIdentifier(Object entity, SessionImplementor session);
I'm not sure why this has been done... | stackexchange/codereview |
Where does a const variable gets stored exactly and how does it behaviour change? Say for example:
const int i=10; // stores where ?
main()
{
const int j=20; //stores where?
return 0;
}
If the answer is Code segment then how does the following code work??
main()
{
const int j=20;
int *p;... | stackexchange/codereview |
Can I start another process in the same command line window?
I have use StartInfo.CreateNoWindow = true;
It seems it does not work.
| stackexchange/codereview |
I'm very new to Blueprint, as in started this morning, but one thing that struck me is the 'problem' of fixed width content like an image. What do I do if the image is wider than the columns it resides in?
| stackexchange/codereview |
I have a collection of Strings, and I would like to convert it to a collection of strings were all empty or null Strings are removed and all others are trimmed.
I can do it in two steps:
final List<String> tokens =
Lists.newArrayList(" some ", null, "stuff\t", "", " \nhere");
final Collection<String> filtered =
... | stackexchange/codereview |
i got maybe a stupid issue on using entity classes on GWT pages. It is said that to show some class on GWT pages, this class must be defined within package of GWT client app. E.g. GWT application under com.foo.clinet can use only classes defined in this package and its subpackages to be shown in the components (like GW... | stackexchange/codereview |
# include <iostream>
# include <ctime>
using namespace std;
int stripWhite(char *str);
int main ()
{
char str[50];
cout << "Enter a sentence . " << endl;
cin >>str;
cout << "Your sentence without spaces is : " << endl;
cout << (str) << endl; // This is my problem. The sentence only prints the first word
stri... | stackexchange/codereview |
Can any one explain "class X x;" what actually it mean ...in the program...Please give me some example also?
Ex:
#include <iostream>
using namespace std;
class X {
public:
X() {}
};
class Y {
public:
Y() {}
};
int main()
{
class X x; //what is this? explain it
class Y y; //what is th... | stackexchange/codereview |
I have an XElement object that contains about 120MB of data. The XML consists of approx 6000 elements of about 20kb each.
I am trying to call XElement.ToString() as I need to return the OuterXml in a webservice.
I am getting a System.OutOfMemoryException.
System.OutOfMemoryException: Exception of type 'System.OutOfMemo... | stackexchange/codereview |
I am implementing a SSO solution for a controlled set of web sites using Dotnetopenauth. It's really cool once you get the hang of it.
I am using the SelectorProviderButton on the RP side, as this handles all the popup stuff automatically. However, the size of the popup is huge - basically the size of a full web page,... | stackexchange/codereview |
My app downloads files, creates files as final/intermediate data. I would like to setup a hook (outside the app), to alert/log whenever my app does any I/O events - like writing a file, deleting a file, downloading a file from the file server. I use the urllib to retrieve fits files from the data servers.
| stackexchange/codereview |
I've been using a function I made when I first started programming (Or shortly thereafter at least) to do the simple but extremely useful task of organizing an array based on parents and children. An example of where this would be useful would be for, say, if you had a list of items that can have an infinite depth of c... | stackexchange/codereview |
Is there any way to rollback to a specific version using Migrator.NET?
I'm running migrations on a SQL Server 2005 database using MSBuild;
"C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe"
/target:UpdateDb
/property:MigrationConnectionString="ConnectionString"
"D:\Projects\My.Migrations.csproj"
| stackexchange/codereview |
I'm new to unit testing and mocking. I have to convert unit tests in my current project with using Moq. Currently tests are using Nmock2. Can you help me with converting this code (using of CollectAction) with using Moq:
Action<IScanFolder> publish;
Mockery mocks = new Mockery();
this.mockChannel= mocks.NewMock<IChanne... | stackexchange/codereview |
I am developing web service under JBoss 5 and Java 1.6. What could possibly cause this exception? Below is my simplified web service code.
@Stateless
@WebService()
public class AccountWS {
@WebMethod()
public CreateAccountResponse createAccount(@WebParam(name = "request") CreateAccountRequest request) {
return nul... | stackexchange/codereview |
I have my crystal reports file accessing data from msaccess database.
now while loading report i need to pass the logon info of the msaccess database along with the database name from vb.net.
I tried using
Dim ConnInfo As ConnectionInfo = New ConnectionInfo()
CRpt.ReportOptions.EnableSaveDataWithReport = Fals... | stackexchange/codereview |
Possible Duplicate:
How can I reverse a NSArray in Objective-C?
I've NSMutableArray *mutArray = [[NSMutableArray alloc]initWithObjects:obj1,obj2,obj3,nil];
and each object have name, title, address
but i want to show mutArray in another NSMutableArray which shows in reverse order it means
obj3, obj2 & then obj1 , n... | stackexchange/codereview |
I want to get the files in folder and also in its subfolders.The following code does not get the files in its subfolder:
string[] files = Directory.GetFiles(txtFolderPath.Text, "*ProfileHandler.cs");
Can anyone Please tell me how to implement this in c# .net?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.