instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am currently developing a game for iPhone/iPod touch. For short sounds I am using the AudioServicesPlaySystemSound function. I know that I can't control the volume of these sounds programmatically, but on my iPod touch 3rd gen these sounds respect the overall sound volume. On my new iPod touch 4th gen, these sounds a... | stackexchange/codereview |
How can div wrapper grow with img size?
<div style="width:900px;">
<div style="width:100%;">
<div>some text......</div>
<img src="<?php echo $imageSrc; ?>"/>
<div>some text......</div>
</div>
</div>
Thanks
| stackexchange/codereview |
I need to allocate memory for a pointer which needs to be used as a 2d array.I know how to allocate memory for char pointers and int pointers I am confused how memory is allocated of a array of pointers.A pictorial representation of the reason would be very helpful,also is the code below fine?
char *names[5];
for(i=0;i... | stackexchange/codereview |
I've created an IRC bot in Python from scratch just for the fun of it. I've got a way to load modules into it, but you have to manually type out the code to load each module as below:
if data.find('PRIVMSG %s :add_mod foo\r\n' % channel)
enabled_mods.append(foo)
if data.find('PRIVMSG %s :rm_mod foo\r\n' % channel)
... | stackexchange/codereview |
Does anyone have any good pointers/examples/links for writing WPF UI automation tests with applications utilising Infragistics controls?
| stackexchange/codereview |
I have a context menu on a TextView representing a user name in my app. When the context menu appears I want to have certain options such as View Statistics etc. The context menu is appearing fine and everything is working great except it's adding Input method to the context menu and I do not want it there. It's irrele... | stackexchange/codereview |
I am am a newbie in Ruby on Rails development and I am learning this fantastic framework fast and easy. The only problem (which is a big one) is how to deploy.
I have tried a Linode StackScript which installs Ruby, Rails, Passenger and Nginx and I have made a "cap deploy" and all files was sent to the server but how on... | stackexchange/codereview |
I have the following delegate method for NSSpeechSynthesizer:
- (void) speechSynthesizer:(NSSpeechSynthesizer *)sender didFinishSpeaking:(BOOL) success {
NSLog(@"Finished correctly = %d", success);
[startButton setEnabled:YES];
[stopButton setEnabled:NO];
}
The parameter "success" is always NO, even thoug... | stackexchange/codereview |
I tried to use XFBML:
<fb:serverfbml style="width: 755px;">
<script type="text/fbml">
<fb:fbml>
<fb:request-form action="http://example.com/user/handleFacebookGiftSend" method="POST" invite="false" type="gifts"
<fb:multi-friend-selector
....................
on a webpage on my website to send virtual gift... | stackexchange/codereview |
I would like to make an existing website which is having a huge user base as an openID provider. Though I find tons of articles regarding this subject, I could see all the articles talk about pointing to an existing openID provider server like Verisign, openID, etc. But I looking for these,
Setting up own openID ser... | stackexchange/codereview |
I'm considering making an app on Google App Engine, to help an existing not-so-large (1000s) community with some field specific collaboration on existing projects. On single project work several people, mostly discussing things. App should communicate with "back-end" which can be hosted somewhere no problem.
But I'm no... | stackexchange/codereview |
Consider:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int *numeros = malloc(sizeof(int) * 3 * 3);
numeros[900] = 10;
printf("%d", numeros[900]);
free(numeros);
return 0;
}
Why exactly does this print out 10 when I haven't allocated enough memory?
I'm pretty sure I'm missing something big o... | stackexchange/codereview |
I'm building my first WordPress Theme and I'm stuck on something.
I have a function in my functions.php called get_first_photo() which grabs the first image uploaded on each post and puts it on the blog archive page. It's working fine, but it loads the full-sized image and resizes it using CSS. I would rather it load ... | stackexchange/codereview |
I'm just in the early process of learning about expression trees.
As far as I understand, the good thing about them is that they can be parsed when they are used as parameters, so for instance:
Foo.Bar(x => x.Process == "On" && x.Name == "Goofy")
But how can I parse the expression when there is AND inside?
Maybe I've ... | stackexchange/codereview |
I wrote a client/server program using windows form application in visual studio. Now i want to put this program onto a web page, so on the client side they can just go onto any browser and and access the server.
Can i just embed the program i already hav onto a webpage or do i need to rewrite it using visual studio ... | stackexchange/codereview |
So a friend of mine has a small business, where he sells paper products, as well as custom posters, banners, and the like. He doesn't have a website, so he's hired me to create one for him, where users can place orders, check the status of their order, etc.
Other than his requirements, I'm trying to come up with other ... | stackexchange/codereview |
Possible Duplicate:
is there an equivalent of std::swap() in c
Hi folks,
I was attempting a problem to write a generic swap macro in C and my macro looks like this:
#define swap(x,y) { x = x + y; y = x - y; x = x - y; }
It works fine for integers and floats but I am unsure if there is any catch in it. What if by ge... | stackexchange/codereview |
I found this http://www.bennadel.com/blog/1867-Drawing-On-The-iPhone-Canvas-With-jQuery-And-ColdFusion.htm example on how to draw on a canvas with the iPhone (which works) but it doesn't work on my iPad. When I try to draw something all I can do is to make straight lines from the same starting point. Also it doesn't di... | stackexchange/codereview |
The objective of the following program is to learn python generators and iterator implementation in order to understand Python magic methods.
I'm stuck implementing the iteritems() function. Also, I want to know whether I'm going on right direction or I'm conceptually wrong in understanding of python magic methods.
imp... | stackexchange/codereview |
In zsh you can qualify globs with file type assertions e.g. *(/) matches only directories, *(.) only normal files, is there a way to do the same thing in bash without resorting to find?
| stackexchange/codereview |
There appears to be a bug in startActivity.
By setting activities to be singleTop with different taskAffinity in AndroidManifest.xml and using the Intent.FLAG_ACTIVITY_NEW_TASK when calling startActivity, two activities can be created in two tasks (one activity per task).
Calling startActivity again will return to the ... | stackexchange/codereview |
If we use multiple <canvas> on a single html page does it hamper the performance of the application that is being developed and does the code get very bulky and require more time to load the page?
| stackexchange/codereview |
Silverlight4 provides an option to run at elevated trust
http://www.silverlightshow.net/items/Silverlight-4-elevated-permissions.aspx
Does anyone know if it also provides certain degree of elevation on MAC OS X?
| stackexchange/codereview |
I recently rebuilt my Android project to target 2.2 from 2.1.
In the old project, I did not specify a target SDK (the manifest did not contain something like: android:minSdkVersion="8"). This gave me an error in the console when running, but everything worked fine so I didn't fool with it.
The new project now uses andr... | stackexchange/codereview |
When I put numbers in tables I generally want them to be right justified and in a fixed width font. Otherwise the numbers become hard to compare.
Is there a way to right justify fields within a table?
Eg how do I get this to render with the numbers all right justified?
.. csv-table::
:header: x, x*x
3,9
4... | stackexchange/codereview |
I am very new to WCF and I am trying to setup a SSO solution. We have a .net application and java application. We would like the users to login from the java app and authenticated via WCF Authentication service. I am following the example below to create the WCF server:
http://msdn.microsoft.com/en-us/library/bb515342.... | stackexchange/codereview |
In SQL Server Business Intelligence
Development Studio 2008(BIDS), the
designer will replace a complex
expression with < EXPR >
automatically.
Any idea why that is? Can I switch it back to how it was in Reporting Services 2005, where it showed the actual expression instead of a useless "EXPR"???
| stackexchange/codereview |
Simple. I use Vault to manage my personal source files. But I don't like to check in/out outside the Delphi IDE.Delphi XE supports Subversion so I wondered... Could I also get Vault to work with this? If not, are there alternative add-ins for Delphi for free available?At work, I use a commercial product as Vault add-in... | stackexchange/codereview |
I need to view the deleted records (rows) from a sql server table, actually I am using this command
DBCC LOG(MyDatabase,-1)
to view the log, but I don't understand the output format.
Is there any free tool to translate the log file of an SQL server database or any documentation which shows how to interpret the informa... | stackexchange/codereview |
I use tcpdump to sniff my network packet and I want to get some info out of the stored file. My file have 2 separated lines but they repeated many times.
23:30:43.170344 IP (tos 0x0, ttl 64, id 55731, offset 0, flags [DF], proto TCP (6), length 443)
192.168.98.138.49341 > 201.20.49.239.80: Flags [P.], seq 562034569:56... | stackexchange/codereview |
Hey Guys.
I have got a problem on using the jquery auto-complete plugin.my problem is as the downside.
I am using the ruby on rails framework to develop project.
$().ready(function() {
$("#person_name").focus().autocomplete('show_people', {multiple: false, formatItem: formatItem, width: 290}).result(functio... | stackexchange/codereview |
I have problems using passenger standalone with a debugger. If I try this:
passenger start --debugger
I get this error:
Your version of ruby-debug is too old. Please upgrade to the latest version.
My Ruby is: ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02
Ruby deb... | stackexchange/codereview |
Development teams are often plagued by builds in version control being transiently broken. The entire team's productivity can come to a halt while trying recover from a build broken by one person.
Is there software that would allow hosting Git in a way that prevents breaking builds in version control by not accepting ... | stackexchange/codereview |
Anyhow, If I were to write something like:
var h = 5;
delete h;
...I'd be eliminating the reference, but not the memory.
Now, if I set the variable to null, would that replace the memory with the null object?
var h = 5;
h = null;
If so, wouldn't it be better to not only delete() the reference, but also repla... | stackexchange/codereview |
I am after a regular expression to parse IP addresses and extract their host, port, username, and password.
Here are the formats I am interested in:
12.34.56.789
http://12.34.56.789:80
http://12.34.56.789
12.34.56.789:80
http://login:password@12.34.56.789:80
| stackexchange/codereview |
I build the form tag by myself and when I post the form to server it give me a InvalidAuthenticityToken error, so I want to know how to add it in my own in current situation:
<form accept-charset="UTF-8" action="/crops/update" method="post">
<input id="crop_x" name="crop_x" size="30" type="text" /><br />
<input i... | stackexchange/codereview |
I'm building a Rails plugin that extracts a lot of data from Rails apps. It builds queries dynamically that span multiple tables, and there will be a lot of results returned. Here's an example of one of the queries built for pulling purchase data out of a Spree (Rails shopping cart):
select orders.user_id as from_id, v... | stackexchange/codereview |
I have no idea what I have done here, but I have attempted to get one controller in Rails to queue a job onto Resque, which then a worker connects to and does the heavy lifting (I.E. comparisons, database entries).
However, the tasks are not even running, since there are no clear instructions for setting Resque up.
Cop... | stackexchange/codereview |
I need to read a block of data from this text. The block starts with the T|DataObject.EShop.Tic.TicVente| line and ends with T|DataObject.EShop.Tic.TicPaiement|.
I only want the lines that start with D between the previous strings.
W|301500120100407213036|
M|SYP||
T|DataObject.EShop.Tic.TicVente|
C|ArtId|ArtRe... | stackexchange/codereview |
I am creating this MVC model and trying to understand best way to do it.How should I get related data when I have relationships between tables.For example in code below I have created a formviewmodel and I am calling function to get all images in Images table for a user. Should I instead keep images property of Users m... | stackexchange/codereview |
I'm looking to pass two or more parameters to a thread in VB 2008.
The following method (modified) works fine without parameters, and my status bar gets updated very cool-y.
But I can't seem to make it work with one, two or more parameters.
This is the pseudo code of what I'm thinking should happen when the button is p... | stackexchange/codereview |
I try to compile Xsd2Db solution in .NET 4.0 framework. I add a reference to "Microsoft ADO Ext. 6.0 for DDL and Security" and use it in this way -
using System;
using System.IO;
using ADOX;
namespace Xsd2Db.Data
{
/// <summary>
/// Summary description for JetDataSchemaAdapter.
/// </summary>
public sealed class... | stackexchange/codereview |
I have two projects within one solution. Both projects contain some files that are the same. For instance, Project1 contains shared.cpp and so does Project2. However, when I edit shared.cpp and build both projects, is there any way I can make VC++ compile the source file once, then use the single object file in the lin... | stackexchange/codereview |
I am trying to match a string like the following:
<input type="text" value="cbyEOS56RK3lOxtiCrhmWSkDuNWwrFN4" name="iden">
This is my code:
$pattern = '~value="(.+?)" name="iden"~';
preg_match($pattern, $page, $match);
print_r($match);
As you can probably see, I am trying to match the value in this HTML input. By wha... | stackexchange/codereview |
I might be wrong about what is actually happening here but i have 3 Html.dropdownlists. And im using jquery to handle filtering which does actually work. However, there is some odd behaviour which i think might be because data isnt finished loading before the next function is called.
For instance:
Some background.
Co... | stackexchange/codereview |
I'm working with a few Perl packages, we'll call them Some::Parser and Some::Data. A Some::Parser object has methods to return objects of type Some::Data. I have written a class that extends the Some::Data class, let's call it My::Data. Objects of class My::Data are really just objects of class Some::Data, but with add... | stackexchange/codereview |
I am subclassing NSURLConnection, and used MGTwitterEngine as a base to help me get started. That may be irrelevant. However, I noticed in their code they don't use @property or @synthesize for their ivars. They have wrapped the ivars in accessor methods which look like this:
- (NSString *)identifier {
return [[_iden... | stackexchange/codereview |
I am writing a command line tool that performs a number of tests to our servers and reports an output to screen.
I am currently using log4j to print to screen and to a log file.
However, I was wondering if there was a better technique to manage all the printing from one class instead of having the "print" commands scat... | stackexchange/codereview |
I have a branch in TFS 2010 that has a Gates Check-in build associated.
If I add a file to my project and do a "Check in", the gated check-in build kicks in before my changes are checked in... Which is all good!
After the build completes (sucessfully), Visual Studio askes me to "Reconsile" my Pending Changes. In this c... | stackexchange/codereview |
We are hosting worklfows with WCF and IIS 7. One thing I have noticed is that when the app pool reaches the idle time, the workflow unloads and persists to the DB.
Then when we run another workflow, the old persisted/unloaded workflow resumes itself again and both run. Why is this happening?
If you have long running w... | stackexchange/codereview |
I have Biztalk 2002 and Visual Studio 2003.
In Visual Studio I create a blank solution, I right click on the new solution to add a new project, which I want to select "Biztalk Projects". However, the BizTalk Projects selection is missing from my environment.
Only C#, C++ Projects etc shows up.
I've also re-installed B... | stackexchange/codereview |
I have a method called GetAge(DateTime birthDay). I want to use this method in the Linq Query by passing the birthday and based on the returned age value need to perfrom some logic.
I want below query in LINQ format -
from customer in contetx.Customer where
if GetAge(customer.BirthDate) > 20 and customer.account... | stackexchange/codereview |
From time to time my websites does not show images. When you look at their URL it looks like this:
http://1.1.1.4/bmi/www.domain.com/path/to/image.png
The www.domain.com/path/to/image.png is a valid path.
What is the problem? I use Apache, WSGI and Django.
| stackexchange/codereview |
I'm currently migrating my Ruby on Rails 2.3.8 apps to a new server running Apache 2.2.17 on FreeBSD 8.1 with Passenger 3, Ruby Enterprise Edition 1.8.7. For some reason, despite the stylesheets being accessible, the apps are not loading them. The code is correct and runs fine on the old setup. Has anyone ran into this... | stackexchange/codereview |
I am building a Flex application which communicates with a Java server using BlazeDS.
What would be the best way to go about making the server aware of the client's hostname?
Thanks.
| stackexchange/codereview |
Can you please help me convert this T-SQL SQL Servers to Sybase compatible sytax
I've been googling it but can't find anything, I'm prob searching for keywords that don't exist in Sybase!
Here is what I trying to convert
CREATE LOGIN bcpuser WITH PASSWORD = 'bcppassword'
CREATE USER bcpuser FOR LOGIN bcpuser"
sp_addr... | stackexchange/codereview |
How can I achieve the following:
I have created a content type called journal, containing:
- Body
- Imagefield
What I would like to create a view that exposes the NODE create form for the juornal Content Type. In such a way that I can embed a block into a page, so that it then exposes the Body field as an empty box & t... | stackexchange/codereview |
I'm currently building an app in Appcelerator Titanium 1.2.1.
I've been able to set the apps' titlebar/navbar colour using the following:
var tabGroup = Titanium.UI.createTabGroup(
{
barColor:'#fff'
});
Problem is, with a white titlebar, the text becomes hard to read. Is it possible to change the text colour from ... | stackexchange/codereview |
I've written several hundred lines of image management code in my current application all of which seems to work nicely ... except that uploaded GIF's loose their animation somewhere along the line. I've traced the problem down to the point at which images are saved to disk (in order to cache them) as displaying them d... | stackexchange/codereview |
How can I stop the indexing process? I had imported 15,000 products and started the indexing, but now it's stuck on processing for "Category search index". It has been stuck on processing for two days now, how can I stop the indexing process?
Any help would be appreciated, thank you in advance.
| stackexchange/codereview |
I have two buttons on my web form. When clicking on the first button, the event does not fire. Here's what I've placed in the click event handler:
protected void btnRFC_Click(object sender, EventArgs e)
{
string strDOB = drpDay.SelectedValue + "/" + drpmonth.SelectedValue + "/" + txtyear.Text;
string strRFC =... | stackexchange/codereview |
I have a nsstring(filePath), which has the path to the audio file. I want open the audio file, so I want to convert the nsstring to Cstring.
fopen([filePath cStringUsingEncoding:1], "r");
is the above line is correct or not, because I can also use fopen([filePath cString], "r");. In some websites it is mentioned to ... | stackexchange/codereview |
So i just got devise and fb login to work on my rails project, but I would like to get more info about the user when they log in. I added user_about_me to the scope of the request and that got me a lot of info, but I would also like to get the users music/movies/etc. I tried adding user_interests but it doesnt seem to ... | stackexchange/codereview |
I have master in my project.i have added js file in my master page.so that i can able to call the function in my content pages.My problem is when i am using this function ""if(!$.browser.msie){alert("Not ie Browser");}"" not working in ie6.In ie6 it is showing alert("Not ie Browser") all the time when the page load hap... | stackexchange/codereview |
I have an ant file I use to compile my scala project. I'm using fsc which works wonders to avoid the 2~3 seconds my core 2 needs to just load the compiler.
My problem is: the ant fsc task does incur the same 2~3 seconds penalty, to the best of my knowledge. It is pretty annoying, because there is fsc specifically for t... | stackexchange/codereview |
I'm trying to write in assembly language a function sort. It will sort the two dimensional array such that the rows will now contain data in alphabetical order.
I have tried many things but it is honestly beyond my current knowledge.
here's what I tried so far...
.386
public _Sort
.model flat
.code
_Sort proc
pu... | stackexchange/codereview |
What is the best way to download a pdf file using GWT client ? Should I invoke a normal servlet to do that ? or is there a different preferred approach to handle this problem ?
I am new to GWT, so if some sample code would be of great help.
Thanks
Deep
| stackexchange/codereview |
I'm trying to get the value of a drop-down menu selection. Here's my XHTML:
<form action="(EmptyReference!)" method="get" name="myForm" id="myForm" onsubmit="myValidation(this)">
<fieldset>
<select name="mySelect" id="mySelect">
<option value="o1" selected="selected">Option 1</option>
... | stackexchange/codereview |
I have many HTML documents containing many HTML entities of Unicode code point representation, e.g. بروح
Is there a good tool to convert HTML entities in multiple HTML documents to plain UTF-8/UTF-16/UTF-32 characters?
I want an offline converter tool that can do a batch job for this purpose.
| stackexchange/codereview |
When I check the css of SO code, there is one line:
.btn - delete {
has '-' and spaces inside it, what does this mean?
I don't see this kind of selector in
http://www.w3.org/TR/CSS2/selector.html
| stackexchange/codereview |
If a url parameter comes in urlencoded, does rails decode it for me, or do I have to call CGI::unencode myself?
(I'm asking because I'm seeing what is I think inconsistent behavior, and may be a bug in either rails or rspec, but wanted to ask here first to get a sanity check)
| stackexchange/codereview |
I'm starting a new personal Prism 4 project. The Reference Implementation currently uses Unity.
I'd like to know if I should use MEF instead, or just keep to Unity.
I know a few discussions have mentioned that these two are different, and they do overlap, but will I be missing out if I simply choose Unity all the way?
| stackexchange/codereview |
Any One Explain What is Interface Builder in IPhone???
| stackexchange/codereview |
I developed an app. for iphone. same app i need to develop for android.
i found some stuff about. sencha, phonegap,
Does it work efficiently?
| stackexchange/codereview |
I have hundreds of mp3 files that have unique file names in succession. i.e. mysong8001.mp3 and mysong8002.mp3 and mysong8101.mp3 where "80" and "81" are the year and "01" and "02" reflect the order of the files for a given year.
The person that created the files did not add any tags except for a Title. Unfortunately... | stackexchange/codereview |
If I want to pass a program data files how can I distinguish the fact they are data files, not just strings of the file names. Basically I want to file redirect, but use command line arguments so I can a sure input is correct.
I have been using:
./theapp < datafile1 < datafile2 arg1 arg2 arg3 > outputfile
but I am wo... | stackexchange/codereview |
Two Parts two my question. Which is more efficient/faster:
int a,b,c,d,e,f;
int a1,b1,c1,d1,e1,f1;
int SumValue=0; // oops forgot zero
// ... define all values
SumValue=a*a1+b*b1+c*c1+d*d1+e*e1*f*f1;
or
Sumvalue+=a*a1+b*b1+c*c1;
Sumvalue+=d*d1+e*e1*f*f1;
I'm guessing the first one is. My second question is why.
I gue... | stackexchange/codereview |
I am starting my learning process by first listing all the users.
First I had added an action in the controller as
def list_users
@users=User.find(:all)
end
And in the View users/list_users.html.erb I have added the line
list_users.html.erb:
<%= Time.now %>
<% @users.each do |user| %>
<%= user.firstname %>
<% en... | stackexchange/codereview |
I'm currently using the following seekbar for showing my audio palying progress, i want to disable thumb movement by user.
<Seekbar
android:padding="7dp"
android:id="@+id/SeekBar01"
android:layout_width="245dip"
android:thumb="@drawable/seekthumb2"
android:progressDrawable="@drawable/seekbar1"
a... | stackexchange/codereview |
I have my object's rotation and translation in a quaternion, which I've converted to a matrix[16].
How do I feed that matrix to OpenGL? I'd-a thought I could just glLoadMatrix() with my new, fancy-pants matrix and all would be good, but I'm getting a blank screen.
(I'm a bit of a GL n00b, so type slowly and use small ... | stackexchange/codereview |
I am using asp.net MVC2. i am facing a problem in state management of javascript contents.
i have got a image map in which on click on various part of image i am showing same page (redirect with parameters) with some parameter like : Secure/BodyWork?view=7
and on basis of value in parameter view i am showing various co... | stackexchange/codereview |
I'm using strongly typed views and autofac for Dependency Injection under ASP.NET MVC2 and I'm trying to get a common dynamic header via dependency injection. I.e. i want this to happen without the view having to be away of this content even existing and i was hoping to avoid static discovery of the container and manua... | stackexchange/codereview |
I would like to use a callback feature of an SVN repository (Unfuddle) to ping a URL on my server whenever a commit has been made. I have a PHP script accepting the message and attempting to call a shell script to execute an 'svn update'.
The problem I'm facing is that Apache is running under user 'www-data' and does n... | stackexchange/codereview |
I have been searching Google for a while, but the problem I am running into is I am not exactly sure what it is I need to be searching for. (Searching for PHP C++ communication doesn't seem to be what I need) I am basically developing a c++ plugin for a game server, and I would like to create a web interface that can p... | stackexchange/codereview |
because if those Rails versions were not written with 1.9.2 in mind, then there might be slight usage difference that can break Rails.
Actually, can any gem command tell a particular gem is dependent on what versions of other gems (and perhaps Ruby version too)?
| stackexchange/codereview |
i have the following code ]
connection.objectEncoding = ObjectEncoding.AMF0;
connection.connect("http://localhost/test/test.php");
var responder = new Responder(recvdata,recverror);
connection.call("test.test",responder);
but no connection established what is the reason behind not know help required and one more thi... | stackexchange/codereview |
Super quick one. Here is my .gitignore (at the root level of my repo
# Makefile stuff
LIVE-*
.install-post-all
When I do this, The LIVE-* bit isn't working:
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# pm-h8/etc/apache2/conf.d/LIVE-vhost
n... | stackexchange/codereview |
Is it possible ?
Peer-To-Peer connection via WiFi (same Access Point) , how would multiple devices talk on this layer.
Any API available or sources that can be looked into ?
Thanks
Yogurt
| stackexchange/codereview |
I have a text widget where I want to make enter event to behave like a tab event. so I capture the Key press event and raise a tab native event.
However the tab behavior is not reflected in the application. The code for event handler is
public void onKeyPress(KeyPressEvent event) {
int keyCode = event... | stackexchange/codereview |
Seems by default smarty eats up all errors(even nothing in php's log):
{$value|nosuchapi}
How to make it output error info when it calls an function that doesn't exist?
| stackexchange/codereview |
Possible Duplicate:
Need guidance on alternative JVMs for Apple OS X
So that's it, Apple may not be producing a JVM themselves nor shipping it with OS X anymore:
http://www.infoq.com/news/2010/10/apple-deprecates-java
We've got a huge Java application running on Windows, Linux and OS X (and OS X is a big part of our... | stackexchange/codereview |
I have a SELECT query with lot of IF conditions, which I can do either in the query itself (takes DB machine's CPU) or I can put it in my java code (takes server machine's CPU).
Is there any preferred approach here (to put conditions in DB Vs in mid-tier)?
UPDATE: My query is a join on more than 2 tables,
and I am usin... | stackexchange/codereview |
In C# we have a datatype object which can hold any type of data. Same thing I want to achieve in VC++. Can anyone kindly let me know VC++ equivalent of "Object of C#".
IN C#, in the calling appl program (say call.cs)
object ob=null;
ob=(object)str;
funct(ref ob);
Here str is empty string.
This thing I want to a... | stackexchange/codereview |
How do i log inside database with separate passwords? We can configure only one user in database.php. I want that the login process should happen with different mysql username and password because that table is protected.
Thanks in advance:)
| stackexchange/codereview |
I've seen a few other threads about this topic, but I can't seem to find a few answers to some questions involving the use of a random salt in password encryption. To my understanding, the steps go something like this:
Generate a random salt for the user.
Append the salt to their password.
Use something like SHA-2 to ... | stackexchange/codereview |
i have dialogbox as a singleton class and on that dialog box i hv 2 radio button on and off which are grouped.when i make on group true in resource and add variable then if i clicked on off radio button and then if i open again that dialog box its focus is on "off" radio button which is right. but when i make "off" bu... | stackexchange/codereview |
I'm trying to draw a polygon with more than one holes. I tried the following code and it does not work correctly. Please advise.
PointF[] mypoly = new PointF[6 + 5 + 5];
mypoly[0] = new PointF(0, 0);
mypoly[1] = new PointF(100, 0);
mypoly[2] = new PointF(100, 100);
mypoly[3] = new PointF(0, 100);
... | stackexchange/codereview |
I need to add some information to the session upon user login. Where is the best place to do this in SugarCRM?
Thanks.
| stackexchange/codereview |
I've modified a file, then I want to get latest version from remote.
So I run git checkout to revert the file, and run git pull to get latest version.
After that, I found that I need the modification of the file.
Is it possible to get it back? Thanks!
| stackexchange/codereview |
I have an flv file uploaded to a server. I would like to display its duration in the following format "minutes:seconds". Can anybody help me with this ?
Thank you
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.