instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Hello I retrieve text based utf8 data from a foreign source which contains special chars such as u"ıöüç" while I want to normalize them to English such as "ıöüç" -> "iouc" . What would be the best way to achieve this ?
stackexchange/codereview
We have a client who uses a website we have created. The requires the standard username/password combination to access site contents. In IE, FF and Chrome the browser offers to remember the login credentials, but our client is using some built in Lotus Notes browser and it doesn't seem to offer this service. Since the...
stackexchange/codereview
I recently starting diving into http programming in C and have a functioning server that can handle GET and POST. My question comes in to my site load times and how I should send the response headers and response message. I notice in Chromes resource tracking tool that there is almost no (a few ms) connecting/sending/...
stackexchange/codereview
I'm interested in making a program that will take c# code and allow me to step through the execution of that code line by line - a debugger. How would I go about this project without having to write a whole c# compiler? I'm using Microsoft Visual Studio, but I want my software to be as independent of their debugger im...
stackexchange/codereview
I need to replicate the function of bringSubviewToFront: on the iPhone, but I am programming on the Mac. How can this be done?
stackexchange/codereview
I'm brushing up my Eclipse RCP skill by trying to enhance my one-year-old side RCP application. This application has one perspective, and this perspective has 3 views, and I'm adding another view into the same perspective. To add this new view, I added it in the MANIFEST.MF file under Extensions tab and created the Jav...
stackexchange/codereview
This is a problem which has had me baffled for weeks now on a client's Live environment. The WCF service is hosted on Windows Server 2003, and has both HTTP and MSMQ endpoints. When placing the service in the test environment, the service cleanly starts and stops, and messages are passed without problems. However on th...
stackexchange/codereview
I can get the user info with this code: $uid = $facebook ->getUser(); $me = $facebook ->api('/me'); And App'id: $appId = $facebook->getAppId(); How can I make a query from application table (like $facebook ->api('/me')). Thanks in advance
stackexchange/codereview
In SQL 2008, Is it a way to grant permission to developer for view and create database diagrams without giving them dbo permission?
stackexchange/codereview
How can I bind a particular dependency to a page, and have it injected for components on that page? I have set up an environment in my wicket application, using the (very small) wicket-ioc and wicket-spring libraries, where I can call InjectorHolder.getInjector().inject(component), in order to inject the component with...
stackexchange/codereview
How does one check if no connection is possible (that is, server is down...) with c sockets? In other words; client tries to establish contact with a connect(sock, (struct sockaddr *)&serveraddr, sizeof serveraddr), but server isn't responding. Client should then get hold of some variable that could verify server stat...
stackexchange/codereview
I am using Django for my application and needed to do a pattern matching Pattern to be matched: users/?q=john Regular expression : '^users/\?q\=(?P[\w]+)[/]?$' like this in urls.py url(r'^users/\?q\=(?P[\w]+)[/]?$', user_handler, {'emitter_format' : 'json'}) However it's not matching the URL, any pointers would be hel...
stackexchange/codereview
This is what I have managed so far, but it seems no one can help me with the last couple of functions: <script type='text/javascript''> $(document).ready(function () { swing(); }); function swing() { //making the div swing $('#share').animate({right: '210px'}, 1000, function(){swingba...
stackexchange/codereview
I need to detect whether the key which has just been pressed is a printable key, like a character, possibly accented, a number, a space, a punctuation symbol and so on, or a non printable key, like ENTER, TAB or DELETE. Is there a reliable way to do this in Javascript, other than listing all non printable keys and hope...
stackexchange/codereview
How can I read GPS raw data, to be more specific I need the saellites pseudo range. This data is not available in NMEA format.
stackexchange/codereview
I allow the user to manage records on other views. I set a flag if certain changes are made. Then on the flag (where the data changes will have an impact) I run some methods / queries which create the data which is used in my table view(s). This workload currently happens in viewWillAppear(s). This could take a few sec...
stackexchange/codereview
I want to develop an app that does basic packet sniffing. So, I would like to know if packet sniffing is feasible from a BlackBerry.
stackexchange/codereview
Hi can anyone tell me why the following dose not work: (p.s I dont want the file to append upon clicking abutton just upon clicking the checkbox. Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged Dim FILE_NAME As String = "C:\RXF\lo...
stackexchange/codereview
Is there a possibility of saving an image to a string instead of a file with OpenCV? I have found just this function in the docs: int cvSaveImage(const char* filename, const CvArr* image) And it can only save to files.
stackexchange/codereview
I have a little module that creates a window (program1). I've imported this into another python program of mine (program2). How do I make program 2 do the function call self.Main() that's in program1? Also how do I go about transferring values across programs? Say in program1 x = 'hello', how do I get the value of x in...
stackexchange/codereview
I want to read a PHP file located on the same server as the script. Yet, I want to read it as if it is from another server so that it views the HTML output of the file. But when I read the file using file_get_contents() I just get the PHP Code. NOTE: if this helps, I`m printing the contents of the file to fckEditor.
stackexchange/codereview
I have a static Dictionary that I want to safely update. Initially, the dictionary will be empty, but over the lifetime of app, it will have new values added to it. Also, the integer values will act as individual counters that can increment and decrement. private static Dictionary<string, int> foo = new Dictionary<st...
stackexchange/codereview
My question to the community is this, is one authentication scheme better than the other at leaving an audit trail to see who was on what machine? Thank you, -=Bryan
stackexchange/codereview
I am monitoring every 20 minutes my AdMob account (user AdMob API). It appears that there is (roughly speaking) the same number of ad requests every day. But my app is business oriented and mostly used on week days. Connections to the "business" server drops on week-ends by 80%. So, I am wondering if the AdMob manager ...
stackexchange/codereview
Can I read the iPhone's file system from java application? My iPhone 3G is connected to laptop by cable and I want that my java code knows in every moment whats the GPS location of iPhone. That data must be stored in some "string" on iPhone don't you think? EDIT: Since with iPhone this is imposible, how about with Nok...
stackexchange/codereview
I Have gone through various sites and the only answer they provide is - Restful webservices makes use of Http's own methods such as (GET,POST,PUT,DELETE).. Whereas SOAP based webservices makes use of its own custom methods.. - Restful web services treats each service method as a resource and gives it a URI.. However I ...
stackexchange/codereview
If I have a parent view controller that displays a modal view with a textfield to collect data from the user, what's the best way to return that data to the parent view controller? Currently, I assign the parent view controller as a delegate that's called from the modal view when the user enters the data. Is there a ...
stackexchange/codereview
When authoring a Silverlight LOB application (think Outlook) with Child windows, the child windows are are mere 'fakes'. They don't get their own taskbar item, hence CTRL-TAB does not work, only modal display possible etc... Compare that to a typical LOB application like Outlook where you can open a contact besides a ...
stackexchange/codereview
When first launching the apps, I want it to show a button to log in. After successfully logged in, I want the app to show a tab bar view.. So does this mean that I need to set my app delegate to point to the UITabBarController? How can I do this?
stackexchange/codereview
How can I create a XML file that has identation or, at least, line breaks between each tag? I'm using class XMLSerializer (available in Android) to handle the XML creation. XMLSerializer serializer = new XMLSerializer(); StringWriter writer = new StringWriter(); serializer.setOutput(writer); String xmlFileContents = ...
stackexchange/codereview
I last used C++ extensively around the time metaprogramming became popular, and I'm just now coming back. I did a heap of scripted C++ code generation in the past. Although I see metaprogramming is powerful, does it truly offer anything over scripted code generation? One advantage I see is scripting isn't "round tri...
stackexchange/codereview
I am confused. What is the right way to increase font size of text in the title, labels and other places of a plot? For example x <- rnorm(100) hist(x, xlim=range(x), xlab= "Variable Label", ylab="density", main="Title of plot", prob=TRUE, ps=30) The ps argument does not change font size (but it says in R Help ...
stackexchange/codereview
I am working in an app that shows different cars and the user needs to choose one. When you press on next the car moves out of the screen and the new one comes in. My resources are: Car's body Car's wheel (I need them to be separated because when the car moves I need to rotate the wheels) I wanted to avoid AbsoluteLa...
stackexchange/codereview
can we execute mySQL queries in jQuery Calllback functions & misc. functions like simple query UPDATE EMPLOYEE SET PAY = PAY + 500 WHERE E_ID = '32'
stackexchange/codereview
I'm at a loss. I have a table with about 100K rows. When querying this table results are usually snappy, about 2ms or so. But whenever I use an ORDER BY performance drops like a rock to about 120ms. I read the MySQL ORDER BY Optimization page but I can't say I understand everything. Especially the indexes are unclear t...
stackexchange/codereview
would like to get some feedback on using XML config files when the number of parameter sets inside can change. Currently I load in program parameters (contract specifications for trading programs) with an XML file using the Apache Commons Configurations, for example, in a try block in an object's constructor: XMLConfi...
stackexchange/codereview
i have 2 dropdownlist in asp.net c#, one has only two items in it('OK' 'PK') and the other one is bound to a database field and it has 158 items in it. I want remove two Items from the second list when the user selects 'OK' and keep original list when user selects 'PK'. How can i do it?? As i have bound the second list...
stackexchange/codereview
I need to read values from keyboard to table, and I guess it's going out of range, but can't figure out how to fix it. Exception in thread "main" java.lang.NullPointerException at B12.App.main(App.java:36) This is that line tab.matrix[ai][aj]=parser; Whole code: import java.io.BufferedReader; import java.io.IOE...
stackexchange/codereview
i am new to gwt and i am very much satisfied for my needs but my problem is how can i deploy and run it in my tomcat webserver and i tried googleing but cant get any success in that can any one explain how to deploy it with some samples ......
stackexchange/codereview
How do I store and retrieve a byte array (image data) to and from a SQLite database in Android?
stackexchange/codereview
I have a blog-like scenario , with two Java classes : Post and Tag , which is a @ManyToMany relationship , with a Post_Tag association table , here is my simplified definitions: public class Post { @ManyToMany(fetch=FetchType.LAZY) @Fetch(FetchMode.SELECT) @JoinTable(name = "Post_Tag" , joinColumns = ...
stackexchange/codereview
**I need to buid distributed computing system that use java technology to access mp3 files stored in seperate servers. In the user interface layer users can play audio files. In the information processing layer application client implementing with database servers.(where audio and user data stored) In the information...
stackexchange/codereview
In most of the design patterns concepts, it was mentioned that "Has A" is better than "Is A" means. In the first chapter - Head First Design Patterns - "Intro to Design Patterns", section "Integrating the Duck Behaviour" (page no 15), the Duck class is having references to FlyBehavior and QuackBehavior interface types...
stackexchange/codereview
I have a list of expanders which I want to control its expanded state(IsExpanded) with global toggle button which should toggle between expanded/collapsed state. The solution which I have got so far does that by binding the expander's IsExpanded state to the togglebutton's IsChecked state. This works as long as I dont...
stackexchange/codereview
$(document).ready(function() { $('.something').each(function() { var $link = $(this); $link.click(function() { var $dialog = $('<div></div>') .load($link.attr('href')) .dialog({ autoOpen: false, t...
stackexchange/codereview
Below is my following code #include <iostream> #include <stdlib.h> #include <boost/regex.hpp> #include <string> using namespace std; using namespace boost; int main() { std::string s = "Hello my name is bob"; boost::regex re("name"); boost::cmatch matches; try{ // if (boost::regex_match(s.be...
stackexchange/codereview
why defining index for mysql tables increase performance in queries haveing join?
stackexchange/codereview
Below is the test program, including a Chinese character: # -*- coding: utf-8 -*- import json j = {"d":"中", "e":"a"} json = json.dumps(j, encoding="utf-8") print json Below is the result, look the json.dumps convert the utf-8 to the original numbers! {"e": "a", "d": "\u4e2d"} Why this is broken? Or anything I am wr...
stackexchange/codereview
'Simple' question, what is the fastest way to calculate the binomial coefficient? - Some threaded algorithm? I'm looking for hints :) - not implementations :)
stackexchange/codereview
I am writing a 3D engine for AS3.0... And I ran into an annoying problem. AS3.0 currently supports only affine Bitmap transformations (the 3D is far too hard to manage, that is why I am writing the engine) - which means that I can not achieve true perspective on big vertices. I could do a loop and render each pixel of ...
stackexchange/codereview
I am trying to stream an iRobot Create's sensors with pyserial. I import openinterface.py, setup the bot variable with the CreateBot function, and then call bot.stream_sensors(6) Then I receive this error - "Streaming thread error! tuple index out of range" The only reason I am calling the function with 6 is because t...
stackexchange/codereview
In my hypothetical I have an annotated User model class. This User model also holds references to two sets: A set of Pet objects (a Pet object is also an annotated model represented in the data layer) A set of Food objects (a Pet object is also an annotated model represented in the data layer) When I pull the User en...
stackexchange/codereview
I have a list of items heading that are all in INTEGER (yes the heading is 0 to 120 int) value but when I am reading them they are all in float, so in between there is a conversion being done that I am not aware of (code not open so I can't check it myself but I need to update the xml and for that i must know how to co...
stackexchange/codereview
Some ASP.NET app has removed my data in some SQL Server 2005 DB. I've the transaction log which has a size of 18MB aprox, but the MDF file is of 4MB. Do you know if there's any chance of recovering a full DB by using the transaction log? Currently I don't have any DB backup, so I can't use the MSDN guidelines to do t...
stackexchange/codereview
I am finding the doc for CFStreamCreatePairWithSocketToCFHost confusing: Specifically, its not clear to me how the function can set the readStream pointer to null on error. as far as I understand, the pointer is passed by value - so the function can only change the objected pointed to by the pointer. Right now I can't ...
stackexchange/codereview
Hi I ran in this issue a while ago... authlogic flash[:notice] does not show up in cucumber webrat step And it looks like it still exisits in rails 3 this was a suggested fix. class RackRailsCookieHeaderHack def initialize(app) @app = app end def call(env) status, headers, body = @app.call(env) i...
stackexchange/codereview
first of all sorry for my bad english :) I'm new on programming for Android... I'm trying to setup a view on runtime. I've created my own View class ( derived from AbsoluteView ) successfully, but if i try to resize the content of the view, nothing happens :( Here is the full code i have wrote : package com.CaliskanDev...
stackexchange/codereview
I have table with such structure. ElementId | ParentId ------------------- 1 | NULL 2 | 1 3 | 2 4 | 3 Let say current element has Id 4. I want to select all parent ids. Result should be: 3, 2, 1 How I can do it? DB is MSSQL
stackexchange/codereview
When using ggplot or subset, a R CMD check command on my package generates the following notes: * checking R code for possible problems ... NOTE foo: no visible binding for global variable ‘bar’ for a mock function such as foo <- function(dataframe) { subset(dataframe,bar>10) } That R CMD check section is useful whe...
stackexchange/codereview
Related to this question is, how does the generation of the AssemblyInfo work? I have been putting InternalsVisibleTo in the file of the first class of an assembly where I realize that it will be useful. It seems more appropriate to be in AssemblyInfo with the other assembly attributes, but I wouldn't want it to be ove...
stackexchange/codereview
I'd like to get the substring of an NSAttributedString that has a certain attribute. How do I do this? Thanks!
stackexchange/codereview
I'm working on a small C project in Eclipse; I just installed Eclipse from the Ubuntu Software Center and added C/C++ Language Support. I can build, run, and debug simple C programs fine. But I'm using some C99 features now, and Eclipse complains, saying "'for' loop initial declarations are only allowed in C99 mode". I...
stackexchange/codereview
Does anyone have any techniques/tips/tricks to help me organize and implement multiple jQuery UI themes in one application? I have resulted to using !important as it seems to be the surest way to force style overrides - but this method is not very desirable.
stackexchange/codereview
I'm desperately trying to find this info and have been searching for several days. I use wifi + skype on my iphone with no plan. All I want to do is when I click on a number in a web page, or in the contacts, is have that number open with another program like skype or google voice. Is this possible or is there just no ...
stackexchange/codereview
I have a series of images which have a description div hidden. I'm trying to show the description on a hover event. I can't see to get it to work. Here's the code. <div class="peopleImage" id="image1"> <img src="image1.jpg"> <div class="peopleInfo">Description goes here</div> </div> <div class="peopleImage" i...
stackexchange/codereview
To prevent my application from crashing with the error "A potentially dangerous Request.Form value was detected...", I just turned page validation off. I want to revisit this and solve it correctly. Is there a good strategy for this? If people are entering '<' and '>', I think the only way to save their data is to enco...
stackexchange/codereview
I know this sounds like a subjective answer, but I will try to make the question as objective as possible, because an objective answer to the question would be the most helpful. I recently had a code reviewer point out that I have a habit of including prepositions at the end of my methods. Here's a recent method I wro...
stackexchange/codereview
I just tried to compile a small prog for testing purposes in java. I added the Google Calendar library and to test whether it works I tried the following codes. package googlemaptest; import com.google.gdata.client.calendar.CalendarService; import com.google.gdata.client.calendar.CalendarService.Versions; /** * * @...
stackexchange/codereview
I am trying to write an XML file to a URL, e.g. http://myIPAddress/myFolder/myFile.xml . I am using an Apache2 server for my tests on Ubuntu 10.10. Output line example (ignore apostrophe): <'myEntity id="1" name="me" /> Also, I want to able to reopen the connection anytime and add lines to the end of the file. I'd...
stackexchange/codereview
I'm having trouble with this code. If the field customer_note is empty, need it to return a value of N and Y if there is text in the field. The resulting Y or N is being passed into an XML line. I'm using PHP 5.2.9. Thank you. if( !empty( $customer_note )) { $shopper_message .= $customer_note."\n"; } else { $shoppe...
stackexchange/codereview
my comboboxes is filling on dropdown i want if user dont select something in it and press somewhere or just close dropdown combobox value was null Sorry for my english
stackexchange/codereview
for each element in sarray if ... then if this is the first time the above IF statenent was executed ... then end if next element i want to do something ONLY the first time that the first IF THEN statement is executed. i am having a lot of problems with my logic. please help!
stackexchange/codereview
I'm trying to run the following assembler code in Linux using the JWasm compiler. But for all commands, it says, command not found. Why? And it returns an error in the lines which starts with ";". Is it a kind of a comment line? Can I remove this lines? Thanks. ;--- "hello world" for 64-bit Linux, using SYSCALL. ;--- a...
stackexchange/codereview
<li class="vehicle-item"> <label> <input type="checkbox" name="take-vehicle" /> <table summary="layout table"> <thead> <tr> <th colspan="3">2004 Austin Cooper</th> </tr> </thead> <tbody> <tr> <td><img src="/media/icons/tick.png" alt="" /> Drivable</td> <td><img src="/media/icons/cross.png...
stackexchange/codereview
Is it possible, using the existing Wikipedia API's to get a list of articles around a Geo-location? Sort of like how Google maps does it? I would like to say that I am "here" and find out what is around me on Wikipedia. I can see on articles like this you can see the "Coordinates" on the right hand side, so I would li...
stackexchange/codereview
Is there any way to proceed into a method if the key that is being pressed does not result in any typing. i.e. the shift key, control key etc without having to specify all of them. Ideally, to detect combinations of keys, for example Control+V = Paste. Code similar to below is what I am working with; if( (e.KeyData...
stackexchange/codereview
I'm diving into iOS development and I'm still getting familiar with the NSString object. I'm at a point where I need to count the number of non-alphanumeric characters in a string. One approach I came up with was stripping the non-alphanumeric characters from the string, then subtracting the length of the stripped st...
stackexchange/codereview
i am trying this: open google docs, new document, and type in: hello world (world bolded) then download it as html(zipped) i unzip the html file, and save it to the assets folder in src folder of my Flex app i have a Spark:TextArea instance and i want to do: var importer:ITextImporter = TextConverter.getImporter(TextCo...
stackexchange/codereview
in my gwt, i have a button that fire like below to create new widget @UiHandler("buttonfire") void addNewWidget(ClickEvent event) { htmlPanelHolder.add(new MyCustomWidget(),"placeholder"); } how to use jquery so that when the MyCustomWidget() show on screen it is using jquery "fadein" effect i already trie...
stackexchange/codereview
Hi I have the following page which sets a cookie with the current URL and also a simple external link. <?php function pageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") { $pageURL .= "s"; } $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80"...
stackexchange/codereview
I have a task from a client to correct a page and I found that jQuery descendant selector does not behave as expected. Here is an excrept of the HTML: <form action="http://submit.url/subscribe.php" method="post" enctype="multipart/form-data" id="mssysform8217" class="mssysform" > <div id="mssys-formcontainer"> <div...
stackexchange/codereview
I have a need to monitor the state of the Shift key, whether it is up or down. Its purpose is to notify the user that while the shift key is held down, the drag and drop operation they are about to perform is going to COPY the node(s), and not move them. I have it working perfectly with the code below, however, if I ho...
stackexchange/codereview
I am using Doctrine 2.0 with php5.3 , being served from apache2 with a MSSQL\SQLEXPRESS 2005 backend. My problem is that when I go to insert a record with a DateTime object, I get the error. PDOException: SQLSTATE[22007]: [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting dateti...
stackexchange/codereview
I'm trying to create a MySQL database that will hold all of my users and logins. The table columns are: User_id passkey points The user_id of each user has to be unique, and same with their passkey. Points is just an integer value that I will edit from time to time. Now, when I get a user to my site, I have to check if...
stackexchange/codereview
I'm trying to retrieve some parameters that are passed to jax-rs from a posted form with the HttpServletRequest. However, my request object is always returning null values for my parameters. Am I not going about this the right way? I've posted the code below, along with an example request that is getting sent. Here is ...
stackexchange/codereview
I need to add a small feature in a project where, rectangle with some trimable text in it, and the rectangle should be resizable. I'm short of time so didnt try out reading and working on it much. I need some idea how to go for it. Thanks in advance. -Uday
stackexchange/codereview
I am beginner of j2me-polish.I had installed j2me-polish2.1.4.As per the steps shown in below link:- http://www.j2mepolish.org/cms/leftsection/documentation/installation/ide-integration/netbeans/installation.html After installing it,I tried to create project by following the step in below link:- http://www.j2mepolish.o...
stackexchange/codereview
I have string containing many of HTML tag of exactly that construction: Hello <img src="./images/foo.gif" alt="bar"> World! <img src="./images/foo2.gif" alt="bar2"> The string containing that tags is autogenerated from external tool and it is guaranteed to have exactly that declaration of tag Now I wish to replace ev...
stackexchange/codereview
Per accessibility requirements, Shift+F10 is supposed to open right-click context menus. In Swing, one approach is to just add the key binding to every component you make. However, I've experimented with extending the EventQueue to handle all Shift+F10 presses. In particular, I've overridden dispatchEvent(AWTEvent) to...
stackexchange/codereview
How can I increment an Integer variable by X without creating a new object instance? += does not work because: ree-1.8.7-2010.02 > x = 1 1 ree-1.8.7-2010.02 > x.object_id 3 ree-1.8.7-2010.02 > x += 1 2 ree-1.8.7-2010.02 > x.object_id 5
stackexchange/codereview
I'm using Microsoft's new WPF ribbon (October 2010 release) and I designed my application menu with a RibbonApplicationSplitMenuItem. If the user clicks on the RibbonApplicationSplitMenuItem, I want to open the program settings dialog. The subitems contain direct links to the various tab pages in the settings dialog an...
stackexchange/codereview
My Xaml looks like this: <TreeView Name="mainTree" ItemsSource="{Binding Folders}"> <TreeView.Resources> <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" /> <Style.Triggers> <!-- ??? --> </Style.Triggers> </Style> ...
stackexchange/codereview
I'm working on a personal project that creates an single image from a grid of images. It takes a while to generate the image and doesn't refresh everytime only once the code is done executing. How can the make the interface still functional (not locked up) when its generating the image. So to start: I have a N x N grid...
stackexchange/codereview
I have the following situation: @Entity class A{ @Id @SequenceGenerator(name = "SEQ_AID", sequenceName = "SEQ_AID") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_AID") private Long aId; @OneToOne(fetch=FecthType.LAZY,optional=false,cascade=CascadeType.ALL) private B b; ... } @Ent...
stackexchange/codereview
I'm running Ubuntu 10.10 and installed Eclipse 3.5 (Galileo) for Java Developers along with the Android SDK. When I add the following URL into the work With field under Eclipse's Install New Software menu: https://dl-ssl.google.com/android/eclipse No plugins appear between the "Work With" and Options sections. I under...
stackexchange/codereview
I have a UIWebView that is loading content from a URL - and I'd like to display a small version, almost like a button, of that UIWebView in another view controller. I can grab the UIWebView from its controller. How can I make its content display in a different view controller?
stackexchange/codereview
I have a search form with two fields: x, y When the search is performed it will look for records that match all conditions. However any of the two conditions can be set to 'All' by leaving it blank. What should I set params[:x] and params[:y] to if they are set to all. params[:x] = ? unless params[:x] params[:y] = ? u...
stackexchange/codereview
I have started learning masm assembly recently, iv been disassembling many of my programs just to have a look. I have noticed that when you use a __int16 (word) the value of it is 1st copied into eax then into the variable itself, but with int (dword/32) it is copied directly into the variable: heres the dissembled cod...
stackexchange/codereview
I want to remove everything from a string except numbers, letters, _ (underscore) and : (colon) It's PREG and I've only come across #\W#, but it removes the : (colon). Any help is appreciated, thanks!
stackexchange/codereview
Can anyone tell me how to accomplish this? A column in my table, in some instances, contains comma separated values. If it does, I need to create new rows for these values. Moreover, as an example, a table contains 1 row and 4 columns Col1 | Col2 | Col3 | Col4 with the following values A | B | C | 1,2,3 respectively....
stackexchange/codereview