instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
i inherit from UIButton but i found a problem how to initialize it to an UIButtonRoundedRect i wrote this to initialize my heritated button -(id)initWithEvent:(NSDictionary*)myEvent{ self=[super init]; self.event=myEvent;//if i use what Erdemus said event is not allocated return self; } the type of button have...
stackexchange/codereview
Getting this every time I attempt to CREATE a particular entity ... just want to know how I should go about figuring out the cause. I'm using Fluent NHibernate auto-mapping so perhaps I haven't set a convention appropriately and/or need to override somethings in one or more mapping files. I've gone thru a number of po...
stackexchange/codereview
I'm developing an app in Python for Google App Engine. When I run the deployed app from appspot, it works fine unless I'm accessing it for the first time in over, say, 5 minutes. The problem is that if I haven't accessed the app for a while, the page renders with the message Status: 200 OK Content-Type: text/html; c...
stackexchange/codereview
Can we have aliases(some form of metadata) for input parameters in a stored procedure? EX: @busDate to be called as 'Business Date'
stackexchange/codereview
I am desperetly trying to deploy my Symfony app with Rsync. I instally cwRsync and it somewhat works, at least SSH does. My app is located in E:\xampp\htdocs\MyProject. Rsync actually does create one directory on my Server but other than that, I only get permission errors. Now, this seems to be a common problem, howeve...
stackexchange/codereview
I want to convert the string "15,678" into a value 15678. Methods parseInt() and parseFloat() are both returning 15 for "15,678." Is there an easy way to do this?
stackexchange/codereview
Am I missing something here? Does new-webserviceproxy not support proxy credentials? Corporate environments invariably use proxy servers to talk to the rest of the web and I can't seem to get new-webserviceproxy to talk through ours. I get a 407 proxy authentication required error in return - the credentials argument i...
stackexchange/codereview
I am constructing a collection of objects, and need to use inheritance on a base class - I have been trying for hours in various ways and can't get this to work whatsoever - the error is always "Object reference not set to an instance of an object." The idea in the example below is that an object is instantiated, and ...
stackexchange/codereview
I have a stateless bean with bean-managed transactions, and a method like this: @Stateless @TransactionManagement(TransactionManagementType.BEAN) public class ... { @Resource private UserTransaction ut; @EJB private OtherStatelessBeanLocal other; public void invokeSomeMethods() ut.begin...
stackexchange/codereview
First time using JSF, and I'm sort of confused about how getRowData() works. All I found while searching around the internet is that it returns the "currently selected row" in a data table, but I couldn't find out how it decides which row is the selected one. For example, I have this code for a data table: JSP: <h:da...
stackexchange/codereview
I'm calling toString() (or difference.normalizedStandard().toString()) on a Period object, and getting "PT-10H0.317S" Why is the default toString so inconvenient? What does this string even mean?
stackexchange/codereview
I've created my own Razor view class, thus: public abstract class MyWebViewPage : System.Web.Mvc.WebViewPage { public MyWebViewPage() { } } I use this class in my cshtml file, thus: @inherits MyWebViewPage <html> ... </html> I want to determine the physical location of the cshtml file in the construc...
stackexchange/codereview
I'm looking for a good approach to sometimes pause an action (function/method call) until the user confirms that he wants to do a specific part of that action. I need to do this in an environment that doesn't allow code execution to stop (ActionScript in my case, but an approach for JavaScript should be identical). To ...
stackexchange/codereview
I'm trying to convert a project, which has images, into a static library. The code that gets the image is as follows: [UIImage imageNamed:@"foo.png"] When I include this library into another project, the image doesn't load. However, if I copy the images into the new project, then it does load. Is there any way I can g...
stackexchange/codereview
In OS X kernel space, is there a way to upgrade the permissions of a mounted USB storage device, a DOK, say, from read only to read/write? I use the init method of IOMedia: bool init( UInt64 base, UInt64 size, UInt64 preferredBlockSize, IOMediaAttributeMask attributes, bool isWhole, bool ...
stackexchange/codereview
The size of the JLabel is larger than the size of the image. With the code below, the border is created around the JLabel and not around the image. How can I created border on the image and Not on the JLabel? ImageIcon icon; Border border = BorderFactory.createLineBorder(Color.RED,5); Image image = icon.getI...
stackexchange/codereview
Does anyone know what the background colour is for the jetpack theme?? http://www.silverlight.net/content/samples/sl4/themes/jetpack.html We're using the theme, but I can't see that light silver background colour which has a gradient through it.
stackexchange/codereview
my $sth = $dbh->prepare("SELECT id FROM user WHERE group == '1' ORDER BY id DESC LIMIT 1"); I was trying to get the id of the last row in a table without reading the whole table. I am already accessing via: my $st...
stackexchange/codereview
I'm currently working on a small-terminal based game like the good old MUD's, written in C#. Since I'm hosting it on Googlecode, I used an external .sh-Script to do svn up if the project exists and svn checkout if it doesn't. My goal is to include SVN directly into my executable to make it completely platform inependen...
stackexchange/codereview
I'm using MFC's CArhive class to save off a project file for my app. One of the class names is wildly inaccurate and I'd like to change it, but simply changing the name everywhere renders previous archive files useless with an archive error. Is there a way to change the name of the archived class without rendering all ...
stackexchange/codereview
I am using microsoft chart controls in VB.net. The graph data currently comes from my database, but all the series and chart formats were made before runtime. I want to know how to make charts on runtime, being able to select the x axis from my dataset and multiple y columns from my dataset. Thanks
stackexchange/codereview
Weird... Originally i thought that php was not correctly handling large file uploads (800mb-2gb) now i've figured out that the file is moved correctly, but the mysql query that enters the file info into the DB seems to be skipped when large files are uploaded. The mysql query is executed like it should be when small fi...
stackexchange/codereview
I encountered negative zero in output from python; it's created for example as follows: k = 0.0 print(-k) The output will be -0.0. However, when I compare the -k to 0.0 for equality, it yields True. Is there any difference between 0.0 and -0.0 (I don't care that they presumably have different internal representation; ...
stackexchange/codereview
I'm new to using NHibernate/Fluent NHibernate and am trying to figure out how to use it with an existing database structure. I would like to get it working without changing the DB structure, if possible. The database structure I'm trying to map loosely resembles: Forms ---- FormId CompletedBy Records ------- RecordId...
stackexchange/codereview
I know paragraph and headings are block elements, so that's why I'm having a time wrapping my mind around what's the best way to do this accessibility-wise. Let's say for instance I have copy like this: *This is the heading.*This is the paragraph, blah blah blah blah blah blah blah blah blah blah blah blah blah blah bl...
stackexchange/codereview
For a wordpress theme I convert colored images to black/white images when you go over them. But when you move your mouse really fast sometimes the image remains in black & white till you go over them again. How can I fix this to make sure that when I don't hover the images it won't stay on black & white? Link to demo: ...
stackexchange/codereview
Does anyone know if it's possible to replace text inside tags. For instance... "If I had a row that contains this text, I would want this text to be outputted but I would want <hidden>This text to not be selected</hidden>" Any ideas?
stackexchange/codereview
I'm having issues with redrawing the figure here. I allow the user to specify the units in the time scale (x-axis) and then I recalculate and call this function plots(). I want the plot to simply update, not append another plot to the figure. def plots(): global vlgaBuffSorted cntr() result = collections.d...
stackexchange/codereview
On the Cassandra's API description it is stated that get_count is not O(1). What is it time complexity then? At most O(log(n)), I expect!
stackexchange/codereview
I have a ScatterViewItem which contains a Canvas <Ellipse x:Name="Outer_Ellipse" Fill="White" Width="200" Height="200"></Ellipse> <Ellipse Fill="Red" Canvas.Top ="15" Canvas.Left="15" Canvas.Right="15" Canvas.Bottom="15" Width="170" Height="170" ></Ellipse> </Canvas> ...
stackexchange/codereview
I've searched high and low through this forum and thus far I don't see an answer. And, I think I beginning to lose my mind. Could be I'm just missing it as I am NOT a programmer. I am a visual designer that can usually install pre written code without to much difficulty. And, indeed I have installed FancyBox and have i...
stackexchange/codereview
I'm currently learning about class inheritance in my Java course and I don't understand when to use the super() call? Edit: I found this example of code where super.variable is used: class A { int k = 10; } class Test extends A { public void m() { System.out.println(super.k); } } So I understand t...
stackexchange/codereview
The code below gives me three compiler errors. They are as follows: The type or namespace name 'TextWriter' could not be found (are you missing a using directive or an assembly reference?) The name 'File' does not exist in the current context The name 'filename' does not exist in the current context Can anyone provid...
stackexchange/codereview
In my application i want to prevent any other user from opening the record of particular client while somebody has already opened it. And show him somekind of error or alert. How should i do that?? I appreciate any answers or suggestions. Thanks,
stackexchange/codereview
I am writing a utility at work which converts our relational DB at work to a complex JSON object and dumps to files grouped by subject. I then would like to import these files into MongoDB collections using the mongoimport tool. Our data includes timestamps which represent dates occurring before the epoch, the appropri...
stackexchange/codereview
They are pretty popular but I never have the "balls" to use them. Basically, I never know where they are going to stop. Do they just execute the next line of code? If I do: for(int i = 0; i<10; i++) if(i % 2 == 0) //this is included in the for loop and the if statement function(); // is thi...
stackexchange/codereview
I am aware that SoundPool was intended to handle small fx like sounds and I made sure my 4 sound clips which I want to play one by one in some sequence are small enough. I used ogg quality 0 and clips are 35kb, 14kb, 21kb and 23kb totaling 92kb of compressed audio. I have no idea how to estimate what the uncompressed s...
stackexchange/codereview
I have created a custom validation attribute which checks to see if a string has the specified minimum length [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public sealed class MinimumLengthAttribute : ValidationAttribute { public int MinLen...
stackexchange/codereview
Is it possible to see the statements of Groovy script as it executes, like the output of running bash with -v or -ex? What would it take to do this programmatically?
stackexchange/codereview
so i have the following line BOOK_NAME_VALUE STRING Programming i need to make an array contain this a[0] = "BOOK_NAME"; a[1] = "VALUE"; a[2] = "STRING"; a[3] = "Programming"; the 2nd value of the array is the last part of the 1st part of the line; the line separator is white space ' ' the 1st part separator is '_' ...
stackexchange/codereview
I'm trying to find a way to have the SQL Server 'SQL Agent' run a particular piece of code on job step events. I had hoped that there was a way using SMO to register a callback method so that when job steps begin or change status, my code is called. I'm not having any success. Is there any way to have these events push...
stackexchange/codereview
I am quite new to ruby, I came across the following code in rails, but I don't know how the "<<" operator works and what it does in the below code def <<( rate ) r = Rating.new r.rate = rate r.rateable = proxy_owner ... ... end class << ActiveRecord::Base ... ... end Can anybody explain to me? Edit: here...
stackexchange/codereview
I want to create a Regex in c#,I write the following code: string temp = "happ"; Regex reg = new Regex(temp + @"((\G(iness))|(\G(ily))*)\b"); string str = "happily happiness happy"; int x = reg.Matches(str).Count; My target that only "happily" and "happiness" will be found, so ...
stackexchange/codereview
lets say I have four PHP files as such: www/global.php <?php function doAwesomeStuff() {} www/child1.php <?php include ("global.php"); function Something1() {} www/child2.php <?php include ("global.php"); function Something2() {} www/subdirectory/grandchild.php <?php include ("../global.php"); include ("../child2.p...
stackexchange/codereview
// ((++currentEntry)--) is equivalent to (currentEntry + 1). Kind of. menuEntries.insert((++currentEntry)--, newEntries.begin(), newEntries.end()); So I have the world's worst piece of code here. Is there a better way to do this? When using '+ 1' I get this: source/menu.cpp:146:37: error: invalid operands to binary ex...
stackexchange/codereview
how do i open an xml file using excel with c# winforms? i am saving data to an XML file and i need the user to be able to see the file as soon as the application updates the xml file. i need the file to be opened with excel
stackexchange/codereview
Is it possible to (legally) sell WP7 apps outside of Microsoft's App Hub? Are there license restrictions to this? Is it ideal to even approach app distribution in such a manner (i.e., are there other sites/services that are easily accessible by WP7 users to find new apps).
stackexchange/codereview
In .htaccess on Apache2, how do you redirect all capitalization variations of a hostname to a canonical lowercase version, via 301 redirect, and keeping the rest of the path unharmed. Subdomains (or not) should do the same as well. Additionally, accessing via an IP should not redirect. examples: http://Example.com/fo...
stackexchange/codereview
Is there a library / framework available for use in a .NET environment that takes care of the low level interprocess communication to support active/passive clustering for a cluser with any number of nodes. What I mean is something that (for example) might have the nodes communicating/heartbeating with each other, voti...
stackexchange/codereview
The problem is really that specific. I need a library in java that can take HTML content and generate text in the same format that is generated by the Linux lynx program. I need to expose data provided by 3rd party servers to end users on Android. Data format is ancient, in badly formatted HTML, so much that I've trie...
stackexchange/codereview
LLVM/Clang are considered good C++ code bases. I wonder why C++ exceptions are not used in them at all? Memory is managed using something like pools, and errors are reported with returned values and codes like in C. They are even wrapping operator new to be placement new that returns error and not exception when no mem...
stackexchange/codereview
I would like to direct all url requests to a single php file. This also includes any request to images and javascript files, which will be directed to that single php file. Why? For example, this would allow me to send a compacted version of a javascript file to browser. How can this be done best, and what may be the...
stackexchange/codereview
How can I specify the application name when connecting to Microsoft Sql Server from PHP? In .Net applications the connection string can specify "application name=XXXX" but I don't see a way to do that in PHP. We use FreeTDS with mssql_connect. I have different sources writing to the database and I want to distinguish t...
stackexchange/codereview
I'm trying to write my first xsd which will have JAXB mapped POJOs generated from it, to be used in a webservice. There will be three related classes which I would like to see expressed in xml as... <stringKey systemName="string key 1" businessName="Customer">Glorious strings</stringKey> <numberKey systemName="number k...
stackexchange/codereview
I'm using Ajax.BeginForm, and I was wondering if there is a way I could specify one of the routevalues using javascript? like Ajax.BeginForm("CastVote", "Vote", new {VotingType = "javascriptfunctiongoeshere", add = 1})
stackexchange/codereview
Basically I have a jQuery function that checks if the user is near the bottom of the page and loads more stuff. When the document loads this is ran, to check. <script type="text/javascript"> $(document).ready(function() { var number = 5; offset = 0; $(window).scroll(function() { if($(window).scrol...
stackexchange/codereview
$query = "INSERT INTO event (eventDesc) ". "VALUES ('".$eventDesc."') WHERE event = 'Testing'"; is there something wrong with this statement? I'm getting error saying: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHE...
stackexchange/codereview
I want to send notification on yammer using ANT, How to ? We are doing build process in that when Our build succeed. Then we want to send notification (feed) to Our members present in Group on yammer. So all members will know that "Build process successfully Done". Is there any way to send notification(feed) on yammer ...
stackexchange/codereview
I know Apple said all UI-related operations should be carried out on main thread. So my question is "all UI-related operations" really mean every possible UI-related operaton? For example, I will addSubview ViewB to ViewA in a separate thread. Should I always use [ViewA performSelectorOnMaintThread:@selector(addSubview...
stackexchange/codereview
i'm trying to know the database space available. In J2ME you have getSizeAvailable(), but there is no direct replacement in Android, so i thought about doing getMaximumSize() minus database size, the thing is i just can't find a way to know the db actual size, at runtime. Thanks!
stackexchange/codereview
I hope someone can help me with this. I am trying implement a 'number of users online' counter on the home page of my site. I remember in the bad old days of ASP I used to be able to keep a counter going with a session.onstart and session.onend. How do I do it in Django? Cheers Rich
stackexchange/codereview
Currently our company uses an escalation database within Lotus Notes. Our escalation database handles issues that can't be solved by L1-L3 support and are therefore escalated to development. This database is used by the entire company and thus encompasses many departments (hardware, firmware, software) and products. ...
stackexchange/codereview
Suppose I have a Google maps co-ordinate in one sublocality, is it possible to find surrounding sublocalities in, say a 5 mile radius? My guess is we can probably zoom into that co-ord at a high zoom level, like 13 or 14,but can we capture the labels on the map around our co-ord? That would be fine for my purposes. Has...
stackexchange/codereview
I would like to have these question marks by certain fields where if a user mouses over it brings up a window with a description of the field. Does anyone know any good tutorials/ways to do this?
stackexchange/codereview
I have following problem: I display an HTML-Document with an JTextPane. In my HTML-Text there are &shy; (shy at w3.org) to make a soft-hyphenation. My problem is, that no hyphenation appears. Is there some kind of flag, which I don't know, to use these option? Following Programm will show the problem: package com.dvel...
stackexchange/codereview
Im trying to code a scenario wherein there is a routine that takes in input as the data to encode and other parameters like barcode height and width. The routine then encodes the barcode and converts the data into the barcode encoding form and returns this as a he string. I have tried out a few external libraries and h...
stackexchange/codereview
I'm trying to parse many string dates to Date(s), some with time part, others without, with the "dd/MM/yyyy HH:mm" format. public static Date StringToDate (String format, String theDate) { SimpleDateFormat df = new SimpleDateFormat(format); Date retDate = null; try { df.setLenient(true); retDate = df.pars...
stackexchange/codereview
A question was posted about chained comparison operators and how they are interpreted in different languages. Chaining comparison operators means that (x < y < z) would be interpreted as ((x < y) && (y < z)) instead of as ((x < y) < z). The comments on that question show that Python, Perl 6, and Mathematica support cha...
stackexchange/codereview
I have a lengthy script that tries to insert float values with quotes (ie. '15.6') in float fields using T-SQL. I have reasons to believe this script works in its developer machine, but because of the quotes it fails on my SQL Server 2008. Is there any way to configure my server to ignore those quotes when the column i...
stackexchange/codereview
n my application , i have a textbox where user can paste Procedure , i need to parse this SQL and get the table names , joins , Columns ,Columns schema etc. is there a easy in c# rather than using string manupulation to do this activity?
stackexchange/codereview
Does Game Center offer any support for player avatars, e.g in a multiplayer game? If not, presumably an app will have to retrieve an avatar from the local device?
stackexchange/codereview
I'm trying to change the name of a JCR node, but I have no idea how? Has someone of you some hints? Many thanks.
stackexchange/codereview
Is there any alternatives to manipulate Microsoft Word document (2003 and above) without using Microsoft.Office.Interop assemblies ? Is it possible to manipulate Microsoft Word document using native .NET assemblies without using COM ? Is there any third party components that provide native manipulation of the Microso...
stackexchange/codereview
This is a really weird one. I have some code that is happily working on version 2.1.1RC1 of the php5-imagick module. It's basically just a class I wrote that extends the Imagick class and manages images stored in a database. Since upgrading to version 3.0.0RC1 (thankfully only on my dev box) things have gone to hell....
stackexchange/codereview
I get a compile error for a create function I use with the insert function. It works though when I do the different calls in the if clause, but I want to move it to a seperate create function instead. Any help regarding the compile error I get is appreciated |76|error: cannot convert list_link*' tosorted_list::list_li...
stackexchange/codereview
I have had a small game (Written in C#) which I've built up over time (started in vb6/bitblt) which I would like to convert to Silverlight, essentially to give me a good interesting project to learn the platform. My question is simple, (the game is a tile based game) I need to render somthing. How is this performed in ...
stackexchange/codereview
I am currently working on an update view for a model I have in ASP.NET MVC. The model is called Document and has child Links: [Association(ThisKey = "AssetID", OtherKey = "AssetID")] private EntitySet<Link> links = new EntitySet<Link>(); public IQueryable<Link> Links { get { return links.AsQueryable().Select(l => ...
stackexchange/codereview
I'm trying to use the Easing plugin in order to get rid of the awful jumps and stuttering in my slideDown() effects: $('.message').each(function (index) { var t = $(this); t.hide(); t.slideDown(3000, 'easeOutQuad'); }); The effect is still just as choppy, and I noticed 6 instances of th...
stackexchange/codereview
I want to add entry date + 1year to a column called finishing date. If the entry date is in leap yr, i need to add 364 days, if not 365 days. Is there a way to check this in c#, using current datetime's year & manipulate leap yr/not, then add the days. Thanks.
stackexchange/codereview
So according to the optimization tips at http://wiki.python.org/moin/PythonSpeed/PerformanceTips , joining strings should be done with out = "<html>%(head)s%(prologue)s%(query)s%(tail)s</html>" % locals() and not out = "<html>" + head + prologue + query + tail + "</html>" My question is, is this the same for if I wa...
stackexchange/codereview
I have Visual Studio 2010 Premium and Expression Blend 4 Premium installed on Windows XP. Blend was installed sometime after VS2010 was. When I right-click a solution file in VS2010, I'm expecting to see an item "Open in Expression Blend" in the context menu, but I don't. I wasn't sure if this was supposed to be a fe...
stackexchange/codereview
I want to check for the existence of a file on the CDN through my site's code via the Rackspace Cloud API. What would the best way to do this be? I am currently using the following: ... initialize API ... Dim containerItemList As List(Of String) = connection.GetContainerItemList("MyCDN") If containerItemList.Cont...
stackexchange/codereview
However, they work in other examples, even locally, when I download the source. Code: //Button on(release) { onr_save = SharedObject.getLocal("onr"); onr_save.saved = "true"; //onr_save.flush(); trace("kk: "+onr_save.saved); } . //Frame onr_save = SharedObject.getLocal("onr"); load_game._visible=false;...
stackexchange/codereview
I'd like to look at some good web-app code written in python, just so I can learn some of the patterns / see how I can improve my code. I've already googled around a bit, used google code search and run a search on github too - but haven't come across a well built, comprehensive app. Perhaps a book could work as well. ...
stackexchange/codereview
There are some other SO questions about concurrency but they don't quite address my scenario. So let's say that I have a game where users interact with each other, fighting and whatnot. At any given time, a player could potentially be involved in multiple interactions with other players, all of whom can see the event h...
stackexchange/codereview
I have a database with me consisting of certain tables. I have written a query to fetch some fields from a table and stored those fetched values in some variables. Now, I am looking for a way which will allow to assign values fetched from database to the XSL variables. I am trying to generate a HTML page using fetched ...
stackexchange/codereview
I have an application that uses .net Framework 3.0 as its target framework. When creating the setup and deployment project for my app, i am including in the prerequisites the .net framework 2.0 bootstrapper and the .net framework 3.0 bootstrapper. Will it be enough to include just the 3.0 boootstrapper and ignore and e...
stackexchange/codereview
I have the following VBA code (from MS Access 2007). The code creates a new workbook and adds a dropdown to a cell. This small snippet adds a drop down to a particular cell and the adds some items to it. Dim myRng As Range Dim myDD As Dropdown Set myRng = wSheet.Cells(row, col) With myRng Set myDD = .Parent.DropDow...
stackexchange/codereview
I'm currently writing a macro using the MS Project 2003 Visual Basic editor, for which I need to save a path to an template excel spreadsheet. I'd like the user to be able to change the path and for the setting to be persistently saved somewhere. Is there a convenient location to save persistent data using VBA for MS ...
stackexchange/codereview
Given the following RSA keys, how does one go about determining what the values of p and q are? Public Key: (10142789312725007, 5) Private Key: (10142789312725007, 8114231289041741)
stackexchange/codereview
So I've been searching around for a week or so, and it appears to be quite possible to start an Activity from a Service, the general order of things going like this: Intent myIntent = new Intent(); myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); myIntent.setComponent(new ComponentName("[package]", "[class...
stackexchange/codereview
I have a div which contains a series of span tags, each containing a string of text. I'd like to attach a jQuery click event to all of the spans so that when the text inside any span is clicked, the entire line of text (dom > innerText object) will be auto selected to facilitate the drag/drop or copy/paste of the text ...
stackexchange/codereview
How can you add the ability to use devise_invitable in the controller. I wan to add additional fields like message, proeject_id along with the invitation but have no idea where to start? Here's devise_invitable: link text
stackexchange/codereview
Got an issue, and need your advices I just started writing an editor grid. (I will actually use this grid as a search filter editor, i.e. columns with criteria name, operators and values). Now, for the value field, I want to have different edit controls for different rows. For instance, when a criteria type is string ...
stackexchange/codereview
I'm programming in Classic ASP. I'm trying to do the paging. My backend is SQL CE 3.5. Unfortunetly, it doesn't support paging in SQL Query (Like row_number() in sql server). So I go with ASP Paging. But when i ask to the recordset, give me the first 10 records by setting the rs.PageSize and rs.AbsolutePage and all, it...
stackexchange/codereview
I just asked an SQL related question, and the first answer was: "This is a situation where dynamic SQL is the way to go." As I had never heard of dynamic SQL before, I immediately searched this site and the web for what it was. Wikipedia has no article with this title. The first Google results all point to user forum...
stackexchange/codereview
Okay, I have been researching on how to do this, but say I am running a program that has a whole bit of output on the terminal, how would I clear the screen from within my program so that I can keep my program running? I know I can just type clear in terminal and it clears it fine, but like I said, for this program it ...
stackexchange/codereview
I have seen this question answered but the answers do not apply to me. I am a beginner to Android and I am trying to run HelloWorld with the Eclipse Plug-in that I have downloaded Api's 7 (2.1) and 8 (2.2) and have created a virtual devices for each version. I am running eclipse in xp with 1.6.0_22-b04 (32bit) no 64 b...
stackexchange/codereview
Have a problem where my Label is not appearing. But the slider does. Its one of these bizarre cases that seems there is no logical reason. Anybody able to make sense of this? else if (indexPath.row == 4) { Filters *filters = [Filters sharedInstance]; CGRect frame = CGRectMake(100, 10, 80, 23); costSlider...
stackexchange/codereview
iPhone 3GS: builds and installs just fine New ipod touch: "This provisioning profile does not have a valid signature (or it has a valid, but untrusted signature)." All the related posts say to start from scratch on provisioning, but it works on my iPhone and iPad just not the iPod touch. Any ideas? Thanks.
stackexchange/codereview