instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
How can I get part of the string with conditional prefix [+ and suffix +], and then return all of it in an array?
example:
$string = 'Lorem [+text+] Color Amet, [+me+] The magic who [+do+] this template';
// function to get require
function getStack ($string, $prefix='[+', $suffix='+]') {
// how to get get result ... | stackexchange/codereview |
I have a call to Ant exec task that needs to accept input from console stdin. Unfortunately, I cannot find a way to do this. The stdin filehandle seems closed to console input at runtime.
It is possible to specify input using attributes input and inputstring. However, I need to prompt for user input at the console.
... | stackexchange/codereview |
There are various implementations for using JMS as a request/response service. I would like to know the ideal implementation. Below are these various implementations.
1) Permanent request queue, Dynamic response queue
All request messages are published into a single request queue specifying the reply queue. The se... | stackexchange/codereview |
I have a movie-database, i want to know which movies actor A and B has both been featured in.
function getmoviefromactor(){
global $wp_query;
global $wpdb;
global $post;
$loop = new WP_Query(array(
'post_type' => 'movies',
'actors' => 'A', 'B',
'posts_per_page' =>-1,
));
print_r($loop);
while ( $loop->have_posts() ) ... | stackexchange/codereview |
I am looking to setup an alternate development config in rails3.
I have copied the development.rb file in config/environments to developmentck.rb
Also added a section to database.yml with the above name - but when I run the mongrel server using
rails s -c developmentck
It complains that the configuration developmentc... | stackexchange/codereview |
Is there a way to change the colour of a row in a table when a checkbox in the row is checked using only CSS selectors?
I have the following, but it changes the colour of the checkbox, not the table cells:
.table_class tr td.column0 input[type="checkbox"]:checked { background-color:#f00; }
| stackexchange/codereview |
I have a simple drill down navigation app. On the detail view, I am drawing a few 20x20 sized UIImages, depending upon the row selected in the navigation items. These images are drawn as subviews over the detail view when a row is selected.Now when I get to the "detail view" I have set up a couple of buttons, which whe... | stackexchange/codereview |
i have a textfield:
<input type="text" id="modname" />
and a div:
<div id="tuner">
<tr>
<td width="400">
Tuner
<div id="value" name="tuner"></div>
</td>
<td width="10">:</td>
<td width="150">
<input id="tuner_rng1" type="radio" c... | stackexchange/codereview |
I have a database that stores details of Code Chekins from various SCRs. One of the table in this database store Commit Comments for each checkin. I am trying to develop a search feature which with the help of Postgres posix notation searches through this table trying to match a regular expression on this comment field... | stackexchange/codereview |
I want to have a very distinct color on [] and () but not the same.
| stackexchange/codereview |
I have a follow-on question to How to display an image based on SelectedValue in a GridView?
What I would really like to do is have a ViewImage button on my GridView control so that when that is clicked, the image is displayed on a new page in a new browser window. How would I do that? I'm thinking perhaps do I need to... | stackexchange/codereview |
I have a very simple class :
class Trace
{
void WriteTrace()
{
Console.WriteLine("Trace !");
}
}
I want this class subscribes to an event, for example the load event of a form control. The control and event are define dynamically so I want to use reflection to do this I'm trying something like that... | stackexchange/codereview |
I am working on a project that must generate human readable questions based on a single keyword. I'm kind of lost on how to start though. Can anyone point me in the right direction?
| stackexchange/codereview |
I am thinking of getting The Rails 3 Way to get a better understanding of Rails 3 (I'm a beginner), are there any other books similar that would help me understand Rails 3 a little better?
Also are there are any good Rails 3 books released yet? I am currently looking into buying a peepcode rails 3 screencast.
| stackexchange/codereview |
I know of two ways to "pretty print", or format, xml:
shell tools
Hack 38 Pretty-Print XML Using a Generic Identity Stylesheet and Xalan
what other free (as in beer) formatters are there? (aside from using javascript)
| stackexchange/codereview |
I access the following values like this.
$result->{'HistoricalPricesResult'}->HistoricalPricesResult[0]->Price
$result->{'HistoricalPricesResult'}->HistoricalPricesResult[0]->Low
//next row
$result->{'HistoricalPricesResult'}->HistoricalPricesResult[1]->Price
$result->{'HistoricalPricesResult'}->HistoricalPricesResult[... | stackexchange/codereview |
I am testing on an iPad a Monotouch app. Running iOS 4.2
The iPad kills the app in debug mode as I step thru after 5 seconds. The iPad has a built in timer that kills apps if they fail to respond in 5 seconds. (like Android's ANR)
Is there a way to tell the iPad to not do that so that I can debug for more than 5 second... | stackexchange/codereview |
I am creating a thread using BeginThread.
In the procedure I am using to start the thread I want to pass a pointer to a boolean variable so that both the forked thread and main thread can access it as a control variable to tell one when the other is done.
Since begin thread takes in a pointer for the parameters i have ... | stackexchange/codereview |
I'm passing a filter model to my service. The user can select any which is null or an empty string. How do i set up a one time .Where query that will know to ignore that filter?
An example:
public class UserFilterModel
{
public string State {get; set;};
public string Age {get; set;};
}
The filter: (How do I ma... | stackexchange/codereview |
What version of the SP1 for SQL Server 2008 do i use for my dev machine? Running Windows 7 x64, but running a x86 version of SQL Server?
SQLServer2008SP1-KB968369-x86-ENU.exe
or
SQLServer2008SP1-KB968369-x64-ENU.exe
| stackexchange/codereview |
I want accesses to e.g. www.thisdomain.com/docs/path1/path2 to redirect to www.thatdomain.com/path1/path2
(Note that docs is not a part of the new path)
I have the following on www.thisdomain.com:
RewriteEngine on
RewriteRule ^docs/* http://www.domain.com/ [R=301,L]
If I access www.thisdomain.com/docs, it directs... | stackexchange/codereview |
I am using the demo code from
https://github.com/bengottlieb/Twitter-OAuth-iPhone
When i build the demo code on iphone 3.0 it gives the 18 errors
It works on iphone 4.0
How can i solve these errors on iphone 3.0.??
| stackexchange/codereview |
How can i customize gtk window title bar. I need to add custom buttons, and title bar image.
| stackexchange/codereview |
I have a code like this,
ClassA *reference = [[ClassA alloc] init];
reference.delegate = self;
[reference callAsynchMethod];
Here I am calling a asynchronous method. It takes around 4-5 seconds to execute. So how do I release the memory of ClassA? If I call release or autorelease this crashes.
Thank you
| stackexchange/codereview |
function toggle(div)
{
$("#"+div).toggle();
$("#l_detail").html('Hide');
}
<a href=""><label id="l_label>Details</label></a>
How to change text back to details in toglee function
| stackexchange/codereview |
I'm really pulling my hair out, this must be a simple problem, but I just can't see it.
I'm just trying to assign a value to a variable from a text field.
In my h file I have
NSString *currentPass;
@property (nonatomic, retain) NSString *currentPass;
My m file.
@synthesize currentPass;
- (void)alertView:(UIAlertView... | stackexchange/codereview |
We've gotten a report request in, and I'm trying to find out the easiest and most efficient way to pull the numbers.
I have a Deal model with two attributes: _quantity_purchased_ and price. I've been asked to retrieve a list of the top 100 best selling deals in the database. To see how well a deal has done, we multi... | stackexchange/codereview |
the UI i want is like below:
------------------------------+
head|btn1|btn2|btn2 |
-------------------------------
Content |
Content |
|
|
|
|
... | stackexchange/codereview |
I have a stored procedure that returns many columns and is very cumbersome to work with, I created another stored procedure that converts rows to columns. How do I insert the columns from the sub procedure into the main procedure?
I am think that were I want to put the columns from the sub procedure I code it like:
(se... | stackexchange/codereview |
I'm working on a (C++) program that has to process a lot of information associated with a file/directory (so more or less I have a path as a key). Currently I've attempted a implementation using hash tables. This seem to work reasonably well given the volume of data but after profiling I find they are still the slowest... | stackexchange/codereview |
I have implemented send mail functionality using MFMailComposeViewControllerDelegate.
But i want to send data in csv format.I don't know how it possible.
Can you give me idea about that?
Thanks in advance.
| stackexchange/codereview |
I've seen two apps that can customize lockscreens: Widget locker, slidescreen.
Do we really have an API that lets us customize the lockscreen?
If not, what is the trick?
| stackexchange/codereview |
I am coding one project, which needs to launch some webbrowsers with the given url.
I saw some QT examples, but they explained how to launch the default browser, not a particular browser.
Any helping suggestions will be appreciated.
Edit1:
Below is the code I use currently
QString temp="C:/Program Files/Internet Explor... | stackexchange/codereview |
I am using imo.im for last few days. I want to make something with similar kind of functionality with LAMP and javascript/jquery.
I already have a table in MySQL with name as user_account_details. Where i have columns as userID, protocol, protocol_username, protocol_password, with values like these: {123, facebook, 123... | stackexchange/codereview |
I am developing a PHP website where it is possible to make wall posts / comments.
At this point, I already use PHP mail() to send a email to a person when something is posted on their wall.
Here is my question now:
I would like to know how is it that Facebook does to be able to reply directly to email and make it appea... | stackexchange/codereview |
I don't know what to do! I have a great understanding of C basics. Structures, file IO, strings, etc. Everything but CLA. For some reason I cant grasp the concept. Any suggestions, help, or advice. PS I am a linux user
| stackexchange/codereview |
What are "sequence points"?
What is the relation between undefined behaviour and sequence points?
I often use funny and convoluted expressions like a[++i] = i;, to make myself feel better. Why should I stop using them?
If you've read this, be sure to visit the follow-up question Undefined behavior and sequence points r... | stackexchange/codereview |
I am trying to drag and drop hierarchical data in the same advanced data grid, and I would like the data provider to updated when the ADG is updated. (I want to be able to save and load this tree, so it is important that drags and drops are saved.)
I have a sample application (with view source enabled) posted here: www... | stackexchange/codereview |
I have created a class named Animal with implements Serializable. Each object of the Animal class has a name and a type. In the Main method of my program, I will create an object of type Animal and assign a name and a type to it. then I want to write the object into a file and after that read read that file into an Ani... | stackexchange/codereview |
Synopsis:
If you center a resizable element and expand it left/right, it has the illusion that it is only expanding half of the mouse movement.
Reason:
This happens because the object is centered.
Question:
How would you increase the rate that the object is being resized compared to the mouse movement? For centered el... | stackexchange/codereview |
I'm showing a PDF in UIWebview. But how can I search for a particular keyword in UIWebview and high light it in PDF? Is it possible?
| stackexchange/codereview |
I have the following XML:
<TextView
android:layout_y="20dip"
android:layout_x="20dip"
androd:gravity="fill"
android:textColor="#FFFFFF"
android:background="#4F2F4F"
android:layout_height="335dip"
android:layout_width="270dip"
/>
</AbsoluteLayout>
This gives me the error Error parsing XML: unb... | stackexchange/codereview |
I have a list for example
Copy code
1. <ul id="applications">
2. <li id="id-1" class="util"></li>
3. <li id="id-1" class="app"></li>
4. <li id="id-1" class="util"></li>
5. <li id="id-1" class="app"></li>
6. </ul>
then I want a select some of the list with some animate effect,... | stackexchange/codereview |
When performing a factor analysis using factanal the usual result is some loadings table plus several other information. Is there a direct way to use these loadings to create a matrix / data.frame of factors? For example to use them in regression analysis later on.
EDIT: the purpose of this is to obtain variables for ... | stackexchange/codereview |
Mouseup doesn't fire on scroll bar for elements dynamically added (except Firefox):
CSS:
#dBox {
height: 100px;
width: 230px;
overflow - y: auto;
}
HTML:
<input type="text" id="s">
JQuery:
$(function() {
$('#s').focus(function() {
var $dbox = $('<ul id="dBox"></ul>');
for (i = 0; i < 10... | stackexchange/codereview |
I'm writing a particular serialisation system. The first version works well. It's a hierarchial string-key, data-value system. So to get a particular value, you navigate to a particular node and say getInt("some key") etc. etc.
My issue with the current system is that the file size gets quite large very quickly.
I'm ... | stackexchange/codereview |
I have a string
var x='abcdefg1234abcdefg';
I want to replace 1234 with 555 using the x.replace() function like
x=x.replace(stuff here)
I tried to pass '1234','555' as the parameters but it's not working.
Any clues? thanks
Edit:
The string is in a hidden <input> field. The value of it is:
<object id="player" classid=... | stackexchange/codereview |
I am a student C# programmer. I am just learning Localization and Globalization. I am just created a button to change the current culture (CurrentCulture and CurrentUICulture) of the current thread. But after running this program this button is not working as I need. Button click event I written is like below:
priv... | stackexchange/codereview |
Supposedly in HTML5 in Safari, you can define your input type as "search" and when the user starts typing, an X button will show up to allow them to clear, much like the Google search bar in Safari. On my website, this works on desktop Safari but it doesn't work in Mobile Safari.
<input id="termsField" type="se... | stackexchange/codereview |
I've got an option menu that's about 60 items long and, needless to say, I can't see it all on the screen at once. Is there a way that I can make the OptionMenu widget in tkinter scrollable?
| stackexchange/codereview |
I was wondering that currently we have gtk.TextViewWidget to display the contents of widget. I was wondering is there any way to make a type of My Computer Properties dialog box where there are different panels at top and one can click on any one of them to display the contents of that property.
Can anyone give me some... | stackexchange/codereview |
Per a conversation with @Aaronaught on another thread, I've started converting my application to use Dependency Injection and the Repository patterns, but I'm a little stuck. I think I get most of the stuff and flow of the patterns, but I'm stuck on implementing StructureMap into ASP.NET MVC 2. The examples I've read s... | stackexchange/codereview |
I’m programming in Java and I have an xml file and a form.
How can I use the data of the xml file to select a radio button in a group?
Thank you.
Best regards.
| stackexchange/codereview |
Does anyone have experience using Doctrine with large datasets? I have an import script that uses Doctrine and it uses way too much memory. The speed isn't a huge problem but the memory usage is. Does anyone have any tips for keeping Doctrine's memory usage down?
| stackexchange/codereview |
My professor has given me an assignment.
Write a query that will produce the
snum values of all salespeople
(suppress the duplicates) with orders
in the Orders table.
SalesPeople
Snum number(4)
Sname varchar2(10)
City varchar2(10)
Comm number(3,2)
Customer
Cnum number(4)
Cname varchar2(10)
City varchar2(10)... | stackexchange/codereview |
it's possible to have a usercontrol over my form and set a transparency percentage?
I Wish have the background of the usercontrol to 70% transparent, but the buttons and the rest of the components to 100%
it's possible?
thanks
| stackexchange/codereview |
I am using SQL Server 2008 Express. In the DB in question, there is only one schema: dbo.
If I run the following script:
CREATE UNIQUE INDEX IX_ClientSocialTypes_Cover
ON ClientSocialTypes(ClientID, SocialTypeClassID, [Source]) INCLUDE (URLID);
... it executes ok, but I cannot see the index when I go into DB Diagram a... | stackexchange/codereview |
I want it to alert "ok" when you change/make a date. But i get two alerts instead of one?
How can i fix this?
here's the code:
$(document).ready(
function(){
$('#datePicking')
.daterangepicker({
arrows:true,
onChange: function(){
$('#Viewer')
alert('ok');
}
})... | stackexchange/codereview |
HI,
Consider these method calls
1) AudioFileOpenURL(inFileURL,kAudioFileReadPermission,kAudioFileMP3Type,fileID)
2) AudioFileOpenURL(inFileURL,kAudioFileReadPermission,kAudioFileMP3Type,&fileID)
The second call has an "&" symbol before the fileID parameter. What does the "&" mean?
| stackexchange/codereview |
I'm trying to achieve the following here.
I've got 3 tables:
blocks
items
ingredients
I query ingredients and depending on the result, I want to subquery or join some columns from blocks or items.
I managed to conditional subselect 1 column (name) in my select statement but if I want to select more I than one column,... | stackexchange/codereview |
I have a ListView whose rows are formatted by me. Each row has a mix of ImageView and TextView.
I have also implemented my own adapter and am able to draw each row through it.
Now, I would want something like this-
User clicks on an ImageView (not anywhere else on the row, but only this ImageView should respond to cli... | stackexchange/codereview |
Suppose I want to call one or more boost library functions from Ruby code. There are many examples of times where I'd want to do this, but most recently I want to use the Boost Graph library for efficient graph processing. I think the way most often suggested for doing this is to use SWIG. Has anyone gone through and g... | stackexchange/codereview |
I am creating a configuration file on click of a button by the following code.
fputs( "AutoStart = " +strAutoWinStart +
"AutLogHistory = " +strAutoLogSvrHistory +
"AutoScan= " +strAutoScanDetect +
"AutoMount = "+ strAutoMount +
"AutoOpen = "+ strAutoOpenWin +
"LastConnecte... | stackexchange/codereview |
i want to manage all the design of my website(asp.net) through my css.
my client requirement is he should be able to change all design of website within 4-5 hrs.
is this possible.
is there any trick to do this?
| stackexchange/codereview |
How do I convert an XML body to a hash in Ruby?
I have an XML body which I'd like to parse into a hash
<soap:Body>
<TimesInMyDAY>
<TIME_DATA>
<StartTime>2010-11-10T09:00:00</StartTime>
<EndTime>2010-11-10T09:20:00</EndTime>
</TIME_DATA>
<TIME_DATA>
<StartT... | stackexchange/codereview |
I have a datagrid that displays items with two columns of text row data and a larger free text detail that I'm displaying via a rowdetails template with just a border and a textblock.
The problem I have is that the text details are often larger than the area allowed for the grid. The default scroll behaviour of the dat... | stackexchange/codereview |
I've written a little class to assist in conversions to and from MSVC's clunky types:
template <class FromType>
struct convert
{
convert(FromType const &from)
: from_(from) {}
operator LARGE_INTEGER() {
LARGE_INTEGER li;
li.QuadPart = from_;
return li;
}
private:
FromTy... | stackexchange/codereview |
I can't figure out a way of selecting the nth element, last element, or first element in cases where I don't know the parent element. nth-child exists, but only for children, for example:
<div>
<p>One</p>
<p>Two</p>
</div>
p:last-child selects the "Two" paragraph, and p:first-child selects the "One" paragraph. B... | stackexchange/codereview |
The default Maven settings for HTTP requests, such as the ones Maven uses to fetch artifacts from repositories, include the following headers:
Cache-control: no-cache
Cache-store: no-store
Pragma: no-cache
Expires: 0
Accept-Encoding: gzip
This seems to be the documented behavior. The default Maven wagon for HTTP (i.e... | stackexchange/codereview |
I'm a bit curious..
I'm working on an application that loads dynamic data externally - this can take from one second up to several minutes depending on the user's connection speed. Should I make a preloader at the start of the application and load in every data or make X preloaders and show them for every page/part of... | stackexchange/codereview |
I am looking for any jquery/jquery-ui plugin to convert select html element (drop-down list) to a nice looking "carousel". Not image carousel, but something similar to jQuery-ui datepicker component title:
With side buttons that allow going through list items. Does anyone know anything similar to this.
Thanks.
| stackexchange/codereview |
I'm got a function thats using file_get_content to grab a piece of html with some vars in it. the idea is then to update the vars with some stuff this function fetch from the db and return it. However, on the output the variable just reads $myNameVar instead of My Name. Let me paste my code.
function query($query,$... | stackexchange/codereview |
I've added the test project into my solution. I want my test to load the xml file that is placed into the test project. To find it I use Directory.GetCurrentDirectory() but it returns the testresults/out folder where there is not my xml file although it has in properties "Copy to output directory". I think in this cont... | stackexchange/codereview |
The only way I know how to print a huge string without using += is to use \ backslashes. ugly!
<div id="foo"></div>
<script type="text/javascript">
var longString = '<div id="lol">\
<div id="otherstuff">\
test content. maybe some code\
</div>\
</div>';
document.getElementById('foo').inn... | stackexchange/codereview |
I don't want a repeat of the Cthulhu answer, but I want to match up pairs of opening and closing HTML tags using Treetop. Using this grammar, I can match opening tags and closing tags, but now I want a rule to tie them both together. I've tried the following, but using this makes my parser go on forever (infinite loo... | stackexchange/codereview |
I am checking out the current version of a design with the current command:
svn checkout svn+ssh://test@example.com/mainrepository/trunk/projects/design1 .
That works fine, and I made some substantial changes to the implemetation so
that I would like hold a copy of this milestone in the SVN. In other words,
I would l... | stackexchange/codereview |
There are two Table Table_Trigger and Table_Trigger1.I have created a trigger on Table_Trigger1. It works perfectly.Below is my Trigger script -
CREATE TRIGGER Test_Trigger
ON Table_Trigger1
INSTEAD OF INSERT
AS
SET NOCOUNT ON
INSERT INTO Table_Trigger1(FirstName)
SELECT FirstName from INSERTED I
WHERE I.firstName i... | stackexchange/codereview |
Given that I have access to an IField field (parsed from another Java file), how do I create a FieldDeclaration in order to add it to a AST?
String varName = field.getElementName();
String typeName = Signature.toString(field.getTypeSignature());
VariableDeclarationFragment fieldFrag = ast.newVariableDeclar... | stackexchange/codereview |
I have a PL/SQL table with two columns: log_date (DATE) and value (FLOAT). The data is very fine-grained, the difference between log_dates could be a few milliseconds. The value changes over time. I want to find, using SQL, the maximum and minimum amount of time between log_dates it takes for value to increase.
Edit: ... | stackexchange/codereview |
I want to select an option by text.
Here is my javascript function. I tried two ways but no luck.
Help is appreciated. Thank you.
function preselect(selectedText)
{
//not ok
$('#item1 .partDesc').val(selectedText);
//not ok either
$('#item1 .partDesc option[value='+ selectedText +']').attr('selecte... | stackexchange/codereview |
All:
I hope that you can help me. I am pretty good when it comes to working in an application that has already been configured and setup, but the flip side is that I am apparently not very good in setting up a new application - especially when it comes to Spring MVC. I am trying to set up a very simple application so t... | stackexchange/codereview |
Hey I have the following regex 0-9-a-z-A-Z-@-.-:-/-_- -\r\n-\s- ,
which is fine but i also want to allow new lines/break from data from text area so I can retrieve the next line.
So lets data is like this
Geography - Higher - A1
Irish - Higher - A2
Maths Ordinary - B1
English - Higher - B1
Business - Higher - B1
Frenc... | stackexchange/codereview |
We have a few places in a time-critical script where we convert old IDs into strings. At the moment, we use case statements inside a function, like so:
def get_name id
case id
when 1
"one thing"
when 3
"other thing"
else
"default thing"
end
end
I'm considering replacing this with a h... | stackexchange/codereview |
I'm planning out a science project, and I'm doing some research about sockets in various languages. Strangely enough, I cannot find whether C has sockets as part of some internal resource, or if the language requires an external library to use sockets. From what I've seen, I'm inclined to think that it is part of an in... | stackexchange/codereview |
I've been looking for the definitive answer for months now, and the
RSpec book doesn't touch on it at all:
How do we now handle stubbing out rendering of partials in view specs
in RSpec2?
I have a large (35K+ lines of views and related specs) that I'm trying
to upgrade to Rails3/RSpec2. My views use partials pretty ext... | stackexchange/codereview |
I am trying to create an application in C#.net that captures the screenshot of the current active window including the area that has to be scrolled using scroll bars.I found the following code to take screenshot. To be very clear I want the code to take screenshot of the active window including the area that is not dis... | stackexchange/codereview |
I am trying to create a JScrollPane component which can be reused depending upon the string parameter that is being passed..
I have created the following code, it works if I use JFrame to embed the JScrollPane inside it,
but when I try to reuse the code in creating different JScrollPane the scrollPane is not displayed ... | stackexchange/codereview |
I am currently attempting to get a DIV to expand to 100% of the browser's height. I know that is a commonly asked question and so have read countless forums in order to find the answer but have yet to find something which will work across all browsers.
My CSS file looks something like this:
html{height:100%;}
body {
b... | stackexchange/codereview |
I have a situation where I can save a post-processing pass through the audio by taking some manipulated buffer from the end of the track and writing them to the beginning of my output file.
I originally thought I could do this by resetting the write pointer using ExtAudioFileSeek, and was about to implement it when I s... | stackexchange/codereview |
This is frustrating me!!!
It will be called most of the time but then it stops responding to the pinches. It will be called on a screen rotate and a double tap. Not to a pinch!
Help!
| stackexchange/codereview |
i have a CALayer with a custom draw method I've added to my view's base layer. I set needsDisplayOnBoundsChange to NO. However, when I resize the parent view's frame, the layer's drawInContext: is getting called continuously. I'd like the contents to scale while the resize is occurring. Any clues?
| stackexchange/codereview |
Now that Windows Mobile development has come to end what should we do with our Windows Mobile Enterprise Apps.
Stick with Windows Mobile 6.5 - how long will these devices be available for?
Use Windows CE - are devices available or do you have to develop your own?
Use Windows Phone 7 - Will (or even does) this consumer... | stackexchange/codereview |
How can I "flush" output in Ruby on Rails 3?
In PHP I would do something like the following:
$i = 0;
$total = count($result);
foreach ( $result as $item ) {
$i++;
time_consuming_action($item);
echo "Finished $i of $total<br>";
flush();
}
| stackexchange/codereview |
I have a JSP where I'm trying to use JSTL tags to display data from an in-memory instance of a class. The data consists of a series of Strings where each String is the address of an RSS feed.
In the JSP, I have the following code:
<table border = "1">
<tr>
<c:forEach var = "rssFeedURL" items = "${rssfom.rss... | stackexchange/codereview |
I have been wondering if there is a way to make the following javascript functions work in IE8 and Chrome:
var funct = function()
{
var ppt = new java.awt.Point(200,100);
alert(ppt.x);
}
This thing works only in Firefox. Is there a way to enable global Java packages in IE 8 and Chrome?
| stackexchange/codereview |
I'm looking for a solution to exchange data (protocols build on TCP) between NAT separated endpoints - more or less directly.
I can setup a relay service for example - which is what I have in mind. However I want to route traffic without losing too much performance.
or I can build a VPN with a central VPN server
Are... | stackexchange/codereview |
I am attempting to extract pitch data from an audio stream. From what I can see, it looks as though FFT is the best algorithm to use.
Rather than digging straight into the math, could someone help me understand what this FFT algorithm does?
Please don't say something obvious like 'FFT extracts frequency data from a ... | stackexchange/codereview |
I would like to know the algorithm to find out the page rank in google search.
Currently I am using php and curl method.
starting from 0 - until found or time limit i submit it to google with different start index.
I would like to know if there is another way or not?
| stackexchange/codereview |
We've got a Python-based web server that unpickles a number of large data files on startup using cPickle. The data files (pickled using HIGHEST_PROTOCOL) are around 0.4 GB on disk and load into memory as about 1.2 GB of Python objects -- this takes about 20 seconds. We're using Python 2.6 on 64-bit Windows machines.
Th... | stackexchange/codereview |
here is the code and comment:
template<class T>
struct B
{
B(){}
template<class T1> operator T1() { return T1(); }
// define this macro if your compiler fails.
#if (defined USE_MORE_TIDOUS_WAY) // (defined _MSC_VER)
template<class T1> explicit B(B<T1> const& ) {}
template<class T1> operator B<T1>(... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.