instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Here are my models: class User include Mongoid::Document include Mongoid::Timestamps references_many :roles, :stored_as => :array, :inverse_of => :users ... end class Role include Mongoid::Document field :name, :type => String references_many :users, :stored_as => :array, :inverse_of => :roles ... en...
stackexchange/codereview
Is there an handwriting recognition library for IOS?
stackexchange/codereview
I can get a URI template in the form of "/a/b" or "/a/{b}" to work. But when I try "/a/b/{c}", I get a HTTP 404 and a message in the log in the form of "No mapping found for HTTP request with URI [/myapp/a/b/c]..." But I see these message in the log also which leads me to believe that the mappings are correct...? INFO...
stackexchange/codereview
Background: I just updated to the RC of MVC3, and when I went to add a Stongly-Typed View, the list of classes didn't contain the class I wanted, which has been built in my project. Now, I did compile my project, and already have several views that work correct, but their model also doesn't show up in this list. Since...
stackexchange/codereview
I would like to change some menuitems color ,for example yellow, dynamically with my plugin. is it possible? More details: Lets say I wanna change the file->import menuitem to yellow, which class is responsible for that? For simpleness, if I got SWT window, calculater with File menu in it, how to change the File->exi...
stackexchange/codereview
I want to know if I can develop graphics application with DirectX using C#?
stackexchange/codereview
so I have 3 swf's that im loading with buttons into the main swf. The thing is that these 3 external swf's have embeded flv's. when switching between the swf's with the buttons, im using vid1loader.unload(); the only thing is that while the video switched to the other video like it should, the audio keeps running on an...
stackexchange/codereview
Please refer to the screenshot below I am Assuming the "Add new contact" screen in iPhone contacts app had a UITableView. For adding phone numbers or email or home page, they have nicely formatted columns within the rows. How can I achieve this, since UITableView inherently does not support columns? Are these just c...
stackexchange/codereview
I am new to programming, and even newer to Linux. I was told that Linux is the best OS to learning to program as it lets a programmer interface closely with the machine architecture. I heard a lot about the GNU tool-chain and that it provides the best programming environment on Linux so I decided I won't use an IDE and...
stackexchange/codereview
I wrote this repel function (below) for 2 movieclips and I call it from a timer instead of an enter_frame listener (speed), but it has the tendency to jerk and not be very smooth. How can I smooth the movements? I was thinking maybe adding some sort of padding or something, but idk...Any help would be greatly appreciat...
stackexchange/codereview
I have been successfully screen-scraping certain sites but have come across some very odd behavior with Nokogiri today on a certain site. If I view the HTML source code pulled down by Nokogiri with the actual HTML scource code from the site on a certain pages it is truncated. Some pages work just fine and all the data ...
stackexchange/codereview
I have an application on the corporate intranet that makes use of session state to store values between a wizard (string of pages/ user controls). I'm measuring the size of the session and navigating around to make sure things dotn get out of hand. At worst, I can get the size up to 900 Bytes. Is this too much? I kno...
stackexchange/codereview
I've been using NHibernate for a while now but mostly with convention based auto persistence model generation and then performing basic CRUD operations on the objects. I now have that need to execute a rather nasty query against a legacy system along with a hand full of parameters (most of the where clause needs to be ...
stackexchange/codereview
What is the purpose of NLSTERRITORY session variable in Oracle? If I change NLSTERRITORY point to a different country what does it do? Does it change any date parameter? Because always 10Nov2010 is Wednesday. What difference does it make if I change the territory?
stackexchange/codereview
So what I do now is my Ruby scripts have a bunch of methods, and I have to comment out which method calls I don't want to call, and un-comment the one I want to fire in my command line script. Is there a Ruby library that makes it easy to prompt the user to which function to fire?
stackexchange/codereview
im getting a weird error in my program. my compiler is telling me : expected `}' at end of input expected unqualified-id at end of input expected `,' or `;' at end of input and its highlighting the last line of my code, which is the closing bracket for my main() function. i have commented out all of the code in in...
stackexchange/codereview
Specifically the warning is: "Incompatible Objective-C types 'struct NSString *', expected 'struct UIImage *' when passing argument 4 of 'objectWithType:name:code:image' from distinct Objective-C type". It follows a line that looks like so: [Object objectWithType:@"Type" name:@"Name" code:@"0001" image:@"image.png"], ...
stackexchange/codereview
HI All, In my activity i have used default shared prefrence to store some data..and it is stored also. But when i want to access the shared prefrence outside the class(Simple class without activity) my project is showing errors. Code: SharedPreferences p = PreferenceManager.getDefaultSharedPreferences(this); user...
stackexchange/codereview
I'm using C# to generate an RSA public/private key to encrypt user information. I need to make the public key and exponent available thought for other systems and languages. They will be signing the data and the C# web service will decrypt it and act upon it. Right now, I have RSA rsa = new RSACryptoServiceProvi...
stackexchange/codereview
i was just wondering what i need to research to be able to have a programme that is in the system tray, when the user clicks the programme icon, just above the system tray a small text area appears allowing the user to type in a search condition. There is plenty of resources for c# and getting your programme in the sys...
stackexchange/codereview
Can I develop OpenGL based applications using C#
stackexchange/codereview
I have the following code and freshed this webpage in Firefox for 5 times, then the MySQL showed me 5 connections. According to the PDO Manual, Persistent connections are not closed at the end of the script, but are cached and re-used when another script requests a connection using the same credentials. The p...
stackexchange/codereview
Is there a configuration option for a log4j appender for NOT creating zero-sized log files but create a log file ONLY when something was logged for the first time? So to say create-on-demand. I am using log4j 1.2.12 on some legacy system. Thank you.
stackexchange/codereview
Hi guys i am trying to do and if statement for business catalyst In bc they give you template tags ie {module_webapps,5502,a,} I am trying to run a if statement to add this as code to a div. var pathname = window.location.pathname; if(pathname == '/test') { //var mod = "{module" + '_' + "webapps,5502,a,}"; $('.comme...
stackexchange/codereview
Anyone know? All I can see is ApplyTorque and SetAngularVelocity, I want to just rotate the object before adding it to the simulation, for example: so I have one crate tilted up against a wall and another flat.
stackexchange/codereview
How to read the app key serviceRefPath key in my web.config <appSettings> <add key="serviceRefPath" value="http://localhost/TempWS/MachineHistoryWS.asmx"/> </appSettings> into my .aspx page <asp:ScriptManager ID="sm" runat="server"> <Services> <asp:ServiceReference Path="serviceRefPath here" /> </Servi...
stackexchange/codereview
I need to alter a <style> from the client-side - something like this: <head> <style> img.Bordered { border-style: dashed; } </style> <script type="text/javascript"> function OnBorderChanged () { //Set "border-style" to "solid" for Bordered images. } ...
stackexchange/codereview
When I tried to compile this program, it failed: #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> void *WriteNumbers(void *threadArg) { int start, stop; start = atoi((char *)threadArg); stop = start + 10; while (start < stop) { printf("%d\n", start++); ...
stackexchange/codereview
I have two models, Post and Photo. Photo contains information about photos, the date the original photo was uploaded (or alternatively - shot), a description, a title and more. The post contains post text and a ManyToManyField which links back to photos to see which are related to the post. I however have a problem tha...
stackexchange/codereview
I have built a 3d display application in Javascript/canvas it works quite well. I recently implemented the ability to map textures. I import 3d models from stl format which work well since they only store tris so are easy to import since I haven't got to break them up but they don't store textures. The way textures are...
stackexchange/codereview
I'm new to Haskell and I'm writing a simple AI decision system to play a 20 questions style of game. If the program is unable to guess the correct answer, it will ask for a question to use to distinguish the answer and it will store that question in a tree. It reads the tree in from the file system at the start of the ...
stackexchange/codereview
Are they used with CSS? (non-tables?) How are they used? Please give examples.
stackexchange/codereview
CSS stylesheet div.Header { background-color:#999999; text-transform:capitalize; text-align:center; } div.leftdiv { float:left; height:200px; width:15%; position:fixed; background-color:#FFFF66; text-transform:uppercase; text-align:justify; } div.rightdiv { margin-left:15px; margin-top:25px; float:left; ...
stackexchange/codereview
Just to understand the workings of Spring transactions I want to know what happens in the following case where one method marked as @Transactional calls another method marked as @Transactional. Assume a the configuration uses all default settings. @Service("myService") @Transactional public MyService{ public void my...
stackexchange/codereview
The question is pretty simple but is driving me crazy. Using Safari 5+ <? header('Content-Type:text/html; charset=UTF-8'); header('Location: http://www.mywebsite.es/?parametersandapipe|' ); ?> The destination URL is encoded to http://www.mywebsite.es/?parametersandapipe%7C Is there a way to prevent Safari to encode c...
stackexchange/codereview
After doing some reading I notice Apple pushes the use of delegates on controllers communicating with one another. So say I have a Menu controller which needs to communicate with the help controller (and they need to share info - lol don't ask me why they would). I could do this through delegates, but why use delegate...
stackexchange/codereview
I'm trying to create a universal handler for my buttons, but the following code doesn't seem to recognize the event targets, and instead spits out the target.toString() == the current page URL? html: <a id="button1" href="#"></a> <a id="button2" href="#"></a> jquery/javascript: function myHandler(e) { if (e.targe...
stackexchange/codereview
Basically I have an InfoPath form which recieves some data from a SharePoint list, the problem is I would like to filter this data based on the username of the current user. So I have an Author field in SharePoint which is a 'Person/Group' field. So when I filter the data in InfoPath by saying where Author is equal to...
stackexchange/codereview
I learn the DDD only 2 days, and the following question with the code? public class User { public Int UserId{get;set;} public string Username{get;set;} public List<Role> Roles{get;set;} public User GetUserById(int userid) { // How to write the business logic? // How to instance userRe...
stackexchange/codereview
I want to select all values that does not have a zero from the db using. But in this case I am getting all values with a zero too SELECT column_name(s) FROM table_name WHERE column_name <> value How do I get to use <> in the above query and achieve what I require. Thanks Jean
stackexchange/codereview
Does the role attribute have defined values if so can you tell what they are? Or can I create my own values for the role attribute if is so are they case-sensitive do they have to be letters can there be numbers or both? Or can you have both defined values and user created values.
stackexchange/codereview
I have a generic class, Class<T>, that implements IEnumerable<T>. T is also constrained to implement IConvertable. I also want this class to be able to pretend to be a string-like object, so I want to implement IEnumerable<char>. However, IEnumerable<T> and IEnumerable<char> collide -- what happens if T is char? Does a...
stackexchange/codereview
I have a program with a tree control to assign user permissions like student can access only attendance and staff can assign attendance to students and so on... I want to validate this with javascript to see that if no checkbox in tree is selected or all nodes in a tree is deselected or left empty ..i have to throw a v...
stackexchange/codereview
Greetings everyone- In my code below I'm trying to add a Row from an existing DataTable (dtResult) into a new DataTable (dtCopyResult) if email address does not match. So I guess my knowledge of ADO.NET is not up to par because whenever I try to run my below code, I get an "This Row already belongs to another table". ...
stackexchange/codereview
I am trying to dynamically add tabs to tab control. I have control template in resources: <ControlTemplate x:Key="memoTab" TargetType="{x:Type TabItem}"> <TabItem Header="Memo"> <TextBox Name="memoText" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ...
stackexchange/codereview
HI all I have a form with a list of Customers. Selecting a customer brings another form with a datagrid filled with "BooksBoughtByCustomer" with a datatemplate with a combobox. My Problem is this Populate a datagrid with all the books bought by the customer. Clicking on the comboBox however should list "AllBooksAvailab...
stackexchange/codereview
First example: You can take a huge rock shaped mesh and put a tiled rock texture all over it. Now, some places needs to be covered with a grass texture (or other vegetation). Another example: Usually, terrain are built from tiled textures. In order to achieve a less "tilly" look, you can apply 4 times bigger (or 16 an...
stackexchange/codereview
Anyone know of a full api that explains the javascript calls and methods? Like the ajax component? Cheers, Pete
stackexchange/codereview
I´m trying to printing comparative columns to compare elements with the same index of two or three differents vector. I will illustrate my question with the next example >> a = [5.47758 7.46578 3.45323] a = 5.4776 7.4658 3.4532 >> b = [5.65432 4.45678 2.34789] b = 5.6543 4.4568 2.3479 Now if I write >>...
stackexchange/codereview
I want to generate something like this - the alignment of the nodes is the important thing, not the angle of the edges: +--------------+ | | +--------------+ | | V V +-----+ +-----+ <--- alignment at top | | | | | |->| | | | | | +-----+ | | | | ...
stackexchange/codereview
I made this and needed some help tweaking it so that it gives the proper outcome function daysDifference($end){ //$start = "2007-03-24"; //$end = "2009-06-26"; $now = date("Y-m-d"); $e = (is_string($end) ? strtotime($end) : $end); $diff = abs($e - strtotime($now)); $years = floor($diff / (365 ...
stackexchange/codereview
The log messages in the log viewer in the admin console look like this: 1.2.3.4 - - [13/Nov/2010:06:16:33 -0800] "GET / HTTP/1.1" 200 2121 "http://referrer.example.com" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)" "www.example.com" ms=30 cpu_ms=167 a...
stackexchange/codereview
$('.selector').datepicker({ onChangeMonthYear: function(year, month, inst) { ... } }); I just want the month parameter with leading zero! thank you very much!
stackexchange/codereview
Possible Duplicate: OpenGL or DirectX? Not want to trigger war, but really want to know pros and cons of those two mainstream graphic library?
stackexchange/codereview
I'm basically trying to derive from wfilebuf so I can both output to a file and intercept the output to print it to the console/debug window as well as illustrated here: http://savingyoutime.wordpress.com/2009/04/21/ and/or here: http://savingyoutime.wordpress.com/2009/04/22/40/ (ancient supporting ideas here: http://w...
stackexchange/codereview
I would like to extract some of the information of the uploaded .mp3 files like artist, album, and album art and use it to store them in database and also extract the album art and save it on a separate server folder. How?
stackexchange/codereview
What's the difference in using BindingSource.Current VS BindingSource.CurrencyManager.Current? Thanks.
stackexchange/codereview
The MySQL query below works well as it is. It replaces the field votes_up in a MySQL database with whatever value there is for the variable $votes_up. UPDATE submission SET votes_up = $votes_up WHERE submissionid = $id However, when I try to add a second condition that would simultaneously replace a field ca...
stackexchange/codereview
I would like to get started with game development on PC. I heard there are some commercial game engine to facilitate this process. I am wondering anyone can shed some lights on PCgame development. Thanks.
stackexchange/codereview
I am currently doing an online test system, I want allow admin to create a test and add in few question. I was thinking using datatable add in coloumn with textarea? how can i add new row? or is there any other suggestion to implement add new more questions.
stackexchange/codereview
I am using PackageMaker 3.0.4 & Mac OS Snow Leopard. Successfully make setup by PackageMaker for Cocoa Application. When i try to install application, At Installation type step, install button remain disabled. I have set User sees to "Easy Install only" and Installation Destination to "System Volume". So, how to enable...
stackexchange/codereview
How Can I copy an ellipse or polygon shape from one bitmap to another Bitmap. BitBlt is only useful for copying Rectangles. I currently use GDI but If it is easier to use GDI+, I can use it. I only need a general guidance to show me the right direction.
stackexchange/codereview
Reading through accelerated c++, they give an example I don't understand. It's a while loop with condition (cin>>x). At this point in the script, x has been declared as a double. I understand that the loop executes as long as x successfully receives input, but is >> returning a boolean? I guess I just need a little hel...
stackexchange/codereview
ok im makeing an application im going to tell how i do error logic and displaying in my application // ERROR CHECK if ( !empty( $user_status ) ) $errors[] = language( 'ERROR_USERNAME_USED' ); if ( empty( $_POST['username'] ) ) $errors[] = language( 'ERROR_USERNAME_NULL' ); if ( !( $validation->valid_uid( $_PO...
stackexchange/codereview
gcc 4.4.4 c89 I have the following code in my channel.h file typedef struct channel_tag channel_t; channel_t* open_channel(size_t channel_id); void close_channel(channel_t *channel); And in my channel.c file #include "channel.h" struct channel_tag { size_t channel_id; }; channel_t* open_channel(size_t channel_i...
stackexchange/codereview
Is there a way to start run R interactively on a slave node? Although we can login to the server using qlogin, this does not allow us to launch emacs + ess, which runs on the head node. Thanks! as per @newuser's request, I found the following parts of the PATH variable that are only found when on the head node, but are...
stackexchange/codereview
Just recently got into experimenting with NLog, and it occurs to me that I would like to be able to add header information to the top a log file such as: Executable name File version Release Date Windows User ID etc... After some searching I have been unable to find anything in the existing on-line documentation or co...
stackexchange/codereview
I have a data entry form in WPF built using a Scrollviewer with various elements inside of it, primarily richtextboxes. These allow a user to enter whatever data is needed, adding new sections as required. Down the right hand side border, I have a dynamic list of all the sections currently present, providing a visual r...
stackexchange/codereview
I have a 2D array of pointer main.c Int32 * pRxSeqAddr[2][2]; func(pRxSeqAddr); / func.c void func( Int32** pRxSeqAddrPtr) { /// } I get this error: argument of type "Int32 *(*)[2]" is incompatible with parameter of type "Int32 ** I know if it was 1D array of pointer then this function call is fine, but 2D is n...
stackexchange/codereview
I am facing attached warning message in all HTTPS pages in IE browser. I know it throw this warning when some thing is requested from HTTP serer on HTTPS pages. I checked everything. All images are pointing HTTPS links. JS files are also pointing to HTTPS links. But I don't know why this warning is still there. And IE ...
stackexchange/codereview
Which API would I need to use to get 'n' recent tweets of a particular user with a public account?
stackexchange/codereview
I've created a web page and it contains some settings value in Web.Config for example images. So I want to give the path of images in Web.Config file and file name in that particular image src. I wanted to read that settings only in aspx page not in codebehind. For example Below is my code: Web.Config: <add key="Imag...
stackexchange/codereview
I am quite new with DDD and would like to know about any pitfalls you might want to share. I will summarize it later for more newbies to read :) Thanks Summary so far: Anemic domain model where your entities are primarily only data bearing and contain no business logic Not using bounded contexts enough Focusing too mu...
stackexchange/codereview
I'm trying to optimize some code and I want to instead on checking a value on every method call just define the method to respond with the checking already pre-calculate, because this checking doesn't change on the whole live of the instance. I decided to define different versions of the method for every instance creat...
stackexchange/codereview
I've been trying to debug my code for the past few hours and I couldn't figure out the problem. I eventually set my filestream to throw exceptions on failbit and I found that my filestream was setting the failbit for some reason. I have absolutely no reason why the failbit is being set, because all I'm doing is writing...
stackexchange/codereview
I am writing a simple OpenGL program with Qt Creator which basically creates a QGLWidget, shows it, and runs the application loop. I usually like debugging more with diagnostic messages turned on and off by preprocessor symbols that using an actual debugger and watches etc. In Qt Creator we have a tab called Applicatio...
stackexchange/codereview
I've created a simple application to assist me in learning Rails. Because I like a challenge, I've also started to build, inside this application, a Sinatra app (to handle API calls without the overhead of the full Rails stack). I've come to the point where I want to start testing both applications before I move any fu...
stackexchange/codereview
class A(models.Model): foreign = models.ForeignKey(B, unique=True) I have the code above - how can I ensure that in the dropdown under A's Admin, for 'foreign', I am only presented with unique choices? This is just to prevent a user violating the uniqueness constraint and being presenting with the admin error mess...
stackexchange/codereview
I need to strip out all text before and including "(" and all text after and including ")" in this variable. var this_href = $(this).attr('href'); The above code produces this... javascript:change_option('SELECT___100E___7',21); However it can produce any text of any length within the parenthesis. A Regex solution is...
stackexchange/codereview
LE2. Any other ideas on how to fix this? I have this code and can't figure why is not working properly: $(function autorun() { if ($("#contactForm").is(":visible")){ setInterval( "refreshAjax();", 150000000000 ); } else { setInterval( "refreshAjax();", 15000 ); } setTimeout("autorun();", 2000) }); ... <body onLoad...
stackexchange/codereview
How to convert pkcs8 key file to DER format, to get Private and Public key in Xml format? with openssl I can do it using: openssl pkcs8 -inform DER -in aaa010101aaa_FIEL.key -out aaa.txt aaa010101aaa_FIEL.key is bynary file I'm trying to do it with Bouncy Castle library but I have problems to create new EncryptedPrivat...
stackexchange/codereview
I have an xsl template that I want to call to put into an HTML node attribute: <xsl:variable name="onClickJavaScript"> <xsl:call-template name="GetOnClickJavaScript" /> </xsl:variable> <a id="123"> <xsl:attribute name="onclick"> <xsl:value-of select="$onClickJavaScript" /> </xsl:attribute> </a> My problem is...
stackexchange/codereview
I have the following HTML/JS/jQuery Code. This code represents a login form that is presented modally to the user to allow them to login. The problem is, when I hit enter, the form does not seem to execute the "onsubmit" event. When I click the button as the bottom of the form (which has virtually the same code as the ...
stackexchange/codereview
Header script section. $(document).ready(function(){ var show_link = '/hr/resitration'; // That is current url. var accordion = $("#accordion"); active = ???? // How to found activ url??? accordion.accordion({ header: "h3", active: active, autoHeight: false }); }); in HTML s...
stackexchange/codereview
I'd like to create an HTML form submit button with the value 'add tag', however, the web page is in Swedish, so I'd like to have a different button text. That is, I want to have a button like but I want to have my code like if (request.getParameter(cmd).equals("add tag")) tags.addTag( /*...*/ ); Is this possible?...
stackexchange/codereview
I am developing a windows application with vs.NET 2010 and C# windows forms. This app has an user control that queries a service(WCF hosted on win service) and needs to do this without blocking the UI. The user control contains a grid that will show that results. I think that my situation is most common. My question to...
stackexchange/codereview
are there any good tutorials on zend cache except their official documentation ?
stackexchange/codereview
I'm exporting data using CF9's cfspreeadsheet tags and functions, some columns have HTML formatted text in them. I need to strip out the HTML tags, and convert characters like &lt and &amp to their equivalents. However, I'd also like to keep the effects of bold tags and paragraphs tags if possible. I know I can use re...
stackexchange/codereview
I'm utilizing LightOpenID and I'm trying to get attributes for this gmail authentication but it doesn't appear to return anything on my personal account and I get no errors. I'm very new to OpenID and was hoping someone could help me out who's done this before. I'm specifying the fields on validate() and returning the...
stackexchange/codereview
How we can group the result of the query depending up on the parameter passed. A small stored procedure is shown below. parameter Param is passed to the procedure. If param value is "f" the result must group by starttime otherwise by using formid. How can i do this. ???I tried the code show below but its not working...
stackexchange/codereview
How do you know if actionevent was generated by button or textfield at runtime?
stackexchange/codereview
Greetings. I have a problem where a flash player, when run through firefox, is not including the HTTP cookies. These are included when run through internet explorer. I want to know if anyone knows how to force flash to include cookies when communicating with a flash server? Background Information We have a flash record...
stackexchange/codereview
I am using Settings app to store application settings. I also userdefaults to store internal application settings (which are not exposed in Settings app). For eg, I use user defaults to store the last tab bar index which is not exposed in Settings app. I am subscribing to NSUserDefaultsDidChangeNotification to listen t...
stackexchange/codereview
Help how do I use regex to replace the value of param below <?xml version="1.0" encoding="UTF-8" ?> <games> <game id="1001" path="C:\Program Files\Warcraft III\war3.exe" param="" display="1" priority="0"/> </games> the value of param is empty i wanted to add something to it using regex. or replace the hole param="...
stackexchange/codereview
Let's say I have following ORM classes (fields removed to simplify): class Animal(models.Model): say = "?" def say_something(self): return self.say class Cat(Animal): self.say = "I'm a cat: miaow" class Dog(Animal): self.say = "I'm a dog: wuff" class Animals(models.Model): my_zoo = model...
stackexchange/codereview
We have two classes that have the exact same public accessors (and many of them) but are from different areas in the object hierarchy; we have a need to copy and compare between these two objects. We could manually write a copy constructor and a comparison operator which compares the values of the same-named accessors...
stackexchange/codereview
I have an HTML form inside a WebView. The form control looks like a regular button, but actually it is an html file with a transparent background. When I press the HTML submit button, I want the result to open in the browser, not in the webview. Currently it is opening in the current WebView which is wrecking my layo...
stackexchange/codereview
I've got a common set of make rules being used in multiple directories. Each make is very simple: BASEDIR:=../.. TARGET:=theTarget include Makefile.include Unless overridden, I have a default value for the source code: SRC:= $(wildcard *.cpp) We want to build the object files in a directory (not with the sources), s...
stackexchange/codereview
this escaping from the constructor is not only a design smell but also dangerous. How can ReSharper help me to prevent this escaping from the constructor?
stackexchange/codereview
I have some code here which looks as following: if (isset($_SESSION['addToCart'])) { foreach ($_SESSION["addToCart"] as &$value){ if ($value['titel'] == $titel){ $value['aantal'] = $aantal; if($value['aantal'] == 0){ unset($value); } } } } so...
stackexchange/codereview