instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm planning to develop a 2D game for Android devices without a dedicated GPU, like the HTC Wildfire. I remember from the PC that OpenGL is generally to be chosen over something like SDL for 2D graphics because of speed and features.
On Android, there are two APIs for graphics:
A "normal" 2D API (does it have a name?)... | stackexchange/codereview |
I am using nhibernate with a mysql db. I am trying to do a simple data extraction from one table. I created my entity and my mappings. I am able to talk to the db. It is pulling the correct number of rows from the db table, but each row is a duplicate of the first row in the table. (I have 51 rows in the table. 5... | stackexchange/codereview |
Two questions please:
I need two foreign keys back to User, one for author and one for coauthor. I have managed by setting related_name equal to + but am not sure if this is smart or the best way. Thoughts or pointers?
When making an add entry via the django admin for this model, the author choices are names like jo... | stackexchange/codereview |
i have a Windows Server on which there is already a Oracle 10g client with tnsnames.ora and access to many databases.
I would like to install a Oracle 10g server on it..
Will it break the current Client configuration ? will i have several tnsnames.ora ?
how will i have to manage databases created on this server ?
Than... | stackexchange/codereview |
I have a clean install of WP 3.0.1, installed through cPanel and have created a directory for my new theme at /wp-content/themes/mytheme.
With an empty directory, the theme does not appear in the theme manager of the WP backend (as expected). If I add any PHP files (e.g. "page.php"), a warning appears in the theme man... | stackexchange/codereview |
I have the following macro defined which inserts rows into a sheet. After the rows are inserted at specified start addresses, the various ranges are then converted into Tables. My initial thoughts are that the issue lies with the use of xlDown - since this is the place in code where rows are inserted.
At present I have... | stackexchange/codereview |
I'm outputting fields of a form in a template like this {{ form.first_name }} and I'd like to add a class (eg. blueprint's span-x-class) to it. So I'd like to know if there's a nice readymade solution (template filter) for that, which I could use in the fashion {{ form.first_name|add_class:"span-4" }}? (I just want to ... | stackexchange/codereview |
Does the javascript in the processing.js script find the script type="application/processing" and convert it to javascript?
| stackexchange/codereview |
I am using BrowserControl to navigate to range of web pages on a site and then parse the html and extract information about books etc… I am having problems related (I think) to threading…
I have something like this.
// MAIN LOOP
for (int i = 0; i < NumberOfPages; i++)
{
WebBrowser.Navigate("http://AWebSite/" + Numb... | stackexchange/codereview |
I am working on a website that I want to be entirely Javascript based: you load the website, then all the pages are pulled in by Javascript.
So I here's what I have:
<span id="deathWormButton">Death Worm</span>
<div id="pageContent">
<p>Thanks for taking the time to view my portfolio!</p>
<p>Pla... | stackexchange/codereview |
A couple of other people and me are working on an app for android. It requires locating the device in latitude and longitude. We've been able to create a location object, but the object is always blank. We even tried recreating the code in a completely empty project, but that also failed. Here's our root activity:
pack... | stackexchange/codereview |
I'd like to be able to determine the age of an item in the HttpRuntime cache and was wondering if there was any way to do this. Basically what I in my class is parse a third party XML file into an object and then store the object in the cache. Rather than setting an expiration on the object in the cache though, I'd rat... | stackexchange/codereview |
I want to create simple dummy tag which can work with Struts2.
I have an action:
class MyAction extends ActionSupport{
/**
Some code
*/
public Department getRoot(){
/** Some code foes here...*/
return departmentInstance;
}
}
a tag:
<%@tag language="java" pageEncoding="UTF-8" body-content="empty... | stackexchange/codereview |
Sorry if this question has been asked already.
Am cloning from a repo named "git_lab" which has a branch named "test"
When cloning i use "-b myname_test" to create a local branch named "myname_test" and local clone is named "myname_git_lab"
When i do "git pull" it automatically fetches and merges changes from "test" to... | stackexchange/codereview |
Ok, so I have a phrase "foo bar" and I want to find everything BUT "foo bar".
Here's my text.
ipsum dolor foo bar Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do
eiusmod tempor foo bar incididunt ut labore et
dolore foo bar
There's a way to do this just within regex right? I don't have to go ... | stackexchange/codereview |
In the English module and a few other places, users are advised never to use the $& $` and $' variables or their English equivalents $MATCH $PREMATCH $POSTMATCH due to the fact that they will slow down all regex use.
What is a good test case (benchmark) that shows the performance problems?
| stackexchange/codereview |
My question is very simple, I have a text file that I put in the folder "other sources" in Xcode, and I want a use this text file in my program but I don't know what is his file path.
| stackexchange/codereview |
I was having a horrible time today trying to get a query to perform the way I would expect. I had to make a slight change to a table valued function that lives in the query yesterday and that change created a huge performance impact on the query. After evaluating the execution plan and looking at statistics IO and Ti... | stackexchange/codereview |
I was wondering how I can filter flash content from a specific html file.
I know I can use regex and search for .swf or .flv files, but is there another way of getting flash movies from a html document?
I want to use PHP to get the links to the flash content in an html file.
Thanks in advance!
| stackexchange/codereview |
I have a SAX filter that wants to insert some content into the current stream for downstream handlers to process (ie: add a node to the output). How can this be accomplished? I was thinking maybe I could instantiate a new pipeline (connected to $self) and call parse_string() on it but that didn't work:
Trying to pop co... | stackexchange/codereview |
I have an ASP.net gridview on a webform where user's can select a row. When they select it, the row is highlighted yellow. The problem is that when I sort the table, it sorts properly but the highlight stays on the same line. The data all moves, but the highlight stays put.
Can anyone suggest how I can make the high... | stackexchange/codereview |
I think I have the recursion working properly, but I'm not able to get the originally requested item's property set to the right value.
The goal here is to find the topmost parent (or "ancestor," depth = 0) of the nested item (a taxonomy based on Dictionary "parent" attributes), and assign that originally requested nes... | stackexchange/codereview |
Where can I find an implementation of multimap for Java that will work on Android without having to include any other classes etc. The implementations I've found all require other things which require other things and it gets messy quick. I'm porting a project from C++ and am new to java (and this project as well so I'... | stackexchange/codereview |
I am having trouble finding a class or API in Android documentation that would help me get battery usage statistics per application.
I have read PowerManager and BatteryManager classes but they are of no use.
However, I can find applications like PowerTutor that do provide battery usage statistics per application, so ... | stackexchange/codereview |
I have binding to Image.Source and TextBlocks. Also I have own convertor classes.
<conv:StatusConvertor x:Key="statusConvertor"></conv:StatusConvertor>
<conv:ImageConvertor x:Key="imageConvertor"></conv:ImageConvertor>
For example:
<Image Source="{Binding Value.profilePhoto, Converter={StaticResource imageConvertor}}"... | stackexchange/codereview |
I have two tables that I would like to join into one, but not all the fields. I've used INNER JOIN with some success, but can't get the exact results I need. Essentially, when using PHP to return results, I would like the key to be the 'meta_key' value.
Below are the two tables I want to combine:
USERS
+--------+----... | stackexchange/codereview |
Does anyone know why Google Chrome is crashing when the user land on a page with webfonts
It does not happen all the time, but just too often
I'm just getting a blue screen page, and I have no clue why: The page is just fine when it's not coming from a redirect.
This is what I have found in the logs:
[3612:5872:1785635... | stackexchange/codereview |
For some reason, a very old version of my icon keeps showing up when my application is dropped on the desktop. In the windows explorer (in all zooming levels) the icons is correctly the assembly icon. I specified the correct item in both XAML Window.Icon and in the project settings.
I have deleted the old version of m... | stackexchange/codereview |
I recorded a macro to calculate the ranking of the products on a monthly basis -
I have monthly sales figures of those products for Jan - YTD
I recorded a macro to sort the sales in desc order, and ranked them however i need to loop them for all months , which keeps on changing it could be Jan-Feb, Jan - May or whenev... | stackexchange/codereview |
I have an application that uses .Net remoting. The remotable calls our unmanaged dll that is a client to a Versant database. The previous release of our app communicated with an earlier release of Versant in exactly the same way. We now have 2 different dlls to communicate with the different versions of the database.
T... | stackexchange/codereview |
I am using 2 linkbuttons inside seperate dataitem server controls on my asp.net web page
<asp:LinkButton ID="Item1" runat="server" CommandName="first"
OnCommand="Item1_Onclick" CommandArgument="<%# Container.DataItem %`>"
Text="<%# Container.DataItem %`>" >
</asp:LinkButton`>
and
<asp:LinkButton... | stackexchange/codereview |
Scenario:
I'm using NServiceBus with MSMQ Transport.
I have messages from an app dropped into QUEUE-A.
I have a NServiceBus Gateway grab messages from QUEUE-A and send them to another Gateway
I the Destination Gateway receives the messages and places them into the respective queue.
Source Gateway throws a Null Refer... | stackexchange/codereview |
I've got a VSTO3 Word addin that makes use of custom ribbons and taskbars, etc.
Now, Office 2010 comes along and there's this nifty new BACKSTAGE concept, which I'd like to hook into. However, from what I can tell, doing it with VSTO requires Vsto 4, which requires VS2010, which isn't an option.
Soooo. I started lookin... | stackexchange/codereview |
I know how to serialize in F# using mutable objects, but is there a way to serialize/deserialize using record types using either XmlSerializer or the DataContractSerializer? looks like there is a way to do this for a discriminated union using the KnownType attribute, but i am looking for a way to use non-mutable record... | stackexchange/codereview |
We are working on a complex statistical project on Java. We did the original code in the R programming language. Is there a way to convert this code to Java code (converter) or otherwise how can we use R in a Java project?
| stackexchange/codereview |
I'm looking for a simple way to get a list of files that were checked in on a certain day. Is there a command line I can use? I don't want changesets just the file names.
| stackexchange/codereview |
I have an enum called OrderStatus, and it contains various statuses that an Order can be in:
Created
Pending
Waiting
Valid
Active
Processed
Completed
What I want to do is create a LINQ statement that will tell me if the OrderStaus is Valid, Active, Processed or Completed.
Right now I have something like:
var status ... | stackexchange/codereview |
I'm working on a WCF service that, at least initially, will only be consumed by an ASP.Net application on the same machine. This may change eventually, but for the time being, all communication with the WCF service will be intra-machine.
Is any sort of security necessary, and indeed, is any sort of authentication neces... | stackexchange/codereview |
What do the preg_match() and preg_match_all() functions do and how can I use them?
| stackexchange/codereview |
i have one method followed:
public List<Car> getCart(){
//do something
}
and in JSF Page i user this method for display Data in h:dataTable
and in view (JSF Page) i have one inputText in h:dataTable, example in h:dataTable i have 2 column are Cart Name and Quantity, and column Quantity is inputText for user edit Quan... | stackexchange/codereview |
I am trying to implement a basic show/hide of a div dijit in Dojo. Based on other javascript frameworks I've worked with, this should be easy, but I've found it difficult at best.
Here is the code from the
<script type="text/javascript">
dojo.require("dijit.form.Button");
dojo.require("dijit.layout.ContentPane");
dojo... | stackexchange/codereview |
Currently we have 25+ domains forwarding to one single www.mydomain.com. What I need to do using PHP is forward traffic once again to www.mydomain.com/#.html based on the referring domain. so...
www.mydomain1.com -> www.mydomain.com -> www.mydomain.com/1
I've been able to accomplish this for 2 using an If/ElseIf/Else s... | stackexchange/codereview |
I'm trying to work with producer/consumer threads in a bounded buffer. The buffer length is 5. I have 1 mutex and 2 semaphores, empty which starts out at the size of the buffer, and full, which starts out at 0.
When I run my code without sleep() at the end, it continually produces until the buffer is completely fully,... | stackexchange/codereview |
I am connecting to sql server using c#. How do I display the results of the below query on a winform? I would like to display this data set in a control. I believe it should be a datachart, but it does not matter to me.
// Initialize a connection string
string myConnectionString = "Provider=SQLOLEDB;Data Source=h... | stackexchange/codereview |
I have to write an installer and want to use Wix. The documentation on the website is not working and I like learning by example. Does someone know an open source project with good WiX source files, preferable for Wix version 3.0 or 3.5.
| stackexchange/codereview |
I'm building a Ruby on Rails app that access about 6-7 APIs, grabs information from them based on user's input, compares and display results to the users (the information is not saved in the database). I will be using Heroku to deploy the app. I would like those HTTP requests to access the APIs to be done in parallel s... | stackexchange/codereview |
I have a script to upload files with PHP.
I already do some cleaning to remove ugly characters.
I would also like to to remove dots in the filename, EXCEPT for the last one, which indicates the file extension.
Anyone has an idea how I could do that.?
For example, how would you get
$filename = "water.fall_blue.sky.jpg";... | stackexchange/codereview |
I am getting following error when we are upgrading 5.0.45 to 5.1.42. Do I need to use mysql_upgrade
or mysqlcheck ?
Caused by: java.sql.SQLException: Column count of mysql.proc is wrong. Expected 20, found 16. Created with MySQL 50045, now running 50142. Please use mysql_upgrade to fix this error.
at com.mysql.jdbc... | stackexchange/codereview |
I have translate.tr, translate.en, translate.fr files under
application/config directory. I used to
$translate = new Zend_Translate('csv', '../application/configs/translate.tr', 'tr');
$writer = new Zend_Log_Writer_Stream('../docs/translate.txt');
$logger = new Zend_Log($writer);
$translate->setOptio... | stackexchange/codereview |
I have been thrown in at the deep end with an existing VB.NET project at work. I have never used VB.NET before so I am struggling a little. Does anyone know how to solve the following.
I need to pass an instance to client side and then pass it to a shared method in order to access instance methods from when the share... | stackexchange/codereview |
Suppose you have an array A of n items, and you want to find the k items in A closest
to the median of A. For example, if A contains the 9 values {7, 14, 10, 12, 2, 11, 29, 3, 4}
and k = 5, then the answer would be the values {7, 14, 10, 12, 11}, since the median
is 10 and these are the five values in A closest to the ... | stackexchange/codereview |
Here is my flymake setup in .emacs file:
(when (load "flymake" t)
(defun flymake-pyflakes-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-f... | stackexchange/codereview |
I need a shortkey to terminate my application server and another for GWT development mode, Ctrl + Break is not working! I don't know why.
Can anybody help me?
| stackexchange/codereview |
I want to make my draggable item to the connected sortable list. I found if the connected sortable list is overflow the div with overflow:auto style, the draggable item cannot be dragged in to it. Is it a bug?
<html>
<head>
<title>My MultiSelect</title>
<script type="text/javascript" src="http://quasipartikel.at/multis... | stackexchange/codereview |
I have an unordered list with a background-image set. All list-items have the same height, the background-image is positioned left center.
The text of each item should be centered vertically to the li. This works well with single-line text (by setting the line-height according to the height of the li), but not with two... | stackexchange/codereview |
I've just came across using-directive in a context, which is new for me - e.g "moving" a member of parent class from public to private. I've tested the example below and two question arose:
Is the code at (1) portable? According to standard it should be deprecated.
Does it make sense at all to hide public members in s... | stackexchange/codereview |
Currently, I have a button called 'Comment' that when clicked slides down a comment box. I want the comment box to hide whenever the user clicks on any area of the page other than the comment box itself.
Currently, with my code the button just disappears when it is clicked. Could anyone point me in the right direction?... | stackexchange/codereview |
I need to design an MVC 2 or 3 app to work on both internal Win server and on Azure. The only problem I see is with the data storage. The app listens to some very chatty data feeds, like 10GB a day, and will have to write that data. So I'm looking for a way to have both Azure table and some other DB with minimal differ... | stackexchange/codereview |
Possible Duplicate:
What's the (hidden) cost of lazy val? (Scala)
Scala allows the definition of lazy values
lazy val maybeUnusedValue = someCostlyInitialization
where someCostlyInitialization is evaluated only on the first use of maybeUnusedValue. That is, it is evaluated at most once, and if maybeUnusedValue is n... | stackexchange/codereview |
since I can't get CEDET to work for automatic code-completion (aka intelli-sense in the MS-world), after trying several times (no, it's just not working!), I've decided to use auto-complete, which works "quite fine" for me.
Unfortunately, auto-complete has an annoying behaviour when it comes to quit the imenu with its... | stackexchange/codereview |
If the dom contains the following nodes:
<span id="one_element"></span>
<div id="the_other_element"></div>
how to call some function in the event when the mouse cursor is out of the one element but not over the other element? Is there a method?
(the one element may be either block-level or inline-level, positioned st... | stackexchange/codereview |
Right now I have a silverlight app that gets data from a mvc site. As long as I use WebClient and to GET requests, everything seems to be okay. However, when I use HttpWebRequest and POST, then I am getting authentication problems.
The problems stem from the request lacking the .ASPXAUTH cookie.
Does anyone know how t... | stackexchange/codereview |
So I'm having a problem with a query, and I don't really understand where. A comment is placed where the syntax error is. The query is much larger, I tried to shorten it to make a valid but tidier query.
This is using odbc to connect to a Progress database. I'm told it uses strict SQL-92.
SELECT itemcust."item-cust",
... | stackexchange/codereview |
Backstory
I know there are a lot of topics about this subject, but reading all of them didn't answer the problem. So the purpose of this 'question' is to combine all that we know to hopefully fix this issue.
Main issue
When you create a UISplitViewController and add it to UITabBarController it will work fine in Portrai... | stackexchange/codereview |
I'm trying to use a UUID for a primary key using JPA 2 (EclipseLink). I'm using PostgreSQL as the database. I have my entity declared as follows: I have an Employee table with its PK set as a UUID. I have a JPA Entity mapping to the employee table, which looks like this:
@Entity
public class Employee {
@Id
priv... | stackexchange/codereview |
So if a function or running time is not BigO of f(n), can we say its BigOmega of f(n)?
| stackexchange/codereview |
I am seeking a sample to call a remote function through RTMP protocol.
| stackexchange/codereview |
I have read somewhere about SQL express running as a user instance or something.. and as such, the instance/service "goes to sleep" if not used for x time.. (don't know the actual timings etc)
So the scenario is:
If my website (in this case) doesn't have anyone using it for "a few hours", SQL Express "seems" to go to ... | stackexchange/codereview |
I work in an engineering lab, not a computer science lab. As such, our in-house software is not the deliverable product. Instead, the in-house software is used to analyze engineering problems, and we deliver the results.
This makes version control a living hell. Or perhaps I should just say that the standard "trunk and... | stackexchange/codereview |
I'm trying to get a certain indexed item by number from a generic list and I'm getting: Unable to cast object of type 'System.Collections.Generic.List1[typename]' to type 'System.Collections.Generic.List1[System.Object]'. errors.
What I'm trying to achieve is to loop (forward or backwards) to a certain list based upon ... | stackexchange/codereview |
In my application I have an EntryServlet which loads default data and sets up the security based on the logged in user id. This servlet is using EJB's through dependency injection. It works fine when I execute it as a normal web application but when I try to test the application using JSFUnit the ejb reference in the s... | stackexchange/codereview |
I have the following simplified table structure in a SQL 2000 Databse:
ID AppName Key Value EffectiveDate
-- ------- ----- ------- -------------
1 App1 One Past 1/1/1900
2 App1 One Present 1/1/2010
3 App1 One Future 1/1/9999
4 App1 Two Past 1/1/1900
5 App1 Two ... | stackexchange/codereview |
I would like to use the SFINAE pattern to execute some code if I can instantiate a certain template class. Let's imagine this:
//Only instantiable with types T for which T.x() is ok:
template <class T>
class TemplateClass
{
T t;
public:
void foo() {
t.x();
}
}
template <class T>
class User
{
void foo()
... | stackexchange/codereview |
I have some experience with the SurfaceView. To prevent unneeded redrawing, I always use a countdown variable which tells the thread how often the view should be drawn.
countdown > 0 : draw ? doNothing
However I was thinking about changing that to use a "push surface". So just push a buffer to the surface and show tha... | stackexchange/codereview |
The server my PHP script is running on is set to UTC. I can't seem to figure out a way to set all dates to the browser's timezone. All dates displayed are formatted using PHP's date() function.
I know that via JavaScript's getTimezoneOffset() function, I can get the browser's current UTC offset (-4, in my case). How... | stackexchange/codereview |
i have a datagridview whose datasource is attached to a datatable
how do i update the datatable and then make sure to refresh the datagridview to reflect the changes in the datasource? or do i need to do this at all?
| stackexchange/codereview |
I have that Class :
public Class Color
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
}
My Controller :
public ActionResult Index()
{
var _colors = colorRepository.GetAll();
return View(_colors);
}
So, my I have an IEnumerable strongly-typed View:
Inherits="System.We... | stackexchange/codereview |
All,
I'm running into trouble deploying an ASP.NET 4.0 web page. The error is
System.InvalidProgramException: Common Language Runtime detected an invalid program
The error occurs on IIS7 on a 64 bit Windows Server box. The same page works on IIS7 on my development box (32bit Windows 7) and in the Visual Studio Developm... | stackexchange/codereview |
I try bind observable dictionary to listbox item, and my problem is. If I use normal generic dictionary, it works good. But if I use observable dictionary, listbox items are not loaded.
Here is observable dictionary class:
public class MyObservableDictionary<TKey, TValue> :
IDictionary<TKey, TValue>,
INotifyCol... | stackexchange/codereview |
I'm getting a string sent to me from a server (my app is running on android). One of the characters is a unicode symbol which is a musical note. I take the response from the server in a String, then hand it directly to a TextView. This is what should appear:
♫
but instead I see just a block (kinda looks like):
[]
whe... | stackexchange/codereview |
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
locmanager = [[CLLocationManager alloc] init];
[locmanager setDelegate:self];
[locmanager setDesiredAccuracy:kCLLocationAccuracyHundredMeter... | stackexchange/codereview |
Im using Google's geocode/googlemaps api. I can succesfully geo-code a location, and place a marker, however im having trouble putting the lat/long in a varible outside the call back function
function init() {
var latLng = new Array();//Setup the cities lat + long in array
this.foo = 3;
function addGeo(me){//call bac... | stackexchange/codereview |
SQLite3 doesn't support stored procedures. Is it possible to write custom function on C/C++ and use it in SQL query?
Something like that
SELECT * FROM table WHERE CUST_FUNCTION(name1, name2) = 1
or
SELECT CUST_FUNCTION(name1, name2) FROM table
Maybe you have some good example how to do that.
| stackexchange/codereview |
Looking for a object (CSS/Javascript) like jQueryUI controls that can be used instead of the standard HTML version;
<select rows="10">
<option value="1">Number One</option>
<option value="2">Number Two</option>
</select>
Some people write their own I have seen, but there must be some standard open source projects out ... | stackexchange/codereview |
When i use a jquery function like so,
jQuery('.mediaContainer').dialog({ width: 500, height:500});
how do i set a callback? where would i place it?
thanks
| stackexchange/codereview |
I have a leak when my app is running on device.
The leak is in the following code-snippet:
+ (NSMutableDictionary *)newDict:(int)index {
NSLog(@"%@: %s: %i", [self description],__FUNCTION__, index);
NSString *themePath;
NSDictionary *themesDict;
NSMutableArray *themesArray;
NSMutableDictionary *thisThemeDict;
if ... | stackexchange/codereview |
I'm trying to use the Opensubtitles API in my project, but I just can't make it work right. I'm using a wrapper called Ripcord, which is ultimately simple and nice to use, but it doesn't support everything. It's easy to use the method LogIn with it, but when searching for subtitles, I cannot make it work.
Here's my cod... | stackexchange/codereview |
Is there a better way to check whether a file exists (it is on different domain so file_exists won't work) than this?
$fp = fsockopen($fileUri, 80, $errno, $errstr, 30);
if (!$fp) {
// file exists
}
fclose($fp);
| stackexchange/codereview |
enter code herehello, everyone, can somebody explain what is my problem in this function:
public class Summer{
public <X,Y> Y[] sum(X[] inArr, Y first, SumFunction<Y,X> f, Y[] outArr){
for(int i = 0; i < inArr.length; i++){
outArr[i] = f.op(inArr[i], first); //here I have problem
first = outArr[i];
}
retur... | stackexchange/codereview |
I've got a database which will store profiles about individuals. These individuals have about 50 possible fields.
Some are common things like, first name, last name, email, phone number.
Others are things like hobbies, skills, interests
Some are height, weight, skin color.
Each of these groups are used by the system a... | stackexchange/codereview |
So I have an umbraco site with a number of products in it that is content managed, I need to search/filter this dataset on the front end based on 5 criteria.
I'd estimate I will have 300 products. I need to filter this data very fast and hide show options that are no longer relevant based on the previous selections.
I'... | stackexchange/codereview |
I have a Live HTTP Streaming system working on a web server, and I want to see the stream on the iPhone. To achieve that, I instantiate a new MPMoviePlayerController and initialize it with the URL of the .m3u8 playlist, but I'm having some problems:
If I try it with an already generated playlist, with the streaming al... | stackexchange/codereview |
I don´t understand how to apply generic types in Scala correctly. I´ve managed to implement my own control structures ("unless", "ForEach"), but they are limited to "Int" types at the moment... Does anyone know how to change that implementation that works for generic types?!
The implementation doesn´t matter that much... | stackexchange/codereview |
I have one ListView which is showing me some data through an array (which is in another class and I'm accessing it through it's object).
Whenever I delete an element from the ListView through context menu, the list is not refreshing but the element is deleted from the array. How can I refresh the list to show this?
Co... | stackexchange/codereview |
I am trying to do the following in Java
give a directory path like "/a/b/c" I want to get a array of string as ["a", "b", "c"]. The code is as follows :
private static final String DIRECTORY_PATH_SEPARATOR = "/";
Iterator iter = testPaths.iterator();
String[] directories;
while( iter.hasN... | stackexchange/codereview |
I know there's an attribute to handle private setters but I kind of want this behavior as a default, is there a way to accomplish this? Except tweaking the source. Would be great if there was a setting for this.
| stackexchange/codereview |
I am creating xml file with my own tags and given values and that in form of String and again I decode that in XML.I have been said to
check that is code-decode XML is XML encoding safe.
Any idea how to check it? or any thing that make it sure that it is XML safe.
| stackexchange/codereview |
I want to create styled buttons using span tags, that act more or less like a <button> tag. Rapidly clicking the button shouldn't select any text inside or outside it's element, or be able to select text at all, and should also have a pointer cursor.
Assigning a plain <span> tag to a .click() event in jQuery will funct... | stackexchange/codereview |
I need a way to calculate:
(g^u * y^v) mod p
in Java.
I've found this algorithm for calculating (g^u) mod p:
int modulo(int a,int b,int c) {
long x=1
long y=a;
while(b > 0){
if(b%2 == 1){
x=(x*y)%c;
}
y = (y*y)%c; // squaring the base
b /= 2;
}
return (in... | stackexchange/codereview |
I am not able to get spring bean in the service layer(ServiceContext.getBean("beanName")). I am able to get the bean in the servlet though. What am I doing wrong in the following class?
package com.ekaplus.presentation.common;
import org.springframework.beans.BeansException;
import org.springframework.context.Applicat... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.