Re: [Development] Qt6 source changes

2018-11-01 Thread Sascha Cunz
On 2018-10-31 16:46, Thiago Macieira wrote: Qt6 won't be fully source-compatible. The idea is that we'll break it to fix things, but attempt to keep compatible as much as possible to avoid death by a thousand paper cuts. Does this rule out some kind of smart pointer that would be used to hold

Re: [cmake-developers] Current deficiencies of automoc

2016-10-21 Thread Sascha Cunz
> Compilers know exactly where the header files are through > include_directories or the equivalent target PROPERTY so why can't > automoc find those same header files using similar logic? In short: Because you really do not want automoc to do that. A bit longer; highlighting the semantic problem

Re: [cmake-developers] Current deficiencies of automoc

2016-10-21 Thread Sascha Cunz
Hi Alan, > On 22 Oct 2016, at 02:01, Alan W. Irwin wrote: > … > I don't agree with your above conclusion. The above remarks immediately > refer to > header files and imply automoc scans them Which it does :) > to find the ones that contain the Q_OBJECT macro and and/or Q_GADGET. > certain

Re: [Interest] 5.4.2 Android Misery just one typo away

2015-06-16 Thread Sascha Cunz
On 2015-06-15 19:10, Thiago Macieira wrote: > On Monday 15 June 2015 10:17:48 mark diener wrote: >> It WILL compile on all the platforms, runs fine on OSX/IOS Simulator, >> but >> on Android it will surely DIE. > > In addition to what the others said, "run fine" is missing a > characterisation.

Re: [CMake] static library linking problem

2013-05-14 Thread Sascha Cunz
Am Dienstag, 14. Mai 2013, 19:05:13 schrieb Vojtěch Novák: > hello, > I'm working on a C++ package for ROS (robot operating system) that uses a C > library libccv.a. ROS uses CMake which is why I am asking here. Asking at > ROS answers did not help and I am totally stuck. [...] From a quick loo

Re: [gentoo-user] netqmail fails to do CNAME lookup for lists.gentoo.org

2013-03-24 Thread Sascha Cunz
Am Sonntag, 24. März 2013, 18:32:12 schrieb Pandu Poluan:[...] > > Thanks for posting the fix! > > Now, how about filling a bug... Now, that I know what was going wrong, I did also find reasonable bug report on it: https://bugs.gentoo.org/show_bug.cgi?id=323517 Sascha

Re: [gentoo-user] netqmail fails to do CNAME lookup for lists.gentoo.org

2013-03-24 Thread Sascha Cunz
Am Sonntag, 24. März 2013, 01:39:17 schrieb Sascha Cunz: > Am Sonntag, 24. März 2013, 00:46:56 schrieb Sascha Cunz: > [...] > > I've meanwhile found out that it might be related to a DNS lookup bug inside > qmail and found an old patch that should addresses this issue. The

Re: [gentoo-user] netqmail fails to do CNAME lookup for lists.gentoo.org

2013-03-23 Thread Sascha Cunz
Am Sonntag, 24. März 2013, 00:46:56 schrieb Sascha Cunz: [...] > Oh, I see, you're right of course that was a typo in my testing - and indeed > with the typo fixed I get correct looking MX-Records via dig from both > google and my ISP. However, that makes me just a bit more cur

Re: [gentoo-user] netqmail fails to do CNAME lookup for lists.gentoo.org

2013-03-23 Thread Sascha Cunz
Am Samstag, 23. März 2013, 11:59:57 schrieb staticsafe: > On 3/23/2013 8:17, Sascha Cunz wrote: > > Hi list, > > > > I'm glad to see that my mail from yesterday did finally leave the queue > > of my netqmail install. > > > > I'm recently havin

[gentoo-user] netqmail fails to do CNAME lookup for lists.gentoo.org

2013-03-23 Thread Sascha Cunz
Hi list, I'm glad to see that my mail from yesterday did finally leave the queue of my netqmail install. I'm recently having trouble to send mail to lists.gentoo.org via my netqmail. It says that it is _temporarily_ unable to do a CNAME lookup. But mails stay in queue until they eventually bounc

[gentoo-user] Output of sensor "k10temp-pci-00c3"

