instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm writing my own shell, but no fork gives my child_pid = 0... What's wrong there? while(true) { read_command(command); if ((child_pid = fork()) == -1) { fprintf(stderr, "can't fork\n"); exit(1); } else if (child_pid == 0) //child { ...
stackexchange/codereview
when i inherited classes i get these errors messages. 1>c:\users\owner\documents\visual studio 2010\projects\monopoly\monopoly\d3ddevice.h(6): error C2504: 'Window' : base class undefined 1>c:\users\owner\documents\visual studio 2010\projects\monopoly\monopoly\d3ddevice.h(11): error C2061: syntax error : identifier '...
stackexchange/codereview
Why do I get this error when I try to retrieve host name of remote user ? Message: Undefined index: REMOTE_HOST When reading documentation I came to know that it needs to be enabled in httpd.conf. But I am not sure what needs to be edited in httpd.conf.
stackexchange/codereview
Why would I want to reference cursor.fetchall() if I can use cursor.execute directly?a Thanks
stackexchange/codereview
I have a small problem with adding widget to QMainWindow. When i do it like that: wsk_mainStatki = new mainStatki(this); wsk_mainStatki ->setGeometry(0,0,400,300); this->layout()->addWidget(wsk_mainStatki); it's ok but i get warning: QMainWindowLayout::addItem: Please use the public QMainWindow API instead this is ...
stackexchange/codereview
I wanted to understand the mechanism of message encryption and signing used by NetTcpBinding when 'Windows' credentials are being used with Transport security. What if my AD uses NTLM instead of Kerberos? Will the messages still get signed and encrypted?If so, how? Thanks in Advance, Akshat
stackexchange/codereview
I would like to be able to add a "Title" variable to images that are created using XSLT. Specifically, I am working with the file called "Teasers.xslt" which is part of the Sitecore6 Starter Kit. The text for each title would be the "Teaser Abstract" that is maintained in Sitecore Content Editor. My understanding is th...
stackexchange/codereview
Is it possible to set a selector for "setDoubleAction" through "Interface Builder" or it can only be done by "XCode"? If it can be done only by "XCode" I would like to know why. Thanks!
stackexchange/codereview
I want to click on a link, pull the src of the link, and use that src to refresh an iframe in my page. dojo.ready(function() { dojo.query(".link").onclick(function(e) { var node = e.target; var url = dojo.attr(node, "href"); document.getElementById("audioiframe").src = url; dojo.stopEvent(e); ...
stackexchange/codereview
I am staring at the worst mess, my monitor isn't tall enough to see what is going on, and VS 2010 is no help at all. I do not have any idea how to refactor this trash. It's 11 AM and I feel like pouring a drink already. Is this just the final proof that I have no business coding? Be honest. <div id="followedFriends"> ...
stackexchange/codereview
In my Android app, I have two custom view classes - PortraitClass and LandscapeClass. They both do the same thing. On running the app, the view class fetches some pictures from an SDCard and then maniputlates (skew etc) and displays them. The only difference between the two classes is that the layout of pictures is sli...
stackexchange/codereview
Is there an existing .NET Reflector add-in that allows renaming of namespaces/classes/methods etc?
stackexchange/codereview
I ran into the problem in Java, but I guess it's a question about OOP in general. It should be a pretty common need, so I hope there's a solution I'm just unaware of. What do you do when you need to initialize an object's fields within the constructor, but those objects need this as a parameter? So this is what you can...
stackexchange/codereview
I have an instance of System.Windows.Controls.Image, and I set the contents programmatically as such: Uri location = new Uri(uriString); image.Source = new BitmapImage(location); Sometimes I know that the image on the server has changed and I want to refresh it, but every time I repeat the above code I get the same im...
stackexchange/codereview
What is the easiest way to achieve: a => 1, b => 0, c=> 3 a => 0, b => 10, c=> 1 Sum a => 1, b =>10, c=>4 and Minus a => -1, b=> 10, c=> -2 I hope my examples make it clear... If you have any questions please leave a comment
stackexchange/codereview
What would cause an error to come back null, this is what I have + (BOOL)saveContext:(NSManagedObjectContext *)context { NSError *error = nil; if (![context save:&error]) { DLog(@"ERROR %@, %@", error, [error userInfo]); UIAlertView *alert = [[UIAlertView alloc] initWithTitle:...
stackexchange/codereview
i have database with only a counter....i wanted to know how to increment it.... i have seen this article Increase the value of a record in android/sqlite database but dont really understand it.... does someone have a code sample which might be useful? i basically want to make a quotes application... in that say the use...
stackexchange/codereview
I am using Uploadify on a JSP for multi file upload and Spring MVC framwork on the server-side. Can the Spring Controller class support Jersey API to upload the file on the server-side. I am currently using Apache Commons FileUpload for uploading the files but it is breaking for larger files with more than 20 MB size. ...
stackexchange/codereview
I want information about RDLC. Can anybody help me? Thanks.
stackexchange/codereview
Let's say that there is one vertex with the following property in a DAG: All vertices are connected to it It is not connected to any vertex This is usually called a sink vertex. Is it possible to detect this vertex in O(n), where n is number of vertices in graph?
stackexchange/codereview
I have a servlet called Calculator. It reads the parameters left, right and op and returns by setting an attribute result in the response. What is the easiest way to unit test this: basically I want to create an HttpServletRequest, set the parameters, and then checking the response - but how do I do that? Here's the se...
stackexchange/codereview
Background: I'm using the middleware django-multihost (http://effbot.org/zone/django-multihost.htm) to allow my single django app to respond to different hostnames from the same project. The middleware changes the ROOT_URLCONF (i.e. which urls.py file) based on the Host: HTTP request header. This works great, but I ...
stackexchange/codereview
I've built a CMS for our company which has a huge number of functions, many of which are related to specific functionality which isn't used on most of the sites we use the CMS for. My goal, then, is to only include the script of a function when it's needed (when the function is called). Right now I'm simply calling up...
stackexchange/codereview
When using ext/multistage, why aren't the variables that are set in a stage (production.rb) available in deploy.rb? In production.rb: set :domain, "domain.com" In deploy.rb: set :vhost, "/var/www/#{domain}" But when I try to run, it complains undefined local variable or method `domain' for #<Capistrano::Configuration:...
stackexchange/codereview
How can I make the insertion (<<) and/or extraction (>>) operator overloaded in a template class WITHOUT making it inline. I would like to have the << or >> operator as a friend class. I know how to make it inline example of inline in a matrix class friend ostream& operator<<(ostream& ostr, const Matrix<T>& inputMatrix...
stackexchange/codereview
Is there a way to scroll down to an anchor link using jQuery? Like: $(document).ready(function(){ $("#gotomyanchor").click(function(){ $.scrollSmoothTo($("#myanchor")); }); }); ?
stackexchange/codereview
I am trying to get the url of the page I just fetched - as it can change after redirects... opener = urllib2.build_opener(redirect_handler.MyHTTPRedirectHandler()) opener.addheaders = [('Accept-encoding', 'gzip')] self.response = opener.open(url) self.page_contents = self.response.read()...
stackexchange/codereview
I use <c:foreach> in my jsf app to iterate over a list of people. I don't use <ui:repeat> because every person has its own tab (primefaces). JSF hero 'BalusC' already helped my out on this one link. Now I tried to save (postback) the data. This doesn't work with <c:forEach>, the approriate setter of the Person object g...
stackexchange/codereview
I have several standard sets of integers that I need to be able to access from multiple translation units. The goal is to take these standard sets and put them into local sets depending on the context of the code. For example, the best solution I have is: #include <boost/assign/list_of.hpp> #include <set> const std::...
stackexchange/codereview
In the book "Programming In Scala", chapter 23, the author give an example like: case class Book(title: String, authors: String*) val books: List[Book] = // list of books, omitted here // find all authors who have published at least two books for (b1 <- books; b2 <- books if b1 != b2; a1 <- b1.authors; a2 <- b2.aut...
stackexchange/codereview
I have the following problem: I have a JTable inside a JScrollPane, and the table has 20 rows. However I want the JScrollPane to only display 10 row at a time (thus one has to scroll down to see the rest of the rows). I am using GridBagLayout to position the JScrollPane. Any suggestion? Thanks.
stackexchange/codereview
Has anyone come up with a good way to get emails when commits are pushed to your GitHub repo -- that includes a diff of files changed? (I know they have an Email Service Hook - but that doesn't include a diff) Mega bonus points if the diffs are colorized with inline CSS that's viewable in Gmail.
stackexchange/codereview
It looks like ImageMagick does not always convert a single favicon.ico file to a predictable single png file - for some favicon's, it generates a bunch of other favicon-01.png, favicon-02.png, etc... Is there a way to figure out which one's the actual converted favicon you want - or figure out how many got generated, t...
stackexchange/codereview
void* memorycopy (void *des, const void *src, size_t count) { size_t n = (count + 7) / 8; char* destination = (char *) des; char* source = (char *) src; switch (count % 8) { case 0: do{ *destination++ = *source++; case 7: *destination++ = *source++; case 6: *destination++ = *source++; ...
stackexchange/codereview
Hi I am using buttons in my list view. I would like to add border to my button. How can i do that. My XML code for creating button look like this. android:text="Search" > Please suggest me some solution or provide me some source code for doing this. Thanks in advance.
stackexchange/codereview
I'm trying to start a rails app and get the following error message: C:\project\ruby\lyc>rails server You have requested: activerecord-jdbc-adapter >= 0 The bundle currently has activerecord-jdbc-adapter locked at 1.0.2. Try running `bundle update activerecord-jdbc-adapter` Try running `bundle install`. Since I'm q...
stackexchange/codereview
Is it possible to restrict access to certain views within a native IOS app? For example, if a user authenticates against a web service from an iPad app, can that user then be restricted from seeing certain portions of the app based on their role? how does one go about this?
stackexchange/codereview
public static <T> T[][] toTwoDim(T[] array) The function signature as it is above.. It's a generic typed function, which can be used no matter what type is the data contained in the array. generally, it receives an array, and return a 2-dimensional array with its half elements in the first row, and the other half in t...
stackexchange/codereview
So for a coding project I need to create an Othello game. Now I'm trying to do most of it on my own. Basically trying to re-learn C#. I'm just trying to create a board. Now I am using textboxes and B represents black and W represents a white piece. My problem is trying to create my board class. My code here: private T...
stackexchange/codereview
I am trying to write a small application in Android. My application is on Widgets. I have a basic doubt on using RemoteViews. I found that whenever , I update some button or some UI layout a new object of the remoteviews is created . Will that be a problem with the performance? an example code is this: http://android-d...
stackexchange/codereview
I was reading LYAH. It says I need to explicitly load Control.Monad.Instances to get the following syntax to work: ( ( fmap (+5) ) (+5) ) 4 Why is that? Why if functors are this underlying and unifying technology do I have to explicitly load Control.Monad.Instances to get that functionality. How is (->) implemented wi...
stackexchange/codereview
In our JUnit testsuite, I have spotted a few tests that do not drive up coverage, and thus should be removed (they take time but does not really add value to the test suite). I was wondering what tools exist that can spot redundant tests for me?
stackexchange/codereview
I want to use a single image sprite for my web page, where should I declare this in CSS? Should this be in the body or where? Example: body { background-image:url(/img/sprites.png); } #someDiv { background-position: -10px -20px; /* can I do this? */ } #someOtherDiv { background-position: -30px -40px; /* and ...
stackexchange/codereview
I am writing a very simple OSX app. In this app, there is a main thread that keeps updating some stuff, then calculates some statistics and prints them on a textView. While developing, i used the same received IBAction to perform this cycle. I got it all working, then switched to NSThread to prevent the UI from locking...
stackexchange/codereview
I'm going to check out a repository from a source that I can't commit changes back there. Then I'm gonna change the code and submit it to my own SVN server. The problem is that I want to keep my code also update-able from the original SVN server, but changes will always be saved to my own server. Is it possible using e...
stackexchange/codereview
I want to call method of a particular class to assign a text to asp.net control. Throwing error called server tag not well formed. Note: no server side code <asp:button id="btn" runat="server" text="<%#class1.getText("btn")%>"/>
stackexchange/codereview
I have a list of strings that I need to sanitize. I have a method for sanitizing them, so I could just do: new_list = map(Sanitize, old_list) but I don't need to keep the old list around. This got me wondering if there's an in-place equivalent to map. Easy enough to write a for loop for it (or a custom in-place map...
stackexchange/codereview
When I compile my Android Project I always get this Error: Error generating final archive: duplicate entry: about.html But I can't find any about.html in my Project. Does anyone know how to solve the error?
stackexchange/codereview
i am trying to experiment with linux kernel by adding a custom system call into the kernel.I succeeded at first and later I made some modifications to the file containing the new call code and when i tried to recompile the kernel with make bzImage i get the the following error: What seems to be the reason for the er...
stackexchange/codereview
See http://shootout.alioth.debian.org/u32q/compare.php?lang=clojure Clojure is much slower than java -server, whereas scala isn't. What gives? ref: On Performance and Java Interoperability: Clojure vs. Scala
stackexchange/codereview
I am planning to split a string in java using regex. My input will be as follows 2010-11-10 00:00:00,999, some string follows I am using inputString.split("(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3},)"); This gives a string[] with two elements, second element is "some string follows" but first element is empty...
stackexchange/codereview
[Suggestion: Want to read the answers in a logical manner ?? >> choose TAB [Oldest] Goal: Presentation of books with related inventorydetails on homepage such as Book.Title, InventoryDetail.Quantity etc. (Join|Book.BookId <=< InventoryDetail.BookId) Problem 1: How to join Problem 2: How to use a tuple (list of tup...
stackexchange/codereview
I'm trying to pulse my bluetooth dongle, to see if it is range. Every second my Android sends a char to the dongle, which then responds with a char. If there is no response, or the char is wrong, then it should conclude that there is no connection. I'm able to send from Android to dongle (attached to MCU), and the dong...
stackexchange/codereview
I'm working on a 2D project in C# using XNA where I need to render a number of grayscale sprites onto a Texture2D - I'm switching render states and using a sprite batch and getting results mainly thanks to other stackoverflow posts. What I haven't been able to find is how to blend using something other than Alpha or M...
stackexchange/codereview
I've a requirement in which I have a start and End time. For instance let us assume the start time as 10:00 and end time as 17:30. I need increment this in 1 minute and 5 minute intervals. For example if I click the button named "Increment 5 mins" the series should be like this, 10:00 10:05 10:10 ... 17:30 if I click ...
stackexchange/codereview
I have a NHibernate repository that looks like this: public class NHibRepository : IDisposable { public ISession Session { get; set; } public ITransaction Transaction { get; set; } // constructor public NHibRepository() { Session = Database.OpenSession(); } public IQueryable<T> Get...
stackexchange/codereview
How can I build Castle.Core, Castle.ActiveRecord and NHibernate to allow partial trust? There are plenty of resources on the web showing how this can be done, however every site I found says to use nant build -D:assembly.allow-partially-trusted-callers=true to build each assembly. When I look at the Castle.Core trunk h...
stackexchange/codereview
i'm receiving the following errors, very new to iphone dev and objective C. I am very much willing to send over my project for someone to have a look, i'm running in circles and have no idea what to do next! 2010-11-10 19:38:07.822 iShisha[2698:207] *** Terminating app due to uncaught exception 'NSRangeException', reas...
stackexchange/codereview
I am using this Impersonator class to impersonate a domain account to access a network share like so: using(new Impersonartor(username, domain, password)) { //Code Here } Copying the file from the network share works okay: using(new Impersonartor(username, domain, password)) { CopyAll(uncPath, localPath) } However, ...
stackexchange/codereview
I installed the php-gettext package, and phpinfo() shows that gettext is enabled. My app.po looks like: msgid "Welcome" msgstr "Willkommen auf meiner Homepage!" msgid "Hier you can find stuff about me." msgstr "Hier finden Sie Informationen uber mich."` My php file looks like: putenv('LC_ALL=de_DE'); setlocale(LC...
stackexchange/codereview
How do most daemons do their logging these days. syslog or is there a newer logging facility that I'm not aware of? or custom? The reason I ask is that I started using syslog but noticed most of the daemon processes were not logging to the normal files and they are not configured in the syslog config files. That leads ...
stackexchange/codereview
Whenever a user hits the wrong page, rails shows 404.html from the public folder. However, I'd like just to redirect the browser to the root page, without showing anything. So I tried globbing, but came to no avail, it still shows the 404 page. Here's an extract from my routes file: # ... map.root :controller => 'home'...
stackexchange/codereview
I use for my links in Zend: <?php echo baseUrl('/some/path/to/an/action');?> This behaves properly in Firefox. The application is portable without needing to use vhosts. For example: for this link <a href="<?php echo $this->baseUrl('/admin/users'); ?>">Manage Users</a> the expected URL should be http://myhost/webapp...
stackexchange/codereview
I am trying to get an iPhone app packaged up. (I'm very new to Mac and iPhone development, so please explain any instructions you give in detail.) I'm following the directions on this page. Under "Building your Application with Xcode for Distribution", I'm having issues. The first issue is that it told me to duplicate ...
stackexchange/codereview
I am getting error messages when I run rspec spec. When I read the terminal output it looks like there might be something going on with RVM. Everything is up to date. If anyone can offer guidance about these errors I'd appreciate it. I am also including the page controller I built too, but I am following a tutorial ...
stackexchange/codereview
Possible Duplicate: Compiler support for upcoming C++0x Looking to use it for a purely experimental purposes. Is there any out there that has full support? Seems VC++ and GCC have very good support, but still incomplete (understandably).
stackexchange/codereview
I've hit this problem a few times, and I've always just found a work around, but this time that would probably be impossible. The problem is this. I have a form inside a DIV, and I submit the form using jQuery AJAX and then reload the form with the new data added (eg a list of items, with a form to add new items to the...
stackexchange/codereview
I am looking at a sql statement that looks like this: ... AND col2_.col_date >= :1 AND col2_.col_date <= :2 ... and I have no idea what :1 and :2 does?? Can someone enlighten me, Thanks, :)
stackexchange/codereview
We have a great software foundation based on Microsoft MVC 2, Entity Framework 4, Repositories, POCOs, Service and Control layers, C# Views, JQuery and html. Firefox pulls 100 records in 250 ms, drops it in to a template, links the data to the markup, and we sit back and drink margaritas. Boss walks in and says he wa...
stackexchange/codereview
Looking for a code sample, preferably using TADOConnection. I want to save the TPicture of a TImage to a MySql (preferably ODBC, rather than just MySql) database and later I want to crate a TImage and retrieve the picture to its TPicture property. Any code snippets, or links to same?
stackexchange/codereview
The download page for sandcastle is here. Downloading the MSI and installing it produces a directory in program files (x86), but no menu items in start and no 'getting started'. A review comment claims that the solution is to also download the source archive and find an MSI in there, but I don't see any MSIs inside the...
stackexchange/codereview
I am making use of BULK INSERT within a stored procedure and I get this error: Cannot bulk load because the file "D:vanAS_TEST_vanRunGroupervan_DB.csv" could not be opened. Operating system error code 32(error not found). Notice the path has no slashes although it does when I use the BULK INSERT. In addition, I get a ...
stackexchange/codereview
hi I have a timer control on my main form which creates an instance of a class, under certain conditions the class's method needs to stop the timer. is there a way to set the timers Enabled property to false without having passed the control in to the method? could I some how check all the controls on the mainform f...
stackexchange/codereview
Basically, I have a textbox where a user can enter an ID from a database. To make things easier, the user can popup a GridView using a ModalPopupExtender to display all the tables columns, and they can Select a row, which then closes the modalpopupextender and sets the textbox to the row's ID column. So far I have this...
stackexchange/codereview
I would like to play either a regular Flash movie or a Silverlight movie on top of a 3D scene rendered with XNA using C#. The background of the Flash/Silverlight object should be transparent, and be loaded dynamically by the 3D engine. The idea is that third party developers and artists efficiently can add simple 2D an...
stackexchange/codereview
I have an array of web view. I am implementing a touch event in web view. My requirement is that I want to pass the value to another activity in ontouch listener. Can anybody give an example? for(int i=0;i<articleParsedValue.size();i++) { ArticleDataSet articleDataset=(ArticleDataSet)articlePars...
stackexchange/codereview
i would like to be able to spot problems with deserialization in java code. What should i look for? For example, how would one determine if some java code tries to exploit "java calendar bug"? Note that i'm not a java programmer, but i understand the concepts behind serialization and OOP fine. I'm trying to implement s...
stackexchange/codereview
I am using a Listview and Datapager control. But when I refresh the page it always set the datapager to page 1. I want that it should be in the same page after refreshing. For example I want the same functionality as stackoverflow is having like: https://stackoverflow.com/questions/tagged/datapager. How to do this can ...
stackexchange/codereview
I've created my repository this way: sudo svnadmin create /svn After restarting apache i get this error: Syntax error on line 16 of /etc/apache2/mods-enabled/dav_svn.conf: DAV not allowed here # dav_svn.conf - Example Subversion/Apache configuration # # For details and further options see the Apache user manual...
stackexchange/codereview
I want to develop a chat application with a server/client model, opening TCP or UDP sockets in VISUAL BASIC 2008. Is there a working example I can download, or some code to help me with this project? Thanks in advance. Edit: Thanks for the answer, really really appreciate it. But im stack somewhere, because my applic...
stackexchange/codereview
Hi I am dispalying some items in expanded List view. those are items and their categories.If we select one item then that item status is updated to db.next when we open that list depending upon the status set that item background .For ex if the status is 0 That that item having the black background.if the status is 1 t...
stackexchange/codereview
Can someone tell me how we can amplify the sound of specific frequency alone?
stackexchange/codereview
There are two sides to a push application: Server push application Client push application (On Mobile) I have implemented the server side application already, but I have not yet finished the client application. Could anyone give me simple code for a client application using java please?
stackexchange/codereview
How to create tag cloud in sharepoint2007. Is there any default designed tag cloud templates etc in Sharepoint2007?I want to show all the list items in a Tag cloud based on an integer value of that item. How to do this in Sharepoint?
stackexchange/codereview
I'm trying to add support for 3.1.3, as it's the last version on the first generation iPods. I was wondering how to simulate the inputView and inputAccessoryView for a UITextField prior to 3.2, as those have been added only in 3.2 afaik.
stackexchange/codereview
I have been searching and this problem seems simple but cannot find answer. I have multiple request calling different url. But for each url, I only want the result once and it must be the last one in the same url being called. My issue now is "how to get the last one only?" I looked at this and it seems to be 3 years o...
stackexchange/codereview
As part of my integration tests for a website I am using cucumber with capybara. It seems that capybara cannot emulate the use of cookies. For example I set the cookie when the user signs in: def sign_in(user) cookies.permanent.signed[:remember_token] = [user.id, user.salt] current_user = user end ...
stackexchange/codereview
For some reason I can't compile this program because I'm supposedly missing SDL. It compiles fine on Debug mode, but not Release. I am using Visual C++ 2010. I linked to SDL with VC++ directories. Here is my (little) code. //main.cpp #include "main.h" void logger::log(string logging) { file << logging << "\n"; } ...
stackexchange/codereview
My problem is the following : Create a new MVC2 application in visual studio 2010, right click the project and configure it to run using the local IIS web server. Click on 'Create Virtual Directory' to create the directory in IIS. So far so good, I then hit F5 to build and run the project and i get to the default pa...
stackexchange/codereview
I have an HTML for with a select field - drop down list. When a user makes a mistake and goes back there the data selected by the user is lost and show the original message. Is there a way of holding this state, so I don't get the user to select this every time he or she makes a mistake. Thanks. Hi people when you fill...
stackexchange/codereview
I follow the example in Obj-C at Custom iPhone Keyboard for finding the UIKeyboard in the Windows SubViews, however, I don't know how to do this using MonoTouch. I don't know what the "description" is. If it is a property of UIView I cannot access it from MonoTouch??? Can someone please provide an example of finding ...
stackexchange/codereview
I have the following scenario and I'm not sure if I should use Class Inheritance or Single Table Inheritance: Class User has_one :main_list has_one :known_list has_many :regular_lists end Class List has_many :words end Class Word belongs_to :list end What I would like to do is have each different list type...
stackexchange/codereview
Does anyone know a function/library that I could use to do general FTP functions in a FTP connection? I'd rather have these in C, as that would be extremely easy to add to my current project.
stackexchange/codereview
I would like to create a component to decorate its children, such as: mycomponent.ui.xml: <g:FlowPanel addStyleNames="myStyle"> <!-- how can i render children ? --> </g:FlowPanel> and then others can use: <myapp:mycomponent> <g:Label>Decorated child</g:Label> </myapp:mycomponent> How can i render the children...
stackexchange/codereview
Could anyone help me to realize this kind of interesting javascript search form? I need this form to realize search engine on my website. So by pushing arrow down it has to be shown drop down list of choosing another language flag. When chosen another language flag, it needs to be replaced current language flag. Then ...
stackexchange/codereview
I don't know SQL Geospatial new feature. I'm wondering if I can use to make something like: Map a point in a world map Know the country the point is located The points location state, and the city. Measure how much deliveries I have per state. Can all of this be done to a geometry form like a rectangle? I mean can I ...
stackexchange/codereview
I'm trying (yet again) to get better at programming, this time in python, and I've hit a roadblock. I've been trying to figure out why this doesn't work for a while now, so if I could have some help that would be really, really great. I have the instructions as a comment, but the series wouldn't copy to text, it's on w...
stackexchange/codereview
Forgive me for such a basic question; this is (I suppose) more of an English question than a programming question; but I think as software developers we make such statements on a fairly regular basis. If I have this code: int x = 0; ...does the above "assign x to 0", or does it "assign 0 to x"? It's just been bugging ...
stackexchange/codereview
Is there any way to have NSConnection search for a connection with a registered name on, say a separate thread, or scheduled in the run loop, with a callback when a connection is made? Currently I am using [NSConnection connectionWithRegisteredName:kRemotePreferencesDOName host:nil] but this simply returns (nil I thin...
stackexchange/codereview
I have started programming a game for the iphone and as all beginners I feel like I am shooting in the dark. I just want to run my design and how my "graphics engine" works by you to see if it is anything close to standard design or good practise. Let me explain how it works: For simplification reasons lets just say I ...
stackexchange/codereview