Search Results

Search: Posts Made By: figaro
8,224
Posted By figaro
Python: make dual vector dot-product more pythonic
I have this dot product, calculating weighted means, and is applied to two columns in a list:
# calculate weighted values in sequence
for i in range(len(temperatures)-len(weights)):
...
Forum: Programming 01-29-2019
4,086
Posted By figaro
MySQL: calculating when query ready
I have a big, ugly query which is quadratic in the input size and therefore want to display an approximate completion time prior to sending it off:


select concat('Ready by ', time(now() +...
Forum: Programming 12-12-2018
4,272
Posted By figaro
This is what I have come up with in the meantime:...
This is what I have come up with in the meantime:
select *
from (select events.*, case when in_event then @delta := level else @delta end delta from events, (select @delta := 0) e order by date)...
Forum: Programming 12-08-2018
4,272
Posted By figaro
SQL: copying data up
I need to fix an SQL statement in MySQL that should calculate a field using values from two of the columns and I prefer to do this using set-based programming, ie not procedural. What needs to happen...
Forum: Web Development 05-31-2015
3,614
Posted By figaro
Google for slideshow javascript and many examples...
Google for slideshow javascript and many examples of sample code will come to the fore.
Forum: Web Development 05-27-2015
2,735
Posted By figaro
Of course you can always use Google: ...
Of course you can always use Google:
https://en.wikipedia.org/wiki/List_of_content_management_systems

Are you familiar with any CMS? This matters, because understanding the technical limitations...
Forum: What is on Your Mind? 03-18-2015
3,082
Posted By figaro
Internet Explorer EOL
Hard to imagine that in the two decades of its existence this product once ruled supreme, but the news is finally there:
RIP Internet Explorer: Twitter mourns and mocks death of Microsoft...
Forum: Open Source 03-16-2015
8,539
Posted By figaro
Google Code no longer supported at start of 2016
As per the following announcement: ​Google Open Source Blog: Bidding farewell to Google Code (http://google-opensource.blogspot.nl/2015/03/farewell-to-google-code.html)

A lot of open source...
Forum: Red Hat 01-02-2015
3,852
Posted By figaro
The temperature logger came with a CD with...
The temperature logger came with a CD with software, but it was developed for MS Windows. I am looking to access the data logged onto it. I will worry about changing the sampling frequency later.
Forum: Red Hat 01-01-2015
3,852
Posted By figaro
Thank you for your response. The command leads to...
Thank you for your response. The command leads to the following error message:
mount: special device /dev/hiddev0 does not exist
Forum: Red Hat 12-31-2014
3,852
Posted By figaro
Mounting temperature logger on Centos 7.0
When inserting a temperature logger into a Centos 7.0 machine, the relevant dmesg lines read:
[86557.171461] usb 2-1.4: new full-speed USB device number 4 using ehci-pci
[86557.258621] usb 2-1.4:...
Forum: Hardware 12-01-2014
5,824
Posted By figaro
For the record, the upgrade from Centos 6.5 to...
For the record, the upgrade from Centos 6.5 to Centos 7 was performed again and we have been experiencing no higher temperature than 45C, routinely lower than 40C. This is the case for the last two...
Forum: What is on Your Mind? 12-01-2014
11,717
Posted By figaro
There is a related thread in this subforum: ...
There is a related thread in this subforum:
https://www.unix.com/what-is-on-your-mind-/141344-how-can-we-increase-size-our-community.html
Whatever solution is put in place, I think it should be...
Forum: Programming 11-25-2014
2,803
Posted By figaro
A nested query must have an alias, so I added 'X'...
A nested query must have an alias, so I added 'X' as the alias in your code:

select id, 'today', 'monthago', today, monthago
from (
SELECT id, stdate, DATE_SUB(CURDATE(), INTERVAL 1 month) as...
Forum: Programming 11-18-2014
5,364
Posted By figaro
There are countless examples of that on the...
There are countless examples of that on the internet, for example here:
PHP Select Data From MySQL (http://www.w3schools.com/php/php_mysql_select.asp)
From the first example on that page you would...
Forum: Programming 11-18-2014
5,364
Posted By figaro
Can you explain a little more about how to get...
Can you explain a little more about how to get the increment value? How is it stored in the MySQL table?
For the minimum and maximum value you would normally perform something like this:
SELECT...
Forum: Programming 11-18-2014
9,018
Posted By figaro
Thank you again for your response. SVG format is...
Thank you again for your response. SVG format is supported and I am using Ctrl-Shift-J as a surrogate for Firebug.
Forum: Programming 11-17-2014
9,018
Posted By figaro
I dont understand this solution. You are...
I dont understand this solution. You are declaring an object test that is not actually used for display purposes. This looks very hackish to me:
img = document.getElementById("test")
Forum: Programming 11-17-2014
9,018
Posted By figaro
Javascript: displaying images with onchange event
I am looking to display the pdf of one of two distributions, depending on what the user selected:

<script type="text/javascript">
function distributionChange() {
var img =...
4,460
Posted By figaro
Thank you all for your answers. Some elegant...
Thank you all for your answers. Some elegant solutions have been proposed!
4,460
Posted By figaro
Logical OR in shell script
I have code as follows to perform some validations on C++ and Javascript files:
if [ "$ext" -eq "cpp" ] || [ "$ext" -eq "h" ] || [ "$ext" -eq "js" ]; then

However, when I want to add other...
12,053
Posted By figaro
Point number 5 is key to answering your question....
Point number 5 is key to answering your question. Without having a connection you would be stuck with ftp-type solutions, scp solutions or what gandolf989 is proposing. As far as I know there is no...
Forum: High Performance Computing 09-30-2014
9,280
Posted By figaro
I think if you embark on something that has the...
I think if you embark on something that has the potential to become quite large, you should not overreach. Start with something that works for you, even if not all the details are implemented yet....
Forum: Web Development 09-30-2014
2,963
Posted By figaro
Trac styling
I am using trac (The Trac Project (http://trac.edgewall.org/)) for an intranet and want to ensure the styling is aligned with the corporate styling. After I have identified and amended the...
Forum: Web Development 09-30-2014
4,116
Posted By figaro
And then as the final step, force it to two...
And then as the final step, force it to two decimals as follows:
num.toFixed(2)
Showing results 1 to 25 of 500

 
All times are GMT -4. The time now is 02:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy