instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Scenario: Apache Tomcat 6.0 is started as a service on Windows Server 2008 R2 using a wrapper (org.tanukisoftware.wrapper.WrapperStartStop) which uses org.apache.catalina.startup.Bootstrap. In course of the Tomcat startup one web application is also started. This web application needs to connect to a remote database an...
stackexchange/codereview
I have a windows service which runs a separate thread with a function which may do if (!Directory.Exists(TempUpdateDir)) { DirectoryInfo di = Directory.CreateDirectory(TempUpdateDir); di.Refresh(); EventLog.WriteEntry("Downloader", string.Format("DEBUG: Trying to create temp ...
stackexchange/codereview
In our app, we use components developed by other teams. The question was how can I define a nicely way of exception handling than this try { someComponent.DoStuff(); } catch (Exception ex) { textLabel= ex.Message; } The component has no custom exception type, maybe a nicely way to do it woul...
stackexchange/codereview
I've seen that Microsoft has created a official jQuery Template plugin for jQuery. But also jTemplates from what I've read is pretty popular. I didn't know if I should not bother with jTemplates and go straight to the jQuery Template or give jTemplates a go. Any suggestions? Note: it's my first time using any client-s...
stackexchange/codereview
I have a table that stores the schedule of income due, for a number of assets. That table gives the date that a new income amount becomes effective, together with that daily income amount. I want to work out the total income due between 2 dates. Here's the table structure and sample data: DECLARE @incomeschedule ...
stackexchange/codereview
I am trying to gate the title of preferencesreen in my program.. How can I get the title? My code of preference XML is here. I want to get the title "Show List" in my program. <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory and...
stackexchange/codereview
I'm using SQL Server 2008. I'm trying to find out which connection within to my database server is using a database that I want to drop, so that I can kill that connection. I can select session_id, login_name from sys.dm_exec_sessions etc to find sessions in the database, but how do I get from the session_id to the dat...
stackexchange/codereview
My goal is to generate emails inside of my Asp/VB.net program. After following instructions very carefully using https://web.archive.org/web/20211020121616/https://www.4guysfromrolla.com/articles/072606-1.aspx some stackoverflow users helped me modify my class object on the asp.net page. We also revised my host/port s...
stackexchange/codereview
When I run some integration tests via NUnit, everything works, including logging. When I run any test a second time, no exception is thrown, but logging ceases to work. Instead, log4net writes this to the console: log4net:ERROR [TextWriterAppender] Attempted to append to closed appender named []. Here is the log4net...
stackexchange/codereview
Why does the standard output from the following commands differ? command1: for ((i=0; i<10; i=i+1)); do echo $i; done command2: bash -c "for ((i=0; i<10; i=i+1)); do echo $i; done" command1 prints the integers 1 to 10 on a separate line, as expected. command2 prints 10 on each line. What do I need to do to get comma...
stackexchange/codereview
I have a site where I allow members to upload photos. In the MVC Controller I take the FormCollection as the parameter to the Action. I then read the first file as type HttpPostedFileBase. I use this to generate thumbnails. This all works fine. In addition to allowing members to upload their own photos, I would like ...
stackexchange/codereview
I am generating random Nos to store my matrix index for row and column . That is different row and column index Nos every time not repeat. But some time same value is generating.How to rectify this problem. This is what i written .. for example 4 * 4 Matrix. i am running with loop and storing date int i; for...
stackexchange/codereview
I am working on a CMS template and try to find out if this is possible at all. I was not able to find anything on the net, maybe I just used the wrong keywords. Have this model given: http://img833.imageshack.us/img833/4979/alignmentmockup.jpg <div> #1 is a fixed 'banner' container aligned left. <div> #2 is a another ...
stackexchange/codereview
Assume I've made a class, say Parent, that has a composition relation with Child. The parent class holds a list of children. I want all children to hold a reference to the parent, so every child holds a Parent pointer. This will cause circular inclusion. I refer to Child in parent.h and I refer to Parent in child.h. Th...
stackexchange/codereview
I am trying to learn a few things from http://code.google.com/p/iosched/source/checkout. I wanted to see how they implemented that UI patterns they were talking about on the I/O. In the HomeActivity they use this code to fire up the NotesActivity : /* Launch list of notes user has taken*/ public void onNotesClick(Vie...
stackexchange/codereview
we just finished our first iPhone app. Since yesterday we have the status 'ready for sale' in iTunes connect and the release date is also the 4th of November and it is set to worldwide sale. But the app cannot be found in the app store. Also when I click on the link 'view in app store' in iTunes connect it just says 'N...
stackexchange/codereview
a web service returns the following nested json object: {"age":"21-24","gender":"Male","location":"San Francisco, CA","influencer score":"70-79","interests":{"Entertainment":{"Celebrities":{"Megan Fox":{},"Michael Jackson":{}},},"Social Networks & Online Communities":{"Web Personalization": {},"Journals & Personal Site...
stackexchange/codereview
In which file can I change the value of magic_quotes_gpc = 0 in PHP? Thanks in advance.
stackexchange/codereview
I am trying to learn iphone programming and I have just upgraded xcode to version 3.2.4 (and to iOS 4.1). When I create a new project I get the "Internal error" seen below. What is wrong? (by the way, I can't see any message in the console) Internal Error File: /SourceCache/DevToolsBase/DevToolsBase-1705/pbxcore/Tar...
stackexchange/codereview
I just checked http://www.dogpile.com/ and wanted to create a button like: Add dogpile to your browser. Can I know where to start from? Please guide me on this.
stackexchange/codereview
How do I hide an individual tab bar button ? I've searched and not found anything, only the full bar. I've made some progress but still having problems, this code is in my app delegate with an outlet to the tab bar, I'm calling it within viewDidLoad of the first view shown in tab bar. -(void)hideTabButton { NSMutable...
stackexchange/codereview
I'm working with model output at the moment, and I can't seem to come up with a nice way of combining two arrays of data. Arrays A and B store different data, and the entries in each correspond to some spatial (x,y) point -- A holds some parameter, and B holds model output. The problem is that B is a spatial subsecti...
stackexchange/codereview
I made a project (into a flash projector for Windows) last year and I lost the source code. I was able to extract the SWF and then decompile it, but for some reason, it won't recompile. I am getting some errors when recompiling. The original was made in CS3, the new one is being compiled in CS5. The errors have to do ...
stackexchange/codereview
In paperclip.rb (lib/paperclip.rb), in a block of comments regarding the has_attached_file method, on line 251 (in version 2.3.3), it reads regarding the :convert_options hash: NOTE: Strings supplied to :convert_options are split on space in order to undergo shell quoting for safety. If your options require a space, p...
stackexchange/codereview
On a windows form, is there a guaranteed firing order between these, does anyone know? This is on .NET v2. It appears to be the former(sorry) first. Thanks
stackexchange/codereview
I am trying to access a web API using a POST technique. I AM able to access it using a GET technique, but the API owners tell me that certain functionality only works with POST. Unfortunately I can't seem to get POST working. Here's what works with GET: API_URL = "http://example.com/api/" def call_api(method, **kwargs...
stackexchange/codereview
Possible Duplicate: What's your favorite profiling tool (for C++) Are there any good tools to profile a source code which is mix of of C and C++. What are the pros and cons of any, and which ones have you used and would reccomend for usage. Please do not get me a list of tools from google. I can do that too, what i ...
stackexchange/codereview
I got an error saying "Attempted access of inaccessible method rotation through a reference with static type flash.display:Sprite.ssd.rotation(90)}" I just want to know how to rotate my image by 90degrees when I double click on it. var shootingstar:Loader = new Loader(); shootingstar.load(new URLRequest("http://i51.tin...
stackexchange/codereview
I have developed an application with mac and for one month now, Im trying to link Qt with ImageMagick on windows. I just cant find the files and the version of Imagemagick library that need to be linked to Qt in order to make my application work on windows. I have tried most of the libraries from here Thats the only th...
stackexchange/codereview
Is anyone using NLTK with GAE? From this thread it appears that GAE does not support NLTK (Special installation tricks needed.) Do you know any other lightweight similar Python module? Thanks.
stackexchange/codereview
I'm trying to find some free XNA friendly FBX Models to use in my test application. I found some 3DS models and converted them to FBX and tried using them, but I just see some 'lines' on the screen .. I know I may have to scale/translate them, but I tried doing this and nothing worked ... Some models won't show anythin...
stackexchange/codereview
when I use jquery autocomplete, everytime I type something , first item of the list is automatically selected . For instance , if the list if [ ajax , asp , autocomplete ] , when I type 'a' , these three will show up and the first item is highlighted . Is a way that no item is highlighted until I press up or down .
stackexchange/codereview
I am receiving an error message in PHP 5 when I try to open a file of a different website. So the line fopen("http://www.domain.com/somef­ile.php", r) returns an error Warning: fopen(www.domain.com/somefile.php) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in D:\xampp\htdocs\de...
stackexchange/codereview
When I open an emacs buffer in the terminal using emacs -nw C+arrow does not move me around like I would like it to. Is there a way to change this behavior?
stackexchange/codereview
I've been trying to get translations working on my Django installation, but have failed so far. I've created a basic test setup to find my error, but no luck so far. One of my views simply prints a translated text (or it should, but it always shows the non-translated text): text = _('blah') return HttpResponse...
stackexchange/codereview
I have a couple of questions related to the following code: char buffer[256]; memset(buffer,0,256); read(socket_fd,buffer,255); The questions: Why I read 255 not 256 ? Let's say I want to send the word: "Cool" from the client to the server. How many bytes should I write "in client" and how many bytes should i read "...
stackexchange/codereview
are there any Flash/Flex API for Google Earth like the Map API? i haven't seen an API in Google earth API official page. or is there any way to use all the features of its javascript API with actionscript/flex Thanks !
stackexchange/codereview
This does not refer to anywhere in my code at all. How do I go about getting to the bottom of it? java.lang.NullPointerException at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:42) at com.google.android.maps.MapView.onDraw(MapView.java:494) at android.view.View.draw(View.java:6739) at android.view.Vie...
stackexchange/codereview
In ExtJS, say you have a simple editorgrid with two columns, X and Y, both of which have a combo box as their editor. How is is possible to make the values available in the second column's combo box (Y) depend on the selected value in the first column (X)? So, depending on what is selected in X, the values available in...
stackexchange/codereview
I'm trying to find all files that are not up to date compared to CVS. As our CVS structure is broken (it does not recurse well in some directories) I'm trying to work around it with find for now. What I have now is this: for i in `find . -not \( -name "*\.jpg" \) -path './bookshop/mediaimg' -prune -o -path '*/CVS*' -p...
stackexchange/codereview
I am writing a small Windows Forms application in C#. Basically, it will ask the user a series of questions in a step-by-step format. I would like to have a new form for each "step," so my question is: Is there a standard logical way of doing this? Right now, what I am doing is making a class which holds an instance ...
stackexchange/codereview
I came across the tweet today: Start each day by reading the implementation of a function or macro in Clojure's core.clj. My Clojure knowledge is really basic, I can hardly read other's Clojure (or Lisp) code. Can I do well with core.clj, especially I have the feeling it is full of complicated macros?
stackexchange/codereview
I am using Nvidia CG and Direct3D9 and have the question about the following code. It compiles, but doesn't "loads" (using cgLoadProgram wrapper) and the resulting failure is described simplyas D3D failure happened. It's a part of the pixel shader compiled with shader model set to 3.0 What may be interesting is that th...
stackexchange/codereview
I want to load a particular link when user press link. jQuery: <body> ... <script type="text/javascript"> jQuery(".likeThis").click(function() { jQuery(this).closest("a").load('{$likeThiSID}', function() { }); }); </script> HTML: <span id="like"><a class="likeThis">Like This</a> I am using CMS an...
stackexchange/codereview
First post here. Using C in Visual Studio 2008. Can work with VS 2005 if necessary. How do I display numerical data in arrays as in a spreadsheet? How do I plot numerical data in arrays? These seem to be simple questions. But I cannot find solutions. So far, I would print the data to a file, import into Excel and vie...
stackexchange/codereview
I'm trying to develop an ASP SQL connection to a MSSQL 2005 server. The SQL server is a sub server behind our main domain server, so a port forward has been setup from the WAN > LAN on port 1433 to allow the traffic to access the second server. I've done a telnet test on my end to see if the port forward is working cor...
stackexchange/codereview
I am using "Blowfish" algorithm to encrypt and decrypt the contents of the text. I am embedding the encrypted contents in the image but while extracting I am getting the byte array which I am passing it to method update of class Cipher. But the method returns me byte array which I want to convert back into Human rea...
stackexchange/codereview
my code : Scene::Scene(const std::string &scene_file) : ambient_light(0, 0, 0), background(0, 0, 0){ scene_parser parser(*this); parser.parse(scene_file); } scene_parser is a friend of Scene, and in the parse method it accesses(r/w) the members of Scene. Is this going to cause any problems?
stackexchange/codereview
Is there a way to get function caller in linux kernel? I know __func__ returns the function name which is executing. I am looking for the function which called "__func__"
stackexchange/codereview
As many others, I started my MVVM journey by reading Josh Smith's MVVM Demo. Using typed Data Template, he mapped every xxxViewModel to xxxView, so every time a ViewModel object is rendered, the appropriate View object is displayed. What I could not understand (nor find in the source code) is where does he actually se...
stackexchange/codereview
I'm building a wheel menu control. The idea is you spin the wheel until the item you want to act on is in view, then you click on it or whatever. I'm trying to figure out how to translate the user's mouse movements (x & y) into the number of degrees to spin the wheel. I can implement it all, I just am missing the math ...
stackexchange/codereview
I wanna create an notification application/service, which should be accessable from other applications similar to android's Notification and NotificationManger. As i m a newbie to android development, i wanna know how to develop an service running in background n how to access it from other applications?
stackexchange/codereview
I've installed the Facebook Activity Feed plugin on my website some time ago, while the site was in deep development phase. The site structure and URLs within the web app have changed significantly since then, however Facebook plugin did good job to capture all users 'likes' and 'shares' including those referring to d...
stackexchange/codereview
So I have a to call a method quite regularly as part of a pattern. It looks like something like this: DoWork(new TimeSpan(0, 0, 2, 0)); Or in another part of the code: DoWork(new TimeSpan(0, 0, 6, 50)); In each case the parameter never changes and I recently woke up and worked out what a performance whack it is to ke...
stackexchange/codereview
In my UIViewController I want to add a UIBarButtonItem in the Toolbar, but the new Button doesn't appear. What am I doing wrong? - (void)doLogin:(NSString *)name password:(NSString *)password { // 1.: start the Thread: NSInvocationOperation *invOperation = [[NSInvocationOperation alloc] initWithTarget:self selector:@...
stackexchange/codereview
I have a PowerShell script that outputs to stdout and stderr. I'd like to tee those to a couple log files at the same time. What's the best way to do this? A couple things I've considered: Wrap write-error and write-output with a function that does the tee. I don't like this much because (a) I lose my easy ability to...
stackexchange/codereview
I communicate with a json api in my cocoa (touch) app. As a response I get something like this: "wh": { "1": ["11.30 - 15.00"], "3": ["11.30 - 15.00"], "2": ["12.00 - 14.00", "17.30 - 23.00"], "5": ["11.30 - 15.00"], "4": ["11.30 - 15.00"] }, Keys 0 to 6 reflect the weekdays (Monday == 0, Tuesday = 1, ....) ...
stackexchange/codereview
I need to use openSSL into a project, I do not have experience using this, somo can anybody help?, I will use php for this. Thank you.
stackexchange/codereview
I have a page with navigation controller, when i click a login button, my view changed to login view(sub view), My question is how i return back to my parent view when a button click in the ogin view(sub view) Thanks, Companion
stackexchange/codereview
I need an image slider which resizes the images only if its needed (the size of the image is bigger than the div containing the slider). I've tried with AnythingSlider, but when I set the width and height to the div containing the slider, the images that are smaller than the div are stretched. I don't want them to be s...
stackexchange/codereview
I have a Silverlight 3 control where I am using an ItemsControl to display a list of items. I have implemented a "filter" or "search" textbox that allows the user to enter a search term in a textbox on the control that will limit the items displayed in the ItemsControl to ones that contain the string entered in the te...
stackexchange/codereview
Questions How does DispatcherServlet work if we have multiple XML Configuration file so how does Spring Application Context loads them and acts on them ? Scenario: In my case, we have an application that is supposed to global that is application should have AP{Asia-Pacific}, EM{Europ-Middleeast}, CA{Canada} and LA{Lati...
stackexchange/codereview
On Windows file names like com1.txt or lpt1.txt are forbidden. Is there a list of all forbidden file and folder names on windows (or forbidden chars in the file and folder names like :? ...)
stackexchange/codereview
I'm looking for a regular expression which can accept any value from 1 to 99 and does not accept any negative values. So far, I have: "regex":/^[A-Za-z0-9]{3}[0-9]{6,}$/,
stackexchange/codereview
Is there an Open Source "Pseudo Code" Editor with "Syntax Highlighting" and "Auto Complete"? Maybe even a pack for Notepad++ or any other Text Editor? Thanks. Solutions Pseudocode - A simple extension for syntax highlighting of generic pseudocode. By @Ben.
stackexchange/codereview
I have created a COM+ application using the Component Services MSC dialogs. I imported an existing COM object into this new COM+ application. I know that it is possible to call that COM object through the COM+ application. I could simply call the COM object as if the COM+ application never existed and it works fine. My...
stackexchange/codereview
How can I find path of a xml (static myXml.xml) file that is embedded into jar? Obviously not by absolute path but I am facing same kind of problem with relative paths. I cannot get it relative to home folder as Java returns different home folder depending upon from where I am calling the accessing Java class. For inst...
stackexchange/codereview
Recently, we've encountered some strange intermittent issues in our ASP.NET app. These issues would include: Static Variables becoming un-initialized Background threads aborting (InProc) session state being lost The weird thing was, these issues occurred about every 30 hours. "Weird," we thought... Well, I'm sure so...
stackexchange/codereview
My In-App-Purchases work. I present a ModalView with a "Buy" UIButton. You click the button and the In App Purchase goes through the process. You can even do it several times in a row. The problem occurs if you open the Modal View, then close the Modal View (using a UITabBarButtonItem), then reopen the Modal View and t...
stackexchange/codereview
I would like for it display all lines that have all the values that I entered in textbox5.text. When I enter a month example is 10 into textbox5 and then click button4 I would like to search the file that was created for the enteries that have a BirthMonth of example 10 then display the results in label7. public v...
stackexchange/codereview
I'm implementing a simple search on a website, and right now I'm working on sanitizing the input. My plan is to make a whitelist of allowed characters. I'm using PHP, and so far I've got the current regex: preg_replace('/[^a-z0-9 -]/i', '', $s); So, I'm removing anything that's not alphanumeric or a space or a hyphen....
stackexchange/codereview
When we create a stored procedure propably we create some variable like this : DECLARE @UserCount INT We use that variable in stored procedure. But we don't dispose that variable at the end of stored procedure. We dispose Cursors with DEALLOCATE but we don't write ant lines for variables which we create. Another stua...
stackexchange/codereview
I want to use PostgreSQL for my standalone .NET Windows application. I downloaded PostgreSQL Advanced Server from EnterpriseDB's website and it is very smooth. The GUI also very good. But I suspect how along EnterpriseDB will support it. The second option is to download from postgresql.org. I want an edition that lasts...
stackexchange/codereview
I am pretty new to graphics but I want to create an iphone/ipad app that does free hand drawing. That is as the finger moves, a path is painted. Where do I start (books, resources, etc)? The stuff I see on apple's docs talk about lines and arcs. These are simple. They talk about bezier curves briefly. Is this what I sh...
stackexchange/codereview
I want to add some custom image button in iPhone keyboard, when anyone selects my UITextField. In iPhone keyboard there is default button to return (or dismiss the keyboard)? I want to change the return button into my own button and do the same function, to dismiss the keyboard. Is it possible? Can anyone help me with...
stackexchange/codereview
As far as I know, self is just a very powerful convention and it's not really a reserved keyword in Python. Java and C# have this as a keyword. I really find it weird that they didn't make a reserved keyword for it in Python. Is there any reason behind this?
stackexchange/codereview
I have a set of hospital admission data that I need to process, I am stuck when trying to loop the data and pick up the stuff I need, here is the example: Date Ward 1 A 2 A 3 A 4 A B 5 A 6 A 7 A C 8 C 9 C 10 C And I need them to be transformed into: Ward Adm_Date Dis_Date A 1 ...
stackexchange/codereview
While the application is running, I press the HOME button to close the application. When I start the application again, it resumes on the page displayed prior to clicking on HOME. I want the application to start with the initial display instead. I have used finish() to finish the activity but it is not working. Any sug...
stackexchange/codereview
We have a sortable list using JQuery UI Sortable that we are trying to automate using Selenium. It looks like the dragAndDrop function should work, but when we call it, the UI does not change. However if we look at the DOM with firebug, we see that the order of the list elements DID change. It seems it's just the UI t...
stackexchange/codereview
The Java API for scripting languages (JSR223) comes as standard in Java 1.6 and can be downloaded separately for Java 1.5 here. My question is: are there any limitations or differences I should be aware of if using the separate download with 1.5 versus the native support in 1.6?
stackexchange/codereview
I have researched extensively and am pretty sure this is not possible. I want to make a call and then inject DTMF when the far end answers. So 2 questions Is it possible ? If not, how do I work to get it on the list of upcoming features to be provided on Android I can say that this is possible on BlackBerry and Symbi...
stackexchange/codereview
I know there are already a couple of questions out there about sharepoint development environments, but I was wondering if there's a shortcut if all I want to do is develop a relatively simple webpart. Do I still have to create a virtual machine with windows server, install sharepoint, sql server, wss etc., etc. or is ...
stackexchange/codereview
I've got a custom layout which is like a grid. I registered it for contextmenu. Now if I do a long click on it, I'd like to know the position where the user clicked on. I have to let my custom layout implement MenuInfo right? But what about the click position?
stackexchange/codereview
HI guys, I'm having a problem trying to change the default textfield of file_field_tag on chrome and FF, it works fine on IE but on the other browsers it is not applying the size. My code is. file_field_tag "#{ compliance.id }_document" , :size => '2 Dont know if i might be doing something wrong but i am sure its a v...
stackexchange/codereview
I need to store 2 values (counters) for my ASP.NET web app. The counters always grow, they should never return to 0. So one option would be to save them in DB, what other options do I have, because storing them in a table seems disproportionate? Session is not an option because the counters have to survive app restarts...
stackexchange/codereview
First of all, there is no chance that this is a multi-user issue, as I'm working locally on a dev version of the database. I am getting the not very explanatory Row not found or changed error being thrown when I perform db.SubmitChanges(). If I break the execution just before the SubmitChanges() occurs, I can check in ...
stackexchange/codereview
I've got a basic PIVOT-question here that probably won't cause you gurus any trouble: Ive got this SQL that is working fine: SELECT order_year, SUM(amount) AS Amount FROM dbo.mytable GROUP BY order_year; This returns sonething like: 2010 7000000 2007 8051222 2008 7099057 2009 13088790 Now I want to pivot the table ...
stackexchange/codereview
I need to do some load testing on an Ms Sql Server instance. I want to test an ms sql server instance with N databases, and then be able to see how the response time changes to how many calls that is being made to different databases in the instance. So I want to be able to configure amount of databases and the frequen...
stackexchange/codereview
How can i maintain the description of a product as i can see it in the mysql database which includes the carriage returns e.t.c but no HTML. Is there a function in PHP which can interpret the bits required so when it renders it has or ?
stackexchange/codereview
When creating a LINQ to SQL class (dbml) in an App_Code folder for a web app (-vs- web site) why can't I access the DataContext the same way as I do in a web site? What is the right way to access the class? TIA J
stackexchange/codereview
I want to perform an SQL update UPDATE incCustomer SET etaxCode = 'HST' WHERE only on records where this is true. select etaxCode from incCustomer left join incAddress on incCustomer.iAddressId = incAddress.iId left join incProvince on incAddress.iProvinceStateId = incProvince.iId where incAddress.iProvinceStateId...
stackexchange/codereview
I like being able to use the (Java) Code Formatter in Eclipse, but Eclipse reformats this: return new Element( OrderXMLGeneratorConstants.PERSONAL_DETAILS ) .addContent( createElement( OrderXMLGeneratorConstants.FIRST_NAME, firstName ) ) .addContent( createElement( OrderXMLGeneratorConstants.LAST_NAME, lastName...
stackexchange/codereview
I know MMC cards can share a bus and it seems like it should work with SD/SDIO cards as well. However, I've found conflicting information on the web and the simplified specs at sdcard.org talk about doing the card identification using "each cards individual CMD line." If I manage to assign two SDIO cards different RCA ...
stackexchange/codereview
Basically have many huge delimited files that I know I can import as a table, but I need to map that data to an existing rational multi-table MySQL database. There should not be any conflict with datatypes, but I'm super new to this, so please point out anything I should be watching for. Clearly I'm not going to run th...
stackexchange/codereview
I have subclassed UIView and provided my own drawRect, which works fine. However I added these methods to my subclass: - (id) alloc { NSLog(@"Alloc"); return [super alloc]; } - (id) init { NSLog(@"Init"); if (self = [super init]) flashWhite = true; return self; } I thought that when...
stackexchange/codereview
I am using YUI and need to get the true width of the element. The width of an element can be determined as follows. width + border-left + border-right + padding-left + padding-right + margin-left + margin-right. Below is what I have come up with. It appears to be working. I was just wondering if this is the best way to...
stackexchange/codereview
I'd like to get the height of a linearlayout. I found more information in this answer View.getWidth()/View.getHeight() won't give you a meaningful answer until the view has been measured. How will I know that view has been measured? Is there some event for it? UPD: Solution for me is to get layout's height in overr...
stackexchange/codereview
I'm not sure why this code won't allow me to choose a file and then scan it. How can I debug it? private String[][] importMaze(){ String fileName; JFileChooser fc = new JFileChooser(); int returnVal = fc.showOpenDialog(null); if(returnVal == JFileChooser.APPROVE_OPTION) { fileName = fc.getSele...
stackexchange/codereview
i want to get the key value when user pressed any key and also perform action based on the key pressed in android. e.g. if user pressed 'A' key then i want to get that value,compare,do something.
stackexchange/codereview
here is the server directory structure: /tmp/a and I can only connect to the server with sftp Now I want to mkdir first, and then upload some files into it. mkdir -p /tmp/a/b works, but mkdir -p /tmp/a/b/c/d/e/f/g doesn't. I think the param -p is for this situation, anything wrong? Thanks!
stackexchange/codereview