instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
In a weekend geek seminar I attended, several instructors extolled the virtues of Javascript. I've used Javascript to some extent, but their enthusiasm caused me to want to step a little closer.
I've learned bits-and-pieces about Rhino & SpiderMonkey. I know about server-side scripting & the restrictions placed on loca... | stackexchange/codereview |
what should i look for to start writing a software to design flow charts in delphi?
is there any example out there? any library or code sample?
thanks;
| stackexchange/codereview |
I want to write a C-program that gets some strings from input. I want to save them in a MySQL database.
For security I would like to check, if the input is a (possible) UTF-8 string, count the number of characters and also use some regular expressions to validate the input.
Is there a library that offers me that functi... | stackexchange/codereview |
I've got a WCF client and service. The service is configured to use a certificate for encryption. This is all working fine. We're using self-signed certificates for testing.
Except that one of my QA guys has deleted the certificate from his client PC and he can still connect to the service.
I've looked in CERTMGR.MSC a... | stackexchange/codereview |
Apparently if the columns size is more than 70 the field get's displayed with a size where you cannot even type a single character?
I'm talking about:
new JTextField(70);
| stackexchange/codereview |
Fast to explain, but I can't get it to work:
In this simple code, the function force_download simply doesn't make any output.
$this->load->helper('download');
$data = file_get_contents("modulos/".$filename); // Read the file's contents
force_download($filename, $data);
echo $data."/".$filename;
Here I just get a white... | stackexchange/codereview |
I am trying to do something of this sort with no luck.
Composite c = new Composite(shell);
JFrame frame = SWT_AWT.new_Frame(c);
GC gc = new GC(c);
c.fillRectangle(0, 0, 100, 100);
code runs fine but I can't get the rectangle to show on top. I think the frame hides it. Is there a way to put the GC drawings on top?
Thank... | stackexchange/codereview |
I'm curious if there's any way to do a query in Django that's not a "SELECT * FROM..." underneath. I'm trying to do a "SELECT DISTINCT columnName FROM ..." instead.
Specifically I have a model that looks like:
class ProductOrder(models.Model):
Product = models.CharField(max_length=20, promary_key=True)
Category ... | stackexchange/codereview |
So I'm attempting to figure out where my cross-compatibility issue is - From what I can tell, Firefox and Safari have been working great, however Internet Explorer (surprise?) has been giving me tons of issues. Take a look at the site below:
https://secure.promptpass.com/index.php?clinic=1
For some reason, the backgro... | stackexchange/codereview |
I'm trying to come up with a regex to validate a double value. I will admit that I am crap at regex and really should buy a book... Anyway the range is large so here goes:
.01 to 99.99, is the range, with the leading '00' being optional, as is the '.' and the same for the trailing '.00'. So the user could type in 0.... | stackexchange/codereview |
I am using visual studio 2010. I have set a breakpoint and added a watch on a complex object with very deep hierarchy. I was wondering if there was any quick way to search this object tree for a particular string I want. Either as a property/value/method etc. In other words, I just want to say "Does this object have an... | stackexchange/codereview |
how add flash through php?
| stackexchange/codereview |
I'm successfully generating my textures using GLUtils.texImage2D,
but when I use the textures generated I get problems with my alpha: they are darker than wanted.
after having checked several things I finally got the the conclusions that the problem comes from GLUtils.texImage2D(GL10.GL_TEXTURE_2D, level, bmp, 0);
I cr... | stackexchange/codereview |
Whenever I start working on a new branch, I need to re-enable subversion integration (Version Control --> Enable Version Control Integration).
This is a fresh installation of IntelliJ, and I don't remember this phenomenon in previous times I installed it. Am I missing some global configuration?
| stackexchange/codereview |
How do i add the php for loop script to generate the content on the email (pick up from Database) as highlighted below?
$message = "
<html>
<head>
<title>Your's Weekly Newsletter </title>
</head>
<body>
<p>Hi $to,</p>
<p>Here are the highlight of the deals this week:</p>
<br />
<p> **<?php
for ($i=0;$i<=$totalC... | stackexchange/codereview |
I have this piece of code that adds a BOM UTF-8 to an outputstream . I need to add the BOM since Excel does not identify the UTF-8 encoding implicitly and hence french characters are shown as weird characters in excel .
try {
response.setContentType(getContentType(request, response));
response... | stackexchange/codereview |
I am working on a script to download and process historical stock prices.
When I used urllib.request.urlopen I got a strange prefix of text in every file (b'\xef\xbb\xbf) that was not present when I used urllib.request.urlretrieve, nor present when I typed the url into a browser (Firefox).
So I have an answer but I d... | stackexchange/codereview |
I'm new to Drupal, and the Drupal website is currently down, ahh!
I need to know how to add a region to a custom node template. I've tried adding the following function to template.php in the my_theme directory:
function my_theme_preprocess_node(&$vars, $hook) {
$vars['usersummary'] = theme('blocks', 'usersummary');
... | stackexchange/codereview |
I'm trying to serialize the following object:
[XmlRoot("book")]
public class Book
{
#region Properties
[XmlAttribute("isbn-10")]
public string Isbn10 { get; set; }
[XmlAttribute("isbn-13")]
public string Isbn13 { get; set; }
[XmlAttribute("title")]
public string Title { get; set; }
[XmlA... | stackexchange/codereview |
Sync of Employees or any other AD group and SharePoint 2007
Currently there is an employee group in both AD and SharePoint
We need a batch script, or workflow, or anything that keeps these groups synced
Should be a one way sync with Active Directory being the Master and SharePoint being the copy
It should sync automa... | stackexchange/codereview |
I have a project where where i have one ViewController and two xib files. I have two buttons on a view which is shown in the viewcontroller. Both buttons are active and returning a NSLog so i know they are working. Basically I would like to load a xib when the button is pressed. I have a view setup in each xib.
Thanks... | stackexchange/codereview |
namespace ConsoleApplication8
{
public class Foo<T>
where T : IFoo, IFoo2
{
public Foo(T fooThing)
{
}
}
public interface IFoo
{
string Name {get;}
}
public interface IFoo2
{
string Name2 {get;}
}
}
The Template Parameter Collection ... | stackexchange/codereview |
i would like to know which is the best way to inform the user about his mistakes when entering data...
Show messagebox describing the first found error?
red the textboxes etc?
showing messages on the form(avoid messageboxes)...
| stackexchange/codereview |
I have a following element (Login box):
<input type="text" style="font-family: Verdana; font-size: 11px; width: 180px;" id="ctl00_Content_ctl00_Login2_UserName" maxlength="50" name="ctl00$Content$ctl00$Login2$UserName">
Because I have a Firebug, if I right click on on the element it gives me XPath address (//*[@id="ct... | stackexchange/codereview |
Is there a way to have a class collection of inherited types be initialized?
For example, here is my code:
Public Class CamryCar
Property Name As String = "Camry"
Property Color As String
End Class
Public Class RedCamry
Inherits CamryCar
Sub New()
MyBase.New()
Color = "Red"
End Sub
... | stackexchange/codereview |
Currently, my understanding of jQuery BBQ is it requires me to use an href like href="#/stufff/123/13"
Problem with that is it requires me to add a # to all my URLs throughout the site which then means non-javascript browsers can't use the site...
My question, is there a way I can simply add a class to all HREFs I wan... | stackexchange/codereview |
Consider the following Html file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>test</title>
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript">
alert('' +
... | stackexchange/codereview |
I tried to get Cobertura running inside my ant script. All is successfull (source code building, junit tests, cobertura reports (xml / html); but in html reports, the code coverage is always at 0% ...
Ant Script : make-instrument
<!-- Make instrument for Cobertura engine -->
<target name="make-instrument">
<!-- R... | stackexchange/codereview |
I've written a nice priority queue class,
class ConcurrentPriorityQueue<T>
: IProducerConsumerCollection<KeyValuePair<int,T>>, INotifyCollectionChanged
where T : INotifyPropertyChanged
which I now want to wrap in a in a BlockingCollection,
Queue = new ConcurrentPriorityQueue<DownloadItem>(10);
Buffer = new B... | stackexchange/codereview |
I'm not a pro with regexp and especially in this specific context. Any idea how to use a function to do a RegExp Replace and then calling it from the query in Microsoft Access?
By the way, this query oddly enough doesn't work fully and maybe it's why this could use regexp.
The idea is to match the three fields in the ... | stackexchange/codereview |
I have a question. I have a class of Cars that I need to display in a simpli-ish string if they will be sold or not base on their number.
So like this:
Public Class Car
Property Index As Integer
Property Sell As Boolean
End Class
Public Class Cars
Property Vehicles As New List(Of Car) From {
... | stackexchange/codereview |
I just found out that mediawiki does not use move_uploaded_fileDocs. So how does mediawiki upload file to the database?
| stackexchange/codereview |
If I plan to implement 100 objects on stage to be listen to mouse and keyboard input, is using "function" call responsive enough? How good does eventlistner work?
| stackexchange/codereview |
I have a dropdownlist that controls the contents of 3 gridview controls. These are used in a webpart. However, every time the selectedindexchanged method of the dropdownlist fires an event, the contents of the dependent gridviews adds another rendering of a gridview. Hence, it doubles and even triples the contents of t... | stackexchange/codereview |
i have the code:
<%: Html.DropDownListFor(
model => model.CompanyName,
new SelectList(ViewData["ActiveCompanies"] as IEnumerable,
"Id", "Name"))
%>
the list is being populated properally with the names etc, but the selected item name is not being bound to the Model.CompanyName (it would be fine ... | stackexchange/codereview |
I'd like to fake a namespace in Javascript. This can be done as follows:
var cars = {};
cars.car = function() {
...
}
cars.car.prototype = {
drive: function() {
...
}
}
Works fine. My question, however, is if I can directly fill the whole namespace with JSON, like this:
var cars = {
car: functi... | stackexchange/codereview |
Suppose
str = ABCorp(sap234) #$% rain-drop(docman8) 093 (jac3k(turtle))
Now how do i derive th followin from the above string:
String[] one = {"ABCorp", "rain-drop", "jac3k"};
String[] two = {"sap234","docman8","turtle"};
Any thoughts on this one?
| stackexchange/codereview |
I am looking for advice regarding high performance multi-dimensional array libraries/classes for C++. What I really need is:
the ability to dynamically allocate arrays with a size determined at run-time
the ability to access and modify single array values (fast)
to be able to use simple array arithmetic such as array1... | stackexchange/codereview |
Where would I even start? I doubt that the save file formats are published .. or ... didn't MS move to XML? Or can you still save MS proprietary stuff?
Would it be easier to implement a stand-alone program, or somehow integrate it with MS office?
I am just curious. Looking for a new hobby project, but I think that it c... | stackexchange/codereview |
Pardon my excruciatingly simple question, but I'm quite new to the world of Lift (and Scala, for that matter).
I'm following the "Getting Started" tutorial on the Lift website: http://liftweb.net/getting_started
I've got it up and running but I'd like to make a quick modification to the app so that every time I press e... | stackexchange/codereview |
I'd prefer not to change the way anArray is designed because it is also used elsewhere as a dataSource for a UITableView. The odd number values are "user names", and the even number values are their matching "dates". (The "pairs" must remain together.)
How would I sort "by user name"?
How would I sort "by date"?
Sho... | stackexchange/codereview |
I'm working on a web app that can allow the user to input some code, and it will be compiled and executed, and they can see the result. I'm coding the app in PHP and I need a way to ensure that if the user inputs some harmful code (this example is PHP), it can't execute and destroy my server. Example:
<?php
shell_exec(... | stackexchange/codereview |
I am writing a program in scheme, that uses recursion to walk through the list, and stop at certain pointer, when counter reaches a certain number N
(define (functX N lst)
(define counter 1)
(cond
[(empty? lst) empty]
[(negative? N) empty]
[(< (length lst) N) empty]
[(<= counter N) ((set! counter (+... | stackexchange/codereview |
I have a very strange issue, that I'm hoping someone here can help me with. I have an RSS icon in my wordpress header.php and it works perfectly fine when on the front page but when you visit another page such as, the About page, the image is broken.
I'm not entirely sure what the issue is as I don't have a ton of exp... | stackexchange/codereview |
We want to have an ajax call execute every 100 seconds that requests a boolean value from the database that tells the client side if the user is still authorized to ask questions.
I'm afraid that even though this is a very small amount of data being requested that it might be too much for the database..
Worst case scen... | stackexchange/codereview |
This is possible in Symfony with some routing magic but in Zend I'm not sure how to do this.
I want to make this url
http://example.com/unit/view/id/[15]
look like this instead
http://example.com/unit/[15]/view/[name]
where unit/view is the controller/action and id/15 is parameter key=>value, and [name] is the name ... | stackexchange/codereview |
I have created a sharepoint custom list. List items contains various fields like name, email etc.
I want one field to be editable. Other fields should be read only.
Could anyone point in the right direction.
The other question is,
I am entering the data into sharepoint custom list thru the form created in sharepoint de... | stackexchange/codereview |
why is the use of static blocks considered inefficient programming practice?
| stackexchange/codereview |
Does anyone know of an SSAS specific tool that compares SSAS databases? Not their data, just schema and maybe partition definitions. When I say tool - something that knows about SSAS and has that business knowledge built into it.
| stackexchange/codereview |
I'm writing a graphic design application for Android where the user can add several images to a document, where each image is stored as a Bitmap object. Each bitmap has roughly a dimension of 800x400 pixels and uses ARGB8888 pixel format (i.e. ~1.5Mb each).
I'm aware that most of the first generation Android devices ha... | stackexchange/codereview |
when I run any rails command like rails s I get the following error:
Could not find diff-lcs-1.1.2 in any of the sources
Try running bundle install.
However, I already installed diff-lcs.
bundle show diff-lcs
/opt/local/lib/ruby1.9/gems/1.9.1/gems/diff-lcs-1.1.2
I also see diff-lcs when I do a gem list command
My G... | stackexchange/codereview |
I copied the exact codes from my textbook and I have the following errors.
Error 3 'txtOutput' is not declared. It may be inaccessible due to its protection level. C:\Users\Woong-Sup\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 13 17 WindowsApplication1
Error 4 'txtOutput' is not decla... | stackexchange/codereview |
I have an application that works with database (PHP + MySQL).
One of the columns in the database table is of type ENUM('VALUE1','VALUE2').
Is that possible to add safely VALUE3 to the ENUM without damaging the data in the table ?
| stackexchange/codereview |
I've searched the questions but can't find an answer. I need a pattern that, used with php preg_match function, only match strings that does not contains 3 or more consecutive digits, e.g.:
rrfefzef => TRUE
rrfef12ze1 => TRUE
rrfef1zef1 => TRUE
rrf12efzef231 => FALSE
rrf2341efzef231 => FALSE
So far,... | stackexchange/codereview |
When I fire the following query, I get the results I require grouped by event.id:
SELECT events.id AS id,events.name AS event,categories.name AS categories
FROM events,categories,event_dates,event_categories
WHERE events.preview = 0 AND event_dates.start_date > DATE(NOW())
... | stackexchange/codereview |
I got in this argument at work. My coworker told that just something that generates machine code is a compiler. Then (after I mentioned the Google Closure Compiler) he changed his mind: apparently, for him, a compiler is something that generates optimized source code in any language (which doesn't make sense, since opt... | stackexchange/codereview |
How do I use the next button (the done button) in the bottom left of the keyboard on the iPhone?
| stackexchange/codereview |
I have two combo boxes.
Let's say the first one had values A, B, C
And when I select A the second one should show me options 1, 2, and 3
If I select B, then the second one should have the options 4, 5, and 6
and C should make the second combo box have the options 96, 98, 100.
Is there a way to do this via jQuery??
Than... | stackexchange/codereview |
I have a curious problem that I hope is something stupid I overlooked.
I am getting an error that usually occurs when there is a missing column in a mysql table, or a misspelled php variable: "Unknown column 'Bob' in 'field list'"...
Except 'Bob' is not the name of a column, its the VALUE I am trying to assign to the ... | stackexchange/codereview |
I've got a custom image browser view with IKImageBrowserCell subclass where I've added a little sign graphic that I would like to animate on some occasions.
It's kind of like the "i" sign on Panic's Coda Sites view (which I'm guessing is an ImageBrowserView customized.. right?). On Coda's sites view, if you hover on a ... | stackexchange/codereview |
Possible Duplicate:
Where does Android emulator store SQLite database?
I am doing database application in android.i need to know where the data base is store,whether in Emulator or in our application.
Thanks in advance...
| stackexchange/codereview |
I have what I think is a simple problem.
I have three views in my app, View1, View2, View3.
I know how to go from View1 to View2, and from View2 to View3, but how do I go from View3 back to View1?
I am using the following method in the View1ViewController.m to go from View1 to View2:
[self presentModalViewController:vi... | stackexchange/codereview |
Looking for a minimal, futex-based implementation of a single-writer/multiple-readers lock requiring no space overhead beyond a single 4-byte futex state variable.
Some background: I have an application which will embed a lock within each of tens to hundreds of millions of small objects. Because of the very fine grain... | stackexchange/codereview |
I'm using Elixir as my ORM for a MySQL database, I'm having problems writing an update statement, for instance:
"update products set price=NULL where id>100"
This is my Elixir clsee
class Product(Entity):
using_options(tablename='model_product')
name = Field(Unicode(200))
en_name ... | stackexchange/codereview |
I use Framework Entity 4 in my project.
I would like to create a function that will return an Expression
Nothing seem to work. I get this Internal .Net Framework Data Provider error 1025.
Here is my Expression Method
public Expression<Func<SupplierTypeText, bool>> GetLmbLang()
{
return (p => p.LangID == ... | stackexchange/codereview |
So here is the problem. When a user logs out of my website, they can still hit the back button and continue using the site. To keep track of whether the user is logged in or not, I created a session attribute "isActive". The attribute is set to true when the user logs in, and is (redundantly) removed right before the s... | stackexchange/codereview |
I've been checking out Cappuccino and Atlas lately, and they seem to have abstracted relative and absolute positioning away into something that just "works". I was wondering for those familiar with the project - how did they do this?
I've always thought that relative and absolute positioning is kind of an obscure way o... | stackexchange/codereview |
I need to recursively iterate over an array in a view and was wondering what are some best practices for this type of situation? I'm trying to avoid building my desired html output in the controller or model.
FYI I'm using the framework codeigniter.
| stackexchange/codereview |
If I want to open a new Window, without needing any immediate information, is it ok to open it this way? I know with Dialogs I should use a service, but if I don't need any information back, it is quite troublesome and messy to add a new function into the service just to open a window?
// in ShellViewModel
public ICom... | stackexchange/codereview |
The codes:
String[] logs={"a","b","c"};
int errors=0;
for(String str:logs){
try{
LogParser.parse(str);
} catch(ParseException e){
error++;
continue; // Seems that, this two line codes are not reached.
}
}
In the above codes, the LogParser used to parse the tomcat log of combined pattern,when get the... | stackexchange/codereview |
I'm new at this. Check out Google News... notice the left nav when scrolling up and down the page.
See how is scrolls for a little bit but then sticks to the top of the page before it goes away?
Any ideas on how that is done? Can jQuery and CSS replicate that? If so, any tips?
| stackexchange/codereview |
I have the following dropdown box
<form name="myform" method="POST" ACTION="songs.php">
Select Category: <select id="sel" name="categories" onchange="document.myform.submit()">
And all the options follow after. When the user makes a selection, the category is brought up below using PHP and MYSQl based on the selection... | stackexchange/codereview |
Well I have the live preview of text going using jQuery.
http://jsbin.com/ezuta4
But is there a way where I can put in HTML tags and the HTML won't show but effects the text? Like typing <h1> and the tags turn into headings?
So far:
$(document).ready(function(){
$('#text').keypress(function() {
$('#live').text(... | stackexchange/codereview |
I have made a pedometer application... i wanted to know how to test this application on an emulator as i am not having an android device
| stackexchange/codereview |
_beginthreadex returns a handle to a thread:
m_hStreamStatsThread = (HANDLE) _beginthreadex( NULL, 0, StreamStatsThread, this, 0, NULL );
This handle may be used if you need to refer to the thread in calls like TerminateThread(..) for example.
According to the MSDN page on _beginthreadex, _beginthreadex won't always r... | stackexchange/codereview |
I´m trying to do a 301 redirect in a htacess file. I want to point all pages on one domain to one single page on another domain and I do not want to manually redirect all single pages.
Ex: www.olddomain.com/1.html and www.olddomain.com/2.html should both point to www.newdomain.com.
Hope anyone could help me.
| stackexchange/codereview |
A bit of background.
I'm writing an application that uses UDP. The application will run on a LAN (not internet).
I've been assuming that if my MTU is 1500 then thats how big a UDP payload can be, but I'm
not sure if the UDP header is meant to fit within that too.
I'm suspecting that if I send a UDP packet with a 1500 ... | stackexchange/codereview |
How do you map 2 context roots to one application in WebSphere 6.
For example, I have an application with a context root of "/", which is obviously the default application. I want requests directed at context root "/sample" to be redirected to the "/" path.
Thanks!
| stackexchange/codereview |
I have a problem that I can't seem to solve. What I am trying to do is find unique columns based in table A that doesn't exist in other table B and store them in table B. Something on the lines of
SELECT DISTINCT(A.FNAME), A.LNAME from ADDRESS A WHERE NOT EXIST
(SELECT DISTINCT(B.FNAME),... | stackexchange/codereview |
This is killing me... When trying to add a key to like so:
category.site_ids << 1
category.save
It does not save. But when overriding completely, it works:
category.site_ids = [1]
category.save
What am I missing here?
| stackexchange/codereview |
If you have this generic function:
template<class type, class ret, class atype1, class atype2, class atype3>
ret call3(type *pClass, ret(type::* funcptr)(atype1, atype2, atype3), atype1 arg, atype2 arg2, atype3 arg3)
{
//do some stuff here
return (pClass->*funcptr)(arg, arg2, arg3);
}
and you do this:
class My... | stackexchange/codereview |
I'm trying to think of the fastest way to implement a case insensitive file_exists function in PHP. Is my best bet to enumerate the file in the directory and do a strtolower() to strtolower() comparison until a match is found?
| stackexchange/codereview |
Is there a wildcard in Common Lisp that is eql to any atom?
That is, is there any wildcard such that
(eql wildcard any-atom)
returns true?
| stackexchange/codereview |
I have a simple query that I'd like cleared up by someone... Is it bad-practice to retain self?
I have a server request object that I'd like to make. I'd like to be able to use it in the following fashion:
ARequest *request = [ARequest request: someParam];
request.delegate = self;
[request begin];
In order for the obj... | stackexchange/codereview |
For caching purposes, I want to create an array, which maps input values of the function to output values. I know, that my function will be used only in this specific range, I think about something like this:
MyType = ... deriving (Ix)
myFunction :: MyType -> foo
myCache = createArrayFromFunction (start,end) myFunct... | stackexchange/codereview |
I have around 60 controls and I want to show a tooltip for each of them.
I could do this manually but I want something that would allow me to make changes to the tooltip messages or the control they are bound to without modyfing the code (I don't know what this would be called).
I thought about XML, but is there a bett... | stackexchange/codereview |
I am writing an update application in Python 2.x. I have one thread (ticket_server) sitting on a database (CouchDB) url in longpoll mode. Update requests are dumped into this database from an outside application. When a change comes, ticket_server triggers a worker thread (update_manager). The heavy lifting is done in ... | stackexchange/codereview |
I'm delveloping a PHP web application on my local PC. Whenever I save a file it would be handy if Eclipse could upload the file to my web server via FTP. Is Eclipse able to do that?? I think Netbeans offers such an option. At the moment I do the upload manually which is very annoying...
| stackexchange/codereview |
I'm looking for a bit of advice setting up a SQL cluster to be accessed via an alias.
At present, say my cluster is called 'SQLCLUSTER' and I want to set up an alias to redirect to it. Ideally, I'd like any attempt to connect to '(local)' on either of the machines in the cluster to redirect to 'SQLCLUSTER'. I'm using S... | stackexchange/codereview |
I've been developing an MVC 2 application under the built in Web-server in VS2010. On Friday, I moved it to a virtual directory under IIS 5 in my WinXP development machine. I had the usual problems, and added a wildcard mapping to the Virtual Directory configuration in IIS to map .* to aspnet_isapi.dll (Framework 4). ... | stackexchange/codereview |
Is ther a way to get all movie clips inside a area with AS3 I need this to do multiple selection.
| stackexchange/codereview |
I'm working with a certain API library in Java. It has a base class A, as well as B and C which both extend A. B & C provide similar but distinct functionality, all three classes are in the library.
public abstract class A
{
virtual foo();
}
public class B extends A {}
public class C extends A {}
How do I get ele... | stackexchange/codereview |
I love LaTeX. Let's get that straight right off the bat.
The only thing I'm wishing for is a clearer syntax that compiles into LaTeX, like Markdown for HTML. This is because most of the simple document creation that I do (like taking notes in class), could be faster and improved if I could just type 1/2 instead of \fra... | stackexchange/codereview |
As much as I love rails, I've always hated dealing with dates in an html form...especially when the date isn't an object's property.
The select_date helper is nice, but it always generates this:
<select name="date[year]" id="date_year">
<select name="date[month]" id="date_month">
<select name="date[day]" id="date_day">... | stackexchange/codereview |
I basically have a situation where I need to get rich text out of a C# program, copy it into the Clip Board, and Paste it into another Application using pinvoke. I know how to get the Handle of the Text Box it has to be pasted into, but WM_PASTE doesn't seem to do what I want. I have spent some time searching around th... | stackexchange/codereview |
I store all of my login information for databases in files outside of the public tree in variables such as
$hostname = '172.0.0.0';
$dbname = 'myname_mydbname';
$username = 'myname_user';
$pw = 'password';
That's pretty standard.
The problem is that this particular hosting I am working with requires the myname_ to ... | stackexchange/codereview |
I am trying to smooth text rendering using anti-aliasing.
But it's not anti-aliased.
First line is a png image created using pango and cairo.
Second line is just an html <span> tag. It's in firefox, Ubuntu with Gnome DE.
The difference can be better understood if you compare "W" and "v"
between two lines.
The code re... | stackexchange/codereview |
I am trying to compile a hello world on windows with the ML and LINK that ship with VS 2010.
.MODEL FLAT
.STACK 4096
.data
msg db "Hello World!",0
.code
INCLUDELIB MSVCRT
EXTRN printf:NEAR
EXTRN exit:NEAR
PUBLIC _main
_main PROC
mov eax, offset msg
push eax
call printf
mov eax,0
push eax
call exit
_main ENDP
END _main... | stackexchange/codereview |
I am creating annotations from database. But when I click on annotation to show bubble application crashes. But when I hardcode the coordinates and create placemarks on map the bubbles popup successfully. below is the code I am fetching from database and loading annotations.
-(void) mapView:(MKMapView *)imnMapView didA... | stackexchange/codereview |
Can you please tell me how can I keep the MediaRecorder keeps recording after an orientation change? I try looking into source code of packages/apps/SoundRecorder/src/com/android/soundrecorder/Recorder.java, I don't see it handles that cases.
Thank you.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.