instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm writing an extension for Chrome, and I need to upload a file from the page the user is currently on to my server to be processed, I cannot figure out how to upload the file though. I considered just passing the link to the server and having the server download the file, however if the site requires authentication...
stackexchange/codereview
When my program wanted to add a startup shortcut for All User in Win 7 (or Vista), it got an "Unauthorized Access Exception", even i login as admin. How do get authorize access for All User in my program? Here is the code: Imports IWshRuntimeLibrary Public Class Form1 Dim AppName As String = "StartUp ShortCut" Dim sta...
stackexchange/codereview
I’m developing Silverlight application. The SL app is going to consume data from WCF RIA Service and EF. WCF RIA and EF itself is working fine. But now I would like to use some functions from existing library. Because in this existing library, there was already implemented a lot of checking and logic. So I don’t want t...
stackexchange/codereview
Is it possible to return a json response in a Grails webflow ?
stackexchange/codereview
I have looked into the MediaPlayer documentation for Android, but this seems to be primarily for playing media in a localized media player. I just want to be able to tell if music is playing in Android default Media Player. Thanks
stackexchange/codereview
I want to parse tables in html, but i found lxml can't parse it? what's wrong? # -*- coding: utf8 -*- import urllib import lxml.etree keyword = 'lxml+tutorial' url = 'http://www.baidu.com/s?wd=' if __name__ == '__main__': page = 0 link = url + keyword + '&pn=' + str(page) f = urllib.urlopen(link) con...
stackexchange/codereview
I'm investigating using a WSHttpBinding in WCF with transport security and Windows authentication. However I'm having problems finding information on what restrictions using this applies to the server and client, i.e. domain membership of the machines or users and any restrictions that might apply in other areas.
stackexchange/codereview
Hallo, When I start the FitNesse server, I have the following output: FitNesse (v20091210) Started... port: 8080 root page: fitnesse.wiki.FileSystemPage at ./FitNesseRoot logger: none authenticator: fitnesse.authentication.PromiscuousAuthent...
stackexchange/codereview
I have two simple classes: an Order object, which contains a list of OrderLine objects: public class Order { public string OrderNo { get; set; } public string CustomerName { get; set; } public List<OrderLine> Lines { get; set; } } public class OrderLine { public string ItemNo { get; set; }...
stackexchange/codereview
I am using iBatis with spring framework. I want to log the sql that iBatis executes when I say something like Employee e = (Employee) getSqlMapClientTemplate().queryForObject("emp_sql", emp); The above line will look for "emp_sql" id in the ibatis sql file that I have. And then run the query corresponding to "emp_sql...
stackexchange/codereview
I’m building an AppEngine app in Python. For the sake of discussion, imagine I’m building a Gmail clone. Except with a million short emails per user. The point is, each user will have a large search index, all to theirself; just like Gmail, each user has a personal “search engine” of their own content. Now imagine th...
stackexchange/codereview
I was wondering how can I create a JSON (JS) object and then clone it.
stackexchange/codereview
I've noticed some very strange behaviour today in Code Igniter. I have this locations table in my database which has the columns id,name,id_parent,level (it's a tree of locations) and i've tried to generate an array of locations sorted depth first. My approach was to build a recursive function in a helper file: $CI = &...
stackexchange/codereview
I have some basic knowledge about compiling C but need to get a couple of generic cross-compilation questions answered. In my case, I am trying to cross-compile a program on my Fedora Linux box that is going to be run on an ARM single board computer. My first question is about headers. I have downloaded the arm Linux...
stackexchange/codereview
I have a generator: foundUnique = set() def unique_items(myList, index, clearFlag): for item in myList: if clearFlag is True: foundUnique.clear() clearFlag = False if item[index] not in foundUnique: yield item foundUnique.add(item[index]) And I am us...
stackexchange/codereview
When trying to connect to an SSL endpoint with PHP SOAP extension on Windows I am getting the SoapFault "Could not connect to host". Client certificate is not a requirement of the service. $sslOptions = array( 'ssl' => array( 'cafile' => "c:/inetpub/wwwroot/eServices/Server_DSA_Public_Certificate.pem", ...
stackexchange/codereview
Hey Friends i am having one forms and two button, and some text fields,what i need it if i click button 1 then the details in the text box should be POST to Page1.php if i click Button2 the details in the text box should be POST to Page2.php, i am having 8 text boxes to do the in form, how can i do that?
stackexchange/codereview
i run this sql in mysql 4.0.27: select * from table where contains(name,"foo"); report a syntax error, why? can I using contains function in mysql 4.0.27? thanks for help :)
stackexchange/codereview
I have two functions: public void Populate_flights() public void Populate_reservations() Flight and reservations are two tables.One of the entry i.e flight no. is in the reservation table. So it is a foreign key. Now, I need to populate the database via jbdc. So I am using: In public void Populate_reservations() fu...
stackexchange/codereview
I want to ask how to create new file with adobe air so i can write it..... And how to put it in our current project? I have seen so many resource, but they used existed file that created manually and only update it content... Thanks Alot
stackexchange/codereview
I'm confused. What are the differences between Sencha, Titanium, and Cappuccino?
stackexchange/codereview
I have a WebMethod that recives HTML as parameter somthing like this: Public Function ConvertHtmlToPdfListAnswer(ByVal dokument As Dokument) As Byte() In this HTML my path to for example user signature looks like this: Handlers/SzablonyListImgHandler.ashx?usid=2006 My handler starts like this: Public Sub ProcessReque...
stackexchange/codereview
I have a Firefox browser overlay, which adds an icon with a tooltip. There is a script that runs onclick and changes the tooltip text, but despite the script seems to be executed, the actual tooltip text does not change at all. Is there a way to fix it? Thank you.
stackexchange/codereview
I am asked to diff two directories using Perl but I think something is wrong with my command, $diff = system("sudo diff -r '/Volumes/$vol1' '/Volumes/$vol2\\ 1/' >> $diff.txt"); It doesn't display and output. Can someone help me with this? Thanks!
stackexchange/codereview
I have some test methods. Each method will be in each class file, which has independent DP that has various scenarios as data parameters. The class files are consolidated in different packages according to their behaviour in the application. The code runs on Selenium GRID. Now I wanted to make more user friendly to jus...
stackexchange/codereview
I wish to change the target CPU settings from "Any CPU" to "x86" in Visual Studio 2010. I read on another website that I need to do the following: Go to the startup project of your program. Open the properties window. Click the compile tab. Click advanced compile options. Change the target CPU options to x86. But I ...
stackexchange/codereview
I have a single text box form on my home page (/). Right now the way my Rails routes is set up, when I submit this form, it takes me to /search, but it doesn't publish the query string in my url. In other words, when I enter in "hello" in that form and press submit, I want to end up at "/search?query=hello". I know th...
stackexchange/codereview
I'm trying to establish an interactive SSH connection to a remote server using PHP via the command line on Mac OS X 10.6. I'm currently using PHP's proc_open function to execute the following command: ssh -t -t -p 22 user@server.com This almost works. The -t -t options are supposed to force a pseudo terminal which t...
stackexchange/codereview
IS there any limit on the number of visible layers that can be ther in an HTML file ? I'm creating new layers but none of them seem to show up,when i view the webpage O_o
stackexchange/codereview
I have a Listbox, which houses some items. The Items are Grids which house a variety of Textblocks, buttons, etc etc. foreach (Grid thisGrid in myListBox.SelectedItems) { foreach (TextBlock thisTextblock in thisGrid.Children) { ...
stackexchange/codereview
when adding a mask to a parent sprite with a dynamic text field, the text loses anti-aliasing. how can i maintain the text's anti-alias while still applying a mask to its parent, and subsequently to itself. the font is embedded, and the text field will be animated so it must also be masked along with its parent. pack...
stackexchange/codereview
Can this be done? Or any other editors I can embed into my java swing app
stackexchange/codereview
I created new remote git repository and already pushed something in there - first test push and then real code push from local. I want to start from scratch so I can creat few branches (master = ready to release code, test branch and branches for developers) and give them different permissions per user. Can I empty the...
stackexchange/codereview
I managed to figure out how to create a custom shape (with a dashed stroke) by creating a file called dash.xml inside of the /app/res/drawable/ folder: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:color...
stackexchange/codereview
Is it possible to have glibc and uClibc based applications running side-by-side on one system? Background: We have binary gcc based cross-compiler configured to link with uClibc. We have cross-compiled glibc with it. Now we want to build some applications so they will link with the glibc rather than uClibc. We don't wa...
stackexchange/codereview
and thanks in advance for any and all help provided. I've checked around on the internet and haven't found anyone else with my specific problem. I am running Wordpress on a website and have two divs that I would like to enable the user to change the color of using Javascript/HTML. The background color can either be spe...
stackexchange/codereview
i'd like to remove php extension with htaccess, but also deny from all the direct access to php file. So if you write www.site.com/test , your ok and www.site.com/test.php you cant access! Thx
stackexchange/codereview
I have this function that loads an specific .log file: function loadTracks():void { tracksLoader.load(new URLRequest("/Users/Me/127.0.0.1,"+_logNum+".log")); } The logNum variable gets its value, writing it by hand in a separate text file, avoiding to open and editing the .fla each time the new .log has a different n...
stackexchange/codereview
I have a UIView subclass that I want to be 50x50; When I load it it always takes up the entire screen How can I solve this?
stackexchange/codereview
I want to link links on my website via go.php?urlhere, I have been told and I have tried using go.php?url=urlhere however the URL's to which I redirect, redirect to another URL with-in it for example go.php?http://.com/click?p=0&a=0&url=http://.com, many of the redirect I have tried to use simply copy the URL in the go...
stackexchange/codereview
I found in my ipod touch and in iphone simulator, the button "return" only respond when touch area inside red rectangle, other places not respond What's the problem?
stackexchange/codereview
I am trying to implement a paint program in PyQt4. In the QGraphicsScene, I use the mouseMoveEvent to draw lines connecting the consecutive mouse co-ordinates. The code is as follows: def mouseMoveEvent(self, event): x1 = event.pos().x() y1 = event.pos().y() self.addLine(self....
stackexchange/codereview
After the user enters a username/password and clicks a button a few steps happen: Password is encrypted and checked against small database table (customMembershipProvider) A query returns the users roles (customRoleMembershipProvider) A query is run that returns about 30 records FormsAuthentication.RedirectFromLoginPa...
stackexchange/codereview
According to MSDN it's possible to create a NEW assembly in runtime using, for example, Reflection.Emit and add a new class in it, I just would like to avoid such an overkill and create the class in an existing assembly. Is it possible?
stackexchange/codereview
I have a table in SQL Server 2005 whose primary key is an identity column (increment 1), and I also have a default value set for one of the other columns. When I open the table in SQL Server Management Studio and type in a new record into the table, the inserted values are not displayed, and I get the following messa...
stackexchange/codereview
This bit of code doesn't seem to work. for(var b = 0; b < wallPoints.length-1; b++) { wallPoints[b].xPos = wallPoints[b]-1; } function Point(x,y) { this.xPos = x; this.yPos = y; } wallPoints is an array of Points The code doesn't return any errors, it just makes all my code stop executing....
stackexchange/codereview
i've created a script that allows you to delete all users who are attending a certain night. The script will show all of these users in a table before you select to delete them all. For some reason it misses out the first record though... <?php # delete_guest.php // this page is for deleting a guest // this page is a...
stackexchange/codereview
I have two vertically-split buffers in Vim showing two separate files that I want both displayed and scrolled synchronously. With :set scrollbind at the top of both buffers, I can get the scrolling part down (so when I hit zt in one buffer, the current line jumps to the top in both buffers), but unfortunately, the disp...
stackexchange/codereview
I am currently in the process of migrating our software solution from Delphi 7 to 2010. Mostly the changes have been simple and there are only a small amount of hurdles left to go. On a form we use a TRichEdit which displayed rtf text grabbed from a blob field in a MSSQL db. This is how it worked in Delphi 7: //Get RTF...
stackexchange/codereview
I'd like to start using buttons like this on my site: <button type="submit" class="positive" name="save"> <img src="images/apply2.png" alt=""/> Save </button> But I'd like to avoid making an image request... Is there a browser save way that I can use a data/image in CSS for the image TAG? Or possible not an im...
stackexchange/codereview
Does anyone know whether it is possible to utilise XMLSlurper in a fashion that means individual sub-trees can be pulled from a very large XML document and processed individually? Imagine you've got a huge XML feed containing a root element that has thousands of direct child elements that you can process individually. ...
stackexchange/codereview
var a = "Text(money ='3/3/dollor',unit=42)"; I want to get rid of money ='3/3/dollor', Using javascript, how to do this? Sorry I did not make this very clear, the string after money = can be anything but they are string for sure, and always ends up with an comma. More samples var a = "Text(money ='v23f3/.3/dollor',u...
stackexchange/codereview
I would like to use regex to identify quotes in a string with the words between them. I also would like to include both double quotes and single quotes. Example, If I had a string: The "cat and the hat" sat on a rat. The 'mouse ran' up the clock. Then it would identify the following: cat and the hat mouse ran What ...
stackexchange/codereview
I am writing a game using Java Swing. I want to paint each time a loop executes with a small delay in between to create a cascade effect on screen. I believe that the efficiency routines in the system are collapsing the calls to repaint() into a single call. At any rate, the changes all occur at once after the total de...
stackexchange/codereview
Which is better some_func.bind(this,arg1,arg2,arg3).delay(4); or some_func.bind(this).delay(4,arg1,arg2,arg3); I know that both ways will wrap things up in two layers but suppose one of the arguments lets say arg1 is an object that is a reference from the current context, e.g. var arg1 = this.some_obj. Now because of...
stackexchange/codereview
I have the following question here .data a: .asciiz "2021" x: .byte 7,2,12 .text main: addi $t2, $0, 1 lb $t3, a($t2) Can someone explain to me, HOW the value of $t3 is 48? thanks EDIT this is an another question which is similiar, and is confusing. .data a: .word 12,-5,4,0 x: .byte 5 .text main: addi $t1, $0, 8 lw $t...
stackexchange/codereview
Sometimes I wonder when something gets autoreleased. I added an NSLog in the dealloc of various objects, but I couldn't find anything useful. When does something release when autorelease is used? Is it unpredictable, or is there some extra thread running? Thanks.
stackexchange/codereview
I am trying to give the form input a default value which changes when the user clicks on the input box. How can I do this using jquery? $(document).ready(function() { $('#tradition').click(function() { $('#form-container').attr("class","trade"); $('.lblMadlib11').text("Eleven "); $('.lblMad...
stackexchange/codereview
I have been having a problem with the str_replace function, if I try to replace the word 'quote' it also replaces the matching part of the word 'quoted' which is not desired. any suggestions ? I am using glossary file to get the words from and pass it into an array, then open an html file that I need to modulate with g...
stackexchange/codereview
I have a div container on my web page with fixed width and it contains form elements for logging in. Below these elements there are a submit button, forgotten password link etc. It happens the last line elements need fewer width than the box provides. How to spread them evenly? I don't want default | A B C ...
stackexchange/codereview
Using CeeBot, I haven't found a way to get the tilt angle of a robot. For example, if the robot have to shoot at an enemy, it has to change the angle of the canon to aim at the enemy. But if the robot is not on a flat ground, but on a steep, the angle of the canon will have to take into account the angle of the steep. ...
stackexchange/codereview
first I have checked that Server Authentication is already set to: "SQL server and Windows Authentication mode" (mixed mode) ้here 's my web.config connectionstring <connectionStrings> <add name="StockConnectionString" connectionString="Data Source=192.168.0.2;Initial Catalog=Stock;Persist Security Info=True;User I...
stackexchange/codereview
I am trying the following code on Java: String test = "http://asda.aasd.sd.google.com/asdasdawrqwfqwfqwfqwf"; String regex = "[http://]{0,1}([a-zA-Z]*.)*\\.google\\.com/[-a-zA-Z/_.?&=]*"; System.out.println(test.matches(regex)); It does work for several minutes (after that I killed the VM) with no result. Can anyone h...
stackexchange/codereview
First off here is my code: CREATE FUNCTION unknown_Model () RETURNS TRIGGER LANGUAGE plpgsql AS $$ --checks if the product table has information pertaining to the new PC insertion BEGIN IF (SELECT COUNT(Product.model) FROM Product WHERE Product.model = NEW.model) = 0 THEN INSERT INTO ...
stackexchange/codereview
I'm trying to get tiles 2 working with JSP. I'm getting a null pointer exception. I'm having trouble finding good documentation that explains how to get setup. I have a pretty easy use case. I have a template with an attribute called "content". I'm then trying to use the template by inserting a jsp into the "content" a...
stackexchange/codereview
Newbie ask: Did I miss something? Loaded scripts http://extjs.cachefly.net/ext-3.2.1/adapter/ext/ext-base.js http://extjs.cachefly.net/ext-3.2.1/ext-all.js Code Ext.onReady(function() { Ext.Ajax.request({ method: 'GET', url: '<?php $template_url."/raw-post.php" ?>', params: { Xc : 0, Xp : <?...
stackexchange/codereview
Not a glassfish specialist here but in a project where GlassFish is to be used as enterprise service bus, and I am sort of on the receigving end and a little no agreeing with the architecture team. What are practical limits on throughput (messages per second) and message size for GlassFish? Just as house numbers for a ...
stackexchange/codereview
I want a site with a separate News and Blog page, ie only news posts are dispayed on news pages and non news posts on blog pages. Also archive lists, category lists, etc for each page must only display relevant posts. Seems like a common requirement, but using the WP documentation, I keep going around in circles!!! Is ...
stackexchange/codereview
I made a nested route in a Ruby on Rails 3 project. with the following routing: resources :companies do resources :projects end now I can get to the project contoller's index method via example.com/projects/id or example.com/companies/id/projects/id, but both pages display exactly in the same manner. How can I cha...
stackexchange/codereview
I am relatively new to KVO, so there is a good chance that I am violating some fundamental rule. I am using Core Data. My app crashes with the following message: And what I can't understand is why a CGImage is getting involved in observing a value that is set on a MeasurementPointer object. *** Terminating app ...
stackexchange/codereview
Full disclosure: This is a homework problem. I'm honestly freaking out a little that it's evaded me for so long when it seems so simple. Okay, the question is, f(n) = n^2*log(n), g(n) = n^2.1. Is f in theta(g)? I just need to come up with constants c1, c2 so that past a certain n0, f(n) <= c1g(n) <= c2f(n). But I'm not...
stackexchange/codereview
I'm currently writing a simple game. My graphics code runs once per frame (approximately 30 times per second), and writes RGB data to an array with 640 * 480 = 307200 entries. I have created a Win32 window with a client area exactly 640 x 480 pixels in size. What's the fastest way to get my RGB data displayed within th...
stackexchange/codereview
When communicating with http to http://forecast.weather.gov/zipcity.php I need to obtain the URL that is generated from a request. I have printed out the headers and their values from the http response message but there is no location header. How can I obtain this URL? (I'm using HttpClient)
stackexchange/codereview
Sorry if question is stupid but I am new to android, I need to put map in my android app. I looked at net and I run keytool.exe and get key, but when I run app it crushed and <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mainlayout...
stackexchange/codereview
For some reason, I'm having trouble negating a double and then returning it when a certain condition is met (which is being met). It stays positive, despite any coaxing otherwise. public static double angleDiffNoAbs(double from, double to, double maxValue) { double diff = to - from; double absdiff = Math.abs(dif...
stackexchange/codereview
I am getting UnauthorizedAccessException errros when running any tests using NUnit and WatiN: Test Test.IndexTests.Can_Do' failed: WatiN.Core.Exceptions.ElementNotFoundException : Could not find INPUT (hidden) or INPUT (password) or INPUT (text) or INPUT (textarea) or TEXTAREA element tag matching criteria: Attribute '...
stackexchange/codereview
This is in reference to an article 'Simplify Asynchronous programming with Tasks' published in MSDN magazine September 2010. In this article the author put forth the problem of downloading a file using WebClient from a web page using HTTP. The author explains that one way to solve the problem of a long running proces...
stackexchange/codereview
My Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using TouchlessLib; namespace WebCam2 { public partial class Form1 : Form { TouchlessMgr ngr = new TouchlessMg...
stackexchange/codereview
I need to translate this C code to assembly language code #include <stdio.h> #include <stdlib.h> int main(void) { int answer, i; int right, wrong; right = 0; wrong = 0; for(i =1; i < 11; i = i+1){ printf("What is %d + %d? ", i,i); scanf( "%d", &answer); if(answer == i + 1)...
stackexchange/codereview
I need to write a VBScript function that can convert arbitrary strings into a string that I can safely use inside JavaScript. Something like this: "Hello World" -- becomes -- "Hello World" "Hello World" -- becomes -- "Hello\nWorld" "Hello World" -- becomes -- "Hello\n\tWorld" "Hello'World" -- becomes -- "Hello\'...
stackexchange/codereview
Is there a better/faster way to find all elements with a class name in browsers that don't support document.getElementsByClassName? var elements = document.getElementsByTagName('*'), results = []; for (var i=0; i < elements.length; i++) { (elements[i].className === selector) ? results.push(elements[i]) : null; }...
stackexchange/codereview
Is it possible to perform a Cascaded Hough Transform in OpenCV? I understand its just a HT followed by another one. The problem I'm facing is that the values returned are always rho and theta and never in y-intercept form. Is it possible to convert these values back to y-intercept and split them into sub-spaces so I ca...
stackexchange/codereview
I am drawing a set of evenly spaced horizontal lines within the entirety of a bounding box. The problem I am having is that the lines (when larger than 1px) get drawn beyond the top and bottom edges of my bounds. Half on each side of the top and bottom is missing, to be precise. Here is some pseudo code that attempts ...
stackexchange/codereview
I believe it's because of some power saving option or whatever but I cant debug it since it only fails when it's on battery I have a service that checks on a webpage every 60 seconds I use an asyncTask in the service to do this and I make it Thread.thisThread.sleep(60000); before checking am I doing something wrong? ...
stackexchange/codereview
Say, I saw a type named a.b.c.d in a piece of code, and Eclipse couldn't resolve it. I also found no dependencies declared on its POM. Can I search for the missing dependency by that type name?
stackexchange/codereview
I keep getting a memory leak indication from this sql statement when I assign the value retrieved from the database... Person *tmpPerson = [[Person alloc] init]; tmpPerson.personName = [NSString stringWithUTF8String: (char*)sqlite3_column_text(SelectPersonStmt, 0)]; tmpPerson.personEmail = [NSString stringWithUTF8S...
stackexchange/codereview
I have gone through the documentation: https://web.archive.org/web/20130309051214/http://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/GestureRecognizer_basics/GestureRecognizer_basics.html#//apple_ref/doc/uid/TP40009541-CH2-SW2 I am trying to implement the check mark exam...
stackexchange/codereview
I know that I can return YES to support Landscape mode in shouldAutorotateToInterfaceOrientation. But I would like to display a new view, when the user turn the device into landscape mode, how can I do so? thank you.
stackexchange/codereview
I've tried a couple of plugins but can't seem to get it to work. I've created a new folder in the main theme's directory "http://www.ecgresources.com/WP/wordpress/wp-content/themes/theme335/images/random-images". The div I want to display is called main. I want to be able to put a little code on each page and pull an...
stackexchange/codereview
I want to convert PDF to SVG. I have written my own Java program using the Apache PDFBox and Batik libraries PDDocument document = PDDocument.load( pdfFile ); DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation(); // Create an instance of org.w3c.dom.Document. String svgNS = "http://www.w3.or...
stackexchange/codereview
Is there any way to send files using the Microsoft Communicator API/SDK?
stackexchange/codereview
When you store a transaction into a database 1) Do you store Credit and debit in the same record under two different columns? (without the positive or the negative sign) Example 1A TABLENAME ... ... (Credit) null (Debit) 100 Example 1B TABLENAME ... ... (Credit) 250 (Debit) null Or 2) Do you store 1 value with a pos...
stackexchange/codereview
I have a search form I generated using the filterGrid option in JqGrid. I want to add a JavaScript logic which is invoked before I submit the Search form. I have added a method which is invoked by the beforeSubmit property for the filterGrid. It goes into the method before submitting, but always submits the form regard...
stackexchange/codereview
How to insert data into 3 related tables (SQL Server) For example, I have tables Customer <-- Customer_Address --> Address After I insert data into Customer and Address, how do I insert the IDs from Customer and Address in to Customer_Address? (join table) Thanks!
stackexchange/codereview
What is the equivalent of java synchronized in objective c? I want to be able to make my singleton method safe, so when it's bein called from 2 different threads, they try to use it 1 by 1. +(MyObject*) getSharedObject { if(!singleton) { singleton = [[MyObject alloc] init]; } return single...
stackexchange/codereview
I am having heaps of trouble populating a simple drop down box in MVC2. The drop down is a required field so needs validation for this. I will also need to know which option the user selected when the form is posted back. If anyone has some code snippets for this I would love to see them. Thanx
stackexchange/codereview
Some bad browsers do not allow doing the following: <input type="file" id="file_input" /> document.getElementById('file_input').click(); Can we somehow learn if the click is allowed or not?
stackexchange/codereview
i'm evaluating to switch to netbeans ide for managing my zend_framework project; i'd like to have autocompletion for variable's name into my view, for variables defined in actions as i see in this screencast, http://netbeans.org/kb/docs/php/zend-framework-screencast.html , but i can't figure out. When i digit $this-> ...
stackexchange/codereview
I have a WPF TreeView with a HierarchicalDataTemplate. As I descend the hierarchy, expanding the nodes, I will eventually get to the bottom and data displayed via a normal DataTemplate. I'd like not to show those nodes - if I set the DataTemplate's containing TextBlock to Visible Hidden (or similar) I just get allocate...
stackexchange/codereview
Basically all I am trying to do is have a View post back to it's own post action method. I want the action method to update a simple value and have the view then display the new value. Below is some code snippets. The post action method receives the value from the textbox well enough but after updating this value the v...
stackexchange/codereview