instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I've built my .zip file, and I just want to extract it into my ~/Library/Application Support/Intellij-x folder That doesn't seem to work, and all jetbrains tells me (in their docs) is that I should upload it to their server. "Then everyone has access to it!" as though thats a good thing while I'm trying to test it outs...
stackexchange/codereview
I have this code that implements hook_form_alter for durpal search form and adds couple of new elements there. I have also added theme overwrite code in my template.php for the said form. In addition to this, I also pass form elements there. Everything works fine - adds new elements, theme is used;but, here's the probl...
stackexchange/codereview
Basically I attempting to extract the last tag name of a handful of different css selectors. I have successfully implemented what I am talking about in javascript, I'm looking for a more compact way using only 1 regex expression preferably. Here is what I successfully have working. //Trim selector, remove [attr] select...
stackexchange/codereview
i am trying to implement toggle function with a table row. Everything is going fine except in IE8. The script which i was used is given below. <script src="jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $("#report tr:odd").addClass("odd"); ...
stackexchange/codereview
I'm building a page where the users can choose which rows to edit. After they select their rows and hit "edit" I'd like to present them with a modelformset_factory showing an editable version of all the rows the user selected. My problem is I believe I need to turn this list of primary keys that I get back into a query...
stackexchange/codereview
I'm trying to setup a Spring 3 Web MVC project, using the @Controller, annotation-based approach. package my.package @Controller @RequestMapping("/admin/*") public class AdminMultiActionController { @RequestMapping(value = "admin.htm", method = RequestMethod.GET) public String showAdminSection() { return "admin";...
stackexchange/codereview
It is possible to extend a class like string (see http://www.c-sharpcorner.com/uploadfile/mgold/extendingstringclass03162008132109pm/extendingstringclass.aspx) is there a way to extend in a similar way System.Web for example by adding our own classes to this namespace ?
stackexchange/codereview
I have a service writing remote files, but it requires a byte array as input. Rest of the interface provides only JavaScript unicode strings. No way to write them then. I found something like this in MDC: var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"] .createInstance(...
stackexchange/codereview
I am having some trouble using httplib2. When I browse to the page with Google Chrome and save the source the file is about 106kB. When I request the file with httplib2 I only get 99.x kB and there is missing a lot of text in the beginning of the file. Is there some kind of size limit on bytes objects? Am I doing some...
stackexchange/codereview
I'm moving a Google App Engine web application outside "the cloud" to a standard web framework (webpy) and I would like to know how to implement a memcache feature available on Gae. In my app I just use this cache to store a bunch of data retrieved from a remote api every X hours; in other words I don't stress this cac...
stackexchange/codereview
I need to make from my app an authentificated httpwebrequest. the response to my request should be in json format. for this i'm using the code below: // Create the web request Uri address = new Uri("http://www.mysite.com/remote/user/login/format/json"); HttpWebRequest request = WebRequest.Create(addres...
stackexchange/codereview
My current style of programming is OO javascript using the Class.extend function by John Resig: http://ejohn.org/blog/simple-javascript-inheritance/ This has been fine but I find myself writing numerous setters and getters that only get used on init. Also, it seems to lead to memory leaks in IE when storing instances ...
stackexchange/codereview
I have 5 items each of which can take on the value of 1 or -1. I want to generate a matrix that consists of rows of the possible combinations. The order of the items does not matter and the order of the combinations does not matter. I know I could do this mechanically, but I thought that someone must know a shortcut to...
stackexchange/codereview
This sql script gives me error at the VARCHAR and EXIT;. I try to run it under MySQL console. May I know how to solve this? CREATE TABLE Solution ( SolutionKey INT NOT NULL, /* PRIMARY KEY (SolutionKey), */ FeatureKey VARCHAR(100), /* +++ Foreign key missing here */ Value VARCHAR(4000) ); CREATE TABLE Ina...
stackexchange/codereview
On my homework I have a question/part where I am confused at (can't understand it). Iv ) The main method calls the printdata() method for each Earthquake object. The printData() method accepts an Earthquake object as a parameter and prints all the Earthquake's idea, including latitude, longitude, magnitude and classifi...
stackexchange/codereview
How to add a UIActivityIndicator to a splash screen ? Edit : I tried the following things I created UIViewController Sub class called SplashViewController. and the code is as below, still the image is not persisting long enough .
stackexchange/codereview
I have a userControl with a picturebox in it. I need the areas of the userControl to be transparent and unclickable on the main form. After some searching Ive come up with this. http://msdn.microsoft.com/en-us/library/aa235175(VS.60).aspx but it doesn't seem to work. I have it set up so the usercontrol can be drag-and...
stackexchange/codereview
I need to store various types of data and update it from different parts of my application at different times. I was under the impression I could use NSKeyedArchiver to do this and just update parts of the data using the appropriate key when necessary...much like a database. It seems that NSKeyedArchiver overwrites t...
stackexchange/codereview
some case I don't want execute before_update. please help me. case A: in case I want used before_update obj = Object.find(id) obj.save but case B I don't want used before_update obj = Object.find(id) obj.save # in case I want used before_update
stackexchange/codereview
is it better to save the exact user input in the database or clean it for xss and store .. or is it good to store the direct user input , clean it and display it ?? please guide me . Thanks
stackexchange/codereview
Background: We're modeling the firmware for a new embedded system. Currently the firmware is being modeled in UML, but the code generation capabilities of the UML modeling tool will not be used. Target language will be C (C99, to be specific). Low power (i.e. performance, quick execution) and correctness are important...
stackexchange/codereview
I would like to check the first radio button of each group. But there are some radio button that are disabled, so the script should ignore them and go to next non-disabled button. I wrote something like this but it doesn't work: $(document).ready(function(){ if ($("input['radio']).is(':disabled')) { $(thi...
stackexchange/codereview
I find that the password can only retrieved by method GetPassword() in asp.net2.0 Membership. In fact, we can get the password when we get the user infomation from database and set it as a property of user(object of MemberhsipUser) just as user.Email, user.UserName, etc. It's clear that adopting the second resolution(p...
stackexchange/codereview
I have a Visual Studio 2008 Team System Development Edition installed and a solution that contains a Database Project. Is there any addon that I can install to make Studio load this project?
stackexchange/codereview
Suppose I have the following code: typedef struct { char **p; } STRUCT; int main() { STRUCT s; *(s.p) = "hello"; printf("%s\n", *(s.p)); return 0; } which obviously doesn't work, but it should show what I want to do. How would I go about initialising, accessing, printing, etc the array of strings...
stackexchange/codereview
I'm trying to define an overload for the != operator. My code is as follows. (Update: outdated code. If one of two article pointers points to NULL, this code will crash.) bool ArticleContainer::ArticleIterator::operator!=(const ArticleIterator& artit) { if (this->article == NULL && artit.article == NULL) re...
stackexchange/codereview
My app delegate contains: - (void)applicationDidFinishLaunching:(UIApplication *)application { // Override point for customization after app launch window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; if (!window) { [self release]; return; } window.backgroundColor = [UICol...
stackexchange/codereview
I would like to put an image (a guide so people can frame the picture correctly) in front of the camera preview of the UIImagePickerController. How would I do that ? thanks Louis
stackexchange/codereview
for a project of mine I inherited a ComboBox to change its size behaviour. In addition to this i wanted, to speed up my forms' creation, to set the default DropDownStyle to ComboBoxStyle.DropDownList To do this i used the [Default()] command overwriting the DropDownStyle property [DefaultValue(ComboBoxStyle.DropDownLis...
stackexchange/codereview
I have several checkboxes. If a user checks any of them, I have to see if they are allowed to do that, if not, notify them and uncheck it. However, this get me in a loop as it triggers the change again! How can I over come this? $('#step_1, #step_2, #step_3, #step_4').change(function(event) { if(!$('#section_2_...
stackexchange/codereview
I'm using the WordPress "attachment" feature to allow end users of my theme to upload images that will appear above the post content (not inserted into the post itself). The only problem I have is that there is not a field to allow the end user to specify the link that should be loaded when the end user clicks on one o...
stackexchange/codereview
I had gridview which retriev data from database and filter this gridview when I select ddl .and I allow paging in this gridview .But I noticed that when i selected ddl and the gridview get it,s data and I do through pages number in paging and if I stoped in ex.page number 4.And when I selected ddl again the gridview ge...
stackexchange/codereview
I have a UITable with a datasource that is set to a 'copy' of the original data. I use this copy to displayed filtered results (either 'All' or only those that are 'checked' with a UISwitch in each row). My logic for doing the filtering is here: -(void)filterItems { [tableData removeAllObjects]; if (checkedOrNotSwitch....
stackexchange/codereview
I am trying to create a program that takes a number of tab delaminated text files, and works through them one at a time entering the data they hold into a MySQL database. There are several text files, like movies.txt which looks like this: 1 Avatar 3 Iron Man 3 Star Trek and actors.txt that looks the same etc. E...
stackexchange/codereview
I wrote some code to connect the application to it's database, then I created some code to use the connection code and retrieve, update or add some values to the database, Also I might have some code to deal with other stuff than to deal with the database The code is a little complicated, maybe it's simple but it's not...
stackexchange/codereview
I'm writing a mod_rewrite rule and would like a hand making it do what I want. Basically I want the following cases to work: request | Redirect to --------------------- cheese | /?page=cheese abc123 | /?page=abc123 abc/def | /?page=abc/def a/b/c/d | /?page=a/b/c/d (Any alphanumeric plus . - / and _ redirected) With ...
stackexchange/codereview
I am new to structuremap. I am trying to get Structuremap to auto-register public void RegisterAllEventHandlers() { Scan(cfg => { cfg.TheCallingAssembly(); //cfg.IncludeNamespaceContainingType<NewCustomerCreated>(); cfg.IncludeNamespace("ParentNameSpace"); cfg...
stackexchange/codereview
I am using - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo to take the image. Then use CGImageRef imgRef = image.CGImage; CGFloat width = CGImageGetWidth(imgRef); CGFloat height = CGImageGetHeight(imgRef);...
stackexchange/codereview
I'm just learning about F# and plan to use it for my next project. One thing I find immediately confusing is the lack of support for tab characters in .fs files. I love how indentation is used to show scope/hierarchy, but using spaces just seems so antiquated. Do I have to press backspace four times just to get back to...
stackexchange/codereview
In a model's Meta class, I define a unique_together. I have a ModelForm based on this model. When I call is_valid on this ModelForm, an error will automatically raised if unique_together validation fails. That's all good. Now my problem is that I'm not satisfied with the default unique_together error message. I want to...
stackexchange/codereview
I am trying to add ASLR to a project using a vsprops file. I have verified the file is being used by the project as there are other settings in the file that are being applied, and intentionally corrupting the file produces an error when opening the project under MSVC. When I set ASLR to yes I can see RandomizedBaseAdd...
stackexchange/codereview
I have this code to popup a JQuery dialog box: $( "#dialogBox" ).dialog({ height: 585, width: 620, modal: true, resizable: false, show: { effect: 'fold', complete: function() { $("#txtEmail").focus(); } } }); The dialog box appears correctly except fo...
stackexchange/codereview
I developed apps with google map.I got map key i got google map in my application two days before .I did nt change anything but now i did not get the google map only show boxes .The logcat show couldn't get connection factory client error.I searched this error but i can't get clear ans as well as map .So plz anyone hel...
stackexchange/codereview
I link my program against the qtestlib and include QTest. But then I get a log-window which prompts all the qDebugs, when the application starts even if I set the configuration to release or debug. Is it possible to include QTest without opening a log-window on application start? I need some functionality of QTest in m...
stackexchange/codereview
How can I display a div in a perspective view or with a vanishing end.
stackexchange/codereview
I need some help with a regular expression in a Cucumber step definition file. Many of my steps are of the type: Given I am on the search page I use this general pattern for most of my step definitions, and use the default Webrat regex to pick it up that looks like this: Given /^(?:|I )am on (.+)$/ do |page_name| ...
stackexchange/codereview
What is the best way to track page views? For instance: SO has how many views a Question has, yet hitting refresh doesn't up the view count. I've read that using cookies is a pretty good way to do so, but I'm at a loss on how this doesn't get out of hand. I've searched all over and can't find a good answer for this. ED...
stackexchange/codereview
I'm trying to get my Chrome extension working with the Google Calendar API. However, the way Google has set up the extension sandbox makes anything almost impossible. I can't add the Calendar API using JavaScript because I've tried 200 different ways to include the http://www.google.com/jsapi library. Therefore, I want...
stackexchange/codereview
Running in a Linode slice with Ubuntu 10.04 LTS. I am getting a 500 Internal Server Error. The Apache log has: Apache/2.2.14 (Ubuntu) Phusion_Passenger/2.2.7 configured -- resuming normal operations caught SIGTERM, shutting down * Passenger could not be initialized because of this error: The Passenger spawn server scri...
stackexchange/codereview
I'm using the following code to locate a div: parser = etree.HTMLParser() tree = etree.parse(StringIO(page), parser) div = tree.xpath("//div[@class='content']")[0] My only problem is, that after doing this I do not want to rely on lxml to extract the contents of said div: I just want to get back the raw XML the div c...
stackexchange/codereview
I have been trying to figure out if it is possible to programmatically resize an NSArray, using code similar to this: NSArray *resize = [NSArray arrayResized:oldarray size:10]; Which would a new NSArray (Not a NSMutableArray if it is possible) that has the elments after the end of oldarray padded with [NSNull null].
stackexchange/codereview
I'm trying to rewrite this as a for loop; my attempt below failed. Any ideas? jQuery.event.add(window, "load", resizeFrame); jQuery.event.add(window, "resize", resizeFrame); function resizeFrame() if ($(window).width() < 232){ $("#grid-content").css( 'width', '232px' ); }else if ($(window).width() < 458...
stackexchange/codereview
I'd like to include a large compressed string in a json packet, but am having some difficulty. import json,bz2 myString = "A very large string" zString = bz2.compress(myString) json.dumps({ 'compressedData' : zString }) which will result in a UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-13: i...
stackexchange/codereview
I'm using the Ninject.Web.Mvc (the MVC 2 version) add-on with ASP.NET MVC 2. This is an excerpt of my Global.asax.cs: protected override void OnApplicationStarted() { AreaRegistration.RegisterAllAreas(); RegisterRoutes(RouteTable.Routes; // RegisterAllControllersIn() is not available in the MVC 2 version of...
stackexchange/codereview
I have a WSDL file (the web-service has written by .NET) and i can generate the java web-service client proxy classes and codes in IntelliJ IDEA 7.0.4 by its tool. the web-service has a soap request header , but i can't see any property or method in auto generated Java proxy classes and codes to set the request header....
stackexchange/codereview
When in page.html?xxx which embed 1.swf,how can I redirect to page.html?xxx&new_param=1 (preserving original parameters,append a new parameter new_param=1)?
stackexchange/codereview
I have a table which at the moment just consists of an id, name, and number field. I would like to be able to record how much number field changes daily so that I may graph it later(ex. 10/01 5 , 10/02 20 etc). How do I set up the table in such a way that it will keep up with the daily changes?
stackexchange/codereview
I'm currently re-writing a Vb6 program relying on ADO into C# w/ ADO.NET. I've run into several places in the original code with stuff like this: Dim rs As New Recordset rs.CacheSize = 500 Call rs.Open(sSql, cnMeta, adOpenForwardOnly, adLockReadOnly) Is there an equivalent (or even a need for an equivalent) to ADO.Re...
stackexchange/codereview
I'm learning OOP in Java, but I'm not sure how to implement this reference or whatever you want to call it. There are two relevant classes: Manager and Team Team contains a field called manager, which is an instance of Manager. This links the team to a manager. It also contains a String field called name, which is the ...
stackexchange/codereview
If a user does a "pinch zoom" on the map, my overlays don't properly size until the end. This has been noted in other posts, so i assume it is a known issue. Problem is, my client finds it totally unacceptable, as I am tasked with making the android app look as good as the iphone version. Is there any way to correct...
stackexchange/codereview
I have an array, let's say A = 1 2 3 4 5 6 7 8 9 2 3 4 3 4 5 1 6 8 I took a point from 3rd column, let's say p=9. Now I want a new array that gives me all values after 9 and discards values before 9. For example: ans = 7 8 9 ...
stackexchange/codereview
after a lot of google searches I've been unable to find a clean/simple plugin that handle flyout menus. flyout menu being, click an icon, and a list of menu items dropsdown. Most flyout menus seem to have the menu items generated on click as a DIV. Any solutions? Thanks
stackexchange/codereview
I've just begun dabbling in putting together a set of controls as assemblies and I'm working on default styling. What I currently have is a UserControl in a project (thanks Reed!) and I'm able to bring that into another project via reference. I plan to add more controls over time to build something of an SDK. I current...
stackexchange/codereview
Java EE 6, NetBeans 6.9.1. Part of my project is a SOAPy web service. I've written the server-side part of it, and that seems to work OK because GlassFish 3.0.1 is correctly generating WSDL files for the web services. The web service sends and receives JPA entity classes, which the client operates on. I used NetBeans'...
stackexchange/codereview
I have observed that most of the design patterns (I refer mostly from the Gang of Four book) are all based on polymorphism. That leads me to a "enlightened" moment that OOP's polymorphism is the most important feature in the paradigm. Some of the patterns use polymorphism are: strategy, factory, bridge... With that, I ...
stackexchange/codereview
I have a listener bean which calls on a session beans method in the MDBs onMessage method. If an exception occurs, such as IllegalStateException (which I throw) or NPE, then JBoss keeps logging the exception, and also keeps retrying to deliver the same message, again spamming the logs, then it sends the message to DLQ,...
stackexchange/codereview
In which case webpage loads without external stylesheet in chrome or safari ? I am talking about a case in which webbrowser first loads webpage without stylesheet and then redraw it with css once it becomes available. It would be great If you give me a small html page with external stylesheet, which always loads webpag...
stackexchange/codereview
Sometimes my system call goes into a never ending state. To, avoid that I want to be able to break out of the call after a specified amount of time. Is there a way to specify a timeout limit to system? system("command", "arg1", "arg2", "arg3"); I want the timeout to be implemented from within Perl code for portability...
stackexchange/codereview
Using CKEditor (combined with KCFinder for file upload), when I use the browse button and retrieve my file I get the path: "/demo/cms/uploads/images/image.jpg" Which is the path to the image, however if I then move the file around within the editor, the automatically path changes to: "uploads/images/image.jpg" Which ...
stackexchange/codereview
This seemed trivial at first, but I can't get it right for some time now. The relation is trivial. class Project < ActiveRecord::Base has_many :tasks end class Task < ActiveRecord::Base belongs_to :project end Now I would simply want to get all the Projects which have 1 or more tasks associated. Now to do this wi...
stackexchange/codereview
Is it possible to upload a video into an SQLite DB (not just the URL)? I have tried it but have not found success; if any one knows the solution, please post the answer.
stackexchange/codereview
I am trying to make a simple web service with the following XML schema as response to some operation. <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="TResponse"> <xs:complexType> <xs:sequence> <xs:element name="STATUS" type="xs:string"...
stackexchange/codereview
Can anyone please tell me, how do I get the default mail client using applescript?
stackexchange/codereview
How to look for the value whether it is null or not in JSP. E.g. in below I want to check the description column in pipe table for null values. String Query1 = "SELECT description FROM pipe where pipe_id='" + id+"' and version_id=2"; SQLResult = SQLStatement.executeQuery(Query1); SQLResult.first(); description = SQLRes...
stackexchange/codereview
I have simple C# thread with lots of properties. How long property is alive becouse in properties i store some data. Can be property alive more than 1 months and store data or is better to use DB. thx
stackexchange/codereview
I am puzzled why it won't display the name. I expect to see the output, "Jeffrey" but it doesn't. I created an object with an argument to be passed to the constructor so I expected "JEFFREY" to be displayed but it didn't. I added the echo function in constructor to see if it output jeffrey and it didn't echo either. PH...
stackexchange/codereview
Ultimately my application is pattern matching based on a text selection within a web browser, generating regEx code so that a portion of a page can be revisited and read anagrammatically. I'm currently pulling a portion of the text by walking up the dom and then returning innerHtml. The issue that I have is the text va...
stackexchange/codereview
I am trying to write some code which will open List1.txt and copy the contents up until it sees the string 'John smith' to List2.txt. This is what I have so far: F=open('C:\T\list.txt','r').readlines() B=open('C:\T\list2.txt','w') BB=open('C:\T\list2.txt','r').readlines() while BB.readlines() == 'John smith': B.wri...
stackexchange/codereview
I would like to generate an image from text that I get from a database. I know how to do that no problem, however where I need help is how to dynamically shrink or grow the bounds of the image based on how much text there is. I will not know how much text there will be in the database column. Is there a way to wrap tex...
stackexchange/codereview
So this is my code to generate the current datetime for make an insertion in the google table jiql_registrations Date fecha = new Date(); DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); try { Conn = ConexionGoogle.obtenerConexion(); Statement Stmt = Conn.createStatement...
stackexchange/codereview
Hi Inside rails console you can get the result of the previous operation with _ Is there any way to do such a thing inside ruby program?
stackexchange/codereview
I have a web app hosted with GoDaddy (so the web server is in Arizona - Mountain Time). My users are mostly in Central Time Zone, but I could have some from other time zones. I have a web page with a databound dropDownList using TimeZoneInfo, and I want to set the selected value of this dropDownList to whatever time...
stackexchange/codereview
I've CSV string 100.01,200.02,300.03 which I need to pass to a PL/SQL stored procedure in Oracle. Inside the proc,I need to insert these values in a Number column in the table. For this, I got a working approach from over here: How to best split csv strings in oracle 9i [2) Using SQL's connect by level.]. Now,I've anot...
stackexchange/codereview
Hey i am using a 3rd Party Newsletter Tool which at the end gives me the html for the form to place on my site. Basically looks like this <form action="http://link/subscriber/subscribe.html" method="post"> <input name="subscribeBoxId" type="hidden" value="XXXX"/> <input name="subscribeBoxTitle" type="hidden" va...
stackexchange/codereview
Well I try to implement the run action to move a specific sprite towards the specific destination, I can achieve that using the below code snippet. [spriteA runAction:[CCSequence actions:[CCMoveTo actionWithDuration:0.2 position:realDest],[CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)],nil]]...
stackexchange/codereview
Using ASP.Net, VB.Net In my web page, i have the textbox values when i press the send button the textbox value automatically send to email address... How to do that... Need Code Help
stackexchange/codereview
I have downloaded the ASP.Net MVC2 RTM source code and I'm trying to run my application against it. For some reason my .ascx controls keep using the non generic ViewUserControl instead of the generic version. My control includes the following line at the top: Inherits="System.Web.Mvc.ViewUserControl<ExistingAppl...
stackexchange/codereview
I am having difficulty deciding what the time complexity of Euclid's greatest common denominator algorithm is. This algorithm in pseudo-code is: function gcd(a, b) while b ≠ 0 t := b b := a mod b a := t return a It seems to depend on a and b. My thinking is that the time complexity is O(a ...
stackexchange/codereview
I'd like to do the following: for table in table_list: 'table'.samefield = newvalue
stackexchange/codereview
The grails application I am developing could run against MySQL or SQL Server. I want to add a new property in application.properties file say database.type=MySQL // or it could be SQLSERVER How do I get this property in Datasource.groovy so that if it is MySQL I connect to MySQL server or it is SQLSERVER I connect ...
stackexchange/codereview
This query would get one row with the id and the number of ID in the Messages. SELECT id, count (id) FROM Messages and I need that could get a list of id in the second field was the number EDIT: I do paged media. To do this I need to know how many of these lines that would make the button "next" active or not active I...
stackexchange/codereview
i wish to find out the functionality for checking the default APN... i.e active APN on a handset .
stackexchange/codereview
I've taken some animation xml straight from the android docs, and as far as I can see, doesn't work on either my 2.1 update 1 emulator or my 2.1 update 1 Galaxy S device. Specifically, I'm trying to create an animation to pulsate a view (i.e. make it smaller then larger in one animation) This is the very simple ma...
stackexchange/codereview
Is there any way to remove the circular panning navigation control but keep the zoom control in the Google Maps V3 API? I've tried forcing it offscreen with jQuery but every time the map is updated it comes back. Any ideas? Thanks!
stackexchange/codereview
we have a stored procedure that ran fine until 10 minutes ago and then it just hangs after you call it. Observations: Copying the code into a query window yields the query result in 1 second SP takes > 2.5 minutes until I cancel it Activity Monitor shows it's not being blocked by anything, it's just doing a SELECT. R...
stackexchange/codereview
In Delphi, if I have a variable myObject : MyClass, and MyClass has a property that is a fixed-length array with 300 integers in it, when will the memory for it be allocated? When the scope of myObject is entered? When I call myObject := MyClass.Create; (constructor)?
stackexchange/codereview
Assuming I have a string $str = "abc*efg*hij*"; and an array $arr = array("123","456","789"); Now I want to replace the *s in $str with the elements in $arr according to the positions.The first * replaced with $arr[0],the second replaced with $arr[1] etc.I check the function str_replace,though it accepts arrays as pa...
stackexchange/codereview
I need to annotate a PDF in my application. Is there any API for PDF annotation in iPhone/iPad ? Any suggestions?
stackexchange/codereview
i have the following code public static void main(String[] args) { int x=0; int y=0; for(int z=0;z<5;z++) if((++x>2)||(++y>2)) x++; System.out.println(x+" "+y); } For this the output is 8 2 public static void main(String[] args) { // TODO Auto-generated method stub int x=0; int y=0; for(int...
stackexchange/codereview
How to gain function mentioned above? Google is not very helpful with this-
stackexchange/codereview