instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I’m trying to figure out which pattern to follow in a certain situation. I have web app that consists of several main widgets that interact with each other somehow. The widgets follow the module pattern. To let code speak: MyApp.Widgets.MainLeftBox = (function(){ var self = {}; self.doSomething = function(){ ...
stackexchange/codereview
I got a div, and there i got some childnodes in undefined levels. Now I have to change the ID of every element into one div. How to realize? I thought, because they have upgoing IDs, so if the parent is id='path_test_maindiv' then the next downer would be 'path_test_maindiv_child', and therefore I thought, I'd solve th...
stackexchange/codereview
I Have developed an application which contains many activity. I have noticed an issue while one activity starts another activity and meanwhile if we press camera button or get a call my application hangs and never recovers even after ending the call or closing the camera. Basically what I want to know is how to handle ...
stackexchange/codereview
Has anyone experimented with eyetracking for the iPhone or heard of projects related to eyetracking in iOS? Is it technically feasible at all? How problematic would recording that data be in the light of ongoing privacy discussions?
stackexchange/codereview
sometimes i face the following case in my database design,, i wanna to know what is the best practice to handle this case::: for example i have a specific table and after a while ,, when the database in operation and some real data are already entered.. i need to add some required fields (that supposed not to accept nu...
stackexchange/codereview
I'm developing an app where users can send a message to multiple social media networks. Before they do, they have to fill in their user credentials. Is there any smart library which I can use in PHP to simply send one message to multiple social media platforms (twitter, facebook, linkedin etc.)? I can achieve this by a...
stackexchange/codereview
I'm trying to emulate the way an international keyboard works. If you use one of the dead keys followed by a letter, it combines them into the corresponding character. For example, typing in `a would result in à and ^o results in ô, etc. I can't seem to get my regex to work properly (I suck at regex!), but this is what...
stackexchange/codereview
I am having some problems here, I have actually had the same issue for a while now but I hack around and get it working in the end however I would like to know if I have missed a simple way of doing it. Say if I have: Field input 1 Field input 2 Field input 3 (empty) Field input 4 I want to query SELECT * FROM tbl_...
stackexchange/codereview
Whenever i do OR mapping, i make all relationships bidirectional. That is, i totally avoid unidirectional relationships. Here are the reasons: 1)To have consistency in all the relationships. So for example while persisting, i don't have to think whether the relationship is unidirectional or bidirectional. Just hook the...
stackexchange/codereview
I am currently integrating facebook and twitter for iphone with gigya. For Twitter sometimes its sharing and sometimes don't. Facebook also happening same as well. lately facebook not even opening its login in screen. On device unlike simulator delegate methods like LoginDidFail, DidLogin called more than once.not sur...
stackexchange/codereview
Let's say I've the below marks up obtained by using values of some Model's properties: <div id = "tabs"> <ul> <%foreach(var category in Model.Categories){%> <li><a href = "#category.Name">category.Name</a></li> <%}%> </ul> <%foreach(var category in Model.Categories){%> <div id = "category.Name">...
stackexchange/codereview
I'm setting up a nightly build for continuous integration within TeamCity. I wanted to create an artifact dependency on the last complete build. But I notice that I have no artifacts created in my project. I'm building using MS build.
stackexchange/codereview
I am loading an IronPython script from a database and executing it. This works fine for simple scripts, but imports are a problem. How can I intercept these import calls and then load the appropriate scripts from the database? EDIT: My main application is written in C# and I'd like to intercept the calls on the C# s...
stackexchange/codereview
Presently I am working in a Firewall project. First I downloaded a Firewall project from codeproject http://www.codeproject.com/KB/cpp/firewallpapi.aspx which was in C++. So I made a dll from that code and called it from C# project. Its working perfectly . But in Windows 7 it is not working. Can anyone give me any hint...
stackexchange/codereview
To make development easier, I want to be able to send textual commands to my android app (especially prior to having prior the UI completely fleshed out). Presumably in the emulator, but it would be great if it also worked on a device connected via USB. Of course, I could add an editText control to my app and type t...
stackexchange/codereview
i am fairly new to python , was wondering if i could remotely connect to another system over net , both the systems have different ISPs . can i write a program to connect to that system and use it resources , ofcourse with that systems permission. PS: it kinda sounds like hacking into system without permission , but i ...
stackexchange/codereview
I would like to find out the key of a json value. I am doing for(var i in rows){ for(var j in rows[i]){ console.log('value: ', rows[i][j]); } } However I want to be able to do something like for(var i in rows){ for(var j in rows[i]){ console.log('key: rows[i][j].key', 'value: ',rows[i][j]);...
stackexchange/codereview
Where is it better in bootstrap.php or app_controller.php it's needed for geolocation.
stackexchange/codereview
I'm using the jsp of a popup window using the javascript with iframe to show a table of multiple records.When i disabled the table of multiple records,it doesn't prevent the onclick function (hyperlink). The sample code is : <tr> <td colspan="2" class="fieldBG" align="left" valign="middle" width="100%" st...
stackexchange/codereview
i'm running a social network site and i currently have most main user data (real name, username, email, password, gender, etc) in a user table. Design-wise, would there be an performance improvement in moving the username+password to a separate table ? I'm using mysql.
stackexchange/codereview
My question is the following: can I have one application on the market, but when the user downloads it, depending on what OS the user is running, she downloads different file - one file for 2.2, other for 2.1, third for 1.5, etc?
stackexchange/codereview
to get -n 0 value passing as a string (no need option) to the installer, I don't quite understand what this function work? ; GetParameters ; input, none ; output, top of stack (replaces, with e.g. whatever) ; modifies no other variables. Function GetParameters Push $R0 Push $R1 Push $R2 Push $R3 StrCpy ...
stackexchange/codereview
I am generating reports in HTML formats, and want to print them automatically using Qt (qt has a webkit based browser, and one can render its contents to a PDF file). I want to position the elements of the report depending on the target page size. For that i need to access the size of the paper (preferably in pixels). ...
stackexchange/codereview
I have very simple html that is generated from a jSon database of strings like this: "<div style=\"padding-top:59px;\"><a href=\"http://www.macm.org/en/index.html\"><img src=\"http://www.artimap.com/montreal/www.macm.org.jpg\"><br>www.macm.org/en/index.html</a><h1>Musée d'art contemporain de Montréal</h1><p></p><p>A ma...
stackexchange/codereview
I was trying to run some drivers coded for 32-bit vista (x86) on 64-bit win7 (amd64) and it was not running. After a lot of debugging, and hit-and-trial, I made it to work on the latter, but I don't know the reason why it's working. This is what I did: At many places, buffer pointers pointed to an array of structures(d...
stackexchange/codereview
Using HTML5 Websockets, can I open a socket directly between 2 clients (browsers) (assuming I know their IP addresses and there are no NAT traversal issues). I want to send some data directly from one browser to another browser, essentially creating a P2P network. Everything I've read so far on the web, websockets are ...
stackexchange/codereview
When loading a lot of web pages into a WebView, it seems that the JavaScript part of the web pages don't behave like in a PC browser - it keeps running after switching URL, and basically makes the WebView experience slower and slower for that reason. Has anybody else experienced this or something similar on Android 2.1...
stackexchange/codereview
So what I am trying to do is import data from a database into a MVC2 DropDownListFor. What I essentially have going is a roleplaying guild site I am working on for a friend. What the page should be doing is allowing a person to edit their character. So what is being passed into the page is the model containing the cha...
stackexchange/codereview
In this bit of jQuery, I am drawing a square onto the canvas div like this: $(document).ready(function() { var canvas = $('#canvas'); canvas.append('<div id="1"></div>'); $('#1').addClass('ui-boxer') .css({ border: '1px solid white', background: 'orange', ...
stackexchange/codereview
I have the following table: ID parentID name 1 0 car1 2 1 tire 3 2 rubber 4 0 car2 5 2 nut 6 3 black To help with testing... CREATE TABLE #TT (ID int ,ParentID int ,Name varchar(25) ) INSERT #TT SELECT 1...
stackexchange/codereview
I'm running a single test from Maven: mvn test -Dtest=TestCircle If the test fails, Maven outputs the exceptions in /target/... folder. Is there a way to tell Maven that this exception should be printed directly on the console, so I don't have to look in /target/surefire-reports/...?
stackexchange/codereview
I'm using ASP.NET 4.0 and have resource files (like labels.en-EN.resx) and manage them using the ResourceManager object. How can I check if there is no translation file for a specific culture? (Besides checking if the compiled localization dll exists in the BIN folder)
stackexchange/codereview
C:\Users\shilps\Desktop>set PATH=%PATH%;C:\Program Files\Java\jdk1.6.0_22\bin C:\Users\shilps\Desktop>javac Populate.java C:\Users\shilps\Desktop>SET CLASSPATH = .;mysql-connector-java-5.1.13-bin.jar C:\Users\shilps\Desktop>java Populate db.properties flights.data reservations.data Cannot connect to database serve...
stackexchange/codereview
As per my understanding, Content Provider is a means for accessing database contents. And to access the database, the Authority part is required. This authority part is provided by CONTENT_URI. Thus Content_URI is a means for giving authority to the database. As far as CONTENT_URI is concerened, it is generally of the ...
stackexchange/codereview
I am working on a Maven multi-modules project. I want to build a given module and skip the unit tests to speed the build process up. I've tried the following: mvn reactor:make -Dmake.folders=search -Dgoals=package,-DskipTests mvn reactor:make -Dmake.folders=search -Dgoals=package -Dmaven.test.skip=True However, this do...
stackexchange/codereview
Inside a repeater there's a list of addresses ..when address link button is clicked, the address is shown inside of text boxes above repeater with all text boxes greyed out and an Edit button is rendered on the page OUTSIDE the repeater and below the text boxes..Now how do I edit this address ? I need the AddressID of ...
stackexchange/codereview
Visual C++ 2008 How to establish whether or not the currently interactive user is at either the Locked desktop (Windows-Key L) or the Shutdown Screen (Vista or 7) waiting for programs to close during log-out. HDESK hd = OpenInputDesktop(0, false, READ_CONTROL); This works fine for a user app on the Default desktop, but...
stackexchange/codereview
I've several DataGrid in my application and they each have the same "template". For example, here's how each DataGrid is defined: <DataGrid Style="{StaticResource MainGridStyle}"> <DataGrid.Columns> <DataGridTemplateColumn CanUserResize="False" CanUserSort="False" CanUserReorder="False" ...
stackexchange/codereview
I am creating a page wherein user will specify the url of an image. This url will be stored in DB, and then it will be retrieve back to display the image. So far it is good if the user is not trying to be mischievous. But now going by http://ha.ckers.org/xss.html , a user can also specify a url which is actually a sc...
stackexchange/codereview
I want to sign webservice requests using Apache CXF and WSS4J. As far as I know, I would need a JKS store containing the certificate I want to use for signing. There's the requirement to be able to use a X.509 certificate from the Windows certificate store. The certificate shall be read from the store at the time of si...
stackexchange/codereview
I have a simple array like this: $input = array('Line1', 'Line2', 'Line3'); And want to echo one of the values randomly. I've done this before but can't remember how I did it and all the examples of array_rand seem more complex that what I need. Can any help? Thanks
stackexchange/codereview
So I'm developing an application that must handle multitouch. Basically I want single touch for rotating ( this is no problem ). And multitouch for scrolling. I have the basic code in, but I'm having problems when the shift from single to multitouch, and vice verca, occur. Basically the movement will jolt because th...
stackexchange/codereview
I have a requirement to have multiple iframes on one page, that all interact with each other. The way our application is laid out requires that those iframes are running in the same session, in order to share data about what's selected and etc. with the other ones. The problem is on first page load, both iframes load a...
stackexchange/codereview
I need to limit the content available to a user based on there subscriptions. Which rail authorization plugin will be best ? I normally use declarative authorization but I dont think it is suited to this task. Thanks, Alex
stackexchange/codereview
This is my first time hacking together bits and pieces of code to form a utility that I need (I'm a designer by trade) and, though I feel I'm close, I'm having trouble getting the following to work. I routinely need to zip up files with a .COD extension that are inside of a directory structure I've created. As an examp...
stackexchange/codereview
When I write my JS files for a Django project, of course I do some AJAX calls, and for the moment the urls for those calls are hard-coded (which is very ugly). I was thinking of having the JS files served by django (instead of Apache), so I could take advantage of the template tags ({% url %} !!!). Is there a reason wh...
stackexchange/codereview
Suppose I define the following (bad) pattern Subscript[\[Beta], i_][x_] := Subscript[\[Beta], i][x[[i]]]; Is it possible to clear this pattern without clearing definitions for all the other subscripted variables? My first thought would be to modify Subscript's DownValues, but it seems to be empty Is it possible/pract...
stackexchange/codereview
There is a lot to commend MVC, but one problem I keep getting is ID name collisions. I first noticed it when generating a grid using a foreach loop. With the help of SO I found the solution was to use Editor Templates. Now I have the same problem with tabs. I used this reference to find out how to use tabs; http://blog...
stackexchange/codereview
Im hoping that someone can help me, I need to remove spaces (not replace with underscores) from several thousand files on a system with cygwin. Can I do this from the shell using rename or mv somehow? Currently: file one.mp3 file two.mp3 All files need to become: fileone.mp3 filetwo.mp3 Thanks
stackexchange/codereview
I have an external library that does long running I/O. I wish to create a multithreaded application that will use ThreadPool to limit simultaneous number of threads and I wish to add threads handing these external calls as completion port thread (I/O threads) rather than worker threads (so that limit for compute bound ...
stackexchange/codereview
I've been looking around but still can't find a workable answer to editing and deleting xml with php without the use of simpleXML (how I wish i could use it). I was hoping someone could break it down simply for me, as my brain doesn't cope with this stuff! The xml file I have to work with looks something like this: <al...
stackexchange/codereview
I am trying to write a simple IO::Socket connection in perl. However, I am running into some problems. Here is the code on the server side: my $listener = IO::Socket::INET->new( LocalPort => 8000, Listen => 1, Reuse => 1 ); die "Can't create socket for listening: $!" unless $listener; print "Listeni...
stackexchange/codereview
I've started ASP a few months ago, having come from a few years of PHP. In PHP, I used a combination of cookies PHP sessions, cookies and storing the Session ID in the database. When a person logs in, the Session Id is written to the cookie and saved in a column in the database. If the person logs off, the cookie is de...
stackexchange/codereview
Hi If I open a site in the WebBrowser control is there anyway to code a function to get data under the mouse pointer? So what I'm wanting to do, but don't have a clue how to! is load a website (most any website) the user places the mouse over some data on the page and presses control click and on doing so the code w...
stackexchange/codereview
I'm using ActiveMQ in a .Net program and I'm flooded with message-events. In short when I get a queue-event 'onMessage(IMessage receivedMsg)' I put the message into an internal queue out of which X threads do their thing. At first I had: 'AcknowledgementMode.AutoAcknowledge' when creating the session so I'm guessing th...
stackexchange/codereview
I'm getting a CLOB or a Informix type TEXT result (text) from a database query, but don't know how to output it. $preparedStatement = $dbinformix->prepare($sql3); $preparedStatement->bindColumn(4, $tmp, PDO::PARAM_LOB); $preparedStatement->execute(); $result = $preparedStatement->fetchAll(); An echo $tmp results in a...
stackexchange/codereview
Other then hard coding this by hand I was wondering if there was a way that the.net framework would have this built in automaticaly, I know it can automatically convert hebrew dates into georgian dates but I need to convert hebrew numbers into georgian IE א = 1 ב = 2 This goes into the hundreds. See here for mo...
stackexchange/codereview
how to change password to user account, by c# code?
stackexchange/codereview
I have 3 models category, question and quiz and 5 tables categories, questions, quizzes, category_quizzes, and questions_quizzes. A quiz has many questions and may belongs to zero or more categories. Also a question may belongs to many quizzes Can some body suggest how should be the relationship between the models tabl...
stackexchange/codereview
I have recently started a new job, and the company uses Visual SourceSafe for source control. At my previous job we used Subversion. One of the 'rules' at the new company is that you only commit your code when you are happy that it works, and that it won't break builds. The other rule is 'No Branching' This cramps my s...
stackexchange/codereview
I'm currently working on a migration project, to migrate data from the old db to the new one (please do not ask why I'm going through a Java application for this, it's what the customer requires). There was some, initial, code which I'm updating now. One of the things I'm changing is using Spring's JdbcTemplate rather ...
stackexchange/codereview
As you know, when you store a class defination in SESSION serialized automatically, and are unserialized on each following pages. I just started to write classes and I wonder that: to store a class in session or a file with serializing is a good idea? If yes, how can I STORE and then GET to use a class in PHP5?
stackexchange/codereview
Is there an easy way to substitute current User object (the one inside controller) with IPrincipal having properties of another user? I'm thinking about environment that users Windows authentication and AD groups, so it's desirable to replicate all AD properties. The "hard" way is to do LDAP query and implement IPrinci...
stackexchange/codereview
how do you create a stored procedure with a simple select (SELECT * FROM TABLE) using Oracle? Also, any good tutorials on stored procedures would help tremendously. Thanks.
stackexchange/codereview
I'm using Eclipse Helios. I have a dynamic web project going and I've set up Eclipse to use an Ant Builder to generate a WAR file. This all works fine; if I change a .java file, Eclipse automatically runs my build.xml via Ant and updates my WAR. If I deploy the WAR to an external instance of Tomcat, it works perfect...
stackexchange/codereview
My Android application uses minSdkVersion=3 and targetSdkVersion=8. I used 8 because that is the highest level of API the application was tested on; however, it was written for level 3 and does not use any features beyond that level (except one for level 4 using reflection). Could using targetSdkVersion=8 be causing:...
stackexchange/codereview
I have a char* variable: // char* buffer; // ... fread (buffer, 1, lSize, pFile); // ... How can I convert it to std::vector? Casting will get me an error.
stackexchange/codereview
I am using Dane Morgridge's repository code as a parent to my repository class. In the parent class--EFRepository--there is a method that calls an ObjectSet's Where clause passing in a Func method. Upon calling this code and then assigning it to my grid, the process takes 4 minutes. However, if I hard code the call to ...
stackexchange/codereview
I am developing an Arabic web site. However, I use AJAX to save some text in my data base. The AJAX works fine with me. My problem is, when I save the data in my database and try to print it on my screen, it returns a weird text. I have used the PHP function mb_detect_encoding to determine how the database deals with t...
stackexchange/codereview
I have been working with Objective C for a few months now and feel like I maybe know 1% of it, and understand even less than that... Regardless, I have two moderately popular games out, and learning more every day. When I first started, I learned that the method of defining properties was to use the same identifier for...
stackexchange/codereview
I created a structure pointer, but each call for the new node returns the same address. But i expected different address to be returned for each invocation of the new node. Can someone please help? public unsafe struct Node { public int Data; } class TestPointer { public unsafe Node* getNode(int i) { ...
stackexchange/codereview
We have an edit form:we populate it with a variable number of checkboxes (it all depends,let's say, on how many pictures we have on the article we're about to edit). All the checkboxes are per default "checked" and if nothing happens the data associated(our pictures in this case) remains untouched. Altough if we unche...
stackexchange/codereview
I new to app development and I have been working on a Flash card app. There is a main screen and the user chooses a button. On the emulator when I touch a button to go to a new activity, my app force closes. I have added the activity in the manifest. The second activity has its own layout (main2.xml). My buttons look ...
stackexchange/codereview
I am developing a game where 2 persons are fighting. And both of these are images with layouts of man. Now what i want is I want to detect the collision of those men. Is there any way to do this out? The image frame is 284X270 and the layout of the person is somewhere inside it and rest of all the image part is transpa...
stackexchange/codereview
Python Cookbook 2nd edition is updated for Python 2.4. Is it still ok to study the book using Python version 2.5 or 2.6?
stackexchange/codereview
I need to let a piece of code always run independently of other code. Is there a way of creating a thread in javascript to run this function? --why setTimeout doesn't worked for me I tried it, but it runs just a single time. And if I call the function recursively it throws the error "too much recursion" after some time...
stackexchange/codereview
I have a view in SQL Server, lets say MY_VIEW. When I execute the command SELECT * FROM MY_VIEW it works fine. However, when I execute it as SELECT * FROM dbo.MY_VIEW I get *Invalid object name 'MyDB.dbo.MY_VIEW'* I am connected to SQL server using sa. What is wrong with this? And when should we use dbo.MY_VIEW and wh...
stackexchange/codereview
In parent: function outer(){ function inner(){ alert("hello"); } } in iframe parent.outer.inner(); does not work. Edit: So they are private. No problem. The reason for doing this is to try and hide these functions from global scope as much as possible. I thought putting them behind a single function n...
stackexchange/codereview
I don't know when or why I should use [[UIApplication sharedApplication] delegate] I use delegate when [self.navigationController pushViewController:myView Animation:YES] does't navigate. I make MyView *delegate = [[UIApplication sharedApplication] delegate] and [delegate pushViewController:myView Animation:YES] to mak...
stackexchange/codereview
I am trying to use Gigya_Social_Network_CakePHP_Plugin. I have installed cake 1.3 and and download the plugin to /app/plugins/Gigya. I added Gigya.Gigya in my helpers array. I get error that gigya helper is missing in the app/helpers folder. I am not fully aware of how to include a plugin in a controller. I appreciate ...
stackexchange/codereview
On an ASP.NET-MVC2 project, I have built some user controls that resides in Views\Shared\EditorTemplates and DisplayTemplates folders. I am trying to pull this templates into a class library, in order to make them reusable, how do I do that! I don't know if this might help but a little more details; some of the templat...
stackexchange/codereview
I have a HttpConnection thread class. when ı stop httpConnection, I show this messeage. how should ı stop httpConnection?? Blackberry Output Console: RuntimeException blocking operation not permitted on event dispatch thread net_rim_cldc-10 EventThreadCheck throwException 0x3434 net_rim_cldc_io_tcp Protocol <priv...
stackexchange/codereview
I am currently using paperclip to upload images to my rails app. This is probably a very simple fix but how or where do I save the missing images to? This is the error that is produced from not having any missing images. How do I change this? ActionController::RoutingError (No route matches "/photos/normal/missing.png"...
stackexchange/codereview
I have this problem across my mind, any help will be appreciated. Is there are PHP function, or library that can extract some glyphs form a font file? Edit: By means to extract some glyphs, I wanted to create a new font file based on the glyphs extracted (so it has smaller bytes), or just get the glyphs and create base...
stackexchange/codereview
I have a problem to redirect to my error page. In global.asax I have implemented Application_Error, so I can catch and log errors. If I put this: <customErrors mode="On" defaultRedirect="~/Errore.html" /> everything works... with this: <customErrors mode="On" defaultRedirect="~/Errore.aspx" /> it is show the page: ...
stackexchange/codereview
I am working on a project which deals with conversion of COMP fields of COBOL to decimal, in SQL Server Integration Service (SSIS). I am able to convert COMP-3 fields (Hexa-decimal representation) using the DLL provided by microsoft, called UnpackDecimal.dll. But I am unable to convert the COMP field (binary representa...
stackexchange/codereview
Do I have to return the object and then put a new one in ? Or can I just directly increment ? Integer temp = myMap.get(key); temp++; myMap.put(key, temp); there is no way to just do this (this doesn't work) : myMap.get(key)++;
stackexchange/codereview
I want to add xml layout dynamically to scrollview in my application, but it is showing an error. This is my code: LinearLayout ll = (LinearLayout)findViewById(R.id.myContent1); LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); View vv = vi.inflate(R.layout.headerone, null)...
stackexchange/codereview
I have a funny situation. I am sitting on a computer on which there is a shared folder, say, "My_Folder". So, I can access it using the address "\My_Box\My_Folder". Now, if I write a small tool in C#, I can convert the "\My_Box\My_Folder" to "C:\My_Folder" which is its physically location. The funny thing is that I do...
stackexchange/codereview
I had soluation to export gridview rows to excel sheet .I did that well but when I opened the excel sheet the language which in gridview apeared whit unkown language as this(الجيزة) this is arabic language .So please any one help me
stackexchange/codereview
I am creating some CALayers and transforming them using CATransform3D using imageLayer.frame = CGRectMake(-22.0f, 188.0f, 180.0f, 50.0f); imageLayer.transform = CATransform3DMakeRotation(120.0f * M_PI / 180.0f, 0.0f, 15.0f, 0.0f); imageLayer.contents = (id)[[UIImage ima...
stackexchange/codereview
I've looked at the BB API(5.0) and I can't find any way of serially executing a batch of threads. I know BB has a limit on the number of threads it will launch, so I don't want to launch 7 if the user clicks through things fast enough but I cannot find anything like a thread pool. Is there an easy fix for this or do I...
stackexchange/codereview
Hey everyone, I have had some amazing help the past couple days in trying to solve my issue. I just have one last questions (I hope) :) I am trying to get the last element from my xml and place it in a variable. I am using django,python and the lxml library. What I want to do is, go through the XML that I have got fr...
stackexchange/codereview
Im looking at the following two ways of retrieving a value and storing it later via an insert statement. i.e. via Pl/SQL cursors or via direct SQL. Is there any advantage to either approach? Or is there a more efficient approach? Approach 1 Cursor system_date Is select sysdate from dual; system_date_rec system_date...
stackexchange/codereview
I've managed to manually detect rotation and set my own rotation effects between two UIViewControllers. When in the first, rotating to landscape prompts the second to be pushed on with a manual animation. The status bar moves to the correct orientation. However, the view loaded by the second UIViewController is not in ...
stackexchange/codereview
I always had this specific scenario worry me for eons. Let's say my class looks like this public class Person { public Address Address{get;set;} public string someMethod() {} } My question is, I was told by my fellow developers that the Address propery of type Address, is not thread safe. From a web request perspectiv...
stackexchange/codereview
I got a cursor problem. I need the cursor to point at the "Enter game" button, and it is below windowHeight / 2, and over windowHeight / 1. And when I put 1.5, it says "Cannot convert to float". So what should I do? (Don't say I should add +50, because it's different on different resolutions).
stackexchange/codereview
there is a checkbox and a textbox. initially the textbox is set disabled and on checking the checkbox the textbox in enabled. i hv tried this but the problem is that it is not working when runat server is added. or i should change javascript logic for asp.net standard controls. or can suggest me a beeter way to do th...
stackexchange/codereview
How do I get the $str variable (below) into my class/classes? The function is used to call each class dynamically rather tan have "lots" of if(class_exists) statements. on page: echo rh_widget('Search'); the function (on functions page): function rh_widget($str) { global $db, $table_prefix; $newwidget = 'rh_'.strtolo...
stackexchange/codereview
Hi i'm displaying UIBarButton on Navigation bar as back button,how can i've the default back button style for the UIButton. Regards Sam.
stackexchange/codereview