instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Input: "NEW YORK (Reuters) U.S. stock index futures pointed to a slight rebound on Wall Street on Wednesday, with futures for the S&P 500 up 0.34 percent, Dow Jones futures up 0.12 percent and Nasdaq 100 futures up 0.51 percent at 0921 GMT." Output should be array of all numbers including floats. A little similar th...
stackexchange/codereview
I have just started using WPF and am having trouble data binding from the result of a Linq query to a ListView. I have tried a number of combinations including setting the DataContext and ItemsSource to the query. As in: listView.DataContext = (from person in People select person).ToList(); Then in the xaml setting th...
stackexchange/codereview
Possible Duplicate: What is an undefined reference/unresolved external symbol error and how do I fix it? I am terrible at reading c++ errors, but obviously Unresolved External Symbol means the function I am using isn't defined. The error I am getting is... 1>WorldState.obj : error LNK2001: unresolved external symbol...
stackexchange/codereview
Eclipse doesn't accept the less than symbol for the button text, is there a way to escape it so it shows on the button? <Button android:id="@+id/button_prev_line" android:text="<line" android:layout_width="wrap_content" android:layout_height="wrap_content" />
stackexchange/codereview
I have come unstuck on a relatively (almost) trivial problem. I have a row of data that I want to display in tabular form (HTML). For some reason (possibly long day [again] behind the computer), I am not coming up with any elegant solutions (algorithms) to do this. I have presented some sample data, and how such data w...
stackexchange/codereview
I was wondering what the most computationally efficient Python way of cracking this problem would be. Say you have two strings (or lists from splitting those strings--doesn't matter), "this is the right string" vs. "this is right the string." We're assuming that the first string is always right, and a score will be ass...
stackexchange/codereview
I'm using the following form tag for @jobs which have job_photos included. <% form_for @jobs, :html => { :multipart => true }, :remote => true do |f| %> The form works fine non-remote, but if I add the remote = > true, the form submits, returns create.js but doesn't save anything to the DB or error?
stackexchange/codereview
class Base { protected: int data; public: virtual int getData() { return data; } virtual void setData(int value) { data = value; } }; class Child : protected Base { public: void setData(int value) { Base::setData(value); cout << "Data is set.\n"; } }; class Worker { ...
stackexchange/codereview
I was wondering how I could make a questionnaire that asks an initial question, and the following questions are based on how you answered the first questions? For example (this is for a Chiropractic clinic) Where is the area of pain located? 1.) Head 2.) Back 3.) Shoulder If the person answered (1), then the next ques...
stackexchange/codereview
How do I change the size of an icon from the JQuery theme builder? The icon is too small to use. Setting height and width is wrong...
stackexchange/codereview
Now I'm using the follow code to scale down the image downloaded from internet at runtime. But the result is not good enough. Bitmap.createScaledBitmap(srcBitmap, dstWidth, dstHeight, true); Any help? Thanks.
stackexchange/codereview
I have a viewmodel that partially looks like this... [Required] public int Year { get; set; } [Required] [Range(1, 5000000)] public int ModelID { get; set; } [Required] public int ZipCode{ get; set;} I want to add a custom validator attribute that checks a data...
stackexchange/codereview
i have add .zip file to my resource how can i access that zip file ?
stackexchange/codereview
I can use "Alternation" in a regular expression to match any occurance of "cat" or "dog" thusly: (cat|dog) Is it possible to NEGATE this alternation, and match anything that is NOT "cat" or "dog"? If so, how? For Example: Let's say I'm trying to match END OF SENTENCE in English, in an approximate way. To Wit: (\.)(\s+...
stackexchange/codereview
I need that this two divs look like one row of table , but thay don't show one beside other . Any help ? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Info-Stanković Inženjering</title> <style type="text/css"> div#wrapper{ ...
stackexchange/codereview
Have anyone able to use visual studio socket server and client to work successfully over WAN network and not LAN?? I got it to work on LAN but not over the WAN.
stackexchange/codereview
I'm able to compile code that includes this: OperationDelegate myOpDelegate; static OperatorDefinition[] definitions ={ new OperatorDefinition("+",2,3,true, new OperationDelegate(OperationAdd)), }; delegate double OperationDelegate(double[] args); static double OperationAdd(double[] args) ...
stackexchange/codereview
I have an ASP.Net web application running on an IIS server, and I need to find the visitors login username. How can I can find this? When testing locally it found my username using new WindowsPrincipal(WindowsIdentity.GetCurrent());, but it finds NETWORK SERVICE when running the app on the server.
stackexchange/codereview
I've looked around and can't find too much. But is it possible to do something like this using HQL in nHibernate: Session.CreateQuery(@"DELETE FROM MyObject mo WHERE (mo.AlteredDate + mo.ExpiryDetails.ExpiryTimestamp) < :pNow") .SetDateTime("pNow", DateTime.Now); So basically ...
stackexchange/codereview
I remember from my Perl days the "use strict" statement that cause the runtime to do extra validations. Is there an equivalent for Groovy? I do not enjoy being bitten during runtime by what can be detected on compilation, like passing too few arguments to a constructor.
stackexchange/codereview
I'd like an actual term for them. Tab lines? I can't find a reference to them on google because i don't know what to search for! I wanna see if there's something like this for Gedit.
stackexchange/codereview
For example <script> function foo(){...} </script> <div><script>foo();</script></div> <span><script>foo();</script></span> and I wanted to have foo return "abc" when called from a div, return "123" when called from a span. Is this possible?
stackexchange/codereview
I have three class , called A,B,C and another class called X. In this X class I want to access a few function from A, B and C. I know if I want to access the function in one class, I can use: class X extends A { ... } Now I can access all A public functions, but now I want to access the B and C class functions as well...
stackexchange/codereview
I am trying to have my app create a directory on the root of the SD Card, if that directory does not already exist. When I run the app, the "Creating Home Directory..." toast notification displays, but the directory is not created... What am i doing wrong?? (P.S. permissions are set for writing to external storage) pub...
stackexchange/codereview
I'm trying to teaching myself how to program by building programs/scrips that will be useful to me. I'm trying to retool a script I found online to send an email through gmail using a python script (Source). This example has a portion of code to attach files, which I don't want/need. I have tweaked the code so that I d...
stackexchange/codereview
Now i'm working with EJB 3 in Stateless Bean i create method get all instance of entity About public List<About> retrieveAllAbout(){ return em.createNameQuery("About.findAll").getResultList(); } Now i want get one row of list to pass to js page. How can i do it in jsf page ( xhtml) i want show one value ...
stackexchange/codereview
Environment: Windows,Python,wxpython and Element tree as xml parser. I am developing a stand alone where it reads the xml and creates a tree. My application reads the xml and creates tree but when xml changes next time(when DEPTH of xml increases- i mean when two child elements are added).Application fails to read(Logi...
stackexchange/codereview
I'm currently building an application using the Adobe Facebook API and I've run into an issue where for the login method the Facebook login popup displays but when doing a Facebook share/post the popup is blocked. This code works fine and displays me a Facebook login popup without question (Firefox): var permissions:Ar...
stackexchange/codereview
I have a problem with presenting and dismissing a modalViewController that contains a tabBarView controller (with two viewControllers). I have no problem in presenting and dismissing the modal, but I have a navbar setup at the top of each view controller with a done button that will dismiss the modal and return the us...
stackexchange/codereview
how can i hide video display, im just trying to display controlbar only for audios. btw im using javascript control bar.
stackexchange/codereview
can someone please tell/type here how to generate models from an existing DB using php and doctrine ?, what i did was, I placed the Doctrine folder + Doctrine.php inside a folder named e.g test , now within that test folder I added a php script named test1.php, and within that test1.php , here's the code that I used i...
stackexchange/codereview
Possible Duplicate: What does a colon in a struct declaration mean, such as :1, :7, :16, or :32? This is C code sample of a reference page. signed int _exponent:8; What's the meaning of the colon before '8' and '8' itself?
stackexchange/codereview
Is there a way to "cascade" new column information down through the subsequent data flow transformations when I add a new column? My current practice is to open each tranformation in sequence and verify that the new column is available. If it isn't, I delete and recreate the transformation. I can't believe there isn...
stackexchange/codereview
I have to see a difference between 2 states of the same DB (MS SQL 2008). Profiler is not an option as it is run-time tool and needs operator actions. I have not found tools for this purpose, so the question is - is there a way to export DB data into human-readable text format to compare them with something like windif...
stackexchange/codereview
I have an in-app mail composer. I would like to add an image at the bottom of the email body with a http link wrapped around it (usual business ) The image is in my resources. My goal is to add the image and have link the image to the app store. How do I do that? That's how I am attaching the image right now: NSString ...
stackexchange/codereview
I like AJAX/JSON features of jQuery but the library is very big for blackberry phone development. Has anyone pulled out or developed a stand alone AJAX/JSON library similar to jQuery's? I know that a mobile version of jQuery is coming, but this looks like it is more directed at GUI for iPhone. I also tried XUI, but ha...
stackexchange/codereview
I am writing a check to see if a timeout is active. I was thinking of doing this: var a = setTimeout(fn, 10); // ... Other code ... where clearTimeout(a) can be called and set to null if (a != null) { // do soemthing } I was wondering if it would ever be possible that a will be 0. In that case I would use a !== nul...
stackexchange/codereview
I'm trying to do something like this, but it's not working. How would I do this in Rails 3? Student.find(12).includes(:teacher)
stackexchange/codereview
I have a bit of a problem. I have an area called Framed. This area has a home controller. The default for the site also has a home controller. What I'm trying to do with this is have a version of each controller/action that is suitable for an IFrame, and a version that is the normal site. I do this through Master...
stackexchange/codereview
Even after going though this, I am still not clear about how usage of final causes safe publication in the below code. Can someone give an easy-to-understand explanation. public class SafeListener { private final EventListener listener; private SafeListener() { listener = new EventListener() ...
stackexchange/codereview
I'm tuning my query for mysql. the schema has index of user_id (following..) but the index is not used. why? Env: MySQL4.0.27,MyISAM SQL is the following : SELECT type,SUM(value_a) A, SUM(value_b) B, SUM(value_c) C FROM big_record_table WHERE user_id='<user_id>' GROUP BY type Explain: |table |type |possible_keys...
stackexchange/codereview
I've set up a simple gallery system in PHP that is built to display one image per page. My URL parameter simply uses a gallery variable and a page variable and does not use the image iD in any way to pull the image. This is because I'm setting my htaccess settings to make a friendly URL: http://mysite.com/images/1/ ...
stackexchange/codereview
Depending upon the user i may need to move it to right ,left,top or bottom. Should i use animation for the purpose? Or is there any method to move image dynamically? I meant the things in android application
stackexchange/codereview
I have a custom portlet made for liferay and sometimes it throws an exception. Why it throws exceptions is irrelevant. How to catch exceptions thrown by portlet handler methods in order to email information about them? I know I could do try catching on every handler method but it would be a much more elegant and cleane...
stackexchange/codereview
i am wondering how its possible to have an iphone nib that has some uitextfields and some labels to be automatically repotitioned if the device is an ipad. (i dont want a second nib) im trying to get my iphone nib to autoresize in the middle of the screen if the device is an ipad so that all the text fields and buttons...
stackexchange/codereview
hii, I am using XtraTreelist.in this i have created a unbound treelist.Now i have to add a button in that form and when we click the button a new root should be added. and by using another button i have to add the child.. help me please...
stackexchange/codereview
I know that once a .NET application is launched, 3 Application Domains are created automatically by the CLR, they are System Domain, Shared Domain and Default Domain. System Domain: Create the Shared & Default domains Provide the funcitons of loading and unloading application domains Load mscorlib.dll into Shared dom...
stackexchange/codereview
In vba, There is an address held by a long type which points to a null-terminated string, but I can't find a way to get the string from this address: long str_address = ... string str = ? Would you please shed some light on this?
stackexchange/codereview
Hi is there way to actually link to any site (not your own). And when clicked it takes you to that site + x amount of code. Of course I am not talking about the pages which all ready have a jQuery plugin or something, I am talking include the paramater of "scroll" (or what ever) already from my site or link. I guess th...
stackexchange/codereview
I'm writing a custom control which includes a text box input and an unordered list of items below it. As the user types in the text box I would like for the matched text in the list to be bolded (wrapped in <strong> tags). //I use keyup so the value takes in to account the last keystroke. $('#filterList').keyup(...
stackexchange/codereview
I want to do something like this List<Integer, String, String> I want to be able to iteratively retrieve either of these three parameters. How can I go about it? Thanks
stackexchange/codereview
What's the point of HttpUtility.UrlDecode when .net already decodes the querystring when you request it. Is this a hangover from classic ASP or am I missing something?
stackexchange/codereview
Here is my problem. I am trying to convert the [Loader Object] into the MovieClip but could't do it. Please see the comment in to code to see my problem. The reason i want to do this is because i have other movieclips on my code, I like to be able to use those code instead of converting the code to works with the loade...
stackexchange/codereview
I'm currently following the great tutorial on Geekpedia to create my own Chat Client and Chat Server. Connecting the clients to the server works fine but I'm experiencing a few issues with the text being displayed in the chat log. The first message that is displayed is in the Server window then the incoming connections...
stackexchange/codereview
I'm using a syntax highlighter, Google Prettify to be more specific, and I'm trying to select the content of the code but without the numbers of the li items, and when I say select I mean select with the mouse to copy and paste the code. I wonder if that's possible. If I'm not clear, please tell me and I will try to e...
stackexchange/codereview
I'm trying to get the title of the active window. The application is a background task so if the user has Eclipse open the function returns "Eclipse - blabla", so it's not getting the window title of my own window. I'm developing this in Python 2.6 using PyQt4. My current solution, borrowed and slightly modified from a...
stackexchange/codereview
Web frameworks such as Rails and Django has built-in support for "slugs" which are used to generate readable and SEO-friendly URLs: Slugs in Rails Slugs in Django A slug string typically contains only of the characters a-z, 0-9 and - and can hence be written without URL-escaping (think "foo%20bar"). I'm looking for a...
stackexchange/codereview
What is the difference between Mealy & Moore type of finite state machines?
stackexchange/codereview
I have 2 views which the user can scroll between. I have page control working so I have the 2 dots at the bottom of the page which show the current page. I want to be able to disable this if the user changes a setting. I can't seem to find the code to do this? I guess it would be nice if the 2 dots remained but were gr...
stackexchange/codereview
I am confused reading statements in "Why is 1899-12-30 the zero date in Access / SQL Server instead of 12/31?" Was there date type in SQL Server before 2008 version? I cannot find. In SQL Server 2008 zero date is 0001-01-01. Were there any date type before (in previous SQL Server versions) how is it backward compatibl...
stackexchange/codereview
I am new to swing and am trying to write a simple program that displays the permutations of a user-defined string by having a jtextfield that the user enters the string into, then click the jbutton, then all permutations of the string are displayed in the panel as a list. I set it up and got it working with factorials ...
stackexchange/codereview
I have a series of strings like: 'i would like a blood orange' I also have a list of strings like: ["blood orange", "loan shark"] Operating on the string, I want the following list: ["i", "would", "like", "a", "blood orange"] What is the best way to get the above list? I've been using re throughout my code, but I'm ...
stackexchange/codereview
I have a query on the server side that returns a list of distinct cities from a zipcode table. I'm using WCF RIA Service. The following query successfully returns 228 cities when provincename == "" public IQueryable<CityPM> GetCities(string provinceName) { return this.ObjectContext.ZipCodes.Where(z => ...
stackexchange/codereview
I have a multi threaded application that writes to a settings xml file using a static method. I want to avoid that the file is being updated twice at the same time (causing accesss/write exception). How do I do that? This doesn't work: namespace Program { public class Settings { private static void SetS...
stackexchange/codereview
Short version: The default inspect method for a class displays the object's address.* How can I do this in a custom inspect method of my own? *(To be clear, I want the 8-digit hex number you would normally get from inspect. I don't care about the actual memory address. I'm just calling it a memory address because i...
stackexchange/codereview
I have 2 kinds of users, one for customer and one for affiliate. The thing is i want to show the node(product content type) different on each user. Say I will only want to show limited fields for the customer while in the affiliate i want to show all the fields. Also I need to put a link to switch in different display....
stackexchange/codereview
I have faced aweird problem with the following code, the code below suppose to stop after one iteration, but it just keep going. However, if I remove the last "result_bytes = md5.ComputeHash(orig_bytes);" then it will work. Does anyone face similar problem before? MD5 md5; byte[] orig_bytes; byt...
stackexchange/codereview
How can I get the file creation time in Ruby on Windows? File.ctime is supposed to return change time. dir /tc in cmd.exe returns creation time with bunch of other stuff. Is there a better way than exec'ing it and parsing?
stackexchange/codereview
I have for example a Play/Pause button and would like its size not to change when I change the text from 'play' to 'pause' and back. Due to internationalization I don't know if 'play' or 'pause' will be the longer string.. I imagine I need to set the string to the longest string and then create the button allowing the ...
stackexchange/codereview
There is a common issue to write strongly-typed Html helpers. The problem is how to retrieve property name/value pair. Assume we have following Html helper declaration: public static string DatePickerFor<TModel>(this HtmlHelper<TModel> helper, Expression<Func<TModel, DateTime?>> expression) There are several solution...
stackexchange/codereview
I'm trying to read a file that was created in a Java-based game using ObjectOutputStream in PHP. The data is a serialized object written in a binary format. I've been using fopen and fread to get the binary data, but I have absolutely no idea what to do with it.
stackexchange/codereview
Possible Duplicate: Friend scope in C++ Are friends in C++ mutual?
stackexchange/codereview
I have two entities. Client and Project. A Client has many Projects, but a Project can only be assigned to one Client. This has been designed with the datamodel. Client entity has attribute clientName and relationship to-many projects Project entity has attribute projectName and relationship to-one client I want to...
stackexchange/codereview
This is a follow up to a previous question; I got an answer I didn't really understand, but accepted. So I'll ask it again. I still don't understand how this makes sense: type Parse a b = [a] -> [(b,[a])] build :: Parse a b -> ( b -> c ) -> Parse a c build p f inp = [ (f x, rem) | (x, rem) <- p inp ] Now, obviously, p...
stackexchange/codereview
I'm trying to load a json events feed into the FullCalendar jQuery plugin, however, I don't understand how to pass the data into FullCalendar. The url is called, and the JSON object is available inside the eventHandler function. The code below attempts to pass the resulting data into a global variable (which, doesn't f...
stackexchange/codereview
Is there any way around having to specify every sourcefile I create manually in my automake scripts? I've tried several ways of specifying sourcefiles using find -name *.cc or the like. I've also tried finding the list in autoconf and substituting it into the Makefile.am, but automake protested that this is not allowed...
stackexchange/codereview
this question might have similars in SO but my case is a bit different. and I tried to adapt those answers to my problem but couldn't. so here is the thing: I have this list : [(['c', 'a', 'b'], 10), (['c', 'a', 'b'], 9),(['h','b'],2)] for example. I want to remove the duplicates in this list by keeping tuple that has ...
stackexchange/codereview
I tried to use the ZipKit framework (http://bitbucket.org/kolpanic/zipkit/wiki/UsingZipKit) in the test application for iPad. I followed the "Traditional way" of the installation (as it is described on their page) with no success. Hope somebody can help me with it: 1/ I used hg to get sources 2/ I build the ZipKit pr...
stackexchange/codereview
I'm having a lot of trouble finding information about securing remote functions on Coldfusion CFCs for AJAX calls. Lets say you're retrieving sensitive information for a user after the user logs in to the site via an AJAX call. You call something like this: https://www.mySite.com/pathToCFC/MyCFC.cfc?method=getBankInf...
stackexchange/codereview
Ihave a C function which blockes exe applications from being Executed, and i like to do the same with window form .net2. How? int ExecuteBlocking(const char *appName, const char *cmdLine) { char sz[260]; STARTUPINFO siStartupInfo; PROCESS_INFORMATION piProcessInfo; memset(&siStartupInfo, 0, sizeof(siStartupInfo)); ...
stackexchange/codereview
I have a collection of Obj's, I want to go through the collection, and set a property if a condition is true, so in normal world it would be: foreach (var o in obj) { if (o.SomeProperty == Something) { o.SomeOtherProperty = true; } } Anyway to do this, using Linq, to make it in a single line?
stackexchange/codereview
I have a small script that needs to communicate with me, it is part of my proxy. The script needs to run before the proxy starts, but the system is set to use the proxy, so it does not go through. How would I use urllib, but not the default proxy?
stackexchange/codereview
I have path to a folder for example /myfolder or in Windows: C:\myfolder and I want to get a list of all files in that folder. How shall I do so in C? Is it different in C++ or C99? How can I get a list of its folders? Any help is appreciated.
stackexchange/codereview
I'm rather new to both Java programming and to Android development, so my learning curve is rather steep at the moment. I seem to be stuck on something that I can't find decent examples for how to work past it. I wrote a function that gets all my phone's contacts based on examples and docs I found here & there online. ...
stackexchange/codereview
Can I use an Array of Dictionary objects? I have an XML which I would like to modify. The Data Structure that I am to use is this - Dictionary<element, Dictionary<attr, value>> element - is the Element which I am about to modify attr - the attribute whose value I am going to update value - the value with which I am t...
stackexchange/codereview
I have strange problem when using at() method of std::string. I'd like to calculate md5 hash for given string using this library: http://sourceforge.net/projects/libmd5-rfc/files/ Hash is calculated correctly, but there is a problem with printing it human way. The output is: af04084897ebbf299b04082d105ab724 ffffffaf040...
stackexchange/codereview
im building off the wordpress plaintxt sandbox theme, and what i have i a big background picture, on the body element, which is basically the whole background, it doesnt repeat. what i want is to have another jpg to repeat at the end of this one. from what i realize, i cant put them on the same element. i tried to put ...
stackexchange/codereview
I am trying to set the width and height of a mask behind a modal window. I am using $(document).width() and $(document).height(). Works great in FF and Chrome but IE adds about 25px to each and I end up with scroll bars? What am I supposed to use that is cross browser compatible? I am using IE8 btw, but I want it to w...
stackexchange/codereview
I'm developing a web app and am looking for a way to create my own datagrids. I know that there are lots of fantastic scripts out there with all the bells and whistles, but I need my own specific functionality, css styling, and the ability to use my own ui controls in it. Really, the only thing I need is the ability to...
stackexchange/codereview
We have a flex based UI whose functionality (eg: login, logout) needs to be tested periodically in IE 7. Manual testing takes a lot of time and hence we want to automate it. EDIT: We dont have the source code of this app uder test so cannot use something like FlexUnit. Is there a way to automate this testing? I have he...
stackexchange/codereview
I'm using RR as the mocking framework for a personal project of mine. I've been using it to mock the new method for some classes and when I run the tests they pass fine, but when I run ALL of the tests I run into a problem where it seems like the "new" methods are still returning the fake results, even when in a diffe...
stackexchange/codereview
Is there any way to stream an .swf file instead of making the site wait until the entire swf is loaded? A client i am working for wants a flash-based animation to open the site, but it is a big file. Was wondering if anyone had any suggestions for swf streaming?
stackexchange/codereview
I made a form, which extends from Zend_Form, where I added a ZendX_JQuery_Form_Element_Datepicker as you can see in this picture: But when I view that page in the browser, the datepicker seems to work, but the layout is messed up. See this picture: You can see that the datepicker is too small and the prev/next button...
stackexchange/codereview
I have a slug field that I would like to be auto-populated from a value in a manytomany. It kind of works as it displays in realtime the ID of the selection in the manytomany field. The model of the manytomany field has its own def unicode(self) to return a string value with its name but this doesnt appear in the slug....
stackexchange/codereview
is it possible to have an interactive session through pydev for using matplotlib? The problem is that I cannot get shell access to drive the charts as the interpretor halts after the show() command. I would like to have an interactive session through pydev. Interactive sessions are well described by the matplotlib manu...
stackexchange/codereview
I'm trying to clip a region of an UIView, into a UIImage for later reuse. I've worked out this code from some snippets: CGRect _frameIWant = CGRectMake(100, 100, 100, 100); UIGraphicsBeginImageContext(view.frame.size); [view.layer renderInContext:UIGraphicsGetCurrentContext()]; //STEP A: GET AN IMAGE FOR THE FULL...
stackexchange/codereview
I'm trying to get some simple data into a JsonStore, but it doesn't seem to work. The code is pretty much the same as examples: var itemListStore = new Ext.data.JsonStore({ url: '/items/list', root: 'items', fields: [ {name: 'id', type: 'string'}, {name: 'name', type: 'string'}, ] }); itemListSt...
stackexchange/codereview
Вeing a happy user of git I now have to switch back to svn in one of the projects. I use it through the shell in Ubuntu and look for some command which may be similar to "git add ." - looking for all the files and folders being added, deleted or moved and making appropriate changes in the repository. Does it exist? It ...
stackexchange/codereview
I am trying to write an ANTLR grammar for the PHP serialize() format, and everything seems to work fine, except for strings. The problem is that the format of serialized strings is : s:6:"length"; In terms of regexes, a rule like s:(\d+):".{\1}"; would describe this format if only backreferences were allowed in the "n...
stackexchange/codereview
I use the following code with the intention to create an image that's half white and half black and put it on a button. What's wrong with my code? (latter we want to use a more complicated logic about what pixels are white and what are black but it should still be black and white) int height = 100; int width = 100; qu...
stackexchange/codereview