instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
How can I dry this ? def correct_user @company = RealEstateCompany.find(params[:id]) if(current_user != @company.user) redirect_to(root_path) end end def correct_user @company = ConstructionCompany.find(params[:id]) if(current_user != @company.user) redirect_to(root_path) end end The answe...
stackexchange/codereview
I have an XML file that is coded like this: <?xml version="1.0" encoding="us-ascii"?> <xml> <Section ref="01.01" name="Voice Reports"> <Subsection ref="01.01.01" name="Voice Blocking"> <Item ref="01.01.01.01" name="CCH Block Count"> <Description>CCH Block Count</Description> <Formula...
stackexchange/codereview
I've discovered to my great annoyance, that once I move a color gradient or some other complex style to a resource dictionary it is out of Expression Blend's Visual Studio WPF Designer Thingy's jurisdiction and must be edited in XAML. I have no issues with working in XAML except that it is more time intensive than a d...
stackexchange/codereview
Espresso:Preferences PowerBook$ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [powerpc-darwin9] Espresso:Preferences PowerBook$ rails -v Rails 1.2.6 Espresso:Preferences PowerBook$ gem -v 1.3.7 but when updating rails, It still get the error Espresso:~ PowerBook$ gem update rails Updating installed gems Updating rail...
stackexchange/codereview
i've just started using the Google Maps API for Flash (map_1_20.swc) for an AIR 2.5 application i'm building with Flash CS5. everything loads and display fine in the ADL except that i'm receiving security sandbox violations: *** Security Sandbox Violation *** SecurityDomain 'http://maps.googleapis.com/mapsapi/publicap...
stackexchange/codereview
I have xsi:nil="true" in my soap request. What does mean? How can I pass value on that? Any help is appreciated
stackexchange/codereview
I've been trying to save PHP session data in a MySQL database, but can't get it to work. For a simple example, here's code that should increment a counter with each visit. I've seen other examples, etc. but can someone please tell me why this code isn't working? (Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9....
stackexchange/codereview
(Please correct me if i am wrong) I understand that when you run a java program by issuing the java command, java MyProg the program will be run onto a new JVM. What loads the program into a new JVM? is it the JRE that spawns a new thread? If each program runs in its own JVM, is it possible for them to communicate ...
stackexchange/codereview
How to read Unicode file in php. I have used file_get_contents() function, but after reading file content, I am getting content in decode format(not readable format) Please provide me your suggestions. Thanks -Pravin
stackexchange/codereview
In C++ what does it mean that template and inline are orthogonal?
stackexchange/codereview
I have this JavaScript code: $("#midden-offertes form .subvragen").hide(); $("#midden-offertes form .veld .radio :radio").change(function() { if (this.value === 'Ja') { $("#midden-offertes form .subvragen",this).show() } else { $("#midden-offertes form .subvragen",this).hide(); ...
stackexchange/codereview
I've created a suite of TestNG tests that I'm attempting to run from an Ant task using Selenium Grid. I've tried to set the classpath in Ant, including the TestNG jar and some other required jars (the tests are Selenium tests). This is modified slightly from the Selenium Grid demo to reflect locations in my environment...
stackexchange/codereview
I've developed an application making intense use of runtime memoization. I'd like to convert it into a web service. The service main class should exist in one instance to process all the requests and not shut down but wait (keeping all the values) for further requests when all requests are processed. There are meant to...
stackexchange/codereview
I'm writing a rails application on top of a legacy mysql db which also feeds a PHP production tool. Because of this setup so its not possible for me to change the databases structure. The problem I'm having is that two table have a "time" attribute (duration) as long as the time is under 24:00:00 rails handles this, b...
stackexchange/codereview
I have created an AddInHost with which I can extend the VS Ide commands (right click on SolutionExplorerMenu). Now I want to use the AddIn to generate code from a template. I've reading many articles about T4 code generation and tried some simple templates, but I don't see how I can use the T4 technic in my AddIn. For ...
stackexchange/codereview
I want to extract the SITEMAP of any website (the hierarchy of the links between web pages of the same site). How can I do this?
stackexchange/codereview
I have a problem with the following code: #include <stdio.h> #include <iostream> int main () { int a, b; printf("Please type in your number a: "); scanf_s("%d", &a); printf("Please type in your number b: "); scanf_s("%d", &b); printf("Solution 1 (divide and modulus): %f\n", a / b + a % b); printf("Solut...
stackexchange/codereview
I'm trying to add a field to a Django model that will represent a list of email addresses. I would like a user to enter a comma separated list of addresses into a form in the admin, which my app will then parse to send out a series of emails. My current implementation covers the basic idea, but has a significant limita...
stackexchange/codereview
We have been asked to provide all of the possible error messages in our code for support purposes. Unfortunately they are not all located in resource files so I figure that if we can get a list of all of the strings in the app we can then filter out the error messages from there. Is there anything that would let me do ...
stackexchange/codereview
I have a security module that I put in my /lib folder in my rails3 application. I may re-use this in other apps, so I don't want to hard-code url redirect values in the module. How can I reference the config so I can pull settings from there? Should I store config type settings in application.rb or is there another fil...
stackexchange/codereview
I'm working through examples in the book 'Visual Quick Start, Objective-C' by Holzner. I spend a lot of time with each example, getting the code debugged is the faster part, and then stepping through saying to myself why each line of code works, what each word in each line does and deciding why the author used one way...
stackexchange/codereview
Do you know if it is possible to setup mongodb instance in spring like any other db via datasource from jndi? Thx
stackexchange/codereview
I have a jQuery dialog that loads its content trough ajax after its opened. See this JSFiddle (content is not loaded trough ajax but added after open, which is enough to demonstrate my problem). html: <div id="test">test</div> js: $("#test").dialog({ minHeight:100, maxHeight:200, width:300, open: funct...
stackexchange/codereview
I have a VBA macro in Excel, which generates some C-code. Is is it possible to trigger the execution of this macro as part of the make-based build process (e.g. via VBScript)? If yes, how?
stackexchange/codereview
i'm designing a user log table that will log major user actions (login, logout, etc) - as you can imagine, this table will be hit for write very often, while read will be minimal. I generally just go with innoDB for all my tables, but I'm wondering if this is the best way to go with a table that will be used for logs ...
stackexchange/codereview
What I want to do is make a dropdownlist choices change depending on other dropdownlists on the page. What I did is write all the possibilities in hidden textboxes. This works, but when there are a lot of choices, the page is slow. Is there a better way to do this? Thank you for your time
stackexchange/codereview
I am creating a java dominoes game. This is how a gameboard will look: SEEEEEEE DDDDEEEE EEEDEEEE EEEDEEEE EEEDEEEE EEECEEEE Each letter is an object. S is a switch, it is the only value that can be touched. D is a Domino, its state is either down or up. C is where the game is won if a Domino hits C. Each Object has ...
stackexchange/codereview
I have a text link generated in PHP for bread crumbs, and I can't figure out how to eliminate the extra space before and after the link that is generated. This is the LAST LINK: Website link: link text <div id="crumbs"> <a class="crumbs" href="http://www.myorphan.com/index.htm">HOME</a>//<a class="crumbs" href="htt...
stackexchange/codereview
I want to use a single query to retrieve: items of any categories (no filter applied); only items of a single category (limited to a particular category); For that purpose I should be able to write a Doctrine query which would include a where clause only when certain condition is met (eg. part of URL existing), other...
stackexchange/codereview
My Android app is getting called by an intent that is passing information (pendingintent in statusbar). When I hit the home button and reopen my app by holding the home button it calls the intent again and the same extras are still there. @Override public void onSaveInstanceState(Bundle savedInstanceState) { ...
stackexchange/codereview
I have been thinking for a good while about how to tackle the problem of implementing an ID based user system while using ASP.NET MVC. My goals, much like StackOverflow's system are as follows: Allow the users to change their nicknames without the "avoid duplicate" restriction. Allow the users to authenticate via Open...
stackexchange/codereview
I'm trying to use the append content to make an live feed with jQuery but my problem is that it append more content, even if there already is an "< li >< /li >" that is exactly the same as the one that is already there... My current code: http://pastebin.com/yEtSsg90 Would be great if someone could post an example-code...
stackexchange/codereview
Possible Duplicate: What is the => token called? Hey, In LINQ what is the name of the => operator e.g: list.Where(a => a.value == 5);
stackexchange/codereview
I tried to get idt address in my driver, I made function in asm which returns what idtr contains: .data myData dq 0 .code Function PROC sidt myData mov rax, myData ret Function ENDP END But the address which I get is weird, for example in windbg: r idtr idtr=fffff80000b95080 However my driver shows: idtr = f...
stackexchange/codereview
We want to extend our batch system to support GPU computations. The problem is that from the batch system viewpoint, the GPU is a resource. We can easily count used resources, but we also need to limit the access to them. For GPUs that means that each job claims a GPU exclusively (when a GPU is requested). From what I ...
stackexchange/codereview
SPI_SPI (char* p1, char* p2) { return ( *(point*)p1 == *(point*)p2 ) ? '0' : 'F'; // epsilon } is this show that p1 caste to point class pointer and give pointer to this pointer point class.. am i right? i am not getting pointer in every case plz refer me a usefull link related to it... or explain me this .
stackexchange/codereview
Can some one help me modify this code. I am not sure how to modify htaccess. <IfModule mod_rewrite.c> RewriteEngine on RewriteRule (some_folder/.*) $1 [L] # adjust the regex to what you want. # normal cake rules RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule> I wanna redi...
stackexchange/codereview
I visited some forums and downloaded source code for Bluetooth,wifi,etc API's..I was interested in viewing source code for classes like ServiceManager.java and classes in java.nio.channels, java.security packages present in android.jar .. I had used the following command to download the source (in windows) which i curr...
stackexchange/codereview
I'm trying to store a week schedule (e.g. Monday, 9am-5pm, etc.). I do not have the need to store the dates; I just need to save the following: day, from time, to time. So, say I have the following time values: 1:20pm 1320 8:00 AM etc Assuming that the values are actual valid times, how do I convert these strings int...
stackexchange/codereview
Is it good or bad practice to create separate bootstrap for each module. They make the project look a lot less disorganized in my opinion so I'd like to know if it's the norm to have them in each module.
stackexchange/codereview
I searched the web for how to enforce srictfp in Scala but could not find any hint of it. There are some people complaining about it, but real solutions cannot be found. There is a bugtracker entry about it which is almost two years old. As it seems there is no elegant fix for it on the way I'm looking for workarounds....
stackexchange/codereview
I have CRM 4 Online account and am very new to dynamics CRM. I have to create a webpage where customer can send testimonials and I want to push those into a custom entity called testimonials. I cannot figure out a way to change the Internet Lead Capture to make it put data received into a custom entity directly. Any he...
stackexchange/codereview
I need help understanding this piece of code. What is the point of handler.guid? Why is there a need for a hash table? What is the point of: if ( element["on" + type]) { handlers[0] = element["on" + type]; } What does the "this" refer to in handleEvent, the element or the the addEvent function? function addE...
stackexchange/codereview
Today I ran into the ExplorerBrowser from the Windows API Code Pack... This looks like a fantastic control to use as a Explorer like control in my application.. However, I am trying to modify the Commands toolbar, which is located on the top of the ExplorerBrowser control. I have noticed I have some control..I can Hide...
stackexchange/codereview
I'm writing a program to parse some data saved as text files. What I am trying to do is find the location of every needle in a haystack. I already can read the file in and determine the number of occurrences, but I am looking to find the index also.
stackexchange/codereview
Why isn't anyone developing QT bindings for Delphi. In the past we had QT 2.x integrated as CLX in Delphi. I really hate the CLX wrappers since they were buggy and hard to extend. But why isn't anyone making an API list of external DLL calls to use (the same way JCL wraps the Windows API). Is it so hard to code such AP...
stackexchange/codereview
I simply want to embed a PDF file in a web site. The best solution I've found is Google Docs Viewer (http://docs.google.com/viewer), but it does not work for IE and obviously that is not going to work for me. Anyone have a clean, easy solution to this? Update: I should add that one of the benefits of embedding the PDF...
stackexchange/codereview
I'm having problems figuring out how to do this. I have two instances (source & target) that implement INotifyPropertyChanged and I'm tracking the PropertyChanged event for both. What I want to do is run an action any time source.PropertyChanged is raised until target.PropertyChanged is raised. I can do that just fine ...
stackexchange/codereview
Scenario: I have a dropdown-list with radiobuttons, that are not required to be selected to submit the form, and after I've chosen an option, from there on it's impossible to deselect it. I want it to be possible somehow. Thoughts for solutions: 1) Implement some feature that enables you to deselect the radiobutton, mu...
stackexchange/codereview
Is there a way to enable Ctrl + ← / → keyboard shortcuts (go to previous / next word) in the Bash console installed with MSysGit?
stackexchange/codereview
In my current project I render a series of basically cubic 3D models arranged in a grid. These 3D tiles form the walls of a dungeon level in a game, so they're not perfectly cubic, but I pay special attention to be certain all the edges line up and everything tiles correctly. I'm interested in implementing a height-ma...
stackexchange/codereview
Sorry if the question is obvious, I am only starting to work with Rails. I have a following code in several controller methods now: respond_to do |format| if @project.save format.html { redirect_to(edit_project_url(@project), :notice => '#{user.name} added to #{role}.') } format.js else ...
stackexchange/codereview
for detail. I import Solrpy package to use. As for the document on Django project to introduce the pagenator. I pass the pagenator.page (Solrpage) object to tornado template but it doesn't work. I can'd use any method of Solrpage. instead it is rendered as a memory address. below is the way to use the paginator , whic...
stackexchange/codereview
In my Django project I am having RUntimeError when I'm supposed to get a 404. The description says: Exception Value: maximum recursion depth exceeded The error only occurs when I try to access a non-existent page (the correct result would be a 404 page isn't it?). Is this a Django bug or is it my fault? I will provid...
stackexchange/codereview
I grabbed this example from apples website This example seems to not run at all. Using mp3, ogg with audio and m4v for video seems to not work and results in undefined var in js and the text inside of <audio> or <video> being shown. I'm using the latest version of safari (v5.0.2 for windows 7) so this makes no sense To...
stackexchange/codereview
Well, this is the issue. I have this code, who works very well: The code <?php define('FACEBOOK_APP_ID', 'MY.APP.CODE'); define('FACEBOOK_SECRET', 'MY.APP.SECRET'); function get_facebook_cookie($app_id, $application_secret) { $args = array(); parse_str(trim($_COOKIE['fbs_' . $app_id], '\\"'), $args); ksort($arg...
stackexchange/codereview
I want the program to pause and wait until you press any key to continue, but raw_input() is going away, and input() is replacing it. So I have var = input("Press enter to continue") and it waits until I press enter, but then it fails with SyntaxError: unexpected EOF while Parsing. This works OK on a system with Pytho...
stackexchange/codereview
I am building an app for a charity and they've requested the ability to receive donations from the app. In reading the app store guidelines I came across this: 21) Charities and contributions Apps that include the ability to make donations to recognized charitable organizations must be free The collection of d...
stackexchange/codereview
I am reading "Computer Systems: A Programmer Perspective", chapter 3 explains mov instruction, and explanation give in a book confuses me. give a function (page 142 1's edition) int exchange( int *xp, int y) { int x = *xp; *xp = y; return x; } Assembly code of function's body movl 8(%ebp), %eax //Get xp...
stackexchange/codereview
How to allocate memory in assembly when using multiple arrays. For instance, I have 2 arrays; la $s0, X la $s1, Y if to "initialize" it this way, the memory allocation is contiguous, for example Address +0 +4 +8 +12 ..... 22112 x[0] y[0] x[1] y[1] ... . . . In order to "...
stackexchange/codereview
Can I sign my Adobe AIR app with my iOS development certificate? I saw on Adobe's website that a company called Thawt is a valid CA. Beneath their name, I saw Apple listed. Does this mean that I can sign my app with Apple's iOS dev certificate? If so, how?
stackexchange/codereview
I have an autocomplete on my site, and when a user selects an item from it it is added to a token list on the right. I would like to make it obvious that the autocomplete selection has been added to the token list. How can I use jQuery to clearly animate this occurring? I was thinking of maybe having the text "fly ...
stackexchange/codereview
I am trying to get all derived classes for a specific type. In Rails 2+, you can say: Class.subclasses_of SomeClass This is because activesupport/lib/active_support/core_ext/object/extending.rb is gone in Rails 3. Is there a replacement in Rails 3? Are there alternatives.
stackexchange/codereview
Grails 1.3.5 The problem is that I'm trying to test a RESTful web service that consumes json. I've read the docs on grails.org regarding this and tested using their Book example. I can't get params in the controller to contain any data. So I started googling and I ran across this: http://maricel-tech.blogspot.com/20...
stackexchange/codereview
Possible Duplicate: How to find positions of the list maximum? A question from homework: Define a function censor(words,nasty) that takes a list of words, and replaces all the words appearing in nasty with the word CENSORED, and returns the censored list of words. >>> censor([’it’,’is’,’raining’], [’raining’]) [’it’,...
stackexchange/codereview
I'm following this tutorial on how to extend Python with C\C++ code. The section named "Building the extension module with GCC for Microsoft Windows" fails for me with the following error: fatal error: Python.h: No such file or directory The section named "Building the extension module using Microsoft Visual C++" also...
stackexchange/codereview
I have a program called input shredder which shreds a physical document containing 20 logical documents. Each logical document passes through the a transformation process and the program at the end builds the physical document back with the transformed logical documents. I need to convey back to the shredder if a logic...
stackexchange/codereview
following up on this thread jquery: live() - only lives once? I found out what the problem is in my code whether I use live() or bind() - I have this line below after using load(), $('.disabled').click(function(){return false;}); If I don't use this line the page will 'return' the link in the a tag if I click on the b...
stackexchange/codereview
I would like to develop an interactive XFA form in LiveCycle Designer ES -2 which will support Windows as well as i-Pad. But the problem is when I open an XFA form it does not show the form rather it shows the form can not be shown(If the form has scripts within it).It only shows simple PDF documents in read only forma...
stackexchange/codereview
I have gone through the guides given out here & http://cpptcl.sourceforge.net/doc/compiling.html Hence I have pretty much done the basic stuffs. Here's the code for Hello.cc given in the guide present in C++/Tcl: #include "cpptcl.h" #include <iostream> using namespace std; void hello() { cout << "Hello C++/T...
stackexchange/codereview
How can I write an iterator in a procedure? Sorry for my dump question, I am novoice. Thanks for the answers.
stackexchange/codereview
Maybe I'm coming at this the wrong way, but in my application I have loadable bundles that add NSMenuItem entries to the main menu. I loop over all the bundles and determine what menu items to add, then add them accordingly. Now the question is, where should such code go in a document-based application? Initially I put...
stackexchange/codereview
Hello basccly i need to be able to play youtube videos in desktop application that is not GPL i was reading that it can be done with LibVLC , but its GPL and its a problem do i have any alternatives? Thanks
stackexchange/codereview
Consider a book shelf, it has shelves and each shelf has a number of books on it. In turn each book has a few properties such as Title and Author and perhaps ISBN. namespace mySillyExample { public class BookShelf { public Shelf[] myShelves{get; set;} } public class Shelf { public Book[] booksOnThi...
stackexchange/codereview
We are deploying our ASP.Net MVC application to a windows 2008 R2 server, running IIS 7.5. After deployment, we get this error in the event log (we also get an email) : "Unrecognized element 'providerOption'" on line x in c:\wwwroot\web.config which is: <providerOption name="CompilerVersion" value="v3.5"> located in ...
stackexchange/codereview
I made a facebook form (Static FBML), and I posting data to my process.php. Its works great, but the special language characters doesn't works well, whats the problem?
stackexchange/codereview
I have create a module(person) in my Zend Project. Then created a controller(PersonController.php) in that module. Then created an action (addAction) in that controller. But when I use http://myproject.dev/person/person/add then it shows nothing. http://myproject.dev/ points to my zendproject's public folder therefore ...
stackexchange/codereview
I have an application with a sliding drawer view. My problem is that in the drawer activity layout I have a list view that reaches the bottom of the screen where the sliding drawer handle is. so the last element in the list can not be seen, because the handle overlaps it. How could I fix this?
stackexchange/codereview
Being new to packagemaker I assume I am just missing something. It does not seem all the options in the GUI are available from the command line. I have read the man page but maybe I just don't get it. Of most interest to me is how do I specify the install locations of the files? From the commandline to I need to also u...
stackexchange/codereview
Now that the whole world is clambering to use SSL all the time (a decision that makes a lot of sense) some of us who have used github and related services to store csv files have a little bit of a challenge. The read.csv() function does not support SSL when reading from a URL. To get around this I'm doing a little danc...
stackexchange/codereview
What i want to do is this (it may be an abomination): I have a UserSession object which lives in the session context. I wrote a little util to make grabbing it easier: UserSession sess = UserSessionUtil.getUserSession() What id like to do is inject this property into my objects via spring. Is this possible? Is this re...
stackexchange/codereview
I have the below LINQ statement, and get the error " 'int' does not contain a definition for 'Count' and no extension method 'Count' accepting a first argument of type 'int' could be found ( are you missing a using directive or assembly reference?) " var queryFuture = from pqv in context.OrderPrintQueue_View ...
stackexchange/codereview
I need to add columns to a listview, but they can't be stored in the list (they are just calculated based on values from the list. And, they involve 'today' which can't be stored in sharepoint lists). I opened the page in designer, selected "Customize XSLT" then "Customize Entire View", and it opens the XSLT code for ...
stackexchange/codereview
Background I'm using the rather excellent mogenerator to auto generate my core data accessors. mogenerator structures the classes as following: NSManagedObject _JGTrainingBase JGTrainingBase _JGTrainingGroup JGTrainingGroup Classes starting with an underscore are machine gener...
stackexchange/codereview
I have a perl script with a line similar to the following my $in = new IO::File ($fn) or warn "Sorry, there was a problem opening $fn: $!\n", and return; On my system if the file path specified by $fn does not exist, it displays the warning and returns from the function. One some systems, however, it is printi...
stackexchange/codereview
I am having a bit of a weird problem with iOS platform for a page i am developing. This is the page in question. When clicking any of the case study images, the page will first unhide the required case study then scroll to it. This works on all desktop browsers on Windows and Mac, but on the iPhone and iPad you get a...
stackexchange/codereview
I have a slight problem in that the string I'm reading from a cookie is broken after the ampersand. So for example the string "hello & world" would just display "hello ". It is a string that is a short code, and converted to something more meaningful using a switch function, and then displayed within a text box. The sw...
stackexchange/codereview
i got a program that send file to mobile device. After opening it in the NetBeans IDE it shows error in the lines shown below import javax.obex.ClientSession; import javax.obex.HeaderSet; import javax.obex.Operation; it shows error as package does not exist. what should i do to correct this error ?
stackexchange/codereview
How do I overcome "Please login with USER and PASS." "Passive mode refused." errors? - when attempting a CPAN module install from within the cpan shell / cpan> prompt From the output logs to the terminal it appears to be able to connect to an external Perl/CPAN ftp site from my work server but the remote machine is ask...
stackexchange/codereview
i'm trying to call a User-Defined Function (UDF) on a linked server: CREATE FUNCTION [dbo].[UserGroupMembershipNames](@UserGUID uniqueidentifier) RETURNS VARCHAR(8000) AS BEGIN RETURN ASILIVE.ReportManager.dbo.UserGroupMembershipNames(@UserGUID) END This doesn't work, as documented in PRB: User-Defined Function ...
stackexchange/codereview
I am currently working on an experimental camera app. I'm looking into implementing face detection at the moment and am currently weighing up my options. I have considered the OpenCV port available for Android and using their face detection functions, but from demos I have seen of previous implementations, the camera s...
stackexchange/codereview
I am developing a new business application which will require a business layer and a data access layer. Right now, I have both of those as simple C# class libraries which will be consumed by a Silverlight RIA app and a WCF app (which will be exposed as SOAP web services). Is there any downfall to developing these tiers...
stackexchange/codereview
This turned out not to be a trivial task for me and I couldn't find any receipt so maybe you can point me to one or you have a ready, proper and well-tuned solution for that? Proper meaning works also for iterators that do not know own length (without __len__) and works for exhaustible iterators (e.g. chained iterators...
stackexchange/codereview
I'm trying to clear the warnings given when my solution compiles in VS2010. Currently there are some 600, but most seem to be due to MSpec files. How can I suppress the warnings for any file that ends *spec.cs? They're for MSpec tests and fixing many of them break the flow of the test code. I'm sure I won't need to con...
stackexchange/codereview
I want to add signature like gmail in my message body in my php mail script.That signature should show when somebody open to read my mail.Similar to gmail.But when i am attaching image in message variable and sending mal to gmail this is not appearing directly.To watch the signature i would have to click on link "displ...
stackexchange/codereview
I have a zipped file which I am trying to stream to client: public FileResult GetFiles() { return File("test.zip", "application/zip"); } The file downloads but without the ".zip" extension.
stackexchange/codereview
Some will object that this is not a programming question. I'm willing to defend its relevance to SO, or to take the question elsewhere, if someone has a good suggestion for a better place to get this sort of help. The classic Stanford Bunny model has almost 70,000 polygons. I'm looking for a simplified version, on the ...
stackexchange/codereview
I believe one of the options on the installation of TFS 2010 is to enable SSRS (for web portal reports etc.). I think our existing installation of TFS was installed without this option - is there a way to enable this post installation?
stackexchange/codereview
I have three tables and I will just show you the relevant columns here Table: groups Columns: group_id, name. Table: groups_to_message Columns: group_id, message_id Table: messages Columns: message_id, created (date) I need to basically find the last message for each group, with out showing duplicate groups. I've...
stackexchange/codereview
I am trying to figure out a design pattern that would allow "hooking" into an existing mvc application without re-compiling that entire application. For example, my company currently uses classic asp for most of their large clients. Our e-commerce product is used by many of our clients, but it accesses shared scripts f...
stackexchange/codereview