2013-03-23 Thread Sascha Cunz
In the recent thread "system freezes during compiles", Carlos Henderson showed the output of $(sensors), among them the output of the k10temp-pci-00c3. I stopped trusting that sensor. After some hours of idle, it shows me: k10temp-pci-00c3 Adapter: PCI adapter temp1:+16.8°C (high = +70.

Re: [Development] Qt Platform Extras

2013-02-25 Thread Sascha Cunz
On Monday, February 25, 2013 05:50:06 PM Joerg Bornemann wrote: > On 25/02/2013 17:25, Sascha Cunz wrote: > > Why would a function that is "potentially useful on more than one > > platform" go to platform extras? > > Because it's working on native types (mo

Re: [Development] Qt Platform Extras

2013-02-25 Thread Sascha Cunz
On Monday, February 25, 2013 05:12:48 PM Joerg Bornemann wrote: > On 25/02/2013 16:27, Jake Thomas Petroules wrote: > > I'd prefer Qt namespace with no platform indicators, i.e.: > > > > Qt::toHICON > > Qt::toHBITMAP > > Qt::toCGImageRef > > Qt::toNSString > > > > It's obvious to which platform e

Re: [Development] Qt's generated cmake files

2013-02-18 Thread Sascha Cunz
On Monday, February 18, 2013 07:18:44 AM Stephen Kelly wrote: > On Monday, February 18, 2013 03:27:32 Sascha Cunz wrote: > > I am using FIND_PACKAGE and QT_USE_MODULES in each subdirectory of > > my cmake source tree like shown in [2]. This is required, because I have a > &

[Development] Qt's generated cmake files

2013-02-17 Thread Sascha Cunz
Hi Stephen, after the merge from [stable] to [dev] branch, my jenkins server noticed that there is a problem with compiling my stacks against Qt5. After looking over all the changes, I found out that there is an issue with the gerrit change 47230 [1] and am trying to find a way to solve or at lea

Re: [Interest] I am trying to compile Qt 4.8 with VS2010

2013-02-07 Thread Sascha Cunz
Am Donnerstag, 7. Februar 2013, 08:45:57 schrieb Till Oliver Knoll: > Am 07.02.2013 um 02:59 schrieb Scott Aron Bloom : > > Just a suggestion... > > > > If you use a "Project" directory, for source and building, add that > > directory to your virus system as a white listed directory, ie don't > >

Re: [Interest] I am trying to compile Qt 4.8 with VS2010

2013-02-06 Thread Sascha Cunz
Am Mittwoch, 6. Februar 2013, 21:28:24 schrieb Guido Seifert: > > What's the path for your qt source and binary directory then? Might be > > that > > some absolute path used by the mkdir and cd during compilation are too > > long. > > This sounds interesting and something I could try. Though I don

Re: [Interest] I am trying to compile Qt 4.8 with VS2010

2013-02-06 Thread Sascha Cunz
Am Mittwoch, 6. Februar 2013, 21:08:26 schrieb Guido Seifert: > I am the 1%. I don't have a virus scanner. :-) > > > 99% of the time, this is due to a virus scanner scanning the file and > > denying access while it does so. What's the path for your qt source and binary directory then? Might be th

Re: [Interest] Qt5 +CLR -> linker error LNK2005

2013-02-05 Thread Sascha Cunz
Hello Franz, Am Montag, 4. Februar 2013, 10:49:59 schrieb Franz Hirschbeck: > Hello, > > In one of our projects we are using managed c++ together with Qt. After > porting the code to Qt5 the following linker error occurs. This happens > in every combination VS2008/2010 and win32/x64. > > 1>file2

Re: [CMake] Backslashes in path names on Windows?

2013-01-25 Thread Sascha Cunz
Am Freitag, 25. Januar 2013, 12:52:07 schrieb Kent Williams: > I am testing a ITK patch I'm working on in Windows. That involves entering > a path in cmake-gui or ccmake. The first time I tried it, I entered the > path 'windows-wise' with backslashes as path separators. > > That caused a syntax

Re: [BUG] Possible bug in `remote set-url --add --push`

2013-01-12 Thread Sascha Cunz
Am Freitag, 11. Januar 2013, 23:10:36 schrieb Junio C Hamano: > Jardel Weyrich writes: > > I believe `remote set-url --add --push` has a bug. Performed tests > > with v1.8.0.1 and v1.8.1 (Mac OS X). > > > > Quoting the relevant part of the documentation: > >> set-url > >> > >> Changes URL re

Re: [Development] ICU and Windows

2013-01-11 Thread Sascha Cunz
Am Freitag, 11. Januar 2013, 23:07:25 schrieb Shaw Andy: > > [...] > > > > > Microsoft in the past has also said that you should keep the > > > -MD(d)/-MT(d) > > > setting consistent so it is the same across all libraries and > > > applications, > > > > [...] > > > > Which is cool, if you can ma

Re: [Development] ICU and Windows

2013-01-11 Thread Sascha Cunz
[...] > Microsoft in the past has also said that you should keep the -MD(d)/-MT(d) > setting consistent so it is the same across all libraries and applications, [...] Which is cool, if you can manage it. But it's far from what happens in the real world. In the real world you have foreign libra

Re: [gentoo-user] udev-197 moves from /usr/lib to /lib

2013-01-11 Thread Sascha Cunz
[...] > But it fixes how udev it's packaged in Gentoo, which is very good > news. I haven't upgraded, since I need systemd-197 also (which wasn't > yet in the tree yesterday), and I don't use LVM, but I'm wondering if > the LVM problem happens when you use an initramfs. I'm guessing it > doesn't,

Re: [gentoo-user] Re: LVM hangs at startup

2013-01-10 Thread Sascha Cunz
Am Donnerstag, 10. Januar 2013, 13:52:58 schrieb Stefan G. Weichinger: > Am 10.01.2013 12:49, schrieb Stefan G. Weichinger: > > Does anyone else see boot problems as well? > > > > I re-configured my kernel and rebooted ... system stops/waits at > > "Setting up the Logical Volume Manager". > > > >

Re: [Development] QtMultimedia BIC / header cleanliness issue

2012-12-23 Thread Sascha Cunz
On Saturday, December 22, 2012 09:13:05 PM Thiago Macieira wrote: > On domingo, 23 de dezembro de 2012 11.50.18, Sze Howe Koh wrote: > > For consistency with the other interfaces, I suggest simply adding > > empty virtual destructors. I believe this won't break any existing > > code; the only code

Re: [Development] Qt Playground - Updating Daemon/Service Support

2012-11-27 Thread Sascha Cunz
[...] > The difference is that 'operate' and 'configure' are two different tasks > and thus usually require two different interfaces. > > The 'operate' interface of an anti-malware service is to monitor data > and network traffic. The 'configure' interface is most probably a > seperate application

Re: [Development] Qt Playground - Updating Daemon/Service Support

2012-11-26 Thread Sascha Cunz
Am Dienstag, 27. November 2012, 08:16:20 schrieb Lukas Geyer: > Am 27.11.2012 06:15, schrieb Sascha Cunz: > >> A daemon/service has two interfaces: (i) user/system-API oriented, and > >> (ii) > >> one internal. > >> > >> The first presents the

Re: [Development] Qt Playground - Updating Daemon/Service Support

2012-11-26 Thread Sascha Cunz
m Montag, 26. November 2012, 20:36:47 schrieben Sie: > - Original Message - > > > From: Sascha Cunz > > Subject: Re: [Development] Qt Playground - Updating Daemon/Service Support > > > >> All services/daemons must be able to interface with other pr

Re: [Development] Qt Playground - Updating Daemon/Service Support

2012-11-26 Thread Sascha Cunz
> All services/daemons must be able to interface with other processes: Here, I almost agree :-) > (a)- a "client-process" can "request-a-client-operation" to occur on that > service/daemon But this is totally orthogonal to the application being a daemon/service. To some daemons your applicatio

Re: [PATCH v3 1/3] git-submodule add: Add -r/--record option

2012-11-23 Thread Sascha Cunz
Am Freitag, 23. November 2012, 16:55:21 schrieb Heiko Voigt: > I am still a little bit undecided about an automatically crafted commit. > > At $dayjob we sometimes update submodules to their tip without any > superproject changes just to make sure we use the newest version. Most > of the time the

Re: [PATCH] Completion must sort before using uniq

2012-11-23 Thread Sascha Cunz
> I can't see the difference and in fact don't understand uniq's -u option al > all Linux man pages say: "only print unique lines", but that is what uniq > does by default anyway?!? >From the german translation of uniq's man-page, you can deduct that "only print unique lines" actually means: "pri

Re: [Interest] calling QMessageBox::warning() may break the DLL detaching on VS2010

2012-11-15 Thread Sascha Cunz
Am Freitag, 16. November 2012, 09:57:26 schrieb Andrew Xu: > Sorry, the previous mail is not complete. continue... > > 5. As you memtioned, there is a static local object in the foo(), the > destructor of MyObj should be called when the program exiting. >1) If the QMessageBox::warning() were n

