radio

F#/“Accelerator v2” DFT algorithm implementation probably incorrect

十年热恋 提交于 2020-01-02 12:46:09
问题 I'm trying to experiment with software defined radio concepts. From this article I've tried to implement a GPU-parallelism Discrete Fourier Transform. I'm pretty sure I could pre-calculate 90 degrees of the sin(i) cos(i) and then just flip and repeat rather than what I'm doing in this code and that that would speed it up. But so far, I don't even think I'm getting correct answers. An all-zeros input gives a 0 result as I'd expect, but all 0.5 as inputs gives 78.9985886f (I'd expect a 0 result

Android radio button uncheck

别来无恙 提交于 2020-01-02 05:12:46
问题 The application is a step sequencer application with 16 radio groups with 8 buttons in each group. It works perfectly except once a group has a button selected I cant turn it off unless I use the clear button I have created to clear all radiogroups. What I would like to add is some code that says when a selected radio button is selected again it simply turns off like a toggle. I tried using toggles but then other issues arose with that method. Below are two attempts but both simply stops me

How to open up a new tab in a pop-up?

人盡茶涼 提交于 2020-01-01 11:59:14
问题 I don't know too much about programming but somehow I managed to make a pop-up window work. However, I need that from inside the new window (the pop-up one) a button on the pop-up will open a new tab. But I don't need the new tab open in the main browser, I want it open in the same pop-up. Is this possible? How can I do it? I show both the pop-up code and the redirection code that is, at present, sending people to another tab in my web browser, but I need to do it in the same pop-up window

jquery val()用法详解

孤街浪徒 提交于 2019-12-31 16:16:35
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml "> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script src="../scripts/jquery-1.3.1.js" type="text/javascript"></script> <script language="javascript"> $(function(){ /* val() 描述:获得第一个匹配元素的当前值 返回值:String,Array */ //select显示选中值 $("#bt_single").click(function(){ alert($("#single").val()); }); //多行select显示选中的多行的值,默认逗号隔开,可用join函数指定隔开符号 $("#bt_multiple").click(function(){ alert($("

优化checkbox和radio,类似Bootstrap中的iCheck

半世苍凉 提交于 2019-12-31 13:41:28
checkbox和radio浏览器默认的已经满足不了大众的审美需求,更不用说浏览器之间的差异化,取而代之,优化checkbox和radio的方法也随之诞生了。 html结构: 单选框为例,简单说明: 其中必需项包括:class="radio" 和 name="名称" <div class="radio" name="sex" value="boy"><ins></ins><span>帅哥</span></div> <div class="radio" name="sex" value="girl"><ins></ins><span>靓妹</span></div> <div class="radio" name="sex" value="unsex"><ins class="disabled"></ins><span>未选中不可点击</span></div> <div class="radio" name="sex" value="sexed"><ins class="enable"></ins><span>选中不可点击</span></div> css表现: transition介绍: 元素从一种样式逐渐改变为另一种的效果。 transition 简写属性,用于在一个属性中设置四个过渡属性。 transition-property 规定应用过渡的 CSS 属性的名称。

PHP - Store & Calculate the total mark from radio input

点点圈 提交于 2019-12-31 06:08:34
问题 I have designed a small web-based system that have a school evaluation form to ask specific users who can access the system" some questions and the input will be a radio type ( 1 or 2 or 3 or 4)! the code is working and can inserts the input into the database but i don't know the correct query to calculate the total mark and store it in the database, this is currently working code below: <?php session_start(); $Load=$_SESSION['login_user']; include('../connect.php'); $sql= "Select name from

JSP Radio Button Values

怎甘沉沦 提交于 2019-12-31 04:27:12
问题 I was wondering how to get radio button values. So suppose, I have a form that has two radio buttons. I would like to get the value associated with the button. However, I get null when I try to. Form portion <form method="post" action="insert.jsp" enctype=text/plain> <table> <INPUT TYPE="radio" name="command" value="0">Run<INPUT TYPE="radio" NAME="command" VALUE="1">Walk<BR> Insert.jsp portion String sCommand=(String)request.getParameter("command"); out.println(sCommand); So in turn, it

Playing mp3 Shoutcast streams with HTML5 audio in Firefox?

一世执手 提交于 2019-12-31 01:47:45
问题 I'm trying to play mp3 shoutcast stream radio stations with HTML5 audio. I don't think it will be relevant but here is the code anyway: var player = new Audio(); player.autobuffer = true; player.src = "http://173.192.48.71:9048/;"; player.volume = 1; player.play(); Shoutcast detects that request comes from browser and returns radio status page, so I put ";" at the end of stream which forces server to return audio stream instead of status page. This works fine in Chrome and Safari, but not in

5.表单

喜你入骨 提交于 2019-12-30 00:24:39
1.基本表单实例 .form-control类的<input> <textarea> <select>元素等都被默认设置宽度属性为width:100% .form-group{ margin-bottom : 15px; } <form> <div class="form-group"> <label for="u_email">邮箱</label> <input type="email" class="u_email form-control" id="u_email" placeholder="请填写邮箱地址"> </div> <div class="form-group"> <label for="u_password">密码</label> <input type="password" class="u_password form-control" id="u_password" placeholder="请填写密码"> </div> <div class="form-group"> <label for="inputfile">上传文件</label> <input type="file" id="inputfile"> <p class="help-block">帮助提示文本区域</p> </div> <div class="checkbox"> <label>

Listen to a shoutcast with Android

回眸只為那壹抹淺笑 提交于 2019-12-28 03:32:29
问题 since quite some time I'm trying to listen to .pls files (shoutcasts). I have to say that I failed horrible. Since StreamFurious can do it it must be possible. First I tried to connect to the shoutcast via sockets (TCP and UDP) --> failed. I couldn't even receive one byte from the server. I'm at the verge of tears. I don't even have a clue what's the best way to establish a connection and afterwards continually download/receive the data stream. I really hope someone can point me to the right