From sebastianlaptop@inode.at Mon Jun 29 15:08:52 2009 From: Sebastian =?utf-8?q?Sch=C3=B6binger?= To: programming@lists.opensuse.org Subject: [opensuse-programming] Contact users.opensuse.org and read a picture Date: Mon, 29 Jun 2009 17:12:30 +0200 Message-ID: <200906291712.36252.sebastianlaptop@inode.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8218285000301188034==" --===============8218285000301188034== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi I am recently writing an application for the openSUSE Weekly News Team with Q= t=20 C++ which should get the statistics and so on. 1.: It downloads the=20 http://lists.opensuse.org/stats/general/general-mlmmj_subcount-day.png=20 picture, but I don't know how to read out the text. Jan (dl9pf) made a Python= =20 script which reads out the text, but I don't know how to manage it with C++. I know I could introduce the python script, but I think that isn't the nicest= =20 way to do it. 2.: It should download the source from the https://users.opensuse.org site, to=20 read out the statistics (how many users etc), but I just get: Novell iChain

Your old browser=20 does not support a 302 Redirect. How can I avoid that? 3.:=20 Probably the hardest question. How can I login myself through the program on = opensuse.org and to upload the translated news to the weekly news site (I=20 thought about the QHttpHeader, but I am not sure if it would work). ---------- mfg / best Sebastian Sch=C3=B6binger //Member of the openSUSE Team // //Writer of the openSUSE News (Tips and Tricks) // //Translator of the openSUSE News // //http://de.opensuse.org/Benutzer:STS301 //=20 //http://linux301.wordpress.com // Public openPGP key: 4C5E 2C32 7F1B 574C 0746 2DB1 724B E45F 1FC7 93A4 --===============8218285000301188034== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjIuMC45IChHTlUv TGludXgpCgppRVlFQUJFQ0FBWUZBa3BJMmVRQUNna1Fja3ZrWHgvSGs2UmRMUUNmZkYyQUpoTWpQ dTdySGh1L09tR0xJRldLCkRTOEFuMUVYYUVyMWJLMGZWNjlDQlBEbDhMSTEvYjJ5Cj1GNWRxCi0t LS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQo= --===============8218285000301188034==-- From kai@perfectreign.com Mon Jun 29 15:30:29 2009 From: Kai Ponte To: programming@lists.opensuse.org Subject: [opensuse-programming] unsubscribe Date: Mon, 29 Jun 2009 08:33:42 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3434582794638871709==" --===============3434582794638871709== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit -- To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============3434582794638871709==-- From sshaw@decriptor.com Mon Jun 29 15:47:23 2009 From: Stephen Shaw To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] unsubscribe Date: Mon, 29 Jun 2009 09:50:24 -0600 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3272263612515468370==" --===============3272263612515468370== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org On Mon, Jun 29, 2009 at 9:33 AM, Kai Ponte wrote: > > -- > To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org > For additional commands, e-mail: opensuse-programming+help(a)opensuse.org > > -- To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============3272263612515468370==-- From paka@opensuse.org Mon Jun 29 17:44:15 2009 From: Patrick Shanahan To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] unsubscribe Date: Mon, 29 Jun 2009 13:47:38 -0400 Message-ID: <20090629174738.GE31493@wahoo.no-ip.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3153000861513937492==" --===============3153000861513937492== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit * Stephen Shaw [06-29-09 11:51]: > To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org > > On Mon, Jun 29, 2009 at 9:33 AM, Kai Ponte wrote: > > > > -- > > To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org > > For additional commands, e-mail: opensuse-programming+help(a)opensuse.org he knows. He has been around here for several years. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============3153000861513937492==-- From sshaw@decriptor.com Mon Jun 29 17:45:49 2009 From: Stephen Shaw To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] unsubscribe Date: Mon, 29 Jun 2009 11:48:54 -0600 Message-ID: In-Reply-To: <20090629174738.GE31493@wahoo.no-ip.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2898921152823009931==" --===============2898921152823009931== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 29, 2009 at 11:47 AM, Patrick Shanahan wrote: > * Stephen Shaw [06-29-09 11:51]: >> To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org >> >> On Mon, Jun 29, 2009 at 9:33 AM, Kai Ponte wrote: >> > >> > -- >> > To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org >> > For additional commands, e-mail: opensuse-programming+help(a)opensuse.org > > he knows. =C2=A0He has been around here for several years. > -- > Patrick Shanahan =C2=A0 =C2=A0 =C2=A0 =C2=A0 Plainfield, Indiana, USA =C2= =A0 =C2=A0 =C2=A0 =C2=A0HOG # US1244711 > http://wahoo.no-ip.org =C2=A0 =C2=A0 Photo Album: =C2=A0http://wahoo.no-ip.= org/gallery2 > Registered Linux User #207535 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0@ http://counter.li.org > -- Just a friendly reminder :) Stephen --=20 To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============2898921152823009931==-- From per@computer.org Mon Jun 29 20:43:20 2009 From: Per Jessen To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] Contact users.opensuse.org and read a picture Date: Mon, 29 Jun 2009 20:56:40 +0200 Message-ID: In-Reply-To: <200906291712.36252.sebastianlaptop@inode.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2702023369364423666==" --===============2702023369364423666== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sebastian Schöbinger wrote: > It downloads the > http://lists.opensuse.org/stats/general/general-mlmmj_subcount-day.png > picture, but I don't know how to read out the text. Jan (dl9pf) made a > Python script which reads out the text, but I don't know how to manage > it with C++. I know I could introduce the python script, but I think > that isn't the nicest way to do it. The whole thing is run by munin, so maybe that's where you need to look for a raw data interface. > It should download the source from the https://users.opensuse.org > site, to read out the statistics (how many users etc), but I just get: > > Novell iChain

