instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to stream video from the Android phone, which should be watched in an mediaplayer.
I've been looking at http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system which seems to be a dead end since it send the raw file data, and not a streamable format.
Then... | stackexchange/codereview |
Consider the following sas code fragment:
%macro temp(querystr=);
filename request temp;
data _null_;
file request;
put "<string>&querystr</string>";
run;
%mend temp;
%temp(querystr="term 1" and "term2");
Note that this piece of code will not compile because the first quote in querystr will close the ... | stackexchange/codereview |
So I have one input field that needs to pop up in another place when the user changes a tab and presses a button,
but I figured tossing the div around would be too much hassle,
so is it instead possible to make two input fields but have them display the same input entered by the user?
Or is there an easier way?
| stackexchange/codereview |
I have a classes:
struct Policy_1
{
void signalFailure()
{
throw std::exception();
}
};
struct Policy_2
{
void* signalFailure()
{
return nullptr;
}
};
template<class Policy>
struct My
{
template<cla... | stackexchange/codereview |
How would someone do that?
for example:
Client* client = it->second;
where it->second is a boost::shared_ptr to Client
error:
cannot convert `const ClientPtr' to `Client*' in initialization
| stackexchange/codereview |
I am using mdb2 for my website and i ran into a problem. I have an order_no field in my table that i would like to have a default value like LAST_INSERT_ID() + 1. Is there a datatype that can be set for this kind of mysql functions for mdb2->autoExecute?
Thank you.
| stackexchange/codereview |
Is there a reason why a Socket should close by itself, after 2h? I am receiving data every second from this socket, and writing back some tiny "keep-alive" data every 30s.
Before sending, I check if socket is still connected using the following method:
public bool IsSocketReadyForWriting(Socket s)
{
try
{
i... | stackexchange/codereview |
I have a password in my code which is needed to connect to a sftp server. Whats the best way to "obfuscate" or hide it in the code?
Thanks
| stackexchange/codereview |
I'm trying to run FitNesse within a different directory structure. If the start of FitNesse is something like:
{Path to fitnesse direcotry}\run.bat -d {path to fitnesse directory} -p 8081
it will work as expected. That means it will find a subdirectory called FitnesseRoot and within this directory my acceptance test ... | stackexchange/codereview |
I'm working to refine code within an .htaccess file but am having problems with rewriting the url for sub directory requests from https to http. Here's my attempt:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SERVER_PORT} =443
RewriteCond %{REQUEST_URI} !\.(js|css|jpe?g|png|bmp|gif)$ [NC]
RewriteRule !^dash... | stackexchange/codereview |
Perl automatically initializes variables to undef by default.
Is there a way to override this default behavior and tell the Perl interpreter to initialize variables to zero (or some other fixed value)?
| stackexchange/codereview |
I've only worked with .NET in a web environment, but I'd like to create a desktop app that will be a watered-down version of my web app, which will do some basic CRUD operations, send some e-mails, etc.
It's still .NET and C#, but it's the little things that sometimes cause the most trouble. I know I'll have to think d... | stackexchange/codereview |
I have a normal message output $msg. I want it to make it links, if it is links. (containing http:// or www.) then it should make it <a href="http://google.com" target="_blank">http://google.com</a>
I have stripped html from the messages
$msg = htmlspecialchars(strip_tags($show["status"]), ENT_QUOTES, 'utf-8')
How ca... | stackexchange/codereview |
I've added an inserted in Gallery using android API as following:
Images.Media.insertImage(ctx.getContentResolver(),
"scard/test.jpg", "Hello" ,
"description");
Actually the image that I passed its full path (scard/test.jpg) is already successfully inserted in the DB, but when you open the gallery you can't see i... | stackexchange/codereview |
While passing through code in our project I came across a web method that had this code at the end of it:
thread.sleep(6000);
return true;
Now, this was done so the jQuery ajax call from the client gets delayed and the ajax animation will show for a little bit longer.
This is very wrong in my eyes. There shouldn't be ... | stackexchange/codereview |
In my SQL Server Management Studio 2008 project I have created a table called
Catalog (
catalogId NOT NULL PRIMARY KEY,
catalogName VARCHAR(20),
CatalogImage VARBINARY(MAX)
)
with 3 entries:
catalogId | catalogName | catalogImage
1 | jon | NULL
2 | jim | NULL... | stackexchange/codereview |
When I run doctrine orm:validate-schema, it pops up a bunch of warnings about my mapped columns being public and not using getter/setter methods to wrap them. It says that they "break lazy loading". I can understand how making associated collections public could be problematic (I do make these private and wrap them), b... | stackexchange/codereview |
Right now, without using properties, I've got this:
public void SetNumber([Array(new int[]{8})] Byte[] number)
As you can see, I am adding the ArrayAttribute attribute to the parameter.
What I want to do is the same but on a property setter. This doesn't work:
[Array(new int[]{8})]
public Byte[] SetNumber
{
set
{
... | stackexchange/codereview |
How can I read an existing text file and modify some of its value based on some condition like if I get some text like
Apple 1 3 5
Now, here whenever I get an integer value I have to increase its count by 1 and save back to the same file again.
For example, if I read some content like above I should be able to save
Ap... | stackexchange/codereview |
Lot of PHP, Perl ones, but very few Java apps? Most of existing ones are very old and use old technologies.
Java is only eCommerce platform as to me ;)
| stackexchange/codereview |
I want to automatically update my redmine project repository after anybody pushes into remote repo. Currently gin in redmine is up and works fine. But after automatic update using a hook I get The entry or revision was not found in the repository. in redmine.
To set up git in redime I followed redmine wiki so the repo ... | stackexchange/codereview |
I have a grails WAR that works in production in tomcat6, but when I go to redeploy the WAR, I overwrite the WAR files. The app reloads and I can load the front page (static page) but then when I try go to any other page I get this warning.
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error execu... | stackexchange/codereview |
Note: pseduo code and fake-thought-up-on-the-spot classes/properties ... to protect the innocent
I'm trying to retrieve the Person instance, where the person has a particular name ... as an IQueryable result.
Given the following code...
public class Person
{
public ICollection<PersonDetails> PersonDetails { get; se... | stackexchange/codereview |
I am currently writing an web application where you need to log in, using username and password. The next step in the process is to select a Project in which the logged in user is involved.
Once the project is selected and the submit button has been clicked, a servlet is called to prepare the selected project and cre... | stackexchange/codereview |
I have the following xml sitemap file:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="NewSiteMap.xsl"?>
<siteMap>
<siteMapNode
url="~/UsingMasterTemplate.aspx?id=1"
title="Home"
description="AAAAAAAAAAAAAAAAAAA">
<siteMapNode
url="~/UsingMasterTemplate.aspx?id=2"
... | stackexchange/codereview |
Alright, so I've got a pretty weird error.
Say I have the string "Ön Åsa Äpple föll ner i sjön"
query |result
Ön |Found
ÖN |Found
ön |Found
<same pattern works with Åsa and Äpple as well>
föll |Found
Föll |Found
FÖLL |Not found
This doesn't make any sense to me. Clearly ... | stackexchange/codereview |
Hi
I am getting an error
'Conversion failed when converting date and/or time from character string'
When calling a stored procedure using EF4.
I am passing from my c# 2 DateTimes like this
@FromDate='2010-11-10 12:30:14.2558729'
@ToDate= '2010-11-10 12:30:15.1169590'
How can I prevent this error?
if I do the followin... | stackexchange/codereview |
I am starting on making so images turns out as small thumbnails.
But I need a regular expression to check if it contains *.jpg, *.jpeg, .*png, *.gif
How can that be made?
| stackexchange/codereview |
I am trying to get the access_token from facebook. First I redirect to facebook using an url as the following
https://graph.facebook.com/oauth/authorize?type=user_agent&client_id=7316713919&redirect_uri=http://whomakescoffee.com:8080/app/welcome.jsf&scope=publish_stream
Then I have a listener that gets the... | stackexchange/codereview |
I'm a novice in jQuery, but I hope somebody will be able to help me out. I have searched this forum (and others) but haven't been able to find an answer that I could make work.
I have a link like this:
<a href="#">
and a jQuery script:
$("div.show_dialogbox").click(function(){
$("div#dialogboxwraper").animate({
... | stackexchange/codereview |
How to convert :
strMenu.Append(" <ul>" + Strings.Chr(13));
to C#?
| stackexchange/codereview |
For example, I want to find a string contains the below string.
<a href="http://www.abc.com/Cool">Cool</a>
The "Cool" can be any string but must the same at those 2 places.
How to use Pattern and Matcher to achieve this?
Thanks!
| stackexchange/codereview |
Could any one explain how this jQuery code snippet works ?
This is the html
<div class="faded">Div 1</div>
<div class="faded">Div 2</div>
<div class="faded">Div 3</div>
<div class="faded">Div 4</div>
<div class="faded">Div 5</div>
<div class="faded">Div 6</div>
<div class="faded">Div 7</div>
$(".faded").each(functi... | stackexchange/codereview |
I made a class and in my class I have alot of macros, templates, structs and unions. The class just shows data members and methods. How do I define the macros, struct and union in my class? Kindly guide me.
| stackexchange/codereview |
Hi all
I have attempted to write a simple xml reader but have found that it unintentionally skips every other element in the xml file.
Im guessing I am telling it to move onto the next element twice but I am unsure how whats happening or what the solution is.
any help will be greatly appreciated :)
here is a sample of ... | stackexchange/codereview |
Can anybody tell me how to populate an Expandable List with Array List of Hash maps.
Actually i have made a tree Data structure and i want to use my Data Structure to populate the Expandable List....
| stackexchange/codereview |
Suppose I have a button nested in the Template of a ListBoxItem, can I set the IsMouseOver property of the button to true, so that it looks like its moused over?
Just for illustration, the notifications on the top of the window are what I am referring to. Its basically ListBoxItem's with a TextBlock and Button
| stackexchange/codereview |
I have a html site. In that site around 100 html files are available. i want to develop the search engine . If the user typing any word and enter search then i want to display the related contents with the keyword. Is't possible to do without using any server side scripting? And it's possible to implement by using jque... | stackexchange/codereview |
I'm trying to show an image scaled while preserving its aspect ratio, but at the same time align it to the bottom.
Using android:scaleType="FitXY" causes the image to be centered vertically and horizontally, so it doesn't get aligned to the bottom.
Using "FitEnd" causes the image to be aligned to the bottom right corne... | stackexchange/codereview |
I have a query which actually runs two queries on a table. I query the whole table, a datediff and then a subquery which tells me the sum of hours each unit spent in certain operational steps. The main query limits the results to the REP depot so technically I don't need to put that same criteria on the subquery sinc... | stackexchange/codereview |
I publish webcal URLs which allow users of my web app to subscribe to various calendars. It's my understanding that applications which recognise webcal URLs will default to http, but I'd like to secure the file transfers with https. The following apache rewrite rule works, but is this an appropriate solution?
RewriteEn... | stackexchange/codereview |
I have a control which extends UserControl. This control contains two ComboBox controls. I've created an event handler which fires when either of the combos changes:
public event EventHandler ComboChanged
{
add { cmbA.SelectedIndexChanged += value; cmbB.SelectedIndexChanged += value; }
remove {...}
}
When I add an ... | stackexchange/codereview |
It is homework question.
Question:
"Use an array of integers with size 10 and print the content of the array using write( ) method.
Note: Please do not use System.out.println( ) method."
This is what I have tried so far, but it doesn't work.
int i = 0;
while (i != array.length) {
byte[] temp = new byte[4];
temp... | stackexchange/codereview |
Is there a way to do functions and variable hoisting between source code present in different files? That is, something like
//Inside firstfile.js
foo === "bar" //should return true
and
//Inside secondfile.js
function bar() {
this.foo = "bar";
}
I guess this is not possible, as different files as parsed and execu... | stackexchange/codereview |
I use request validation on asp.net mvc 2 on .NET 4, and whenever I post htmlcode to my controller action. that is good.
But I see now my yellow screen of death.
Instead of that I want to redirect the user to my custom error page for this.
What do I need to change in my web.config to redirect to
~/Home/InvalidInput ... | stackexchange/codereview |
I have an ObservableCollection<T> in one of my projects and I need to make access thread-safe.
In particular, I need to have a thread-safe enumerator. This means, during iterating over the collection (e.g. during a LINQ query), no one should be able to add an item.
I noticed the classes in the .NET 4.0 namespace Syste... | stackexchange/codereview |
I have a depended radio groups, where by clicking on input#radio10, input#radio16 .form-block-cms should slide down. And no problems with that.
Problem is when I select input#radio16. form-block-cms slides down and back up straight away. I tried to use cond statements else if input#radio16 not selected, but it is still... | stackexchange/codereview |
I've noticed that cloning repo via ssh is much slower than through http regardless if it is from my own servers or BitBucket. Much in my case equals to 10 seconds from http vs. more than 2 minutes with ssh on the same BitBucket repository.
I'm using Mercurial on Windows (TortoiseHg 1.5, Mercurial 1.7). Both tests were ... | stackexchange/codereview |
i need to split and string
Sentence:NounPhrase| VerbPhrase
NounPhrase:Art| Noun
Sample:the
this should be written As
Sentence:NounPhrase
Sentence :VerbPhrase
NounPhrase:Art
NounPhrase: Noun
Sample:the
how can i do this using java
Edited
the file expression.txt
Sentence:NounPhrase VerbPhrase
NounPhrase:A... | stackexchange/codereview |
I have some python code that splits on comma, but doesn't strip the whitespace:
>>> string = "blah, lots , of , spaces, here "
>>> mylist = string.split(',')
>>> print mylist
['blah', ' lots ', ' of ', ' spaces', ' here ']
I would rather end up with whitespace removed like this:
['blah', 'lots', 'of', 'spaces', ... | stackexchange/codereview |
A good example of implementing 'fashionable' large input text boxes like those found on google and tumblr?
On tumblr how do they use manage to get the input to flow backwards from where the cursor is in the box - on the final input box for URL.
| stackexchange/codereview |
I'm wondering if anyone has had any experience modifying print settings via a web page. My overall goal would be to setup a print button on a web page
<a href="javascript:window.print()">Print This Page</a>
And at the same time modify the users print settings to print the page from a landscape view. Input on if this ... | stackexchange/codereview |
I have a set of results - SELECT id FROM recruit_index WHERE YEAR NOT LIKE '2011'
I need to update another table column based on each of the above ids using mysql only.
Could anyone point me in the right direction?
Thanks in advance
Mike
| stackexchange/codereview |
I've just installed kdevelop 4.1 , then created a normal hello world , build is ok but when i press execute it gives me (no valid executable specified) any idea ?
| stackexchange/codereview |
I have a main Contact and ContactViewModel . How do I get contact model and update it to the database ?
[HttpPost]
public ActionResult EditContact(ContactFormViewModel contactView) {
}
I was doing like this before I needed ViewModel
[HttpPost]
public ActionResult EditContact(int id, FormCollection c... | stackexchange/codereview |
I've written an APP the uses has a small SQL lite DB and using a cursor adapter I can retrieve the records and populate a list view with them. from there I can get the Id of a selected item and delete it from the DB which works great. the issue I have is that as the DB grows deleting one row at a time would be slow and... | stackexchange/codereview |
Using C# how can I select all the text in a textbox when I double click? My text contains spaces "This is a test", when I double click by default only one word is highlighted, how can I highlight all the text?
What I am trying to achieve is a quick way for users to clear the texbox of text, the text exceeds the length ... | stackexchange/codereview |
I am trying to add a button to each line on a ListView. The button will then copy the row (that has been clicked) from the table and insert the row into another table. What I need to know is how to assign the clicked row rowId to my button method as I need to pass that over to the copyData method. Here is my main code ... | stackexchange/codereview |
This is a question more about how to build a c++ application than it is about c++, per se
I'm building an application that was envisioned as a Graphical application, but the specifics of the implementation require a great deal of abstract functionality to facilitate the interface, such as reading lists of objects from... | stackexchange/codereview |
I have a nav bar in an iPhone app with a custom UIBarButtonItems in it:
UIBarButtonItem* homePersonButton = [[UIBarButtonItem alloc]
initWithImage:[UIImage imageNamed:@"homePerson.png"]
style:UIBarButtonItemStylePlain
target:self action:@selector(showHomePerson)];
The homePerson.png... | stackexchange/codereview |
I'm developing an Android application that consists of:
a lightweight background service that logs events to a DB
a heavier GUI application that summarizes these events and displays graphs.
I'm having trouble creating the service part, though. The graphic application can use quite some RAM, and when it goes to the ba... | stackexchange/codereview |
I have several custom calculated properties on an EntityObject. I would like to fire the PropertyChanged event to notify all bindings. This does not work however, and it throws an argumentexception when I use ReportPropertyChanged:
De eigenschap Name heeft geen geldige
entiteitstoewijzing op het
entiteitsobject. Z... | stackexchange/codereview |
We have a CMS system that creates long URLs with many parameters. We would like to change the way they are presented, to make them more friendly.
Since we have many sites already built on this CMS, it's a little difficult to rewrite the CMS to create friendly urls (although it's a method we're considering, if no altern... | stackexchange/codereview |
I want to call a thor task from a Migration.
With rake I can write
def self.up
Rake::Task["db:rollback"].invoke
end
But how can i do this with thor?
(The thor command is "thor db:rollback")
(thor db:rollback is not a option, I want so see the output and the script should abort on errors)
UPDATE:
The migration is cal... | stackexchange/codereview |
I am trying my hand at wordpress and after searching google for a solution,i have come up with nothing.Is it possible to use an ORM with wordpress?.
| stackexchange/codereview |
I wanna check write script to check MI(Maintainability Index) value for COBOL code.
For that i need a Parser written in JAVA for COBOL code.
Please help me in this
| stackexchange/codereview |
I have this simple code, where when the user leaves the TextBox control, TreeView gets focused:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.treeView1.Nodes.Add("A");
this.treeVi... | stackexchange/codereview |
Which of these is more efficient (i.e. faster):
$(elem).show();
or
$(elem).addClass(displayClass); // Where display class is "display: block;"
Or are they identical?
| stackexchange/codereview |
What is Microsoft Document Explorer 2008 used for?
| stackexchange/codereview |
I am using Install Shield 2009 for creating myapplication deployement. I added the uninstall.exe along with the deployement. But During uninstall my application is not closed automatically and the related dll and exe files are left back undeleted by uninstall.exe. how can i solve this issue? appreciate some help regard... | stackexchange/codereview |
I have a picturebox that upon request, I save the current display to a bitmap.
My question is, how do I then load that same bitmap to the picturebox?
Thanks.
EDIT:
The only relevant code is:
pictureBox1.DrawToBitmap(test1,pictureBox1.ClientRectangle);
The picture box contains graphics that I have written 'freehand'... | stackexchange/codereview |
In Magento, I am using bundled products and I have a configurable product as an associated product of the bundled product. This configurable product has 4 simple product as associated products of the configurable product.
The chain goes like:
- bundle product - configurrable product (associated with bundled product) -... | stackexchange/codereview |
I want to version control my Flex application with SVN. What should I include and what should I ignore?
| stackexchange/codereview |
I'm inserting multiple rows into a DB, and joining them together in an attempt to improve performance.
I get an ODBCException telling me my SQL syntax is wrong. But when I try it in the mysql commandline client, it works just fine..
I ran a simplified test to describe the process.
Command Line Client:
mysql> create ta... | stackexchange/codereview |
How can i include a URL in my tooltip in Google Map? Thanks
Here is an image of what exactly i require:
| stackexchange/codereview |
I am writing a procedure to sync large number of contacts with the Android Contacts database. The downloading works fine for about 700 contacts after which i am consistantly getting a memory heap error which calls infinite number of GC statement and ends up Re-booting the Phone. I am facing the problem on HTC desire.
I... | stackexchange/codereview |
I am having problems updating my customView object during simulation. The window pops up after the simulation is done. I would like it to update itself during the simulation. For this I use setNeedsDisplay:YES and I have also tried display. None of this works for me however. Does anyone have an idea how I should get th... | stackexchange/codereview |
I have a GridView with a ScrollViewer that used to scroll horizontally along with the content of the GridView. I changed it using Chris Cavanagh's rounded corners solution, which includes putting a grid around the GridViewHeaderRowPresenter and adding a border to the same level which is then used as an opacity mask (se... | stackexchange/codereview |
I have a simple table with a primary key. Most of the read operations fetch one row by the exact value of the key.
The data in each row maintains some relationship with rows before and after it in the key order. So when I insert a new row I need to read the 2 rows between which it is going to enter, make some computati... | stackexchange/codereview |
I am developing a COM surrogate object in C, it will be used by my applications to call the UAC elevation dialog for certain actions that require administrative rights.
The plan is to make this it export a function that takes a pointer to a function with a variable number of arguments and executes it in a different con... | stackexchange/codereview |
I have the following problem:
I use c++ library from my WPF app, the library throws an assertion in some very rare cases. It shows a nice dialog with c++ filename, the line number and assert expression. So the question is: can I disable asserts in the c++ library assuming that I don't have source code. What I really ne... | stackexchange/codereview |
I have the below function:
public <T> void putList(String key, List<T> lst){
if (T instanceof String) {
// Do something
}
if (T instanceof Integer) {
// Do something
}
}
Inside this function, i want to know if <T> is String or Integer so i ... | stackexchange/codereview |
Is there a trick in PHP 4 to implement functions which return functions? I expected that the following code would work:
function xxx($a) {
return function($b) {
print "a=$a, b=$b \n";
}
}
$f1 = xxx(1);
$f1(2);
Unfortunately, no luck in PHP 4. Probably it works in PHP 5, but I limited to PHP 4.
I tried to work... | stackexchange/codereview |
I want to modify <img src=""> attributes in not-too-malformed HTML (WordPress posts). I know I can take the simple way and use regexes, but I'm afraid people in blue furry suits will come haunt me in my sleep.
If I use the DOM parser to read the HTML and modify the <img> tags, I'm afraid I can't reconstruct the post ex... | stackexchange/codereview |
I need help on WPF...
When user move/drag/change the position of the 1st page window (mainwindow.xaml), then user click on "next" button to proceed to 2nd page(process.xaml), the window (process.xaml) is not at the same position as the (mainwindow.xaml) that the user move to earlier on. How can I make it to remember th... | stackexchange/codereview |
I am new to the whole php/mysql thing. I have a weeks worth of server logs (about 300,000 items) and I need to do some analysis. I am planning on reading them all into a mysql db and then analysing them with php.
The thing I am not sure about is how to iterate through them. Using java reading a file I would do som... | stackexchange/codereview |
I am searching on Google about this but I always find very complex solutions about it. I have a cell with an non editable scrollable UITextView and I just want to increase the height of that cell to a constant value. How can I do it? Actually I am using the next code to add the UITextView to the cell.
cell.contentView.... | stackexchange/codereview |
I have an Application which, reads files from Sdcard and does some intense processing.
To speed up the user experience
I created a subclass of Application object.
With in this i created a Thread where, i actually got a reference to the files on Sdcard
and did the startup activities so that once the activity is sh... | stackexchange/codereview |
I have the following period 1month 5d 22h 35m 39s, which I want to format as 35d 22h 35m 39s. However when using the following formatter the months are just removed and haven't been added to the days:
PeriodFormatter formatter = new PeriodFormatterBuilder()
.printZeroAlways()
.appendDays().appendSuffix(" d ")
... | stackexchange/codereview |
I have a table Article, a table Tag and a joint table to associate a tag to an article.
While creating a new Article, by sending a POST request to /Service.svc/Articles, is it possible to enclose in the JSON object a list of Tag ids to be associated?
Something like:
{
title: "My article title",
text: "The content:"... | stackexchange/codereview |
Alas, my experience has reached an end and request help. So far I've followed the instructions from this article https://web.archive.org/web/20211016215613/http://www.4guysfromrolla.com/webtech/080801-1.shtml . My only problem is It compiles fine but no email arrives. I have a feeling it's for obvious reasons which esc... | stackexchange/codereview |
Despite my paranoia I've never really gotten around to understanding web security more, so my lack of knowledge is causing me a bit of confusion for this.
Example: Let's say you have 2 text boxes, both are for user input.
The user types in whatever they want into those two text boxes and clicks a button, the button the... | stackexchange/codereview |
I'm running into a standard problem as a newbie to Scala: How do I define two classes in such a way that I can make an instance of one that the other as member variable, which in turn points back to the first instance?
I would like to end up with
an instance of Game
which has a member of type Dealer
whic... | stackexchange/codereview |
I know this isn't a programming question, but since a lot of people here are iPhone developers i'll ask anyways.
My iPhone app got approved at around 11:30PM last night, and today I decided to download it to check it out. I noticed that there was a little problem with the app so I decided to change the availability dat... | stackexchange/codereview |
I want to create a route server to proxy some clients(they may not in the same intranet) to access internet. I need to assign unique ip to the client and get the ip when packets response,so I can do some monitor task. i want to know if I use PPPoE server to deal with this case, how to through NAT ? thanks!
| stackexchange/codereview |
Hi I'm currently building a little forum application with rails (3). I'm fairly new in the Rails matter and I got stuck with the topics.
I have 2 models (topic & topic_reply)
topic model:
class Topic < ActiveRecord::Base
belongs_to :board
belongs_to :user
has_many :topic_replies, :dependent => :destroy
TOPIC_T... | stackexchange/codereview |
If I were to define a statically allocated struct in place, I'd do:
struct mystructure x = {3, 'a', 0.3};
Is there a way I can do the same in C but using malloc. Ofcourse, I could do a
struct mystructure x = createNewMystruct(3, 'a', 0.3), (Where I'd define the createNewMyStruct function) but I would like to know if t... | stackexchange/codereview |
we have an issue where a disabled form element (input, textarea, ...) does not react to a right-click action (oncontextmenu attribute). Everything works fine when the form element is enabled. Please consider the following pseudo-code:
<div id="test" oncontextmenu="someFunction()">
<input id="textbox" type="text" disa... | stackexchange/codereview |
How can I replace HTML-entities in unicode-Strings with proper unicode?
u'"HAUS Kleider" - Über das Bekleiden und Entkleiden, das VerhŸllen und Veredeln'
to
u'"HAUS-Kleider" - Über das Bekleiden und Entkleiden, das Verhüllen und Veredeln'
edit
Actually the entities are wrong. At it seems like Beau... | stackexchange/codereview |
I am working on a Silverlight Project.
When i saved a jpg picture into a memorystream to save it
into the Context.InputStream, it is working fine.
I am calling an aspx page who thread the upload into the server.
But i can not do a "response.redirect" or "server.transfer" when the upload is done or failed .
Is it becau... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.