instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
When I have an Expression declared like
someText = Regex.Replace(someText, @"/*.*?*/", "");
The Error Says
System.ArgumentException: par"/*.*?*/"
parsing - Nested quantifier *.
How to rewrite the code to avoid this error?
| stackexchange/codereview |
I'm looking for a way to conditionally load and keep the execution order of some javascript files (external and internal) without any library dependency. Basically, what I want to do is load them up only if the browser supports localStorage.
Here's basically my shell:
if (window.localStorage) {
//load up JS only if it... | stackexchange/codereview |
Is there a way to send raw packet Ethernet to other host via C#? In Windows 7 if it makes difference.
| stackexchange/codereview |
var $name = ('div#amuchlongername');
$('#wrapper').prepend('<div id="$name"></div>');
Obviously I know this code is wrong lol, but I'm fairly knew to jQuery and I can't seem to find anything about this.
How would one go about achieving a variable name inside a div id?
| stackexchange/codereview |
I'm trying to rebuild an Access adp application in Access 2007. I started with a blank database, linked the SQL Server tables I need with ODBC, and then copied over all of the forms from the original application. I then updated the data sources for the forms to go to the correct tables.
When I open one of the forms, I... | stackexchange/codereview |
i have a favorite icon defined for my web-site:
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
Any browser that has visted the site after i added the icon can display the favicon fine. But my own browser refuses to show the icon.
i've tried every variation of the link i can think of:
<link rel="shor... | stackexchange/codereview |
I am new to PHP, and am trying to learn to use PDO to connect to a test MySQL db. I have the following:
try {
$db = new PDO('mysql:dbname=MYDBNAME;host=MYHOST', 'USERNAME', 'PASSWORD');
$query = "select * from books where ? like '%?%'";
$stmt = $db->prepare($query);
$stmt->execute(array($searchtype... | stackexchange/codereview |
I am trying an inner join like this.
select R.ReservationID, R.BookingNumber,P.FirstName, P.LastName
from Reservation R inner join PersonName P
on Reservation.ReservationID = PersonName.ResrvationID
I am getting the errors as:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Reservation.ReservationID... | stackexchange/codereview |
I'm messing around with a test/exercise project just to understand Rails better.
In my case I have three models: Shop, User and Product.
A Shop can be of three types: basic, medium, large. Basic can have 10 Products maximum, medium 50, large 100.
I'm trying to validate this kind of data, the type of Shop and check how ... | stackexchange/codereview |
I have a class structure:
class MyEx{
public int Prop1;
public int Prop2;
public int Prop3
}
Prop1 and Prop 2 are always the same , Prop3 varies.
this class I want to retrieve from a longer the end should be something like
select new MyEx { Prop1=something;
Prop2= something2;
Prop3... | stackexchange/codereview |
I have html static files on my server. I want the access rules as -
If user visits http://example.com/test/ he should get the contents of the file http://example.com/test.html
If the user visits http://example.com/test (without the trailing slash), he gets redirected to http://example.com/test/ (which runs rule 1 and ... | stackexchange/codereview |
What is the most elegant way to get ISO 8601 formatted presentation of the current moment, UTC? It should look like: 2010-10-12T08:50Z.
Example:
String d = DateFormat.getDateTimeInstance(DateFormat.ISO_8601).format(date);
| stackexchange/codereview |
I have ComboBox with CheckBoxes for items.
When user checks or uncheckes boxes I want the selected values to be displayed in the ContentPresenter separated by comma.
At the the moment I have overridden ContentPresenter:
<ContentPresenter x:Name="ContentPresenter"
HorizontalAlignment="{TemplateBinding HorizontalCont... | stackexchange/codereview |
When I try to install a custom jar with the following maven command then it will fail misirably:
mvn -X install:install-file -Dfile=D:\Work\...
Howerver the following does work:
mvn -X install:install-file -Dfile=\Work\...
You might now ask: So where is the problem? Well, I want to import from a script file and there... | stackexchange/codereview |
I`m writing a PHP page that parses given URL. What I can do is find the first occurrence only, yet when I echo it, I get another value rather than the given.
this is what I did till now.
<?php
$URL = @"my URL goes here";//get from database
$str = file_get_contents($URL);
$toFind = "string to find";
$pos = strpos(htmlsp... | stackexchange/codereview |
Sample Code:
-(void)ConnectWithRequest:(NSMutableURLRequest*)req{
if(![req isEqual:theRequest]){
[req retain];
[theRequest release];
theRequest = req;
}
XMLConnection = [[XMLWebServiceConnection alloc]init];
Connection=[[NSURLConnection alloc]initWithRequest:theRequest delegate:XMLConnection];
}
In XML... | stackexchange/codereview |
I have data that looks like this:
model aspect cover contour
1 flowering ~ 1 2 52 2400
2 flowering ~ 1 + temp + precip:temp 1 52 2390
3 flowering ~ 1 + temp + precip 1 52 2390
4 flowering ~ 1 + temp + precip 1... | stackexchange/codereview |
I am interested in software alternatives to the Google Search Appliance (GSA) for use in a (large) university context. Has anyone experiences of migrating from GSA to an alternative solution? If so, what were the reasons for doing this (technical, financial, staff effort, etc) and have the experiences been positive?
| stackexchange/codereview |
We're in the process of evaluating team foundation server for source control. There doesn't seem to be a great way to "discover" that another developer has added file(s) to a solution. Does anyone have any tips to make new files "jump out" a bit?
| stackexchange/codereview |
We are working on a Builder type interface that basically constructs a list for doing CRUD management of individual objects (since we're using ActiveRecord an object == a database record).
In order to make specifying the column values and parameters for list options flexible we originally implemented the callback argum... | stackexchange/codereview |
Hello I'm using a ViewScoped Bean the Problem is that when call it I get the NotSerializableException.
This is the code of my Managed Bean :
@ManagedBean(name="demandesBean")
@ViewScoped
public class DemandesBean implements Serializable {
private static final long serialVersionUID = 1L;
@ManagedProperty(value=... | stackexchange/codereview |
I have found the rand_s function, part of the CRT, to be extremely useful while developing my application. However, it is my understanding that it is not prototyped in recent MinGW header files.
Therefore I am asking for a comprehensive means of either providing or prototyping such a function. I have considered using ... | stackexchange/codereview |
I'm playing with gdb within xcode debugging an iphone app.
Supposedly, I should be able to use the following command:
info malloc <0xaddress>
see
http://www.friday.com/bbum/2010/01/10/using-malloc-to-debug-memory-misuse-in-cocoa/
and strange GDB error unable to trace
I have env vars MallocStackLoggingNoCompact = 1 an... | stackexchange/codereview |
void clearscreen ( void )
{
char a = 'a' ;
fflush ( stdout );
do{
a = getc( stdin ) ;
if ( isspace ( (int ) a ) )
{
getc ( stdin );
}
}while ( a != EOF );
}
I... | stackexchange/codereview |
I have requirement of selecting s subset of data from a collection using a part of a key word
Assume that I have a collection consist of following entries,
"Pine Grosbeak"
"House Crow"
"Hume`s Leaf Warbler"
"Great Northern Loon"
"Long-tailed Duck"
"Lapland Longspur"
"Northern Gannet"
"Eastern Imperial Eag... | stackexchange/codereview |
Good morning,
I wrote the following LINQ query
public static Func<String, IEnumerable<String>> ListaCorreccoes = (StrPalavra) =>
{
return (from StrTmp in ListaPossiveisCorreccoes(StrPalavra)
from StrTmp2 in ListaPossiveisCorreccoes(StrTmp)
where PalavraConhecida(StrTmp2)
... | stackexchange/codereview |
I want to skin an application I wrote, but do not know where to start. Is there anything like DirectShow (stardock.com), DotNetBar etc..for Mac that I can do this? (I do know these examples are for .NET, just using a point of reference.
If there is not, is there some source of information that will lead me in the r... | stackexchange/codereview |
I have to use an ActiveX Object (QlikOCX.ocx). So I've created a very small sample application, which works fine, but when I close the application I get an error like this:
"application.exe doesn't work anymore
-> Search online for an solution and close the programm
-> Close the programm
Problem details:
Problem-event-... | stackexchange/codereview |
Have a text to output in div printed with not fixed-pitch font. This div height permit to print only 4 lines of text. Is it possible to track automatic browser word wrap, so I can find position in text, when it has reached 4 lines and to cut away next lines?
Any suggestions using Javascript manipulating with DOM or may... | stackexchange/codereview |
I have the following class:
public class SimContactDetails2G
{
public String AbreviatedName { get; set; }
public String DialingNumber { get; set; }
public int Index { get; set; }
public String Surname { get; set; }
public SimContactDetails2G()
{
}
public SimContactDetails2G(String nam... | stackexchange/codereview |
QString fe = "C:\\Program Files\\Autodesk\\Maya2008\\bin\\imconvert.exe ";
This line gives a problem because of space between Program and Files. How is it possible to decode it so that it is treated as one complete string
Brgds,
kNish
| stackexchange/codereview |
I'm trying to make a simple form that contains textboxes that draw from a db in my project. I'm using the table adapter's GetData() method in the xsd file to populate the data context. I want to update one of these textboxes and have the changes reflected in the database. The textboxes populate fine, but the changes do... | stackexchange/codereview |
I have been trying this for a week or so now.
I have followed the tutorial to get hello android working but while an AVD starts the program doesn't run.
I am running Windows 7 64 bit with eclipse 3.5.2 running adt 0.9.9 and SDK r7.
the sdk is installed in C:\android-sdk-windows
eclipse is installed in C:\eclipse
What i... | stackexchange/codereview |
I have a table that contains a list of the starting letters in a post code e.g. LS for Leeds and SO for Southampton.
I want to match these against a user entered full postcode e.g. LS19 1AB.
I've looked into using LIKE and some regexp stuff in my query but I'm struggling to find a way to do this the right way round.
| stackexchange/codereview |
Sorry for such popular question, but,
i don't need fill anything, i just need press a submit button on html page, how can i do it, via HttpWebRequest?
| stackexchange/codereview |
I have two tables, tasks and projects. And every task has a project (and every project can have N tasks).
When adding or editing a task, projects are displayed as dropdown as it should, but dropdown is ordered by ID (or no ordering at all). Because i start to have plenty of projects, is there a way to get projects in a... | stackexchange/codereview |
friend's,
I am working in Facebook,here i need to change the image url value string has dynamic one,
here my code
intent
.putExtra(
"attachment",
"{\"name\":\""
+ Html.fromHtml(title)
+ "\",\"href\":\""
+ Html.fromHtml(url_val)
... | stackexchange/codereview |
I just noticed that EditorGridPanel doesn't have row over effect as in GridPanel so i tried to add following in config
overCls: 'x-grid3-row-over'
where x-grid3-row-over is as follows (i copied from grid.css) :
.x-grid3-row-over {
border-color:#ddd;
background-color:#efefef;
background-image:url(../images/... | stackexchange/codereview |
This is my combobox. It doesn't seem to be virtualizing, but I cannot figure out why. Do you know of anything that would cause this?
<ComboBox Grid.Row="0" Grid.Column="2"
SelectedValuePath="PrimaryKey"
SelectedValue="{Binding CustomerKey}"
ItemsSource="{Binding CustomerCanidates}">
<ComboBox.ItemsPa... | stackexchange/codereview |
As you know, the built-in themes all define styles for the standard controls such as the TreeView control. We're trying to create something that looks an awful lot like a TreeView but isn't actually one, nor is it a subclass of one. It just has parts that we want to look like one for consistency.
For instance, our co... | stackexchange/codereview |
I am wondering if there is an easy way to calculate the text extent of a string (similar to GetTextExtentPoint32), but allows me to specify the DPI to use in the calcuation. In other words, is there a function that does exactly what GetTextExtentPoint32 does, but allows me to pass the DPI as a parameter, or a way to "t... | stackexchange/codereview |
I am given a string that has place holders in the format of {{some_text}}. I would like to extract this into a collection using C# and believe RegEx is the best way to do this. RegEx is a little over my head but it seems powerful enough to work in this case. Here is my example:
<a title="{{element='title'}}" href="{{ur... | stackexchange/codereview |
I have this form and a yes or no radio choice. The get_request_ids(song) basically gives me the ids i need.
<% form_tag '/somewhere' do -%>
<% [ 'yes', 'no' ].each do |status| %>
<%= radio_button_tag "group[]#{get_request_ids(song)}", "#{status}[#{get_request_ids(song)}]" %>
<%= status.humanize %>
<% end %>... | stackexchange/codereview |
I am working on an application that gets text from a text file on a page.
Example link: http://test.com/textfile.txt
This text file contains the following text:
1 Milk Stuff1.rar
2 Milk Stuff2.rar
3 Milk Stuff2-1.rar
4 Union Stuff3.rar
What I am trying to do is as follows, to remove everything from each line, except f... | stackexchange/codereview |
Hi I have some tables in my page. The first row of each table is normal but the rest of the rows are hidden by giving the tr tag a class of hidden. There is a link in the first row to show more info (fade in the hidden rows) which currently uses this selector:
$(this).closest('tr').nextAll("tr.hidden").fadeIn()
Howeve... | stackexchange/codereview |
i try to use : Microsoft.Exchange.WebServices.dll to use outlook. but connection return error
Error return line:service.AutodiscoverUrl("myusernamek@xxxx.com");
The Autodiscover service could not be located. my codes:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.... | stackexchange/codereview |
I'm trying to use a <legend> as a title inside a <fieldset>.
In browsers other than IE, the <legend> is positioned on the top border of the <fieldset>, with the text perfectly centered on the line.
I'm trying to reset it's position so that it sits just like any other element. i.e. an <h3>.
Here's the CSS I have so far... | stackexchange/codereview |
I'm trying to convert C++ API to VB.Net, but this function is too hard and i don't know how make it work.
Here is the API doc for this function:
void RemoteDllSetReceiver(void *inst, on_received_buffer_t received_buf_cb);
Sets a callback function to receive notifications from the DLL. The prototype of the callback is... | stackexchange/codereview |
I am using following regex to validate date in format dd/mm/yyyy in php:
preg_match("/([0-9]{2})\/([0-9]{2})\/([0-9]{4})/", $e_startdate, $matches)
But what will be the regex to validate time in the format 10:20 PM or AM. I want a regex which will validate following format for me.
<number><number><colon><number><numbe... | stackexchange/codereview |
I'm trying to do a dynamic template. I have links in sidebar and I want to load the content dynamically with .load() in jQuery.
I have the following jQuery code for that:
// Services AJAX page loader
jQuery('.sidenav a').click(function(){
$page_url = jQuery(this).attr('href');
// load page
jQuery('#content').fa... | stackexchange/codereview |
I need a cheat sheet for Java and started looking around, but could not find one that seemed "canonical" - which surprised me considering how widespread the language is. Could experienced Java coders please suggest a cheat sheet that is useful (organized so well you actually use it often) and complete (covers real-wor... | stackexchange/codereview |
I'm working with the SharePoint content query web part. I have an HTML output which is desired to be
<ul>
<li>
<img src="{RowAttribute-Url}" />
</li>
<li>
<img src="{RowAttribute-Url}" />
</li>
</ul>
<table>
<tr>
<td>{RowAttribute-Title}</td>
<td>{RowAttribute-Title}</td>
</tr>
</table>
and the input xml for... | stackexchange/codereview |
I am trying to create a comment that could comment on other comments but are all derived from a single post.
What is especially troubling for me is trying to figure out how to make it so that this can all be achieved in the post show and not its edit or new. Is this archtecturally reasonable?
That way I can access it v... | stackexchange/codereview |
I have a WCF REST 4.0 project based on the the WCF REST Service Template 40(CS). I'd like to expose simple service endpoint URLs without trailing slashes. For example:
CarService.cs
http://www.domain.com/cars - GET returns a list of all cars
http://www.domain.com/cars/123 - GET returns a single car with ID 123
Truck... | stackexchange/codereview |
public T Update(T update) { }
Currently for this method I m implementing it like so..is there any other easy way around in Linq to SQL
public T Update (T update)
{
var table = (IEnumerable<T>)(_table.AsQueryable());
var store = (T)((from a in table.Where(
a => a.GetType().GetPrimaryKey() ==
... | stackexchange/codereview |
i want to implement a UIScrollView where paging is enabled and i can just flick through some images. Thats all i want to be able to do for now.
I have done this so far in interface builder: can someone help?
I dont know how to do the rest. Can someone please help me with this. I dont need any zooming functionality. I ... | stackexchange/codereview |
a have a page that consist of:
<input type="radio" id="oqcline" class="section"/>OQC Line
<input type="radio" id="oqcbalance" class="section"/>Balance
<br/><br/>
Month
<select id="search_month" class="searchqp" name="search_month">
Year
<select id="search_year" class="searchqp" name="search_year">
<button id="search" ... | stackexchange/codereview |
i have a image view and on top of it i have a button. now what i want is when i click on the button i should get a list of images on same Activity.actually i am trying to make a list in button,s onClick event. event gets fired but it does not show the list. anybody can have any idea how shall i achieve this i am also m... | stackexchange/codereview |
I'm trying to control the video playback of a live video stream using ActionScript 3 code in Flash Professional.
There's a FLVPlayback component on my stage titled "flvPlayer", and in Frame one of my "Actions" layer, I have the following code:
import fl.video.FLVPlayback;
import flash.display.Sprite;
var vidURL:String... | stackexchange/codereview |
I'm trying to duplicate something that's being done on a website that seems a bit weird. They are serving both
h**p://site.com/script.php
AND
h**p://site.com/script.php/file1
This doesn't seem to make any sense to me. script.php is clearly a PHP file that will get interpreted and have its output returned... | stackexchange/codereview |
I found an empty for statement in an existing bit of code and I'm wondering what it does and is it "safe". It just feels wrong.
for(;;)
{
//some if statements and a case statement
}
Thanks!
| stackexchange/codereview |
In Python, how do I convert a list to *args?
I need to know because the function
scikits.timeseries.lib.reportlib.Report.__init__(*args)
wants several time_series objects passed as *args, whereas I have a list of timeseries objects.
| stackexchange/codereview |
Hi have a project that uses the functions in prnadmin.dll, in order to the use them I reference the interop.PRNADMINLib.dll It all works fine on 32 bit but I get the following error on 64 bit:
Could not load file or assembley 'Interop.PRNADMINLib, version=1.........
I have registered the prnadmin.dll on the 64 bit sy... | stackexchange/codereview |
How do I display Greek characters in Android?
| stackexchange/codereview |
I have an app which is based on the Utility template (where you flip over the view to see another). On the first view there is a login screen, then it flips over to reveal a UITabBar style interface.
I'm having trouble working out how to pass the managedObjectContext from the App Delegate (where it is created) all the ... | stackexchange/codereview |
I want to build a system where user plugins can implement an interface for different data elements which are to be stored in a database. Now since I don't know the details of implementation until runtime, I can't create my database to encompass all derived types... but is it possible to perhaps:
a) Manage entities onl... | stackexchange/codereview |
I am planning to execute Oracle PL\SQL blocks via JDBC (can't test it yet, question of few days). Is there anything I should know? Does everything work as it used to with plain SQL?
I mean:
ResultSet rs = st.executeQuery("DECLARE BEGIN NULL; END;");
Or will I need some custom classes? I'd like to keep it as much simpl... | stackexchange/codereview |
how can I prevent PHP from returning an Undefined variable error every time I try to check a variable if it has contents and that certain variable hasn't been used yet? In my previous setup, I can check $_POST['email'] even if I haven't put anything into it yet. It simply returns a blank or empty result. That's how I w... | stackexchange/codereview |
I've got a code that as you can see I can write in either of two following ways, the matter is the only difference is since in second function the parameter is declared as non-constant I can use that instead of declaring a new variable(num1 in first function) but I' curious which one would be more suited if there would... | stackexchange/codereview |
I have a block with some text and image inside.
Like:
<div>I just posted a new photo from my iPhone <img></div>
Image in the end has dimensions of 16x16.
The problem is, text varies and sometimes >just image< goes to a new line. It should always go with some word, image must not travel alone.
How do I do it?
| stackexchange/codereview |
I have UILabel and I need it to be able support copy&paste (actually only copy as it is read only). I subclassed UILabel to support copy and it works fine. I also added text highlight so user knows what exactly is he copying when he clicks on label.
My problem is that I don't know how to cancel that highlight when use... | stackexchange/codereview |
I need to recursivly echo comments and their respective children from a Jelly collection in Kohana. I was wondering how I pass a variable to a function via reference. I assume it would be something like this:
function recursive(&$array)
{
recursive(&$array);
}
But I am not quite sure. So is this correct or when I ... | stackexchange/codereview |
If I have a C file foo.c and while I have given -DMACRO=1 as command line option for compilation. However, if within the header file also I have
#define MACRO 2
Which of these will get precedence?
| stackexchange/codereview |
I understand this is supposed to happen automatically, but it's doing anything but in my experience. Does anyone know how to serialize a Bean which has indirect/direct references to other non-serializable Beans/classes?
| stackexchange/codereview |
I'm creating an app that allows users to use their own domain. What method do I use in my Rails app to automatically register their chosen domain with Heroku? I'll also need to deregister it if they change it.
| stackexchange/codereview |
Please tell me the class to be used to print a paragraph of text that is to be printed on a printer, In vb.net, more than 1 page of text must be dynamically printed by retrieving data from the database.
| stackexchange/codereview |
I was wondering how people deal with the fact that a git repo is really large and when I push the project to the web, copying the repo takes by far the majority of the time.
Thanks,
Matt
| stackexchange/codereview |
I'm implementing a classical map-reduce program in which I have a parent that spwans N children(maps) + 1(reduce). The parent sends info, through unnamed pipes, to each one of the N children. The maps process the request and send the result, an int, to reduce. The reduce does a select and sums up every counter writen o... | stackexchange/codereview |
I'm relatively new at creating custom content for Sharepoint 2010 and have been having some difficulty understanding how to get non-design related components (ie. web parts, custom classes, ...) into a Sharepoint site. I have created a new visual web part on the company's development server and deployed it successfully... | stackexchange/codereview |
Is it possible to access the request object inside an struts2 action's execute() method?
My requirement is to get some parameter value from the request scope which is being sent by some third party site, using URL redirection.
| stackexchange/codereview |
For the following mass-insert, because the inputs are ordered, are there any (slight) optimizations?
set<int> primes;
for ( int i = 2; i <= 2000000; i++ ) {
primes.insert(i);
}
// then follows Sieve of Eratosthenes algorithm
New improvement, twice as fast:
set<int> primes;
for ( int i = 2; i <= 2000000; i++ ) {
... | stackexchange/codereview |
I have the following XSLT
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:output method="html" omit-xml-declaration="yes" />
<xsl:strip-space elements="*"/>
<xsl:template match="@* | node()">... | stackexchange/codereview |
I have a singleton which I hold a single integer in, my score. However when I load it form the singleton in a another view it doesn't show what I want but instead sticks at a wired 6592960. Any ideas why? Something to do with how I am using @property Im thinking, what the correct way to @property an int?
Thanks.
EDIT:
... | stackexchange/codereview |
I use the emacs command 'highlight-compare-buffers' to see the changes between two files. But I don't know how to turn the highlighting off. It seems like it should be really easy, but I can't seem to figure out how even with lots of googling and searching the emacs help files.
| stackexchange/codereview |
I don't really understand why this simple stuff won't work. I can see that I set the constructor is called everytime one property is set. The problem is that when I reach the sendInvitation method then all inviteEmails is null.
@Named(value = "adminBean")
@RequestScoped
public class AdminBean implements Serializable {
... | stackexchange/codereview |
Currently I am working on a project, which uses a server base MySql to save some test results from equipments they make, and program works fine and at each test end it uses saved data to generate report with results. My client wants to use the same program in technicians laptops so they can visit various sites but ther... | stackexchange/codereview |
I have a float number for example 12.12123
Is there a function which would display only number with 2 digits after decimal point
12.12 ?
Here is the code:
y1 = ( c1 - (a1 * x)) / b1;
y2 = ( c2 - a2 * x) / b2;
if (y1 == y2)
cout << "The same";
so if the y1 = 1.001 and the y2 = 1.002 they do not appear as the same.
... | stackexchange/codereview |
I am trying to build a simple username-password-role based security object model for my application. The requirement is that user will enter using username and password and he/she will have enable and disable access to the part of the system depending upon whatever role they fall into. which I think is fairly simple id... | stackexchange/codereview |
I'm looking for a bubblesort code in java that is opposite of the usual thing that I'm seeing when I search the internet.
I don't really understand the code below, all I know is that it sorts a bunch of numbers from lowest to highest. Is the code below modifiable so that instead of outputting the numbers from lowest t... | stackexchange/codereview |
What I want to do is a simple breadcrumb which I have accomplish this with Web.sitemap
Home--> page1 --> page2
What I need to do
If I navigate to page1.aspx?param=value and after this I go to page2.aspx
the breadcrumb shows Home--> page1 --> page2 in which, if I click Page1 it redirects me to page1.aspx but how could ... | stackexchange/codereview |
I have to add an input with a name of "btnupdateprice" that I first have to dynamically insert it into the page (hidden of course) and then trigger it. Is there a way to do this without inserting it into the page like the following? A shortcut perhaps?
$("input[type='hidden'][name='ProductCode']").before('<input type="... | stackexchange/codereview |
i have examined code of RDcode. And i come across a defined function and i dont understand. Can you help me to this code.
template <typename T>
class argless {
public:
argless(const T& c) : container(c) {}; // i dont understant this line.
bool operator() (unsigned int v1,unsigned int v2){
return ... | stackexchange/codereview |
I'm using the UIImagePickerController to allow the user to select a photo from their library. I then want to assign the chosen image with this code;
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
UIImage* image = [info objectForKey:UIImagePickerCont... | stackexchange/codereview |
I have a couple of python modules in an existing Python project that I wish to make use of in my Java app.
I found an article and followed the steps mentioned there. In particular, I need to import the java interface:
package jyinterface.interfaces;
public interface EmployeeType {
.
.
}
into the module:
from ... | stackexchange/codereview |
I am attempting to clone the functionality of google suggest.
I have found google urls that return the the suggestions via json (google.com/complete/search?q=abc)
I am already using jquery, so i would prefer to use code similar to this for the auto-complete
http://docs.jquery.com/UI/Autocomplete
the code that is lack... | stackexchange/codereview |
I am currently unable to install any gems because I keep getting the follwiing error message
ERROR: While executing gem ... (Errno::E045)
Operation not supported - /home/rocker
I am using sudo command.
I believe the issue is in my gen env has info that is no longer correct
RubyGems Environment:
RUBYGEMS VERSION:... | stackexchange/codereview |
We are currently using PHP Spreadsheet_Excel_Writer library for generating excel sheet based reports. The library is consuming a lot of memory/time when we are trying to generate reports containing 20k-25k rows. Many times it takes above 20 sec for generating a file.
Any suggestions on which library can be used instead... | stackexchange/codereview |
I have created a SQLite database from Java. Now I want to know where it is stored physically on disk, so that I can push that file on to Android.
| stackexchange/codereview |
I am looking at getting a continuous integration/continuous deployment environment set up for my windows azure project and I was wondering if anyone had managed to (can point me in the right direction to) build and deploy a windows azure cloud service using powershell and Hudson and perhaps has sample scripts.
I can g... | stackexchange/codereview |
I have this interface with multiple UILabels.
On view loading i populate white labelled values with some data from a db.
The problem is, some of that fields are potentially too long for the interface, so i'd like to compute the total height of one label once the text is word wrapped and reposition the 2 labels below (s... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.