instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
1) if(null != parentObj.childObj)
2) if(parentObj.childObj != null)
Do you think that "1" will avoid a potential null pointer exception in the case where 'parentObj' is null, in contrast to "2"?
| stackexchange/codereview |
I'd like to re-create something similar to Instagram's tab bar for iPhone, which has a "custom", bigger tabbar item in the middle of the tabbar (see http://cdn.venturebeat.com/wp-content/uploads/2010/10/instagram-screenshot.jpg)
I can think of several approaches, but was wondering if anybody has suggestions on an easy ... | stackexchange/codereview |
I have a Java app runs on Win7, it does something at start and goes to sleep for an hour, then wakes up to do more things after the hour, but Win7 goes into sleep mode after 15 minutes of inactivity, so I wonder if I can register a task with the Windows task scheduler in my Java app before it goes into thread sleep, so... | stackexchange/codereview |
I'm currently playing with Google Go.
There's a lot of ways to declare and/or initialize variables.
Can someone explains pros/cons of each way (samples, as far as i know, below) :
var strArr0 *[10]string = new([10]string)
var strArr1 = new([10]string)
var strArr2 = make([]string,10)
var strArr3 [10]s... | stackexchange/codereview |
I am developing a system using Django + Postgresql. It's my first time with postgresql but I chose it because I needed the transactions and foreign key features.
In a certain view I have to lock my tables with AccessExclusiveLock, to prevent any read or write during this view. That's because I do some checks on the who... | stackexchange/codereview |
I was wondering if anyone knows how to send custom HTTP headers using an XmlRpcClient in Java?
I see a custom header can be set using XmlRpcHttpTransport.setRequestHeader() but I don't see a way of tying this in with the XmlRpcClient itself.
| stackexchange/codereview |
I was wondering if anyone would be able to show me how to convert an arraylist to normal array in Jsp?
| stackexchange/codereview |
I'm on windows XP using eclipse and the datanucleus enhancer for a gwt + gae app. When I run the enhancer, I get an error:
Error
Thu Oct 21 16:33:57 CDT 2010
Cannot run program "C:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe" (in directory "C:\ag\dev"): CreateProcess error=87, The parameter is incorrect
java.io.IOE... | stackexchange/codereview |
I'm using the official Adobe Facebook API in my Flash/AS3 application and for some reason the call the /me/picture seems to fail whereas the the call the /me/friends seems to work just fine:
This works OK:
Facebook.api('/me/friends', onFriendsLoaded );
protected function onFriendsLoaded( response:Object, fail:Object )... | stackexchange/codereview |
I would like to store DataAnnotations inside a database. How can I retrieve a string representation of a DataAnnotation by reflection (or by other means)?
Example
public class Product
{
[DisplayName("Price")]
[Required]
[RegularExpression(@"^\$?\d+(\.(\d{2}))?$")]
public decimal Unit... | stackexchange/codereview |
I'll start by saying that I'm fairly new to the idea of deploying applications to the cloud, but I recently downloaded the Azure SDK and wanted to build a sample application to get myself up-to-speed. Here's what I did.
Download the Azure SDK
Create a new solution
Add a new ASP.NET MVC2 Web Role
Compile
Debug
Everyth... | stackexchange/codereview |
In a script I am working on, I calculate how relevant every item in one array is to each item in another array by comparing similarities in keywords and keyphrases. End the end, I select the top 4 most relevant items for each item in that second array.
I know this is a very vague background, but is there any way to avo... | stackexchange/codereview |
<asp:RegularExpressionValidator
id="RegularExpressionValidator1"
ControlToValidate="toAmountTextBox"
ValidationExpression="^\d*[1-9]\d*(\.\d+)?$"
Display="Dynamic"
EnableClientScript="true"
Text="* Please Enter valid amount"
runat="server" />
This code validates but shows the... | stackexchange/codereview |
Embedding RadEditor in my page but Master page's CSS is screwing it up ..like Editor's content area is inheriting background-image property of the body tag when I want it to be white..drop down lists inside of Editor too are not displaying correctly..I don't wanna create whole new custom skin
| stackexchange/codereview |
I'm a beginning Magento programmer. I used to access the backend as localhost/magento/admin and everything was working fine on WAMP. I could access any route I set up in config.xml as localhost/magento/(frontName) and my controllers were working fine.
Then I was trying to get Zend Debugger working with Eclipse, and in ... | stackexchange/codereview |
I have created a small Java application in which there is some code that executes a batch file. The execution of the batch file leads to the command line window to be opened and to display some output messages. I would like to know if there is some way in Java to call this command line window to be closed from within t... | stackexchange/codereview |
Can anyone advise on the main benefits of installing the Tomcat native library?
I am running a standard installation of Tomcat to serve a moderately complex intranet based web app using Ext Js on the front end so lots of javascript and AJAX over the network and VPN from various locations.
Is it even worth installing th... | stackexchange/codereview |
I have a fairly simple question I'm guessing. I have the following code at the beginning of my function, but it must not be correct because it causes the blank to turn blank. If I comment out the IF statement, everything runs fine.
What am I doing wrong?
Sorry, it's probably very basic...
function get_entries($order = ... | stackexchange/codereview |
I currently am developing in VS 2008 with no access to vs 2010.
I would like to use http://facebooksdk.codeplex.com/ but there is no way to use dynamic in vs 2008 so I don't think this is an option.
Options are
http://github.com/facebook/csharp-sdk
http://facebooktoolkit.codeplex.com/
http://facebooknet.codeplex.com/
I... | stackexchange/codereview |
I have a GridView in my Android application that has a number of ImageViews in it. The space on my screen is limited and I want the images to take up as much of the available space as they can. Unfortunately, the GridView always leaves 5 pixels of empty screen space around the outside edge of the ImageViews (the space ... | stackexchange/codereview |
I'm making a SQL database with MySQL.
I need a column that has only 3 possible values: "Total" "Hours" "OnDemmand". I mean that user has to select one of these three values, he will can't select another value.
How can I do it?
| stackexchange/codereview |
I'm loading colorbox on page load.
parent.$.fn.colorbox({href: "#inline_example1", overlayClose:false, inline:true,width:'80%',height:'90%', onClosed:function(){} ,onLoad: function() { }});
I want to close the parent window when the colorbox is closed.
Please tell me what should I write inside onClosed function.
| stackexchange/codereview |
Elegant Solution
Hey People.
I'm currently working on a Project and I am thinking of an elegant solution for the implementation, I'm tired of improvised solutions.
Let me try to explain my "Problem" to you:
The task of this part of my app is pretty simple:
I want my app to download some stuff and process that download... | stackexchange/codereview |
After installing Python 2.7 on Windows XP, then manually setting the %PATH% to python.exe (why won't the python installer do this?), then installing setuptools 0.6c11 (why doesn't the python installer do this?), then manually setting the %PATH% to easy_install.exe (why doesn't the installer do this?), I finally tried t... | stackexchange/codereview |
In Java, I am trying to connect to a printer(Canon iR5050 PCL6) using Sockets, using the host IP with port as 9010. I want to get the status of the printer using PJL command. I write the PJL command (\x1B%-12345X@PJL INFO USTATUS \r\n\x1B%-12345X\r\n) to the socket output stream and try to read the status of the printe... | stackexchange/codereview |
I am working along in VS2010 and moving code around to make more functions and less clutter, so I copy/paste nine times out of ten my mouse cursor "locks up" and it gets stuck on the arrow pointer rather than the | for text, which is only mildly annoying when you are trying to copy/paste a lot of code around. It clears... | stackexchange/codereview |
So started recently experimenting with the Android SDK and eclipse IDE and during this time I have found it very hard for various reasons to develop applications the main ones being
Poor emulator makes it hard to see your applications current state as its slow and buggy and often takes an age to load up.
Steep learning... | stackexchange/codereview |
Sorry in advance for the long question, it's long because I've been digging at this all day.
The general problem:
I have an ASP.Net MVC2 application with the following projects: MyApp.Web, MyApp.Services, MyApp.Data.
We code to interfaces and utilize Ninject 2 for DI/IoC.
However, I'm getting awfully tired of typing (... | stackexchange/codereview |
I have a two tier architecture based website-data layer and UI layer. I have a web page, I get the id of a customer from the querystring and I build the customer object from that id. I have several tabs in my webpage, so, unless I need the data, I dont have to load the data for the grids which are in the tabs that are ... | stackexchange/codereview |
Is there a way to reference the class (i.e. Type) that inherits a abstract class?
class abstract Monster
{
string Weakness { get; }
string Vice { get; }
Type WhatIAm
{
get { /* somehow return the Vampire type here? */ }
}
}
class Vampire : Monster
{
string Weakness { get { return "sunl... | stackexchange/codereview |
I'm creating a WP7 app that needs to continue running when the user is not using the phone - ideally the user sets it going, locks the phone and carries on with their life.
Is this possible?
I know it is possible to disable the lock screen, so if the user were to just leave the phone on a table it would be fine and car... | stackexchange/codereview |
How can I draw an Ellipse using openGL ES
| stackexchange/codereview |
hi
I've developed an application using strong-typed dataset with .net framework 3.5.
is there a way to change the source table for a tableadapter programmatically?
thnx
| stackexchange/codereview |
Consider a Linux driver that uses get_user_pages (or get_page) to map pages from the calling process. The physical address of the pages are then passed to a hardware device. Both the process and the device may read and write to the pages until the parties decide to end the communication. In particular, the communicatio... | stackexchange/codereview |
Sounds simple but it's giving me grief:
Tried this:
function validateAddress() {
if (!($('<%=txtPlaceName.ClientID%>').val() === "")
|| !($('<%=txtStreet.ClientID%>').val() === "")
|| !($('<%=txtAddress.ClientID%>').val() === "")
|| !($('<%=txtPostcode.ClientID%>').val() === "")) {
... | stackexchange/codereview |
i am using solr 1.4.1 for building a distributed search engine, but i dont want to use only one index file - i want to create new core "index"-directories on the fly in my java code.
i found following rest api to create new cores using an EXISTING core directory (http://wiki.apache.org/solr/CoreAdmin).
http://localhost... | stackexchange/codereview |
I have a WPF TreeView which displays my ViewModel. I have a button that adds an item to a collection in the underlying ViewModel which adds a child node to the tree. This part works.
What I want is the newly added item to be the SelectedItem of the tree view.
I have read this already: How to programmatically select a... | stackexchange/codereview |
I am making a custom page in Facebook, using FBML and JavaScript on a canvas tab.
I want to make a slider like you usually do with jQuery, unfortunately Facebook has no jQuery support (yet), so I figured I will make the slide with plain old JavaScript.
After using the slide() function once, I get "slide() is not a func... | stackexchange/codereview |
In my iPad app, I have the barStyle property set to UIBarStyleBlack by this code:
// in viewDidLoad
self.navigationController.toolbar.barStyle = UIBarStyleBlack;
Strangely, when I rotate my iPad, the barStyle will sometimes reset to the gray / grey color. Any ideas on why this might be happening?
| stackexchange/codereview |
I want to use the hypercall of kvm to communicate (just send strings, it is uni-directional) between the guest and vmm instead of creating a network channel between the guest os and host.
I have only found the file arch/x86/include/asm/kvm_para.h in linux kernel? Is it similar to the system call of linux? How can I ca... | stackexchange/codereview |
In order to import a column of dates into mysql using phpmyadmin, I defined the field as a char field.
So now the dates are in a mysql table look like this:
ID | Name | DateArriving
1 | bill | 11/19/10
2 | tom | 12/1/10
etc....
I want the DateArriving field to be formated as actual dates so I can do certain querie... | stackexchange/codereview |
I love how Google Closure compiler will optimize symbols in code. However, I have not found a good way to define public, exported functions that take configuration objects as parameters. Consider this code snippet:
goog.provide('foo');
goog.require('goog.dom');
/** @typedef {{
* id : string,
* ... | stackexchange/codereview |
I have a code for updating my application resources to current application version.
This code is called after application update.
int version = 1002; // current app version
switch(version)
{
case 1001:
updateTo1002();
goto case 1002;
case 1002:
updateTo1003();
goto case 1003;
case ... | stackexchange/codereview |
I'm considering the use of the 'globalization' web.config section in our ASP .NET application to provide a default culture to be applied to all requests. In some cases, we'll be overriding this value programmaticly during the 'AcquireRequestState' event, but I'd like to know at what stage in the request life cycle the ... | stackexchange/codereview |
I want to put some links in my web page. I am using php for developing my webpage
When user click any one of it, the content corresponding to that link will show just below it without refreshing the whole page
I know it a simple basic, but I dont know javascript much to work with...
Can anyone please help me...
link1 ... | stackexchange/codereview |
I am trying to use geometry shaders in my OpenGL application that is currently using Freeglut, and I am trying to use GLEW to do that because as I understand it, the geometry shader functionality is in an extension. My include order is as follows:
#define GLEW_STATIC
#include <glew.h>
#include "freeglut.h"
Ho... | stackexchange/codereview |
Coming from Python where I can just fire up iPython to test out a small snippet of code I'm looking for the same in Visual Studio. Creating projects and classes just to test out a small idea just feels so cumbersome.
| stackexchange/codereview |
I need to add images to a mail message and need them to be place at a specific point. Nothing too fancy just after some text but before some more text.
Is this possible??
Thank you!
| stackexchange/codereview |
Could anybody explain me following situation with Scala implicit conversions mechanism. There is a code:
object Main {
implicit val x:Int => String = v => "val"
implicit def y(v:Int) = "def"
def p(s:String) = print(s)
def main(args: Array[String]): Unit = {
p(1)
}
}
This code prints "val". But when I... | stackexchange/codereview |
This really is an architectural question. I feel like I'm going about this the wrong way and wanted some input on best practices.
Let's say I have a Transactions table and a TransactionTypes table. Views will submit the appropriate transaction data which is processed in my controller. The problem is that the logic in t... | stackexchange/codereview |
My menu's at the right column are bigger than my newsarticles.
This is causing that the menu is overlapping my footer.
How do I get my footer pushed down in the same proportion as my right column?
Any help would be appreciated
website: http://www.e107webdesign.nl
| stackexchange/codereview |
In Silverlight you have to save a file using the save file dialog.
You can only open this dialog from a user event aka a button click
I’m returning the data of a file from a web service call asynchronously
How do i save this to file?
If i ask them before the service call i can’t use the stream after the data comes back... | stackexchange/codereview |
System.Web.UI.WebControls.FileUpload uses a FileInputStream when uploading files. Does this store everything in memory when uploading or does it start writing to disk after a certain buffer size has been filled?
I know it used to work like that years ago, but I would think that has changed now... Can't find it in the d... | stackexchange/codereview |
I want to make my Android app look a little bit sexier but as I don't have knack for design I was wondering if there are other themes that are available for importing into your Android app (like the Dark and Light themes that come with SDK)?
I do not expect a Theme that would make Android app look like an iPhone app, b... | stackexchange/codereview |
I am trying to cross-compile busybox but I am getting 'undefined reference' at the linking stage. Using nm, the symbol were in fact missing from the library file (libbb.a in my case.) Looking into the source ('busybox/libbb/xfuncs.c'), there are all these #ifdef L_<function_name> wrapping around the functions in ques... | stackexchange/codereview |
Is there a way to configure VS2008 so that it does NOT create SQL query strings with square brackets in my ASP .Net projects? I'm using a MySQL DB which doesn't like the brackets. Thanks.
| stackexchange/codereview |
I would like to script a function wich is looking in a particular directory
for files, if there are new files, it should send out an notification email.
I already prepared a script which is looking for new files in a directory, it write
the notification about a new file into the console. But now I would like to notifie... | stackexchange/codereview |
Is this possible? If it is, how?
And if not, which compiler that does allow that do you recommend?
Thanks!
| stackexchange/codereview |
<action path="/edit*" type="org.apache.struts.weapp.example.Edit{1}Action" name="{1}Form" scope="request">
<forward name="failure" path="/mainmenu.jsp"/>
<forward name="success" path="/{1}.jsp"/>
</action>
Referring to the above how does the developer change the following sample to accept the request of ... | stackexchange/codereview |
I am working with a database that has a table called date, which contains a separate field for day, month, year. Clearly this is not ideal when I am trying to run comparisons, etc. I am wondering is it possible for me to add a DateTime field to each row of this table and insert a concatenated string into the new field ... | stackexchange/codereview |
Im implementing application in which there is local database which uses SQL CE. Each time app starts there has to be synchronization between local database and server database (to have new values in dictionary tables).
Problem is that mappings are different in sql ce and sql server 2008 when using entity framework.
Is ... | stackexchange/codereview |
Can we create the order per product item on Magento when we go to checkout process..?
For example :
If on my shopping cart, I've 2 products, so the order is separates into 2 orders..
Thanks..
| stackexchange/codereview |
Despite loading the Google Maps API, via this url:
http://maps.gstatic.com/intl/en_ALL/mapfiles/276b/maps2.api/main.js
I'm getting the above error.
Why is it that when I download that URL in my browser and do a find for 'GOverlay' I'm getting zero matches?
Have Google removed this from their API or something, causing a... | stackexchange/codereview |
i have the following problem concerning the index::
my source code::
<table style="width: 80%">
<tr>
<td>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Conten... | stackexchange/codereview |
I always thought that the number in the parenthesis represented the field length?
However, I understand that is not always the case. Maybe it's a MySQL issue? Someone told me if I set a field to 9 characters long, I can add a value that's more than 9 characters but only the first 9 will be saved.
Example:
CREATE TABLE ... | stackexchange/codereview |
how to ignore a local folder in a vs.net solution from being updated to TFS?
I have a web service reference, and I don't want this being saved to the TFS source control.
Each time I check-in, the service folder and its 1000's of files are pre-selected.
| stackexchange/codereview |
I am currently working on a site in a staging environment located at www.example.com/staging. All of the links for the site have been set relatively (ex: /about/). I am trying to write some simple jQuery to add "/staging" to every link on the pages, so I don't have to change all the links for the week or so it is in th... | stackexchange/codereview |
I tried to compile code
module counter(
input clk,
input upSignal,
input downSignal,
output [7:0] count
);
always_ff @(posedge clk) begin
if (upSignal)
count <= count + 1;
else if (downSignal)
count <= count - 1;
end
endmodule
but I... | stackexchange/codereview |
I discovered the "FizzBuzz" question today at coding horror. Great article. However, something in one of the user-comments confused me -- here's the quote:
Geez guys - EVERY ONE of you who gave
example code - EVERY ONE - hard coded
the FIZZ and BUZZ conditions...
It sounds to me like this poster is ridiculing ... | stackexchange/codereview |
I want to pass Resize method of my Foo class object as the argument of glutReshapeFunc() but I get that error.
How should I pass it?
This is my definition of Resize:
class Foo{
public:
void Resize(int w, int h);
...
}
and this is how I try to call it
glutReshapeFunc(foo->Resize);
It was ok when foo was no... | stackexchange/codereview |
Currently I have an ASP.net 4.0 app in which I've made a web reference to an MOSS 2007 server. When I access any lists.asmx methods from the root application, everything works fine. However, if I try to change the service URL in C# code-behind to that of a subfolders list.asmx, then access the any method, I get a 404 e... | stackexchange/codereview |
My team are putting together a proof-of-concept Flex application sitting on top of a Spring-based server using BlazeDS.
We do quite a lot of date calculations, so we use Joda Time extensively throughout the code and in our domain model.
We're now trying to figure out how we can continue to use Joda Time in our DTOs tha... | stackexchange/codereview |
I want to create an asp.net based website. When I create the sit eon my local machine I am uploading pdf files to my file system then accessing the files to view in my website. When I make the site go live how do I translatye this? Can I have files saved somehow with my interenet host? How would I access the files thou... | stackexchange/codereview |
So a normal popup but without the original borders and styles what comes from the Operating system.
Is there a way to style these popups?
EDIT:
Simply HTML elements are not good like <div> because they cannot be on front of the windows in the OS.
| stackexchange/codereview |
int x,y,m;
for(;;){
m=scanf("%d %d",&x,&y);
if (m!=2 || m==EOF){
break;
}
else{
printf("/%d/%d/\n",x,y);
}
}
if (feof ( stdin )){
printf("End of input\n");
}else if(m!=2){
printf("There was an error\n");
}
Under linux ctrl+D indicates end of input , and for windows ctrl+z is... | stackexchange/codereview |
I have a select button(LinkButton) inside the Repeater.When i select the button that row should be appear in ListView control.But Repeater control does not support DataKey,then how can i achieve this?
| stackexchange/codereview |
hi *
I create a Windows Phone Game (4.0) application in Visual Studio 2010 and Win7. My application build successfully but when run it, throw an error that says:
"The current display adapter does not meet the emulator requirements to run XNA Framework applications."
What should I do, to remove this error?
| stackexchange/codereview |
private function find($needle, $haystack) {
foreach ($haystack as $name => $file) {
if ($needle == $name) {
return $file;
} else if(is_array($file)) { //is folder
return $this->find($needle, $file); //file is the new haystack
}
}
return "di... | stackexchange/codereview |
For a site I'm working on, I'd like to have a dotted outline appear around links when they are focused/hovered/active. I'd like this to happen for text and image links.
The issue I have is that whilst my code works great in Firefox and IE, in Chrome 7.0.517.41 the dotted outline is the same height as my text, not the h... | stackexchange/codereview |
I have a custom overlay that trace the user location changes. I want to show/hide the overlay. What's the proper way of doing that?
I'm using hidden property of overlay view to show/hide it right now, but it doesn't work very well. When i pan and zoom on the map i see bits and pieces of overlay (even when i've set hid... | stackexchange/codereview |
I am doing a project using JSF 2.0 and Facelets.
I have read documentations that the <ui:debug/> tag gives valuable troubleshooting information upon pressing CTRL-SHIFT-D. But this never works for me. Please anyone tell me what am I missing.
(I tried with various hotkeys, still no success. eg: <ui:debug hotkey="a"/>)
| stackexchange/codereview |
I ran into such a situation, when packaging a project using maven, I'd like both the source package and the binary package, and they have the same manifest.mf file. Then I have to write the same entry in both plugin configuration of maven-source-plugin and maven-jar-plugin, like this:
<plugins>
<pl... | stackexchange/codereview |
I have this piece of code:
<textarea id="test" style="width: 400px; height: 100px"></textarea>
<script>
var inserting = document.createElement("div");
document.insertBefore(inserting,document.getElementById("test"));
</script>
Which should insert DIV id=inserting before textarea id=test, but this error o... | stackexchange/codereview |
i have this code in my index.html:
<div id="users-list">
<tr class="<%= cycle('odd', 'even') %>" onmouseover="this.className='over';" onclick="location.href='<%= user_path(user) %>'" >
<td><%= user.surname %></td>
<td><%= user.name %></td>
</tr>
</div>
as part of a table, and this associated css:
#users-list ... | stackexchange/codereview |
We got pitched this idea yesterday. A user visits our site and are marked. Then when they visit other sites like CNN they are targeted with adds for our site. So once they are exposed to us, they start to see us everywhere, creating the illusion we are bigger than we are.
The person pitching it said it was done by coo... | stackexchange/codereview |
is it possible to invoke the graphical menu that pops up with 'mouse-buffer-menu (which in my case is assigned to '[C-down-mouse-1]) without actually hitting the mouse? When I invoke M-x mouse-buffer-menu emacs tells me
execute-extended-command: mouse-buffer-menu must be bound to an event with parameters
Is it possib... | stackexchange/codereview |
I'm trying to enable passthrough or impersonation authentication inside an ASP.NET website that uses the TFS2010 API.
I've got this working correctly with Cassini, however with IIS 7.5 (Windows 7) something is going wrong.
I found this blog post on the subject, and tried the following:
private static void Test()
{
... | stackexchange/codereview |
I'm using the default paginator to add the pae offset to uri(3) and the sort data is put in and associative array to uri like this in the table headers
echo anchor("/contact/index/$paging/".$this->uri->assoc_to_uri($assoc),$column);
at the moment i can sort desc and asc by clicking on the headers, but when i want to c... | stackexchange/codereview |
I'm trying to learn how to use jQuery FlexBox. Getting confused:
My understanding is that as the user is typing into the FlexBox, what he types will be sent to the server through ajax. I'm using Django on the server side to do autocomplete, but how do I actually retrieve what the user has typed? Is the query being sen... | stackexchange/codereview |
In my database i got a column named hashcode. this column stores the hashcodes of pictures. I want to run a query that searches for duplicate hashcodes using linq to entities.
I got stuck with the 'where clause'. How do i compare hashcodes?
var ans = this.pe.TPicture.Where(p => this.pe.TPicture.Count(x => x.Equals(p)) ... | stackexchange/codereview |
I wanted to know how the processor does multiplication in a multi-cycle data-path right from the beginning i.e from Instruction Reading -> decoding the instruction-> reading register files etc.
In other word I wanted to know that given the booth's algorithm for multiplication implemented separately (a circuit is given... | stackexchange/codereview |
Right now I've got a project that has the following layout:
foo/
__init__.py
__main__.py
foo.py
In this case, foo.py is actually the main api file, so developers are meant to do "from foo import foo", but I also wanted to make it so that end users could just run ~$ foo and get an interface.
which, when I do a di... | stackexchange/codereview |
I am trying to dynamically address different instances of the same movieclip by passing a string into the movieclip address, but apparently I don't know what I'm doing. I'm trying something like below:
var vsTargetName:String;
vsTargetName = "instance50";
vsTargetName + vsThumb.thumbHighlight.visible = true;
Is someth... | stackexchange/codereview |
Why am I getting '2009' data? What am i doing wrong with the WHERE Clause?
SELECT CONVERT(varchar, EventDate, 101) AS EVENTDATE,
CONVERT(varchar, ClosedDate, 101) AS CLOSEDDATED,
DATEDIFF(Day,EventDate,ClosedDate) AS DiffDate,
FROM mytable
WHERE (CONVERT(varchar, EventDate, 101) BETWEEN '04/01/2010'... | stackexchange/codereview |
I have a button that triggers a sound on an iphone. I am using AudioUnits to minimize the latency.
Right now, if the user taps the button twice, the sound do not overlap and the first triggered sound is cut by the second sound. Is there an easy way to let the (same) sound overlapping as many times as the user taps the ... | stackexchange/codereview |
I need to create a namespace for my database class file, so I can call the database procedures within my webservice module. How can I create a namespace to call that Db class file?
| stackexchange/codereview |
Hi All:
I am a Iphone freshMan
today a wired parameter confused me,
- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void(^)(void))handler
/* ... */
bgTask = [application beginBackgroundTaskWithExpirationHandler: ^{
dispatch_async(dispatch_get_main_queue(), ^{
[application endBackgr... | stackexchange/codereview |
I am developing an Android App which gives users an option 'Browse Alphanumerically'. Using this option let users view the list of items starting with a particular letter or number. Problem is that I cannot decide how to implement screen for this, which can work properly on any screen size. Please suggest me the best s... | stackexchange/codereview |
I've searched around for this a lot and can't find a specific example of what I'm trying to do. Basically I want to get the value of a textbox, by the name of the text box (not id). Then I want to remove ALL spaces, not just leading or trailing, but spaces in the text too. For example for this html code:
<INPUT style="... | stackexchange/codereview |
My question is clear:
How to get the compiled instructions for inlined functions when using -O2? I tried readelf to get the mapping between the source code lines and the binary codes addresses. But there is no mapping at all for the line where the inlined function is called.
So, what compiler option or any approach cou... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.