Questions

Flask raises TemplateNotFound error even though template file exists

I am trying to render the file `home.html`. The file exists in my project, but I keep getting `jinja2.exceptions.TemplateNotFound: home.html` when I try to render it. Why can't Flask find my templat...

16 Jul at 19:38

Flask-SQLalchemy update a row's information

How can I update a row's information? For example I'd like to alter the name column of the row that has the id 5.

1 Dec at 07:16

How do I write to the console from a Laravel Controller?

So I have a Laravel controller: ``` class YeahMyController extends BaseController { public function getSomething() { Console::info('mymessage'); // <-- what do I put here? return ...

22 Jan at 20:43

How can I declare a two dimensional string array?

``` string[][] Tablero = new string[3][3]; ``` I need to have a 3x3 array arrangement to save information to. How do I declare this in C#?

Cast Object to Generic Type for returning

Is there a way to cast an object to return value of a method? I tried this way but it gave a compile time exception in "instanceof" part: ``` public static <T> T convertInstanceOfObject(Object o) { ...

25 Jan at 15:34

How to loop an object in React?

New to React and trying to loop Object attributes but React complains about Objects not being valid React children, can someone please give me some advice on how to resolve this problem? I've added cr...

10 Oct at 20:7

How to move table from one tablespace to another in oracle 11g

I run `oracle 11g` and need to move `table (tbl1)` from one `tablespace (tblspc1)` to another `(tblspc2)`. What is the easiest way to do that?

31 Oct at 20:16

How do I count a JavaScript object's attributes?

Suppose I have the following object in JavaScript: ``` var object = { "key1": "value1", "key2": "value2", "key3": "value3" }; ``` How do I find out how many values exist in the object?

29 Mar at 20:49

Can we have multiple "WITH AS" in single sql - Oracle SQL

I had a very simple question: Does oracle allow multiple "WITH AS" in a single sql statement. Example: ``` WITH abc AS( select ......) WITH XYZ AS(select ....) /*This one uses "abc" multiple times*...

29 Oct at 09:38

How to tell which commit a tag points to in Git?

I have a bunch of unannotated tags in the repository and I want to work out which commit they point to. Is there a command that that will just list the tags and their commit SHAs? Checking out the tag...

14 Mar at 17:43

How do I make a column unique and index it in a Ruby on Rails migration?

I would like to make a column `unique` in Ruby on Rails migration script. What is the best way to do it? Also is there a way to index a column in a table? I would like to enforce `unique` columns in ...

27 Dec at 17:25

'Access denied for user 'root'@'localhost' (using password: NO)'

I'm trying to set the password of the user root but I'm gettin the error below, any idea? ``` +--------------------------------------------------------------------------------------------------------...

30 Jun at 02:57

Better way to revert to a previous SVN revision of a file?

I accidentally committed too many files to an SVN repository and changed some things I didn't mean to. (Sigh.) In order to revert them to their prior state, the best I could come up with was ``` svn...

25 Oct at 10:9

Add URL link in CSS Background Image?

I have a CSS entry that looks like this: ``` .header { background-image: url("./images/embouchure.jpg"); background-repeat: no-repeat; height:160px; padding-left:280px; padding-to...

15 Apr at 07:50

How to compare different branches in Visual Studio Code

How do I compare two different branches in Visual Studio Code? Is it possible?

18 May at 16:7

How to view hierarchical package structure in Eclipse package explorer

OK here's what I would like: in the Eclipse package explorer, I see the following: (dot represents a clickable arrow that I can use to expand the folder) - - - - - - - - Long story short, I want to...

string.split - by multiple character delimiter

i am having trouble splitting a string in c# with a delimiter of "][". For example the string "abc][rfd][5][,][." Should yield an array containing; abc rfd 5 , . But I cannot seem to get it to wo...

10 Aug at 12:48

Converting string format to datetime in mm/dd/yyyy

I have to convert string in mm/dd/yyyy format to datetime variable but it should remain in mm/dd/yyyy format. ``` string strDate = DateTime.Now.ToString("MM/dd/yyyy"); ``` Please help.

6 Apr at 11:46

Can't install Scipy through pip

When installing scipy through pip with : ``` pip install scipy ``` Pip fails to build scipy and throws the following error: ``` Cleaning up... Command /Users/administrator/dev/KaggleAux/env/bin/py...

26 Oct at 17:50

python list by value not by reference

Let's take an example ``` a=['help', 'copyright', 'credits', 'license'] b=a b.append('XYZ') b ['help', 'copyright', 'credits', 'license', 'XYZ'] a ['help', 'copyright', 'credits', 'license', 'XYZ'] `...

21 Jan at 16:1

Reload content in modal (twitter bootstrap)

I'm using twitter bootstrap's modal popup. ``` <div id="myModal" class="modal hide fade in"> <div class="modal-header"> <a class="close" data-dismiss="modal">×</a> <h3>Header</h3...

12 Dec at 09:59

Jenkins: 403 No valid crumb was included in the request

I configured Jenkins in [Spinnaker](https://en.wikipedia.org/wiki/Spinnaker_(software)) as follows and setup the Spinnaker pipeline. ``` jenkins: # If you are integrating Jenkins, set its location...

4 Dec at 03:39

How to print a Groovy variable in Jenkins?

I have the following code within a Jenkins pipeline: ``` stage ('Question') { try { timeout(time: 1, unit: 'MINUTES') { userInput = input message: 'Choose server to publish to:...

How to use a dot "." to access members of dictionary?

How do I make Python dictionary members accessible via a dot "."? For example, instead of writing `mydict['val']`, I'd like to write `mydict.val`. Also I'd like to access nested dicts this way. For ...

What is the strict aliasing rule?

When asking about [common undefined behavior in C](https://stackoverflow.com/questions/98340/what-are-the-common-undefinedunspecified-behavior-for-c-that-you-run-into), people sometimes refer to the s...