instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm writing a web app for a mobile phone and I want all of the checkboxes to be buttons with either a "check" or "cross" on them, along with the text of the checkbox. I've got a working solution using jQuery UI, but it doesn't seem every elegant. Can anyone suggest any improvements?
Here's the code:
$(function () {
... | stackexchange/codereview |
What is the best approach in terms of:
security and control of leaks?
performance?
visibility outer the class?
First: keeping control of each variable
if (objectProperty_ != anObject) {
[objectProperty_ release];
objectProperty_ = [anObject retain];
}
Second: declaring properties and using the accessors and ... | stackexchange/codereview |
I have a simple EJB app that used to work about 6 months ago. I installed the latest JDeveloper (11.1.1.3.0) and I'm trying to get it to work again, when I ran into this problem.
Deployment fails on this line:
TeacherManager teacherManager = (TeacherManager)context.lookup("Uran_2.0-TeacherManager#hu.elte.pgy2.BACNAAI.U... | stackexchange/codereview |
I want to create a URL redirect based on a URL variable.
so, if student%20gender (student gender) is male then go to www.one.com, if female, go to www.two.com.
couldn't figure this one out yet. any help?
| stackexchange/codereview |
OK, I'm not entirely a newbie, but I cannot say I understand the following macro. The most confusing part is the division with value cast to size_t: what on earth does that accomplish? Especially, since I see a negation operator, which, as far as I know, might result in a zero value. Does not this mean that it can lead... | stackexchange/codereview |
I am trying to figure out if MEF and moonlight work together. I heard Mono 2.8 got MEF already included. Although, will the full MEF work for moonlight applications?
For now I am using this adapted moonlight library http://mefcontrib.codeplex.com/releases/view/35019.
Although, some functionality is stripped or this li... | stackexchange/codereview |
I have a table jobs in a MySQL database;
- Each job belongs to a user (registered in users)
- Each job has dates and times to be executed.
Currently, the dates and times are being stored in serialized arrays of UNIX timestamps (for PHP to use). But this isn't optimal for when trying to retrieve, let's say "jobs for tom... | stackexchange/codereview |
So, there's a project around these parts that's pretty old. It's using Java 1.4 and XFire to produce code-first web services (I know, I know, best practices...). Anyways, the heads have recently decided everyone needs Websphere 7 now!
Upgrading to Websphere 7 changed the WSDL significantly. For example, before, if t... | stackexchange/codereview |
I'm working on karaoke app. It should record video with sound of a user singing a song. Lyrics and melody are are provided by app.
With video recording everything was fine until I've added audio input to AVCaptureSession. Problem is with AVAudioPlayer that plays melody - it just stops when AVCaptureSession starts. I di... | stackexchange/codereview |
I'm getting the error in the title when trying to select a cookie value from a table in a postgresql database, and I've no idea why. Selecting other fields in this table work fine.
Here's the line where it is breaking:
user=UniqueUser.find(:all, :select => 'DISTINCT visitor_id', :conditions=> "visitor_id=#{visitorid}"... | stackexchange/codereview |
I am attempting to secure a website I am currently developing using ASP.NET MVC 2.0 and forms authentication. In order to secure the forms authentication cookie I want to set the requiresSSL property to true so the cookie is only send by browsers when the connection is under SSL, and obviously ensure that all resources... | stackexchange/codereview |
I develop a Lattice Boltzmann (Fluid dynamics) code using F#. I am now testing the code on a 24 cores, 128 GB memory server. The code basically consists of one main recursive function for time evolution and inside a System.Threading.Tasks.Parallel.For loop for a 3D dimensional space iteration. The 3D space is 500x500x5... | stackexchange/codereview |
How can I get and set the current web page scroll position?
I have a long form which needs to be refreshed based on user actions/input. When this happens, the page resets to the very top, which is annoying to the users, because they have to scroll back down to the point they were at.
If I could capture the current scr... | stackexchange/codereview |
I have spent the last day searching and reading various sites and articles to try to find the answer to this question myself and I haven't found anything that helps. I'm not even sure if this is feasible. My problem is that I am trying to parse and extract a Json Response using lift-json. The response consists of 4 p... | stackexchange/codereview |
I am trying to get the boolean value that's returned by -(BOOL)backupDropletUpdateAvailable through NSThread.
To do this, I've tried the following:
` BOOL isAvailable = NO;
[NSThread detachNewThreadSelector:@selector(backupDropletUpdateAvailable) toTarget:isAvailable withObject:nil];
if (isAvailable == YES)
{//etc
... | stackexchange/codereview |
Can you refer me to an WPF implementation of a "sms chat bubbles" where I can feed texts in different colors for questions and answers (like in the iphone sms application) :
http://www.mobilelove.org/wp-content/uploads/2010/01/iPhone_sms_Bubble_style_by_alexandergre.jpg
If you can think of other nice solution, I'm inte... | stackexchange/codereview |
The following code is very good at putting a single page into a pdf.
It does not work for subsequent pages.
If the stream is an existing pdf file the image is replaced. How do I get NewPage() to actually create a new page and add the image at the end.
using (Stream ms = GetStream()) {
Document doc ... | stackexchange/codereview |
i need a any site in which i can get a basic information of asp.net and how it is work with c#.
| stackexchange/codereview |
I have 3 datagrids that share the same data type. I'd like to configure the column binding once and have the 3 datagrids share the resource.
e.g.
<DataGrid Grid.Row="1" x:Name="primaryDG" ItemsSource="{Binding Path=dgSource AutoGenerateColumns="False">
<DataGrid.Columns>
<DataGridTextColumn Width="Auto" He... | stackexchange/codereview |
I'm tyring to implement browser caching and follow Google PageSpeed's recommendation about setting Last-Modified to a data that is "sufficiently far enough in the past." I have the following in my .htaccess:
<IfModule mod_headers.c>
<FilesMatch "\.(json|pdf|swf|bmp|gif|jpeg|jpg|png|svg|tiff|ico|flv|js)$">
Header Set... | stackexchange/codereview |
I'm using some old code that runs a sql query as a reference.
At some point, it gets to something like:
sqlDataAdapter.Fill(dataSet);
DataRow dataRow = dataSet.Tables[0].Rows[0];
Object obj = dataRow[fieldName];
The old code does:
string output;
if (!string.IsNullOrEmpty(obj.ToString())) { output = obj.ToString(); }
e... | stackexchange/codereview |
I'm trying to access a dynamically named variable that is defined inside an include file after the include is included, for example:
require "/path/to/my/include.php";
echo $_VariableDefinedInInclude; // outputs the variable
echo $GLOBALS["NameOfTheVariableDefinedInInclude"]; // nothing outputs?
Any idea why the vari... | stackexchange/codereview |
i have problem with jquery $.ajax and forEach on an array...
here's the code
function getFfttData() {
// reinit object
pdatas={};
checked_matchs=0;
var licence_arr=[];
$('#calculator_form input[name="licence"]').each(function() {
var value = $(this).val().trim();
if (value != '' ) {
licence_arr.push(value)... | stackexchange/codereview |
I know well that you want to use Singleton to provide a global point of access to some state or service. The benefits of the Singleton pattern do not need to be enumerated in this question.
What I am interested in are the situations when Singleton might seem like a good choice at first, but might come back to bite you.... | stackexchange/codereview |
I'm unable to read regex.
Let's say we have this string: "mydomain.bu.pu" and I want to grab the ".bu.pu" part of it;
I'm thinking about using something like:
indexOf and later substr ... But I confess I'm kind of lost...
Any help please? :D
Thanks in advance,
MEM
| stackexchange/codereview |
I have a very simple app that I want to use a UISplitViewController in. It's so simple that I don't want the NavigationBar visible in portrait because there is no navigation in the left pane. (I do want to show it in portrait for the Popover to appear from. However, I don't seem able to hide it. Is the top element even... | stackexchange/codereview |
I have numerous domains and rather than create content for each one individually, I'm using the following code in each index.php page to display the relevant page from another site I own (where 'getDomain' is a function for getting just the domain from a url):
<?php
$domain = $_SERVER['HTTP_HOST'];
$domain = getDomain(... | stackexchange/codereview |
I wrote a tool running on a system (Win7) with two network interfaces, each linked to a different subnet, each with its own gateway which is then linked to two separate distant networks (there are outgoing firewalls after each gateway). I’m initiating outgoing TCP connections via both NICs by using Socket.Bind (before ... | stackexchange/codereview |
I am using MappedByteBuffer to speed up file read/write operations(). My questions as below:
I am not sure if I need to use .force() method to flush the content to disk or not. It seems like without .force(), the .getInt() can still work perfectly (well, since this is a memory-mapped buffer, i assume .getInt() fetches... | stackexchange/codereview |
Has anyone seen Laurent Bugnion's great demo at MIX10? If you are into MVVM-light I would call it a must see, I do have a question that I can't see to figure out... In the demo that uses RelayCommand, he does two examples - one where we implement Icommand itself and one where use RelayCommand from MVVM Light. On the se... | stackexchange/codereview |
I have a Linq to Sql source being mapped to a DTO.
The src contains a property which does not exist in the DTO. I.e. src.State exists but dest.State does not exist.
This causes the Mapping Configuration to throw a ConfigurationException.
I don't want to add the property to the DTO (e.g. dest.State) to make it work an... | stackexchange/codereview |
Hi
I would like to iterate over a list of person-object and show the data in a tab per person. I tried:
<p:tabView>
<ui:repeat ...>
<p:tab title="#{expression}>
</ui:repeat>
</p:tabView>
This is not working. Any help appreciated
Marcel
| stackexchange/codereview |
I have a navigation menu which contain sub menus. On hover I want the sub menus to show after a second delay. Menu items marked with a class of "more" contain sub menus.
Problem is that one of my functions called hoverCheck() is coming back as undefined when it's called. But I can't figure out why.
Here's my code:
$... | stackexchange/codereview |
I had an interesting interview question today that stumped me a little. I was asked about falsey values. So undefined, NaN, null, 0, and an empty string all evaluate to false. What is the reason this is useful to know in JavaScript? The only thing I can think of is instead of having to do this:
if (mystring === '' || m... | stackexchange/codereview |
I have written some classes in C# and compiled it. Now I have the library file for these classes. Can I use the same dll with Java?
I do not want to write it in Java once again because I am writing the same program in different languages (trying to do so).
So I am making the classes to a library file and want to use i... | stackexchange/codereview |
I'm having a little bit of trouble with getting an incremented date into an MySQL database. The field is of type DATE.
First of all I increment the date with the following code:
if($_POST['membershipLength'] == "6 Months") {
$renew = mktime(0, 0, 0, date("m")+9, date("d"), date("y"));
}
Then I wish to enter: date(... | stackexchange/codereview |
I have a browser compatibilty problem with https? I have SSL installed and is in usage. Until today morning, my https part is working well. From then, Https is shown as https(with slashed in red color) saying the page has some insecure content.
I have not changed any code and suddenly i see this problem in chrome. In ... | stackexchange/codereview |
I'm trying to execute
I have an html form in a page of this sort :
Name: <input type="text" id="namebox" value="" name="fields[]" /> <br />
Position: <input type="text" id="positionbox" value="" name="fields[]" /> <br />
<input type="hidden" name="createcard">
<input type="submit" value="Create">
.. and 3 other ... | stackexchange/codereview |
I want two side by side boxes in my page for placing the comment.One will show previous comments and should be disabled.other is for current users giving comments.I have done this using two divs and placing them side by side.
one contains a textarea for placing the new comments.I am having trouble with the size of text... | stackexchange/codereview |
I am trying to export a field called Settings from my Main form to a Plugin as shown in the code below. I am using the Main Form function called CreateSettings() to update the private _settings field. But, when I do that, the imported Plugin Settings never changes and is always the original initialized values "defaul... | stackexchange/codereview |
I want to do something along the lines of (note that i know that this does not work, but my question is whether it is possible make it work):
object O {
def main(args: Array[String]) {
val clazzname = classOf[System].getName
val c = Class.forName(clazzname).asInstanceOf[{def currentTimeMillis: Long}]
c.cu... | stackexchange/codereview |
If i have 3 text fields on a form how can i use the struts validator to check that a compination of all 3 fields should form a valid date.
For example
<form action="/test">
<input type=text name=day>
<select name=month>
<option value=JAN>JAN</option>
<option value=JAN>JAN</option>
<option value=JAN>FEB</o... | stackexchange/codereview |
I'm trying to build a Chrome extension that will have a heavy use of data and images.
What are my options when it comes to storing the data?
I'm hoping that I have some kind of SQL option (SQLite).
| stackexchange/codereview |
I have two list controls in my asp.net page and am populating the second list control using javascript. Problem is the script executes and i can see the value moved from first list box (ConfiguredOrgListBox) to second list box(SelectedOrgListBox) but when i try to save using submit button i find my second list as empty... | stackexchange/codereview |
Have .NET GridView control on page. jQueryMobile brakes URLs for pager. For example
instead of postback : javascript:__doPostBack('ctl00$phContent$gvContactList','Page$2')
it tries go to anchor on page
http://localhost:1172/Server Side/mobile/ContactList.aspx#javascript:__doPostBack('ctl00$phContent$gvContactList','Pag... | stackexchange/codereview |
When releasing multiple versions of an iphone-app, there are problems:
you are running very old apps (still need to support them through server-api)
you have to live with bugs of a certain app, once released blocker-bugs are not fixable
Is there a way to mark an iphone-app as unsupported or enforce an online-update, ... | stackexchange/codereview |
I manage to do the following:
stuff <- c("banana_fruit","apple_fruit","coin","key","crap")
fruits <- stuff[stuff %in% grep("fruit",stuff,value=TRUE)]
but I can't get select the-not-so-healthy stuff with the usual thoughts and ideas like
no_fruit <- stuff[stuff %not in% grep("fruit",stuff,value=TRUE)]
#or
no_fruit <-... | stackexchange/codereview |
This is my DropDownList in ASP.Net:
<%: Html.DropDownListFor(x => x.CompanyUserFilterId, new SelectList(Model.CompanyUsers, "Id", "FirstName", Model.CompanyUserFilterId)) %>
I want to list all CompanyUsers in the DropDownList and show both their FirstName and LastName property. CompanyUsers is an IEnumerable property.... | stackexchange/codereview |
Basically I have a page with a button and listbox on it. When the button is clicked, I use a ClickHandler to add another item to the listbox. However, the listbox is not refreshed unless I use the browser refresh button. Is there a way to do this programmatically without refreshing the entire Window?
Thank you
| stackexchange/codereview |
I create 2 tables and another 1 with foreign keys to the other two.
I realized I want to make some changes to table no 3.
I try to update a field but I get an error "Saving changes is not permitted. The changes you have made require the following table to be dropped and re-created."
I delete those 2 relationships but ... | stackexchange/codereview |
I use image caching by reading a BLOB and then streaming using BufferedOutputStream. I set the following headers:
res.setHeader("Last-Modified", modDate);
res.setHeader("Expires", expTime.toString());
res.setHeader("Cache-Control", "public, max-age=31536000");
The caching works always except for the refresh button. If... | stackexchange/codereview |
I've got a button, which onClick should refer to a JavaScript function, but when I place this button inside a div, it's becomes unclickable. I'm using Firefox, could that be the problem?
Here's my CSS code:
#fullscreen {
background-color: #222222;
font-color: #FFFFFF;
display: block;
position:absolute;
left: ... | stackexchange/codereview |
Here is the MIPS program i've written. But my program won't construct/draw a box.
.data
button: .struct
xleft: .byte 0
ytop: .byte 0
size: .byte 0
state: .byte 0
label: .space 4
action: .word
.data
box: .struct
ulc: .byte
top: .byte
urc: .byt... | stackexchange/codereview |
I have an JPG image with size 1024 x 724. My page size is not fixed.
My requirement is:
If I resize the page then the background image should also resize and fit to the page.
Also I don't want to keep the image related information in my Html page/JSP. I want to do this using plain CSS. I am not using CSS3. Because ther... | stackexchange/codereview |
I'm new to WPF, so this is my first project.
I started with the coding side of things using VS. I am overall pretty satisfied with the way VS is used to build a WPF app, however a big part of WPF is also animation.
So to my relief, I was able to open the solution I created using VS 2010, in Expression Blend 4.
I ope... | stackexchange/codereview |
I have the following relationship:
Route * ------ * RouteLeg
I'd like to make this an Aggregation since a Route is composed by multiple RouteLegs.
However, if I delete a Route, its RouteLegs do not necessarily get deleted too (although, most of the time, they will), since they may be used in other Routes.
Is it appro... | stackexchange/codereview |
I got this piece of script (runned locally):
<script>
last = 0;
function uploadnew(){
var randomnumber=Math.floor(Math.random()*6);
if(randomnumber != last){
document.forms['f'+randomnumber].submit();
} else { uploadnew(); }
}
setInterval (uploadnew(), 1000*60*5);
</script>
But it seems that setInterval is n... | stackexchange/codereview |
I can't find any mention on how to do this with twitter api. I'd like to do it without buying this commercial software:
http://www.webdesigndev.com/photoshop/how-to-brand-your-tweets-with-your-url-and-why-you-should
I mean not just having my appname but putting any name I want at any time.
| stackexchange/codereview |
I'm writing a job that will connect to a client's FTP/S server over my SOCKS5 proxy and I'm utilizing the Apache Commons Net package. The issue is that my SOCKS proxy is configured to not require authentication but I am still getting the following exception:
java.net.SocketException: SOCKS : authentication failed
a... | stackexchange/codereview |
I'd like to write a method that yields values in one place and pass it as a parameter to another method that will invoke it with a block. I'm convinced it can be done but somehow I'm not able to find the right syntax.
Here's some sample (non-working) code to illustrate what I'm trying to achieve:
def yielder
yield 1... | stackexchange/codereview |
Is there a construct in Java or C# that forces inheriting classes to call the base implementation? You can call super() or base() but is it possible to have it throw a compile-time error if it isn't called? That would be very convenient..
--edit--
I am mainly curious about overriding methods.
| stackexchange/codereview |
I am writing a .NET application to query an LDAP server, and I can't figure out how to look at exceptions and figure out what happened on the LDAP end. I'm using DirectoryServices, and trying to avoid anything that's specific to ActiveDirectory.
I create a DirectorySearcher, then do
try
{
SearchResult result = s... | stackexchange/codereview |
I am new to zend framework. I have created "models" folder in application directory. Inside models folder I created a class Application_Models_Albums which extends Zend_Db_Table_Abstract.
Now when I use the following code in IndexController. I get error:
$albums = new Application_Models_Albums();
$this->view->albums = ... | stackexchange/codereview |
The line
<a class="product_image" href="http://www.symposiumwines.com/shop/product.php?id_product=11" >
<img class="f-p"src="/shop/img/p/11-53-home.jpg" height="115" width="115" alt="Saint-Aubin 1er Cru 'Les Frionnes' 2004"/>
</a>
generated by a CMS throws a couple of errors when I validate the page.
1) Attr... | stackexchange/codereview |
What I have at the moment is only defined width:
<Grid>
<Rectangle Fill="#FFF5F7F9" HorizontalAlignment="Left" Height="80" Stroke="#FF565656" VerticalAlignment="Top" Width="128" RadiusY="15" StrokeThickness="3" RadiusX="15"/>
<TextBlock HorizontalAlignment="Left" Height="47" TextWrapping="Wrap" Text="Dr... | stackexchange/codereview |
I want to do universal method to set position of my widget.
All I wanna get it is set right coordinates for my widget wich must always be in right bottom corner of desktop. My widget can change his height (or maybe width) but it must have adjusted size by both ordinates... (too many words)
My idea is using QDesktopWidg... | stackexchange/codereview |
I am trying to merge 2 databases with the same schema together, and this is one part of it.
I have changed the subject to keep it more understandable - I cannot change this schema, it's just what I'm working with.
I have a table in both my source and target databases with the following columns:
Car
CarType1
CarType2
Ca... | stackexchange/codereview |
I need to implement a function that contains a loop of instructions that should run every .01 second is there a way to implement a loop(e.g for each time step) that can do that
thanks in advance
| stackexchange/codereview |
I have two collections of List, let's call them allFieldNames (complete set) and excludedFieldNames (partial set). I need to derive a third List that gives me all non-excluded field names. In other words, the subset list of allFieldNames NOT found in excludedFieldNames. Here is my current code:
public List<string> List... | stackexchange/codereview |
I wish to send a java.nio.ByteBuffer accross a network using RMI, however ByteBuffer isn't serializable. I've tried the following custom class to no avail:
public class NetByteBuffer implements java.io.Serializable {
ByteBuffer buffer;
public NetByteBuffer(ByteBuffer buffer) {
this.buffer = buffer;
}
public Byte... | stackexchange/codereview |
Simplified version of my code:
sequence = [['WT_1', 'AAAAAAAA'], ['WT_2', 'BBBBBBB']]
def speciate(sequence):
lineage_1 = []
lineage_2 = []
for i in sequence:
lineage_1.append(i)
for k in sequence:
lineage_2.append(k)
lineage_1[0][0] = 'L1_A'
lineage_1[1][0] = 'L1_B'
linea... | stackexchange/codereview |
I've attached an IPreUpdateEventListener to nhibernate and not getting the results I expect (saving of a child object). This object has history attached to it and if certain things change, it needs to reflect this and save it, no big deal right? Given the entity as such -- assume ListOfHistory is newed up in a constr... | stackexchange/codereview |
I have a very simple bit of code (relies on jQuery):
var dom_builder = function() {
this.table = function(elem,attributes) {
return $("<table>").attr(attributes).appendTo(elem);
}
};
console.log(dom_builder.table);
Now when I try to run it I get the following error: Uncaught TypeError: Object # has ... | stackexchange/codereview |
I was wondering if there is a way to make a radio button select another radio buttons data. For example, a "select all" radio button, would select another radio button. Or In the event of a survey where a question could be rated from 0 to 5, when "select all as 0" is selected, all the following radio buttons are select... | stackexchange/codereview |
I am having problems locating any documentation or examples for rendering video on a form using DirectX. I need to use DirectX because I will be putting overlay's on the video loaded dynamically. I will also want to perform transitions between 2 video instances.
I can not find any documentation on Google or Microsoft's... | stackexchange/codereview |
I installed OpenSSL 1.0.0 on Windows using the installer available at:
http://www.slproweb.com/products/Win32OpenSSL.html
I added the .lib files to my project (this is Visual Studio, added it to Project Settings->Linker->Input), and it compiles and works fine. But when I remove the OpenSSL DLL files in Windows\system32... | stackexchange/codereview |
I made a great app for windows with appcelerator and I want to convert it to mobile (android).
Problem is, unlike creating an app in windows where the default launcher is "index.html" and I can have all my javascript/css/html mixed in together, the mobile default launcher is app.js.
I've tried the following:
var webvie... | stackexchange/codereview |
I have a stylesheet that generates HTML for XML files.
Example XML file:
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="trial.xsl"?>
<wholeEnchilada>
<Interface>
<Messages>
<Message name="blah">
<Variable name="DialogIdentifier" dataType="UINT16"/>
<Variable n... | stackexchange/codereview |
I am explaining my issue straightaway. Please refer the following code snippet.
@Override
public View getView(int index, View convertView, ViewGroup parent) {
Comments comment = comments.get(index);
if (convertView == null) {
LayoutInflater inflator = (LayoutInflater) context
.getSystemS... | stackexchange/codereview |
SELECT *
FROM openorders_tracking
WHERE id NOT IN (SELECT tracking_id FROM openorders_commission)
SELECT *
FROM openorders_tracking
LEFT JOIN openorders_commission
ON openorders_tracking.id=openorders_commission.tracking_id
WHERE openorders_commission.id IS NULL
I'm wondering both specifically for this query,... | stackexchange/codereview |
I have a web service
[authorization]
[allow users="domain\myaccount, domain\yyy"/]
[deny users="*"/]
[/authorization]
[authentication mode="Windows" /]
And I have a web client which calls this web sercice
[identity impersonate="true" /]
[authentication mode="Windows" /]
I use my own domain account (w... | stackexchange/codereview |
I was wondering if I could run a block of code(which includes for loops and if statements) in a javascript:void() function through the URL box.
| stackexchange/codereview |
I am trying to connect to SQL Server 2005 express edition from SQL Server Management.
From the server configuration manager, I found the SQL Server Service to be running and within bracket, it's written(SQLEXPRESS). I understand SQLEXPRESS is the instance name, therefore I have to use following string for server name: ... | stackexchange/codereview |
I been stack for the last few days trying to figure out the SilverLight 4 LineSeries graph, for some strange reason the graph being displayed but the line not being displayed. I am pretty sure that my mistake is something very basic but I been straggling to pinpoint the problem by myself.
Bellow is the code that I havi... | stackexchange/codereview |
I pulled a project with several forks on GitHub, but forgot which fork it was. How do I determine which fork I pulled?
| stackexchange/codereview |
I have 4 classes:
BaseStreamParameter
[DataContract]
[KnownType(typeof(StreamParameter))]
[KnownType(typeof(RepeatableStreamParameter))]
public class BaseStreamParameter
{
private bool pIsRepeatable;
[DataMember]
public bool IsRepeatable
{
get { return pIsRepeatable; }
set { pIsRepeatabl... | stackexchange/codereview |
I'm trying to run the following line of script in bash on Mac OS X 10.6.4 (from this question):
$ export EDITOR='mvim -f -c "au VimLeave * !open -a Terminal"'
Alas, what I get is something unexpected:
$ echo $EDITOR
mvim -f -c "au VimLeave Desktop Documents Downloads Library Movies Music Pictures Public Sites bin !ope... | stackexchange/codereview |
Does anyone know of a way to call MIT's Meep simulation package from C# (probably Mono, god help me).
We're stuck with the #$@%#$^ CTL front-end, which is a productivity killer. Some other apps that we're integrating into our sim pipeline are in C# (.NET). I've seen a Python interface to Meep (light years ahead of CTL... | stackexchange/codereview |
I have a div like this:
<div class="widget-archive-monthly widget-archive widget">
<h3 class="widget-header">Monthly <a href="http://myblog.com/blogs/my_name/archives.html">Archives</a></h3>
<div class="widget-content">
<ul>
<li><a href="http://myblog.com/blogs/my_name/2010/10/">Octo... | stackexchange/codereview |
Here is my interface:
public interface MyInterface {
bool Foo();
}
Here is my abstract class:
public abstract class MyAbstractClass : MyInterface {
abstract bool MyInterface.Foo();
}
This is the compiler error:
"The modifier 'abstract' is not valid for this item.
How should I go on about explicitly implementi... | stackexchange/codereview |
We are looking for advice to find a solution to this problem :
We consider that we have the following database table
Article (id, title, content)
We store 2 articles on this table
article1(1, title1, content1)
article2(2, title2, content2)
The primary key is the id and we want to know if there is a way to "link" the ar... | stackexchange/codereview |
I have an NSMutableArray defined in my AppDelegate class:
NSMutableArray *devices;
I populate the array from a class in the didFinishLaunchingWIthOptions method:
Devices *devs = [[Devices alloc] init];
self.devices = [devs getDevices];
The getDevices method parses a json string and creates a Device object, adding it ... | stackexchange/codereview |
I am using jQuery to populate a div element in an aspx page. It is working however there is a negative side effect.
The page loads and the div is small..then when the jquery runs the page shifts down 1 line height ~12pt's. This makes the page look like it is being shifted up and down just after loading.
I can make th... | stackexchange/codereview |
I searched for some time but could not find any answer that give me clear idea. so i am posting my question.
I am working on desktop application on .NET 2010, C# , WPF as front end and SQL 2008 back end.
I was looking at the options of include context sensitive help. I looked for MS Help Viwer 1.0. It looks promising ... | stackexchange/codereview |
I'm using this code inside a function to get the shortest and longest string in a file. The length variables and strings are declared outside the loop. The int variables are correctly updated inside and outside the loop, but the char* variables are only updated correctly inside.
on the last printf statement I get:
th... | stackexchange/codereview |
I've wrote my own PHP MVC however i'm struggling to distinguish between the model and controller part. For example with a simple form that will add data to the database, the controller is pulling the form data from a request object, and passing it to the Model to handle the actual database insert. However there seems a... | stackexchange/codereview |
I would like to prevent certain users from checking out certain modules of code in my cvs repo. I have already implemented pre-commit hooks that prevent those same users from committing code to particular module, but I don't see any way to prevent a checkout of that same module.
Does anyone know of a way to prevent a C... | stackexchange/codereview |
I cannot find any documentation on the encoding of file names in zip files.
I have to pack file names with German umlauts into a zip, load it into an Android and unpack there. Then I have to refer to these files with names that are stored in another file. The latter is UTF-8, so there is no problem with umlauts. But I... | stackexchange/codereview |
Based on this query:
@cars = Car.where("manufacturer_id IN ?", @mfts.select("id")).limit(30).select("id")
How can I display the cars' IDs in the view like this (or do I need to rewrite my query)?
3,2,5,12,15,24,34,63,64,65,66,85
Thanks a lot - I've looked for this but couldn't find the right question/answer.
One solu... | stackexchange/codereview |
SharePoint 2010 standard on 64 bit gives configuration wizard error at point of web app creation.
Links in central administration are generating error.
example manage application service cannot be opened.
Any help is much appreciated
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.