similar to: [OT] GNU bc base conversion

Displaying 20 results from an estimated 1100 matches similar to: "[OT] GNU bc base conversion"

2015 Aug 28
3
[OT] GNU bc base conversion
On Aug 28, 2015, at 9:50 AM, Gordon Messmer <gordon.messmer at gmail.com> wrote: > > On 08/28/2015 07:15 AM, Mike - st257 wrote: >> Thoughts as to why my BC functions aren't properly converting between bases? >> >> Decimal to binary or hex works fine, but not binary or hex to decimal and >> so forth. > > I'm not an expert in bc, so I might be
2015 Aug 31
1
[OT] GNU bc base conversion
On 08/31/2015 05:55 AM, Mike - st257 wrote: >>> I'm not an expert in bc, so I might be wrong, but it looks like setting >> >the ibase inside a function is simply too late. ibase affects how bc >> >interprets input. >> > > Thanks Gordon. > Big bummer given that behavior. :-/ I suppose that depends on what you're trying to accomplish. Most
2015 Aug 31
2
[OT] GNU bc base conversion
On Aug 31, 2015, at 10:05 AM, Mike - st257 <silvertip257 at gmail.com> wrote: > > On Mon, Aug 31, 2015 at 11:15 AM, Warren Young <wyml at etr-usa.com> wrote: > >> ibase=A and obase=A > > Not sure how this helps me with my most recent example of bin_to_hex where > the ibase within the define clause wasn't honored. That?s because your bin_to_hex function
2015 Aug 31
0
[OT] GNU bc base conversion
On Fri, Aug 28, 2015 at 4:14 PM, Warren Young <wyml at etr-usa.com> wrote: > On Aug 28, 2015, at 9:50 AM, Gordon Messmer <gordon.messmer at gmail.com> > wrote: > > > > On 08/28/2015 07:15 AM, Mike - st257 wrote: > >> Thoughts as to why my BC functions aren't properly converting between > bases? > >> > >> Decimal to binary or hex
2015 Aug 31
0
[OT] GNU bc base conversion
On Mon, Aug 31, 2015 at 1:06 PM, Warren Young <wyml at etr-usa.com> wrote: > On Aug 31, 2015, at 10:05 AM, Mike - st257 <silvertip257 at gmail.com> wrote: > > > > On Mon, Aug 31, 2015 at 11:15 AM, Warren Young <wyml at etr-usa.com> wrote: > > > >> ibase=A and obase=A > > > > Not sure how this helps me with my most recent example of
2015 Aug 28
0
[OT] GNU bc base conversion
On 08/28/2015 07:15 AM, Mike - st257 wrote: > Thoughts as to why my BC functions aren't properly converting between bases? > > Decimal to binary or hex works fine, but not binary or hex to decimal and > so forth. I'm not an expert in bc, so I might be wrong, but it looks like setting the ibase inside a function is simply too late. ibase affects how bc interprets input. So
2015 Aug 31
2
[OT] GNU bc base conversion
On Aug 31, 2015, at 6:55 AM, Mike - st257 <silvertip257 at gmail.com> wrote: > > I suppose my only options for this are to use shell functions or write a > script using a language that handles things properly (sanely?). No, there?s a fairly common hack around this problem: ibase=A and obase=A *always* means ?base 10? regardless of the current base, due to a quirk in the way values
2015 Aug 31
0
[OT] GNU bc base conversion
On Mon, Aug 31, 2015 at 11:15 AM, Warren Young <wyml at etr-usa.com> wrote: > On Aug 31, 2015, at 6:55 AM, Mike - st257 <silvertip257 at gmail.com> wrote: > > > > I suppose my only options for this are to use shell functions or write a > > script using a language that handles things properly (sanely?). > > No, there?s a fairly common hack around this
2017 Nov 04
2
ntfs user mappings?
. DOMAIN_ADMIN_PASSWD.sh echo ${PASSWD} | kinit ${ADMIN}@${DOMAIN} echo -n > /etc/ntfs-3g.usermap for DOMAIN_USER in $(wbinfo -u);do RPCLOOKUPID=$(rpcclient -P -c "lookupnames ${DOMAIN_USER}" ${DOMAIN}) if [ "${RPCLOOKUPID:0:7}" != "ERROR: " ] && [ "${RPCLOOKUPID:0:7}" != "Failed " ];then SID=$(echo ${RPCLOOKUPID}|awk '{print
2017 Nov 03
2
ntfs user mappings?
That looks easier I was working on ldap to convert but I'll try ldb-tools I was off on a bash mission here is what I had so far it isn't correct so I'll keep working on it #!/bin/bash if [ "$(echo $1|wc -c)" = "41" ];then hex=$(echo $1|base64 -d| od -x -w28 --endian=big|head -n1|sed 's/^0000000 //'|sed 's/ //g') echo ${hex} hex_chunk=$(echo
2017 Nov 05
3
ntfs user mappings?
On Sat, 4 Nov 2017 18:42:36 -0600 Jeff Sadowski <jeff.sadowski at gmail.com> wrote: > I decided to continue trying the ldap route as well > > littlehex2int() > { > hex=$1 > hex_chunk=$(echo ${hex}|cut -c$2-$3) > little=$(echo ${hex_chunk}|awk '{print > substr($0,7,2)substr($0,5,2)substr($0,3,2)substr($0,1,2)}') > echo "ibase=16; ${little}" |
2005 Nov 10
1
R-help: conversion of long decimal numbers into hexadecimal
Hi there, could somebody help me to convert a decimal number into a hexadecimal number? I know that there is the function "sprintf", but the numbers I want to convert consist of 20 or more numbers. "Spintf" is not able to convert these big numbers. Thanks for any help. Antje [[alternative HTML version deleted]]
2017 Nov 05
0
ntfs user mappings?
I decided to continue trying the ldap route as well littlehex2int() { hex=$1 hex_chunk=$(echo ${hex}|cut -c$2-$3) little=$(echo ${hex_chunk}|awk '{print substr($0,7,2)substr($0,5,2)substr($0,3,2)substr($0,1,2)}') echo "ibase=16; ${little}" | bc } base64_to_sid() { OBJECTSID="$1" hex=$(echo ${OBJECTSID}|base64 -d|od -A n -x -w28 --endian=big|sed 's/
2017 Nov 05
0
ntfs user mappings?
Not bad but I wanted an ldap version because I was having issues running ldbsearch as a normal user. I created the following functions to get it in and out of base64 and hex swap_endian() { local input=$1 local output="" while [ "${input}" != "" ];do output="${input:0:2}${output}" input=${input:2} done echo $output } base64_to_hex() { echo $(echo
2017 Nov 04
0
ntfs user mappings?
On Fri, 3 Nov 2017 16:25:57 -0600 Jeff Sadowski <jeff.sadowski at gmail.com> wrote: > That looks easier > > I was working on ldap to convert but I'll try ldb-tools > > I was off on a bash mission here is what I had so far it isn't correct > so I'll keep working on it > > #!/bin/bash > if [ "$(echo $1|wc -c)" = "41" ];then >
2017 Nov 03
2
ntfs user mappings?
On Fri, Nov 3, 2017 at 2:43 PM, Rowland Penny <rpenny at samba.org> wrote: > On Fri, 3 Nov 2017 13:53:22 -0600 > Jeff Sadowski via samba <samba at lists.samba.org> wrote: > >> just get objectsid and use this >> >> https://blogs.msdn.microsoft.com/oldnewthing/20040315-00/?p=40253 > > Why ??? > So that when someone on a linux machine writes to disk
2009 Feb 05
1
JGR extension not working (PR#13501)
Full_Name: Erik Lukac Version: R version 2.8.1 (2008-12-22) OS: Mac OS 10.5 Submission from: (NULL) (141.84.28.167) I tried to install JGR, but somehow it doesnt work. > install.packages("JGR") Warning in install.packages("JGR") : argument 'lib' is missing: using '/Users/erikl/R/i386-apple-darwin9.6.0-library/2.8' trying URL
2007 Jul 06
1
ferret (0.11.4-mswin32) w/ acts as ferret
i''m indexing a table from some legacy db via a nightly executed script/runner command (LegacyInfobase.rebuild_index). but very often newer documents don''t show up in search results for quite some days. when running it manually from console for diagnosis it mostly stops with this error (but not always): [This was fast-saved 1 times. Some information is lost] IOError: IO Error
2005 Jan 12
4
hashing filters
Hi all, I am a newbie and I have not played a lot with tc utility. I have red maybe everything that has to do with massive filtering (maybe not everything). If you can help me on this I would appriciate that very much. I use tc utility with iproute2-ss040831. I want to limit bandwidth for the 192.168.0.0/16 subnet using this script. tc qdisc del dev eth0 root tc qdisc add dev eth0 root
2012 Feb 17
3
Regain play analysis patches
Earl Chew wrote: > I'm a little reluctant to introduce another compiled program when there are > so many other options that will work well enough out of the box. > > Here are two ideas: > > 1. Use bc(1) to compute the raw samples > 2. Use perl(1) to compute the raw samples > > To generate raw unsigned samples using bc(1) for example: > > samplerate = 1000;