My girlfriend's brother is over here. He wanted us to let his girlfriend stay at our house. I said no. But my girlfriend said they could take an old mattress of ours.
This just opens all drawing files in solidworks and saves as a .pdf file. I just wanted to make sure it can't stuff anything up if I let it go on the actual drawings database (i.e. all our files) and hopefully make sure it won't encounter any errors.
using SolidWorks.Interop.sldworks;
using Soli...
There are the type that want to be like you and inundate you with questions and advice seeking... then there are those that want to be like you, but it's more important to them that you know how awesome they are at things...
I'm trying to program a volatility updating rule using iteration. I start with the well know Heston-Nandi model where the returns dynamics are :
with is iid standard normal randome variable, where is time-varying squared volatility, , and .
I want to do is to write the code associate to t...
I have developed simple weather application that provides the current weather report based on city provided by user. Can any one help me to please improve the following Code
MAIN ACTIVITY
public class MainActivity extends ActionBarActivity implements OnClickListener {
TextView lblLocat...
I am re-doing a module that I have failed, My first assignment have some questions that are identical to the ones I answered last year, would I be violating any laws or academic practices by copying my own answers from last year and re-use them?
Here's the level annoyance I'm at... earlier in the conversation I overheard, he was bragging about how much he gets paid (which isn't much... but it's definitely enough that he could get his own stuff).
... and for this reason, the professor isn't committing plagiarism despite asking the same questions two years running. He never claimed the questions are original, just that the answers must be. — Steve Jessop9 hours ago
Does anyone who is good with Linux know if it is possible to obtain easy use of command line commands without having to call system? For example, is there a curl.h that comes with the curl command?
Is it possible to optimize this solution to N-queens puzzle?
#include <iostream>
#include <cstdio>
#include <cstdlib>
#define N 10
using namespace std;
/* print solution */
void printSolution(int board[N][N])
{
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
cout<<board[i][j]
is it better performance or not to call one of two separate functions in response to an if statement over passing an argument to a function? And what are the performance implications?
function display(showObject) {
if ( showObject === true ) {
console.log("it be visible");
} else {
console.l...
There's some repetition in here. I tried making it into a function but then the response wasn't filling up the #project-container div. Is there a way to condense this code to make it more elegant?
// Activate projects
$('.post-link').click(function(e) {
e.preventDefault();
var post_id =...
@all I found a number of skins for Prettify to start with, see this. I've been curious about experimenting with a dark skin (as well as a light one) which one would you personally prefer?
looking for quick review of how I could write this any better. Basically, I'd like to attach a click event to some anchor tags, and look at the anchor tags to determine if the href of that anchor contains some text. If it does, then do something with it.
jQuery('a').on('click', function (i) {
...
In my previous question, I got heaps of good advice BUT no solution for the problem apposed.
I applied the valuable learnings from the past on this.question and am also hitting it from a different angle.
The second part is the reason I didn't mark the question as 2.0 version of the first but fe...
I remember an SO question asking if it's possible to "edit the Internet" with Python. This had to do with obtaining something on some online game site. I shit you not.
In the game of Narcotic Solitaire, played with a standard 52-card deck, the player deals a row of four cards onto the table, from left to right. If all four cards are of the same value, they are removed from the game. If two or three cards are of the same value, they are moved on top of the leftm...
Verifying answers which contain code from a mobile application is at the very least problematic, and at worst impossible.
On Stack Overflow, asking a question is supposed to be based on a specific programming question. It should be detailed, well researched, and answerable.
Preferably it should...
I am current doing my C# assignments!. I want to know are there any programming commenting conventions? I currently commented my codes in present continuous tense. Is that OK or should I change it to future tense / verb. Please explain me and please post me some codes with comments. Thanks in adv...
I have an IRepository class that I use a lot. But I noticed that for many of my repositories I do not implement most of the methods. Also, I usually don't have a TKey that I want to specify if I'm not using the GetById method but the current design forces me to specify it. I was thinking of c...
In my previous question, I got heaps of good advice BUT no solution for the problem apposed.
I applied the valuable learnings from the past on this.question and am also hitting it from a different angle.
The second part is the reason I didn't mark the question as 2.0 version of the first but fe...
I am not a big fan of the other ones which stay so long that you should manually go and press the tiny X on their corner to get rid of them, but this one is just super quick
emm... interesting... I should find out why my SE notifications are super fast.
I am writing something in a blog and I want to write this sentence
Its a very hard thing to follow a path you believe in and are
passionate about when everything around you starts to _________ and
every tom dick and harry you know takes the other lucrative path
I want to fill up the bla...
> A region is a comment... this is like commenting on a comment, it's ...a meta-comment! Remove fearlessly.
@Mehrad ^^
interface review anyone?
@Mat'sMug It is made up. The original question was about interface design. You asked for example code to maybe get a clearer understanding of what the interface was doing and I tried to give that without giving any of my internal repos away (DTOs, tables, etc). But to answer your questions, anything can use the repos. Could be the service/business layer. I have sometimes used these IRepositorys directly in an ApiController constructor and use them as CRUD methods mapping to Get, Put, Post, Delete. — Issa Fram8 mins ago
@Mat'sMug I have learned so much from the comments on my coding habits in CR. They are useful and are the things which stop you from doing stupid mistakes and not even making it to the serious business.
I have made so many changes on this code here and there than now that you point it out I can see how inconsistent that bunch on the top are.
I know that the browsers are very flexible with html, but is there any other reason why this is possible?
<table>
<tr>
<th>
Column 1
</th>
</tr>
<table>
^^^ Note that the HTML tag names are now green. I believe they were... maroon before?
Also, there's a rumble happening about editing questions on Stack Overflow too... edit a question and you're not using a monospace font in the editor... really disconcerting.
I have been struggling with integrating Spring Security and FreeMarker template in Spring MVC application. I used a very simple login form to submit the username and password to /j_spring_security_check. I am able to login and retrieve user's roles in Java layer. But when I tried to check Role i...