C

C stands for Control.
Nov 18, 2016 17:44
so that's my next plan
Nov 18, 2016 17:44
documentation for including a fixed phy in the device tree
Nov 18, 2016 17:44
Nov 18, 2016 16:16
My issue is that I want to use this driver (kernel.org/doc/menuconfig/drivers-net-phy-Kconfig.html, Fixed_phy) on an ethernet interface (eth1) and I don't know (1) what the .ko name is to modprobe it or 2 what the compatible field should be so that linux knows to use that driver.
Nov 18, 2016 16:12
@Kamiccolo modprobe compares a driver's .compatible string with the corresponding field in the device tree to see if the driver is applicable for that hw... yes.
Nov 18, 2016 16:01
Precise question: "Does a driver have to have a compatible string for modprobe to use? What if it doesn't? I can't find the compatible string in the fixed_phy driver: lxr.free-electrons.com/source/drivers/net/phy/…;
Nov 18, 2016 16:00
I'm stuck on a linux driver issue - can I ask about it on stackoverflow or is there another website I should use?
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Apr 18, 2015 12:47
afternoon :)
Apr 18, 2015 12:41
My most recent attempt (broken) is this: jsbin.com/pafariqohi/1/edit?html,output where I filter out the levels below 2 during the revert, but I don't know how to get the child levels back again. As a noob, am I biting off more than I can chew with this?
Apr 18, 2015 12:27
Hello! I am working on this: jsbin.com/puruzebovu/1/edit?html,output and can't figure out how to only display only the top level data in the zoomed-out view
Jun 12, 2013 00:11
haha @angelatlarge
May 24, 2013 09:13
@phenomnomnominal, thanks. google is complete and utter crap at searching for special characters.
3
May 24, 2013 09:10
@phenomnomnominal, in your coffescript code, $-> is at the start of what I assume is the main. $ is for jquery, -> is for function, but I'm not really sure what they mean together in practise. Are you performing a jquery on the result of you main?
May 24, 2013 04:32
@phenomnomnominal, this just draws the waveform, I would also like to make it "interactive", where the user could click on the part of the waveform and have it play from there. So I need a listener which detects which part of the waveform I've clicked on and sends that to the audio player, is that correct?
May 24, 2013 04:26
@phenomnomnominal, ok, I'll try that.
May 24, 2013 04:25
but it's in coffeescript. is that a better choice than javascript?
May 24, 2013 04:25
@phenomnomnominal, I mean maybe continuing to build on your code example? I want to give that a try
May 24, 2013 04:22
Is this audio-playing project too complicated for someone starting to learn js? I would like to give it a try on my own.
May 24, 2013 04:21
oh cool. @phenomnomnominal, that looks great!
May 24, 2013 04:03
@FizzyTea, I assume left and right for stereo?
May 24, 2013 04:03
@phenomnomnominal, where is the wrapper width defined?
May 24, 2013 03:15
I added 1 to each field and clicked submit and it said forbidden
May 24, 2013 03:11
@FizzyTea, the vieweing waveform bit is where I'm stuck, though. All of my google results gave players that just played lists of songs, with no waveform
May 24, 2013 03:10
@XCritics, I'm not a js coder myself, so I wouldn't know where to start, which is why I'm here.
 

Perl

Discussion & programming exchange for perl (and sister languag...
Nov 6, 2013 13:00
Quick question: i'm writing the output of a command to a log file like so:

open FILEHANDLE, ">", $log_file or die $!;
printf FILEHANDLE `ant clean release`;
close(FILEHANDLE);

But only the first line of the multi-line output is written to the file. Am I missing anything here?
Nov 5, 2013 20:11
hi @Baywatch
Nov 5, 2013 20:11
Hello!
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Nov 6, 2013 11:22
hi :) @JonClements
Jun 25, 2013 11:51
@Ignacio, @Jon, Thanks
Jun 25, 2013 11:44
Question, I have a string: "0.06272888183593750000". this string represents a fixed point number of containing 2 int bits and 15 fractional bits. so it is a 17 bit number. Shouldn't it cast to a floating point with no problem at all? How come when I cast it to float, I get 0.0627288818359 and lose the last few digits?
Jun 25, 2013 11:40
@JonClements, hi. or should i say, cabbage
Jun 24, 2013 08:55
Potato?
Jun 24, 2013 08:23
what is an audit? and how do you fail one?
Jun 24, 2013 08:08
I'm attempting to transmit data over udp from python, and monitoring the interface via wireshark to see if anything is actually going out, but I'm not seeing much on wireshark
Jun 24, 2013 08:07
Is anyone familiar with using python + socket + linux to transmit packets over UDP?
Jun 24, 2013 07:47
@Haidro, awesome, that's magic. Thanks so much
Jun 24, 2013 07:45
@Haidro each int in the list is an ascii character code, so I want [65,66,67] to become "ABC"
Jun 24, 2013 07:42
list is approx ~600 integers long.
Jun 24, 2013 07:40
hello! Question: I have a list of integers: [65,66,67] for example, all less than 256. How do i cast that to a string? result: "ABC". The only thing I can think of is to use a for loop and convert each element to a char and concatenate. Is there a better way?
Jun 12, 2013 09:02
does anyone know if python socket supports jumbo ethernet frames? I've been digging around the documentation and can't seem to find an explicit confirmation
Jun 5, 2013 10:05
Hello! I would like to refresh a picture I'm displaying with pyqt4 every second, but the window changes to "not responding". Code: pastebin.com/PLRpuw8z
Jun 4, 2013 05:48
that explains a lot
Jun 4, 2013 05:47
So when I create a for loop and am appending the same image multiple times, python is actually just repeatedly appending a pointer to that image instead of creating multiple instances
Jun 4, 2013 05:46
@Cairnarvon, thanks.
Jun 4, 2013 05:44
ah, you are correct. blankimage.copy() worked
Jun 4, 2013 05:43
is that really making a copy, or are all my list elements still going to be pointing to the same thing?
Jun 4, 2013 05:42
I had wholeimage.append(copy.copy(blankimage));
Jun 4, 2013 05:42
@Cairnarvon, I thought that making a copy would fix that?
Jun 4, 2013 05:40
Hi @Cairnarvon, I tried using wholeimage = [] and appending a copy of one blank image that I'd made Blockmax times in a loop, would that work? It seems like all of the images are the same, but I don't know if that's from this or something else in my code
Jun 4, 2013 05:24
Hello! I want to make an array of images. Currently I'm doing this:
`for a in range(0,BlockMax):`
`wholeimage[a] = Image.new("RGB",[128,128])`
However, python is saying that wholeimage is undefined. How do I initialise wholeimage to be an array? Is there a better way of doing this?