Your old > browser does not support a 302 Redirect. > > How can I avoid that? I don't think you can - your code needs to understand HTTP. /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============2702023369364423666==-- From sebastianlaptop@inode.at Tue Jun 30 11:10:33 2009 From: Sebastian =?utf-8?q?Sch=C3=B6binger?= To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] Contact users.opensuse.org and read a picture Date: Tue, 30 Jun 2009 13:14:15 +0200 Message-ID: <200906301314.16342.sebastianlaptop@inode.at> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6144842969510188327==" --===============6144842969510188327== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit > Sebastian Schöbinger wrote: > > It downloads the > > http://lists.opensuse.org/stats/general/general-mlmmj_subcount-day.png > > picture, but I don't know how to read out the text. Jan (dl9pf) made a > > Python script which reads out the text, but I don't know how to manage > > it with C++. I know I could introduce the python script, but I think > > that isn't the nicest way to do it. > > The whole thing is run by munin, so maybe that's where you need to look > for a raw data interface. ok, where is munin?? > > It should download the source from the https://users.opensuse.org > > site, to read out the statistics (how many users etc), but I just get: > > > > Novell iChain

Your old > > browser does not support a 302 Redirect. > > > > How can I avoid that? > > I don't think you can - your code needs to understand HTTP. How needs to understand HTTP, you mean the application should respond on a request of ichain, let's see if it works with QHttpRequest. > /Per Jessen, Zürich ---------- mfg / best Sebastian Schöbinger //Member of the openSUSE Team // //Writer of the openSUSE News (Tips and Tricks) // //Translator of the openSUSE News // //http://de.opensuse.org/Benutzer:STS301 // //http://linux301.wordpress.com // -- To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============6144842969510188327==-- From fhfr-cebt-r@davjam.org Tue Jun 30 12:18:57 2009 From: David Bolt To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] Contact users.opensuse.org and read a picture Date: Tue, 30 Jun 2009 13:21:55 +0100 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3271021295319422888==" --===============3271021295319422888== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, 29 Jun 2009, Per Jessen wrote:- >Sebastian Sch=C3=B6binger wrote: >> It should download the source from the https://users.opensuse.org >> site, to read out the statistics (how many users etc), but I just get: >> >> Novell iChain

Your old >> browser does not support a 302 Redirect. >> >> How can I avoid that? > >I don't think you can - your code needs to understand HTTP. I'm curious as to why he's getting a 302 redirect when using curl gets the front page, as shown by this snippet: davjam(a)playing:~> curl -x '' https://users.opensuse.org openSUSE User Directory Regards, David Bolt --=20 Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | RISC OS 3.6 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 --=20 To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============3271021295319422888==-- From sebastianlaptop@inode.at Tue Jun 30 14:02:35 2009 From: Sebastian =?utf-8?q?Sch=C3=B6binger?= To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] Contact users.opensuse.org and read a picture Date: Tue, 30 Jun 2009 16:06:20 +0200 Message-ID: <200906301606.21175.sebastianlaptop@inode.at> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2720393626932098338==" --===============2720393626932098338== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable > On Mon, 29 Jun 2009, Per Jessen wrote:- > > >Sebastian Sch=C3=B6binger wrote: > >> It should download the source from the https://users.opensuse.org > >> site, to read out the statistics (how many users etc), but I just get: > >> > >> Novell iChain

