instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
So a TestMethod runs only once in one test run. How can I, in a single test run, let a TestMethod run several times, each time for a different data set that I've set up? My data does not come from a database or file; I want to build up several different in-memory instances of test data mockup. TestInitialize doesn't le...
stackexchange/codereview
I have a question, if two tables in database are from different entities then how we define relationship between them. i mean can we use some foreign key or any thing to define relationship between them. or we have to create a third table
stackexchange/codereview
I have a django site with lots of models and forms. I have many custom forms and formsets and inlineformsets and custom validation and custom querysets. Hence the add model action depends on forms that need other things, and the 'add model' in the django admin throughs a 500 from a custom queryset. Is there anyway to d...
stackexchange/codereview
I searched for a way to make j2me games and images etc .... DRM protected when these media are downloaded,so they can't be sent or copied to other devices I tried to do this with php ,but i didn't succeed. Is there a tutorial or a document that will help me. I appreciate your help.
stackexchange/codereview
I have the following VS 2010 solution setup: The application project executed references an project Libraries.Workflows which contains only workflows / .xaml files. This Libraries.Workflows project references a Libraries.Workflows.Activities project which basically contains all custom wf activities. The Libraries.Workf...
stackexchange/codereview
Scenario Lets say that I've decided I really need to call GC.Collect(); What do I need to do to ensure that an object is prepared to be garbage collected appropriately before I actually call this method? Would assigning null to all properties of the object be enough? Or just assigning null to the object itself? If yo...
stackexchange/codereview
Here is my situation, I have 3 tables: student | attachment | student_attachment_link The student table is linked to the attachment table through a classRef relation to the linking table as is the Attachment table to the Student table. relations: Students: class: Student refClass: StudentAttachmentLink local: a...
stackexchange/codereview
is there a workaround for the missing NVL() function in JPA 1.0 (Eclipselink 1.1.x)? Thank you and best regards
stackexchange/codereview
I need to convert XML built with dom4j to a w3c document and don't have any idea about how do it.
stackexchange/codereview
I've built the buttons into a layout file and I have a switch statement to address all of them. Most of them work fine I'm using code.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL)); //code is the EditText name This works fine for all the characters there is a key for. But I need to add >, ...
stackexchange/codereview
A class is defined with the following JAXB annotation: class Course { @XmlElement (name = "book") List<Book> requiredBooks = new ArrayList<Book>(); When unmarshalling an XML document that contains this <course> ... <book/> </course> I end up with a Book added to the list, with all of its attributes set to null. ...
stackexchange/codereview
If radius is Authuntication protocol why use kerberos,pap,chap,... ?
stackexchange/codereview
int j = 0; foreach (var e in XmlData.Elements()) { xDictionary.Add(j++, e.Value); }
stackexchange/codereview
This is my sample html page which contains inline javascript which calculates the geocode and tries to return the latitude and longitude .But my question is how to submit all the form values with latitude and longitude returned from showlocation function to submitform.jsp page and display latitude value in jsp page . I...
stackexchange/codereview
New to Entity Framework .Using EF4. I have found articles and managed to use stored procedures to return a list of entities. But cannot see/work out how you return a single entity. Given that I have a stored procedure "GetCustomerById" that return a single customer How do I map it? Using the Model Browser I right clic...
stackexchange/codereview
I am looking for a way to embed album art in a mp3 file with PHP, either through a some kind of PHP script or through exec() and a Linux command.
stackexchange/codereview
Do anyone have experience in crafting CSS stylesheets for websites that will implement CushyCMS? My attempts haven't been working that well. I've had problems with the WYSIWYG interface, where clients email me a week or two after I considered the project a done deal and complain because when they updated the website us...
stackexchange/codereview
Ubuntu 10.10 64-bit. GNU as. .section .data value1: .float 1.25 , 124.79 , 200.0 , -312.5 .section .text .globl _start _start: nop cvtps2dq value1 , %xmm0 cvttps2dq value1 , %xmm1 movl $1 , %eax movl $0 , %ebx int $0x80 Running the program results in a segmentation fault: ~/scra...
stackexchange/codereview
How does one make a method in an interface that's not abstract? I know that it CAN be done, I just don't know how. I'll give an example of my confusion. In Java you can implement java.awt.event.MouseListener, then you must call the method addMouseListener(Object)... passing your class as a parameter, so the MouseListen...
stackexchange/codereview
I provide sessionstate in my web.config file like this sessionstate mode="InProc" cookieless="UseUri That way each tab generates a new unique session ID in the URL with the format like this : http://www.domain.com/(S(kbusd155dhzflbur53vafs45))/default.aspx It worked, but when I copy the url and paste it on another tab ...
stackexchange/codereview
What is the difference between Session.getDefaultInstance(props, authenticator) and getInstance(props, authenticator)? In general, when will you choose one over the other? I also read Java doc on getDefaultInstance(props, authenticator), but still couldn't able to make out the difference distinctly/clearly. Hope exper...
stackexchange/codereview
My python server uses json.dumps() to dump the json object into the string, but it also converts the binary utf-8 code which is not ascii, into the stringized thing, like "\u4e2d". So what my client see is this string, is there any api to convert "\u4e2d" back to utf-8 character?
stackexchange/codereview
Is there a way to use joins in update statements for DB2? Google has really let me down on this one This is roughly what I'm trying to achieve (... except obviously working ....) update file1 inner join file2 on substr(file1.firstfield,10,20) = substr(file2.anotherfield,1,10) ...
stackexchange/codereview
I'm having some problems getting Grails to map my 404 errors to an errors controller like in the documentation. I'm running Grails 1.3.5 and when I add the following mapping to a default application: "404" (controller:'errors', action:'notFound') It works for mapping 500 errors but not 404's. I seem to recall having t...
stackexchange/codereview
Is this possible in C? #if functionA() < functionB() //... #endif
stackexchange/codereview
In MySql, I have a documents table, a folders table, and a searchtags table Documents ID title Folders ID title Searchtags ID title docFolders docID -> Documents.ID folderID -> Folders.ID docSearchtags docID -> Documents.ID searchtagID -> Searchtags.ID In the above, docFolders and docSearchtags...
stackexchange/codereview
I want to retrieve list of all file in a specific folder that included oracle form and menu and report and some txt file... Do you have any idea how I can retrieve these data in ORACLE form, and insert them into my data block, automatically? I use oracle form 6.0.
stackexchange/codereview
In one of my projects, I encountered a set of linear eqns. with modulo. I am putting it in simple format with only 2 variables, (a11x + a12y) mod 8 = b1 (a21x + a22y) mod 8 = b2 In case of simple eqns. with out modulo I can use: AX=B, X=inv(A)*B. But how to handle this modulo? Any clue or pointers will be very hel...
stackexchange/codereview
My android program has 4 activities: A -> B -> C -> D When activity C starts activity D, activity C closes. (The onStop() method is called). Is there a way to tell why it is closing?
stackexchange/codereview
Can anyone tell me why the length of data is much less than the position of the end of the file? I would have expected these to be equal. >>> target = open('target.jpg') >>> print target.tell() 0 >>> data = target.read() >>> print target.tell() 40962 >>> print len(data) 52
stackexchange/codereview
In pyGTK (2.22 - version is very important), I'm encountering the bug detailed below. I think it's a pyGTK issue, but I could be wrong and don't want to report a non-bug. Basically, I am extracting text from a gtk.Entry() using .get_text(), and this returns an empty string even with text in the widget. Here is some rel...
stackexchange/codereview
As part of an iPhone game, I've got buttons that grow a little when you press them, and shrink back when you release (as a way of responding to user input). The code responsible looks like this: -(void) magnifyButton: (CALayer *) button { button.transform = CATransform3DScale(button.transform, buttonPressScale, butto...
stackexchange/codereview
I want to write a sed filter that changes all periods in its input to exclamation marks, unless the period is at the end of a line, in which case the period is replaced with 2 exclamation marks (ie. !!). So far, this is what I have: sed -e 's/\./\!/g' -e 's/\!\n/\!\!\n/g' input_exp where input_exp is a file that has...
stackexchange/codereview
I have 20 <img>-tags: <img src="/image/1.jpg"/> <img src="/image/2.jpg"/> <img src="/image/3.jpg"/> <img src="/image/....jpg"/> <img src="/image/N.jpg"/> How can I order these pictures in a block layout of 4 images per row? Only valid div, no table! Example: http://new.music.yahoo.com/videos/charts/
stackexchange/codereview
I'm working on a public site that soon will not longer be 100% public. Paid users will be able to access 100% of the features while "anonymous" users will access a reduced version. The problem is that anonymous users and paid users will access the same pages, but they'll see different things. I wonder about how to keep...
stackexchange/codereview
Visual Studio is not seeming to rebuild changed included files in my project properly. I tried removing the requirement that the file match; though that displays the source code when stepping, it still runs the old code (it would execute commented lines, etc). I could not seem to find any relevant settings wrong. It is...
stackexchange/codereview
I'm looking for some advice from the community about constructing an online store based on the following information: About the Store: Online store that sells physical products product page will include elements such as customer reviews, product zoom, "you may like" etc. uses open ID needs a full backend to suppor...
stackexchange/codereview
I am trying to send a SOAP request from a xml file and send to a SOAP service and then read the response while saving it into a file, using libcurl. An example request in an xml file is as followed: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:x...
stackexchange/codereview
I have a character pointer and i want to display an integer value. Then is is the following statement correct: printf("%d",*(int *)ptr); Can u pls explain me a bit?
stackexchange/codereview
Currently we are using Internet explorer on windows phone 7, instead can we use Google Chrome, Mozilla Firefox or Safari?
stackexchange/codereview
i have the following code part in one of my classes: $l = new Location(); $result = $l->getLocIdsbyCity($city); // returns csv $ids = explode(',', $result); $where = 'LOC_ID = ' . $ids[0]; unset($ids[0]); foreach ($ids as ...
stackexchange/codereview
We develop several products and already have extensive unit-tests and fully automated functional tests for them. Problem is that those tests don't run frequently, just manually by developer or just before shipping a new version. I'm looking for a "test execution manager" software which will allow: defining test sui...
stackexchange/codereview
and maybe private static method and properties, etc.
stackexchange/codereview
Is it possible to create a jasper report that runs from left to right as opposed to the usual top to bottom layout. Basically having the header band of the report running vertically instead of horizontally. For example, from this: Age Sex Location 35 m London 27 F Dublin 40 m Dublin To this layout: Age ...
stackexchange/codereview
How can I read .pdf file in BlackBerry through your own application?
stackexchange/codereview
text<br> text2<br> text3<br/> br tags may be self closing or not. would it be possible for a regular text: text\n text2\n text3\n
stackexchange/codereview
I'm in the process of moving a working apache/mod-php website to nginx/php-fpm. Under Apache/mod-php, I could use header("Location: $url"); to redirect the browser to a different page, such as after a login attempt. After switching to nginx/php-fpm, the browser would no longer follow that redirect on certain pages. I c...
stackexchange/codereview
I have an element such as element = document.getElementyById("myElement"); Now, let us assume that there is some CSS applied on it through various methods such as #id, .class, and tagName. We know that #id has priority over .class and .class has priority over tagName. I want to determine which of the above method is a...
stackexchange/codereview
I am inserting a new record in a form that has two textboxes txtName, txtAge and I am using an ajax calender extender txtDOB and a gridview control gdvDisplayRecords with 3 fields name, dob and age. So when i select any date from ajax calender extender, the gridview must display only those records from the database whi...
stackexchange/codereview
There is a constructor of lucene Field: Field(String name, String value, Store store, Index index) For example I can create a new field by: Field f1 = new Field("text", "The text content", Field.Store.YES, Field.Index.ANALYZED); I am not exactly sure of the meaning of the fourth parameter: Index If I set it to Index....
stackexchange/codereview
Env: Visual Studio Warning Level is set to 4, Code in the only file in solution: #pragma warning( push ) #pragma warning( disable: 4503 ) #pragma warning( disable: 4702 ) #include <boost/property_tree/ptree.hpp> #pragma warning ( pop ) //mark #include "iostream" int main() { boost::property_tree::ptree pt; for( boost...
stackexchange/codereview
I have a web service running on 3 servers. The woreking is as follows -Server 1 recieves user requests store it on local db and does some work on it. -Server 2 and 3 are identical and the main work horses, they based on request fetches information from internet and return it. -Server 1 calls server 2/3 via http request...
stackexchange/codereview
I've created an app in Flash Builder "Burrito". When I run the application there are no project warnings or errors. The .apk was compiled successfully. The emulator is running Andorid 2.2. However, when I push the .apk to the emulator I get "Invalid Apk" error. I tried installing it into Galaxy Phone (Android 2.2) ,...
stackexchange/codereview
I have observed the following feature when I rename a stored procedure. sp_RENAME 'User_Validate', 'sp_UserValidate' And when I do sp_helptext sp_UserValidate the procedure's name that i see is CREATE PROCEDURE User_Validate (@userEmail nvarchar(200), @userPassword nvarchar(32)).... Why doesn't the name get upd...
stackexchange/codereview
I can't believe that I can't find the answer to this question but I really have searched and can't find it! honest! anyway - here is the question: I am trying to create a validation function for a form that will not permit the user to proceed to the next form field if the field doesn't validate. I just want the 'incor...
stackexchange/codereview
I have a [serializable] class that I serialize using a binary formatter, send over a network (TCPListener, TCPClient) and then run deserialize on. Every time I get to deserialize I get an outofmemory exception. Does anyone know why this might be happening? (The class I'm sending is very small) Thanks, PM EDIT: My class...
stackexchange/codereview
Is there a library or web service that can tell you the pronunciation of a string? I'm thinking of character-based languages, where the pronunciation of the word is not apparent from how it's written.
stackexchange/codereview
I am seeing this error in my console for chrome. Application Cache Error event: Failed to commit new cache to storage, would exceed quota it means what it seems to mean right? That my app is trying to cache too much data? Is there anything that can be done about it? Same site works in FF no issues.
stackexchange/codereview
I'm really bangin' my head because I can't find the way to show the soft keyboard when there's a bluetooth input device connected to the iPad. I made some search on the web and this is the result: a question on stackoverflow with a very short answer How can I detect if an external keyboard is present on an iPad? an a...
stackexchange/codereview
I am in need of some advice on how to setup my project. I'm building a static library and want to know if the way I'm using precompiled headers is correct before I go too far. So far, my stdafx file is just including (for types like DWORD, etc.) and (for std::string). I built a simple cpp/header combo called TestFun...
stackexchange/codereview
I am trying to learn the shared library concepts on linux using GCC. So I have created a simple library. library.c int foo(void) { return 10; } This is compiled using, cc -fPIC -g -c library.c cc -shared -fPIC -Wl,-soname,libmytest.so.1 -o libmytest.so.1.0.1 library.o -lc It created the file libmytest.so.1.0.1 i...
stackexchange/codereview
How can I disable automatic conversion of HTML tags in Rails3? I have output in some controller view. For example I have method which outputs simple HTML link set.. [:en, :de].map{ |locale| link_to locate.to_s.upcase , { :locale => locate } ... In view I'm calling my method <%= my_method %> As a result I get this: | &...
stackexchange/codereview
I am compiling C++ on VS 2005. When and why use #include and when and why use pre-decleration as class XXXX? What is the benefit of using each option and which one is preffered? I would also glad for a good tutorial on compiling.
stackexchange/codereview
My domain library for database created with nhibernate. When I was create web-service under with library I was catch many errors about can't using interfaces in my DataContract classes. e.q. [DataContract] public class MyClass { ... [DataMember] public virtual IList<Item> Items {get;set;} ... } next, ...
stackexchange/codereview
I have a pretty standard many-to-many relationship. Items have many tags and vice versa, through an associations table. What I want to do is implement a search engine where the user searches for a particular item, and items with a similar array of tags(not exactly the same, it would be very rare for two items to have t...
stackexchange/codereview
I've created a sidebar that displays a list of values. When the user double clicks on one of those values, a new tab opens and is supposed to display detailed information about the value selected in the sidebar. I need to pass a javascript object (or some other type of value) over to my new tab which has a script attac...
stackexchange/codereview
I'm interested in using OpenStreetMap in a web application developed using ASP.NET. Anyone knows if there is a control, library or wrapper for using OpenStreetMap in ASP.NET? (C#, not using Javascript).
stackexchange/codereview
I write a class in php and I need that all references that I am writing in the functions of the class had a prefix. That is... class MyClass { function echoing() { $class = new LinkMaker(); return $class->create(array('href' => 'popular/books/', 'title' => 'Popular books of 2010')); } } And...
stackexchange/codereview
I just started using EF, and heres what I have: dataEntity = new ThisProject.Data.Entities(); listBoxProjects.DataSource = dataEntity.projects; This does insert all projects in the ListBox, but I want to narrow the results. I have an integer variable named clientID, and the projects table has a field named clientid, ho...
stackexchange/codereview
In my current work I'm required to produce a double border on a container. The border-style: double; achieve this, however my client want the outer border to be thicker & the inner border to be of the normal thickness. Other than creating 2 divs, 1 nested inside another with the outer div having a larger thickness, or ...
stackexchange/codereview
I saw this comment in git many times. What does it mean actually?
stackexchange/codereview
Our customer feeds us contracts with duplicate items. We advertise unique products. How could I select a distinct set of upcs with descriptions without doing many sub queries? Horrible example: /* eventID int groupID int // This field is different between fields upc_ean numeric(18,0) descript...
stackexchange/codereview
How stored procedures are fast in Mysql . Where it is suitable to use stored procedures (insert,update,select) How can we make stored procedure of a complex query returning 100000 rows and how can we get these records on php form. any example of such stored procedure using select query returning multiple rows ?
stackexchange/codereview
I'm trying to do a Project Euler question. I'm looking for the sum of all prime numbers under 2,000,000. This is what I have... int main(int argc, char *argv[]) { unsigned long int sum = 0; for (unsigned long int i = 0; i < 2000000; i++) { if (isPrime(i)) { sum += i; } } ...
stackexchange/codereview
I need help with this program. As a part of my project I need to create a directory. I was using the system function to do this, but later was told that Perl has a builtin called mkdir. I'm on Ubuntu 10.04. The problem is mkdir does not seem to work as needed. It creates the directory but the permissions are differen...
stackexchange/codereview
Simplest example: I have a dispatcher servlet configured to catch everything: <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> I have a simple test controller: @RequestMapping("/index") @ResponseBody public String rootTest(){ return "Main page displ...
stackexchange/codereview
I'm working on a web app that uses menus (fg.menu) and jQuery UI tabs. These work great. I'm now trying to apply the dataTables plugin to the tables that I'm loading (via Ajax) in my tabs. The tables are generated on the server side (JSON is not an option right now) and sit in static files that I load into the tabs. Th...
stackexchange/codereview
I want my C# application to open an Internet Explorer window. So far I have figured out how I'm doing: using SHDocVw Type oType = Type.GetTypeFromProgID("InternetExplorer.Application"); if (oType != null) return (InternetExplorer)Activator.CreateInstance(oType); Now I want to remove all unnecessary buttons and m...
stackexchange/codereview
I'm creating a patch for my product. This is the third patch for the base version. My upgrade paths are as follow: 1.0 -->1.0.3 1.0.1 -->1.0.3 1.0.2 -->1.0.3 What I did was to create a new patch in Patch View and set 1.0.3 as the latest version and 1.0, 1.0.1 and 1.0.2 as the previous versions. (I followed the same...
stackexchange/codereview
I have a data frame with a response variable, Y, and three factors, 'factor.a', 'factor.b', and 'factor.c' I am trying to write a function that will remove a columns from a data frame if all levels of the factor are the same add the terms 'beta.factor.x[1..n]' to a vector of parameters when there is more than one lev...
stackexchange/codereview
I m rendering SSRS Report in pdf format. I want pages from 2 to Last page. Using deviceinfo is it possible?
stackexchange/codereview
TLDR Version: I need to find a way to implement some sort of "MessageCenter" where any control can register to receive messages from other controls, without knowing where those messages are coming from (or it can know, so long as it doesn't mean any extra work for me). After typing out this whole thing, I think I've he...
stackexchange/codereview
I'm transitioning an application from using a normal SQLite database to one with full text search enabled. It has several BLOB columns that store things like digital signatures, which obviously do not need to be indexed. I've read that other people solve this by moving all non-TEXT data to a separate, non-FTS3 table th...
stackexchange/codereview
I have some general scripts that I use and they keep getting modified over time. Right now, I do not use any version control software for them so basically the old files are lost unless I explicitly save them. I need a good minimal version control system that I can use on a single machine. Which one do you use for such...
stackexchange/codereview
i am looking for a pseudocode that prints the hexadecimal represenation of an integer as string. thanks!
stackexchange/codereview
Within a public class that doesn't extend any other class I'm doing some evaluation stuff and I would like to return a Dialog if something needs to be communicated to the user. I'm using an AsyncTask to run a method of an instance of this class from the main UI: private OnlineActivities onlineActivities = new OnlineAct...
stackexchange/codereview
Good Day! i am using ASIFormDataRequest to upload file, now everthing works but the upload of file does not work. it does nothing, but other than that it works fine, i dont understand the reason, can you please help me out. here is my calling code. [self setRequest:[ASIFormDataRequest requestWithURL:[NSURL URLWithStrin...
stackexchange/codereview
I have an app I'm trying to debug on an issue on regarding use of the media player. I have an Activity displayed with a service polling a server behind it. The Activity is displaying dynamic status that the service is collecting from the server. That was working great. I then added some code in a class the service ...
stackexchange/codereview
I was wondering if there is a feature in ExtJS where I can just load the individual components that I need. For example, dojo uses dojo.load() and then I specify in the method what component I want to load, be it fx, numeric or other cool parts.
stackexchange/codereview
I created a class derived from TThread that executes in background a query. I want that this class is decoupled from the client. This kind of thread has the purpose of executing a simple check (like how many users are currently connected to the application, without blocking the UI), so a simple idea is to use the Synch...
stackexchange/codereview
Let me get this straight. According to best practice we should initialize jQuery at the bottom of the page. If we do that, any reference to the jQuery object (ie. $ or jQuery) above the reference will be a null. However, as for $(document).ready(), the reason why this jQuery function is ever needed is when you want to ...
stackexchange/codereview
I have two listitems and the postback and run a function. <asp:RadioButtonList runat="server" CssClass="ccsw" ID="ccsw" AutoPostBack="true" RepeatDirection="Horizontal" OnSelectedIndexChanged="UpdateCharges"> <asp:ListItem Text="Credit Card"></asp:ListItem> <asp:ListItem Text="Debit Card"></asp:ListItem> </as...
stackexchange/codereview
I am using an applet deployed through JWS (Java Web Start). This applet has some native functionality included: JNA. User32, Kernel32 and Gdi32. When I launch the applet through JWS, I get the following: basic: LD - All JAR files signed: file:/C:/JavaApplication6/dist/launch.jnlp basic: passing security checks; secureA...
stackexchange/codereview
I'm trying to publish and view a simple MVC3 Beta Razor application. I am able to publish the site via filesystem with no problems onto my Windows 2003/IIS6 server. When I attempt to access the the website with a browser, i receive the following error message: Attempt by method 'System.Web.WebPages.Razor.WebPageRazor...
stackexchange/codereview
I'm using the HTML 5 local storage API to store a user's access token. The requests then appends this token to access my server side API. I'm wondering if I need to namespace the keys I use. Does the browser take care of this or do I need to call the key something like 'my-awesome-app-token'? I noticed Twitter does thi...
stackexchange/codereview
UILabel *scoreLabel = [ [UILabel alloc ] initWithFrame:CGRectMake((self.bounds.size.width / 2), 0.0, 150.0, 43.0) ]; scoreLabel.textAlignment = UITextAlignmentCenter; scoreLabel.textColor = [UIColor whiteColor]; scoreLabel.backgroundColor = [UIColor blackColor]; scoreLabel.font = [UIFont fontWithName:@"Arial R...
stackexchange/codereview
(individual question from IDE-Style program running )
stackexchange/codereview
I work for a hosting company, providing ASP.Net 3.5 hosting. Honestly, we usually provide quite good uptime and velocity. However, we are having problems with one of our shared pools. As usual, we try to maximize the number of webs that can run into one pool. Lately we are suffering continuous hangs. The process doesn'...
stackexchange/codereview
I have a timestamp the user enters in GMT. I would then like to display that timestamp in gmt, cet, pst, est. Thanks to the post below I have made, which works perfectly! public static function make_timezone_list($timestamp, $output='Y-m-d H:i:s P') { $return = array(); $date = new DateTime(date("Y-m...
stackexchange/codereview
I am making a application that uses the GPS receiver. The application will work on all versions starting from 1.6. I have a satellite Icon in which I tell the users the current status: if icon is red - gps disabled if icon is orange - gps is enabled and trying to fix on the satellites if icon is green - gps is fixed...
stackexchange/codereview