instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I've recently stumbled across a few blogs that say the ASP.NET Ajax Library is dead, in particular: http://encosia.com/2010/10/04/understanding-jquerys-impact-on-microsoft-and-asp-net/ http://weblogs.asp.net/toddanglin/archive/2010/04/19/microsoft-ajax-client-library-is-dead-long-live-jquery.aspx Is this generally tr...
stackexchange/codereview
In a previous post (http://bit.ly/bbIthV) i asked how to Group a list of Persons by their nested Address.State, when Address might be null. Jon Skeet gave a perfect answer to my question: //Create a dummy replacement for when a person has no addresses Address dummyAddress = new Address { State = "" }; people.GroupBy(p...
stackexchange/codereview
I have an app I am working on that is a universal iPhone/iPad app. I have been wanting to use analytics for quite some time now and so I went in and setup the Flurry sdk, implemented a few of the methods, and I was set to go. A few other things happened with the app that made me think I should update my SDK, so I went ...
stackexchange/codereview
I'm trying to find a maven plugin that sends a HTTP request to the URL specified, parses response against some regular expression, and fails build if the matching fails. Do you know any?
stackexchange/codereview
I'm writing an Android application that plays back voice mails using MediaPlayer, which are just WAV files that have been sent to the device. When I play the file, it's played on the device's speaker, or else it plays through headphones if they're plugged in. What I want to do is play the file so that it sounds to the...
stackexchange/codereview
I am sending e-mails using the indy components TidSMTP and TidMessage. The mails I recieve are without accents. If I do for example: MyTIdMessage.Body.Text := 'Tèst'; As i recieve the e-mail I see "Test" instead of "Tèst" Is there a way to tell TIdMessage not to ignore accents or is this bug? Note: I am using Indy 10....
stackexchange/codereview
How can I detect whether or not an Image View has a picture in it upon a button click. I had a class that displays a picture and some results, but I don't want the user to be able to access those results (pushing the button) until the results have been written to that class. So, I figured I needed to check to see if t...
stackexchange/codereview
I do not create big websites, so I'm mainly a user of openid and it's various implementations. I use openid here in SO, and I like it because I'm using my gmail account for everything (I plan to exit gmail in the future, but now I'm using it for everything), so I don't have to remember another login/account. So, in my ...
stackexchange/codereview
Hi I am facing this problem while building a source using ant Problem: failed to create task or type propertyfile Cause: the class org.apache.tools.ant.taskdefs.optional.PropertyFile was not found. This looks like one of Ant's optional components. Action: Check that the appropriate optional JAR exists in ...
stackexchange/codereview
What is the best methods for protecting a site form DoS attack. Any idea how popular sites/services handles this issue?. what are the tools/services in application, operating system, networking, hosting levels?. it would be nice if some one could share their real experience they deal with. Thanks
stackexchange/codereview
First of all, i couldn't use "code sample" therefore i am adding my codes as stated below: Header.h #ifndef MYHEADER_H #define MYHEADER_H #define EMPTY_TOS -1 #define MIN_STACK_SIZE 5 #define FALSE 0 #define TRUE 1 struct Node; typedef struct Node *Stack; void *PopStack(Stack); ...
stackexchange/codereview
Hi I have an arrayList which has some objects.also my objects has two fields (1) name (2) cost I want to sort this arrayList with its cost field.is there any special method that do it for me or I should write it myself?also if there is some method for doeing this ,what is its time complexity(O(n),(O(nlogn))? thanks
stackexchange/codereview
Take a scenario as shown below: Class A : public B { private: C obj public: A() } Class B { B(int , int) } Class C { C(); C( int , int) } Is there a way by which I can call the non default constructor when initialising an object of Class A? I know that to initialize B, I could do something like: A():B(int, int) /...
stackexchange/codereview
I am using Jetty to deploy a production website. Let's assume my website is foo.com When I point my browser to a context which does not exist (say foo.com/notavailable), Jetty shows an error page with information of all the contexts which are deployed on it. It looks something like this: No context on this server matc...
stackexchange/codereview
I'm working with WebForms. HtmlTableCell does not have a CssClass property. I can do this: <td class="whatever"></td> But not this: myTableCell.Class = "whatever"; How can I apply a CSS class to my HtmlTableCell?
stackexchange/codereview
In my .htaccess file I have the following rules: RewriteEngine on RewriteBase /myblog.com/ RewriteRule ^author/([^/]*)/?([^/]*)/?$ blog/author.php?author=$1&contactid=$2 [L] RewriteRule ^blog/([^/]*[^/index.php])/?([^/]*)/?([^/]*)/?$ blog/index.php blog=$1&category=$2&article=$3 [L] My problem is th...
stackexchange/codereview
I have a C# Windows Forms application that extracts rows from a particular column. But, many of the rows have duplicate entries (which is fine), however, I only want to display all unique row values of this one column. Is there a MySQL query that you know about that can do this? Thanks! :)
stackexchange/codereview
There is no left assigned for the div, I use $('#').css('left'); to get the left value, but it shows auto. How do I get the left value of the div. Thanks Jean
stackexchange/codereview
Say I create a simple web service that adds two numbers together. I send the service two numbers, I get back an answer. If you like better, I send an account, I get back personal information. Either way, am I using soap and not knowing it? I thought I was calling my web service with an http url and my service is ret...
stackexchange/codereview
I want to programmatically clear the history of the android maps (and navigation) application. I know there is a way to clear the browser history via Browser.clearSearches(getContentResolver()); and the corresponding permission: com.android.browser.permission.WRITE_HISTORY_BOOKMARKS and this works fine (2.2.). I could...
stackexchange/codereview
I have a UITable and when I click on a row I load a set of images. I create the images with UIImage *image = [UIImage imageWithData:data]; The problem is that ever time I click on the same row, the images are re-allocated into memory, like if no cache it is used and no memory is freed, so the allocated memory keep inc...
stackexchange/codereview
I'm using Windows 7 (all latest updates installed), and currently have DirectX 11 installed (according to dxdiag). I'm trying to follow this tutorial: http://msdn.microsoft.com/en-us/library/ff472340(VS.92).aspx and I can successfully compile the code (Build Solution produces no errors). The emulator starts successfull...
stackexchange/codereview
When a user on my system posts something on my website and they can autopost it to their social networks like Facebook and Twitter. How can I approach such a problem in php? I know I have to access their api's and then...
stackexchange/codereview
how can i debug my django code ?
stackexchange/codereview
I have made a application using c# database and sucessfully made a setup projects that outputs setup files needed to install that application but when i install it on other machine first I have to update installer then framework 2 sp2 and then SQL server and when I tell my client that he would have to do the same he j...
stackexchange/codereview
I'm noticing that there are double icons for an application I recently built. Is this being caused by an issue in my manifest? Or is this an artifact from a previously deleted rev of the apk?
stackexchange/codereview
If I call: ./program hello world then: argc would be 3. argv[0] would be "./program". argv[1] would be "hello". argv[2] would be "world". What's the purpose of passing "./program" as an argument? In fact, it's not an argument at all!
stackexchange/codereview
What's wrong with this—how come the variable foo isn't defined from within onModified() of a Document object? function Document() { var foo = "dfsadf"; this.onModified = function() { alert(foo); }; } // Does not alert; "foo" doesn't resolve new Document().onModified(); I'd like to have public m...
stackexchange/codereview
Hi I am using Voldemort to store my data. My key is a word and values are number of occurrence of the word and the URL. For example: key :question value: 10, www.stackoverflow.com I am using Json object to put my values. My code looks like this import org.json.JSONObject; import com.metaparadigm.jsonrpc.JSONSerializer...
stackexchange/codereview
Background Detection of hash change in the URL and fixing the forward/back button are two requirements for libraries that deal with Ajax history. There's two schools of thought for implementing these libraries. You can have a poller constantly check the URL (bad browsers don't have the onHashChange event). Or you can u...
stackexchange/codereview
I am trying to do the following with weka's MultilayerPerceptron: Train with a small subset of the training Instances for a portion of the epochs input, Train with whole set of Instances for the remaining epochs. However, when I do the following in my code, the network seems to reset itself to start with a clean slat...
stackexchange/codereview
I want to use Javascript / AJAX to show % loaded of SWF. The thing is I cannot edit the ActionScript. I have seen this done before... Any ideas what I could do?
stackexchange/codereview
I'm writing an application in VB.NET and face the following issue. I'm trying to create an interface that will allow the user to select their availability given a range of times and the days of the week. I want to create checkbox controls in a tabular form with two indices that I can use to refer to a certain time rang...
stackexchange/codereview
class Singer { String name; String album; public Singer(){ name="Whitney Houson"; album="Latest Releases"; } public static void main(String[] args) { System.out.println("Name of the singer is "+name); System.out.println("Album Information stored for "+album); } } When i run this code i am finding er...
stackexchange/codereview
Question This is probably something simple I've missed. Let's say I do (in loveley VB): Dim t1 As New Task(Sub() Debug.WriteLine("t1")) Dim t2 As Task = t1.ContinueWith(Sub() Debug.WriteLine("t2")) Dim t3 As Task = t1.ContinueWith(Sub() Debug.WriteLine("t3")) t1.Start() Notice t1.ContinueWith is used twice. What is th...
stackexchange/codereview
AS2 newbie here, and I want to know if anybody can help me with the following code. Basically what I want to do is add another field to an XML file that is already being used to populate a AS2 news scroller that I got from activeden. You will notice that I have tried duplicate the day field and add a month field in but...
stackexchange/codereview
I working on an application as an hobby project. It is written in Java and part of a system to calculate decompression scheme for scuba diving. The problem I have is in the class that stores my diveplan, well it is not realy a problem since it works fine but I got the feeling it can be designed better so i would like t...
stackexchange/codereview
I am trying to figure out if it is possible to set up a cron job that will transfer all files from one folder on my server to another folder and then take a set number of files (files chosen randomly) from another folder and put it in the original folder. If so any hints on how to do this, I have no experience with cr...
stackexchange/codereview
I am creating an application which needs to detect the make and model of the device it is running on (including hard disk size). I have found plenty of post's on how to identify different iPhone model's but can't find any reference to detecting the HD size. Is this even possible? Thanks in advance, Oli
stackexchange/codereview
I'm trying to use YQL's spelling and search suggestions, but as much as I try I cant find a way to change the language/region for the query, how is this done? I want to look for spelling/suggestions in spanish/mexico ("es-MX") I'm pretty happy with the results I get for queries in English, but when looking in Spanish I...
stackexchange/codereview
The context of this question is a debate between C and java users. The C user claims that a C backend is more portable than JVM. This is true if we encounter a platform without pre-existing JVM support or relatively weak support. Has anyone on stack overflow encountered such a platform? Could we assemble a list of e...
stackexchange/codereview
How can I check if Html.ValidationSummary() has any errors? Ultimate result required: <% if(I_HAVE_ERRORS) {%> <div><%= Html.ValidationSummary() %></div> <%}%> In other words, how can I determine "I_HAVE_ERRORS"?
stackexchange/codereview
How can i disable the menu of flash player when I'm navigating a flash file with WebBrowser ?
stackexchange/codereview
I am trying to append the string in the helper function . content_tag(:span, :class => "a") do user.designation end + content_tag(:span, :class => "b") do user.number end In the above, i am trying to append strings before the value user.designation and user.number. like do "Designation : "+ user.de...
stackexchange/codereview
I just following the yii-blog.pdf from the documentation, when I tried to login to gii, it keep showing me the login form all the time. I create a virtual host for this like http://yii.blog and then tried to access from http://yii.blog/index.php?r=gii in the config/main.php 'modules'=>array( // uncomment the foll...
stackexchange/codereview
I am using Spring 2.0.6 and Hibernate 3.2.x on apache tomcat5.5,now we planed to changed our hybernate mapping files into hybernate+jpa support mapping files. for that we created files like this daoConfig.xml <beans:bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <beans: pro...
stackexchange/codereview
I have a page that has a form on it where the user can save or delete a bean. The form backing object has a bean as its property. When the user chooses to delete a bean, there's no need to bind the bean since JPA only requires the id of the bean to be deleted. Is there anyway to tell the Spring MVC not to bind some of ...
stackexchange/codereview
Essentially, the question I'd like to ask is related to the automation of software package deployments on Solaris 10. Specifically, I have a set of software components in tar files that run as daemon processes after being extracted and configured in the host environment. Pretty much like any server side software packag...
stackexchange/codereview
At best, I am a UI novice, but I am a pretty good OO developer (if I don't say so myself). I am confused as to how to work with the designer. I am developing a Windows Forms application. I have a control (TabPage) that I derived from System.Windows.Forms.TabPage that I want to place on a System.Windows.Forms.TabContro...
stackexchange/codereview
We would like to provide our users with a limited set of drag-n-drop fields so they could manage template web forms in an application. The admins would define these templates and the users would enter some data up front which would determine which template they would be shown. Is there a framework or some things I cou...
stackexchange/codereview
Can someone show me how to connect vb.net 2010 to ms access database to get the data and display it in vb.net application that I am doing right now. My project is that I am doing dictionary application with vb.net so every time i put new word in search box, I want the vb.net to get the definition from ms access and dis...
stackexchange/codereview
I have 2 queries: 1). I want to display kind of screen lik Heading ImageButton1 ImageButton2 Value1 Value2 Same way number of records So i have used absolute layout programmatically instead of using xml, is it advisable or there is some other way? 2). At that time of displaying this view, i...
stackexchange/codereview
Is there is any Scripting languages is used for mobile application development? For example java script,vb script is used for web development.Like any scripting language is used for mobile application development along with J2me. Thanks & Regards, Sivakumar.J
stackexchange/codereview
A comment on the PHP manual states: If you are using this method, remember that the array of arguments need to be passed in with the ordering being the same order that the SOAP endpoint expects. e.g //server expects: Foo(string name, int age) //won't work $args = array(32, 'john'); $out = $client->__soap...
stackexchange/codereview
I have a Python (2.7) script that acts as a server and it will therefore run for very long periods of time. This script has a bunch of values to keep track of which can change at any time based on client input. What I'm ideally after is something that can keep a Python data structure (with values of types dict, list, u...
stackexchange/codereview
I have a database in Postgresql 9.0 and I'm trying to use Doctrine ORM 1.2 to generate models from db. Here is my code: <?php require_once 'Doctrine.php'; spl_autoload_register(array('Doctrine', 'autoload')); spl_autoload_register(array('Doctrine_Core', 'modelsAutoload')); $manager = Doctrine_Manager::getInstance(); $...
stackexchange/codereview
I'm planning on creating a small framework for a dynamic site. When creating a framework is there a standard or code of conduct which should I conclude ?
stackexchange/codereview
I'm having a lot of JavaScript on my page and I'm using typekit. In order to make my page work correctly (grid and stuff) I'm using the new typekit font events. It's simply a try and catch statement that checks if fonts get loaded or not. However somehow I'm not getting it. I'm calling the setGrid() function if typeki...
stackexchange/codereview
I have a combobox that is populated by a database table I have. In my Load event for my form I have it populated by... Me.BusinessTableAdapter.Fill(Me.BillingdbDataSet.Business) My problem is whenever I "add", "edit", or "delete" a business I have stored I can't find a way to update the combobox I have. Whenever I ex...
stackexchange/codereview
I am trying to execute the below code from a console app. ConfigurationSection aggregatedFileSection = (ConfigurationSection)config.GetSection("Aggregation.FileAggregationConfig"); // this is inside a web.config of main web project The below line is in web.config. <Aggregation.FileAggregationConfig configSource="con...
stackexchange/codereview
Receiving a segfault when running this very short script in Ubuntu. from osgeo import ogr, osr shpfile = 'Census_County_TIGER00_IN.shp' def cust_field(field): '''cust_field(shpfile, field) creates a field definition, which, by calling cust_field(), can be used to create a field using the CreateField() function. ...
stackexchange/codereview
I'm trying to build a simple app for OSX using cocoa and the Qtkit. I would like to have a movie start playing as soon as the app is launched. I've created an app to play which can play a .mov file on my located on my desktop, by referencing the location of the file. I would of course like to store the .mov file with...
stackexchange/codereview
I have a widget containing two QTableViews in a horizontal layout. I would like them to resize to their preferred size (so that they don't have to show autoscrolls). I also don't want them to grow more than their preferred size and leave empty space to the right if there is any left. It should look like this: I've tri...
stackexchange/codereview
I just came across some code that seems to encrypt database keys prior to sending them to the client (WebBrowser, Silverlight, etc). To illustrate, suppose you have a list of students to extra-curricular activities, and a relationship defined between them. Every time the data is written out to the ASPX page, the stud...
stackexchange/codereview
I created a jtable in gui form in intellij and I dont see any data. The strangest thing is that when I am using it with out creating a form in intellij the code works. i used the most common example String[] columnNames = {"First Name", "Last Name"}; Object[][] data = {{"Kathy", "Smith"},{"John", "Doe"} and the...
stackexchange/codereview
I work with MongoDB C# Samus driver. One of constructors of class MongoDB.GridFS.GridFile has parameter "bucket". When i create GridFile in Java like example i cannot set this "bucket". But i can set this "bucket" in Java when create GridFS object Java documentation. I'm confused! My question: What is "bucket"? For wha...
stackexchange/codereview
I've always had problems wrapping my head around Interfaces so I've done my best to avoid them. Until I saw this code public interface IFormsAuthenticationService { void SignIn(string userName, bool createPersistentCookie); void SignOut(); } public class FormsAuthenticationService : IFormsAuthenticationServic...
stackexchange/codereview
I've never really heard of something this simple working in every browser, but firefox, so can anyone shed some light on this? <a href="javascript:" onclick="quoteMe('name','id','yourname');" id="quote" style="border:1px solid white;color:#F1F1F1; font-weight:bold;">&nbsp;reply&nbsp;</a> and jQuery: var nameForm...
stackexchange/codereview
Can anyone see why the following XML file should throw NullPointerexception? If I remove all reference to the array hrs_to_wait_value, it is ok. <?xml version="1.0" encoding="utf-8"?> <resources> <string-array name="hrs_to_wait_options"> <item>1 hour</item> <item>2 hours</item> <item>3 hours</item> <item>4 hours</item>...
stackexchange/codereview
I've recently developed a web user control that lists a series of reports. When the user clicks on the report it serves back a CSV file download in the response stream using the following code: Response.Clear(); Response.ContentType = "text/CSV"; Response.CacheControl = "no-cache"; Response.AddHeader("Pragma", "n...
stackexchange/codereview
Given var oJQ = $('#foo').children();, how would you also include foo with the children in the same assignment? In other words, oJQ should be a jQuery object that holds foo's children and foo.
stackexchange/codereview
I am working on a large scale software. It's driven by memory/data moving between huge amount of complicated models. Sometime the cache misses is too high and the performance is not good. But the scenario looks too complicated to me. I just want to get some general ideas on how to reduce the cache miss and improve mem...
stackexchange/codereview
I am having a hard time putting jCarousel to work with more than images. Has anyome been able to make it work with other tags? (a and span) http://sorgalla.com/projects/jcarousel/
stackexchange/codereview
I have a Google Chart in my application and I have removed the axis lines, however because I am using a background image on my chart for faux axis / grid lines I need to add some padding to the chart image itself. I found the chma property in the Google Charts documentation, but it didn't seem to work the way I wanted ...
stackexchange/codereview
I have view1 that when shaken will load view2 and in view2 a button is pressed loading view3, in view3 button is pressed loading view1. When view1 is loaded from view3 the shake gesture in view1 does not respond to shake any longer. - (BOOL)canBecomeFirstResponder { return YES; // making view the first responder fo...
stackexchange/codereview
Initial javascript to get a string/array: <script type="text/javascript"> $(document).ready(function() { $("#table").tableDnD({ onDrop: function(table, row){ var rows = table.tBodies[0].rows; var debugStr = ""; for (var i=1; i<rows.length; i++) { debugStr += rows[...
stackexchange/codereview
My webserver is receiving image data from an iOS App via HTTP POST. The transmitted image-data looks like this: $postvar1=x&image=<89504e47 0d0a1a0a 0000000d 49484452 00000100 00000064 08060000 006960ee 9e000020 00494441 547801ed 5d099c14 c5b9afea 9ed9fb98 5941c428 a2c62320 0a8a8047 3cf06017 573cc178 c0eea246 8db9f4f9...
stackexchange/codereview
This is the ViewModel: using System; using System.Collections.Generic; using System.Linq; using System.Web; using AfvClassifieds.Models; namespace AfvClassifieds.ViewModels { public class ClassifiedsIndexViewModel { public List<Category> Categories { get; set; } } } Let me explain this one, I wan...
stackexchange/codereview
I need to share those types of resources across several ASP.NET web sites. The approach I tend to is to create separate web application for common master pages and separate web site for common CSS, images, etc. The problem here is that I will no more be able to reference common resources using tilde, instead I would ha...
stackexchange/codereview
I have a view. this view has a wheel in the middle. it also supports iAds and auto rotation. so whenever an ad pops in the top, or the device rotates, the wheel automatically repositions itself to the centre of the open space. Now I have a class to detect if the user is spinning the wheel round. it is derive...
stackexchange/codereview
I have an iFrame Facebook application. I am using the Facebook C# SDK, Facebook and Facebook.Web libraries. When a user first comes to my application I create a FacebookApp object on page_load(). If the app.Session is null I create a CavasAuthorizer(app) then call Authorize(). Two problems: First, the redirect URL th...
stackexchange/codereview
I have a enterprise distributed n-tier architecture written in Java 1.4 (EJB and Web-application). I have a new business requirement: the enterprise service would handle the versioning. At first I found that the OSGi service model. Is there any alternative to this model?
stackexchange/codereview
I have some Java projects that use Apache Commons Configuration and they get deployed to multiple servers in multiple environments (dev/test/prod). All code is the same, but some config items change, such as JMS URLs (dev should point to dev, etc) as well as the server name and environment (I use these config items for...
stackexchange/codereview
I want to format my string binding as Amount is X where X is a property bound to a label. I've seen many examples but the following doesn't work: <Label Content="{Binding Path=MaxLevelofInvestment, StringFormat='Amount is {0}'}" /> I've also tried these combinations: StringFormat=Amount is {0} StringFormat='Amount...
stackexchange/codereview
I'm not even sure if this is possible but thought I'd ask anyway. Sorry in advance, I'm sure the question could be worded better. Is it possible to write a file to the C: drive of another computer on your network? The C: drive of PC1 has a user account with full access rights called User1. User2 (who is logged into PC...
stackexchange/codereview
I have a bunch of jComboBox in a panel. What is the best way to cycle through the panel and set setSelectedIndex(0) for each of the controls?
stackexchange/codereview
it is said that we should always truncate a large table before dropping, it improves performance. Is it true?
stackexchange/codereview
I'm converting from LINQ to SQL to Entity Framework for my ORM and I'm updating my repositories. All of them are done except for the generic one. I can't seem to figure out how to convert my Select method from what it is now to one that works with EF. Here's the current code: public T Select(int Id) { MetaDataMembe...
stackexchange/codereview
I need to FTP to a server, tar all of the files in a directory, then FTP the tar to a different server. Once I have the tar placing it on a server is not a problem but I have had trouble trying to figure out how to use Archive::Tar and Net::FTP together.
stackexchange/codereview
I am trying to use double abc = 1234.5678; Console.WriteLine(abc.ToString("N2")); Console.ReadKey(); but that is yielding 1.234,57 instead of 1234.56 How can I accomplish this?
stackexchange/codereview
I want this kind of result from these tables. I even can't figure out how to do it with php. I even tried to join payment and invoice table on date but in vain. It's a purchase system and this query will show summary of all payments made and total of invoices by date. I thought of a solution that first select all...
stackexchange/codereview
I have been looking for an answer to this for a while. To clarify what I want just in case my question title might seem ambiguous: \section{Привет and Xin Chào!} Some text... I am using the babel package to use different languages in my paragraphs and I thought I could use the commands inside \section{} but it didn't ...
stackexchange/codereview
I'd like to change the size of the non-embedded font in a pdf document but am not able to find pdf's font spec on the web. How could it be done? Note: It doesn't matter if the text overflows the specified paper as a result.
stackexchange/codereview
I have a few conceptual questions (all related, I think) regarding the following script, at the comments. The script works fine. <?PHP ob_start(); // Create string to overflow browser buffer ...? $buffer = str_repeat(" ", 4096); // Indicate new header / html content ...? $buffer .= "\r\n<span></span>\r\n"; for ($i=0...
stackexchange/codereview
I'm currently having problems trying to use Divelements' free HTMLhost control with the Silverlight Viewbox control. I want the HTMLhost control to automatically scale up/down to fill the available space, which is where the Viewbox comes in. However, when I wrap a Viewbox around the HTMLhost, it prevents the control lo...
stackexchange/codereview
I've added a gradient layer: [theView.layer insertSublayer:gradient atIndex:0]; And later on in another method I want to remove this layer. I figured I should get the array of sublayers then get the sublayer at index 0 and call removeFromSuperlayer on it. Is this the correct way or if not can you do it? Cheers.
stackexchange/codereview
When looking at the Graph API documentation, I noticed that in this page: http://developers.facebook.com/docs/api there are links to say, my own friend list (http://graph.facebook.com/me/friends) that have an access token that seems to be generated out of nothing and has very little privileges. What is this token? Is t...
stackexchange/codereview
I'm not sure how to really word this. I've been getting into PHP CLI lately, and I wanted to make like a dynamic counter. For example, it starts with echoing Count: 0 and then as the count increases (or decreases) the number changes as the program advances. I hope you can understand what I mean. If you do, any idea on ...
stackexchange/codereview
I have a navigation on my page with elements, about us, what we do, clients, contact us and so on..... all these are images only. not text. i can recognize which page is selected based on the value of $selected. When $selected==about, then i want the default image of about us to be something like about_selected.png and...
stackexchange/codereview
I am creating a dropdown menu based on suckerfish. The top level appears correctly, however the first submenu level puts all the menu items stacked over top of eachother right under the top level. Everything is correct except the items are overlapping. My html and css are below. <ul id="nav"> <li style="border-l...
stackexchange/codereview