instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I would like to use an objects property as the key for a dictionary. Can this be done? The ultimate goal for this is to use this so can see if the property is locked or not, in various states that an object can be in. These locked value is not persisted, just exist in the business rules for the model. Ideal code to see...
stackexchange/codereview
How to execute a function when mouse overs a division and all its nesting elements inside? Like <div id="main"> <div id="sub1">Sometext</div> </div> <script> $(function() { $("#main").mouseover(function() { //This function fails to execute if i am over #sub1 }); }); </script> I want to execute the m...
stackexchange/codereview
I have been struggling with the best way of creating, accessing and updating values from a dynamic boolean array for more than a week now. @interface myDelegate : NSObject { NSMutableArray *aShowNote; } @property (nonatomic, copy) NSMutableArray *aShowNote; This is how I have initialised my array: NSMutableArray *a...
stackexchange/codereview
I want to be able to draw a fitted rectangle around text labels (person's full name). The margin isn't terribly important, but I can't just draw fixed-sized rectangles because the labels vary in lengths. How do I do this? Here's the code that draws the text labels: var ctx = document.getElementById('map').getContext('2...
stackexchange/codereview
I've been switching my code over from std::map to std::unordered_map where appropriate. With std::map, I typically write the following just to make sure the key cannot be modified: std::map<const std::string, int> Frankly, I never checked if this const was of any value. This has always compiled and worked with g++. ...
stackexchange/codereview
Hey everyone, I've been thinking about how the majority of web apps works at the moment. If as an example the backend is written in java/php/python what you probably see is that the backend is "echoing / printing" the html ready to the browser, right. For web apps that works using almost exclusively ajax, is there a r...
stackexchange/codereview
I'm developing website in which will be categorized advertisements. In each category will be possible different fields of input (example: for car there will be motor size, for cat there will be a race). So I'm thinking how to build database to manage this (I will use MYSQL database). One way you can see in attached pic...
stackexchange/codereview
I'd like to record the AMF traffic that happens during some of my Flex application unit tests. I am using Maven/flexmojos to compile the unit tests. I've installed Charles proxy and can get it to work from Firefox, but how can I get it to work from the standalone Flash player that flexmojos/FlexUnit invokes to run th...
stackexchange/codereview
I can't believe I've been looking four hours for this simple task, but I have. In Rails 2.3, I could replace one section of a page with this simple code: render :update do |page| page.replace_html "div_id", :partial => "new_content",... end In Rails 3, Ryan Bates has me writing entire new javascript functions, switc...
stackexchange/codereview
I am trying to connect to oracle db without full installation of oracle client done on the machine. I found this helpfull post Using the new ODP.Net to access Oracle from C# with simple deployment but when I try it, I am failed on the next exception: [Oracle.DataAccess.Client.OracleException ORA-12737: Instant Client ...
stackexchange/codereview
IS there any tool that does the following, given a url? strip everything (all text) from the page, except the markup (all the html elements) add a border to all the div, span, table, tr, td etc in the page keep the original size of the div, span etc (even though they are empty now, in terms of the data in them)
stackexchange/codereview
In MySQL, I can create a view which points to a table in another schema. Does Oracle 11g allow this?
stackexchange/codereview
I have a server I wrote using Asynchronous sockets. In the piece that accepts new connections I am getting a problem where some users are saying that some of the times they get this error on the server when the client tries to re-connect to the server: "A connection attempt failed because the connected party did not pr...
stackexchange/codereview
I want to create some description of menu bars (items and connected with them actions-object or handler's-methods) with some abstraction from gui library. In what way I can do it? some draft data structure (without access methods and other stuff): public class MenuInfoHolder { List<Column> menu; public static ...
stackexchange/codereview
I refer to this site link text Using the wrong event name in the [Bindable] tag can cause your application to not bind your property, and you will not even know why. When you use the [Bindable] tag with a custom name, the example below looks like a good idea: public static const EVENT_CHANGED_CONST:Stri...
stackexchange/codereview
I want to use UITabBar but without images. I want the text to occupy full control space. i tried setting image to nil, but text is small and aligned to bottom of tabbaritem.
stackexchange/codereview
Can I give the same name for different Models in different apps? and What conflicts can happen? After I have a try.. I got this Error: Error: One or more models did not validate: playlist.playlist: Accessor for field 'user' clashes with related field 'User.playlist_set'. Add a related_name argument to the definition fo...
stackexchange/codereview
My whole websites makes use of the ASP.NET(2.0) repeater control and I have been getting some complains from people that they cant view my site as the controls are overlapping. This sounds like a browser issue to me as I never see it in IE8 or IE7 or Chrome or Firefox. Any idea why this is happening? What should I do t...
stackexchange/codereview
I need your help....I'm working on a little Time Management Sytem for my compagny. I have several tables, including this two tables : Pointage Id_check | id_user | week | time | ……. Users Id_user | first_name | last_name | ……… I would like find a means to construct a report which give me all people who didn't check 5 d...
stackexchange/codereview
I am about to start working on a new system which will need to support multiple users and potentially allow the database to be accessed over the Internet. The system will be win32, not web based, the database will just be in an office and accessible anywhere. I am not sure if this is a dangerous approach security wise...
stackexchange/codereview
I got page where HTML elements <form> and <iframe> are dynamically created with Javascript: document.write('<iframe id="myIframe" name="myIframe" src="about:blank" style="display:none;"></iframe>'); document.write('<form id="myForm" name="myForm" method="post" target="myIframe" action="myURL.php" style="display:none;">...
stackexchange/codereview
I'm trying to get mouseover to work polygons in google maps api v3. I've tried the answer provided in this post: google maps v3 API mouseover with polygons? This answer should be working, but it's not for me. Can anyone spot the stick in my spokes? Here is my code: <!DOCTYPE html> <html> <head> <meta http-equiv="con...
stackexchange/codereview
been banging my head against this one for a while. For a CSS redesign of a site I need a parent div to have a background-image followed by a p child with a transparent background, but foreground text needs to remain at 100% opacity. I tried making a 1px image of a semitransparent (40%) white, but it won't show up when ...
stackexchange/codereview
I am trying to read a few text files ( around 300 kb each ). Until now I've been using the Filestream to open the file and read it. ( TAB DELIMITED ). However, I heard about the memory mapped file in .net 4.0. Would it make my reads any faster ? Is there any sample code that does the read of a simple file and compa...
stackexchange/codereview
I'm looking at options for optimizing the number of concurrent connections my socket servers can handle and had an idea that hinges on being able to serialize C# sockets so that they can be removed from memory and then restored as needed. This scenario is only acceptable for me because sessions last for hours and the ...
stackexchange/codereview
I'm trying to troubleshoot and solve this problem: the server I'm working on (php 5.2.9 on Linux), has the correct local time (America/Buenos_Aires): user@server [/home/site/public_html]$ date Mon Nov 1 17:11:14 ART 2010 php.ini is set with date.timezone = "America/Buenos_Aires" I also tried to set the timezone dire...
stackexchange/codereview
I am using jQuery UI 1.8.5 tabs plugin, with collapsible : true configuration. I need to call a function after a tab is collapsed to add a css class. Does anyone know how?
stackexchange/codereview
I need to set up IP filtering in a SharePoint document library based on a group that a user is a member of. More specifically, we have groups set up for each of our customers. Each group should have an allowed IP address attached to it. When a user accesses this document library, we then need to ensure that the user is...
stackexchange/codereview
I have a C program which I can run my rooted Android phone. However, in order to work correctly, the program must be run as superuser. I now wish to call a method from this program using the Android NDK interface. What must I do to have the native code run as superuser?
stackexchange/codereview
I am developing a Finite Element System. As usual, the simulation consists of set of mesh nodes, each with a set of properties (floating-points), like for example several material properties, coordinates or physical quantities that evolve within time. You can either employ two extreme approaches: Property-wise: Mainta...
stackexchange/codereview
I'm jut trying to import a spreadsheet into a table in Access 2000. The spreadsheet is called cc-ledgcodebalances.xls with no field names. My code is DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel3, "tmptmp", VFileName, 0 This seemed to work once but since then I now get this; The Microsoft Jet database e...
stackexchange/codereview
Any one help to change the position of UIAlertView
stackexchange/codereview
I am getting a strange error when I try to build my solution. The error occurs when I am calling the oGetHeaderValue function and passing the parameters. Dim oGetHeaderValue As New clsGetHeaderValue Dim returnString As String returnString = oGetHeaderValue(strInvoiceNumber, strOrderNumber) The error message is: Cla...
stackexchange/codereview
Adobe's docs describe how to apply an outline to the pie chart by using the mx:stroke element within a PieSeries, however this only changes the border of the entire chart. How do I add a border around each of the wedges in the chart?
stackexchange/codereview
I'm working my way through the O'Reilly jQuery Cookbook. On p. 100 there is an example where I don't get one detail. I'm in my first week of looking at jQuery, so that's no surprise, but I'm hoping someone can clarify. The function is a toggle with a few bells & whistles: onValue and offValue are both Booleans, and mu...
stackexchange/codereview
the title could be somewhat misleading so let me explain what I'm trying to achieve. I'm writing a programming language that has a plethora of operators which can work on multiple types with different behaviour. The implementation is evolving and operators are changing/adapting to what I find more useful while trying i...
stackexchange/codereview
I have application, which downloads data from internet and is supposed to write it to DB using content provider. private void addCurrency(Currency _currency){ ContentResolver cr=getContentResolver(); ContentValues values = new ContentValues(); values.put(CurrencyProvider.KEY_DATE, _currency.getDate()....
stackexchange/codereview
I wanted to use read and write mdb file (Ms Access file) and I am completely new in using ODBC in Qt. So can anyone help me to know whether should i need to download the drivers and if yes then from where can i download ? and if you know about connectivity then any help would be appriciated.
stackexchange/codereview
I've been tasked with creating software that needs to work on Macs and PCs. The software needs to talk to some USB hardware that does bits and bobs. To prevent having to maintain two pieces of software, I thought about the possibility of writing a Java applet, I'm pretty new to Java but am OK at C# and C, and did do a ...
stackexchange/codereview
Hi Friends i was using the following jquery,but it is not gaving an output what is the error in the code? $('.event').hover(function() { $('.popupbox1').show(); $('.popupbox1').css({position:'absolute',top: $(this).offset().top - 15 +'px',left: $(this).offset().left + $(this).width() +25 +'px',zIndex:1000}); ,funct...
stackexchange/codereview
I am going to look into XNA But i dont know where to start. What book will you recomand? is there a site with tutorials of some kind?
stackexchange/codereview
At 1 minute into the "See it in action" video, Paul stops the program from running. What button did he push to do so?
stackexchange/codereview
I am using the output streams from the io module and writing to files. I want to be able to detect when I have written 1G of data to a file and then start writing to a second file. I can't seem to figure out how to determine how much data I have written to the file. Is there something easy built in to io? Or might I ha...
stackexchange/codereview
I'm looking for a wiki system, that can easily be incorporated into an existing CakePHP application. I would have done it seperately from the CakePHP application, but the buyer requests that the user authorisation is done from the same tables.
stackexchange/codereview
I found different implementations of the observer pattern in Delphi, like: Sourcemaking Design Patterns and Delphi Hobbyist. In general, what is the best way to implement an observer in Delphi? I would say using interfaces because the code is more readable.
stackexchange/codereview
HI I am a B.E(CS) fresher.I am searching for a job in IT.There are openings for few C++ developers than java developers.Once i get 1-2 years of experience as C++ developer,can i switch to a java application developer(for survival).
stackexchange/codereview
I have a project containing a xaml ResourceDictionary that I wish to use outside of a FrameworkElement. The resource dictionary will contain a DataTemplate for a class local to the project to avoid polluting the app.xaml (as the project is a prism module, and will not always be present depending on config). So, I have ...
stackexchange/codereview
Does anyone know how to do this? I've tried with JEditorPane but it does not work? Any other idea? Thanks in advance. This is the code I'm using: import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; import javax.swing.JEditorPane...
stackexchange/codereview
The code below is me trying to instantiate a 2d array, and it instantiating incorrectly: THE CODE: FILE* kernalFile = fopen(argv[1], "r"); int rKernalSize; fscanf(kernalFile, "%d", &rKernalSize); unsigned int rKernal[rKernalSize][rKernalSize]; Data froma break point right after that code is ran: rKern...
stackexchange/codereview
I want to rewrite the html and xml files and directories to the pagename query string using .htaccess file. like this : mysubsite/category_1/category_2/ mysubsite/category_1/category_2/file1.html mysubsite/category_1/category_2/file2.152.html index.php?pagename=category_1/category_2/ index.php?pagename=category_1/categ...
stackexchange/codereview
I am a new to this technology. Can anyone instruct me how to integrate a WCF with windows mobile 6 using .net framework 3.5? i need work example with step by step please dont provide me any link.
stackexchange/codereview
I'm trying to write an object as JSON to my Asp.Net MVC View using Razor, like so: <script type="text/javascript"> var potentialAttendees = @Json.Encode(Model.PotentialAttendees); </script> The problem is that in the output the JSON is encoded, and my browser doesn't like it. For example: <script type="text/javascri...
stackexchange/codereview
MediaElement or MediaPlayer is sure a great way to play music within a .net application. One thing I could not find out how to do is how to set the playback device. Is there a way to do it or does it always default to the standard audio device (since it comes from the web application). Thanks in advance Mario
stackexchange/codereview
I'm new to fluent nhibernate and generally nhibernate. I searched a lot on the net but I couldn't find a good help. I'm using fluent nhibernate and I mapped it with SQLServer 2008. If there is a good help or book or sth else please tell me! First of all I want to know how I can write native sql queries in my program? f...
stackexchange/codereview
Lets say; I am developing a Web Application which talks to a RESTful web service for certain things. The RESTful web service isn't third party, but is being developed parallely with main application (A good example would be, E commerce application and payment processor; or Social network and SSO system). In such a sys...
stackexchange/codereview
Using the 'AddressBook.framework' is it possible to filter out all companies (i.e. just people). For example, how would one modify the following code to remove companies: ABAddressBookRef addressbook = ABAddressBookCreate(); CFArrayRef contacts = ABAddressBookCopyArrayOfAllPeople(addressbook); I found that companies d...
stackexchange/codereview
new to Obj C and programming in general - learned a lot from this site and really appreciate everyone's contributions. My scenario is as follows (programming an iPhone game which explains the funny names) In my main gameLoop (which is in my view controller) if a certain condition is met I create an enemy - the cherry b...
stackexchange/codereview
If I have a variable, X, of type SqlDecimal, that was instantiated without providing a decimal value parameter to the constructor, then the .IsNull property is True: Dim X As New SqlDecimal '.Value = Null If I have a Stored Procedure that acepts a single parameter, @SqlDecimalParameter, of type Decimal, the value of t...
stackexchange/codereview
I run a mysql query and get the results successfully. However, I cannot read the elements of the array from javascript side. Can anyone help?? //JAVASCRIPT makes a request function profiles(){ $.post('dbConn.php', { opType:"getProfileList" }, fillProfileCombo, "text"); } function fillProfileCombo(res) { ...
stackexchange/codereview
I have this class/function function Menu() { this.closetimer = 0; this.dropdown = 0; } Menu.prototype.menuTimer = function() { this.closetimer = setTimeout(function() { this.menuClose(); }, this.timeout); } Menu.prototype.menuClose = function() { if(this.dropdown) this.dropdown.css('visibility','hidde...
stackexchange/codereview
I'm using a ListView with an ArrayAdapter, and code executing after ListView.setAdapter(ArrayAdapter,...) is seeing ListView.getChildCount()==0. Is there a way t wait for the UI thread to finish filling the ListView before continuing? Thanks in advance, Lenny
stackexchange/codereview
will I need to load java script objects into QwebKit when my application is loading I can use setHtml with the html and the java script string formatted but its very hard to Maintain. My question is can I embed the html and java script as resource into Qwebkit ? Also I don’t what that the html and the javascript be ava...
stackexchange/codereview
My problem is simple but I could not find any GORM syntax for this. Consider the following class: class Article { String text static hasMany = [tags: String] static constraints= { tags(unique: true) //NOT WORKING } } I want to have one unique tag name per article defined in my constraints but I cannot m...
stackexchange/codereview
I have a Objective-C class that makes an HTTP request and, after receiving a response, calls methods on its delegate. The class provides some convenience methods around the built-in NSURLRequest for my application. My question is: how do I ensure that I release this object? Normally, an object's owner is responsible f...
stackexchange/codereview
The aim of the module described below is to implement a module which once initiated by an integer n does all the operations based on the value of n. module ReturnSetZero = functor ( Elt : int ) -> struct let rec sublist b e l = match l with [] -> failwith "sublist" | h :...
stackexchange/codereview
How to get values from App.Config. Code: <configuration> <appSettings> <add key="ShowRoomCode" value="1000"/> <add key="FolderPath" value="D:\\Images\\Book\\"/> </appSettings> </configuration> string imageFolderPath = ConfigurationManager.AppSettings["FolderPath"]; But it returns null value. Config file ...
stackexchange/codereview
i am using php_excel to export to xlsx. In my application im making use of template. When i download, the xlsx file gets downloaded fine, but when we open its showing the following warning: "Excel found unreadable content in 'project_report(3).xlsx'. Do you want to recover the contente of this workbook? If you trust th...
stackexchange/codereview
I'm experiencing some performance problem on a Oracle DB hosted by a virtual server. Is there any tool for benchmark of Oracle DB or for gathering information about performance? Thanks, Andrea
stackexchange/codereview
I want to initial all states such as c4.currentState='down' so that I could call dictionary key to execute the function, is it possible? private var keyMap:Dictionary = new Dictionary(); private var c4v1:Object = new Object(); private var c4v0:Object = new Object(); private function initial_keyEvent():void { keyM...
stackexchange/codereview
I know this can be done in Ada but I'm new to Java and don't know if I can do this. I would like to make a radian of float subtype from 0 to 2pi. Values outside the range would be considered out of range and through a constraint error. Any help is appreciated!
stackexchange/codereview
Can you please help me solving this one? You have an unordered array X of n integers. Find the array M containing n elements where Mi is the product of all integers in X except for Xi. You may not use division. You can use extra memory. (Hint: There are solutions faster than O(n^2).) The basic ones - O(n^2) and one us...
stackexchange/codereview
Does anyone know how to run the emulator within eclipse without using ADT. All I want to do is run the emulator with -partition-size option of the emulator and you cant do this by default. Im sure there might be a tricky way of doing this but googling doesn't give me any clues. does any one know ? I also thought about...
stackexchange/codereview
I'm using ASP.NET MVC, SQL Server 2008 and Forms Authentication. Suppose I am building a question-answer site like SO. Here is the issue I am running into: Users can view almost all the questions when not logged in, like they can on SO. Question-fetching query etc is almost written. Now, if a user is logged in, he s...
stackexchange/codereview
Well, the title is self-explanatory. I wondered this while compiling a project which has a lot of lines commented. It's a bit silly because the jar file wouldn't increase much (some bytes) but I'm curious if this could affect a program with a lot of code and comments. Thanks
stackexchange/codereview
I have a ui draggable that connects to a sortable list with helper clone. $(".mydrag").draggable({ helper:'clone', handle: '.drag', connectToSortable:'.new', start: function(event, ui) { console.log(ui); var id = ui.helper[0].id; ...
stackexchange/codereview
I would like to have team explorer use BeyondCompare or SourceGear's diffmerge in order to do my conflict resolution in team explorer. I know its possible, but where is the setting for that and what is the syntax for it?
stackexchange/codereview
I know that this has been discussed several times in many other topics, blogs, book, youtube, etc. But, let me explain my case. I want so that when an application opens up, it shows a facebook connect button to login. After the user login, then it will bring up the tabBarView. In my app delegate I first add the MainVie...
stackexchange/codereview
I have a problem I seem to stumble over all the time, I have a Drop Down box and you can select a number which creates x number of textboxes with images buttons its for a survey it the image buttons are used to create "Sub-Answers" so they can have answers to answers so my question is I need to when they hit the image ...
stackexchange/codereview
Is there any way of disabling the hardware keys on Windows Phone 7 programmatically using Silverlight? Thanks, Phil
stackexchange/codereview
I've got a ListView object, with a GridView within it, where I'll be putting data. The list view is in SingleMode. I want it so that the user can select a row, and based upon criteria in that row, it would then bring up a popup display relevant data to the selected row. There are 2 possible ways I envision this could...
stackexchange/codereview
I have a simple powershell script on windows 7 that doesn't work properly. (this is not an issue on XP) get-psdrive When I run it directly, I get Name Used (GB) Free (GB) Provider Root ---- --------- --------- -------- ---- A FileSystem A...
stackexchange/codereview
package ooptutorial; public class ShoppingTest { //name of file must be same as name of method public static void main(String[] args) { Shopping firstClient = new Shopping(); int[] pricelist = {299,399,499}; for (int i = 0; i < pricelist.length; i++){ firstClient.Basket(pri...
stackexchange/codereview
Is there a way to sandbox a linux process into a certain directory, and give this process exclusive rw access to this dir? For example, create a temporary working directory, and start e.g. python or another scripting tool in such a way that it can only write in this directory, without limiting too much of its functiona...
stackexchange/codereview
How do I change the engine to MyISAM when using a SOURCE import in mysql? It currently defaults to InnoDB. would there be any difference between the speed of the import between the engines for say a 5gb .sql file?
stackexchange/codereview
var MyObject = { init: function () { this.items = $('#menu a'); for (var i = 0; i < this.items.length; i++) { $(this.items[i]).bind('click', this.doSomething); } }, doSomething: function (index) { alert(this.items[index].innerHTML); // alerts: One, Two, ...
stackexchange/codereview
For some reason, when I translate my object around the window, it disappears. Here is an image to show what I am talking about. Can you see why this would be happening? Thanks. http://img215.imageshack.us/img215/160/disappearingbunny.png
stackexchange/codereview
Here is my problem: First of all I'm working with hadoop and a single node configuration I'm developing an application and I made just one map function, in this map function I call like 10 functions, the application reads from a csv file and process a certain column, I already made the jar file and everything so when I...
stackexchange/codereview
I have android source code in my system and it works fine. But when i make some changes in android source files and run "make" it doesn't generate/update any files Please correct me if i am wrong, i) system should generate a new system.img file if changes have been made to its source code ii) android kernel file-zIma...
stackexchange/codereview
I would like to track a ONE finger rotary gesture how do I intercept that gesture? To give you a visual example: the same gesture that you would have used with an old disc phone.
stackexchange/codereview
So I want to put the files up on my local server, for reference purposes and aside from my regular DVCS because this will turn into training material later. But I want to be able to pretty format the SQL file. (Would be nice if it extended to C# code as well.) I'm not sure what libraries do this already, and I'm willin...
stackexchange/codereview
Is there any way to add my project documentation, generated with ASDoc, to the Flex Builder dynamic help? Or not necessarily to the dynamic help, but somewhere so that Flex Builder searches it when I press F1. I'm using Flex Builder 3 with SDK 3.2.0. Thanks.
stackexchange/codereview
I want to check whether checkbox is checked or not using jquery. I want to check it on checkbox's onclick event. <input type="checkbox" onclick="javascript:check_action();" id="Public(Web)" checked="checked" value="anyone" name="data[anyone]"> Is it possible? How? Thanks.
stackexchange/codereview
hi im getting a weird error on few machines in my nsis installer while installing. Its is giving "Invalid win32 file handle" while installing fonts using fontreg.nsh i've tried google but didnt got an answer to this issue. now im thinking to suppress this message, so is there any way to suppress the message or if possi...
stackexchange/codereview
I have a Liferay portal that was configured to use filesystem persitence for jackrabbit. It seems like this persistence mode creates a lot of files on the filesystem (so far something like 113'000) and I'm slowly reaching the file count quota of the server. I would like then to switch to database persistence. I know h...
stackexchange/codereview
I am able to read the ibus keys configuration to know the keys that trigger an engine ON/OFF (accessible via the property "general/hotkey" and "trigger"). that is all good but that returns lists of strings (gchar*) which combination switches ON/OFF the IME (ex: ["SHIFT+CTRL+F9", "SHIFT+UNDERSCORE",...]). How can I get ...
stackexchange/codereview
I have the following code which centers the popup when we scroll , it quickly re-positions itselef to center. How to get the smoothing effect as if it is dropping very smooth. $(window).scroll(function () { var top = ($(window).height() - $('.myPopUp').height()) / 2 + $(window).scrollTop(); $('.myPopU...
stackexchange/codereview
Before I probably reinvent the wheel, can anyone tell me if there exists a FOSS code library to check email on a regular basis (or driven by a cron job), to parse the title and body and to perform certain functions (mainly sending other emails). I was thinking PHP as it is server side and good at string handling, but I...
stackexchange/codereview
I'm trying to use GZipStream to write some application traces (they tend to grow to huge sizes in production). So in this case i need the ability to open an existing file and append to it using GZipStream. All things seem to work well until we try to decompress the file. It seems that on decompression GZipStream reads ...
stackexchange/codereview
I want to save MemoruStream, and I use folowing: ... response.BinaryWrite(myStream.ToArray()); response.End(); User gets saving dialog and he can chose to save file or to cancel saving. But, problem is that can't continue to run code if user chooses to cancel download or, if he chooses to save file. I want to call ano...
stackexchange/codereview
Does anyone know if doing this foreach ($user->getFriends() as $friend) { // Do something. } Causes PHP to call the function getFriends() on the user object multiple times and thus would this be more efficient? $friends = $user->getFriends(); foreach ($friends as $f) { // Do something. }
stackexchange/codereview