Your old > >> browser does not support a 302 Redirect. > >> > >> How can I avoid that? > > > >I don't think you can - your code needs to understand HTTP. > > I'm curious as to why he's getting a 302 redirect when using curl gets > the front page, as shown by this snippet: > > davjam(a)playing:~> curl -x '' https://users.opensuse.org > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en" lang=3D"en"> > openSUSE User Directory > > > Regards, > David Bolt yes I know, with wget it did also work, now I tried with a Qt download exampl= e=20 and it worked, so I will look how the did it. ---------- mfg / best Sebastian Sch=C3=B6binger //Member of the openSUSE Team // //Writer of the openSUSE News (Tips and Tricks) // //Translator of the openSUSE News // //http://de.opensuse.org/Benutzer:STS301 //=20 //http://linux301.wordpress.com // Public openPGP key: 4C5E 2C32 7F1B 574C 0746 2DB1 724B E45F 1FC7 93A4 --=20 To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============2720393626932098338==-- From lists@dhaller.de Tue Jun 30 19:08:34 2009 From: David Haller To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] Getting PID by process-name Date: Tue, 30 Jun 2009 21:09:02 +0200 Message-ID: <20090630190902.GA12555@feersum.endjinn.de> In-Reply-To: <200812020137.02373.volker@openbios.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2189185244462506809==" --===============2189185244462506809== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello, On Tue, 02 Dec 2008, Volker Poplawski wrote: >How do i get the PID of a process by the process-name? Look at the sourcecode of pidof / pgrep. Basically both programms look through /proc/nnn/{cmdline,exe} and look for matching names. -dnh -- Better visibility is no good if the oncoming traffic crashes into you with its arm across its eyes from the sudden blindness. -- Graham Reed -- To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============2189185244462506809==-- From greg.freemyer@gmail.com Tue Jun 30 20:30:13 2009 From: Greg Freemyer To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] Getting PID by process-name Date: Tue, 30 Jun 2009 16:33:41 -0400 Message-ID: <87f94c370906301333i4a7c4a1ic24c5804ba74f01@mail.gmail.com> In-Reply-To: <20090630190902.GA12555@feersum.endjinn.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8821062637653274403==" --===============8821062637653274403== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 30, 2009 at 3:09 PM, David Haller wrote: > Hello, > > On Tue, 02 Dec 2008, Volker Poplawski wrote: >>How do i get the PID of a process by the process-name? > > Look at the sourcecode of pidof / pgrep. Basically both programms look > through /proc/nnn/{cmdline,exe} and look for matching names. > Along those same lines, strace will get you to the answer even faster a lot of times. And you don't have to have the source handy either. Greg --=20 Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http://www.norcrossgroup.com/forms/whitepapers/Forensic%20Processing%20of%20E= xchange%20WP%20final.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com --=20 To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============8821062637653274403==-- From lists@dhaller.de Tue Jun 30 21:52:54 2009 From: David Haller To: programming@lists.opensuse.org Subject: Re: [opensuse-programming] Getting PID by process-name Date: Tue, 30 Jun 2009 23:53:01 +0200 Message-ID: <20090630215301.GA15311@feersum.endjinn.de> In-Reply-To: <87f94c370906301333i4a7c4a1ic24c5804ba74f01@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7688385506919127236==" --===============7688385506919127236== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello, On Tue, 30 Jun 2009, Greg Freemyer wrote: >On Tue, Jun 30, 2009 at 3:09 PM, David Haller wrote: >> On Tue, 02 Dec 2008, Volker Poplawski wrote: >>>How do i get the PID of a process by the process-name? >> >> Look at the sourcecode of pidof / pgrep. Basically both programms look >> through /proc/nnn/{cmdline,exe} and look for matching names. > >Along those same lines, strace will get you to the answer even faster >a lot of times. And you don't have to have the source handy either. I used 'strace pidof xemacs' for my answer, don't have the sources around ... ;) I use strace, ltrace, ltrace -S quite often. But to reimplement the functionality, it'd probably be better to have a look at the tried and tested implementations in the sources of pidof and/or pgrep and probably use copy and paste, eh? ;) On the other hand, I do quite often also look into sources. -dnh -- In the Beginning there was nothing, which exploded. -- Terry Pratchett, Lords and Ladies -- To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-programming+help(a)opensuse.org --===============7688385506919127236==--