Re: [Interest] calling QMessageBox::warning() may break the DLL detaching on VS2010

2012-11-15 Thread Sascha Cunz
> I'm amazed that window related calls like ::MessageBox are even allowed in > DllMain, I certainly wouldn't expect them to work! Actually, they aren't - and that for a good reason. If it works, it's plainly by accident. Rationale: Creating a HWND in Windows might trigger the loading of DLLs.

Re: [gentoo-user] Unexpected Power Loss!

2012-11-13 Thread Sascha Cunz
> I'm sure you will get lots of ideas on this one tho. There can be a lot > of causes. RAM failure could be another one, which "could randomly vanish for a while when using another memory layout" (like in using another operating system). So, I'd suggest to boot up a memory tester and let it ru

Re: [Interest] Fwd: how to run 21 threads concurrently

2012-10-05 Thread Sascha Cunz
end_ of UNRSTParser::ProcessZLayer. That's why I put a helper-class into my example. Doing it here renders the Semaphore useless - Because you want the below acquire() to _block until all QFutures are finished_. > values += (nX*nY); > > } > > mSemaphore1.acquire(nZ); > >

Re: [Interest] how to run 21 threads concurrently

2012-10-04 Thread Sascha Cunz
Am Freitag, 5. Oktober 2012, 00:35:44 schrieb Sujan Dasmahapatra: > which loop? > for(int th=0; th { > if(Threads[th].isRunning()) > Threads[th].waitForFinished(); > Threads[th].cancel(); > } > Threads.clear(); > > This loop is correct. If threads is running wait, then cancel it. braces > are prop

Re: upload-pack is slow with lots of refs

2012-10-04 Thread Sascha Cunz
Am Mittwoch, 3. Oktober 2012, 16:13:16 schrieb Jeff King: > On Wed, Oct 03, 2012 at 12:41:38PM -0700, Shawn O. Pearce wrote: > > > Out of curiosity, how are you thinking about triggering such a new > > > behavior in a backwards-compatible way? Invoke git-upload-pack2, and > > > fall back to reconne

Re: [Interest] how to run 21 threads concurrently

2012-10-04 Thread Sascha Cunz
Hi Sujan, your threads don't output all data to disk, because you forgot some curly braces in the second loop. Sascha Am Donnerstag, 4. Oktober 2012, 16:21:10 schrieb Sujan Dasmahapatra: > I am not able to run my threads concurrently please help. > How can I run 21 threads concurrently and get

Re: Submodule design

2012-10-02 Thread Sascha Cunz
Am Dienstag, 2. Oktober 2012, 20:53:28 schrieben Sie: > Hi, > > Today I learnt that a gitlink is a commit object embedded in a tree. > However, I can't seem to be able to cat it. > > $ git ls-tree HEAD > 100644 blob 5a91f388f3648b98ae34a19ec42ba9acc7852ef4.gitmodules > 16 comm

Re: Message from 'git-rebase'; German translation

2012-09-23 Thread Sascha Cunz
Am Sonntag, 23. September 2012, 19:34:23 schrieb Ralf Thielow: > On Sun, Sep 23, 2012 at 5:41 PM, Sascha Cunz wrote: > > Exactly. The meaning is more important then the exact wording. Please > > consider> > > this: > > Es wurden Neuaufbau- / Zusammenf

Re: Message from 'git-rebase'; German translation

2012-09-23 Thread Sascha Cunz
Am Sonntag, 23. September 2012, 17:36:08 schrieb knittl: > Sharing my thoughts on this one, … > [...] > What about "wichtig"? I think that transfers the meaning pretty well. > "Es wird angehalten, um den Verlust wichtiger Infos zu vermeiden" > maybe? > > I hope the above spends some inspiration :

Re: Message from 'git-rebase'; German translation

2012-09-23 Thread Sascha Cunz
Am Sonntag, 23. September 2012, 17:04:15 schrieb Ralf Thielow: > On Sat, Sep 22, 2012 at 11:57 PM, Sascha Cunz wrote: > > As I know how hard translations can be, esp. with that much technical > > terms > > inside, I'm usually expecting _not_ to yield the same res

Message from 'git-rebase'; German translation

2012-09-22 Thread Sascha Cunz
As I know how hard translations can be, esp. with that much technical terms inside, I'm usually expecting _not_ to yield the same result when translating a software's translation back to English. However, git-rebase just threw these two sentences at me (And though i know their meaning, i couldn

Re: [gentoo-user] dev-util/valgrind-3.7.0-r4 and glibc

2012-09-14 Thread Sascha Cunz
Am Freitag, 14. September 2012, 20:48:23 schrieb Mick: > I got this message in elog: > > * Messages for package dev-util/valgrind-3.7.0-r4: > > * Valgrind will not work if glibc does not have debug symbols. > * To fix this you can add splitdebug to FEATURES in make.conf > * and remerge glibc.

Re: [CMake] How to get special target's source directory

2012-09-06 Thread Sascha Cunz
Hi, Yuchen, On Friday, September 07, 2012 08:43:02 AM Loaden wrote: > Hi, list! > I have a library target named 'TestLib', path is > "./src/libs/testlib_src_dir' > And now I made a execute named 'TestApp', path is './src/app' > > I try to link TestLib using: > target_link_libraries(TestApp TestLi

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-15 Thread Sascha Cunz
On Wednesday, August 15, 2012 08:06:08 AM Atlant Schmidt wrote: Atlant: > And the "indirect sales value" matters not a > whit to the owner of the software (or the > shareholders of the owner) unless the owner > is actively reaping a significant fraction > of that "indirect sales value" (w

Re: Bringing a bit more sanity to $GIT_DIR/objects/info/alternates?

2012-08-07 Thread Sascha Cunz
[..] > - By design, the borrowed object store MUST not ever lose any >object from it, as such an object loss can corrupt the borrowing >repositories. In theory, it is OK for the object store whose >objects are borrowed by repositories to acquire new objects, but >losing existing o

Re: [RFC/PATCH] Use work tree to determine if it supports symlinks

2012-07-27 Thread Sascha Cunz
On Friday, July 27, 2012 03:58:49 PM you wrote: > Sascha Cunz writes: > > Ok, so repository and working directory are simply not meant to be on > > different file systems. Thanks for the clarification. > > I did not mean "and that is a rule we need to enforce and

Re: [RFC/PATCH] Use work tree to determine if it supports symlinks

2012-07-27 Thread Sascha Cunz
On Friday, July 27, 2012 02:55:49 PM you wrote: > Sascha Cunz writes: > > From 3f449e719b924929f1f8ca9b5eff83f17bc64c60 Mon Sep 17 00:00:00 2001 > > From: Sascha Cunz > > Date: Fri, 27 Jul 2012 22:54:56 +0200 > > Subject: [PATCH] Use work tree to determine if it supp

[RFC/PATCH] Use work tree to determine if it supports symlinks

2012-07-27 Thread Sascha Cunz
>From 3f449e719b924929f1f8ca9b5eff83f17bc64c60 Mon Sep 17 00:00:00 2001 From: Sascha Cunz Date: Fri, 27 Jul 2012 22:54:56 +0200 Subject: [PATCH] Use work tree to determine if it supports symlinks When creating a new repository, we check some capabilities of the underlying file system(s).

[gentoo-dev] UTF-8 locale by default

2012-07-19 Thread Sascha Cunz
I recently discovered that I for some reason haven't noticed the warning about setting the locale to utf-8 in the gentoo handbook for obviously several years; thus i was still running all my systems in a POSIX locale since i never cared much about it. However, since I noticed, I talked to sever

Re: [gentoo-dev] Re: UEFI secure boot and Gentoo

2012-06-17 Thread Sascha Cunz
On Sunday, 17. June 2012 20:00:51 Florian Philipp wrote: > Am 17.06.2012 19:34, schrieb Sascha Cunz: > > [...] > > > >> It doesn't. It's just a very long wooden fence; you just didn't find > >> the hole yet. > > > > Given the fact that

Re: [gentoo-dev] Re: UEFI secure boot and Gentoo

2012-06-17 Thread Sascha Cunz
[...] > It doesn't. It's just a very long wooden fence; you just didn't find > the hole yet. Given the fact that the keys in the BIOS must somehow get there and it must also be able to update them (how to revoke or add keys else?). Unless this is completely done in hardware, there must be a sof

Re: [gentoo-user] ~gcc-4.7.0

2012-05-28 Thread Sascha Cunz
On Monday, 28. May 2012 22:04:30 Stefan G. Weichinger wrote: > As GCC-4.7.0 appeared for ~amd64 now ... > > anyone recompiled system or world with it already? > > More advantages or disadvantages? I tried an emerge -ev world yesterday (on a box with a total about 1100 emergeed packages), so far

Re: [Qt-creator] Some thoughts about 2.5

2012-05-27 Thread Sascha Cunz
On Sunday, 27. May 2012 22:08:18 I wrote: > Actually, QtCreator shows a clickable symbol near the changed definition / > declaration; if you click it (or hit alt-enter), QtCreator refactors the > counter part, BUT source navigation opens the destination file and jumps the > cursor there. I just r

Re: [Qt-creator] Some thoughts about 2.5

2012-05-27 Thread Sascha Cunz
On Sunday, 27. May 2012 14:57:46 Cristian Tibirna wrote: > On Sunday 27 May 2012 06:14:26 Geronimo Ma. Hernandez wrote: > > - support refactoring (alt-enter) without changing the active editor (aka > > refactoring in background) > > What do you mean? It seems to me this is what QtCreator does alre

Re: [gentoo-user] qbittorrent and icui18n lib

2012-04-28 Thread Sascha Cunz
Hi, András, On Saturday, 28. April 2012 12:54:42 András Csányi wrote: > Dear All, > > I can't decide whether it's an issue which must be reported or not. > My qbittorent messed up everything in the last two days and now I > started it from Konsole to see what the output is. I can see this: > > s

Re: Bug in dlls/comctl32/comctl32undoc.c

2005-07-02 Thread Sascha Cunz
Hi, > > In lines 1944 and 1977 of dlls/comctl32/comctl32undoc.c the value > > "0x7FFF" is used to check for the boundary of a 32 bit integer. However, > > there should be used MAX_INT instead. > I somehow doubt that this function will ever encounter an INT greater > than MAX_INT... :) you're of

Bug in dlls/comctl32/comctl32undoc.c

2005-06-30 Thread Sascha Cunz
Hi, playing around a bit with wine, i found a thing that is obviously a bug. In lines 1944 and 1977 of dlls/comctl32/comctl32undoc.c the value "0x7FFF" is used to check for the boundary of a 32 bit integer. However, there should be used MAX_INT instead. By the way: Looking at current MSDN, DPA

[gentoo-user] [OT] Current Spam ;)

2004-01-04 Thread Sascha Cunz
hi, > Why does MS want to put Security Updates on my Gentoo Box? :( nice to see that other people get those too I once investigated the EXE files attached to those E-Mails. As one could expect, the only thing they do is to find some SMTP servers and send out SPAM Mails. The mails are marked

Re: [gentoo-user] Spam from gentoo-lists

2004-01-04 Thread Sascha Cunz
> > [snip] > > > > I can't really tell, I was only stunned by the swift response from the > > spammer community. I received a spam mail only a few hours after posting > > for the first time with this address, which has been made only for > > receiving gentoo-list mail. > > I would still guess that

Re: [gentoo-user] Spam from gentoo-lists

2004-01-04 Thread Sascha Cunz
Hi, > Could anyone think of a resolution to this problem? > > Obfurscation of the mail archive? It's not that easy at all - because most of the spamable-mail-adress-scanners work differently. Since everybody can subscribe to this mailinglist, one simply needs to write a small mailer daemon whic

Re: [gentoo-user] How do I share the soundcard?

2004-01-04 Thread Sascha Cunz
Hi On Sunday 04 January 2004 19:35, Gerhard W. Gruber wrote: > I had this problem with enemy-territory and now I know what the problem > was. artsd was blocking the soundcard so et couldn't procceed. When I > killed it, et started fine. > > Now the obvious question is - How do I share the soundcard

[gentoo-user] failure to compile gcc-3.2.3-r3

2004-01-03 Thread Sascha Cunz
hi folks, after doing an emerge sync and emerge system on a freshly installed gentoo, compiling gcc fails with this error: /var/tmp/portage/gcc-3.2.3-r3/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.2.3-r3/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr

Re: [PHP] mysql_num_rows

2002-11-21 Thread Sascha Cunz
Hi, > 39| $result=mysql_query("slecet * from site_members where > User_Name='$username'"); 40| $num_row=mysql_num_rows($result); > 41| if($num_row>0) echo("error 46"); There is an typo-error in the word "slecet" which shoud look like "select" :-) -Sascha -- PHP General Mailing List (htt

Re: [PHP] $_SESSION question

2002-11-14 Thread Sascha Cunz
Hi Jochen, > How can I process $_SESSION variables if the user disables cookies > and session.use_trans_sid = 0 ? You could use a combination of outputbuffering and a self-written session-handler. So you could build a trans_sid-alike system, that would do more checks (i.e. compare IP-Addresses)

Re: [PHP] $_SESSION question

2002-11-14 Thread Sascha Cunz
> Simply put - you can't. > > You need a way to transmit the session identifier, and AFAIK there's > nothing except either cookies or SID. > > Using SID for security relevant issues presents a problem - users can send > links with a SID to friends by mail or else, so this is not really a secure > s

Re: [PHP] Subtracting Money

2002-11-14 Thread Sascha Cunz
Hi Stephen, > I'm having a problem. I need to subtract money, but if they type in an > ammount such as $2.30 and I subtract $0.20, instead of returning $2.10 like > it should, it returns $2.1. How can I fix this keeping in mind that other > variable could be $2.40 or $100.30 and so on...? This is

Re: [PHP] php.ini

2002-11-08 Thread Sascha Cunz
> The easiest way to find out where PHP expects your php.ini to be is to > create a page that calls phpinfo() - the configuration file location is > near the top of the output. Just to mention this: phpinfo() outputs the exact file name, if it loaded a php.ini - and outputs the path, where it tho

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Sascha Cunz
require's, just to be sure? btw: $HTTP_SESSION_VARS[user_id] should really be $HTTP_SESSION_VARS['user_id'] -Sascha > > -Original Message- > From: Sascha Cunz [mailto:Sascha@;GaNoAn.org] > Sent: Sunday, November 03, 2002 1:03 PM > To: Paul; [EMAIL PROTECTED] &

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Sascha Cunz
> require_once ("config.inc"); > require_once "classes/HtmlTemplate.class"; > The error is: > Warning: Cannot add header information - headers already sent by (output > started by.. ..line 6) ...on line 12 > > Line 6 is the line with if ($HTTP_SESSION_VARS[user_id]) > L

Re: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread Sascha Cunz
Hi, > Hi, > > I have a form where the user enters some information. For a particular > section of the form, I'd like the user to be able to save what he/she > entered so that the next time they feel out the form, they can recall > without the need to retype. This is not for the entire form but o

Re: [PHP] Variable over url

2002-10-31 Thread Sascha Cunz
Ops, of course. Sascha Am Donnerstag, 31. Oktober 2002 04:07 schrieb Chris Shiflett: > I think you mean turn on register_globals. :-) > > Sascha Cunz wrote: > >try > > > echo $_GET['tmp']; > >?> > > > >or turn off register_globals in your p

Re: [PHP] Variable over url

2002-10-30 Thread Sascha Cunz
Hi, try or turn off register_globals in your php.ini file. - Sascha Am Mittwoch, 30. Oktober 2002 20:49 schrieb Manuel Jenne: > Hi, > > I've just installed php 4.2.3 and wonder why I can't submit an variable > over url. > > Example: > > My Script: > Test.php > > echo $tmp; > ?> > > My URL: >

Re: [PHP] Re: POST-ing or GET-ing an array

2002-10-29 Thread Sascha Cunz
Hi, > I disagree that serialize/unserialize is the way to go, unless you're > absolutely completely sure that there will only be a relatively small > number of things in the array. As somebody mentioned briefly, the get > request is limited to a certain number of bytes, and the string > represent

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Sascha Cunz
> Hey, > I think you should be able to serialize and urlencode the array and then > pass that via get/post.post would be a lot better as get is limited to > so many chars. Something like: > $sql = "select stuff from my_table"; > $result = mysql_query($sql); > while ($myrow = mysql_fetch_assoc($

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Sascha Cunz
Hi, first of all, i would prefer to do this task in a session-variable (less traffic, less security holes). But, if you're sure you need to pass the array via an URL, try: which will result in test.php called with $_GET['ary'] containing: [0] = '1' [1] = '2' If the array contains strings (a

Re: [PHP] "global" AND Register Globals with PHP 4.0.6 ??

2002-10-14 Thread Sascha Cunz
Am Montag, 14. Oktober 2002 16:51 schrieb Negretti, John (CCI-San Diego): > Hello, > > I need to access the "$HTTP_GET_VARS" and "$HTTP_COOKIE_VARS" arrays > within a function. In order to do this I have to pass $HTTP_GET_VARS as a > parameter of the function. How can I access these built-

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-14 Thread Sascha Cunz
http://localhost/test.php?var=5 results in (global scope) $var = 5; // Register globals on $HTTP_GET_VARS['var'] = 5; // Always (?) $_GET['var'] = 5; // With newer versions of PHP To access this from a function: function x() { global $var; globsl $HTTP_GET_VARS; echo $var.''; e

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Sascha Cunz
This beautifies it (even makes it a bit more secure), but one doesn't need it really; should have worked without these changes, too. (Of course, it's better to include these changes) Sascha > The value of name for the submit button is wrong - it should be the same > as the value you gave the i

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Sascha Cunz
register_globals defaults now to off. Use the superglobals instead. "; } ?> Sascha Am Sonntag, 13. Oktober 2002 23:40 schrieb Lars H. Korte: > Hi, > I've updated to PHP 4.2.3 and wrote this simple Script: > > if (isset($name)) { > echo "Hallo $name"; > } > else { > echo " >

Re: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded

2002-10-13 Thread Sascha Cunz
Yet another very fine way to do this job, is to set up a mailinglist manager (ezmlm i.e.), whom you subscribe all your recipients - And then send just one mail to the mailinglist manager. Of course, works only if you got control to the server. --Sascha -- PHP General Mailing List (http://www.

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Sascha Cunz
Am Sonntag, 13. Oktober 2002 02:11 schrieb Andres Olarte: > Thanks to Oscar and Jennifer, it's working now. I did a bit of reading, > and it seems it's not recommend to enable "register_globlas", why is that? For security... Imagine, you register a session variable to contain the user's ID. Any

Re: [PHP] Predefined variables not set?

2002-10-13 Thread Sascha Cunz
Am Sonntag, 13. Oktober 2002 10:04 schrieb Miles: > When trying to get $_SERVER["QUERY_STRING"] I am getting 'Undefined index > QUERY_STRING' error > > If there is a query string, e.g. www.site.com/index.php?hello_world then > it IS defined. So it seems that PHP is complaining about undefined >

Re: [PHP] Upload Problem

2002-10-13 Thread Sascha Cunz
Hi, as far as i can follow you, you want to: 1. copy a file from position a to position b. 2. read it from position b. 3. and delete it at position b. Why not read it directly from position a? So what about: $content = implode("", file($userfile)); Anyway: You should initialize $i in any

Re: [PHP] Calling PHP (cgi) from a perl script and passsing parameters

2002-10-10 Thread Sascha Cunz
What you're referring is CLI, not CGI Version of PHP. Anyway, i assume, you're using a PHP version 4.2 or higher. Have a look at the $_SERVER['argc'] and $_SERVER['argv']. Sascha Am Donnerstag, 10. Oktober 2002 23:57 schrieb Jim Carey: > Hi, > > have been having problems passing parameters to

Re: [PHP] php.net bug system

2002-10-08 Thread Sascha Cunz
sure, it is :-) Try: http://cvs.php.net/cvs.php/php-bugs-web?login=2 or go to: http://www.php.net/anoncvs.php and check out "php-bugs-web" Happy Hacking (I'd personally prefer bugzilla... You won't need to adjust as much) Sascha Am Mittwoch, 9. Oktober 2002 02:52 schrieb Jason Morehouse: > A

Re: [PHP] HTTP_USER_AGENT - list of possibilities

2002-10-08 Thread Sascha Cunz
Hi, > Hey everyone... do you know where I can find a list of the common returns > of the $_SERVER["HTTP_USER_AGENT"] variable? > > For example: > I.E. 5.0 = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR > 1.0.3705) > Netscape 4.08 = Mozilla/4.08 [en] (WinNT; U ;Nav) On one side -

Re: [PHP-DEV] ext/aspell

2002-10-08 Thread Sascha Cunz
> [] While new comers may not know of pspell, > people who have compiled PHP before with it will, infact that is what > they'll expect when configuring their PHP. Since we cannot remove the old > pspell option like we seem to agree to do for --with-aspell it is cleaner > IMHO to simply add tha

Re: [PHP] getimagesize or loop pblm

2002-10-06 Thread Sascha Cunz
You can calculate the image size when adding the image (rather than when displaying it) and store the information in a file or a database. This file or database you could use for posting the right sizes for popup windows. Sascha Am Montag, 7. Oktober 2002 03:22 schrieb arnaud gonzales: > So my

Re: [PHP] IIS 5 - ASP & PHP dev enviorment

2002-10-06 Thread Sascha Cunz
> > You can run both of them without problems. Since ASP is a default on > IIS, any IIS server set up to run PHP is running them both... I haven't > heard of any problems caused just by having the two running at once. > > ---John Holmes... I got this configuration times ago... Works without any p

Re: [PHP] need help for a where clause

2002-10-06 Thread Sascha Cunz
A solution on that depends strongly on how much values A.Afn would take. For 3, it's still okay. But i wouldn't do more. Against what shall the B.Bfn* be checked? What Data do you want to be returned from the query? try: SELECT ### FROM A, B WHERE ((A.Afn=1) AND (B.Bfn1 = ...)) OR ((A.Af

Re: [PHP] Re: Can it be Done?

2002-10-06 Thread Sascha Cunz
x27; function to send querystring > arguments? I'd rather used urlencode... > > "Sascha Cunz" <[EMAIL PROTECTED]> ha scritto nel messaggio > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > To produce such a JavaScript: > > define('_DOMBASE', 'h

Re: [PHP] Re: Can it be Done?

2002-10-06 Thread Sascha Cunz
To produce such a JavaScript: define('_DOMBASE', 'http://yourdomain.com'); echo ''."\n" .'if (document.location == top.location)'."\n" .' top.location="'._DOMBASE.'/index.php?goto=' .base64_encode($_SERVER["REQUEST_URI"]).'";'."\n" .''; where the index.php works like:

Re: [PHP] Can it be Done?

2002-10-06 Thread Sascha Cunz
Hi, i don't think you can do this all on Server-side. I once made things like that work with usual frames. I used Javascript in each page of the frameset to find out if the "parent" exists - and if not, redirect to the frameset which itself was a PHP script whom i told to load the current page

Re: [PHP] More Detailed Gettext() article?

2002-10-05 Thread Sascha Cunz
Try the GNU Documentation on gettext: http://www.gnu.org/manual/gettext/index.html Regards Sascha Am Sonntag, 6. Oktober 2002 01:51 schrieb Wee Keat [Amorphosium]: > Hi everyone.. > > Sorry for bothering u guys for such trivial matter... > > But where can I get a good article on how to use

Re: [PHP] More On: Good Practice: Variables, Error Reporting and Security

2002-10-05 Thread Sascha Cunz
Am Samstag, 5. Oktober 2002 20:44 schrieb Adam Royle: > I very much appreciate the suggestions made by the people on this list, > although for me, when developing, the less typing I have to do, the > less errors I am bound to come across, and therefore the less debugging > I must do. (Now, doesn't

Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-01 Thread Sascha Cunz
> ummyou'd have to include that line at the top of every function that > uses get(or any of the other) vars(scoping reasons) or somehow pass it via > a reference to the function. I've always added the line at the top. At the top of each _function_? Urgs. Sounds like a hell of a lot of work.

Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-01 Thread Sascha Cunz
> Hey gang, > I've been wondering about developing scripts that the end-user might run on > php < 4.1.0. I've heard allot of ways except for one that I recently > thought of. > How about using: > - > if(!isset($_GET)) { global $HTTP_GET_VARS; $_GET = &$HTTP_GET_VARS; } > - > ? That allow

  1   2   >