instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
How do you save a screenshot you take from your code, and put it into an email within your app?
stackexchange/codereview
How do I deep copy a hashtable to another new hashtable?
stackexchange/codereview
I'm using the COM interface to Excel and I would like to get hold of the formatted textual representation of a cell rather than the true underlying value. For example, suppose the cell contains the number 1.23456 and the user has specified the number format with 1 decimal place. Then I'd like to be able to read the st...
stackexchange/codereview
I have a table with customized headers for the sections. In addition to that, I implemented a collapsing feature, so that when a header is touched, all non-adressed sections are reduced, and the adressed section is expanded. I realized that by using UIButtons as background views. Furthermore, the buttons have different...
stackexchange/codereview
I have the following web page that is distorted in IE, but which validates and I can't find any problem with... Here's a link to the page which looks fine in FF, Safari, chrome, but is not right in IE8. I'm also getting this error in Chrome: "Uncaught TypeError: Cannot call method 'focus' of null (anonymous function) o...
stackexchange/codereview
There is restaurant, and I have wrote app for them. Now my task is to create device communication: only single app (on a single device) should work at one time. I.e. when user starts to use application on one device, apps on other devices should show warning "Please, wait...". How I can do this? I am thinking about cr...
stackexchange/codereview
Microsoft Exchange market share is generally quoted to be very high. What are the technological factors which put Exchange at an advantage over its competitors, that is, other alternatives? Are there any open-source options?
stackexchange/codereview
I'm parsing a css stylesheet with cssutils python module. The parser emits an error when reaching the "[dir=ltr] div.row div.label" selector. I would like to find a way to modify the CSS to make the parser happy and maintain the same functionality. What would be the standard way for this: div.row div.label { float: le...
stackexchange/codereview
I want send LinkedHashMap to another Intent. But I don't known what method for extras is allowable. Bundle extras = getIntent().getExtras(); LinkedHashMap<Integer, String[]> listItems = extras.get(LIST_TXT);
stackexchange/codereview
I have an Android app that has been already developed using SQLite. The DB is quite large (over 100 Megs) so it can be deployed only on the SD card. The data inside the DB is sensitive so for this reason we need to encrypt the DB. The default SQLite binary on the phone does not allow encryption or to add a plug in (ext...
stackexchange/codereview
could someone please help me. I'm trying to create a simple chart. set datafile separator "," set xdata time set timefmt "%d/%m/%Y %H:%M:%S" set format x "%H:%M" set autoscale y plot ["13:00":"14:00"] './data.csv' using 1:2 with lines data.csv: 26/10/2010 13:30:01,1 26/10/2010 13:30:12,2 26/10/2010 13:30:23,3 ...
stackexchange/codereview
I have a uitableivew made up of custom tablecells (of type FormCell). Each cell has a label and textfield. I would like to iterate all the values to get user input (in other words, what is written in the uitextfields) I have gotten as far as NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"FormCell" owner:self opt...
stackexchange/codereview
I have a base class and it has virtual functions. The issue is that, the base is allowed to be instanced, but that means that all of its functions need a definition. This causes the compiler to warn me about unused parameters. What can I do to properly get rid of these warnings without making pure virtual functions and...
stackexchange/codereview
I'm beginning to mess around with the CLLocationManager and I am trying to use the callback method below. I went outside to test it on my iPhone, and with the first few updates, I seem to be getting gibberish values, like all of a sudden my distance is 39meters even though I haven't moved anywhere. Or sometimes it wi...
stackexchange/codereview
I have an application which is currently using the google map API. I like the maps much better, and I feel like you have more options with google maps. The problem is, Google maps has been very inaccurate when I give it an address to map, while Bing has been 100% on so far. I also like Bings Birds Eye view, but that's ...
stackexchange/codereview
I am prepared to be humiliated on this, but I am not sure what is wrong. I am just playing around with Android development and am just making a simple application that will print out accelerometer to a TextView. When creating the SensorEventListener, I get a syntax error (says ; is needed to finish statement) exact ...
stackexchange/codereview
I am writing a Search application that tokenize a big textual corpus. The text parser needs to remove any gibberish from the text (i.e. [^a-zA-Z0-9]) I had 2 ideas in my head how to do this: 1) Put the text in a string, transform it to a charArray using String.tocharArray and then run char by char with a loop -> while(...
stackexchange/codereview
It seems I don't understand something simple about Protocol Buffers, but this is very important question for me and for my real use-case. While reading documentation about Protocol Buffers I don't understand how one know which message you should decode from the stream? All examples about some defined Message, but if y...
stackexchange/codereview
Hello I am rewriting my problem in a more clear way. I have a javascript array just like this: var values=new Array('this is my "name"',encodeURIComponent('me&you&there'),encodeURIComponent('"£$%&/'),'0'); var jsonval=JSON.stringify(values); $.ajax({ type:'post', url:'dosomething.php', data:'action=getdata&myv...
stackexchange/codereview
I have a textarea which when in focus should empty the text holder and when out of focus should get back the original text or retain any text that was written while in focus. EDIT: i know how to select the text area. $("textarea").text(); i am not sure how to clear the content when u click on the textarea to nothing an...
stackexchange/codereview
Good morning all. I'm relatively new to the Visual Basic realm (although a traditional web based script developer), i've come to ask you a question. I am reading data from an XML file. This local XML file will be updated by another application, and I will need to periodically re-evaluate the XML file, and only import...
stackexchange/codereview
I have a table with a field that needs to store 512 characters. My question is this: can you limit the length of a TEXT field (VARCHAR stops at 255 - I can't use it) to 512 characters? If I do that, will MySQL run through the table quicker due to the fixed data length, or does it act a bit like VARCHAR in that the leng...
stackexchange/codereview
I have searched everywhere for this answer, and the answers that have been posted do not fit my specific situation as it gives me 404 errors, and I'm not sure why. I am trying to rewrite this: /c.php?url=http://www.example.com Into this: /c/http://www.example.com Right now I have this in my mod_rewrite: RewriteEngine o...
stackexchange/codereview
I'm new to Android, and event driven code in general. Rather than embed loads of anonymous event listener classes in my Activity to handle onClick events etc, I defined separate classes to keep the code clean. Then I use them e.g. like this myButton.setOnClickListener(new MyEventListener()); So, when 'myButton' gets cl...
stackexchange/codereview
I know this function: document.addEventListener('touchstart', function(event) { alert(event.touches.length); }, false); But is it possible to add this to a div? Example: document.getElementById("div").addEventListener('touchstart', function(event) { alert(event.touches.length); }, false); I haven't te...
stackexchange/codereview
How do I prevent the user from resizing form dialogues in VB6? The dialogues are small and simple and resizing them serves no purpose, so I'd prefer to prevent it than write code to handle it.
stackexchange/codereview
Is there a way to disable javascript webbrowser in vb.net?
stackexchange/codereview
I have a UISegmentControl where I'd like if none of the segments are selected when the segment first loads. Is this possible or do I need to write some custom control? Many Thanks, -Code
stackexchange/codereview
Hey All, I am thinking to save the data offline so that user can access the data on the iPhone when there is no internet connectivity. Can you please suggest an easy way to save the data for offline access. In my case I just need to save the rss feed so that whenever my service fails to pull the latest rss feed it shou...
stackexchange/codereview
I have the following code... internal sealed class Menu_Metadata { private Menu_Metadata() { } [Key] public int MenuHeaderID { get; set; } public string MenuHeaderName { get; set; } [Include] [Association("MenuHeader_MenuItem", "MenuHeaderID", "MenuHeaderID")] public IEnumerable<MenuItem> M...
stackexchange/codereview
I need to develop an application with downloads the data at the background and update about the progress in the front. I guess this can be achieved using services and activity and passing data in between the. But, what I need to do is even if I hit back button and then start the activity again. It should check if the s...
stackexchange/codereview
I'm interested in having a UIViewController that supports all orientations and cleanly uses two xib files to set up its subviews. One possibility seems to be to use NSBundle's loadNibNamed: method to load a new view hierarchy at each rotation, but this seems inefficient, and could have unfortunate side effects. For ex...
stackexchange/codereview
I'm trying to install the gem dm-mysql-adapter with the following command: gem install dm-mysql-adapter -- --with-mysql-config=/usr/bin/mysql --with-mysql-lib=/usr/lib/mysql and got this result: Building native extensions. This could take a while... ERROR: Error installing dm-mysql-adapter: ERROR: Failed to build...
stackexchange/codereview
Actually I have to work with a web service written in .NET with WSE 3.0 and digital signature and encryption of soap messages. I have to make a java client in order to consume the .net webservice. I have the wsdl file, a CA.cer file, a certoencrypt.cer file from the provider and I would like to know where to start in o...
stackexchange/codereview
I am trying to build a macro that cycles through a column of cells and replaces a two letter country code in that cell with the name of that country. However I get an object not found error when I try to run the macro. Sub ChangeCountryText() ' ' ChangeCountryText Macro ' Changes country codes ' For counter = 2 To ...
stackexchange/codereview
In my function I have more variables: $disallowGallery = 1; $disallowFriend = 1; $disallowWall = 1; $disallowPM = 1; $disallowStatusComment = 1; Now, i have a $check parameter. If it contains 'Gallery' the function should return the $disallowGallery variable. If it contains 'Fri...
stackexchange/codereview
I read here that On Windows, your Python version must match the version used to compile Mercurial. Otherwise, you'll get "Invalid Magic Number" errors when trying to run the CGI. The pre-compiled Windows binaries for Mercurial 1.0.x, 1.1.x, 1.2.x and 1.3.x were compiled with Python 2.5. I looked online but I dont se...
stackexchange/codereview
So I went through the steps to build a basic roo application here: http://static.springsource.org/spring-roo/reference/html/beginning.html I started up my server and started playing with the app, couldn't help but notice that there's a 'jsessionid' in my url: http://localhost:8080/pizzashop/pizzas;jsessionid=0A8EA5D9E8...
stackexchange/codereview
i have a constructor: public Form1(string startDate, string endDate, string cbQCValues,string cbAnalytes, string cbInstruments,bool copy_of_form) { InitializeComponent(); dateStart.Value = Convert.ToDateTime(startDate); dateEnd.Value = Convert.ToDateTime(endDate); GenerateGraph(); ...
stackexchange/codereview
How would you refactor this code? double p = (Convert.ToDouble(inta) / Convert.ToDouble(intb)) * 100; double v = (p / 100) * Convert.ToDouble(intc); return (int)v; It seems very messy to me, I know I could squeeze it onto one line but i'd be interested to know what others would do. Thanks
stackexchange/codereview
I am wondering if anyone can give some safe guidelines on the maximum level of dom manipulation you can do with jquery without freezing the browser. Also the best methods for mass DOM manipulation. Basically at any one time I could be dealing with lists of up to 40k li's All I am really doing is showing one, hiding the...
stackexchange/codereview
I've got an ObservableCollection<User> full of User objects which implement INotifyPropertyChanged. The collection is set as the DataContext of my Window, which contains a ListBox (whose ItemsSource is also set to the same collection), a number of TextBoxes, and a save Button, standard CRUD setup. I want to change the...
stackexchange/codereview
Is there a way I can edit a PDF from Java? I have a PDF document which contains placeholders for text that I need to be replaced using Java, but all the libraries that I saw created PDF from scratch and small editing functionality. Is there anyway I can edit a PDF or is this impossible?
stackexchange/codereview
Can I specify a style that applies to all elements? I tried <Style TargetType="Control"> <Setter Property="Margin" Value="0,5" /> </Style> But it did nothing
stackexchange/codereview
I recently tried to upgrade the ffmpeg libraries I use in my Mac OS X application by downloading and compiling ffmpeg from source. My code works correctly with pre-compiled libraries of the same version on windows. On Mac OS X, the library appears to work (it can open the file and find the streams and codecs used), but...
stackexchange/codereview
I write a small application, which should automatically process the emails from a public folder. For each email, we want to save some metadata, in a database. I wanted to use the ItemID to make the link between this metadata and a specific email, and I have just discovered that this ItemId is not constant. For example...
stackexchange/codereview
{if $GLOBALS.current_user.group.id != "Employer"} <li><a href="{$GLOBALS.site_url}/find_jobs/" >[[Find Jobs]]</a></li> <li class="sep"></li> <li><a href="{$GLOBALS.site_url}/add_listing/?listing_type_id=Resume" >[[Post Resumes]]</a></li> <li class="sep"></li> {/if} Just trying t...
stackexchange/codereview
I'm trying to embed my java applet using the object tag in html. While trying to research how to accomplish this task I came across this SO post. when trying to put the code into action on my page it looks a little something like this... <object name="Battleship" width="750" height="800" classid="java:Appl...
stackexchange/codereview
I have a VB.NET WinForms application which makes use of sequential Parallel.For statements. After adding a Threading.Timer, the Parallel.For loops slow to a crawl and the amount of kernel time jumps to nearly 80 percent. The two are not related in my code (i.e. neither is run by the other), nor do they share any code o...
stackexchange/codereview
Is there any Visual Studio 2010 add-in that will automatically group cpp and header files in different tab-groups, and also maybe automatically open/close corresponding cpp/header files when opening a certain file?
stackexchange/codereview
In Solr you can perform an ordered proximity search using syntax "word1 word2"~10 By ordered, I mean word1 will always come before word2 in the document. I would like to know if there is an easy way to perform an unordered proximity search, ie. word1 and word2 occur within 10 words of each other and it doesn't matter...
stackexchange/codereview
I am on a development team that is using JBoss EAP 4.3.0.GA_CP06. I need to be able to monitor JBoss using SNMPv3. I understand I am able to use SNMP to monitor, but is it possible to monitor using v3 out-of-the box? If it is possible, what configurations need to be made to do this? If it is not possible, what external...
stackexchange/codereview
I use OpenMappedExeConfiguration with ExeConfigurationFileMap to load configuration files. Their overloads suggest that they only work with filenames. Is there a way to load a configuration file from a stream? Background: I want to load configuration files that are stored as embedded resources. There is no file represe...
stackexchange/codereview
I have the following in my web.config <httpErrors errorMode="Custom"> <remove statusCode="500" subStatusCode="-1" /> <error statusCode="500" prefixLanguageFilePath="" path="/error.asp" responseMode="ExecuteURL" /> </httpErrors> The error handling is working in that, when a 500 error occurs, I am sent to my err...
stackexchange/codereview
Hi i am using Ajax to get a SELECT tag. I mean, if i click on a button it will generate a SELECT tag inside HTML, i have different outputs for different options of select. I need an onclick event on that SELECT tag, i tried using JQuery $('#id').click(function() { alert('test'); }); Its not working. Can anybody help...
stackexchange/codereview
I did some benchmarking experiments on a software, and now I must plot the results of the round-trip time. During the experiment, we generated lots of messages in Syslog format (RFC 5424) indicating how much time it took for a message to be processed by the program under different and controlled test conditions. Now we...
stackexchange/codereview
I'm wondering if there is a $_POST equivallent for $_SERVER['argv'], which only works with $_GET. This is because my ajaxscript recently changed from $_GET to $_POST due to IE7 issues but the query passed into the ajaxfunction is quite long. So if there is a simple alternative rather than to reconstruct the $_GET strin...
stackexchange/codereview
When I go into my rails app folder and write: which ruby I get this: /Users/gugguson/.rvm/rubies/ruby-head/bin/ruby When I write: ruby -v I get this: ruby 1.9.3dev (2010-09-25 trunk 29341) [x86_64-darwin10.4.0] Hovever when I run my app with: rails s I get an error indication it is using ruby 1.8.7 my app is using...
stackexchange/codereview
I have two classes Foo and Bar mapped to two different tables, and I'd like them to use the JOINED inheritance strategy, but joined using two non-keyed columns. The schema is pretty weird, but I'm stuck with it. Here's my setup: @Entity @Table(name="foo") @Inheritance(strategy=InheritanceType.JOINED) public class Foo...
stackexchange/codereview
I am learning EJB and I am trying to execute the Helloworld example given in EJB In Action book. My app server is JBoss, I created the Jar file for the bean class and interface in the right directory( I can see the EJB in JMX console). Now I created a simple client using EJB annotations, but I am getting a NullPointerE...
stackexchange/codereview
Possible Duplicate: Visual Studio Console App - Prevent window from closing. I'm starting to learn C++ on Windows and I'm trying a few different development environments: 1. Netbeans with Cygwin compiler 2. MS Visual Studio 2010 For either of them, when I write a very simple Hello World program, I build it and it's ...
stackexchange/codereview
I have a button, when held down motion occurs, when released it should stop. I know I could write two methods, one to start and one to stop motion, I was wondering if in the one method I could detect both based on Touch Up Outside vs. Touch Up Inside. If Touch Up Outside do this if Inside do this. -(IBAction) startMot...
stackexchange/codereview
I'm making a table in emacs org-mode of sunrise-commander commands from the .el file (want to make a cheat sheet). The list looks like this: /, j .......... go to directory p, n .......... move cursor up/down M-p, M-n ...... move cursor up/down in passive pane ^, J .......... go to parent directory ... I want to make ...
stackexchange/codereview
During deployment the jboss deployer scans all jars inside wars it slows down the deployment. how to stop that so that deployment speed improves. regards Shreyas
stackexchange/codereview
I am looking for code to open and read an Excel file, any version of Excel, including 2010. One of my columns has a dropdown in it. I need to get the value of the selected item in the dropdown. I would eventually want to populate these values into a business object. If anyone has some code to share please let me kno...
stackexchange/codereview
hi i have one image enter.jpg this is not coming in the middle of the i want it to come in the middle .how it will come to the middle . <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> ...
stackexchange/codereview
I have my workspace mapped like the following: <Team Project>/<directory 1>/<directory 2> When I run my build, however, I get the following error. "No matching items found in <Team Project>/<directory 1> in your workspace, or you do not have permission to access them." This happens during the Create Label stage. I am ...
stackexchange/codereview
Is it possible to just say to TFS that I have a file (call it Version.txt) and I want it to be checked in at a location (say $/MyProject/MyVersionLocation) and not have any workspace setup for that location? Something like (pretend Syntax): tf.exe c:\Version.txt CheckIn $/MyProject/MyVersionLocation /WorkSpaceOverride...
stackexchange/codereview
I need function for right-aligning my file. Could you give me some hint or suggestion? Thanks.
stackexchange/codereview
I'm trying to write a function that grabs a certain part of a file, sends that to another function, then continue to do the same thing from where the BufferedReader left off until the end of the file but can't seem to figure out how to make it work. Here is what I have: String str = ""; int count = 0; try { while...
stackexchange/codereview
I am trying to insert a tag before and a after this the dojo filteringSelect widget tag I just created. How can I do that in dojo? <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.3/dojo/dojo.xd.js"> </script> <script type="text/javascript"> dojo.require("dijit.form.Filter...
stackexchange/codereview
the following codes are what i'm trying to figure out.Hope you guys can help me ! jsp : <input name="test" type="text" /><br/> <input name="test" type="text" /><br/> <input name="test" type="text" /><br/> <input id="query" type="button" value="query" onClick="doajax()"/> js : function doajax(){ var dataSet = $("i...
stackexchange/codereview
I was just playing an old SNES RPG (Secret of Mana, if anyone cares) and was wondering a few general things about game programming. Sorry for some of the brain-dead questions, I'm really a beginner. :) These questions are quite general, but use SNES-style RPGs as a "template" to get an idea of what I mean: How do game...
stackexchange/codereview
SELECT T.[NAME] FROM ( SELECT Unregistered.[NAME] FROM Unregistered LEFT JOIN [Event] ON Event.ID = Unregistered.EventID WHERE EventID IN ( SELECT EventID FROM Registered WHERE [NAME] Like '%blabla%' ) UNION ALL SELECT Registered.[NAM...
stackexchange/codereview
What is the most effective way to sync two identically structured DataSets using a Web Service? The design I use at the moment is simple without a Web Service. All data iscached on the Client, and it will only update data from the MySQL database if an update has been done, this is determined by a timestamp. If possibl...
stackexchange/codereview
I'm trying to express a SQL query using NHibernate's Criteria API, and I'm running into difficulty because I'm thinking in a database-centric way while NHibernate is object-centric. SQL (works great): select outerT.id, outerT.col1, outerT.col2, outerT.col3 from tbl outerT inner join (select max(innerT.id) from...
stackexchange/codereview
Here's what I'm trying to do: char inputBuffer[200]; NSString *input; scanf("%s", inputBuffer); input = [[NSString alloc] initWithUTF8String:inputBuffer]; NSLog(input); Here's what happens: bla bla bla 2010-11-08 23:17:03.670 TextGame[51147:a0f] bla inputBuffer contains whole string. I tried to do NSLog("%@", inputBu...
stackexchange/codereview
I was always sure that if I pass a Perl subroutine a simple scalar, it can never change its value outside the subroutine. That is: my $x = 100; foo($x); # without knowing anything about foo(), I'm sure $x still == 100 So if I want foo() to change x, I must pass it a reference to x. Then I found out this is not the cas...
stackexchange/codereview
I am working on Notification and my understanding on this is that IOS notifications like "textFieldShouldBeginEditing:(UITextField *)iTextField" gets posted only when you tap on a text field. To my strange notice, my code is receiving this notification when I am tapping on "Back" button to go back to my previous view. ...
stackexchange/codereview
I'm asking the question on behalf of someone that works for my client that asked me this. I'm actually more familiar with mySQL than SQL Server, but unfortunately, SQL Server is what the client has used for years. The question basically this: Is there a way in SQL Server to split a string into multiple values (e.g. arr...
stackexchange/codereview
I use LinkedIn-iPhone API to update LinkedIn status, which worked for several times, but most times it does not work well, and it has never worked for the last 5 days. I don't know whether it is the problem of the LinkedIn web site or API connections. The console log: ++ LinkedIn engine reports failure for connection...
stackexchange/codereview
I want to add some italic font and links into SMS using an android app. How would I achieve this?
stackexchange/codereview
where _c1.name<>c2.name I am confused with the symbol <>. Please explain its meaning.
stackexchange/codereview
im trying to make my android application send an email with an xml file as attachement. All is working fine except for the fact that the xml file I receive is empty. I checked to make sure the file isn't empty on my phone... Here is the code I use to send the mail: Intent mailIntent = new Intent(Intent.ACTION_SEND); ...
stackexchange/codereview
Flash Tranformation Matrix via JsFL are mean to me :( I have to write a JsFL script that creates a text on my Flash scene, and rotate it with a random angle. Imagine I want to create and rotate a "Hello World!" at 45 degrees, my code looks like that : rotateAngle = 45; //creates my new text at x:0, y:0 coordinates ...
stackexchange/codereview
I have a gridview that contains one linkbutton within itemtemplate. I bind this gridview with a table from my database that displays different items. When the gridview displays records and when the user clicks on an item of gridview then how can i change that item's fontweight to bold and change that same item's color...
stackexchange/codereview
I have a little webform that pops up shadowbox style. The form then submits and the information is sent via ajax. This works a treat in firefox, however in safari, on pressing submit it closes the shadow box and seems to just submit the form (no ajax). The html code of the button and stuff... <div id="booking_box_hea...
stackexchange/codereview
I'm using ado.net entity data model. I have 2 object User Organization My problem is User user=new User(); ... Organization org=new Organization() db.Organizations.AddObject(org); db.SubmitChanges(); // Problem is here. Because datacontext try to save user object. user object some field is empt...
stackexchange/codereview
I've been asked to implement a security requirement that we instruct browsers not to cache sensitive data. This is all fine for the ASPX content using the standard instructions: Response.Expires = -1; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); However...
stackexchange/codereview
I use System.Diagnostics.Process.GetProcesses() to get process list. I found TotalProcessorTime property for each process - it is TimeSpan. But how to get relative values of CPU usage, i. e. i need % of total CPU usage for each running process.
stackexchange/codereview
THis is not really a question, Sorry. I just wanted help on getting the package and class names of alarm and clocks of different android makers' clock and alarm. I have a listing here of HTC, Samsung, and stock android class names. But you can guess the package names. // HTC "com.htc.android.worldclock.TimerAlert",// "...
stackexchange/codereview
I've got a strange thing goin on here. I'm designing a small program with Visual Studio 2010 using WPF and VB.Net but for some reason, all my buttons and checkboxes (didn't test more items) aren't clickable anymore! Even if I drag a pretty new one out of the VS-Toolbox! They've got all "IsFocousable" and "IsHitTestVisi...
stackexchange/codereview
I am have the following line in my httpd.conf file ProxyPass /something http://localhost:9080/servlet/StubEndpoint?stub=stub the system respondes with The requested resource (/servlet/StubEndpoint%3Fstub=stub/) is not available, ie it substitutes ? with %3F. How can I resolve that problem? That question mark ...
stackexchange/codereview
This one is driving me nuts. I can load a gem via irb: steve@server:/var/www/listings$ irb irb(main):001:0> Gem.path => ["/home/steve/.gem/ruby/1.9.1", "/usr/local/ruby/lib/ruby/gems/1.9.1"] irb(main):002:0> require 'nokogiri' => true But I can't load it through the rails console: irb(main):001:0> Gem.path => ["/home...
stackexchange/codereview
I'm working with latlon values for YM4R with google maps. I need to know how to split a string after 10 characters. Here is an example string "51.5261658-0.0810102" if I know split the string after the 10th character, I would be able to get separate lat lon values. Has anyone got any ideas?
stackexchange/codereview
I'm trying to replicate the safari behavior. A uitoolbar inside a uiwebview that can be scrollable with the webview content. Does anyone knows how to do that? I tried using a scrollview with the toolbar and webview but no success. My last chance was creating an overlay UIView and pass the touches methods to the uiscrol...
stackexchange/codereview
I try to make some databinding involving an x:Array defined in the resources, but somehow, it doesn't work even the code is compiling. In the resources, I define an array of Strings this way: <x:Array x:Key="ArrayReportType" Type="{x:Type sys:String}"> <sys:String>Energy Export</sys:String> <sys:String>Cost Cen...
stackexchange/codereview
I'm trying to stop a toggle button from changing state when clicked, based on some conditions, but I'm not sure how to do it. Is it possible? I don't want to disable the button, because flex 3 styles don't allow me to get the visual effect I need. EDIT: I've tried this but it does not work: <?xml version="1.0" encoding...
stackexchange/codereview
I have the following code: NSDateFormatter *df = [[[NSDateFormatter alloc] init] autorelease]; /*2010-11-02 20:31:39*/ [df setDateFormat:@"YYYY-MM-dd hh:mm:ss"]; NSDate* date = [df dateFromString:@"2010-11-02 20:31:39"]; date is nil. Any idea why?
stackexchange/codereview
I have a tab layout with drawable resources as tab images. In landscape mode everything fine. But in portrait mode images doesn't have some margin from tabs. How I can change images scale or how to set some margin to image? I don't want use fixed size, don't think that it is right way. Here is my layout <TabWidget ...
stackexchange/codereview