instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
What I basically need is to manage a large set of URL rewrites and redirects. The redirects are easy to do but the rewrites should be proxyed through the ARR proxy in IIS. As far as I can tell the IIS rewrite module uses the native setUrl API in IIS to get the ARR proxy to forward the request. I'm not up to the task of... | stackexchange/codereview |
I want to find every url in text and wrap them with a tag (<a href="...">...</a>).
var src = "bla blaaa blaaaaaa 1 http://yahoo.com text something about and. http://www.google.com";
var match = /http:\/\/([a-z0-9.-]+)/.exec(src); //this only can one matched
// result: ["http://yahoo.com", "yahoo.com"]
But i need to ... | stackexchange/codereview |
How to get the SSL certificate context of the website using NPAPI ? Can I use libnss (Network Security Services) or should I stick to WinINet's InternetQueryOption() to get the context.
Thanks,
Saleh
| stackexchange/codereview |
on the ui i am having a back button displayed. there are three activities say A,B,C. Activity A is splash screen. Activity B is home screen. Activity C is edit screen. on edit screen only i am having a back button. when the user press that i open the activity B which also contains some sort of http request and response... | stackexchange/codereview |
I found a lot of threads more or less related to this topic and still almost nothing like full answer... I'm looking for your advice on it.
So, here is my problem: I really need to communicate with a subprocess in both ways: I have to wright a lot of data to its input and get its output on the fly. There is no way arou... | stackexchange/codereview |
i am creating a database table that is going to store menu links that will ultimately show up on a web page.
My issue is that i want to control the order of the menu items. I could have a field called order but everytime i have a new menu link i would have to insert the order and change all of the records with higher ... | stackexchange/codereview |
what if I just want to use SFAuthorizationView for "setEnabled: YES/NO" of parts of UI (let's say check boxes)? I don't want to work with rights at all. I just want to know that user has set the right password asociated with his username... That's all... Is there any way how to do that without setting things like Autho... | stackexchange/codereview |
I am facing a bit strange problem with implementation of UIAccelerometer.
I have a UITableViewController where I don't wanna use UIAccelerometer, but after pressing on of the rows I wanna activated one inside a UIViewController, everything is fine when I use simulator, but when I use device iPhone 3G to test it, I got... | stackexchange/codereview |
i'm using the jquery ui button, is it possible to display the radio button vertically?it seems to default to horizontal.
http://jqueryui.com/demos/button/#radio
many thanks
| stackexchange/codereview |
i'm developing a calendar webapp for my company using ruby 1.8.7 and
rails 2.3.8. naturally there are RoR models named "Calendar" and "Event".
in order to send calendar events to other apps (microsoft outlook &
lotus notes) i'm integrating with the iCalendar standard & ruby
library. http://icalendar.rubyforge.org/
bu... | stackexchange/codereview |
I need to pull the value out of an object and am not sure how to get to it.
Here's a slimmed down version of my code. Can someone tell me how to get the color?
var object = {
'fruit' : {
apple: {
goldenDelicious: [
{ color: 'green' }
]
}
}
}
| stackexchange/codereview |
I am running rails 2.3.9 and trying to run:
rake rails:template LOCATION=http://compass-style.org/rails/installer
to install compass into my existing project.
I am on a Windows vista machine and it's giving me:
rake aborted!
redirection forbidden: http://github.com/chriseppstein/compass/raw/master/lib/compass/app_integ... | stackexchange/codereview |
Is it possible to restrict a method in WCFService to only respond to a particular endpoint?
e.g.
I have a service that has multiple methods, one of which will be receiving a file.
I have exposed two endpoints, one using MTOM.
Is it possible to only allow MTOM for the "file" method.
If the end user wants to use MTOM for... | stackexchange/codereview |
I am trying to listen for a mouse click anywhere on my window (Except for the locations where the buttons are, but I'll deal with that later) and then return the point (x,y) of the location.
here is the relevant code:
private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
Console.WriteLine(... | stackexchange/codereview |
I have a menu of list items in the left 'div' of my web page. I am currently selecting one of the list items and opening a new web page.
I would like to have the content displayed in my center 'div' when the list item in the left 'div' is selected.
How can I accomplish this?
I have the list items in 'col2' (on the lef... | stackexchange/codereview |
Considering an already loaded and rendered TabControl with three tabs, with selected tab being index 1 (the middle one):
Tab 1: Has one TextBox
Tab 2: Has two TextBoxes
Tab 3: Has three TextBoxes
If I iterate through the selectedItem's visual tree with VisualTreeHelper, I will get Two textBoxes within the TabControl's ... | stackexchange/codereview |
I am putting together an application that connects to a vfp database. I have it working fine if I define my connection string in the app.config file -
<add name="vFoxProSource" connectionString="Provider=vfpoledb;Data Source=C:\directory\database.dbc;Collating Sequence=machine;" providerName="System.Data.OleDb.OleDbC... | stackexchange/codereview |
WCF allows you to specify an external WSDL file that should be published with the service rather than WCF's generated WSDL. In a WSDL-first design approach, it makes a lot of sense to publish the source WSDL rather than the generated WSDL.
This is set using the externalMetadataLocation:
<serviceBehaviors>
<behavior>... | stackexchange/codereview |
I need to perform a grouping aggregation similar to something like this in T-SQL:
select b.Name as [Grouped Name],
COUNT(distinct a.ID) as [Grouped Count],
COUNT(distinct c1.ID) as [Second Group Count],
COUNT(distinct c2.ID) as [Third Group Count]
from TableA a
left join TableB b on a.ID = b.TableAID
left join TableC... | stackexchange/codereview |
I have a custom (generic) proxy class that I use to connect to my WCF services. One of the functionalities I want to provide with this class is the ability to "recover" from service failure (i.e. faulted communcation channels) and shutdown. For this purpose I obtain a reference to the service channel and subscribe to t... | stackexchange/codereview |
Is there a good way to add new image resources(from SD card) to a gallery widget at runtime?
| stackexchange/codereview |
I was thinking how to build an automated system to pay users who got some credits on the website.
Let's make things simple: I have an user table with a field €CREDIT for each users.
How can I pay each month those users?
| stackexchange/codereview |
I am using the here doc to print usage messages for the user. Is there a way to print specific words BOLD similar to the man pages on unix. I am using this on Unix. Is there a way to use Term::ANSIColor(or some other way?) with the here doc?
| stackexchange/codereview |
In my app, I have an NSOutlineView that gets its data from a NSTreeController -- which in turn gets it from the Core Data model.
What I would like to do now is to add group headings and maybe some additional rows to the outline view -- obviously things that should exist outside of the model and be part of the view. But... | stackexchange/codereview |
I load local data inside a UIWebView. That instance of UIWebView is added to a UITableViewCell as a subview inside method
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
with the following snippet:
[myCell addSubview:aWebView];
The filled webview's height is larg... | stackexchange/codereview |
When I execute the following code; I get a seg fault every time! Is this a known bug? How can I make this code work?
<?php
$doc = file_get_contents("http://prairieprogressive.com/");
$replace = array(
"/<script([\s\S])*?<\/ ?script>/",
"/<style([\s\S])*?<\/ ?style>/",
"/<!--([\s\S])*?-->/",
"/\r\n/"
)... | stackexchange/codereview |
Having some problems initialising a google map using geocoding. First issue is with any commas being used in the $gmap string, second issue is with getting a "gmap_initialize is not defined". I know everything outside of the function is correct, any ideas?
<?php $gmap = "Prague, Czech Republic"; ?>
<script type="text/... | stackexchange/codereview |
The guide at
http://guides.rubyonrails.org/
There doesn't seem to have a link to link back to older guides.
| stackexchange/codereview |
Apologies in advance if this question is a bit vague. It's the result of some weekend daydreaming.
With Haskell's wonderful type system, it's delightfully pleasing to express mathematical (especially algebraic) structure as typeclasses. I mean, just have a look at numeric-prelude! But taking advantage of such wonderful... | stackexchange/codereview |
In Java how do I go about determining what classes a class extends?
public class A{
}
public class B extends A{
}
public class C extends A{
}
public class D{
}
public class E extends B{
}
public class doSomething{
public void myFunc(Class cls){
//need to check that cls is a class which extends A
... | stackexchange/codereview |
I saw the following code used to delete one selected element from std::vector:
vector<hgCoord>::iterator it;
int iIndex = 0;
const int iSelected = 5;
for( it = vecPoints.begin(); it != vecPoints.end(); ++it, ++iIndex )
{
if( iIndex == iSelected )
{
vecPoints.erase( it );
break;
}
}
I ar... | stackexchange/codereview |
I currently have a website written in classic asp that runs multiple queries against sql, agregates the querues and than pushes them out for display on a web browser. (Paging is not allowed) The issue is that the web server agregates all the query results before displaying which takes up a lot of memory for even one qu... | stackexchange/codereview |
I'm working on developing some web services using RESTeasy and Seam. One of the services I'd like to create is a Query by Example service.
I first tried to code it like this:
@GET
@Produces("application/xml")
@Consumes("application/xml")
@Path("/matching")
public MessageList getMatchingMessages(Message msg);
This, un... | stackexchange/codereview |
I often run into a situation where I want to have a set of key/value pairs. Here's a pseudo code idea:
DataSet MyRequestStatus
{
Accepted = "ACC",
Rejected = "REJ"
}
Usage:
InsertIntoTable(MyRequestStatus.Accepted.ToString())
I want to be able to use the friendly "MyRequestStatus.Accepted", but I want the ToStri... | stackexchange/codereview |
I'm drawing an arrow as a <s:Path> and I need to get notified when the mouse is over it. How can I do that?
The arrow is an element of a Group container.
I tried registering for MOUSE_OVER events for both the container and the arrow and none seem to fire...
| stackexchange/codereview |
I have a Rails (2.3.8) webapp that needs to have the ability to list your contacts in form of "personal/presentation cards".
The "cards" have to be dinamycally generated from DB data (including common personal info plus a little avatar image). I can make the div that represent a card, but then I need some plugin to mak... | stackexchange/codereview |
Can we declare a variable with fixed length in PHP?
I'm not asking about trimming or by putting condition do substring.
Can we declare variable just like database char(10).
The reason I'm asking am doing an export process, PHP export data to DB.
In DB I have a field with size 100, and I'm passing a field with length 25... | stackexchange/codereview |
I've developed a user-control class which i intent to use for buttons . After declaring them in my form1 class, i use something like this : inout_button1.click += new EventHandler(but1); to add a handler for the click . all is well till here. from another thread i wish to invoke a method in my form1 class that changes ... | stackexchange/codereview |
I'm working on a site that was built by one of our vendors (who we no longer work with).
There's a div on a page used to hold the contents of a slider. The slider has a number of different panes, each with a photo and some text. When you click the left or right arrows, the content slides to the right or left to show ... | stackexchange/codereview |
I am trying to do something like this:
var test = {
a: 10,
b: 20,
c: (this.a+this.b)
};
but it doesn't work. How can I access the test.a from within test.c?
Is it possible?
| stackexchange/codereview |
At my workplace, we wrote a custom log4j appender that writes log messages to the database (uses a dedicated thread asynchronously, so no performance hit).
I prefer it a lot over writing to log files - a database-based log is much more easy to query and analyze.
Is there an open source solution that does this (for log... | stackexchange/codereview |
From jquery how to insert o
<tr><td>some other data</td></tr>
after the tr id=user
<table>
<tr id="user">
<td>some data</td>
</tr>
</table>
| stackexchange/codereview |
How come a case option in a switch statement that does not contain a break automatically forwards to a next case without check?
try {
switch($param) {
case "created":
if(!($value instanceof \DateTime))
throw new \Exception("\DateTime expected, ".gettype($value)." given for self:... | stackexchange/codereview |
I need to add 'balloon'- like markers to my map view. The difficult thing here - these markers include a variable-length text labels so these balloons have variable sizes. Actually this is exactly what implemented in native google-maps application to show labels.
Any idea what is optimal way to do this?
| stackexchange/codereview |
We have a custom javax.security.auth.spi.LoginModule used for web services as well as some web applications on a Weblogic 11g.
The goal is to record information regarding logins when going through the LoginModule, especially failed logins. Part of the desired information is the IP address that the authentication reque... | stackexchange/codereview |
So I have a common instance of a class shared between 2 other classes on different threads. let me explain:
public class Config
{
public IEnumerable<Regex> GetSafeRuleRegex()
{
foreach (string rule in this.SafeRules)
{
Regex regex = null;
try
{
... | stackexchange/codereview |
I read that JCA is for legacy EIS integration. Is this spec geared towards vendors and not the application developer? I am curious to know of use cases where developers wrote JCA adapters to solve their technical or business problems.
| stackexchange/codereview |
I'm currently using my factory like this:
public class AbstractFactory
{
public static AbstractHeader parseHeader(File file)
{
if(AFactory.canRead(file))return AFactory.parseHeader(file);
if(BFactory.canRead(file))return BFactory.parseHeader(file);
throw new UnsupportedOpera... | stackexchange/codereview |
I am trying to display an XML tag attribute via xslt but am having trouble figuring it out.
My xml file looks similar to this:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="results.xsl"?>
<search command="grep -n -i -I htm C:\firebreath\*">
<match number="1">
<filename>C:\firebreath\CMakeLists.txt <... | stackexchange/codereview |
I haven't found any resources on how to do that. Something as simple as changing the color of the player would be nice to have :)
| stackexchange/codereview |
I have this string 1,2,3,4,5
and say i remove 1 then it becomes ,2,3,4,5 or 1,2,,4,5
how do I remove "1," or any number from the list and replace those extra commas and also keep in mind the last number "5" doesnt have a comma.
I can use the string replace javascript function , I am more concerned with the last numbe... | stackexchange/codereview |
i have the below code i want to put in a global method set as static so that i can build a couple tree views on my asp.net web app. now i have each building its own tree view using the code below. i was thinking to make a global static method to generate the node structure such as this and then just assign them to the ... | stackexchange/codereview |
Have a 5 columns of address data. I need to concatenate these fields into a single address with spaces in between the values if they exist. If the column has a null value I should skip it and not enter any space.
select
case
when street_number != '' THEN (cast(street_number as int))
e... | stackexchange/codereview |
I basically have a simple calendar I set up. As of now, it shows "future" events. And then the event expires that day... I would love to find a WHERE statement that I can use to have that "event" stay up for 1 day past the "post_date"
(so if I post it as Nov. 15th,) The event would show: Name of event - Nov. 15th
And I... | stackexchange/codereview |
I have now something like this:
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public string Method1()
{
SomeObj so = SomeClass.GetSomeObj(); //this executes very long time, 50s and more
return so.Method1(); //this exetus in a moment
}
[WebMethod]
public s... | stackexchange/codereview |
I'm trying to connect to a server, and then send it a HTTP request (GET in this case). The idea is request a file and then receive it from the server.
It should work with both text files and binary files (imgs for example). I have no problem with text files, it works perfect, but I'm having some troubles with binary f... | stackexchange/codereview |
Java Wrapper classes are supposed to be immutable. This means that once an object is being created, e.g.,
Integer i = new Integer(5);
its value cannot be changed. However, doing
i = 6;
is perfectly valid.
So, what does immutability in this context mean?
Does this have to do with auto-boxing/unboxing?
If so, is th... | stackexchange/codereview |
I would like a simple example on how to use the Leaks tool.
see:
#include <iostream>
int main (int argc, char * const argv[]) {
char *buf = new char[100];
sprintf(buf, "Hello, World!\n");
// insert code here...
std::cout << buf;
return 0;
}
the code above(simple example) should leak the pointer allocated... | stackexchange/codereview |
I have a scatterview item which has following contents in order mentioned in vertical order.
TextBlock which will show 1-3 lines of text - TextBlock1
Image - size will vary based on image resolution, but i will set a minimum height, width in property.
TextBlock - this will show 1-10 lines of text - TextBlock2
A surfac... | stackexchange/codereview |
I'm doing a numerical simulation of gravity in C++ and I want to back up my results every time a single step is counted.
However, the way I do it now, the programm always overwrites the file. I guess I would be able to solve in by always saving the text in a different file or variable, but I wonder if there's an easier... | stackexchange/codereview |
When I want to read an attribute, I use
$('#mydiv').attr('id');
How do I write to this attribute instead, so that I can change the id of the div in the markup?
| stackexchange/codereview |
I have a set of categories for a MySQL database that wont change much, but might on occasion. (maybe around a dozen choices)
For this sort of situation, where answers are basically multiple choice, should I just use a text field in my main table then in PHP limit the answers, or make a separate table to hold the lookup... | stackexchange/codereview |
Is it possible to have a foreach loop in PHP with multiple "index" variables, akin to the following (which doesn't use correct syntax)?
foreach ($courses as $course, $sections as $section)
If not, is there a good way to achieve the same result?
| stackexchange/codereview |
I have an apache 2.2 and I am using mod_rewrite. My objective is to forward traffic from
http://localhost:80/AA to http://localhost:8090/BB. So I have a simple rule
RewriteRule http://localhost:80/AA http://localhost:8090/BB
My problem is that the client receives "302 Found". I was hoping that the RewriteRule will
forw... | stackexchange/codereview |
How does Facebook work with AJAX? Thanks a lot!
Before
http://www.facebook.com/#/events.php
Now
http://www.facebook.com/?sk=events
| stackexchange/codereview |
how do you map a Component list in Nhibernate fluently?
public class Registration : Entity
{
public virtual IList<InsuranceInformation> InsuranceInformation { get; set; }
}
public class InsuranceInformation
{
public virtual Person Insured { get; set; }
public virtual string PolicyNumber { get; s... | stackexchange/codereview |
Do facebook application access tokens expire? These tokens are used for administrative purposes.
I have had an access token work for more than two weeks, but I would like to see a reference to something official, which I cannot find.
EDIT: I was not clear enough in my initial question. I was referring to the administra... | stackexchange/codereview |
I have this structure...
grandpa hasMany children, children hasMany kids
can i make a tree of those 3 tables? I think my question really is, can i use only those tables without creating another one to make a tree structure?
| stackexchange/codereview |
HI,
My question has to do with a very basic understanding of Writing data to using a StreamWriter.
If you consider the following code:
StreamWriter writer = new StreamWriter(@"C:\TEST.XML");
writer.WriteLine("somestring");
writer.Flush();
writer.Close();
When the write... | stackexchange/codereview |
Is the code below correct for saving to disk?
// get the path to the "Documents" directory
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
// get the path to our plist ("Documents/foo.plist")
NSString *plistPat... | stackexchange/codereview |
I'm looking for some predefined Regexes for elements of ANSI C++.
I would like to create a program which takes a headerfile (with includes, namespaces, classes etc) as input and returns lists with the found classnames, methods, attributes etc.
Its hard to google for something like that, I always end up with tutorials o... | stackexchange/codereview |
I am new to xforms - using Orbeon Form Builder 3.8 PE. I have read about advanced xbl controls like 'Alert Dialog' and 'Datatable'. These would be very useful in my application, but I cannot bridge my knowledge gap as to how to implement them.
It seems either I need to add a property somewhere to get them in the to... | stackexchange/codereview |
I am wondering if JSR 88 is a standard part of Java EE 5 and if there are any app server vendors implementing this
| stackexchange/codereview |
I was wondering if there is a way to get a feed (xml, or other format) for a sharepoint calendar.
Any ideas?
| stackexchange/codereview |
I always struggle with joins within Access. Can someone guide me?
4 tables.
Contest (id, user_id, pageviews)
Users (id, role_name, location)
Roles (id, role_name, type1, type2, type3)
Locations (id, location_name, city, state)
Regarding the Roles table -- type1, type2, type3 will have a Y if role_name is this type. ... | stackexchange/codereview |
In an ASP.NET application, I have saved a password to the database as "Binary" data using md5.
How can I now compare passwords?
I used the code in this article to encrypt the password with md5
The code is working. How can I compare the password when users enter their password at login? What's the code to check if the ... | stackexchange/codereview |
We are trying to Integrate SQLite in our Application and are trying to populate as a Cache. We are planning to use it as a In Memory Database. Using it for the first time. Our Application is C++ based.
Our Application interacts with the Master Database to fetch data and performs numerous operations. These Operations ar... | stackexchange/codereview |
I want to use a form variable inside a cakephp model class variable $actsAs.Below is an example code.
public $actsAs = array('MeioUpload' => array('doc' => array('allowedMime' => array('application/x-compressed','application/x-zip-compressed','application/zip','multipart/x-zip'),'dir'=>'uploads'.DS.$this->data['User'][... | stackexchange/codereview |
Given the following code:
eval('(mapping.' + binding.field + ' = eval("extVar") )');
where binding.field = "LPP[0].price" (a string) and
extVar is the same value of "LPP[0].price"
How could you program the statement above to end up with:
mapping.LPP[0].price = LPP[0].price;
when mapping.LPP isn't defined yet? This c... | stackexchange/codereview |
In MatLab R2010B, how do I reference fields in the object returned by the function call to imageinfo? I'm
Example of the code:
imagePropObj = imageinfo('imageFile.tif');
This pops up a window showing the various properties of the image file. Then I try accessing the Width property using
imagePropObj.Width
but I get ... | stackexchange/codereview |
I'd like for events running in a thread dedicated to audio to change the UI. Simply calling view.backgroundColor doesn't seem to have any effect.
Here are two methods in my viewController. The first is triggered by touches. The second is called from the audio code. The first works. The second. Any idea why?
// this ch... | stackexchange/codereview |
im now using FancyUpload (flash upload) to allow user to upload files in a small project.
I use Generic Handler to handler in server when user uploads his file, but i'm getting error: Can't get session in Generic Handler (.ashx) when using Firefox or Chrome etc except IE
I read so many solution and finally found out th... | stackexchange/codereview |
I have to use CVS in my work and at the end of the day, I need to generate a report in an internal enterprise system.
I write meaningful comments in all my work. I would like to do a cvs log or cvs history, with only the comments from each file I have commited to the repository (a solution using only command line, so I... | stackexchange/codereview |
As of October 2010, is GNU's Java compiler dead?
Are there any active alternatives (especially for compiling Java to native code)?
LLVM solutions would be preferred.
| stackexchange/codereview |
As part of a Windows Workflow hosted on SharePoint we want to send a meeting request to non-active directory users, some of whom will most likely use an iPhone. We are currently using WebDav to talk to Exchange which sends out the email containing the request. The mail is successfully received as a calendar item in Gma... | stackexchange/codereview |
Any way to do this without using a div?
Acting only on the body alone?
| stackexchange/codereview |
I am currently running a traditional MySQL Master/Slave set up with about 90GB of data. The traffic on our application is increasing rapidly, and already this set up is showing signs of slowing down. I would very much love to try out MongoDB and I am especially excited with the auto-sharding feature.
However, I current... | stackexchange/codereview |
I'm trying to make a simple PyQT4 application that will let me show the text from two textboxes in a single message box. It's pretty straight forward, so I'm sure I'm missing something really tiny.
Thanks for your help.
import sys
from PyQt4 import QtGui, QtCore
class myWindow(QtGui.QWidget):
def __init__(self, pa... | stackexchange/codereview |
As the title says , why isn't user-control class access not safe from another thread? I heard that there is a way to enable cross-thread access and am thinking of doing so.. Any thought why i shouldn't ?
| stackexchange/codereview |
I was wondering if I can use automatic properties and still be able to fire events on property changed. Here are my current classes. (The actual User class got way more properties/fields of course).
public delegate void UserEventHandler(object sender, EventArgs e);
public class User
{
public event UserEventHandler... | stackexchange/codereview |
Is it possible to embed the Visual Studio 2010 report designer functionality into my WPF application?
Initially I was considering the use of Report builder, but for providing ad-hoc reporting capability from within application, I need to teach users too many steps before they start creating a simple report. So I am now... | stackexchange/codereview |
I have filters like the ones defined below. They run the same code block in various places, so to keep it DRY I refactored that code into a method called doResponse().
class MyFilters {
def filters = {
web(uri: '/web/**') {
before = {
// Do Stuff
if (condition) ... | stackexchange/codereview |
One way of parallelization in R is through the snowfall package. To send custom functions to workers you can use sfExport() (see Joris' post here).
I have a custom function that depends on functions from non-base packages that are not loaded automagically. Thus, when I run my function in parallel, R craps out because c... | stackexchange/codereview |
How to convert List of Object to XML doc using XStream ?
and how to deserialize it back ?
This is my xml
<?xml version="1.0" encoding="UTF-8"?>
<persons>
<person>
<fullname>Guilherme</fullname>
<age>10</age>
<address>address,address,address,address,</address>
</person>
<person>
<fullname>Guilherme</fullnam... | stackexchange/codereview |
Greetings,
I'm using appcelerator to develop some apps, but I'm encountering some problems.
Every time I close the base window, I keep getting some black screen. How do I exit the application without having to press the Android back button twice?
Many thanks in advance,
| stackexchange/codereview |
I found that you can call a generic method with a special Type, e.g.:
suppose we have a generic method:
class ListUtils {
public static <T> List<T> createList() {
return new ArrayList<T>();
}
}
we can call it like:
List<Integer> intList = ListUtils.<Integer>createList();
But how can we call it when it... | stackexchange/codereview |
An application I'm writting in silverlight/c# consists of 13 permanent buttons that when clicked perform a simple navigation to another page.
The problem is my code behind has 13 different event handlers(alot of code) for a nearly identical purpose.
Is there a way to detect which button was pressed so that a single eve... | stackexchange/codereview |
I have C code that listens on a port, but it is listening on the wrong port.
This is defined in a .h file:
#define PHANTASIA_PORT 2101
The socket:
int the_socket, error, on=1;
/* create a socket */
errno = 0;
if ((the_socket=socket(AF_INET, SOCK_STREAM, 0)) == -1) {
sprintf(error_msg,
"[0.0.0.0:?] Soc... | stackexchange/codereview |
I'm using .NET 4.0 with ASP.NET 4.0 and C# (would that be C# 4.0?).
I want to insert some data into my SQL Server database and I have a method like so to handle this:
public int InsertTrade(
string symbol,
string tradeSetupId,
int tradeTypeId,
decimal lotsPerUnit,
string chartTimeFrame,
int trad... | stackexchange/codereview |
I have configured my application to use log4net as follows:
<log4net>
<appender name="SQL_Comandos" type="log4net.Appender.AdoNetAppender">
<bufferSize value="100" />
<connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.