/srv/irclogs.ubuntu.com/2011/08/20/#ubuntu-uk.txt

ali1234does anyone know an algorithm to detect sequences when the input has error?00:43
ali1234eg given the sequence 012345012345012345 and i want to split it on 000:43
ali1234but sometimes the zero is a 2 instead00:44
ali1234and sometimes there's randomly a 9 in there for no reason00:44
dwatkinshat are you processing the input with, ali1234? bash, C, perl?00:50
ali1234python. not that it matters00:50
ali1234that was only an example00:51
ali1234the real thing is more complex00:51
ali1234but in the end i have a sequence of numbers where the errors are extremely easy for ahuman to spot00:51
dwatkinsI guess you'd have to process it character by character and compare each one in turn to the previous one.00:51
dwatkinsit would probably be a single line of bash with {i:j:1} syntax00:52
ali1234each character has to be looked at in context00:52
ali1234it has to handle a string like 0123450112130123001234123400:52
ali1234that should return 12345,1,12,13,123,,1234,123400:53
ali1234oh and it also has to handle 12354 and return 12354 as a single unit00:53
ali1234not 1235,400:53
ali1234there are ambiguities00:54
ali1234so there needs to be a weighting system that decides whether the sequence has gone over the threshold of starting a new substring00:54
ali1234now, i could sit and write an algorithm to do this00:54
ali1234but it usually turns out someone already did it00:54
ali1234hence the question00:54
ali1234the substrings here are about 26 bytes long00:55
ali1234sometimes a few bytes will go missing00:55
ali1234sometimes extra random garbage is added00:56
dwatkins$ echo "01234501121301230012341234" | awk -F '0' '{print $1" "$2" "$3" "$4}'00:56
ali1234sometimes both happens and it is the right length but in the wrong order00:56
ali1234splitting on 0 is not an option00:56
ali1234sometimes the 0 gets lost00:56
ali1234the only rule is that the substring will mostly increase at a linear rate00:57
dwatkinsah, so each section consists of increasing digits?00:57
ali1234and be approximately 26 bytes long +/1 about 3 bytes00:57
ali1234it doesn't only consist of increasing digital00:58
ali1234sometimes there might be an incorrect 0 in the middle of it00:58
ali1234it may go 012340678900:58
ali1234the second 0 there is obviously meant to be a 500:58
ali1234i need the algorithm to figure that out too00:58
dwatkinsI suspect you're just going to have to process it character by character, comparing each one to the previous one00:58
ali1234comparing to the previous char is not enough00:58
ali1234it might go 012343078900:59
dwatkinsI'm confused as to what the sequence is,.00:59
ali1234it's just a sequence of bytes00:59
ali1234from 0 to 2600:59
dwatkinsI mean what the rules are.00:59
ali1234there are no rules00:59
ali1234the corruption is random01:00
dwatkinswhat about when the numbers are right?01:00
ali1234the rules of the original signal are simple. you just split whenever you see a zero01:00
dwatkinswhat is correct?01:00
ali1234correct is 0, then 25 of any other byte01:00
ali1234however in practice it is nearly always 0 then 1-2501:01
ali1234the corruption randomly removes, inserts, and shuffles any bytes, including the 0s01:01
ali1234maybe i can do it in two passes01:05
ali1234any character 1 more than the previous and 1 less than the next is assumed to be correct01:05
ali1234then work backwards to figure out what is up with the others01:05
ali1234the problem is with rewinding the algorithm01:06
ali1234did i mention the sequence is approximately 440000 characters long?01:07
dwatkinsoh my01:13
daevwhen i create a new user on my server  i use {sudo chmod 0750 /home/username} to allow privacy. how do i extend the same privacy to the base system files. My concern is that users can traverse, list and read the base system files such as /etc or places where ssh keys are stored. It this normal nominal securty?01:38
daevoh dear it's been a long night let me try that again. when i create a new user on my server  i use {sudo chmod 0750 /home/username} to allow privacy. how do i extend the same privacy to the base system files? My concern is that users can traverse, list and read the base system files such as /etc or places where ssh keys are stored. is this normal nominal securty?01:39
HazRPGdaev: I like how you said the same thing twice, but only changed 2 characters ^_^ (the '.' -> '?' and "It" -> "is"), I'm sure others knew what you meant :)01:46
HazRPGali1234: if I could remember the name of such an algorithm, I'd help you find one... but sadly my memory is failing me on that one.01:47
HazRPGali1234: I have an interesting question for you... have you noticed using the fullscreen hack you made for the browser... that each time you load up chrome, it says "Would you like to set chrome as your default browser?" despite the fact that it already is the default browser...01:49
HazRPGif I take away the preloader for your library, it doesn't ask this... but if you add it in, it does... its rather odd01:50
HazRPGdo you think its because a checksum is failing somewhere... or just chrome genuinely being stupid01:50
dwatkinsdaev: I think you need the linux hardened channel or 'SE Linux' for that.01:53
HazRPGdwatkins: you mean #selinux ?02:26
HazRPGor possibly just simply ##security02:26
HazRPGI love alis, she lists channels so nicely :)02:27
HazRPGright, missed torchwood this week... time to watch :) (thanks get-iplayer!)02:31
dwatkinsoh yeah, forgot that was back, ta02:33
HazRPGheh ^_^02:44
HazRPGcurrently on episode 6 at the moment02:44
brobostigongood morning everyone.07:12
MartijnVdShi brobostigon07:20
brobostigonhi MartijnVdS07:21
* MartijnVdS has a fresh pot of Darjeeling tea07:22
brobostigonyummy.07:22
* brobostigon has fresh coffee07:22
popeyMorning08:08
brobostigonmorning popey08:08
MartijnVdS\o popey08:08
mgdmMoring08:21
mgdmMorning, even08:21
MartijnVdSMooring ;)08:21
brobostigonmorning mgdm08:23
MartijnVdShttp://i.imgur.com/W694w.jpg <-- water rabbit08:41
shaunoyes, that's what my head needed at 9am on a weekend :(08:42
shaunofunny feeling I'm going to be stuck in windows for much longer than I planned on - http://dl.dropbox.com/u/23042/awhile.png08:44
MartijnVdSApparently, you should visit swtor.com :)08:44
=== denny- is now known as denny
andrewcleggmorning all... if I'm doing a dist upgrade from maverick to natty, can I tell it *not* to uninstall certain packages? my gf wants to stick with openoffice for now, as she has a heavily customized setup, but the installer removes it09:43
directhexandrewclegg: i doubt she'll notice much difference09:44
directhexandrewclegg: but google "apt pinning"09:44
togsterhttps://help.ubuntu.com/community/PinningHowto09:44
andrewcleggactually when she went from 10.04 to 10.10 it blew away lots of her settings, and that was OOo -> OOo !09:45
andrewcleggbut thanks, I'll check that out09:45
brobostigonhttp://wiki.debian.org/AptPreferences09:46
andrewcleggI'm thinking Holding rather than Pinning, because OOo and natty's LibreOffice are distinct packages... right?09:47
andrewcleggwell I'll test it and see09:47
MartijnVdSomg, I just notices on Oneiric:10:26
MartijnVdSif you minimize a window, a bright "flash" goes around the icon10:28
MartijnVdSIt sort-of looks like it's licking its lips after eating something (it's just a bright flash, but the movement looks like that :)10:28
shaunoand this is why I'm a fan of the dutch stance on recreational drugs ;)10:30
MartijnVdSshauno: no really!10:30
bigcalmHehe10:53
=== duanedes1gn is now known as duanedesign
purehello  , i need help.12:10
purei've litte problem with Ubu.12:10
sagaciwhat is it12:24
puremy Ubuntu not work ...., im run Ubuntu from Live CD and type in termina "sudo mount /dev/sda5 / && mount /dev/sda6 /home" , so later i type "/sudo gedit /etc/modprobe.d/blacklist.conf " , and a'm trying to blacklist sp5100_tco drive. I  click SAVE.... but after reboot not working , a'm again loock to blacklist.conf  , and this driver is not blacklister ( not saving) What i wrong do?.12:35
puredriver*12:36
purei've SP5100 TCO time : mmio adress 0xfec00-00f0 in use , none  guidance in the network does not help me, how to fix it, or what U do something wrong.12:38
StevenRpure: why do you need to use the live cd?13:00
purebecuasde my OS dont boot...13:01
pureso i try repair it from Live CD.13:01
StevenRyou need to blacklist the module to fix it?13:01
puregoogle and ubuntu forums talk : "yes"13:02
purehttp://ubuntuforums.org/showthread.php?t=166624&page=213:02
StevenRcreate a new file called blacklist-local.conf in /etc/modprobe.d ?13:03
StevenRand put your blacklist line in that?13:03
purebut i do it from Live CD, because from HDD cannot  wirte commands....-.- ( blackscreen) from CTRL++ALT+F1~F12 cannot write commands13:03
pureyup , nothing work13:04
StevenRwhat do you mean "nothing work" ?13:04
purei'm not have  any idead13:04
StevenRdid you try creating a new file ?13:04
pureafter select OS from boot i'm see only black screen with "_" in left top.....13:06
sagacipure, can you boot into recovery mode13:06
purenot13:07
purestop in 8 sec13:07
pure7.113:07
pure[7.1XXXXX} SP5100 TCO timmer: mmio adresss 0xfec000fo in use13:08
purebig bang!13:08
MartijnVdSbig bang?13:09
purebig bang - big boom13:09
MartijnVdSAs in, you computer literally exploded?13:10
puremy os exploded huh :D13:10
MartijnVdSwhat kind of hardware do  you have?13:11
purePC  / CPU AMD Athlon 245 X2 X64 , GPu: gf nv250GTS DK1G , 6gb ram ddr3... :P13:12
purehdd over 3tb13:12
purehdds*13:12
MartijnVdSI don't know athlon numbers, but you might need UEFI if your startup disk is >2TB, I think13:13
pureNo no i have 3x 1tb + 1x 80gb13:14
MartijnVdSah13:14
daevwhen i create a new user on my server  i use {sudo chmod 0750 /home/username} to allow privacy. how do i extend the same privacy to the base system files? My concern is that users can traverse, list and read the base system files such as /etc or places where ssh keys are stored. is this normal nominal securty?13:14
purewhen ubuntu is in 80gb hdd :D13:14
MartijnVdSdaev: the SSH private key is already protected13:14
MartijnVdSdaev: it's only readable by root (check "ls -l")13:14
daevhow?13:14
MartijnVdSdaev: -rw------- 1 root root   1679 2011-08-04 18:26 ssh_host_rsa_key13:14
puremy ubu dont loading splash.... idk why! , why he do this! ;(13:15
MartijnVdSpure: Which version of Ubuntu are  you trying? Have you tried a different version?13:15
MartijnVdSpure: Are you starting from CD? From USB stick?13:15
pure11.04 ^^13:15
pureum trying to repair from Live CD , and Ubuntu has been installed  from CD.13:16
MartijnVdSbut if the live CD doesn't start, it sounds like the CD is broken13:16
pureNo no...i;m trying to boot  from HDD13:16
pureGrub is loading ... itks.. omy when i select   " Linux ubuntu ........ -pae" ... i'm see only "black screen' and  white "_" on left top and nothing more...13:17
MartijnVdSUhrm.. you just said you were using the live CD13:17
pureto repair...13:17
MartijnVdSAre you using the live CD to start (and repair) or are you booting from the HDD?13:18
MartijnVdSDoes the live CD work?13:18
purebecuase i;m must editing files from /dev/sda5 ( "/ "13:18
pureLive work... men! ....13:18
pureMy Ubuntu is creazy! , yesterday on midnight working! , today not working...13:19
MartijnVdS!pm > daev13:19
lubotu3daev, please see my private message13:19
pure"SP5100 TCO timer: mmio address 0xfec000f0 already in use".... and Ubuntu not starting...13:19
MartijnVdSpure: Yes, you've said that before, you don't have to keep on repeating13:20
daevapologies lubotu3 & MartijnVdS, i was unaware of the protocol13:20
daevI just checked what you said and that's true. ssh_host_rsa_key.pub is readable and has roots key in there. but root should be disabled so that's ok. otherwise.... is it ok for users to have free roam of reading system files? I know a portion of them must be readable for certain services to work properly for the user. but is there anything a rogue could use to breach security?13:20
MartijnVdSdaev: no, /etc/ssh/ssh_host_rsa_key.pub is the server's key13:21
MartijnVdSdaev: wait.13:21
pureBecuase all possibles of repairs in Google not helping me ..... so , now i dont know how to repair it13:21
MartijnVdSdaev: .pub are the public keys, those are public -- look up public key cryptography -- the private keys (without .pub) are not readable by normal users, only root.13:21
MartijnVdSpure: Are older kernels listed in grub? Have you tried one of them?13:22
purenot13:22
purei've only one kelner :P. + recovery13:22
MartijnVdSpure: OK, did you do anything that might have caused this?13:22
MartijnVdSDid it ever work?13:22
MartijnVdSpure: You could try this page: https://wiki.ubuntu.com/DebuggingKernelBoot13:23
pureNot , omly only turn off PC , and go to Sleep.... when i'm get up and power on my PC... i got this messanges13:23
MartijnVdSpure: it could be a hardware problem, I don't know. You could try resetting the BIOS to defaults, I guess13:24
daevMartijnVdS, thanks for clearing that up for me. not to insult the devs intelligence but is there anything to be concerned about is a user goes looking thorugh /... to find information. could it lead to a breach?13:24
daev-i'm sure it's very secure from default. but if i am missing a step i'd love to know thanks :(13:25
daev:)**13:25
MartijnVdSdaev: The default permissions are considered "safe" (private keys for everything are unreadable)13:25
MartijnVdSdaev: but if you really want to, for some daemons, you can make them more strict13:25
MartijnVdSBut it also contains useful information for users -- and config files that are read when they log in, for example13:26
daevi didn't want to go into chroot incase it prevents services from being used correctly without faff. is default security enough to keep then from finding a way to trick the system do you think? thanks13:27
MartijnVdSdaev: It really depends -- are you going to provide shell accounts to the general public?13:27
MartijnVdSdaev: or just some friends/coworkers?13:27
daevvery good point :)13:28
MartijnVdSAlso, don't forget to keep your security patches up to date13:29
daevno. if any guest accounts were given they would be very restricted. but my concern is any users who, although have no SUDO rights, might try to violate the server some day. Thanks for the advice, i'm always concious of sec patches13:30
MartijnVdSdaev: those users will always exist, and you'll want to look at "hardening" in that case13:31
MartijnVdSdaev: also, something like logwatch that emails you "strange" (or unexpected) log messages (if they are found) every night13:31
daevis hardening the terminology used by the scene?13:31
daevthat sounds useful, thank you13:32
MartijnVdSdaev: Hardening is used by the security people13:32
MartijnVdSdaev: https://wiki.ubuntu.com/Security/Features13:32
MartijnVdSdaev: https://wiki.ubuntu.com/Security/Features#Userspace_Hardening13:32
daevMartijnVdS, it's always a pleasure to speak with someone who's in the zone, thank you.13:32
GirlyGirlhi14:12
MartijnVdS\o GirlyGirl14:13
oimonwondering if the touchbook will be dirt cheap in the uk...not likely :(14:50
StevenRtouchbook?14:50
oimonyeah,the awesome tablet hp just canned14:51
oimonin the states i've heard of reductions from $400 to $9914:52
oimontouchpad14:54
penguin42yeh I was hoping for that to be cheap - I'm sure it can't be hard to squeeze Android or Ubuntu onto it14:58
penguin42they seem to be down to 291 - but you can get other similar spec tablets for less15:01
* penguin42 wonders how I tell G+ suggestions I really am not interested in adding someone15:09
czajkowskiI block15:09
penguin42czajkowski: Well I haven't added them to any circles, so I don't need to block - but I just want to influence the suggestion15:09
penguin42ah, select the victim and click remove15:10
oimonpenguin42: where are they 291?15:18
daubersAfternoon15:24
oimoncan't work out if this guy is deliberately trolling: http://www.amazon.co.uk/review/R17B5Q1XPFEOH0/ref=cm_cr_pr_cmt?ie=UTF8&ASIN=B004TB0EXY&nodeID=&tag=&linkCode=#wasThisHelpful15:27
oimongave the eee pad 1/5 because it doesn't run MS software15:28
shaunosounds like a valid point to me.  I mean, who doesn't use publisher?!15:30
ali1234it is a completely valid point15:30
ali1234but complaining about it is about as useful as me complaining about unity15:31
ali123499% of people don't care15:31
ali1234they only want facebook and youtube15:31
ali1234and, the android youtube app is massively better than anything else15:31
ali1234these new UIs are great if you only want to go on the internet, listen to music, and look at pictures15:32
ali1234they are worthless (all of them) if you want to do anything productive15:33
ali1234but it isn't a problem because most people never do anything productive15:33
ali1234it's only a problem for the minority that does15:33
marxjohnsonczajkowski: thanks, looks like it's working at last :-)16:11
HazRPGhmm, I just logged out of my system, and logged back in again... and on logging out I noticed "I/O error" or something along those lines (it flashed very quickly, so didn't get chance to read it...)17:12
HazRPGwhere are those kind of messages stored?17:13
HazRPG(log file wise)17:13
HazRPGso I can see what's up...17:13
bigcalmdmesg17:13
bigcalmMight have some info17:13
bigcalmYou may have luck with /var/log/messages17:14
HazRPGwow, looks like there's a lot of bad stuff on here17:14
bigcalm:(17:14
HazRPG"2:3:1: cannot get freq at ep 0x82"17:15
bigcalmTime for a new drive and back up what you can while you can17:15
HazRPG"sd 12:0:0:0: rejecting I/O to offline device"17:15
HazRPG"Buffer I/O error on device sde1, logical block 7306752"17:15
bigcalmYes, that's not healthy17:16
HazRPGI don't even know which one sde1 is17:16
bigcalmMight be an SD card or such?17:16
bigcalmOr an external disk17:16
HazRPGno SD card reader on this thing17:17
bigcalmA USB drive?17:17
HazRPGand no external drive plugged in17:17
HazRPGopening up gparted to see if I can work it out from there17:17
HazRPG(also, gnome panels hasn't loaded up for some reason - good thing I've got terminal set to a mod4+T)17:18
HazRPGI don't have any sde devices...17:18
HazRPGinteresting...17:18
HazRPGcould that be why I'm getting errors?17:18
bigcalm*shrug*17:20
HazRPGhttp://www.hazrpg.co.uk/ubuntu/dmesg.txt17:21
HazRPGso glad I'm use to using the terminal a bit more, cos that's the only thing I've really got access to at the minute :P17:21
HazRPGI think that should have copied over right17:22
HazRPGnot quite understanding what the /var/log/messages stuff means17:24
HazRPGseems like the same happens each time I reboot the system17:25
HazRPGoh wait, heh wrong system17:25
HazRPGthe dmesg.txt is the right system however17:31
HazRPGi wish i understood what any of that means17:32
HazRPGsr0 is usually the CD/DVD drive correct?17:38
HazRPGhmm, I just realised, sde would have been when I plugged my phone...17:40
HazRPGthat means the SD card in my phone needs replaced :(17:40
bigcalmHow long have you had the card in your phone?17:51
ubuntuuk-planet[Andrew] Creative ZEN Stone Tango Icon - http://whyareyoureadingthisurl.wordpress.com/2011/08/20/creative-zen-stone-tango-icon/18:02
HazRPGI've just realised I still have those files from the Global Jam we did of installing natty18:25
bigcalmOn your phone?18:26
=== ricco is now known as Guest44944
ali1234if i acidentally deleted a file while firefox was downloading it, can i undelete it?18:45
ali1234firefox still has the fd open18:45
ali1234but the link in /proc shows (deleted)18:45
ali1234can i do some hardlink trickery or something?18:45
penguin42you can try cp /proc/whatever/fd/whatever tosomewhereelse18:47
ali1234i'd have to catch it exactly when the download finishes18:47
ali1234ut before ff closes the fd18:47
ali1234http://www.barricane.com/undelete-open-file-from-inode18:48
ali1234:)18:48
ali1234ah, if i use tail18:49
ali1234i will get the whole thing18:49
ali1234perfect18:49
ali1234tail -f -c +0 <fd> > whatever18:50
dsamplepaste.ubuntu.com down?18:55
dsampleor rather, not working?18:55
ali1234http://paste.ubuntu.com/671188/18:55
suprengrevening all. back home after yet another week in19:10
suprengrevenin' all.. back home from yet another stint away [while the lucky ones were at Ogg]... only 1 extra injury [anyone know if superglue is actually *better* than stiches ;)  ....but sooo quiet here tonight - so ... boo!19:13
AlanBellboo19:15
Laneywiggle wiggle19:17
Myrttiwobble wobble19:17
DJoneswaggle waggle (a bit late)19:19
suprengr;D19:26
=== jtn is now known as Guest91227
ali1234awesome, someone made a tool that rips firmwares from the nokia care server19:51
ali1234i find it highly ironic that the software use to crack nokia phones comes with a hardware DRM device to stop people pirating it21:33
zleaplol21:34
zleapyeah people think its ok to crack other peoples software but don't want em to crack theirs21:35
zleapi can see the irony in that too21:35
ali1234the most ironic part is that they thought it would actually work, given their customer base21:40
zleapyeah21:41
zleapthing is I support freedom etc but I still want to proterct my IP e.g photos, however i release stuff under creative commons21:42
ali1234i just want to downgrade my nokia to the old working firmware21:42
ali1234nokia won't allow it, not even with their service tools21:43
ali1234this software claims it can do it21:43
ali1234but we'll see21:43
* hamitron wants to reflash his ngage qd21:43
hamitronjust so it starts21:43
hamitron;)21:43
zleapi am sure it's possible21:43
ali1234oh it's possible21:43
zleapthey just use doing things like that as an excuse to invalidate the warranty21:44
ali1234the nokia service software performs the reflash but the phone won't boot after21:44
ali1234you have to cold flash it back to newest firmware21:44
ali1234they must have updated the bootloader with a new signing key21:44
ali1234hamitron: what is wrong with your ngage?21:46
hamitronwhite screen of death21:46
hamitron:(21:46
ali1234how did that happen?21:46
hamitronit is a known fault21:46
zleapmakes a change from blue screen eh21:46
ali1234so... get phoenix and do a cold flash?21:46
ali1234can't make it worse21:46
hamitronindeed21:47
hamitronjust scared21:47
hamitron;)21:47
ali1234phoenix is safe21:47
hamitronI got a normal ngage as a spare for now21:47
hamitronwell, I need a cable I think21:47
ali1234just the normal usb cable21:48
hamitronno, the cable with pins to go inside21:48
ali1234wut21:48
ali1234i doubt you need that21:48
hamitronfrom what I've read, I do21:49
ali1234there is too much rubbish on forums21:49
hamitronwell, the QD doesn't have a USB connector either21:49
hamitron:D21:50
hamitronso i can assume not21:50
ali1234how do you copy files on to it?21:50
hamitronbluetooth or mmc reader21:50
ali1234that sucks :(21:50
hamitronthe normal ngage has a USB connector, but that is only for writing to the MMC too21:51
hamitron:/21:51
hamitronI've read I need some special box to flash it21:51
hamitronbut also seen some simple circuits21:51
Seeker`http://www.youtube.com/watch?v=IfeyUGZt8nk22:23
directhexstill don't have my pre3. dhl are worthless ¬_¬22:29
gordyup they are22:30
penguin42directhex: Given that HP have just canned them, that's about to be a rareity22:31
directhexpenguin42: indeed. i am the telephone hipster!22:31
bernhard2using exim4 with dovecot (its 80% functional).. i would like to setup virtual domains with virtual mailboxes. are there  any good tutorials ?22:39
popeywill there be lots of HP tablets going cheap now?22:40
penguin42popey: Someone said that in the US they're going for $99 - I wish that was true here22:41
directhexpopey: in the US. trying to find someone to do a bulk import22:41
gordthey were going for $99 - they are all gone now22:42
directhexthere was meant to be a LOT of back stock to clear22:42
gordwow, sshd uses up a lot of cpu when you are copying over at 11mb/s22:42
directhexencryption is hard, let's go shopping22:43
gordoh and great i forgot to remove the / from a tab complete so rsync spewed the entire contents of that directory all over the output directory :(22:45
Andres-kaincongratulations on reapproval!23:02
=== Hornet- is now known as Hornet

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!