instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am using wsHttpBidning with certificate authentication in my project. i understand the certificate is used to encrypt the date sent over the network and authentication as well. how is it different from using HTTPS URL over SS. even here also we us certificate and only difference is it uses secured port for data commu...
stackexchange/codereview
I have a Django project using https for certain part of the url (/account/, /admin/, /purchase/). When on one of this page in https mode, all the relative inner links {% url foo %} will point to https://my_url. However I do not want to have those pages shown as https :home, contacts ... What are the solutions for thi...
stackexchange/codereview
I am trying to update status on twitter using twitter4j. Everything works fine on localhost, but when I try to do it on server I get authorization error: 401:Authentication credentials were missing or incorrect. {"error":"Invalid \/ used nonce","request":"\/1\/statuses\/update.json"} TwitterException{exceptionCode...
stackexchange/codereview
Is it possible to update a large ObservableCollection (i.e. add items) without hanging to U.I.? I'm wondering if it's the fact that I have a relatively large loop (500 iterations) where each iteration is adding an item to the collection. OR, whether it is the fact that the collection is being refreshed and notifying th...
stackexchange/codereview
Perhaps I'm having a complete breakdown here, but shouldn't JOIN ON and JOIN USING produce the same results, given the same fields? e.g. SELECT * FROM racks r join rack_positions p on (r.rack_id=p.rack_id);//46 rows SELECT * FROM racks r join rack_positions p using (rack_id);//zero rows So why don't the above queries ...
stackexchange/codereview
Given the following Xml: <Animals xmlns="http://www.company.com/Global/US"> <Mammals> <Animal> <Type> <Name>Cat</Name> <Breed>Ally Cat</Breed> </Type> <Color> <R>0</R> <G>0</G> <B>0</B> ...
stackexchange/codereview
I have noticed that DatagridviewtextBoxColumn is not casting to Decimal. I have demonstrate it by two ways which are as follows. DataTable :- DataTable dt = new DataTable(); dt.Columns.Add("carats"); dt.Columns.Add("rate"); dt.Columns.Add("amount"); dataGridView1.DataSource = dt; It works fine with Following castin...
stackexchange/codereview
I am using the latest release of entity framework 4 - CTP 4 for my project in ASP.NET 4. This version (EF4-CTP 4) gives an option to build the Object Context (or DBContext) using code first approach. This approach has its own drawback that its time consuming so I build it up once at the application start. However I rea...
stackexchange/codereview
The BlackBerry API documentation for the Timer class says: This class does not offer real-time guarantees: it schedules tasks using the Object.wait(long) method. What does this mean?
stackexchange/codereview
I have a bunch of different .rb command line script files that perform various tasks, but they all use the same database. I'm coding the 2nd .rb file, and the 1st one has all references to ActiveRecord, db connections, and classes that represent my models etc. Is it possible to move all this to another file, and then j...
stackexchange/codereview
I have a piece of C++ classes and I have the raw pointer to the objects. The pointer to the object would get passed down to the function. The problem is the underlying function might need to store the pointer at times in an STL container in which pointer to the object would be used later on. If I am not using shared_pt...
stackexchange/codereview
I've enabled the UI Designer plugin in IntelliJ 9 (ultimate edition). I've found some old flash tutorial that doesn't really show too much and is based on IntelliJ 6(!). Is there any documentation or tutorials available that might go through a swing app using the UI Designer that is a little more recent and/or compli...
stackexchange/codereview
I have three tables that essentially cascade down, like: topic section (references topic id) subsection (references topic id and section id) Whats the best method of writing mysql statements to create the initial topic/section/subsection so I can grab the id's (auto_incremented) of the newly created rows and use them...
stackexchange/codereview
Assuming I have: class A which is non-copyable class B which has as a member, const A& a (and takes an A in its constructer and sets it in its initialization list) a function A GenerateA(); Does this mean that it should be valid to do: B(GenerateA()) ? i.e, does the const ref mean that no copy of the A that generateA...
stackexchange/codereview
I'm new to Android application development. I would like to ask the use of image button in Android programming when simple button can also add the image with the button. How can we generate click event of image button?
stackexchange/codereview
I'm signing xml document with x509Certificate in .net. If I verify signature in .net with signedXml.CheckSignature function the signature is ok. If I try to check the same signature in java i always get java.lang.RuntimeException: Wrong Signature: Wrong Signature. Anyone has experience with that? public static bool ver...
stackexchange/codereview
In my code I am auto releasing certain references. Most of the time I have seen that auto release is run under NSThreadPool. So is it required to run this under NSThreadPool? If so what will be the difference between pool release and pool drain. Thank you
stackexchange/codereview
I have a Rails model that uses Paperclip and has many thumb sizes. I would like to add a new thumb size and generate ONLY that size if possible - it it completely unnecessary to regenerate all of the old thumbs again. Something like Photo.find(123).photo.reprocess!(:new_size) would be perfect but unfortunately doesn't ...
stackexchange/codereview
If I have two applications running simultaneously , App1.exe and App2.exe , I want to bring App2.exe when a button in App1.exe is pressed.
stackexchange/codereview
How to sort a List<Number>? Example: List<Number> li = new ArrayList<Number>(); //list of numbers li.add(new Integer(20)); li.add(new Double(12.2)); li.add(new Float(1.2));
stackexchange/codereview
Using predict() one can obtain the predicted value of the dependent variable (y) for a certain value of the independent variable (x) for a given model. Is there any function that predicts x for a given y? For example: kalythos <- data.frame(x = c(20,35,45,55,70), n = rep(50,5), y = c(6,17,26,37,44)) kalythos$Ymat ...
stackexchange/codereview
I am getting a date/time string from web in the format of "yyyy/mm/dd'T'HH:MM:SS'Z'" and it is in UTC. Now I have to identify the current time zone of device and then convert this time to my local time.. How do I do it? (FYI, Currently, UTC time is 10:25 AM, in India current time is 3:55 PM)
stackexchange/codereview
The folder structure looks like this: Application -- Layouts ---- layout.phtml (the 'template' file which loads all the .phtml files into, like insert.phtml form the pages folder, and loads init.js) -- Modules ---- Admin ------ Views -------- Scripts ---------- Pages ------------ insert.phtml (the actual file where I w...
stackexchange/codereview
I have a very simple program here, but it seems to be returning a "true" value to the query S_ISDIR() even when the directory entry is not a directory. Can any one pleeas help me. I am using QNX Neurtion RTOS #include <stdio.h> #include <dirent.h> #include <sys/stat.h> #include <errno.h> int main(int argc, char *argv[...
stackexchange/codereview
I am using PHP's Date functions in my project and want to check weather a given date-time lies between the given range of date-time.i.e for example if the current date-time is 2010-11-16 12:25:00 PM and want to check if the time is between 2010-11-16 09:00:00 AM to 06:00:00 PM. In the above case its true and if the tim...
stackexchange/codereview
How to define stats username and password in sqlite3? I am using the sqlite3 database and openinviter tool. While installing the tool, I encounter the following error. SQLite is installed. Stats enabled. Please define a stats username and password in config.php Checking username and private key... OK Checking PHP...
stackexchange/codereview
Currently, I think my best option is to use std::set_intersection, and then check if the size of the smaller input is the same as the number of elements filled by set_intersection. Is there a better solution?
stackexchange/codereview
I have this code in my MainWindow.xaml.cs Page2 myPage = new Page2(); myPage.ShowData(); Basically, it should implement the function from another class since the function is declared as public and should be accessed by another class, but when I try to execute it it doesn't do anything. It hits the breakpoint but the fu...
stackexchange/codereview
I need to use coredata in my View based Application. I created core data file. But I can't access to core data through my Viewbased application without using UITableview. I used just UITextField and buttons only. I want to need insert records, deletion, updation and search all operations in my application. Does anyone ...
stackexchange/codereview
I'm looking for a way to get versioning informations out of my SSRS reports. I have several environments and would like to be able to compare which report version is deployed on these environments. In SSIS this is very easy because each SSIS package gets a new version when it was modified and safed. Is there something ...
stackexchange/codereview
Can anyone tell me why this doesn't work? <?php $lang = $_get["lang"]; if (($lang == "fr")) { session_destroy(); session_start(); $_SESSION['lang'] == "fr"; } if (($lang == "en")) { session_destroy(); session_start(); $_SESSION['lang'] == "en"; } if (isset($_SESSION['lang'])) { $...
stackexchange/codereview
HEllo, What is the meaning of {$var} in PHP? Example: $query = "UPDATE table SET field = '{$var}'"; Thx.
stackexchange/codereview
Hi I experience a strange phenomena. I have a Java application that queries DB by means of Hibernate ORM. In HP-UX sgx842 B.11.11 U 9000/800 888281448 unlimited-user license after I start the server and make a few queries of a few thousand records the heap size settles at 800MB. In Linux sglx481.amk.st.com 2.6.9-34.E...
stackexchange/codereview
I want to call onblur function in FCKeditors. Here is the my code. <?php $oFCKeditor = new FCKeditor('conf_emailtext['.$this->escape($data->conf_id).']') ; $oFCKeditor->BasePath = $this->baseUrl().'/FCKeditor/' ; $oFCKeditor->Value = $this->arrMailList[$i]['conf_emailtext']; $oFCKeditor->Height ='400px'; ...
stackexchange/codereview
Is there an API to get a word's category? e.g., word: "joke"; caetgory (retrieved from API) : "Entertainment", word: "united states"; category(retrieved from API): "countries" word:"jay leno"; category"celebrities(retrieved from API)", and so on...
stackexchange/codereview
I have libX which links with libA, and libY which also links with libA. Now I need to use libX and libY in the same project, so they're linked into the same app. For the sake of argument, let's say libA is 5 MB in size and I'm building an iOS app. I've read here that there are no conflicts between the libs in such a si...
stackexchange/codereview
I've installed the following items seqentially: apt-get install apache2 apt-get install mysql-server-5.1 root@wp-companyweb01:/home/administrator# apt-get install wordpress Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libjs-c...
stackexchange/codereview
I've got following class and template function: template <size_t num> class String{ public: char charArray[num]; }; template <size_t num,typename T> void getString(String<num> & string,T number){ cout <<string.charArray<<' '<<number<<'\n'; } then I tried to do an explicit instantiation as following to export that...
stackexchange/codereview
I need help with coding this piece. Basically i want with someone click on my author page. It stored a cookie of that author name and email. I want the cookie to stay in place untill the person close their browser, or however long. not a big deal. I should then be able to use this info in any gravityform on my site. Ba...
stackexchange/codereview
Hi. I have directly copy and pasted this code but I'm getting casting error: cannot cast from view to viewflipper. public class ViewFlipper extends Activity implements OnClickListener { Button next; Button previous; ViewFlipper vf; /** Called when the activity is first created. */ @Override p...
stackexchange/codereview
I usualy found the following code: <a href="#" onclick="func();return false">click</a> but sometime my browser go to the top of the page? Why href="#" is High Priority than onclick?
stackexchange/codereview
I have an asp.net GridView that I use the tablesorter on: $(document).ready(function() { $("[id$='_myGridView']").tablesorter({ sortList: [[0, 0]] }); }); How can I apply zebra striping that re-stripes when re-sorting? Edit: As @Chetan Sastry pointed out, it's as simple as: $(document).ready(function() { ...
stackexchange/codereview
This is one of those weird ones that feels like I must be seeing things, but here is some code I am debugging: private byte[] myCode = null; ... public bool Tampered { get { return Bytes == null; } set { if (value) { ...
stackexchange/codereview
Imagine I have a vertex array and an index array. Suppose it is possible to rearrange the elements in the index array so that a single call glDrawElements with GL_TRIANGLE_STRIP draws the desired figure. Another possibility would be to call glDrawElements with GL_TRIANGLES but this would make the index array longer. Do...
stackexchange/codereview
After screwing up entirely my PHP configuration on MAC trying to get the SOAP module working (-bash: /usr/bin/php: No such file or directory ....) I now have to use MAMP but each time I have to type the path Applications/MAMP/bin/php5.3/bin/php to do command line. How to just type php instead the entire path on MAC ?...
stackexchange/codereview
I am designing universal shift arithmetic operator. Is there a better way to achieve it besides using the 32bit multiplexer (decoder) in a way presented bellow? ENTITY isra IS PORT ( clk: in std_logic; rst: in std_logic; di: in std_logic_vector (31 downto 0); sel: in std_logic_vector (31 downto 0...
stackexchange/codereview
A free command line utility X can be download from the web. I have built a utility Y which relies on X. The license of X does not allow me to bundle it with Y. Am I allowed to do any of the following? In my README tell the user "go to X site and download it". In my installation get user approval to automatically downl...
stackexchange/codereview
Is there any alternative to SELECT DISTINCT item FROM DB I have already tried: SELECT item FROM DB group by item the table isn't so large (30,000 rows) but this command takes almost 6 seconds to complete. On the other hand, other queries perform very fast (0.2 seconds). What might be going on? Suggestions? By the ...
stackexchange/codereview
I have a custom DropDownList control, SDropDownList. I am trying to register and fire the 'SelectedIndexChanged' event. I obviously started by adding the OnSelectedIndexChanged="method" attribute to the markup but it would not fire the event. I also tried registering it programmatically in the OnBound event of the Repe...
stackexchange/codereview
I want to export my database tables to an Excel 2007 spreadsheet using servlets. Can anybody help me on this? I use Postgres SQL as back end.
stackexchange/codereview
I have a very simple query written in coldfusion 9. I have a datetime field that I am selecting, for some odd reason the query returns it as binary instead of as a date. Is there a work around for this that does not require me to cast the date as a char.
stackexchange/codereview
i want to send sms using c# coding
stackexchange/codereview
iam not able to run selenium rc with chrome.it runs fine in firefox.Any one sucessful in running in chrome browser?
stackexchange/codereview
I've got a pretty good understanding of python's try-except clause, but I'm encountering problems when trying to put it inside of a function. >>> def tryAppend(child, parent): ... try: ... parent.append(child) ... except NameError: ... print "WRONG NAME" >>> var1 = [] >>> var2 = 'test2' ...
stackexchange/codereview
I'm referring to this guide on C# SMTP mail. Here is my code: MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com"); mail.From = new MailAddress("dave.stockinger@gmail.com"); mail.To.Add("dave.stockinger@gmail.com"); mail.Subject = "Test Mail"; mail.Body = "This is for testing S...
stackexchange/codereview
I am a newbie in Developer2000. I have an Oracle pl/sql procedure (say, proc_submit_request) that fetches thousands of requests and submits them to dbms_job scheduler. The calling of dbms_job is coded inside a loop for each request fetched. Currently, i have a button (say, SUBMIT button) in oracle forms screen clicki...
stackexchange/codereview
I have been designing websites for a while now, but there is one thing that I have never been quite sure of when using PHP and HTML. Is it better to have the whole document in PHP and echo HTML like so: <?php doSomething(); echo "<div id=\"some_div\">Content</div>"; ?> Or have a HTML file like so and just add in t...
stackexchange/codereview
I have a site in drupal, at times its really slow have to reboot the server. I see mysql is consuming too much resources. I have a core table for drupal devel_times: it contains over 846,000,000 rows and the table itself is about 30 Gb, is that not causing the problem, because I see each time it logs entries, can I e...
stackexchange/codereview
Is it possible to develop an excel add-in using VSTO that can be deployed to both excel 2007 and 2010? Any links to a detailed resource on this topic would also be appreciated - I can't seem to find anything on google that specifically addresses this question. I am developing a C# excel add-in using Visual Studio 2010....
stackexchange/codereview
I'm looking or a tool that can tell me about my objects. I'd like to see which objects are instantiated, ready for GC, etc. I realize I could test for each object but I'd prefer an overall view of my application. This would be used for troubleshooting. Any suggestions?
stackexchange/codereview
I have a basic select * from displaying my table on my page. I want the option to show just the columns someone may choose from the page. Is this possible? Its a basic table with 16 columns. Not everytime is someone going to want every column shown. Say they only want the columns a-e shown. Whats the best way to h...
stackexchange/codereview
I have a listview with paging. Every paging has 10 rows with with a username, an email and a checkbox. I need to be able to check a couple of checkboxes, in different "pagings", press a button and send an email every to ever user that has been checked. Trouble is I don't really know how to remember the selected checkbo...
stackexchange/codereview
I have a class named fdetails and I do not want any other class to inherit from this class. Can I set it to not being inherited by another class. I would like to get this done in the following 3 languages: Java VB.NET 3.5 C# 3.5
stackexchange/codereview
I have a sharepoint webpart where I have links to go to different web sites to which login is required. Therefore, I think i need to log the users on before redirect them into deep pages in that site, therefore I think i need to set up a cookie to that web site when the web part is loaded (by using the user credentials...
stackexchange/codereview
there are some people? i have some question about wxpython , can i use panel without a frame?
stackexchange/codereview
I have this declaration of a multidimensional vector std::vector< vector < vector < ofxImage > > > front_objects; Then I send it to my class when creating it: Catalog_object * temp = new Catalog_object(&front_objects, numTag); And then I perform the following: Catalog_object::Catalog_object(vector< vector < vector ...
stackexchange/codereview
greetings all i am using spring security 3.0.2 and i want when a remembered user requests a page after his token is being authenticated (onAuthenticationSuccess) do some coding before landing him to his request i got the idea to provide a custom implementation of the RememberMeAuthenticationFilter but i don't know how...
stackexchange/codereview
I have gallery of images. Each image has a rating based on how many users voted "i like this". The MySQL table lokes like this: id |image |rating ------------------------------------ 166 |6.png |9 165 |8.png |9 189 |1.png |8 171 |99.png |8 169 |56.png |8 155 ...
stackexchange/codereview
I'm using Android's MediaPlayer class to start playing a song from some offset. After specifying this offset in code, I play the song expecting to hear it from that offset position but rather I hear it play from the beginning. Please note the following code: MediaPlayer mplayer = new MediaPlayer(); mplayer.rese...
stackexchange/codereview
I have a data set which I pass to a asmx-style web service. if I call the "GetXml" method on the ds, the content is displayed as the following string: <ChinaVisa> <ChinaVisa> <ChinaVisaId>5</ChinaVisaId> <ReceiveDate>2010-11-07T23:00:14-05:00</ReceiveDate> </ChinaVisa> </ChinaVisa> I then pass this XML as ...
stackexchange/codereview
I am fairly new to javascript and I am trying to develop scripts for an application that is java based and uses javascript as its interface for processing/modifying XML project information inline. There is no browser involved. I am using rhino in a shell to mimic the application environment in order to test and build ...
stackexchange/codereview
I am developing an isometric rpg engine in flash AS3. I have decided to separate the engine code completely from the game data, which is in xml. So I have all the maps in xml files, all the quests and npcs etc. My question is when to parse the xml into actual Actionscript code. Should I do this at the start of every pl...
stackexchange/codereview
Part of a web application I am developing requires the ability to capture still images from a Flash or HTML5 video playing with in a browser. Is there a Python library out there that could help me along with this task? UPDATE Actually, users of this web app will also have to have the ability to Draw a crop box on to...
stackexchange/codereview
I'm kinda of a newbie. I have a question regarding which Java collection (no Hibernate, databases, etc.) is best to use to implement many-to-many symmetric relationship. HashMap with values V=sets of keys? But then delete, add operations become very slow... Any suggestions? Thanks.
stackexchange/codereview
lets face it, everyone uses facebook... - in reality surely everyone has js enabled... why does it seem like you should support the few(if any) without js?
stackexchange/codereview
I built a website. I used liquid layout for all the div tags. And its working fine. The problem i face is when i reduce the screen resolution to 800*600 from 1024*768 the text size isn't reducing ;the text in one div is overlapping with text in another div. I mentioned the size of text in pixel. Could anyone tell me ho...
stackexchange/codereview
I have the following custom Refinery CMS engines in my gemfile: gem 'refinerycms-venues', '1.0', :path => 'vendor/engines', :require => 'venues' gem 'refinerycms-events', '1.0', :path => 'vendor/engines', :require => 'events' gem 'refinerycms-available_spaces', '1.0', :path => 'vendor/engines', :require => 'available_s...
stackexchange/codereview
I am trying to bind the data to ComboBox using WCF RIA. Only for data binding is fine but on the same time I want to be already selected for the specified item after binding. For this case, I don't know how can I do to achieve this. May be the way that my data binding also wrong. Here is my Entity public class Customer...
stackexchange/codereview
I wanted to normalize my table to all 3NF I believe that all of the following is in 3NF because there is no transitivity. Please clarify this if I am wrong CUSTOMERS (custID, custName, custAddress, custDOB, custEmail) EMPLOYEES (empID, empName, empPhone, empAddress, BranchName) The assumptions are each one employee wo...
stackexchange/codereview
below is the hex dump function,but what i need is dec dump. void DumpBytes(unsigned char* inputBytes,int inputBytesLength,char* ouputString) { unsigned char const Hex[] = "01234567890abcdef"; for (int i = 0; i < inputBytesLength; i++) { unsigned char binByte = inputBytes[i]; ouputString[2*...
stackexchange/codereview
When installing Rails 3.0.1 i always get following error message, although i can use the installation. I'm not sure if there's something wrong, I'm irritated by the error message.
stackexchange/codereview
I have a jython server script (called rajant_server.py) that interacts with a java api file to communicate over special network radios. I have a python program which acts as a client (and does several other things as well). Currently, I have to start the server first by opening a command/terminal window and typing: cd ...
stackexchange/codereview
since symbols do not respond to the <=> method used by sort, does anyone have a technique to sorting an array of symbols? interested in seeing some other ideas.
stackexchange/codereview
I'm using the Windows COM SDK with iTunes. I can see my iPod Source, but I want to programmatically "select" it in the iTunes application, so the Device Summary page will be displayed in the iTunes browser area. How can I do this? Is there a special URL I can use with OpenURL() that can pass in the Device ID or somethi...
stackexchange/codereview
[See edit @ the bottom - the problem may not be what I initially thought] Hi All, I'm writing a graphics library which handles a number of filters/effects including blur. I've been trying to optimise my code and have come across something I don't understand... When I run the code without the performance wizard, a simpl...
stackexchange/codereview
Given an instance of an HttpContext object, is there a way to determine the CurrentCulture and/or CurrentUICulture for the thread it is executing on? Or more generally, is there a way to gain access to the current thread under which it is running?
stackexchange/codereview
I've created a page to display all users concerning or below a specific manager. If a user has registered, his account will be deactivated until the person concern activate it. i've displayed all the users and a checkbox whether to deactivate or activate. on submiting, the insert command is not working and nothing is b...
stackexchange/codereview
I've not used Spring too much, so I might be missing something obvious. Anyway, this is the question: Say you have a Spring managed bean that is a networking client. After you call a method on it you get some object back, say it is a List Now I want to process that List into something more useful for the rest of my app...
stackexchange/codereview
I am maybe misunderstanding the facebook documentation for the xfbml. They say there are two ways of incorporating a like button into a site via iframe or xfbml. When i use xfbml though the button is still embedded in an iframe. Whats the difference therefore?
stackexchange/codereview
i wrote an application in qt creator and designed it on windows. when i'm running the application on Linux the size of the controls is too small. all the controls are in layout. which property should i change?
stackexchange/codereview
I obtain some text from Internet. There are sometimes characters like "&a m p;", "&q u o t;", etc in teh text. I guess they are some kind of unicode characters in Html. they are HTML encoded string, thanks for jason to point out. How should I filter all these kinds of things out of the text? I don't want any HTML relat...
stackexchange/codereview
Given this model: from django.db import models from django.contrib.auth.admin import User # Create your models here. class Plan(models.Model): editors = models.ManyToManyField(User) in which every plan can have more than one editor (User), how can I retrieve all plans for which a particular user is one of the edi...
stackexchange/codereview
i have a method that creates a Process calling a console app. double myProcess() { double results; Process process = new Process(); process.EnableRaisingEvents = true; process.OutputDataReceived += new DataReceivedEventHandler(process_OutputDataReceived); process.StartInfo.FileName = filename; ...
stackexchange/codereview
I have a fixed width and height DIV, and I need to put text inside. Problem is, this text can be in different lengths (letter-wise), so I dont mind to reduce its size once its overflowing. But how can I do that? Thanks
stackexchange/codereview
So I have an unmanaged C++ dll which I am calling from my ASP.NET application, it has a single entry point and a couple of structures for passing data. If I create a C# console app to call the dll it works fine. If I hook it in to my asp.net app running on my local WinXP machine (IIS 5.1) then it works fine. When I p...
stackexchange/codereview
I have this HttpModule that I am using to remove unwanted headers and cache assets for about 30 days but it does not seem to work. Code and http response below: Response: Cache-Control private Content-Type text/html; charset=utf-8 Content-Encoding gzip Vary Accept-Encoding Server Microsoft-IIS/7.5 X-AspNetM...
stackexchange/codereview
I'm developing a php site that displays statistics from an outside site. I drew up this diagram to kind of summarize how the mvc will work. I'm new to implementing the MVC architecture, so could someone tell me if I'm doing this right? I'm thinking that the model is the outside site, and it can't be changed. The contro...
stackexchange/codereview
I'm displaying a histogram for a grayscale image and I would like to draw each line with its respective color. For example: for(int i=0;i<256;i++) { Color c=getcolor(i); drawline(c,x,y,...); } I want something like the getcolor function above.
stackexchange/codereview
In Perl, if you have a loop like this: foreach (@items) { perform_action($_); } you can replace it with a call to map in void context: map { perform_action($_) } @items; Are there any advantages or disadvantages to doing to? Does it have a performance impact because Perl thinks it has to save the results? Doe...
stackexchange/codereview
Hey guys, I've started doing some work on servlets, and I need to implement a facebook login for one of my projects. I created a dummy app on facebook, and I am using restfb for this. First I redirect the user to https://graph.facebook.com/oauth/authorize?client_id=[MY_APP_ID]&display=page&redirect_uri=[MY_WEBPAGE]&sc...
stackexchange/codereview