instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
given that a n-byte array can be represented as a 2*n character string using hex, is there a way to represent the n-byte array in less than 2*n characters?
for example, typically, an integer(int32) can be considered as a 4-byte array of data
| stackexchange/codereview |
How can I dynamically set the image size ratio depending on the returned image in raphael?
Here is some code to give you an idea:
var viewer = Raphael(0,0,scrWidth, scrHeight);
viewer.image(dynamicUrl, 140, 140,300, scaledHeight);
Thank you
| stackexchange/codereview |
Model has accepts_nested_attributes_for for the relation and the form is as follows:
= semantic_form_for @obj, :url => path do |f|
= f.inputs do
= f.input :name
= f.semantic_fields_for :photos do |p|
= p.inputs :desc
= f.buttons
The form works well and everything is fine. However, I would like to ... | stackexchange/codereview |
Is there a stand-alone visual (WYSIWYG) editor for WPF xaml files like the Visual Studio 2010 designer?
The VS2010 one crashes all the time and is very slow (there are lots of threads on XAML slowness in VS, but all the recommendations seem to point to editing the XML files with a text-based editor). I want a visual on... | stackexchange/codereview |
I'm using Moose to write an object module.
I currently have a few mandatory fields:
has ['length'] => (
is => 'ro',
isa => 'Int',
required => 1,
);
has ['is_verified'] => (
is => 'ro',
isa => 'Bool',
required => 1,
);
has ['url'] => (
is => 'ro',
isa =>... | stackexchange/codereview |
ih ave read about the technique to allow dynamic HTML stylesheets using PHP's preprocessor, however I was windering how safe this tecnique is, and if for any reason it is discouraged.
For example, instead of using typical:
<link rel="stylesheet" type="text/css" href="http:mysite.com/style.css/>
I could use:
<link re... | stackexchange/codereview |
Because they didn't make it easy enough already ;)
| stackexchange/codereview |
I have a draggable item, a MovieClip that calls startDrag() on itself when it is clicked, and another MovieClip on the stage.
I need the MovieClip to receive ROLL_OVER and ROLL_OUT events while the draggable MovieClip is being dragged over it, but the lower clip doesn't receive these messages while a clip is being drag... | stackexchange/codereview |
I'm using Python's xml.dom.minidom but I think the question is valid for any DOM parser.
My original file has a line like this at the beginning:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
This doesn't seem to be part of the dom, so when I do something like dom.toxml() the resulting string have not line a... | stackexchange/codereview |
I have a function which takes four optional arguments:
public function doSomething($x = null, $y = null, $a = null, $b = null) { }
However when I try to call this function and specify only $y for instance:
$object->doSomething($y=3)
It seems to ignore that I am setting $y as 3, and instead sets $x to be 3. Is there ... | stackexchange/codereview |
I have a t4 template which generates my poco classes. Everything is working fine.
Now, I want to inherit those classes from EntityObject (I want to know about EntityState sometimes) but when I do this, the relationships are always returning null (lazy loading not working). Any suggestions?
Here is a simple model
pu... | stackexchange/codereview |
In my experience, getting dates/times right when programming is always fraught with danger and difficulity.
Ruby and Rails have always eluded me on this one, if only due to the overwhelming number of options; I never have any idea which I should pick.
When I'm using Rails and looking at ActiveRecord datatypes I can fi... | stackexchange/codereview |
I am designing a blog/news website with a number of modules.
These modules need some settings saved in the database. Which of these two options is better:
Each variable gets saved in a single row. When they are needed, the row gets queried.
Variables of a single module get pickled on submitting the settings form (only... | stackexchange/codereview |
I am attemping to implement drag and drop that is not just an image being dragged around the screen but has interaction between dragged and droppedon object.
in short what I'm trying to achive is:
When i drag one 'source' object and drop it on a 'target' object the 'target' object recieves information about the'source... | stackexchange/codereview |
I have an array of serialized form information (collected using the serialize functionality in jQuery), and would like to add additional information to it. From what I've read it looks like I need to use the push function in Javascript. Unfortunately when I try this I get an error message saying that 'formData.push is... | stackexchange/codereview |
I have 5000 data item definition configuration which we are expecting to be designed like,
-- Name of the device
VARIABLE Name {
type=Float,
length=20,
<<few more definition here>>
}
-- The device running elapsed time since its last boot
VARIABLE BootTime {
type=Integer,
<<few more definition he... | stackexchange/codereview |
I'm getting the following error:
System property "mbrola.base" is undefined. Will not use MBROLA voices.
import javax.speech.*;
import javax.speech.synthesis.*;
import java.util.Locale;
public class HelloWorld
{
public static void main(String args[])
{
try
{
// Create a synthesizer for English
Synthesizer syn... | stackexchange/codereview |
I've recently added a timestamp column to a table in a linq-to-sql DBML file. It caused an InvalidOperationException when the entire web service loaded (no queries were even run).
The exception is:
[InvalidOperationException: System.Data.Linq.Binary cannot be serialized because it does not have a parameterless construc... | stackexchange/codereview |
hi i am new to java....moved from objective c (iphone background)
all we know that
here we cannot use multiple inheritance....
alternative way is interface......
my question is...... does inheritance through interfaces make any sense...because we have to define the code of function in our class.......only helping part ... | stackexchange/codereview |
I found problem when trying to retrieve specific name column that using syntax/statement/command using sql.
Example I have table 'dcparam' with name some column 'SELECT', 'INSERT', 'UPDATE' in database sqlserver.
Then I trying to select using query:
SELECT SELECT,INSERT,UPDATE FROM dcparam
Well it could be solve using... | stackexchange/codereview |
I'm seeking a method that tells me whether my code is running inside an AIR app or not. Something a lot less tacky than polling an AIR-only method. So far, searching the docs has been unfruitful. Anyone know of such a method?
| stackexchange/codereview |
I have a UIScrollView that is scrolling a fairly large UIView.
At certain times I want to limit the area the user can scroll around in. For example, I may only want to allow them to view the bottom quarter of the view.
I am able to limit the area by overriding scrollViewDidScroll and then calling setContentOffset if t... | stackexchange/codereview |
If you click the orange ORDER button at the top the #dimmer should cover the whole background and the form should appear at the top. (lightbox-like effect)
The problem is that in IE7 the #dimmer would appear at the top regardless of it's z-index.
In other browsers everything works nicely.
Link: http://fenelon.ru/proj... | stackexchange/codereview |
I have an windows forms application, with a form that holds 2 tabcontrols and a grid. I'd like to catch the pressing of esc key on any on this controls.
The question is : is it a simpler way to do that without subscribing to the keypress event on each control ?
Thanks!
| stackexchange/codereview |
I am implementing a google map on the contact page of this website:
http://www.vqt.ch/dev/?lang=fr&page=contact
The map displays in the rectangle on the top of the page. Everything is working fine on Firefox, but nothing is displayed on Safari & Chrome...
Here is the way I implement it:
<script src="http://maps.googl... | stackexchange/codereview |
I have a problem I have been trying to solve, but without any progress.
This is a summary of my code:
body {
background-image: url('img/bg_Body.gif');
margin: 0px 0px 0px 0px;
}
#container {
position: relative;
width: 880px;
margin-left: auto;
margin-right: auto;
top: 0px;
min-height: 100%... | stackexchange/codereview |
I have a problem with my python application, and I think it's related to the python garbage collection, even if I'm not sure...
The problem is that my application takes a lot of time to exit and to switch to one function to the next one.
In my application I handle very large dictionaries, containing thousands of large ... | stackexchange/codereview |
I'm trying to call a web service from a c# application, with sessionID.
In order to do this I need to set the "Domain" header in a cookie.
In Fiddler it looks like - "ASP.NET_SessionId=izdtd4tbzczsa3nlt5ujrbf5" (no domain is specified in the cookie).
The web service is at - "http://[some ip goes here]:8989/MyAPI.as... | stackexchange/codereview |
What I need is a small sized IDE+compiler for creating C++ applications that will interact with win32APIs... And It'd be grat for it to be capable of analizing headers I give it for code completion and connecting DLL's (not .Net DLLs but If it'd be capable ofcompiling C++ .NET projects I would just be super-duper glad)... | stackexchange/codereview |
I have a script that uses php and curl to auto logon to a site and perform some actions.
That bit is ok but I now want to send the script to other people so they can use it.
So I can create a batch file that executes the script.
The problem will be the users won't have php instaled on their computer and would proball... | stackexchange/codereview |
So I was having a debate with my co worker about WCF RIA Services, and exactly how much data we send to the client in a given request. Here is the setup:
We are creating a reporting application in Silverlight and grabbing data from a WCF RIA Service to populate various grids and charts. We have two differing ideas as t... | stackexchange/codereview |
I am just getting started to learn about Web Apps and deploying them to Tomcat. So I started with a sample web app project - made up of struts, hibernate, etc., etc.
The ANT build was successful. Also, was able to deploy the web app through an xml under Catalina/host. I am able to open the web site with no issues.
This... | stackexchange/codereview |
I'm a newbie with regular expressions and i need some help :).
I have this:
$url = '<img src="http://mi.url.com/iconos/oks/milan.gif" alt="Milan">';
$pattern = '/<img src="http:\/\/mi.url.com/iconos/oks/(.*)" alt="(.*)"\>/i';
preg_match_all($pattern, $url, $matches);
print_r($matches);
And I get this error:
Warning... | stackexchange/codereview |
Again I'm trying to wrap my head around Objective-C and Cocoa. So I've posted some code below. What I'm trying to do is basically use the function "th_brk_line" by entering text into a UITextField then displaying it into a UITextView once it has been processed by "th_brk_line". I've posted the external function definit... | stackexchange/codereview |
i know using xml parser ....
Is any another way we can get the data from web service.
if it is there please send links or example's or any documents.
| stackexchange/codereview |
I am handling tombstoning in Wp7 by dumping my ViewModel into the PhoneApplicationService state (see this link for more info).
My ViewModel (VM) inherits from the MVVM Light Toolkit (ViewModelBase) which has a protected parameterless constructor only.
This causes the serilization to fail with:
"The type 'GalaSoft.MvvmL... | stackexchange/codereview |
Well guys, here i am. In three days i couldn't resolve this problem.
(I'm italian, sorry for my english).
Shortly. I have a panel on which there is a JTable that show a mp3 list. Then another panel whith a JComboBox (with it i can choose the type of filter), a JTextField (where i write what i want to search/filter), an... | stackexchange/codereview |
I've changed the protocol for my flex app from https to http and flashplayer still wants to download the crossdomain.xml using https though with the port for http.
the app is accessed at http://domain01:8080/flex and it wants to get https:..samedomain..:8080/crossdomain.xml (at https:..samedomain..no_port/flex it works... | stackexchange/codereview |
I develope on Windows at home and send my changes to the customer. Customer do not want to have any SCM installed, so I need to send files I've changed from last iteration.
Currently I'm using Subversion with some kind of the automation by self-written batch, that is a mix of windows and GNU/unix utilities. The script ... | stackexchange/codereview |
I am working on a project that is developing a webapp with a 100% Flex UI that talks via Blaze to a Java backend running on an application server. The team has already created many unit tests, but have only created integration tests for the persistence module. Now we are wondering the best way to integration test the... | stackexchange/codereview |
I'm trying to come up with an unobtrusive way to to display minor error messages to a user. So I've added a statusbar to my form,
<StatusBar Margin="0,288,0,0" Name="statusBar" Height="23" VerticalAlignment="Bottom">
<TextBlock Name="statusText">Ready.</TextBlock>
</StatusBar>
And then when they click ... | stackexchange/codereview |
I'm using a CATiledLayer for the visualisation of data. By default the drawLayer function gets a transposed and scaled context, which allow the drawing code to be agnostic of the zoom-level and the tile that's being requested.
However, I would like to use the zoom functionality to change the horizontal range of the dat... | stackexchange/codereview |
i am working on an application that send and get data from internet each 5 min
if i press home key and my app goes to background... it will still continue sending/getting data from internet? or i have to do something special?
thanks
| stackexchange/codereview |
It does not happen all the time but sometimes I find stuff like this :
>dir /SF target\.svn
…\target\Zeiterfassung-web\WEB-INF\.svn\.
…\target\Zeiterfassung-web\WEB-INF\.svn\..
…\target\Zeiterfassung-web\WEB-INF\.svn\lock
How could this happen as Maven as is supposed to ignore the .svn directories by default?
Can I e... | stackexchange/codereview |
I work on an xslt stylesheet, and I should receive as parameter two additional XML. I get an error when I use the node-set() method (from namespace ms, microsoft). The contents of the XML is correct. The parameters are send with classic ASP.
Here's the header and the call in xslt:
<?xml version="1.0" encoding="utf-8"?>... | stackexchange/codereview |
I have to gather data from a sql database to populate a ning map i am creating. I only need data from one table in the database. The table has company data in it, name country state, email, website, etc.
What is the best way to do this? I am doing my bing map using .net so i was thinking of just gathering all my dat... | stackexchange/codereview |
I don't want to use the "Inspect Element" menu item to show the Webkit Inspector.
How can i invoke him via Javascript?
| stackexchange/codereview |
I have a complex LINQ query (using LINQ 2 EF) that can return duplicate results and I'm thus using the .Distinct() method to avoid duplicates. Here's the skeleton:
var subQuery1 = // one query...
var subQuery2 = // another query...
var result = subQuery1.Distinct().Union( subQuery2.Distinct() ).ToArray();
Each of the... | stackexchange/codereview |
Is there any way/reason to keep your js/jQuery ouside public_html? Are there security benefits?
| stackexchange/codereview |
I keep track of the original size of the files that I'm compressing using .Net's GZipStream class, and it seems like the file that I thought I was compressing has increased in size. Is that possible?
This is how I'm doing the compression:
Byte[] bytes = GetFileBytes(file);
using (FileStream fileStream = new FileStream... | stackexchange/codereview |
I have a Rails app set up so that when a user uploads an image, it is sent directly to Amazon's S3. I have to specify a redirect address in the form code. After the image is finished uploading, Amazon redirects the user to www.redirect_address.com/?bucket=[BUCKET]&key=[KEY]&etag=[ETAG]
I need the bucket and key info to... | stackexchange/codereview |
Is Demo a POD type in C++03?
struct Demo
{
private:
int x;
int y;
};
C++03, §9p4:
A POD-struct is an aggregate class that has no non-static data members of type non-POD-struct, non-POD-union (or array of such types) or reference, and has no user-defined copy assignment operator and no user-defined ... | stackexchange/codereview |
I need help writing actionScript code. I'm not an actionScript developer and have been trying to get this to work for hours.
The requirement is a script that receives a parameter via javascript. The parameter is a url for a remote html web page.
The script needs to load the contents of that html page into a string vari... | stackexchange/codereview |
How can I open files, which are embedded in a resource file, like a file on the harddisk (with an absolute path) ?
| stackexchange/codereview |
I want to redirect some urls with id = n to id = n + 1000 (where n is a variable). After searching on the internet I found out that I can do this using a prg type RewriteMap directive.
However, I ran into some trouble getting it to work. The code I am using to test using a custom RewriteMap is included below.
This is m... | stackexchange/codereview |
This one has me rather confused. I've written a query which runs fine from my development client but fails on the production client with error "ORA-01652: unable to extend temp segment by....". In both instances, the database and user is the same. On my development machine (MS Windows) I've got SQL*PLUS (Release 9.0.1.... | stackexchange/codereview |
I haven't found all the answer to my current problem.
Here is the root of the site:
cache
img
display.php
admin.php
What I need is to block all the direct access of the files and allow only access via url formatted like that:
1 ht*p://sub.domain.com/image/param/size/folder/img.jpg (param, size, folder, img are parame... | stackexchange/codereview |
Using Google's Chrome Developer Tools, I sometimes run audits on my code to see how it is coming together. One of the suggestions those tools always make is "Removed Unused CSS Rules". Clicking on the arrow then shows a usually huge list of the CSS rules that are not being used by the current page.
Is there a way to se... | stackexchange/codereview |
I was going through the Programming Interviews Exposed book. There's a code given for inserting an element at the front of linked lists.
bool insertInFront( IntElement **head, int data ){
IntElement *newElem = new IntElement;
if( !newElem ) return false;
newElem->data = data;
*head = newElem;
retur... | stackexchange/codereview |
I've got list items where a rollover image exceeds the bounds of the list item. Is this possible without the image being clipped?
List item rollover graphic:
Result:
Current css:
ul.nav a, ul.nav a:visited {
padding: 5px 5px 5px 15px;
display: block;
clip:none;
}
ul.nav a:hover, ul.nav a:active, ul.nav ... | stackexchange/codereview |
i am finding some example source codes for the MSIEmbeddedChainer & MSIEmbeddedUI. wix v3.0 has <EmbeddedChainer> command, but there's no info of how to use (or probably incomplete implementation). i want to chain my msis. however, there are very little details to this topic. msi 4.5 has very nice features with MSIEmbe... | stackexchange/codereview |
I've been attempting to teach myself Ruby over the past while and I've been trying to get something like the following to work but I'm getting the following error...
file.rb:44:infunc': undefined local variable or method number' #<classname:0xb75d7840 @array=[]> (NameError)
The code that's giving me this error is...
c... | stackexchange/codereview |
I'm getting an error when I try to create a method with the following signature:
public List<T> CreateList(DataSet dataset)
Error 1 The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?)
Does anyone know what I'm doing wrong?
Thanks in advance!
| stackexchange/codereview |
Erlang-sqlite3 uses a port driver to connect with the SQLite database, and receives messages from the port:
wait_result(Port) ->
receive
{Port, Reply} ->
% io:format("Reply: ~p~n", [Reply]),
Reply;
{error, Reason} ->
io:format("Error: ~p~n", [Reason]),
{error, Reason};
_Else ->
... | stackexchange/codereview |
I'm trying to compile the following code using the MPLAB C18 v3.36 compiler.
Compiler returns a syntax error on 'char rij;'.
But when i put char rij; a line earlier (before TRISA = ...), it compiles ...
void setup(void)
{
TRISD = 0b00000000;
TRISA = 0b00000000;
char rij;
for (rij = 0; rij<ROWS; rij++)
{
red_byte... | stackexchange/codereview |
Consider this situation...You're just making changes to few files at once. The code isn't completed yet and the phone is ringing... Then you have to close PhpStorm, turn off your computer and hurry because something important happened.
Then after one week you'll come back, launch your phpstorm and notice that everythi... | stackexchange/codereview |
For example, if I'm decorating a method like so
def my_decorator(fn):
# Do something based on the class that fn is a method of
def decorated_fn(*args, **kwargs):
fn(*args, **kwargs)
return decorated_fn
class MyClass(object):
@my_decorator
def my_method(self, param):
print "foo"
... | stackexchange/codereview |
this
en.wikipedia.org/wiki/Hot_swapping#cite_note-1
says that VS can do it with the help of its debugger. Does gdb provide a similar functionality ?
this is the closest i could find, but doesn't seem to be ready to be used:
http://www.aitdspace.gr/xmlui/handle/123456789/219
dlopen/dlsym/dlclose are also close, but will... | stackexchange/codereview |
I have a need in my app to allow users to bookmark a post. They should only be able to create one bookmark per post. I've set up my polymorphic association like so:
class Post < ActiveRecord::Base
has_many :bookmarks, :as => :bookmarkable
end
class Bookmark < ActiveRecord::Base
belongs_to :bookmarkable, :polymor... | stackexchange/codereview |
Does NewExpression.Members inform the LINQ runtime how to map a type's constructor parameters to its properties? And if so, is there an attribute to set the mapping? I'm imagining something like this:
public class Customer
{
public Customer(int id, string name)
{
Id = id;
Name = name;
}
[CtorParam("id"... | stackexchange/codereview |
How can I use a regular expression to get words that start with ! ? For example !Test.
I tried this but it doesn't give any matches:
@"\B\!\d+\b"
Although it did work when I replaced the ! with $.
| stackexchange/codereview |
I am trying to add the alias ll = "ls -l", and I am wondering how can I load it every time I login to linux.
| stackexchange/codereview |
I'm new to objective C, I have a NSMutableArray with 3 objects in it, then I try to print the retainCount of the array. Why the final retainCount return -1? Thanks
NSLog(@"myArray has retain count of %d", [myArray retainCount]);
[myArray release];
NSLog(@"myArray has retain count of %d", [myArray retainCount]);
Re... | stackexchange/codereview |
I have a UITableView which sometimes just stops responding when its been loaded. I have no clue why this happens and I was wondering whether it could be the layouting of the cells which I do in cellForRowAtIndexPath, because my content is dynamic and therefore the layout of the subviews has to be adopted each time.
Is... | stackexchange/codereview |
I have 3 multiple selects. In the first Select1(left) I load a group of modules. In the 3rd Select3(right) I load another group of modules. The user can select from the Left and hit an add to remove the item from the Left and append it to the Select2(Middle). The user can do the same with the Right, select items hit a ... | stackexchange/codereview |
when I at company , I have to export 3 enviroment variables, http_proxy,https_proxy,all_proxy,
I wrote a file ~/bin/setproxy like this
#! /bin/sh
export http_proxy=http://......:8888
export https_proxy=http://......:8888
export all_proxy=http://......:8888
but when I execute this file at bash, then use env | grep http... | stackexchange/codereview |
I have a JSON return that I'm trying to save into a NSDictionary, However, Since there are spaces in the data being returned, the Dictionary won't save this array because of the quote being included. Is there a way to parse the SBJSON to remove the double quotes prior to saving to the rowsArray?
rowsArray: {
Rows = ... | stackexchange/codereview |
I use vectors a lot in my programming, and generally to traverse a vector for an existing value I use std::find as in:
std::vector<int> foo;
std::vector<int>::iterator pos( std::find( foo.begin(), foo.end(), bar );
This is a real bore. So I went to deriving a template from std::vector to provide a find method:
templat... | stackexchange/codereview |
I'm trying to use helpers to handle processes that involve multiple models. Is this okay in terms of best practices?
| stackexchange/codereview |
I'm currently designing an MDI application (a custom CRM) in .net 4.0 and i'm starting to dislike the whole interface simply because there's no real way to track which windows are open or closed and it'll probably lead to a very confusing interface.
What is the best way to avoid this?
- Should i implement a taskbar to ... | stackexchange/codereview |
I am HTML/CSS/jQuery coder. And I need to develop the website, which will be "zoomed-out" or "fitted" to 320x480 (frequently used resolution) Android mobile device screen.
Or even this solutions should check my screen resolution and connect the right CSS for that.
Somewhere I met that there is android.js file, which co... | stackexchange/codereview |
I've got some trouble with a git setup I wanted to use in our company.
I set up a git "server" with the main code repository on a ubuntu hardy machine with git 1.5.4.3.
I'm new to git and set up this repository step by step with tutorial.
git init
git add .
git commit -m "initial commit"
Then I set up a client (Win XP... | stackexchange/codereview |
I cannot use ToList<Tresult>() extension method. The code I use is,
return this.Semesters.ToList<ISemester>()
'Semesters' in above code is an EntityCollection.
These using directives are already present,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Still I cannot Compile as ... | stackexchange/codereview |
My problem is a python/django mix. I have a form model that will display some fields. Basing on some parameter of this model, the data sent to metaclass creating this object should differ. But how can I reach this parameter when inside the body of Meta ? Should I use some global var instead of object parameter (as it i... | stackexchange/codereview |
I am accessing a web service and getting this error when trying to connect( web service is XMLRPC and I am using wordpress xmlrpc source code for request and handling repsonse):
Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending t... | stackexchange/codereview |
Is there a way to probe the ICU library for all UChar's representing currency symbols supported by the library?
My current solution is iterating through all locales and for each locale, doing something like this:
const DecimalFormatSymbols *formatSymbols = formatter->getDecimalFormatSymbols();
UnicodeString currencySym... | stackexchange/codereview |
I want to send an email with a template like this.
{% extends "base.html" %}
{% block content %}
<h2>Invoice Details</h2>
<div id="horizontalnav">
<a href="/index/add_invoice">Add an Invoice</a>
<a href="/index/work_orders">Add a Work Order</a>
<a href="/index/add_payment">Add Payment</a>
</div>
<ul STYLE="borde... | stackexchange/codereview |
Occasionally we're seeing an error from ASP pages:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[MySQL][MyODBC 5.00.11][MySQL] 2006 MySQL server has gone away
We're handling it the best way we can in ASP but it still crops up. I think it's more to do with the MySQL ODBC driver than the ASP code. We nev... | stackexchange/codereview |
In this question I found the following, but there are two errors which I can not solve.
The error is mentioned with the statement causing it as ***//error is***.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Reflec... | stackexchange/codereview |
given a string literal in c++ i have to remove toxic words like stupid etc by ###.
Suppose i have my toxic words in an array like
char[][]={"...",".."...and more...}
and my string is like
char str[]="......."
any particular library func that could help me here.
thanks in advance for help
| stackexchange/codereview |
I'm thinking so, because the upper bound would be the 2^n, and given that these are both finite machines, the intersection for both the n-state NFA and the DFA with 2^n or less states will be valid.
Am I wrong here?
| stackexchange/codereview |
I have JRE 6 in my PC (Windows XP) but when I compile a program in the command prompt it shows javac is not recognised as internal or external command. Which software is needed to compile a Java program?
| stackexchange/codereview |
I would like to enable tabbing for my application. And so far it seems I could use a tab control. The problem with it is, though, that it creates a border around the client area. What I want, is more like a FireFox tab control, that only takes up a row in the application and doesn't create any frames around client area... | stackexchange/codereview |
I want to dynamically assign width to a label depending upon the text length to be displayed. The labels are it self being added on uiview. I am using following code but still i am getting label with shorter width.
- (id)initWithFrame:(CGRect)frame OrangeText:(NSString*)orange WhiteText:(NSString*)white {
if ((self = [... | stackexchange/codereview |
I get a Google Picasa web albums' atom data through Ajax using jQuery. This atom data looks like this:
http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_protocol.html#ListAlbums
When I write
$(xhr).find('entry id').eq(0).html();
it is OK.
But
$(xhr).find('entry title').eq(0).html();
does not select
The... | stackexchange/codereview |
I have recently joined a company that using typed datasets as their 'Dto'. I think they are really rubbish and want to change it to something a little more modern and user friendly. So, I am trying to update the code so that the data layer is more generic, i.e. using interfaces etc, the other guy does not know what a D... | stackexchange/codereview |
This doesn't work with IE7. Does anybody know a work around?
<select>
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes" onclick="alert(1);">Mercedes</option>
<option value="au... | stackexchange/codereview |
I am having issues setting up Google Analytics for my iPhone Application. I have a website that I have sucesfully been using Google Analytics on, and so I am pretty familiar with how it works.
I set up a new fake domain with the following formation: myapp.mysite.com. I got the UA ID that was made and used that as shown... | stackexchange/codereview |
Is this possible? I've tried visibility:hidden/visibility:visible and display:none/display:block on the classes to switch between, but both result in the element popping in at the end.
| stackexchange/codereview |
In every game I make with pygame it won't register any more then 2 simultaneous key presses. (e.g. if I'm holding up and left to move it won't let me press space to fire.) Is this software? Hardware? Is there anything I can do about it?
EDIT: I use a Digital Media Keyboard 3000 on one computer and it does pretty goo... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.