Tag: na

58 votes
7 answers
1.8K views
Map function in MATLAB?

I'm a little surprised that MATLAB doesn't have a Map function, so I hacked one together myself sinc

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
56 votes
9 answers
1.9K views
Using i and j as variables in MATLAB

i and j are very popular variable names (see e.g., this question and this one). For example, in loops: for i=1

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
53 votes
8 answers
979 views
Find out what process registered a global hotkey? (Windows API)

As far as I've been able to find out, Windows doesn't offer an API function to tell what application

avatar
Elicia
0 1 0 9
asked 07 September, 2021
50 votes
13 answers
1.6K views
Boolean method naming readability

Simple question, from a readability standpoint, which method name do you prefer for a boolean method: public

avatar
Tuan
0 1 0 9
asked 07 September, 2021
56 votes
10 answers
2.9K views
How do I pause my shell script for a second before continuing?

I have only found how to wait for user input. However, I only want to pause so that my while true doesn't

avatar
Benton
0 1 0 9
asked 07 September, 2021
58 votes
16 answers
1K views
How to reload .bashrc settings without logging out and back in again?

If I make changes to .bashrc, how do I reload it without logging out and back in?

avatar
Freida
0 1 0 9
asked 07 September, 2021
51 votes
30 answers
1.5K views
How to concatenate string variables in Bash

In PHP, strings are concatenated together as follows: $foo = "Hello"; $foo .= " World"; Here, $foo becomes

avatar
Luis
0 1 0 9
asked 07 September, 2021
60 votes
1 answers
834 views
Joomla get('Items') and how it works

I am looking at line 34 of /administrator/components/com_contact/views/contacts/view.html.php where is says $t

avatar
Yolando
0 1 0 9
asked 07 September, 2021
52 votes
3 answers
1.2K views
Is Plone doing enough to keep up with other CMSes?

I do Drupal for a living and I like the system. However I've always been intrigued by Plone and wanted to

avatar
Corey
0 1 0 9
asked 07 September, 2021
53 votes
3 answers
711 views
How are people handling content management system production staging?

I've been dipping my toe into web development technologies for fun (ya, i should get out more), and am a

avatar
Deedee
0 1 0 9
asked 07 September, 2021
55 votes
3 answers
425 views
Working with version control on a Drupal/CMS project

I was wondering how teams that develop sites using Drupal (or any other CMS) integrate version control, subver

avatar
Basil
0 1 0 9
asked 07 September, 2021
50 votes
9 answers
1.2K views
How to get the full URL of a Drupal page?

I need to be grabbing the URL of the current page in a Drupal site. It doesn't matter what content type i

avatar
Arline
0 1 0 9
asked 07 September, 2021
55 votes
3 answers
2.3K views
how to select all class except the clicked element in JQuery?

I have a website developed on Drupal. I use a module called collapsiblock (it is basicly a JQuery plugin) to a

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
66 votes
5 answers
2.6K views
What does "xmlns" in XML mean?

I saw the following line in an XML file: xmlns:android="http://schemas.android.com/apk/res/android" I have

avatar
Scot
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
1.8K views
What's "tools:context" in Android layout files?

Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for e

avatar
Chaya
0 1 0 9
asked 07 September, 2021
63 votes
17 answers
3K views
Using LINQ to concatenate strings

What is the most efficient way to write the old-school: StringBuilder sb = new StringBuilder(); if (strings.C

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
56 votes
4 answers
1.1K views
Convert Linq Query Result to Dictionary

I want to add some rows to a database using Linq to SQL, but I want to make a "custom check" before adding the

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
50 votes
3 answers
1K views
How to implement band-pass Butterworth filter with Scipy.signal.butter

UPDATE: I found a Scipy Recipe based in this question! So, for anyone interested, go straight to: Contents ยป

avatar
Rufus
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
2.7K views
How to smooth a curve in the right way?

Lets assume we have a dataset which might be given approximately by import numpy as np x = np.linspace(0,2*np

avatar
Bryan
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
474 views
Does Conda replace the need for virtualenv?

I recently discovered Conda after I was having trouble installing SciPy, specifically on a Heroku app that I a

avatar
Percy
0 1 0 9
asked 07 September, 2021