instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'd need help with a simple implementation of a ViewFlipper. The flipper works perfect when I inflate child views "ws.addView(childView)" in the onCreate of the activity. I run into a problem when I want to remove all children from the flipper and add another bunch of them via addView(child) method. I am trying to cal...
stackexchange/codereview
How can I recognise the color when i mouseover point to one postition of the photo? BufferedImage image = new BufferedImage("blueball.jpg"); Project() { jFrame.setSize(new Dimension(500, 320)); jFrame.getContentPane().setLayout(null); colorLabelText.setBounds(new Rectangle(310, 210, 50, 30)); colorLabel...
stackexchange/codereview
I have created the following subroutine gender to randomly print string MALE or FEMALE. When subroutine is invoked, the print command suffixes a "1" at the end of the string. See the sample code and output below: sub gender { if ( (int rand(100)) >50) { print "MALE "; } else { print "FEMAL...
stackexchange/codereview
I'm trying to handle a call of a generic method through a RealProxy, but I cannot seem to find the information about the actual type of the generic parameter used in the intercepted method call. An excerpt of the code: public override IMessage Invoke(IMessage msg) { ... string methodName = (stri...
stackexchange/codereview
I have a string: productDescription In it are some custom tags such as: [MM][/MM] For example the string might read: This product is [MM]1000[/MM] long Using a regular expression how can I find those MM tags, take the content of them and replace everything with another string? So for example the output should be: ...
stackexchange/codereview
Simple Question, is it possible to add a custom pane in lotus notes inside which we want to add a .net user control? I want to add a custom pane on the right in lotus notes containing my user control in order to drop items from the lotus notes inbox (emails i received) to my user control. Is it a complicated process? ...
stackexchange/codereview
What were typical problems during developing on ASP.NET? So, would you like to describe typical problems/mistakes during developing on ASP.NET from your experience? UPD I have been working as ASP.NET developer for 2 monthes.
stackexchange/codereview
Before we begin, we must first look at the syntax for a function in MATLAB. function y=(argument list) commands The code above must be written in a separate m-file! The name of the file should coincide with the name of the function, i.e. .m ?? why what if not
stackexchange/codereview
I'm working on an application that uses SQL Server and NHibernate. We have the concept of default data (complex entities) that needs to be created for each new entity. This data can be changed on a per-user basis. However, we're struggling with the best way to create this data. For example, lets say my application h...
stackexchange/codereview
Im currently trying to insert data that exists within a Excel spreadsheet directly into an Access table using C#. Dont want to use Interop in order to avoid hung sessions etc. Managed to get quite far down the track using OleDb and the following SQL:- INSERT INTO [MS Access;DATABASE=C:\Reports.mdb].tbl_Limit SELECT 1,...
stackexchange/codereview
So, ActionScript 3 has generics with the Vector class (Vector.). I have not seen any other class that uses generics like this. If you were to implement Vector. yourself, how would you do it?
stackexchange/codereview
A general question: is it possible to retrieve information about how far away e.g. a computer is from a wifi-router. For instance I want to get data on my computer if I'm 10 meters away from my home-wifispot or 2 meters. Any idea if that is even possible? Edit: How about bluetooth? Is it possible to get information abo...
stackexchange/codereview
Hey I am trying to make a topbar for my site as a navigation bar. This is what I get currently, how can I make it so that it's connected to the sides and to top. I don't want that space between the page and the bar. Sorry I am very beginner in this. See this picture to see what my page looks like now http://i55.tinypic...
stackexchange/codereview
I will probably be writing my own.. I wanted to check if anybody already knew of one. There will be multiple time drop downs in a single form. They will not be <select..> tags with 1440 options per select... They will have a default scrolled position, and they will look like a single drop down with 1440 items but will ...
stackexchange/codereview
The site http://combatarms.nexon.net/ has a button on the right side 'Start Game'. If you have the game installed on your computer and you are logged into the site, when you click on the button, it will launch the game on your computer. How is this possible? I was always led to believe that Javascript isn't able to ac...
stackexchange/codereview
Environment is VS 2010 Express, C#. The following code yields different results when debugging versus not debugging. MyClass.Counter++; Debug.Write(MyClass.Counter.ToString()); db.ExecuteCommand("update mytable set pct = {0}, reps = {1},is_active = 0," + "completed = 1,date_co...
stackexchange/codereview
Is it possible to add a salt to passwords in .hpasswd files? I assume not since the server would need the salt for each user in order to verify the password and I can't think of how it would get them, but otherwise if the list was to be obtained it would be rather vulnerable. Is there a solution? Many thanks for your h...
stackexchange/codereview
All, I have a netbeans platform app developed in 6.8 platform. I'm trying to load it using NetBeans 6.9 and the build fails with the error Module org.netbeans.libs.jna excluded from the target platform I have seen someone write that this error is related to the GUI builder being set to use automatic mode (swing layo...
stackexchange/codereview
I use LINQ to create my where clause like so: var query = from x in context.Xs select x; if (y == ...) { query = query.Where(x => x.Y == 1); } I have bunch of these "if .... where" statements. The issue I have is that all of those wheres join where clauses using AND but I need all my where clauses to ...
stackexchange/codereview
Can i place more than one triggers for a single update panel? Is it possible to give multiple triggers for an update panel. Is there anything that i should take care if i am using multiple triggers( if it possible) ??
stackexchange/codereview
I know you can listen for the click event on a Spark List but I need to be able to listen for a highlight event.
stackexchange/codereview
I am using a Macro to Sum up Values of a specific Debtor. It currently works fine but I need to add another Criteria; Range("DebtorList_Payed")=Application.SumIf(Range("InvoiceList_Table_ItmCode"), _ Range("Debtor_list_Debtors"), Range("InvoiceList_Price")) I have another Range on the Invoice List Worksheet called ...
stackexchange/codereview
When I issue an update query or another Data Manipulation Language (DML) query that changes the data in the database, using Entity Framework 4, how do I see the query sent to the SQL Server? Let's say I do something like: someEntityObjectInstance.SomeProperty = newValue; context.SaveChanges(); In this case, there's no...
stackexchange/codereview
i tried to use this $("#aa").insertAfter($("<input type='text' name='category' value='h2' /\>")); it seems didn't work for me
stackexchange/codereview
Are there any examples of them?
stackexchange/codereview
Are there communities where expert Django developers (ideally looking for jobs) like to hang out? Stackoverflow excluded :)
stackexchange/codereview
my script is #!/usr/bin/perl #--------------------------------------------------------------------- # Description: Extract Lab data from text file and insert to database #--------------------------------------------------------------------- # Modules Required use DBI; # check drivers #print "vs2-001-001-ma-sample...
stackexchange/codereview
I am new in Sybase and Power Builder. What are the best references and web resources to learn them in a useful and fast way ? For now, I use http://www.sybase.com as my base reference. Does anyone know good and practical tutorials for Power Builder V.12 .Net ? From Where I can download a complete version of it and use ...
stackexchange/codereview
HI All, I have successfully created a Quartz.NET remote server running inside a windows service. I followed examples 12 in the source and slightly modified it to use AdoJobStore with sqlite. On remote client I created a windows form application and successfully connected with the server. Everything went fine until the ...
stackexchange/codereview
When you declare a local variable within method using the same name and type like instance variable of - does it mean the instance variable becomes 'invisible' inside that method? public class Test { Card card; public void foo(){ Card card = new Card(); card.test(); } } So I'm declaring and instantiating local ...
stackexchange/codereview
I have two indexed fields in a table - type and userid (individual indexes, not a composite). types field values are very limited (let's say it is only 0 or 1), so 50% of table records have the same type. userid values, on the other hand, come from a much larger set, so the amount of records with the same userid is sm...
stackexchange/codereview
I added this bit of code for the input button used by.net for hover, the hover effect works fine on Firefox but does not work in any o the IEs how can i make it work in IEs #form-container input.prev_btn{ display: block; background:none repeat scroll 0 0 transparent; text-decoration:none; border:medium none; ...
stackexchange/codereview
I would imagine that this would be an easy question for someone who works a lot with T-SQL and especially Triggers: I want to enforce the following constraints on all updates and inserts to this table: If DiscountTypeId = 1, then FlatFee must not be NULL. If DiscountTypeId = 2, then DiscountRate must not be null. If ...
stackexchange/codereview
I'm looking for some tool that can be used to create .chm (or something else that works with .NET) help files for my .NET application. I realize that Microsoft offers a free product that works perfectly fine, but here is the caveat: I work for a contractor that gets it's money from the gov't. As you can imagine, we ...
stackexchange/codereview
I seem to have some problems installing mod_python with apache. ./configure --prefix=/usr/local/apache2 make make install /usr/local/apache2/bin/apachectl start On the final line, I seem to get this error. (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shuttin...
stackexchange/codereview
Here is my dilemma, 8 table Upto 72 columns Including datatypes int, smallint, decimal ,smalldatetime, char Nothing to scary there. I have created unique data sets 100 rows, 1000 rows 10000 rows 50000 rows 100000 rows, 500000 rows for but they in insert statements. This is for volumetric testing. When attempting to...
stackexchange/codereview
I have designed a stored procedure usign Sql Server 2005 below to compare 3 million records in each of the Profile and Source Table, and update the Source table with records exist in another table (PROFILE_BC) which will also have about 3 million records. I am trying to Optimize this code below. Can you suggest any oth...
stackexchange/codereview
What's an efficient and hopefully elegant incantation to convert decimal[] to double[]? I'm working with some fairly large arrays.
stackexchange/codereview
I have a project that calls for a Wind Rose diagram. Specifically, I am looking to plot wind speed and direction over time in a visual format. The example on this page looks like a function in a statistical language R which is probably far above my ability to undertake for this project. I'm looking for any discussions...
stackexchange/codereview
How can I use OpenGLES 1.1 (iPhone) to draw a texture, but only using the alpha to draw some color? The result should be the exact same alpha mask from the original texture, with a single solid color inside instead of the original colors. I am using glDrawArrays with glCoordPointer and glVertexPointer. I think doing tw...
stackexchange/codereview
I was wondering what is the better/faster way to resize an image. Normally I would resize an image with CSS, but a college told me that by using the width attribute, e.g. <img width="size" [..]> the browser would render the page faster. Anyone know if this is true?
stackexchange/codereview
Ok, so I have this, but it wont work: @interface UILabel (touches) @property (nonatomic) BOOL isMethodStep; @end @implementation UILabel (touches) -(BOOL)isMethodStep { return self.isMethodStep; } -(void)setIsMethodStep:(BOOL)boolean { self.isMethodStep = boolean; } -(void)touchesBegan:(NSSet *)touches w...
stackexchange/codereview
I need to reliably get the id of a user from the PC using PHP. I tried using gethostbyaddr($_SERVER['REMOTE_ADDR']); but that returns the network name of the pc, not what they actually logged in with. I then tried var WshShell = new ActiveXObject('WScript.Network'); document.form1.item('uid').value = WshShell.UserNa...
stackexchange/codereview
Im trying to make basic Iphone app Needs to be able to do the following Display a phrase across the screen Phrase needs to change at midnight every night to new phrase From a list of phrases When the application is turned off or suspended the phrases still need to move to the next one within the 24 hour time. I have ...
stackexchange/codereview
I'm looking for a clean and elegant solution to handle the INotifyPropertyChanged event of nested (child) objects. Example code: public class Person : INotifyPropertyChanged { private string _firstName; private int _age; private Person _bestFriend; public string FirstName { get { return _firstName; } ...
stackexchange/codereview
I'm trying to fire a php script inside another php script. This is easy, the problem is that the first script can not wait for the second to finish. I want a fire and go mechanism. Any help would be appreciated, Thanks in advance.
stackexchange/codereview
i am using oauth to create an oauth object which looks like this - >> y @oauth --- !ruby/object:LinkedIn::Oauth api_key: ggrgergrgrgrg api_secret: consumer: &id001 !ruby/object:OAuth::Consumer key: ggergergrgrg options: blah blah I can access @oauth.consumer but not @oauth.api_key Any ideas ? Thanks, Alex
stackexchange/codereview
I'm building a web application, and I would like to make certain functions on the front end visible when a user is logged in as an administrator. I am using the default membership provider, but I have an extension table called userFields which i use for storing user settings. I have just added a UserType field to this ...
stackexchange/codereview
I have seen a few of these jquery things going on, and just wondered if there was a simple number formatting script. Essentially, all we wish to do, is format ( client side ) for checking purposes only, the number entered in a field. To show somewhere else on the page ( presumably in a div ) the formatted price they en...
stackexchange/codereview
I've got a problem here with a div not being placed that way I'd like it to. This is the ASP code I'm using: <asp:ListView ID="categoriesListView" runat="server"> <LayoutTemplate> <div class="main" runat="server"> <div ID="itemPlaceholder" class="sub" runat="server"> </div> ...
stackexchange/codereview
I'm making a game gui api. It will work with both Allegro and SDL. I use polymorphism for input and bitmap drawing. The issue comes with these 3 types: Bitmap, Font, and Color. SDL and Allegro are different on these. The problem is I cannot really use polymorphism here due to different return types. I wouldn't feel rig...
stackexchange/codereview
I currently have one server with nginx that reverse_proxy to apache (same server) for processing php requests. I'm wondering if I drop apache so I'd run nginx/fastcgi to php if I'd see any sort of performance increases. I'm assuming I would since Apache's pretty bloated up, but at the same time I'm not sure how reliabl...
stackexchange/codereview
I'm going to transform a scheme program into Haskell but I'm having a hard time learning all about Haskell. If you are familiar with SICP, I`m tasked to answer Exercises 3.63, 3.64, 3.65, 3.66 and 3.71. I have already found the answers to these problems but they are written in scheme. Here is the question and answer in...
stackexchange/codereview
I can't seem to get my jQuery time picker to work at all. Nothing happens when I click the input box. Any idea what I'm doing wrong? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equ...
stackexchange/codereview
I am working on an app that works heavily with the file system. I have a C background and it is a habit to just use C Data Structures as much as possible. Can anyone comment on how to decide when to use C Data Structures vs the Core Foundation data structures? OS X 10.6.
stackexchange/codereview
I'm using Mono and C#. I would like to create a "graphical" application. In WinForms and .NET I can use System.Drawing. What can I use with GTK#? And, how is the performance of GTK# under Windows?
stackexchange/codereview
I'm currently writing a roguelike game for learning purposes/fun. I'm writing it in the console, and I'm having issues with laggy updating of the map. I have done tons of online searching and came across a possible solution but it was written in c++ (I believe). The solution was to use WriteConsoleOutput, however I do ...
stackexchange/codereview
I need to continuously update and query a mysql database (and I don't think I need a servlet to do this, just a regular java class). But I don't know how to call that class or run it when the servlet starts.
stackexchange/codereview
I have an animation in viewDidLoad that runs the first time the app is launched. if you exit the app, then launch it again the animation doesn't play. how would I go about making the animation play each and every time the app is opened, thanks for any help
stackexchange/codereview
I have a rather ugly service job that runs through a legacy database and compares it to our production database: if (vendorContract.Item.Where(x => x.ItemNumber == contractItem.Item_Number) != null) { var oldDbContractItem = vendorContract.Item.Where(x => x.ItemNumber == contractItem.Item_Number...
stackexchange/codereview
I am using Rhino to communicate between Java and JavaScript. I call a JavaScript function via Rhino and this function takes an argument which must be a JSON-object. How do i parse Java-object to JSON and pass it to JavaScript in my case? Java-code: try { engine.eval(fileReader); Invocable invocableEngine ...
stackexchange/codereview
Like the person in "separate clients question" I am trying to define "clients" groups within our bugzilla instance. The difference is in the visibility within a particular product. We would like to: have each group of client only see its project and not the other projects (this is the requirement already answered by t...
stackexchange/codereview
Actually there is any easy way to prepend '/#!/' name prefix to all routes in rails 3? like twitter and facebook http://twitter.com/#!/username I need that to manage ajax request. Thanx very much
stackexchange/codereview
I've created a post-deploy script for a database project in VS, in which I am granting a Windows account "UserX" user access to a database. This post-deployment script is being used by multiple developers who need to have this "UserX" granted access on thier own machines qcnb01, qcnb03,qcnb04, etc.. (with stand-alone s...
stackexchange/codereview
I need to have a configuration for mssql in my PHP installation but obviously you have to recompile PHP or do you? How can you make sure all your configurations that you had added before and your php.ini stays correct if you had a bunch of stuff setup?
stackexchange/codereview
I'm trying to follow Microsoft's example on how to add an "All" option to a ComboBox in Microsoft Access, but their article does not do an adequate job of providing guidance, aside from specifying the code. What I'm trying to do is build a form that allows a user to select an option from a ComboBox (the options are gen...
stackexchange/codereview
Is it possible to have add a row to an SSRS 2008 Matrix that spans all of the matrix's columns? This crude diagram shows roughly what I'm looking for: The basic idea is that each line item is a person, and each column is a field in a form for that person. The fields themselves are dynamic (and implemented as column gr...
stackexchange/codereview
Valgrind reports error Invalid read of size 8 in the following code. I have an array declared like, struct symbol *st[PARSER_HASH_SIZE]; When my program is initialized, all the elements in this array are initailzied as 0. memset(&st[0], 0, sizeof(st)); My program creates instances of struct symbol and inserts into ...
stackexchange/codereview
I'm trying to use VisualVM to profile on a Mac,with a 64 bit VM, but am having no success. It appears to update only at LONG intervals (I thought it wouldn't profile at all, until I walked away from the keyboard for ten minutes, and came back and found ONE update. Should run every 2 seconds, I believe). Most of the ti...
stackexchange/codereview
I have created a View with multiple page displays. I have specified one as the "default tab" and the other two as "tab" and they all display correctly together on a page similar to this: I would like to be able to insert another tab onto this page with module generated code (not from a view). Is this possible?
stackexchange/codereview
On the website, it says this: One of the most powerful parts of Django is the automatic admin interface. It reads metadata in your model to provide a powerful and production-ready interface that content producers can immediately use to start adding content to the site. In this document, we discuss how t...
stackexchange/codereview
I am using g_convert() glib function to convert utf-8 string to utf-16 big endian string. The conversion is failing. We are getting an error saying "conversion is not supported" Could someone give a clue to overcome this issue. Thanks Following is the piece of code used to convert string from UTF-8. to UTF16 Bigendian...
stackexchange/codereview
I am using AJAX controls in my ASP.net application, and when i run the application locally, everything works fine. Now, I deployed the app to one of testing servers and it looks like all the AJAX enabled controls are not working at all and I can see that there is an error while the page(where I use AJAX controls) is lo...
stackexchange/codereview
When you GET https://encrypted.google.com/search?q=%s Is the %s query encrypted? Or just the response? If it is not, why should Google serve its public content also with encryption?
stackexchange/codereview
I'm using a German Windows XP and created a file name with Japanese characters in the name (どうもありがとうミスターロボット.txt) using the Windows explorer. msysgit console just shows question marks: $ git version git version 1.7.2.3.msysgit.0 $ git status # On branch master # # Initial commit # # Untracked files: # (use "git add ...
stackexchange/codereview
I have a feeling there is a simple/built-in way to do this but I can't find it. I have a duration (in seconds) in an integer and I want to display it in a friendly format. e.g. 3600 would be displayed as "01:00:00" or "1 hour" or something. I can do it with time_ago_in_words(Time.zone.now+3600) but that feels like a bi...
stackexchange/codereview
I wrote a little PHP script below to demonstrate my question. Run the code below like this: http://localhost/test.php?test=10, then run http://localhost/test.php?test=11, then http://localhost/test.php?test=12, etc. You will see that the number echo'ed to your screen is always 1 digit behind the url number?! Maybe b...
stackexchange/codereview
We have a custom workflow engine and process for a lot of our business needs at my company. I wrote it a few years ago, but recently a lot of our existing projects have been migrated over to use the framework. Everyone loves it but our DBAs. Usually I ignore their advice since they still believe that stored procs run f...
stackexchange/codereview
I tried searching for this or something close, but I couldn't find something to work with. I'm not a programmer and I got this far by reverse engineering existing code. This seems like this would be a common question. I am building a photo-mantage, a mosaic of small images. when the user mouses over, I want a smaller ...
stackexchange/codereview
So that you can understand the data model, I basically have cities and within each one I'll have categories and then inside each category I'll have listings. Here's what I have so far. from google.appengine.ext import db class City(db.Model): name = db.StringProperty(required=True) connections = db.ListProper...
stackexchange/codereview
Having a heck of a time with this; I'm convinced I'm just not getting something completely obvious as I can't imagine this being this difficult intentionally. Everything else works in my form, but upon initial display, the check boxes are not checked when they should be. Here's the relevant erb: <%= form_for :project, ...
stackexchange/codereview
I'm having a BIG touble when adding duplicate contact fields in Android 2.1 update 1 please have a look at my code: ArrayList<ContentProviderOperation> op_list = new ArrayList<ContentProviderOperation>(); op_list.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI) .withVal...
stackexchange/codereview
I'm going through a tutorial here: http://mobile.tutsplus.com/tutorials/android/android-sdk-development/. I have finished the tutorial and I've set up my debug configuration. When I actually try to run the debugger I see a popup that says: "Your project contains errors. Please fix them before running your application."...
stackexchange/codereview
I'm trying to implement Git to manage creative assets (Photoshop, Illustrator, Maya, etc.), and I'd like to exclude files from Git based on file size rather than extension, location, etc. For example, I don't want to exclude all .avi files, but there are a handful of massive +1GB avi files in random directories that I ...
stackexchange/codereview
I can do sudo $ service apache2 graceful and it'll do a graceful restart, but looking at /etc/init.d/apache2, the only way I can do a graceful shutdown is is running $ /usr/sbin/apache2ctl -k graceful-stop But that results in a PID error: httpd (pid xxxxx?) not running Obviously Ubuntu/Debian does not mean for me to ru...
stackexchange/codereview
I am trying to override the functionality of a method of a java type instance in my Groovy code but I am getting a classcast exception. I looked at the guide posted here but I can not get it to work. Since my actual problem is a bit of mess, below is some runnable example code that fails with the same error. In the ...
stackexchange/codereview
Is there a way to get the max number of user filled cells in an excel sheet without passing a range or iterating through max cells per excel spreadsheet? right now I have Imports Excel = Microsoft.Office.Interop.Excel Private Sub DoStuff() Dim oApp As New Excel.Application Dim oWB As Excel.Workbook D...
stackexchange/codereview
I want to be able to use methods that I haven't required() at the beginning of the file. Something like this: var contact = require('contact'); person = contact.create({ 'name': createName() }); Here I want to use the function createName() even if I haven't required() it explicitly. Here are examples in Ruby: # B...
stackexchange/codereview
if i use namespace :helpcenter do get "hh/logout" get 'hh/login' end it will match the url helpcenter/hh/logout my question is how to let these method mapping to the url /hh/logout didn't contains the module name
stackexchange/codereview
I currently have an asp form that uses jquery for two elements: an image upload and a datapicker. The code that implements the image upload is $(function() { $("#wcpImage").makeAsyncUploader({ upload_url: "/Business/ImageUpload", flash_url: '../../Scripts/swfupload.swf', button_image_url: '../../C...
stackexchange/codereview
EXPLAIN EXTENDED SELECT id, name FROM member INNER JOIN group_assoc ON ( member.id = group_assoc.member_id AND group_assoc.group_id =2 ) ORDER BY registered DESC LIMIT 0 , 1 Outputs: id select_type table type possible_keys key key_len ref rows filtered Extra 1 SIMPLE group_assoc ref member_id,group_...
stackexchange/codereview
Problem Given a set of known cartesian points (set A), and a 2d transformation (rotation, translation, scale) of some subset of those points (set B), find the orientation of the subset (rotation, translation, scale) relative to the original set of points. I.E. Suppose I take a "picture" of a known set of 2d points on ...
stackexchange/codereview
Hai Friends, I want to invoke or fire the onclick event for Table Row when the user clicked a particular table row in the UI. This is my xml code <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/table_bars" android:layout_width="wrap_content" android:layout_heig...
stackexchange/codereview
Is it possible to open a csv file such as: a,b,c,d,e,f,g,h And have DOS read it in (in a batch file), check the data and then remove it from the file under a certain condition? Pseudo code: open csv file for each letter if letter is e remove e from csv file close and save csv file EDIT: If I change my dat...
stackexchange/codereview
All, I am seeing some really weird behavior when I run a query in terms of performance between using a variable that's value is set at the beginning to actually using the value as a constant in the query. What I am seeing is that DECLARE @ID BIGINT SET @ID = 5 SELECT * FROM tblEmployee WHERE ID = @ID runs much faster ...
stackexchange/codereview
I'm new to Java and also new to while, for, and if/else statements. I've really been struggling with this beast of a problem. The code and description is below. It compiles, but I'm it doesn't calculate as expected. I'm not really sure if it's a mathematical logic error, loop layout error, or both. I've been grinding ...
stackexchange/codereview
I found this programming problem while looking at a job posting on SO. I thought it was pretty interesting and as a beginner Python programmer I attempted to tackle it. However I feel my solution is quite...messy...can anyone make any suggestions to optimize it or make it cleaner? I know it's pretty trivial, but I had ...
stackexchange/codereview
Where do I start? Is there some sort of API - or something I can get access to that allows me to format articles and send them to my kindle? I would like to do this in Rails. Edit: For further clarity, I guess my real question is, how does instapaper.com get articles from the web to my kindle? Can someone explain the t...
stackexchange/codereview
I have 6 C++ header files. There are a lot of includes so I tried to make it so that I use as little as I can. But I keep getting an error from the very beginning saying that a class "Agent" is undefined. I defined it and included it and can't find the problem here are the 2 header files that are causing the problem...
stackexchange/codereview
As i m a cocoa learner/beginner,can u give me a sample code for developing "kidlogger" in mac using cocoa application?
stackexchange/codereview