<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.9" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>New Zealand Web Hosting Provider</title>
	<link>http://www.cheaphosting.net.nz</link>
	<description>Affordable web hosting services, cheap domain name registration, wide range of supported services: PHP, JSP, Java Servlets, Tomcat 6, JBoss EJB J2EE, Database: MySQL 5 &#38; PostgreSQL 8.2.</description>
	<pubDate>Tue, 05 Feb 2008 07:51:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.9</generator>
	<language>en</language>
			<item>
		<title>yes getting md5 vbulletin collision is doable now and sha1 might follow in the near future  10 years so what if we use both</title>
		<link>http://www.cheaphosting.net.nz/hosting/yes-getting-md5-vbulletin-collision-is-doable-now-and-sha1-might-follow-in-the-near-future-10-years-so-what-if-we-use-both/</link>
		<comments>http://www.cheaphosting.net.nz/hosting/yes-getting-md5-vbulletin-collision-is-doable-now-and-sha1-might-follow-in-the-near-future-10-years-so-what-if-we-use-both/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 07:51:02 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
		
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.cheaphosting.net.nz/hosting/yes-getting-md5-vbulletin-collision-is-doable-now-and-sha1-might-follow-in-the-near-future-10-years-so-what-if-we-use-both/</guid>
		<description><![CDATA[hey guys
Does anyone have any recommendations for the best resources for learning Flash and ActionScript? (Or conversely, anything to avoid a la w3schools for HTML.)
the builtin help is good
you should try it
thanks
sending urls with &#38; in them to the UA is not part of the spec is it? the &#38; is supposed to be collapsed to &#38; before it gets sent to the server correct?
correct. URLs are governed by HTTP and URI specs not HTML. and &#38; is a HTML escape
thought so
Hello everyone
I have a frame question. I have a frameset with two frames in it, one left one right. Is it possible to use one scrollbar to controll both frames? If so where would I find information on doing so?
no, it isn&#8217;t really possible. You&#8217;d be better off avoiding frames actually.
I was thinking about some javascript onscroll event then a frame call to framename.scrollTo(x,y) just not sure exactly what I am doing, still learning all this as I go.
anyone know where i can find a guide which will show me how to set up a page, where the person types in how much money they have to pay me and then click submit to send the mony to my [...]]]></description>
			<content:encoded><![CDATA[<p>hey guys</p>
<p>Does anyone have any recommendations for the best resources for learning Flash and ActionScript? (Or conversely, anything to avoid a la w3schools for HTML.)</p>
<p>the builtin help is good
you should try it</p>
<p>thanks</p>
<p><b>sending urls with &amp; in them to the UA is not part of the spec is it? the &amp; is supposed to be collapsed to &amp; before it gets sent to the server correct?</b></p>
<p><u>correct. URLs are governed by HTTP and URI specs not HTML. and &amp; is a HTML escape</u></p>
<p>thought so</p>
<p>Hello everyone
<b>I have a frame question. I have a frameset with two frames in it, one left one right. Is it possible to use one scrollbar to controll both frames? If so where would I find information on doing so?</b></p>
<p>no, it isn&#8217;t really possible. You&#8217;d be better off avoiding frames actually.</p>
<p><u>I was thinking about some javascript onscroll event then a frame call to framename.scrollTo(x,y) just not sure exactly what I am doing, still learning all this as I go.</u></p>
<p>anyone know where i can find a guide which will show me how to set up a page, where the person types in how much money they have to pay me and then click submit to send the mony to my paypal account from their credit card</p>
<p>&#8230; well, PayPal has howto-guides on that.</p>
<p>finding them hard to follow, its on about shopping carts, i just want a box where they type the amount to pay me, select their currency and credit my account</p>
<p>hey</p>
<p>sudo /etc/init.d/bind9 reload
er, oops
unplanned right-clicks will be the death of me</p>
<p><a href="http://pastebin.ca/687331">http://pastebin.ca/687331</a>
a href=&#8221;<a href="http://pastebin.ca/687331">http://pastebin.ca/687331&#8243;http://pastebin.ca/687331/a</a></p>
<p>hehe, hi</p>
<p>now, how to create a hash over an object in javascript?
Yeah, 1:0
Anyone from Wales in here? *G*</p>
<p>i am</p>
<p>you watching rugby or soccer?
soccer? football? whats it called?</p>
<p><u>Other countries stole out football and called it rugby, then stole our soccer and called it football.</u>
s/out/our/</p>
<p>Un-true.</p>
<p><b>I&#8217;m an American. I have the rights to life, liberty, and the revision of history.</b></p>
<p>Hoo haa.</p>
<p>heh&#8230; that&#8217;s too ironic&#8230; football was invented by English&#8230; the same people we didn&#8217;t like hah&#8230;</p>
<p><u>Osama bin Latte released another video. I has apparently found a miracle anti-aging treatment.</u>
s/I/He/
Crap, I&#8217;ve been found!
We don&#8217;t like soccer
<a href="http://lifehacker.com/assets/resources/2007/09/laptop-sleeve.png">http://lifehacker.com/assets/resources/2007/09/laptop-sleeve.png</a> - wut</p>
<p>&#8230;. I&#8217;m Asian American&#8230; I enjoy fencing&#8230;
heh</p>
<p>I don&#8217;t feel like being productive. I don&#8217;t feel like playing anything. I don&#8217;t feel like eating. I don&#8217;t feel like sleeping. What should I do?
Where in Asia are you from?</p>
<p>Vietnam</p>
<p>I hear Vietnamese food is good
My great-grandparents were apparently from Denmark.
I hear their danishes are good
<a href="http://www.youtube.com/watch?v=MTbX1aMajow">http://www.youtube.com/watch?v=MTbX1aMajow</a></p>
<p>hahahaha
Must have missed that episode.</p>
<p>lol&#8230; that&#8217;s pretty funny</p>
<p>Nooo, not the national lottery.
At least you can laugh at the thunderball graphics and how dirty they look.</p>
<p><a href="http://ap.google.com/article/ALeqM5iV288uGuzIGplVNScrAwB1TaZrcA">http://ap.google.com/article/ALeqM5iV288uGuzIGplVNScrAwB1TaZrcA</a> - What, no link to an example?</p>
<p>Nanobot, even better is <a href="http://www.youtube.com/watch?v=-Xfqkdh5Js4">http://www.youtube.com/watch?v=-Xfqkdh5Js4</a></p>
<p>&#8230;</p>
<p>fun-kay</p>
<p><b>I got a script working to control 2 frames with one scrollbar, just like I asked&#8230; however it doesn&#8217;t work cross site :o( &#8220;permission denied to Window.scrollTo&#8221;</b></p>
<p>probably anti-fishing, you&#8217;re so outa luck</p>
<p>if I had access to apache configs, servers, and files would there be a way?
on both ends</p>
<p>ask #javascript</p>
<p>hi all
<u>why is it that when you have 2 links one under the other (with a newline separating them) .. they have a divider between them .. and when they are next to each other .. they don&#8217;t?</u></p>
<p>hi
is google.com down for you guys?</p>
<p>yes</p>
<p>wow</p>
<p>they left the search engine market
you didn&#8217;t get the memo</p>
<p><u>do any of you guys have some testcases of less valid html? I am writing a parser and need idiot proofing</u></p>
<p>wtf webdevout redirects to www.? :p</p>
<p>yeah</p>
<p>hey Nanobutt <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>look around on microsoft.com</p>
<p>Just like google.com, yahoo.com, w3.org, etc. do</p>
<p>is that your justification?</p>
<p>I suspect WHATWG has lots of testcases you could use</p>
<p>because that&#8217;s retarded :p</p>
<p>It doesn&#8217;t really matter which way you go as long as you stick to one or the other</p>
<p>of course it matters
using www. is pointless :p</p>
<p>if you just want whole bad <a href="http://www.cheaphosting.net.nz"><b>html</b></a> sites, try major online retailers
e.g. dell</p>
<p>www.reisio</p>
<p>Dell uses a lot of XHR these days</p>
<p>XHR?</p>
<p><b>Even the no-www site says using www. is okay as long as you stick to one or the other</b></p>
<p>Extra Human Retardedness?</p>
<p>xmlhttpboooobah</p>
<p>rofl?</p>
<p>yeah, but it also says doing away with it is choice</p>
<p>reisio, &#8230; you could just say crap</p>
<p><u>And honestly, when people write URLs in books and stuff, they tend to write www. more often than without no matter what the site accepts</u></p>
<p>I did :p &#8216;XHR&#8217; :p</p>
<p> <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> 
touc&eacute; ;D</p>
<p><u>yeah well, I hope you know what I think of books and the vast majority of their authors :p</u></p>
<p>and many of the users :p
but that&#8217;s implicit</p>
<p>indeed</p>
<p>so yeah
reisio for president!</p>
<p>agreed</p>
<p>:p
writein, 2008? <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> 
I wonder if you&#8217;ll get more votes than bush! <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>nah, I won&#8217;t even officially run
I&#8217;ll just fix the electronic voting machines</p>
<p>hey</p>
<p>hay</p>
<p>ney</p>
<p>I represent the lollipop guild.</p>
<p>does anyone know if it is possible to insert my google calendar onto a website of mine?</p>
<p>Yes
<a href="http://www.cvc.edu/faculty/calendar/">http://www.cvc.edu/faculty/calendar/</a></p>
<p>i guess is hould google first huh -_-
ya</p>
<p>Speaking of which, Raquel really needs to update that calendar&#8230;</p>
<p>awesome</p>
<p>is there a way to set a maximum height for a div?</p>
<p>I know this isn&#8217;t a good way to do it but I use div align=&#8221;center&#8221; height=&#8221;NUMBER HERE&#8221;</p>
<p><u>wait. i&#8217;m not sure i&#8217;ve explained myself correctly. i have a div and it&#8217;s height is not fixed. i&#8217;d like it to grow up to a certain level but no more than that (so that beyond a certain level, overflow would occur and the height would not grow any more).</u></p>
<p>hmm
not really sure then&#8230;</p>
<p>i&#8217;ll just wait, maybe someone else knows.</p>
<p>Is there a way for me to make sublevel(link) on my pages? My nav bar is one file&#8230; But I want to make some sublevels on certain pages WHEN we&#8217;re on that page..?</p>
<p>/jon #asp</p>
<p>* jon :Unknown command
I&#8217;m so glad I don&#8217;t have to deal with ASP anymore</p>
<p>ASP.NET isn&#8217;t half bad.</p>
<p>Yep. It&#8217;s whole bad.</p>
<p>SNAKES!</p>
<p>i don&#8217;t use asp</p>
<p>ASP - Snakes on a Server? <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> 
or Python - *hiss*</p>
<p>It&#8217;s probably easier to get a <a href="http://www.cheaphosting.net.nz">server</a> to return a web site using an app coded in Brainfuck than using ASP.NET</p>
<p>No, it&#8217;s *very* easy to get it done in ASP.NET. Too easy, as a matter of fact.</p>
<p>I&#8217;d rather write a web site and server all-in-one using Brainfuck, Whitespace, or LOLCODE</p>
<p><u>And, interestingly enough, even MS claim you can&#8217;t make an accessible site by using the .NET controls.</u></p>
<p>It allows for proper object-oriented design though.</p>
<p>Ahhhhh OO! DIE OO!</p>
<p>Me likey spaghetti too much!
Procedural programming worked for spore!</p>
<p>HAI, CAN HAS STDIO?, VISIBLE &#8220;HAI WORLD!&#8221;, KTHXBYE</p>
<p>now, THAT we can discuss &#8230;
For instance, is really the fact that the explicit get/set methods of user-defined classes has no strict type checking really OO?</p>
<p>SuN, how many server side languages do you know that do not allow proper object-oriented <a href="http://www.cheaphosting.net.nz"><b>design</b></a> these days?</p>
<p>Unfortunately, not enough.</p>
<p>PHP4 (which is still prevalent on many webservers) comes to mind.</p>
<p>KairuMaiku, why unfortunately?</p>
<p>OO makes my applications too slow.
That other 4 or 5 ms could be spent doing other things.
Like processing pages for 4 or 5 other users?</p>
<p>hey all</p>
<p><b>php4 is dead. it&#8217;s been dying for quite some time. about time the zend guys stop supporting it (and they actually are going to do just that pretty soon).</b></p>
<p><b>granted, it IS possibly to make an OO application too slow by using OO, so to speak, but that&#8217;s QUITE abit larger applications than you write. Try redesigning.</b></p>
<p>KairuMaiku, then you need to redesign your applications.</p>
<p>Either way there&#8217;s still a slowdown, at least, in PHP.</p>
<p><u>If i have a website consisting mainly of a sliced image that is basically a golden border, and a nav menu at the bottom, is it possible to have the links from the nav menu open inside the border? a point in the right direction would be greatly appreciated</u></p>
<p>not every small thing is an object just because you can present it as one. this is a mistake a lot of people make when moving to OO languages from procedural ones.</p>
<p>That has nothing to do with the actual effectiveness of OO though.</p>
<p>That&#8217;s exactly it, is that I don&#8217;t have enough non-small things to make OO work. <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>KairuMaiku, it is inevitable. the more features a language has, the slower it gets.
KairuMaiku, then you definitely need a redesign.</p>
<p>The whole point is code manageability, at a cost of CPU power, yes, but since that doubles every 6 months or so, who cares? It&#8217;s about cost effectiveness.</p>
<p><u>What&#8217;s the point of using OO if I don&#8217;t use multiple of the same object on the same page, anyway?</u></p>
<p>Or, is the most feasible way to just simply make all the pages with the same <a href="http://www.cheaphosting.net.nz">image</a> and change the content in the middle for each link?</p>
<p>my database tables are usually encapsulated into objects because it just makes more sense that way, but the application flow is strictly procedural (as it usually is, by nature).</p>
<p><b>CPU power matters a lot when you get into large amounts of it.</b></p>
<p><u>The main class is procedural most of the time&#8230; the rest isn&#8217;t, that&#8217;s the point.</u></p>
<p>anyone have a suggestion perchance?</p>
<p><u>See now I don&#8217;t use the same table or even php code multiple times on the same page.</u></p>
<p>KairuMaiku, well, i use javascript objects (instantiated using prototypes) together with php objects on the server side. getting the page displayed is done using client side methods (in the sense that the client side logic is handled by JS and not <a href="http://www.cheaphosting.net.nz"><u>php</u></a> or some templating engine).
<u>i find it quite disgusting to use php to design the layout of a page or stick content into it.</u>
<b>but that&#8217;s just me and not every project can work that way (i&#8217;m glad the current one i&#8217;m working on is, however).</b></p>
<p>Until you realize that JS has awful browser compatibility.</p>
<p>: \</p>
<p>I make frameworks for that.</p>
<p>KairuMaiku, jquery</p>
<p>I&#8217;m using extjs right now on a site I&#8217;m volunteering work for.
<u>And will probably end up having some JS coder do custom stuff for my other site</u></p>
<p><u>KairuMaiku, and experience. can&#8217;t really help that. javascript is awsome once you get familiar enough with it (and once you get over that whole &#8216;it&#8217;s a dumb client side gadgetery language conception).</u></p>
<p>is there a way you can get the value from a variable within a function outside it?</p>
<p>Conception, not necessarily misconception</p>
<p><u>I don&#8217;t really have a problem using JS at all, DEPENDING on the application it&#8217;s being used for.</u>
Right now I&#8217;m using extjs on my high school football site. Most of the visitors will be aged 14-18. You take into the consideration of likelihood for JS to be enabled in their browsers and it makes sense to use it.
JS can only be as awesome as the support in the user&#8217;s browser for it.,</p>
<p><b>I prefer to keep as much as possible on the server side, though.</b></p>
<p>Yep.</p>
<p>i don&#8217;t.</p>
<p>Some people like living on the edge, I guess.</p>
<p><b>The problem is that my thought process and ego are too big to allow for browser incompatibility.</b></p>
<p><b>if there&#8217;s something i find quite disgusting it&#8217;s sticking php echos into a page to feed a javascript array. besides, it misses the entire point of having a very smart client side language.</b></p>
<p>I try to think like an economist when I script/code.
Rational people think at the margin
<u>Any rational person will take action only if the marginal benefit exceeds the marginal cost.</u></p>
<p>KairuMaiku, browser incompatibilities disappear once you get familiar with some framework. besides, CSS is the main problem anyways. javascript is quite consistent across browsers (most of it, anyways). the DOM can be a problem sometimes, but you can get most things done.
<u>well, my boss worries about margins and cost and all that yappy crap. i write code and i make sure it&#8217;s damn good too.</u></p>
<p>When you get into large scale things you begin to include users who are on mobile phones, text-based browsers, have js disabled, etc.</p>
<p><b>If i have a website consisting mainly of a sliced image that is basically a golden border, and a nav menu at the bottom, is it possible to have the links from the nav menu open inside the border? a point in the right direction would be greatly appreciated</b></p>
<p>You have to be more specific. What do you mean open?</p>
<p>KairuMaiku, i assure you that i am well aware of this. This is why you have browser sniffing and good unobtrusive javascript techniques.</p>
<p>I could give you ways to do that in Perl, PHP, AJAX, HTML, CSS&#8230;</p>
<p>the tools exist, if you care to use them.</p>
<p>It&#8217;s all extra work, though.
CSS is bad enough by itself</p>
<p>Thankfully CSS support is getting better.</p>
<p><u>it is after all, a matter of taste. i&#8217;ve done things both your way and mine. when i have the choice, i usually go with smart clients rather than using php to inject data into my pages.</u></p>
<p>PHP doesn&#8217;t inject data into my pages, php makes my pages.</p>
<p>Yeah, heh.</p>
<p>Well, I&#8217;d like to have the page open (when the link is clicked in the nav bar) inside the center of my page,</p>
<p><b>Basically for me, PHP is what tells the page how it will look entirely.</b></p>
<p>if you check out this:
<a href="http://naturalselectionguild.net/VelenciaOnline/filedump/upload/layoutvelencia(1).jpg">http://naturalselectionguild.net/VelenciaOnline/filedump/upload/layoutvelencia(1).jpg</a>
<b>if I were to click a button on the bottom nav bar i&#8217;d like to be able to have the page open inside the golden border</b></p>
<p>Well, you can do that using iFrames though that&#8217;s an ugly method.
<u>You could do a div inside of the frame that JS opens content inside of</u>
You could have perl or php inject the content of html documents&#8230;</p>
<p>Or simply copy the page for each link</p>
<p>Or that.</p>
<p>which would you guys recomend?</p>
<p>How dare you suggest such a ridiculous thing?</p>
<p>How is it ridiculous?</p>
<p>*Static* pages?</p>
<p>If I were to do it with php, I&#8217;d feed the same header and footer anyway.
Well you&#8217;re assuming he&#8217;s going to use any script at all.</p>
<p>To be honest I don&#8217;t use HTML documents at all. <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Well, i&#8217;m not too fammiliar with php but the webhost i&#8217;m using definately does support php, maybe thats my best bet?</p>
<p>Really you can either do that, have AJAH, or just use static .html pages for each page.
Or you could do it in Flash.</p>
<p>Flash? What the hell?</p>
<p>hmm</p>
<p>If anything&#8217;s ridiculous&#8230;</p>
<p>lol I know
I&#8217;m just trying to give him all his options.</p>
<p><u>Static pages is the fastest way if this thing isn&#8217;t going to grow.</u>
uStatic pages is the fastest way if this thing isn&#8217;t going to grow./u</p>
<p>I&#8217;d be purposely adding dynamic things to my pages just to make them php.</p>
<p>I haven&#8217;t done static pages for years either</p>
<p>Or rather give myself an excuse to use PHP.</p>
<p>well it may grow in time, but i dont know how quickly, or if at all,</p>
<p><b>Well as soon as I see a menu, I&#8217;m inclined to use PHP because then I can separate the design from the content frame&#8230; see, if I have 5 pages, and I decide I want the menu to be on top instead of down there, I&#8217;d have to rewrite 5 pages.</b></p>
<p><b>sounds like for the time being i&#8217;ll just make static pages, and read up on php in the meantime</b></p>
<p><b>Whereas in PHP I&#8217;d use static headers and footers, so I&#8217;d only have to change that and it&#8217;d be changed on all pages.</b></p>
<p><b>also another question, is there a way to stretch an image to the entire browser window?</b></p>
<p>Yes. Many ways.
Stretching is bad though.</p>
<p>so should i just pick a resolution and stick to it then? i.e. base all my images off of that resolution?</p>
<p>Yeah, if you&#8217;re planning on stretching that background image, it&#8217;s going to be ugly.</p>
<p>Yes please. Just center it on a black background or something.</p>
<p><b>Rather put in in some sort of frame, or think of a nifty way to make the wood pattern repetitive.</b></p>
<p>okay, thanks =D</p>
<p><u>You may think it looks stupid, but your users with a 24&#8243; widescreen or two like myself will thank you.</u>
uYou may think it looks stupid, but your users with a 24&#8243; widescreen or two like myself will thank you./u
<u>uYou may think it looks stupid, but your users with a 24&#8243; widescreen or two like myself will thank you./u</u></p>
<p>indeed, i am on a 19&#8243; widescreen myself</p>
<p>I browse fullscreen and people who don&#8217;t make their sites stretch want to make me commit suicide.
<b>I&#8217;d rather have them a static width or fully expandable and looking good at my res. <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </b></p>
<p>hehe</p>
<p>I zoom my ass off all day, though.
Luckily, that&#8217;s no problem with Opera.</p>
<p>lol
<b>I usually scream for a few seconds and exit out of the site.</b></p>
<p>I&#8217;d rather have it not stretch than stretch when a page has font sizes in px though.</p>
<p><u>I don&#8217;t even care if it&#8217;s important. If it&#8217;s for school, I come in the next day and say I couldn&#8217;t do research because the site didn&#8217;t stretch properly.</u></p>
<p>Because everything will be stretched except for the fonts (it does happen).</p>
<p>Hence why all my sites are fixed width.</p>
<p>Wow, the premise for a stunning career</p>
<p>lol SuN
<b>At which point I&#8217;ll start using GreaseMonkey to rewrite sites to my liking.</b></p>
<p><u>Uhm yeah I didn&#8217;t read this information that could potentially change my life forever, because, like&#8230; it didn&#8217;t stretch.</u></p>
<p>Exactly what I say.
Except I only moan if it didn&#8217;t stretch properly.
<u>I could care less if it stretches, or if it&#8217;s fixed width, but if it looks fucking ugly I scream and close it</u>
<u>uI could care less if it stretches, or if it&#8217;s fixed width, but if it looks fucking ugly I scream and close it/u</u></p>
<p>well i centered that image,
and set the site background as a repeatable wood grain</p>
<p>Nice!</p>
<p><u>its uploading, ill send a link if you guys want to take a look</u>
<b>uits uploading, ill send a link if you guys want to take a look/u</b></p>
<p>Crysis demo on 25th!
Time to order dual 2gb sticks of ram</p>
<p>interesting.. it uploaded sucessfully but to where is a mystery</p>
<p>&nbsp;</p>
<p><a href="http://www.cheaphosting.net.nz"><em>Reliable mysql5 hosting</em></a></p>
<p>&nbsp;</p>
lol Andrew
when i upload something i don&#8217;t pay attention where and just spew out a bunch of links to different urls with the same filename appended
one of them is bound to be correct
<p><u>i get a little worried when it definately uploaded to where it was supposed to go, took time to upload with no error messages, yet isnt there&#8230; lol</u>
here ya go
<a href="http://testingstage.naturalselectionguild.net/">http://testingstage.naturalselectionguild.net/</a></p>
<p>Hm, it doesn&#8217;t line up entirely correct for me.</p>
<p><b>nah me neither really, just wanted to see what it would like like</b></p>
<p>Ahh ok.</p>
<p>so, say if i were using 800&#215;600 resolution
and you were using 1440&#215;900
<b>to make up for the difference, does using the repeating background method just add more repeats?</b>
as opposed to a blank space, or stretching?</p>
<p>Depending on the setting, yes.
But you can set it to blank/norepeat or stretch as well.
<b>But it&#8217;s not going to stretch the repetition, if that&#8217;s what you mean.</b></p>
<p>okay, great
this is what i have it as :
background-image: url(bg_patt_site_vere.jpg);
background-repeat: repeat;</p>
<p>hmm they are all taken</p>
<p>woohoo, got this one lol</p>
<p><b>I have two colums, left is fixed, right i&#8217;d like to be fluid, but IE6 keeps breaking it down</b>
how would i avoid this?
IE is just doing some funny stuff with it</p>
<p>and whatnot?</p>
<p>??</p>
<p>ul { padding: 0 0 0 Npx }
or margin</p>
<p>finally, comcast is back</p>
<p>as am I</p>
<p>heh, sup GarethAdams</p>
<p>not a lot</p>
<p>same
<u>oh, also, as a note for anyone presently chewing on a uniball pen, apparently there&#8217;s no container for the ink</u>
so if the end pops off in your mouth
watch out.
i hope that isn&#8217;t poisonous
it&#8217;s funny that they dress pretty much like us
err, wrong window</p>
<p>Who, BSG characters?</p>
<p>japanese people :p
heh</p>
<p>So, I didn&#8217;t suck at the pool tournament.
I didn&#8217;t win any matches, but I still did _way_ better than anticipated.</p>
<p>what game do you play?
(i don&#8217;t know much about pool tournaments)</p>
<p><u>This was the Portland stop of the Pechauer West Coast Tour.. 9-ball double elimination, $2k winner take all.</u>
<u>uThis was the Portland stop of the Pechauer West Coast Tour.. 9-ball double elimination, $2k winner take all./u</u>
<b>Race to 9 first match, 7 second match. I went 8-9 and 3-7.</b></p>
<p>neat
some day i&#8217;ll learn to play</p>
<p><b>I don&#8217;t actually like 9-ball, but it&#8217;s what the tourney plays, and the guys that show up for it are a real joy to watch.</b></p>
<p>all kinds of characters?</p>
<p>Some, yeah. Although you don&#8217;t find that out until afterwards when they&#8217;re out and playing side games. Anybody playing in the tourney itself tends to, like, not say anything.
What&#8217;s interesting during the tournament matches is how differently everyone reacts to their mistakes.</p>
<p><b>i guess in a good tournament you&#8217;re just waiting for the other person to make a mistake?</b></p>
<p>Pretty much, yeah.
Especially since it&#8217;s winner&#8217;s break. It&#8217;s entirely possible for a guy to win the coin toss and break &amp; run straight through, if he never makes a mistake, or if the other guy never capitalizes on it.</p>
<p>sounds intense</p>
<p>Ayep.
I much prefer 8-ball, where the consequences of screwing up are significantly smaller.</p>
<p>heh</p>
<p>Only reason I got so close in the first match is the other guy was blowing a lot of shots, and letting it get to him.
<b>Second guy was calm, but had no business letting me get more than 1 game on him.</b>
<u>Like, the only reason I got my 2nd game was he was too stubborn to use a bridge for some reason.</u></p>
<p>lol
is that considered poor form?</p>
<p><b>No, these are 9 foot tables. Unless you&#8217;re 7 feet tall, eventually you&#8217;re going to have to use the bridge.</b>
Refusing to use it is just some strange misplaced masculine pride thing.</p>
<p>lol
sup Zeros</p>
<p>Hmm. I ended up with Kucinich, followed by Gravel, then Obama, then Dodd. <a href="http://www.vajoe.com/candidate_calculator.html">http://www.vajoe.com/candidate_calculator.html</a>
Not sure how Dodd slipped in there, but whatever.</p>
<p>lol
do i support net neutrality?</p>
<p>Yes.
<a href="http://en.wikipedia.org/wiki/Network_neutrality">http://en.wikipedia.org/wiki/Network_neutrality</a></p>
<p>thought so
yeah, just checking
heh</p>
<p>It&#8217;s the thing that keeps us from devolving to the days of separate private national networks.</p>
<p>wow, i match ron paul 85%
lol
gravel&#8217;s next at 68%
then kucinich, then mccain</p>
<p>The right-hand sidebar is interesting, showing that Gravel and Kucinich are most frequently the top matches. Not bad, considering neither has a prayer.</p>
<p>yeah</p>
<p>I got Gravel, followed by Kucinich, Obama, and Biden
Although I&#8217;m hoping I&#8217;ll get to vote for Ron Paul</p>
<p>amen to that</p>
<p>But this is America, the land where dreams are shattered</p>
<p><u>do you think that if paul doesn&#8217;t get the nom, there&#8217;ll be an internet movement to elect him anyway?</u></p>
<p>He&#8217;ll probably run as a different party or something</p>
<p>he said he wouldn&#8217;t</p>
<p>Wouldn&#8217;t have the support.</p>
<p>:/</p>
<p><u>but i&#8217;d write him in if i knew others were going to do it too</u>
well, if the internet alone had a 20% turnout or something, that&#8217;d be crazy</p>
<p>I don&#8217;t understand what a cute cabbage in a bath towel is</p>
<p>a what?</p>
<p>A cute cabbage in a bath towel
Possibly a bra, but no panties</p>
<p>anyone around?
oops</p>
<p>hey hax</p>
<p><u>Y&#8217;know, shiny new desktop machines with floppy drives next to firewire ports and SD card slots just looks silly.</u>
They should measure firewire bandwidth in floppy disks per second.</p>
<p><b>mattmcc, hah, and they still come with parallel ports and PS2 ports on the back</b></p>
<p>Well, you can blame the ATX form factor for that.
<u>Although I think it&#8217;s Toshiba or Fujitsu who still sell _laptops_ with parallel ports.</u></p>
<p>yeah</p>
<p>&#8230; *what*?</p>
<p><u>I wish more of the market had taken apple&#8217;s lead back in &#8216;99 and ditched everything for USB and Firewire</u></p>
<p>A cute cabbage walks into the room wearing a bath towel</p>
<p>Ignore him, you know the kind of weird shit he watches.</p>
<p>good eve</p>
<p>Well, USB 1.x was sorta crap.</p>
<p><a href="http://www.youtube.com/watch?v=jwC544Z37qo">http://www.youtube.com/watch?v=jwC544Z37qo</a>
:p</p>
<p>It wasn&#8217;t from an anime
It was from #anime</p>
<p>you&#8217;re not even a *little* curious?
heh</p>
<p>No. <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>heh</p>
<p>Okay, I don&#8217;t get it, why is it invisible tetris?</p>
<p>i do not know, but it still impresses me
i also want to know why there&#8217;s 5 buttons</p>
<p>It is rather scary how efficient he is.</p>
<p>oh, it&#8217;s invisible because you can&#8217;t see the pieces fall</p>
<p>Ah.</p>
<p>oh wow, it really picks up about half way through
this is ridiculous</p>
<p><b>hmm, that calculate puts Kucinich at the top @ 87.69% and Gravel @ 77.69%</b></p>
<p>this is absurd</p>
<p>s/te/tor/</p>
<p>i got 85% paul :p
omg, look at the credits
(last minute)</p>
<p>Gah.</p>
<p>hax, only 36.15% paul</p>
<p>So he never actually lost?</p>
<p>That Tetris guy must be autistic or something</p>
<p>:/
there&#8217;s something wrong with the dude, for sure</p>
<p>the japanese human tetris?</p>
<p>heh</p>
<p>Yeah.</p>
<p>that is the best show
I never get tired of watching guys fall down in the water</p>
<p><a href="http://rawstory.com//news/2007/FOX_News_attempts_to_connect_Osama_0908.html">http://rawstory.com//news/2007/FOX_News_attempts_to_connect_Osama_0908.html</a>
a href=&#8221;<a href="http://rawstory.com//news/2007/FOX_News_attempts_to_connect_Osama_0908.html">http://rawstory.com//news/2007/FOX_News_attempts_to_connect_Osama_0908.html&#8221;http://rawstory.com//news/2007/FOX_News_attempts_to_connect_Osama_0908.html/a</a>
heh</p>
<p>hello, any1 here know the photoshop channel or good at photoshop?</p>
<p><u>you might notice most freenode channels are either about open source community based projects</u>
or are off topic</p>
<p>oh, what server can i go to for help?</p>
<p>paotzu, you&#8217;ll have better luck with a forum somewhere
err woops, Mixmasterxp</p>
<p>ok</p>
<p>What do you call these things?
<a href="http://www.blissweddingsmarket.com/store/images/section_separator.jpg">http://www.blissweddingsmarket.com/store/images/section_separator.jpg</a></p>
<p>section separators :p</p>
<p>Hahaha.
That&#8217;s what I initially searched for on Google, but didn&#8217;t get anything.
Except that.</p>
<p>Graphical horizontal rules</p>
<p>Wow, all of the ones on google are ugly.</p>
<p>random off-topic musing: if hacking an installer and forging its md5 sum is hard, how difficult would it be to forge something that evades both md5 and sha1 checks?</p>
<p><b>deadroot, in the installer? probably trivial if you looked through the assembly and found where the call was. if( md5() and sha1() ) { } else {} you just need to skip the conditional. The hard part is locating that position in the code.</b>
speaking strictly academically, not that I condone hacking commercial software</p>
<p><u>no, not in the installer. some sites posts the md5 or sha1 of their installers which we can use to check</u>
<u>sometimes when feeling paranoid, i wonder if one of them is enough</u></p>
<p>oh, I thought you meant an installer that does a self check
<b>As I understand it getting a md5 collision is much easier than getting a sha1 collision, and I doubt they&#8217;d ever match up.</b></p>
<p>wait, what comercial software are we hacking?
you got my attention
lol</p>
<p>hax, none apparently, I misunderstood deadroot&#8217;s question</p>
<p>oh, lame
heh</p>
<p> <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> 
yes. getting md5 collision is doable now. and sha1 might follow in the near future ( 10 years). so what if we use both algorithms at the same time? it&#8217;s hard enough to break one, but to break both at the same time?</p>
<p>why do you want to do that again?</p>
<p><b>deadroot, the problem is finding a collision where the same input to both gives the same output of both, and that I think would be much harder.</b></p>
<p><u>it&#8217;s not a problem anyway, since if you can control the installer, it&#8217;s already compromised</u></p>
<p><u>do what? breaking an app or providing the information that makes it nigh impossible to crack an installer that escapes md5+sha1 checks?</u></p>
<p><b>I don&#8217;t know enough about the math behind either of them to say if it&#8217;s even possible at all</b>
hax, well the goal is not to prevent you from screwing with it, but to make sure you got the correctly downloaded file and not a tampered with one. The installer could self check too I guess, but getting around that isn&#8217;t too hard.</p>
<p>i still don&#8217;t get it</p>
<p><b>the installer&#8217;s self-check is nothing more than to ensure that your copy isn&#8217;t incomplete</b></p>
<p>the md5 it&#8217;s checking against is contained in the installer though&#8230;
yeah, that&#8217;s what i&#8217;d think</p>
<p><u>we&#8217;re not talking about breaking installers, but to methods to ensure if the installers hadn&#8217;t been tampered with</u></p>
<p>hax, deadroot mentioned sha1 and md5 posted on a download website</p>
<p>but what difference would that make
<b>once you have a user running a binary, you can make any site say anything you want</b>
on windows, at least, you can assume a rootkit has been installed as soon as someone has run executable code
so all your checks are useless anyway</p>
<p>if you wanted to rebuild your system from scratch?
would it be nice to be able to run md5, sha1 or maybe crypographic checks? right now, most sites only offer one checksum</p>
<p>well, i suppose, but no one does it</p>
<p>I can&#8217;t say I&#8217;ve ever run the md5 check manually</p>
<p>i have, but rarely
and only to make sure two files are the same
never for authenticity
heh</p>
<p>seems like you&#8217;d run into some size issues finding a collision, the file can&#8217;t just become arbitrarily large in search of the right hash result
oh hax, so I&#8217;m giving another user group meeting presentation this week</p>
<p>oh awesome
on what this time?</p>
<p>how the ColdFusion server works internally, variables, values, expressions, components, queries, caching, the compiler et al. And then I&#8217;m going to talk about how you can use the knowledge of how all that works to implement features in newer versions yourself in older versions and do other fun
things.</p>
<p>the java-based CF or the original CF? <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Java based</p>
<p>wow, that&#8217;s intense
how has adobe not snatched you up yet?
heh</p>
<p><b>hax, hah, I dunno. This summer I picked the entire engine part piece by piece learning how it all works.</b></p>
<p>so that explains why you haven&#8217;t been on irc much :p</p>
<p>:p
hax, check your pm</p>
<p>ooops</p>
<p>zeros, private party?</p>
<p>Daveman, only in your head</p>
<p> <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> 
and furthermore, &#8230; why wasn&#8217;t I invited?</p>
<p>It was like a big meat party in my mouth.</p>
<p>Nanobot, always <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Buffy quote</p>
<p>o_O</p>
<p>I can&#8217;t believe the people in #anime didn&#8217;t get my joke.
Asa Dotzler committed an alleged sexual assault on Opera ASA this morning.
Get it? &#8220;Asa&#8221; is Japanese for &#8220;morning&#8221;!</p>
<p>&#8230;
Dude, I just read that.
It took me like a complete minute to get it.
THAT&#8217;S TERRIBLE.</p>
<p>On.. The whole company?</p>
<p>haha
AMBIGUITY DETECTED.</p>
<p>I think Opera ASA has more employees than users.</p>
<p>haha</p>
<p>surely</p>
<p><u>&#8230; i was just trying to install vmware when the installer stated that the file might be corrupted. checking against the md5 sum available on the site, the file is fine&#8230; argghhhh&#8230;. ___</u></p>
<p>hey folks - is it possible to put a div over flash as an overlay?</p>
<p>iianm, not possible. but there is a trick in IE which i don&#8217;t know if it applies to other browsers. try: <a href="http://dotnetjunkies.com/WebLog/jking/archive/2003/07/21/488.aspx">http://dotnetjunkies.com/WebLog/jking/archive/2003/07/21/488.aspx</a></p>
<p>deadroot - ack, didn&#8217;t think so&#8230;thx for the link! <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 
<u>k, good read, but I&#8217;ll have to forgo flash backgrounds this time around <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </u>
thx again, deadroot - bemson out</p>
<p>yes, take the first opinion, even if it was prefixed with &#8216;iianm&#8217;.</p>
<p>Anyone here know of a good site explaning XML sites? Eg. <a href="http://www.worldofwarcraft.com/wrath/index.xml">http://www.worldofwarcraft.com/wrath/index.xml</a></p>
<p>WTF
<u>There&#8217;s absolutely no reason to do a site like that, and it actually causes problems</u></p>
<p>yeah that&#8217;s what I was thinking</p>
<p>Search engines probably have a hell of a time navigating that site</p>
<p>because I was looking at the downloads needed, something like 6mb to load that page
<b>though if you disable CSS it looks like a normal layout, as if you&#8217;d do it on a different site</b></p>
<p><u>What it does is use an XSL file to transform the page into HTML</u>
<u>Think of it as analogous to having a blank page with a single script that does a document.write to add all the HTML</u></p>
<p><u>Their web designer must be getting paid too much, or is afraid someone will replace him</u></p>
<p>It&#8217;s just stupid</p>
<p>or has too much time on his hands!
lots of this can be done server side, if you look at some of the XML they do some crazy stuff
for loading language strings
so over the top</p>
<p>looks nice though</p>
<p>yeah, would look nicer in html</p>
<p>do xml/xls editors need normal browser&#8217;s rendering engines?
or use them?
<b>or are they totally independent of them, and would work even if no browser was installed in the client machine?</b>
<a href="http://www.syntext.com/products/serna/index.htm">http://www.syntext.com/products/serna/index.htm</a> &#8211;example</p>
<p><b>that WoW page was not an XML page. it&#8217;s just a stub file</b></p>
<p>WoW page looked nice
made me almost wish i played WoW</p>
<p>Is there a list of digg and del.icio.us like services?</p>
<p>probably on wikipedia
list of social bookmarking sites
<a href="http://en.wikipedia.org/wiki/List_of_social_software#Social_bookmarking">http://en.wikipedia.org/wiki/List_of_social_software#Social_bookmarking</a></p>
<p>Thanks</p>
<p>no prob</p>
<p>we&#8217;re against a national id card, right?</p>
<p>Eh, that one I&#8217;m not as sure on.</p>
<p>i think we&#8217;re against it, but i&#8217;m not sure why
i was just talking to Zeros about it, and he&#8217;s not sure either
<u>i was just talking to Zeros about it, and he&#8217;s not sure either</u></p>
<p><b>So much of what a national ID card does is already done through states sharing data in an insanely complicated and inefficient manner.</b></p>
<p>i think the question is, do we want our government to be inept and inefficient at managing it&#8217;s citizens
and i think the answer is &#8216;yes&#8217;, but i can&#8217;t justify why</p>
<p><u>Some would argue the government shouldn&#8217;t be managing its citizens in the first place.</u>
<b>And states don&#8217;t want the federal government doing what they see as the state&#8217;s job.</b>
<b>(The federal government was originally intended to be somewhat weaker than those of the states, after all)</b></p>
<p>right, and that&#8217;s obviously correct, but i can&#8217;t justify why</p>
<p>human nature?</p>
<p><a href="http://youtube.com/watch?v=hfSr4M4xSbA">http://youtube.com/watch?v=hfSr4M4xSbA</a></p>
<p>heh</p>
<p>Nanobot:
So I just reuined the conversation?</p>
<p>Conversations don&#8217;t really end, they just wax and wane.</p>
<p>heh</p>
<p>blargh</p>
<p>what</p>
<p>The chicken says..
&#8230;sizzle&#8230;</p>
<p>moo</p>
<p>cooking?</p>
<p>heh
cookin&#8217; with Nanobot?
I hardly think that&#8217;d make television :p</p>
<p>cooking and web design would be better</p>
<p>what is the default when open_basedir isn&#8217;t specified?</p>
<p>easy, allow any file opening
any that the os allows that is</p>
<p>thanks
open_basedir
&#8216;.:/proc/uptime:/tmp:/home:/usr/local/lib/php:/nfs/h
sorry
is &#8220;open_basedir &#8216;.:/proc/uptime:/tmp:/home:/usr/local/lib/php:/nfs/home:/usr/home:/usr/local/bin/:/usr/bin/&#8217;&#8221; valid syntax to put in php.ini?</p>
<p>s.a</p>
<p><b>Secure b2evolution web space</b></p>]]></content:encoded>
			<wfw:commentRss>http://www.cheaphosting.net.nz/hosting/yes-getting-md5-vbulletin-collision-is-doable-now-and-sha1-might-follow-in-the-near-future-10-years-so-what-if-we-use-both/feed/</wfw:commentRss>
		</item>
		<item>
		<title>getting an access hosting forbidden message when I try to access the installation php page for phpbb  I own the server</title>
		<link>http://www.cheaphosting.net.nz/mysql/getting-an-access-hosting-forbidden-message-when-i-try-to-access-the-installation-php-page-for-phpbb-i-own-the-server/</link>
		<comments>http://www.cheaphosting.net.nz/mysql/getting-an-access-hosting-forbidden-message-when-i-try-to-access-the-installation-php-page-for-phpbb-i-own-the-server/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 07:51:01 +0000</pubDate>
		<dc:creator>George</dc:creator>
		
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.cheaphosting.net.nz/mysql/getting-an-access-hosting-forbidden-message-when-i-try-to-access-the-installation-php-page-for-phpbb-i-own-the-server/</guid>
		<description><![CDATA[A_Jelly_Donut!!!!!
=P hi thanks for the help yesterday
Hello
Hi
Hi all, I&#8217;m curious how i can de-activate user registration (2.0.22)
http://www.phpbbhacks.com/searchresults.php?query=disable+registration&#38;search_type=1
you can add an * to the disallowed names list which will prevent anyone else signing up, or the proper way would to install a mod such as registration stopper
hey
http://www.phpbb.com/community/viewtopic.php?f=15&#38;t=313879
Thanks i think i&#8217;ll do the * method, mods scare me :p
I get some Error when I upload a image ?
move_uploaded_file(./images/avatars/137044390546efcaebe15f2.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /usr/home/web/wse214717/includes/usercp_avatar.php on line 288
move_uploaded_file() [function.move-uploaded-file]: Unable to move &#8216;/var/tmp/php6vja6b&#8217; to &#8216;./images/avatars/137044390546efcaebe15f2.jpg&#8217; in /usr/home/web/wse214717/includes/usercp_avatar.php on line 288
Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 483
Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 485
Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 486
installing mods from phpBB hacks is not advised as their mods are not validated by phpBB.coms mod team
Ye^: chmod the avatar directory to 777
Ye^: you&#8217;ve fogot to CHMOD the folder images/avatar/
hmpf&#8230;too slow  
and how do I do that ?
Ye^: http://www.phpbb.com/kb/article/chmod-permissions/
Ok.
karlsemple wouldnt adding a * to the disallow names list ban everyone currently registed?
just one question
on what should I do [...]]]></description>
			<content:encoded><![CDATA[<p>A_Jelly_Donut!!!!!
=P hi thanks for the help yesterday</p>
<p>Hello</p>
<p>Hi</p>
<p>Hi all, I&#8217;m curious how i can de-activate user registration (2.0.22)</p>
<p><a href="http://www.phpbbhacks.com/searchresults.php?query=disable+registration&amp;search_type=1">http://www.phpbbhacks.com/searchresults.php?query=disable+registration&amp;search_type=1</a></p>
<p>you can add an * to the disallowed names list which will prevent anyone else signing up, or the proper way would to install a mod such as registration stopper</p>
<p>hey</p>
<p><a href="http://www.phpbb.com/community/viewtopic.php?f=15&amp;t=313879">http://www.phpbb.com/community/viewtopic.php?f=15&amp;t=313879</a></p>
<p>Thanks i think i&#8217;ll do the * method, mods scare me :p</p>
<p>I get some Error when I upload a image ?
<b>move_uploaded_file(./images/avatars/137044390546efcaebe15f2.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /usr/home/web/wse214717/includes/usercp_avatar.php on line 288</b>
move_uploaded_file() [function.move-uploaded-file]: Unable to move &#8216;/var/tmp/php6vja6b&#8217; to &#8216;./images/avatars/137044390546efcaebe15f2.jpg&#8217; in /usr/home/web/wse214717/includes/usercp_avatar.php on line 288
<b>Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 483</b>
Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 485
<u>Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 486</u></p>
<p>installing mods from phpBB hacks is not advised as their mods are not validated by phpBB.coms mod team
Ye^: chmod the avatar directory to 777</p>
<p>Ye^: you&#8217;ve fogot to CHMOD the folder images/avatar/
hmpf&#8230;too slow <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>and how do I do that ?</p>
<p>Ye^: <a href="http://www.phpbb.com/kb/article/chmod-permissions/">http://www.phpbb.com/kb/article/chmod-permissions/</a></p>
<p>Ok.</p>
<p><u>karlsemple wouldnt adding a * to the disallow names list ban everyone currently registed?</u></p>
<p>just one question
on what should I do this on ?
on wich file ?</p>
<p>Ye^: the whole avatar folder</p>
<p>Ok.</p>
<p>no it will not ban users</p>
<p>hmmm
I got some more Error
move_uploaded_file(./images/avatars/185302059746efcd65cba94.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /usr/home/web/wse214717/includes/usercp_avatar.php on line 288
<b>move_uploaded_file() [function.move-uploaded-file]: Unable to move &#8216;/var/tmp/phpmWXYwy&#8217; to &#8216;./images/avatars/185302059746efcd65cba94.jpg&#8217; in /usr/home/web/wse214717/includes/usercp_avatar.php on line 288</b>
<b>Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 483</b>
<u>Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 485</u>
Cannot modify header information - headers already sent by (output started at /usr/home/web/wse214717/includes/usercp_avatar.php:288) in /usr/home/web/wse214717/includes/page_header.php on line 486
ops</p>
<p><b>Ye^: Looking at that error the important bit is &#8220;Unable to move &#8216;/var/tmp/phpmWXYwy&#8217;&#8221;</b></p>
<p>I make the chmod 777</p>
<p>it looks like you do not have permissions to the tmp folder</p>
<p>on the hole images dirr ?
Ok.What should I do then ?</p>
<p><u>Ye^: you also need to have the correct permissions on the tmp directory which php uses, you may need to contact the host to correct this for you</u></p>
<p>Ok.So how should I do that ?
Or I mean.What should I say ?</p>
<p>Ye^: do you have access to the folder above your web root</p>
<p>It looks like it works now.</p>
<p>good good</p>
<p><u>It was becouse I change the chmod 777 on the hole images dir</u></p>
<p>and on that I am off to bed</p>
<p>now I change chmod 777 on the avatar dir.</p>
<p>ok i&#8217;m a complete moron or something
but
i ran the bbcode stuff through the function that displays it
and i still get [b:46aed]text in this spot[/b:46aed]
anyone have any idea?
what table in the database is the bbcode_options field in?
better yet what are the flags for generate_text_for_display($text, $uid, $bitfield, $flags)</p>
<p>Hello</p>
<p>nvm figured it out flags was enable_bbcode field</p>
<p>Hello Se3k3r385</p>
<p>can someone help me with something in phpbb3?</p>
<p>can try</p>
<p>just aks</p>
<p>i want to show avatar anywhere on the forum
but im a complete <a href="http://www.cheaphosting.net.nz">php5</a> noob
can code html and css though</p>
<p><b>you mean you whant the avatar of your users showing on the indexpage, or header?</b></p>
<p>in this instance i want it to be in my header</p>
<p><u>than you have a MOD needed for that, i believethere is some mod on development</u>
let me search for you</p>
<p>thnx
phpbb owns vb and ipb with version 3</p>
<p>phpBB is always bether, the have bertie <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> <a href="http://www.phpbb.com/community/viewtopic.php?f=70&amp;t=556875&amp;st=0&amp;sk=t&amp;sd=a&amp;hilit=avatar">http://www.phpbb.com/community/viewtopic.php?f=70&amp;t=556875&amp;st=0&amp;sk=t&amp;sd=a&amp;hilit=avatar</a> this one maby, you will
conserning to do not the edit for viewforum
or this mod ; <a href="http://www.phpbb.com/community/viewtopic.php?f=70&amp;t=575458&amp;st=0&amp;sk=t&amp;sd=a&amp;hilit=avatar">http://www.phpbb.com/community/viewtopic.php?f=70&amp;t=575458&amp;st=0&amp;sk=t&amp;sd=a&amp;hilit=avatar</a> but i dont know how its looks like</p>
<p>ok, thank you
ill take a look now</p>
<p>you welcome</p>
<p>at some point ill look at the whole mod <a href="http://www.cheaphosting.net.nz"><b>database</b></a> <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><u>anyone have a clue as to how i would send text already parsed through the function parse_attachments($forum_id, &amp;$message, &amp;$attachments, &amp;$update_count, $preview = false)</u></p>
<p>Raimon, you here?</p>
<p>yes</p>
<p>hi</p>
<p>Hi</p>
<p><b>can i configure phpbb2 so that anonymous user have to leave a username &amp; email before he can post?</b></p>
<p>hey
I dont find where I change the Logo on the Forum ?</p>
<p>Hey guys</p>
<p>hmm</p>
<p>Can anyone help me out with something? =D
Just some questions <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>shoot</p>
<p>Ye^ whit version 2 or 3?</p>
<p>3</p>
<p>2.</p>
<p>Am i allowed to use PHPBB3 <a href="http://www.cheaphosting.net.nz"><u>forum</u></a> to post &#8220;pornographic&#8221; material?</p>
<p>lol
depends if your host lets you</p>
<p>Ye^: Replacing the file site_logo.gif should do it &#8230;
Sorry, it&#8217;s logo_phpBB.gif</p>
<p>So it&#8217;s not against terms that i agreed by using PHPBB3?</p>
<p>Ok.</p>
<p>nope phpBB3 isnt responsible for what you do with the software</p>
<p>Raimon, ive got the welcome panel to work
but only with regular avatars
im using another system for that</p>
<p><b>idd and when you view the domainname.com/faq.php last line you see it also Niddy <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </b>
A Se3k3385 you have default avatars then ?</p>
<p>Another thing, Can i change the terms you agree on when you register, is that allowed? And in that case how?</p>
<p>no, dynamic ones</p>
<p>You mean the text Niddy?</p>
<p>yes</p>
<p>Niddy yes i believe its somewhere in the lang files</p>
<p>you can cange tha ton /language/en/ucp.php</p>
<p>which are stored elsewhere so now its not working..</p>
<p>language</p>
<p><b>Thanks =D Do i have to have anything there besides what i want it to? Im not forced to having anything on my forum aslong as i have COPYRIGHT PHPBB3 and all that stuff at the bottom, right?</b></p>
<p>yup</p>
<p>I am?</p>
<p><u>Raimon, you wanna mess around with this? and maybe get it to work?</u></p>
<p>with yup i mean you are good to go nothing has to be done except leaving the copyrights
yup was more for the second part of your question Niddy</p>
<p>kk Thanks alot =D
<u>i like PHPBB3 more and more the more i get to know it</u>
<b>When i edit the UCP.php in Notepad, and save it it won&#8217;t work anymore, i go</b>
i got shitloads of SQUARE marks in the text though =/
even if i just save it and don&#8217;t change anything</p>
<p>You need an editor that supports UTF8 without BOM</p>
<p>aha Any idea what editor i should use?</p>
<p>Notepad++ for example</p>
<p>I know that program ye, ill get it right away, bantu Thanks</p>
<p>The exporter could not write the theme information file. Click the button below to download this file with your browser. Once you have downloaded it you can transfer it to the directory containing the template files. You can then package the files for distribution or use elsewhere if you
desire
what is mean with that ?
theme_info.cfg
what should I do with that file ?
replace it with the other one
in the Template Dir ?
I have do it
but I get the some thing
?
somebody ?</p>
<p>Where is the channel for mambo?</p>
<p>try #mambo
this is clearly not #mambo</p>
<p>Tried, its deserted.</p>
<p><b>google is your friend. find mambo&#8217;s website, and if they have an irc channel, they&#8217;ll have it posted</b></p>
<p>ok, I guess they don&#8217;t then</p>
<p>can somebody tell me
how the Templates work ?
<b>The exporter could not write the theme information file. Click the button below to download this file with your browser. Once you have downloaded it you can transfer it to the directory containing the template files. You can then package the files for distribution or use elsewhere if you
desire</b>
I get someting like that
why ?</p>
<p>superficially, it looks like you have permissions problems
specifically, your webserver does not have permissions to write to the folder containing your templates
you can either change the permissions. or. do what it says.</p>
<p>Does someone know how to fix scands to work in <a href="http://www.cheaphosting.net.nz"><u>phpbb</u></a> 2.0.22?
I&#8217;m encountering some problems with that now that I installed new forum</p>
<p><b>hello. running 3.0 RC5. LDAP-question: is the LDAP-database accessable only readonly or is it possible to create a new user in the LDAP database via registering a user? thx for answers.</b></p>
<p>mindbender, I&#8217;m pretty sure phpBB&#8217;s implementation is read only</p>
<p><u>hm. i c. then there won`t be any other chance than to write a custom script to do that (if this is easily possible at all :/ )</u>
but thx for your answer.</p>
<p>how to include php line bb3 template plzzzzzzzzzzzzzzzzzhelpppppppppppppppppp
can anyone help me
is there anyone</p>
<p>I don&#8217;t understand your question</p>
<p>i want to add a php line in styles\prosilver\template\overall_header.html</p>
<p>but it is not working any idea</p>
<p>Did you enable PHP parsing in the ACP under security settings?
it is off by default</p>
<p>from where
where is this option is ACP</p>
<p>on the security settings page&#8230;one of the last links on the main page of the ACP</p>
<p>thanks a lot
thnks very muvh
much
for ur help</p>
<p><b>Hey I am trying to figure out how to get rid of the left and right padding/margin around my phpbb forum</b>
<a href="http://www.skateyourworld.com/phpBB3">http://www.skateyourworld.com/phpBB3</a>
<u>if anyone knows where I can change those values in the CSS I would be really happy</u></p>
<p><u>hello, I added some categories and forums&#8230;but I cant see them now in the board index..what can I do? where can the problem be?</u>
version 3.0.RC5
help please</p>
<p>hello all
getting an access forbidden message when I try to access the installation <a href="http://www.cheaphosting.net.nz"><u>php</u></a> page for phpbb &#8230; I own the server (*nix running apache) but I am unsure where to adjust the setting. Can anyone please help?
anyone out there? hehe
check check &#8230; any experienced phpbb users out there?</p>
<p>you have to tell em which version .
or they can&#8217;t help you</p>
<p>lol I&#8217;m sorry my bad
<b>i&#8217;m using mandriva 2007 with phpbb3 (installed) getting access forbidden errors when trying to get to next step in the installation process (localhost/phpbb/install/index.php)</b>
<u>if this is the wrong place for me to be asking this please advise &#8230; I&#8217;m just new to phpbb</u></p>
<p>what is the exact error? or is that alll it says?
and to the next step of installing phpbb?</p>
<p>&#8220;access forbiddden you don&#8217;t have permission to access &#8230;&#8230;&#8221;
basically I download and installed the package using urpmi &#8230; next step is to configure
i know how to change permissions on server using chmod but don&#8217;t know where I should be looking (apache)</p>
<p>sounds like you need apache help
no clue on that
try seeing if there is an apache channel to this</p>
<p>thank on #apache and seeing if they&#8217;ll help .. can&#8217;t believe what a pain this has become &#8230; everything else on the <a href="http://www.cheaphosting.net.nz"><u>server</u></a> running 100% thought this would have been a tad easier
has anyone worked with phpbb on either mandriva or mandrake?</p>
<p>hello
<b>next simple question by me, if i&#8217;ll import big database ( up to 200k posts ) which made was in phpbb2 into phpbb3</b>
everything will be allright? i mean users, subforums, posts</p>
<p>No, you need to use the convertor.</p>
<p><u>if i&#8217;ll &#8216;convert&#8217; it by the convertor, everything will be allright <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ?</u></p>
<p>Yes</p>
<p>A_Jelly_Donut you there?</p>
<p><b>Paul, if i used any mods for warns for example, its an problem?</b>
or mods &amp; addons arent problems</p>
<p>Arent a problem</p>
<p>thanks</p>
<p>is there not a smiley admin function in phpbb3?</p>
<p>There is</p>
<p>where is it?</p>
<p>Under the posting tab</p>
<p>thank you</p>
<p>paul you good with the functions used to parse attachments
in phpbb3 RC5</p>
<p>not really</p>
<p>rats
had Donut helping me last nght
but he seems to be afk
night*</p>
<p>Even, if you mean the php code?</p>
<p>even?
talking about the parse_attachments function in the /includes/functions.php file
ran my text through it
and all the attachment code vanished
instead of being parsed</p>
<p><u>Yeah, thats the php code. Thats a bit offtopic for this channel. You can beter ask in #phpbb-mod</u></p>
<p>no problemo</p>
<p>hey
can somebody help me how to change the Template
?
or a Template I mean
?</p>
<p><b>Anyone know how to make a portal for PHPBB3 RC5? I really want a frontpage</b></p>
<p>how do you make a Template to default style ?</p>
<p>&nbsp;</p>
<p><a href="http://www.cheaphosting.net.nz"><em>Tomcat hosting</em></a></p>
<p>&nbsp;</p>
Admin settings?
then board settings
<p>Ok.I find it.
its that you need to do ?
for change the Template
?</p>
<p>Well, if you have a template installed, that&#8217;s it ye</p>
<p>Ok.
<u>The template you selected has no themes attached to it. To create a new theme click the Create New link on the left hand panel</u>
what is mean with that ?</p>
<p>That you haven&#8217;t installed the theme correctly probably
where did you get the template?
The &#8220;POSTING&#8221; tab
ops, wrong convo</p>
<p>AcidTechBlood Do you know that Template ?
Ok.Ops.
The exporter could not write the theme information file. Click the button below to download this file with your browser. Once you have downloaded it you can transfer it to the directory containing the template files. You can then package the files for distribution or use elsewhere if you desire
can somebody tell me what is mean with that ?</p>
<p>phpBB2 or 3?</p>
<p>hi peeps
does anybody know how to change the age limit on a <a href="http://www.cheaphosting.net.nz"><u>phpbb</u></a> forum 2.022
in agreement.tpl
i have a wine forum and need it to say 18</p>
<p><a href="http://www.neothermic.com/kb/article65.html">http://www.neothermic.com/kb/article65.html</a></p>
<p>ah
ok i try thanks <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>well I think I finally got the hange of things in phpbb3
the <a href="http://www.cheaphosting.net.nz"><u>forum</u></a> is up and created and working prefectly
<u>its much better then phpbb2, I would of never been able to do what I did with this one.</u>
thanks guys</p>
<p><u>2.0.22 with File attach_mod_245 won&#8217;t attach files. Win2k3 with IIS. Set the entire hard drive as writeable by IUSR. What am I doing wrong? Thank you for helping!</u></p>
<p>MOD support needs to be asked where you go the MOD. In this case, that attachment MOD&#8217;s thread: <a href="http://www.phpbb.com/community/viewtopic.php?f=15&amp;t=74505">http://www.phpbb.com/community/viewtopic.php?f=15&amp;t=74505</a>
s/go/got</p>
<p>done
thanks very much lads</p>
<p>Noxwizard, dude&#8230; 1480 pages of posts. I&#8217;d rather wait indefenitely in here for help, or upgrade to phpBB3.</p>
<p><u>People actively reply to that thread, it&#8217;s not 1500 pages of unanswered questsion.</u>
Just ask your question there, and someone will reply.</p>
<p>Noxwizard, sure, but will I read the answer or will I get lost in all the pages?</p>
<p>Look at your posts
will get you to the page</p>
<p><u>hey, does anyone know how i could put a log on for phpbb 3 rc4 on a page in my site that is not connected to my forums?</u>
or rather login</p>
<p><a href="http://www.phpbb.com/community/viewtopic.php?f=71&amp;t=571088">http://www.phpbb.com/community/viewtopic.php?f=71&amp;t=571088</a>
that will help</p>
<p><u>ya &#8230; i&#8217;m still trying to fix this &#8230; error is [error] [client 127.0.0.1] client denied by server configuration: /usr/share/phpbb/install/index.php index.php is currently set to 777 and i&#8217;ve tried 755 (phpbb3 on apache)</u></p>
<p>hello!</p>
<p><u>Hello. This is my first time on. Is this an active source of information?</u></p>
<p>usually</p>
<p>Cool.
Does anyone know how I can test if a user is an admin or mod? This way only Moderators and Administrators can see this specific link?</p>
<p>in phpBB3 or phpBB2?</p>
<p>Oh yeah. I&#8217;m sorry. It&#8217;s phpbb2
<u>I am trying to set this in my tpl file for my header.</u></p>
<p>$userdata[&#8217;user_level&#8217;]
It will be set to 1 for admins and 2 for moderators</p>
<p>Ok. So I can just do something like..
if $userdata[&#8217;user_level&#8217;] = 1 || $userdata[&#8217;user_level&#8217;] = 2 &#8230;
?</p>
<p>Exactly
Except ==, not =
= is set
So that would always return true</p>
<p>Awesome. Oh yeah. I&#8217;m still trying to rember this is more of a scripting language&#8230; not Visual Basic.
Thanks for the help.</p>
<p>No problem</p>
<p>Oh, one more thing.</p>
<p>Sure</p>
<p>I want to change my &#8220;Register&#8221; link so that it logs the person out and redirects directly to the register page. Is this simple?</p>
<p><u>Logs the person out? The register link shouldn&#8217;t display for logged in users</u></p>
<p><u>Currently I am redirecting it to user.html that is redirecting it to {U_REGISTER}.</u>
<b>I changed it so that only logged in users see the register link. Now I&#8217;m going to change it so that only Mods/Admins see the register link.</b></p>
<p>Note that just because others can&#8217;t see the link doesn&#8217;t mean they can&#8217;t visit the page</p>
<p><b>Then, I want it be so that only Mods/Admins can add Users by clicking the Register link. Then the link will log them off and load the register page.</b></p>
<p>Is this all to prevent spam?</p>
<p>I know, but I&#8217;m just doing this for education purposes.</p>
<p>k, no problem</p>
<p><b>Not entirely to prevent spam. Just for something to do so I can learn php stuff.</b></p>
<p><b>Well, the logout part isn&#8217;t particularly easy to do because there is no function for it in phpBB2</b>
The user would need to be redirected to the logout page</p>
<p><b>One sec. Let me see if I can find my tpl link line&#8230;</b></p>
<p><b>You could add an extra GET to the URL and then pick that up in login.php and redirect further to the login page, but that can get complex and silly</b>
s/login page/registration page</p>
<p>a href=&#8221;{U_LOGIN_LOGOUT}&amp;redirect=user.html&#8221; class=&#8221;mainmenu&#8221;img src=&#8221;{NAV_IMAGES_REGISTER}&#8221; class=&#8221;mx_icon&#8221; border=&#8221;0&#8243; alt=&#8221;" hspace=&#8221;1&#8243; align=&#8221;middle&#8221; //aspan class=&#8221;mainmenu&#8221;a href=&#8221;{U_LOGIN_LOGOUT}&amp;redirect=user.html&#8221; class=&#8221;mainmenu&#8221;Register User/a/span
<b>I use this link through mx_bb and it works good for logging out, then redirecting to user.html</b>
Then user.html redirects to /phpbb/profile.php?mode=register which works great.. but slow.
I&#8217;m happy with this for now.</p>
<p>Okay, I had never redirected upon logout <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> 
Okay then</p>
<p><b>I was more worried about the test for admin/mod level. Which, to my suprise, was answered rather quickly. Yay!!!</b></p>
<p><b>Why not just add the URI to the registration page rather than to user.html?</b>
That is to say:
a href=&#8221;{U_LOGIN_LOGOUT}&amp;redirect=profile.php?mode=register&#8221; class=&#8221;mainmenu&#8221;img src=&#8221;{NAV_IMAGES_REGISTER}&#8221; class=&#8221;mx_icon&#8221; border=&#8221;0&#8243; alt=&#8221;" hspace=&#8221;1&#8243; align=&#8221;middle&#8221; //aspan class=&#8221;mainmenu&#8221;a href=&#8221;{U_LOGIN_LOGOUT}&amp;redirect=user.html&#8221; class=&#8221;mainmenu&#8221;Register User/a/span</p>
<p>Because I a new to web developement and didn&#8217;t think of that.
<b>Crud. I just thought of something. The $userdata[&#8217;user_level&#8217;] works for php. Now I will have to find out how to do this with the tpl. lol</b>
I guess I&#8217;m off to find a resource to see how they work together.
Thanks for the help guys. I&#8217;m off.</p>
<p>I am having trouble installing phpBB2 on my website hosted from godaddy.com</p>
<p>hello peeps
/s
anybody here using phpbb-fullmod?</p>
<p>We do not support pre-modified software here</p>
<p>i see&#8230;sorry, forgot to read the faq
thanks</p>
<p>Anyone here help with phpBB3?
Anyone here?</p>
<p><b>no one can help or know if they can help until you post a problem or question</b></p>
<p>Ah. Right, sorry.
<u>Anyway, the problem I am having is that when I try to delete a user it takes me to a &#8220;page not found&#8221;.</u>
<b>I go into user management and then select the user. Then I select the delete user and all posts. It takes me to the confirm page but after I say yes it takes me to the &#8220;page not found&#8221;</b>
Any ideas?
<u>Also, I get the same message when I try to delete the group I created.</u></p>
<p><u>Are you sure all files are present and with the correct file permissions?</u></p>
<p>The only file permissions I changed was the config.php.
And as far as all of the files, the only folder that has been removed post install was the install folder.</p>
<p>Any mods installed?</p>
<p>No, basic install.
Nothing fancy.</p>
<p>and no edits to any files?
<u>Try reuploading a fresh set of files replacing all the old ones except the config.php, just to be sure all files uploaded correctly originally</u></p>
<p><b>Something I did do, to test this problem. I created a seperate upload location, a new database and a new install. after that I registered a new member on the new db and tried to delete it using the admin login. I received the same error message.</b></p>
<p><u>what is the URI in the address bar when you get the error?</u></p>
<p><a href="http://www.ba23online.com/index.php?i=users&amp;mode=overview&amp;u=55&amp;sid=14c92244cf5ce17e0edbf72aaeaef4c5&amp;confirm_key=4WNA51MXA8">http://www.ba23online.com/index.php?i=users&amp;mode=overview&amp;u=55&amp;sid=14c92244cf5ce17e0edbf72aaeaef4c5&amp;confirm_key=4WNA51MXA8</a></p>
<p>The link is missing the /adm/
for example it should be <a href="http://localhost/phpBB3/adm/index.php?i=users&amp;mode=overview&amp;u=53&amp;sid=867029cfb71097f718a02d9cc52f0c42&amp;confirm_key=1PHRVPIH4M">http://localhost/phpBB3/adm/index.php?i=users&amp;mode=overview&amp;u=53&amp;sid=867029cfb71097f718a02d9cc52f0c42&amp;confirm_key=1PHRVPIH4M</a>
see the /adm/index/ rather than just index
<u>Give this edit a try, it is something A_Jelly_Donut come up with a similar redirect issue</u>
<a href="http://www.ktuk.net/phpBB3/viewtopic.php?f=36&amp;p=125649#p125649">http://www.ktuk.net/phpBB3/viewtopic.php?f=36&amp;p=125649#p125649</a></p>
<p>Page Not Found</p>
<p>?
after trying that edit or the link I posted</p>
<p>typing in that link for my domain.</p>
<p>obviously that is not going to work</p>
<p>lol.</p>
<p><u>you need to apply the edit in the link I posted and then try deleting the user</u></p>
<p>Okay, I am not the technical guru you thought I was.</p>
<p>it is one line edit in the functions.php
click here <a href="http://www.ktuk.net/phpBB3/viewtopic.php?f=36&amp;p=125649#p125649">http://www.ktuk.net/phpBB3/viewtopic.php?f=36&amp;p=125649#p125649</a> and make that change to your functions.php
<u>you can download and open the file in a plain text editor to make the change.</u></p>
<p>Okay, I dl&#8217;d that file.</p>
<p>and what happens now when you try and delete the user?</p>
<p>I haven&#8217;t found the section that needs to be edited, where on the functions.php page is it located please?</p>
<p>it is on about line 473 of the file</p>
<p>if (!function_exists(&#8217;realpath&#8217;))</p>
<p>did you even look at the link I posted?</p>
<p>I&#8217;m still looking at it as we speek.
speak.
Call to undefined function: phpbb_realpath() in /data/13/1/151/27/1314679/user/1408148/htdocs/phpBB3/includes/session.php on line 72</p>
<p><u>what did you replace the line with, just to be sure you made the edit correctly?</u></p>
<p>hello peoples
*people</p>
<p><u>undo that change then, iit was just something I found which apparently fixed weird redirection issues, apparently it does not fix this one</u></p>
<p>anybody can help with phpbb templates?</p>
<p>Nope, that worked great.
Sorry, my error. I read the page wrong.
I thought you needed both lines.
if (!function_exists(&#8217;realpath&#8217;))if (!function_exists(&#8217;realpath&#8217;) || 1 == 1)</p>
<p>Actually my mistake
<u>appears I double copied when I made the topic not on my forum :p</u></p>
<p>Sometimes things have to be s-p-e-l-l-e-d out for me.</p>
<p>so that did work?</p>
<p>Yep. Thanks.</p>
<p><b>i want make nested loop and then show it in template. but it show it like {forumrow.last_topics.test}</b></p>
<p>Have a read of this <a href="http://www.ktuk.net/phpBB3/viewtopic.php?f=32&amp;t=2682">http://www.ktuk.net/phpBB3/viewtopic.php?f=32&amp;t=2682</a></p>
<p>i read docs, but it don&#8217;t work</p>
<p>karlsemple thanks for your help. Probably see ya again in here.
Thanks.</p>
<p><u>no worries, but thanks for that one go to A_Jelly_donut off our mod team</u></p>
<p>1));</p>
<p>in template:
!&#8211; BEGIN forumrow &#8211;
&#8230;.
!&#8211; BEGIN last_topics &#8211;
{forumrow.lasttopics.test}
!&#8211; END last_topics &#8211;
!&#8211; END forumrow &#8211;
and it show {forumrow.lasttopics.test} ^
in page
No one don&#8217;t know? i dont see what is wrong here</p>
<p>maybe your php code is after &#8221; $template-pparse(&#8217;body&#8217;); &#8221; ?</p>
<p>no
i thnk it show all as is all nested arrays as {var.var.var}</p>
<p>change:
!&#8211; BEGIN last_topics &#8211;
to
!&#8211; BEGIN lasttopics &#8211; <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>&icirc;..no..
it&#8217;s my copypast mistake
it !&#8211; BEGIN lasttopics &#8211;in template
can anyone show
working construction from template?
from phpbb3
can&#8217;t find in my templates</p>
<p>wowwowowo a phpbb channel
yo
in olympus
how do change the sender of topic notifications
in emails</p>
<p><a href="http://area51.phpbb.com/docs/coding-guidelines.html#templating">http://area51.phpbb.com/docs/coding-guidelines.html#templating</a>
maybe you have to use uppercase vars
change your board mail
ACP - Generell - Board-email</p>
<p>i try, it don&#8217;t work..</p>
<p>there&#8217;s no board <a href="http://www.cheaphosting.net.nz"><u>email</u></a> anywhere</p>
<p>in the email settings</p>
<p>Contact e-mail address:
ACP - Tab General - Client communication - E-mail settings -
you cleared your cache ?
after the template editing?</p>
<p>hello
<u>does any1 know when the greek language pack will be available for download ?</u></p>
<p>DrDeath, will try now</p>
<p>thank you</p>
<p>i see in phpbb3 it doesn&#8217;t work at all&#8230;or in my rc4
i trace template parsing</p>
<p>Hello, who can help me ?</p>
<p>Just ask your question</p>
<p>phpbb_ - Could not connect to the database, see error message below.
and can connect mySQL server , :/
Can&#8217;t connect to MySQL server on &#8220;server&#8217; (93)</p>
<p>what did you use as hostname?</p>
<p>servage.net
Venezia
and user.</p>
<p>???????</p>
<p>try to use localhost as hostname at the install page</p>
<p>www.venezia.clankamp.com/forum
www.venezia.clankamp.com/forum ?</p>
<p>No
the prefix can be just phpbb_
the hostname/usenrame/database or password is incorrect</p>
<p>ok
port ? :/</p>
<p>leave blank
assuming your host uses the default</p>
<p>Tables with the specified prefix already exist, please choose an alternative.</p>
<p><u>sorry to interrupt / seems that there is no greek language yet in phpBB3?</u>
<u>venezia try to logg on cpanel mysql admin and delete the existed tables in your database</u></p>
<p>then he deletes his old phpBB2 installation&#8230;maybe o_O</p>
<p>i dont think so
or else he can rename and create new tables</p>
<p>try &#8216;localhost&#8217; as database hostname</p>
<p>but the old one are useless</p>
<p>are _you_ sure, Dunali ?</p>
<p>ups</p>
<p>i installed the database 3 times
the only thing i cant find is to change language :X</p>
<p><b>but it could be that he uses the same database, phpBB2 is installed in&#8230;.</b></p>
<p>he updates or just installing phpbb3?</p>
<p>where do i need to post an fault in a install.xml file
<b>to be more specific its not a fault in the mod self but more in the translation of add before add after etc&#8230;</b></p>
<p>i have set up a user group and assigned them full access and administrator privlages, however they do not have the same features i have, for example they cant delete threads and stuff</p>
<p><b>Cheap Pgsql Hosting</b></p>]]></content:encoded>
			<wfw:commentRss>http://www.cheaphosting.net.nz/mysql/getting-an-access-hosting-forbidden-message-when-i-try-to-access-the-installation-php-page-for-phpbb-i-own-the-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>when i try new zealand to use getmsg or getpmesg on my gentoo system errno is set to function not implemented when i strace</title>
		<link>http://www.cheaphosting.net.nz/php/when-i-try-new-zealand-to-use-getmsg-or-getpmesg-on-my-gentoo-system-errno-is-set-to-function-not-implemented-when-i-strace/</link>
		<comments>http://www.cheaphosting.net.nz/php/when-i-try-new-zealand-to-use-getmsg-or-getpmesg-on-my-gentoo-system-errno-is-set-to-function-not-implemented-when-i-strace/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 07:51:01 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
		
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.cheaphosting.net.nz/php/when-i-try-new-zealand-to-use-getmsg-or-getpmesg-on-my-gentoo-system-errno-is-set-to-function-not-implemented-when-i-strace/</guid>
		<description><![CDATA[possibly, -std=gnu89
tried, didn&#8217;t work either
hrmz. not sure then, sorry.
it&#8217;s -D_GNU_SOURCE
so now you know
You need to define it before including the headers, too
bedankt
char string[10] will init a string that&#8217;s limited to 10 chars, how do I initialise a string that has no limit in chars ?
You use a different language
That&#8217;s a realistic option. C isn&#8217;t very good. If you have to use C, though&#8230;
Have you gotten to the chapter on malloc in your C book yet?
no
So I suppose I will need to use pointers for that?
Don&#8217;t rush things, then. Once you get there you&#8217;ll find out.
Yes
Allright, Thanx !
You can&#8217;t, at any time, make an unlimited-size anything
You *can* keep track of how much you&#8217;re using and reallocate when you fill your buffer
I see&#8230;
Or you could use a newer language, that will take care of those details for you
Thank you, you have been much helpfull
hey if i do twos complement on a number that is int x; not unsigned int x c should print it out as - correct?
for example the number -44
Depends on how you do two&#8217;s complement
should be 10100
i have 44 which is
101100
i invert the numbers to be
0100111
C defines its bitwise operators on signed integers to /act/ as if the numbers [...]]]></description>
			<content:encoded><![CDATA[<p>possibly, -std=gnu89</p>
<p>tried, didn&#8217;t work either</p>
<p>hrmz. not sure then, sorry.</p>
<p>it&#8217;s -D_GNU_SOURCE
so now you know</p>
<p>You need to define it before including the headers, too</p>
<p>bedankt</p>
<p><u>char string[10] will init a string that&#8217;s limited to 10 chars, how do I initialise a string that has no limit in chars ?</u></p>
<p>You use a different language
That&#8217;s a realistic option. C isn&#8217;t very good. If you have to use C, though&#8230;
Have you gotten to the chapter on malloc in your C book yet?</p>
<p>no
So I suppose I will need to use pointers for that?</p>
<p>Don&#8217;t rush things, then. Once you get there you&#8217;ll find out.
Yes</p>
<p>Allright, Thanx !</p>
<p>You can&#8217;t, at any time, make an unlimited-size anything
<b>You *can* keep track of how much you&#8217;re using and reallocate when you fill your buffer</b></p>
<p>I see&#8230;</p>
<p><u>Or you could use a newer language, that will take care of those details for you</u></p>
<p>Thank you, you have been much helpfull</p>
<p><b>hey if i do twos complement on a number that is int x; not unsigned int x c should print it out as - correct?</b>
for example the number -44</p>
<p>Depends on how you do two&#8217;s complement</p>
<p>should be 10100
i have 44 which is
101100
i invert the numbers to be
0100111</p>
<p><u>C defines its bitwise operators on signed integers to /act/ as if the numbers are two&#8217;s complement, even if they actually aren&#8217;t</u>
<b>uC defines its bitwise operators on signed integers to /act/ as if the numbers are two&#8217;s complement, even if they actually aren&#8217;t/u</b></p>
<p>and the i add one to that
so i get 10100</p>
<p><u>But that won&#8217;t be the case if you&#8217;re accessing the underlying bytes and complementing /them/</u>
Honestly, if you want to negate x, use -x.</p>
<p>if i try to print that out it is giving me 20 i see that 10100 is twenty but i want it to be neg
i am right thouhg?</p>
<p>Well, almost. If you just complement the bits, you&#8217;ll get an off-by-one error - that&#8217;s why it&#8217;s *two&#8217;s* complement, and not one&#8217;s complement.
<u>But you&#8217;re not actually touching the underlying bits. C generates code that works the same no matter what they are, though it&#8217;ll be especially efficient if they are what they appear to be, of course</u>
<b>I rarely see one&#8217;s complement these days, but I do sometimes run into sign-magnitude, and BCD is pretty common in calculators (and will remain so)</b>
PCs are two&#8217;s complement for efficiency reasons, mostly
<u>Also, wikipedia is handy. It explains this, among other things&#8230; well, among all things, it sometimes seems.</u></p>
<p>hi, does anyone know how to rename a process correctly?
<a href="http://rafb.net/p/6wlDOu40.html">http://rafb.net/p/6wlDOu40.html</a>
at the moment I do an sprintf over argv[0]</p>
<p>good morning everyone</p>
<p>char i, j,s[20]; char * t; t=s; i=*t++; j=*t++; /* what will *t++ do? increment the address that it points or increment the value? is it always the same, independent of the compiler? thanks! */</p>
<p>pzn, we don&#8217;t do homework. but as a hint: <a href="http://www.difranco.net/cop2220/op-prec.htm">http://www.difranco.net/cop2220/op-prec.htm</a></p>
<p>How&#8217;s the support of variadic macros?
Mostly on the &#8220;high-end unixes&#8221;</p>
<p>wobster, just trying to learn C better, not a homework. your answer was good! I got the point.
<u>while (i&#8211;) { j++; k++; } /* in this example, will I be decremented at the begin of while block (before j++) or at the end (after k++)? it this behaviour standard or compiler dependent? */</u></p>
<p>get a copy of the standard and read about &#8220;sequence points&#8221;
!standard pzn</p>
<p>C89 draft PDF: <a href="http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.pdf">http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.pdf</a> - C99 + TC1 + TC2 working paper: <a href="http://open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf">http://open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf</a> -
comprehensive reference: <a href="http://ccs.ucsd.edu/c/">http://ccs.ucsd.edu/c/</a></p>
<p>pizza_, thanks! that is what I need to learn C better!</p>
<p>yes indeed, come back when you&#8217;ve memorized the standard</p>
<p>!standard</p>
<p><a href="http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.pdf">http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.pdf</a> - C99 + TC1 + TC2 working paper: <a href="http://open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf">http://open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf</a> - comprehensive
reference: <a href="http://ccs.ucsd.edu/c/">http://ccs.ucsd.edu/c/</a></p>
<p>greetings</p>
<p>hola</p>
<p><b>Hi, is any good tutorial on C? I can search google but I dont know if a tutorial is reliable due to my lack of knowledge about C Programming</b></p>
<p>grab a copy of K&amp;R 2nd edition.</p>
<p>What is the official site of K&amp;R i would like to download a sample chapter</p>
<p>!k&amp;r</p>
<p>k&amp;r is The C Programming Language, 2nd edition, by Kernighan and Ritchie, <a href="http://cm.bell-labs.com/cm/cs/cbook/">http://cm.bell-labs.com/cm/cs/cbook/</a> - be sure to see the errata as well, at <a href="http://cm.bell-labs.com/cm/cs/cbook/2ediffs.html">http://cm.bell-labs.com/cm/cs/cbook/2ediffs.html</a></p>
<p>thanks</p>
<p>Hello.
What&#8217;s the right format character to printf a size_t?</p>
<p>it&#8217;s an integral type.</p>
<p>it&#8217;s in the manpage</p>
<p>surely you have a man page for printf?</p>
<p>%zd if your platform supports it</p>
<p><a href="http://rafb.net/p/u7OuO392.html">http://rafb.net/p/u7OuO392.html</a> error: invalid type argument of &#8216;-&#8217; # i don&#8217;t understand why?</p>
<p>Otherwise, %ld and cast it to (long)s</p>
<p>is for pointers</p>
<p>That&#8217;s what I wanted to know. I want be portable and don&#8217;t like to cast there.</p>
<p>is for class function</p>
<p>Well, that&#8217;s the answer.</p>
<p>C doesn&#8217;t have classes</p>
<p>But it seems there is no way around.
Ok.
Thanks.</p>
<p><u>since %z is relatively new i am of the opinion casting to long is more portable</u></p>
<p>pizza_:c ++</p>
<p>syntax. so how I construct this as a poiner I wonder</p>
<p>ulong</p>
<p>read the /topic and you&#8217;ll know why we don&#8217;t care about C++ here</p>
<p>New as in C99?</p>
<p>you wish to access a member of a struct, there is an operator for this
consult your book perhaps</p>
<p>i see</p>
<p>nox:~/c-scratch/3% man 3 stdio
No manual entry for stdio in section 3
where are all the man pages packaged in debian for C?</p>
<p>hey, the american dollar is now as good as the canadian dollar
how long can we expect this to last?</p>
<p>about another 16 months, hopefully</p>
<p>sounds optimistic</p>
<p>likely so</p>
<p>What&#8217;s a &#8220;carry nibble&#8221;?</p>
<p>Presumablly related to a carry bit?</p>
<p>sounds like columnar-arithmetic</p>
<p>How does a (n)curses application find out whether Ctrl was pressed or not?</p>
<p>it uses raw scan-codes</p>
<p><u>and what return value would the app expect after I press Ctrl+A for example?</u></p>
<p><b>check the curses docs, iirc they have a fairly hefty list of constants representing most everything</b></p>
<p><b>you don&#8217;t want to know. this is why you use ncurses</b></p>
<p>he was thinking of how to test a getch-like return</p>
<p>ah</p>
<p><u>I&#8217;ve been reading the single unix specification and just can&#8217;t find out&#8230; and yes I wand to know <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> I am trying to port nano to my OS <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> Works except for all those Ctrl+some char</u></p>
<p>man ascii</p>
<p><u>Even if the god-rotted multibyte scancodes were not a pita to acquire and sort-out, curses would still be useful</u></p>
<p>not really in ascii&#8230;</p>
<p>svg graphics are cool</p>
<p>curses depends of the terminal database of your OS, usually termcap/terminfo</p>
<p>they used to list ctl+ in ascii pages.</p>
<p>it was never in it for me &#8230; when was the last time you looked at man ascii, old man ?</p>
<p>what is &#8216;restrict format&#8217;? thanks</p>
<p>a few days ago. Alas, the new pages are rude
<u>hell, they used to even list the C-escapes <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> Solaris had some nice manpages.</u></p>
<p>I feel younger just by reading you</p>
<p>is that good?</p>
<p>not really &#8230; I need to learn even more things now</p>
<p>hah</p>
<p><b>I suspect the only upside to being young again would be the lack of aches &amp; pains. And, the rest is too ugly to recall</b></p>
<p>and the snow-cones</p>
<p>What about the akward classroom boners? upside indeed.</p>
<p>pizza_, I&#8217;m back, I&#8217;ve memorized the standard <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>great; so what&#8217;s a sequence point?</p>
<p>i&#8217;m 26 and i still get those&#8230; those are supposed to stop?</p>
<p>when you die</p>
<p>I&#8217;m 23 and I have trouble getting it up
You&#8217;re one lucky man</p>
<p>actually supposedly they can even continue after that</p>
<p>good, i don&#8217;t want it to stop earlier</p>
<p>pizza_, that was a joke, but I got the sequence point; my &#8220;while(i++)&#8221; will only increment i at the end of the while block commands</p>
<p>if it stops later okay, but not earlier</p>
<p>don&#8217;t forget the acne, the hormone-freakshow, etc</p>
<p>really?</p>
<p>hi how is it supposed to work an struct with an &#8220;open array&#8221; element which is also an struct with an &#8220;open array&#8221;? (by open array i mean: foobar foo[]; at the end of an struct) &#8230; should i do the *bar + (size)*i logic by hand or magicly the <a href="http://www.cheaphosting.net.nz"><u>compiler</u></a> will know how to handle it?</p>
<p>pizza_, I understand about sequence points. my english is poor; I&#8217;ll try to explain. in some structures, it &#8220;buffers&#8221; the instructions to be executed at the end of the block. at the sequence point, it executes all &#8220;buffered&#8221; things&#8230;
pizza_, I don&#8217; know the word for buffer in my explanation, but, i think you could understand what i mean</p>
<p>just do foo[index].member</p>
<p>yes, that is basically correct; meaning that the state of those &#8220;buffered&#8221; operations is not guarenteed before the sequence point is reached</p>
<p>even if the second struct also has dynamic size? foo[i].bar[j].member ?</p>
<p>yeah
i mean, its just an array right? foo[i].bar is an array</p>
<p>so both the language standard and the comments in wchar.h say that wchar_t is defined in stddef.h, but the only thing I have in my stddef.h is the typedef for NULL
and the only place I can find a definition of wchar_t is in X11/Xlib.h</p>
<p>you probably also have some #include</p>
<p>can anyone offer any insight?</p>
<p><b>yes, but allocated using malloc( sizeof( foo ) + N * ( sizeof( bar ) + K ) )</b>
instead of malloc( sizeof( foo ) + N * ( sizeof( bar ) ) )</p>
<p><b>yeah, it says &#8220;/* Get size_t, wchar_t, wint_t and NULL from stddef.h. */&#8221; and then it include stddef.h</b></p>
<p><b>i don&#8217;t think thats going to work.. I assumed they were static arrays</b>
the pointer at foo[i].bar is going to be invalid</p>
<p>and stddef.h doesn&#8217;t include anything and doesn&#8217;t define size_t, wchar_t or wint_t</p>
<p>err, well, i don&#8217;t know, someone smarter than me in here should know though..</p>
<p>have you tried grep for it?</p>
<p>the trouble is with the undefined length of the inner array</p>
<p>yes. and like I said, the only definition I can find is in X11/Xlib.h
and I know that can&#8217;t be the main definition</p>
<p>why not ?</p>
<p>i&#8217;ll cast to char and do the pointer maths myself :p</p>
<p>because it&#8217;s not part of libc and wchar_t is part of libc</p>
<p>i am just curious, can a function return a variable</p>
<p>why do you think wchar_t is part of libc ?</p>
<p>a pointer</p>
<p>engrxyz, yes.</p>
<p>because it says so in section 7.17 of the library section of the c99 standard</p>
<p>oic
i taught it can only return a value</p>
<p><u>nate_d, then does it also mention where in libc it is defined ?</u></p>
<p>it says it&#8217;s defined in stddef.h
<u>ahh, it must be in the compiler&#8217;s stddef.h, not in the system stddef.h</u></p>
<p>heh</p>
<p>just looking at it will probably taint your coding.</p>
<p><b>Does someone have a hexdump format string to give a C char array?</b></p>
<p>yes.</p>
<p>you mean a fmt for printf?</p>
<p>No, for the `hexdump` util, not sure the format is the same.
./slightly OT, I know
nvm then</p>
<p>do you know how to handle &#8220;nested&#8221; flexible array members?</p>
<p>programatically.</p>
<p>(struct foo *)((char *) base + i * size &#8230;) ?</p>
<p>no idea what you believe you are asking.</p>
<p><b>the name of int foo[]; at the end of an struct is named &#8220;flexible array members&#8221; by C99</b></p>
<p>oh, that</p>
<p>C99 is whacky</p>
<p><b>my problem is that i need that in two levels, struct foo has a flexible array of struct bar, which has a flexible array of struct poink</b></p>
<p><u>The solution used for many, many years is as easy as struct foo { &#8230; T data[1]; } and then you just malloc( sizeof(foo)+(N*sizeof(T)) );</u></p>
<p>that is one level</p>
<p>I don&#8217;t care about &#8220;levels&#8221;</p>
<p>but i&#8217;ll do &#8220;programmaticly&#8221; as twkm suggested
thanks ,-)</p>
<p>heh, i always spell acrobat as acrobate</p>
<p>Can you capture a new line in a char, the ascii value is 10 dec, but if( char = &#8220;10&#8243;){ dosnt work correctly</p>
<p>er &#8220;10&#8243; isn&#8217;t a newline .. &#8216;\n&#8217;</p>
<p>&#8220;foo&#8221; is a string</p>
<p>= is assignment.</p>
<p>The string &#8220;10&#8243; is not equal to the number 10</p>
<p>plus char is a keyword so you can&#8217;t use it as a variable</p>
<p>hello, everybody, I have a question:
<b>A memory operand is allowed, with any kind of address that the machine supports in general. &#8220;o&#8221; : A memory operand is allowed, but only if the address is offsettable. ie, adding a small offset to the address gives a valid address. &#8220;V&#8221; : A memory operand that is not offsettable. In other words,
anything that would fit the `m constraint but not the `oconstraint.</b>
I don&#8217;t understand the what&#8217;s offsettable address ?
anyone help me , thanks.</p>
<p>cn28h_, it was an example, and twkm thank, that actually was my error, lol, whoopsie, i need some sleep</p>
<p>doesn&#8217;t seem very c-ish.
perhaps a word problem based on other work you did in class.</p>
<p>whats the code for tab?
\t
i got it
thanks</p>
<p><u>if I have some #defines in an h file, is there any way I can access them in a name, value array from the including C file?</u></p>
<p>nope.</p>
<p>okay thanks</p>
<p><u>you can&#8217;t &#8220;access&#8221; symbolic constants, the names simply get replaced by the preprocessor</u></p>
<p><b>hmm i can&#8217;t recall why it was wrong to do open/fdopen instead of fopen</b></p>
<p>might be just fine.</p>
<p>isn&#8217;t open specific to linux/posix?
open/fdopen</p>
<p>open is a POSIX function, yes</p>
<p>what about fdopen?</p>
<p>also posix.</p>
<p>yeah but there were something like non-atomic or something</p>
<p>what about fopen?</p>
<p>C</p>
<p>doesn&#8217;t fopen also do some stuff with buffers n junk?</p>
<p>probably.
the same things are done by fdopen.</p>
<p><u>cause when you do write() sometimes it has to be a certain block size or something</u></p>
<p>no.</p>
<p>you sure? i remember reading that in a linux programming book
maybe im remembering it wrong</p>
<p><u>Any know how sockets can all of a sudden stop working and hang on accept when you&#8217;ve changed nothing related to your socket code?</u></p>
<p>accept() is supposed to block, yes?</p>
<p>yes</p>
<p>then it shouldn&#8217;t be surprising when it does.</p>
<p>but when I connect with my client it doesn&#8217;t stop blocking
<u>it fine up until yesterday and nothing has changed as far as the code when looking at my rev logs</u></p>
<p><b>when i change the width of a column, in a WC_HEADER, how do i make everything in the column update to new width while still draging?</b></p>
<p><u>Or do you think there could be a problem on the system because the socket didn&#8217;t exit cleanly?</u></p>
<p>no.
if the listen socket were flawed accept would return an error.</p>
<p>doesn&#8217;t anyone here know??</p>
<p>sadly, not usually. we aren&#8217;t very strong on win32 here. try <a href="irc://irc.efnet.net/#winprog">irc://irc.efnet.net/#winprog</a></p>
<p>ok, thanks</p>
<p>Can I use sprintf(str, &#8220;%sfoobar&#8221;, str); to append foobar to str?
Wait, nvm</p>
<p>no.</p>
<p>you can use snprintf however</p>
<p>nope.
(you can use sprinf or snprintf, just not like solemnwarning showed)</p>
<p>why not strcat? :p</p>
<p>snprintf(output + strlen(output), sizeof(output) - strlen(output), &#8220;%s)\n&#8221;, output);
thats a functional example</p>
<p>yes, though poor performance.</p>
<p>whats a better way to write it then?</p>
<p>Hi
How to join (char *) and char to one line?
Can strcat join char and char[]?</p>
<p>with assignment.</p>
<p>How?</p>
<p>you don&#8217;t know how to assign a char value to a char object?</p>
<p>place your char at the end of the string. then reterminate it.</p>
<p>I don&#8217;t have one letter and I want to add it to char line (char *)
I have*</p>
<p>hmm..the channel #winprog is dead..ppl is logged in but no activity&#8230;.</p>
<p>on efnet? seems unlikely, but channels can get that way.
<u>if you have a number and want to assign it to an int, how do you do it?</u></p>
<p>+</p>
<p>awesome</p>
<p>just my luck&#8230;.</p>
<p>strcat(raid,(&ntilde;har*)(c[i]); doesn&#8217;t work
strcat(raid,(&ntilde;har*)c[i]); doesn&#8217;t work</p>
<p>you are correct. it doesn&#8217;t, for multiple reasons.</p>
<p>So how should I make it work?
Why it doesn&#8217;t convert that int to according char?</p>
<p><u>why would you think strcat() would do conversion? have you read the manual describing its purpose and use?</u></p>
<p>why should it convert it?</p>
<p>I want to add one char to the end of string</p>
<p>use strncat</p>
<p>and we told you how to do it. if you don&#8217;t know how assignment works, you should consult your C book.</p>
<p>But how about</p>
<p>hmm.. I&#8217;ve not missed much, eh?</p>
<p>no buts.</p>
<p> char at the end of string?</p>
<p>what about it?</p>
<p>is that a question ?</p>
<p>Does it goes away automatically or I should delete it manuall?
y</p>
<p>what does the manual say about it?</p>
<p>how would you &#8220;delete&#8221; it?</p>
<p>To make it disappear from that string</p>
<p>how do you make it disappear?</p>
<p>&#8220;gogo&#8221;
If I add char
I get</p>
<p>string literals are automatically -terminated</p>
<p>&#8220;gogos&#8221;</p>
<p>sheesh</p>
<p>you do?</p>
<p>I don&#8217;t know
I am consulting</p>
<p>your guessing.</p>
<p>you&#8217;re.</p>
<p>yer right <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Nezinomasis, start by reading strcat in your libc reference.</p>
<p>I suspect he doesn&#8217;t understand &#8220;string&#8221;, &#8220;array&#8221;, or &#8220;zero-based indexing&#8221;</p>
<p>I don&#8217;t see how that is a good place to start.</p>
<p>Then say a good reference</p>
<p>!books</p>
<p>books is <a href="http://www.iso-9899.info/wiki/Books">http://www.iso-9899.info/wiki/Books</a></p>
<p>Could someone say how to do it fast? I understand best from examples</p>
<p>no.</p>
<p>fast is relative.</p>
<p>Nezinomasis, so, what book do you have?</p>
<p><b>I want to add one char to the end of string // strcat(string, &#8220;a&#8221;);</b></p>
<p>charLine+=c[i]; I guess it doesn&#8217;t work&#8230;
I want to add dinamicaly found char</p>
<p>why are you still guessing ?</p>
<p>[Mr_X], good job. now do you know the dirrefence between a char and an array of char?
s/dirrefence/difference/</p>
<p>Because I can&#8217;t find fast a good example</p>
<p>strcat is appropriate, why have you not looked it up ?</p>
<p>Char is letter/digit/etc. Array of char is a string.</p>
<p>It can&#8217;t add one single char from another string line</p>
<p>no</p>
<p>Nezinomasis, try strchar</p>
<p>chr</p>
<p><b>[Mr_X], no, and the difference here is that we wanted to add a char, but your example concats a string.</b></p>
<p>Umm&#8230;</p>
<p><u>I hope y&#8217;all realize.. Once he finally manages to &#8220;add&#8221; that char, he&#8217;s gonna&#8217; then cry when the program blows up <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </u></p>
<p><u>PoppaVic, i want him to realize how to guess function names, then look them up. He obviously has a learning disability, and needs to be told how to read.</u></p>
<p>crying is good.</p>
<p>luthuania</p>
<p><b>if I do imul $4, %eax and after that idiv $4, %eax then %eax would be at the value it had before the imul iright? sorry for the fact that it is assembly, sorry for the fact that its a noob question, but a yes or no would be lovely. Thanks</b></p>
<p>maybe they don&#8217;t have books?
#asm</p>
<p>aha
thanks
I tried #assembly ^^
noone there</p>
<p>well, this is C
C has enough issues w/o asm stirred into it</p>
<p>tajen, most compilers would convert it to shifts.</p>
<p>yeah, I didnt know about #asm, so sorry <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>why don&#8217;t you just try it?</p>
<p><b>its asm, your likely to create a black hole if you use the wrong instructions&#8230; that asm is way too powerful.</b></p>
<p><u>honestly didnt think about it&#8230; pretty new to assembly, so #assembly popped up in my mind, #asm however did not <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </u></p>
<p>temp[0] = c[i];
<u>temp[1] = &#8221;;</u></p>
<p>I mean the code. Take 5 minutes to try it.</p>
<p>strcat(raid,temp);
Nice</p>
<p><u>asking the pro&#8217;s are often a sure way to evade misunderstanding whats happening&#8230; but I got help, so thanks to poppa for telling me about the channel</u></p>
<p>no prob.
I used to hang out in #asm, but all they talk about is assembler <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Nezinomasis, that is indeed one way to do it.</p>
<p>I found it
Tell me another one</p>
<p>assign the values to raid yourself.</p>
<p>You can call me retarded but I still don&#8217;t understand what are you saying</p>
<p>hwo do you think strcat works?
how</p>
<p>It joins two string lines</p>
<p>bzzzt</p>
<p>no, &#8220;how does it work?&#8221;, not &#8220;what does it do?&#8221;.</p>
<p>Aa&#8230; Inside</p>
<p>hmm, no &#8220;join&#8221; involved.</p>
<p>I think it wipes out  of first string
And adds another one to it&#8217;s end</p>
<p><b>I think questions like this could be easily answered by looking at glibc source code.</b></p>
<p>another string</p>
<p>[Mr_X], and how pointless would that be.
Nezinomasis, we&#8217;re back to &#8220;how does it wipe out the ?&#8221;</p>
<p>Nezinomasis and Auris-: are you guys lithuanians?</p>
<p>Overwrites with another char?
Yap</p>
<p>[Mr_X], only if you are a maumau.</p>
<p>I am newb at C and C++
So don&#8217;t laugh too much</p>
<p>Nezinomasis, overwrites, yes. what could be a good char to overwrite with?</p>
<p>hi@all!
Sorry to interrupt.
I&acute;ve a problem concerning scanf().
the syntax is scanf(&#8221;%s&#8221;,&amp;bla);
for strings.</p>
<p>&#8220;&#8221; char?</p>
<p>Nezinomasis, why do you think that is a char?</p>
<p>Because it is int &#8220;&#8221;
in*</p>
<p>I can&#8217;t see a thing in &#8220;&#8221;.</p>
<p>Nezinomasis, you need to have an understanding of how a computer works, and how <a href="http://www.cheaphosting.net.nz">memory</a> works.. C is for programming computers. not just for making applications. unless you understand the underlying archetecture, your always going to struggle.</p>
<p>hi@all!
Sorry to interrupt.
I&acute;ve a problem concerning scanf().
the syntax is scanf(&#8221;%s&#8221;,&amp;bla);
for strings.</p>
<p>So say the truth</p>
<p>nooby4life, please die.</p>
<p>Auris-: you have to squint.</p>
<p>yay!
power word kill.</p>
<p>heh</p>
<p>Nezinomasis, &#8220;&#8221; is an empty string. it only contains the implicit terminator.
<u>and as you noticed, a string is not a char, not a char is not a string.</u>
s/not/and/</p>
<p>Thanks</p>
<p>Nezinomasis, so do you now know what you should overwrite  from the destination with?
damn americanism.</p>
<p>i ve written a programm wich purpose is to open a file and read the floats in it and save it in an array . but if i use the file pointer i get a memory acces error or something similar</p>
<p>Auris-: I want back to the age of the swords and the dragons</p>
<p>did you check the return values of the various io functions?</p>
<p>Auris-: Where was the americanism?</p>
<p><u>i cant chech them , if i do something like feof(file) the programm crashes</u></p>
<p>maybe file is null?</p>
<p>no i check this using if(file==NULL)</p>
<p>megaTherion, you may need to switch to a parallel universe for that.
<u>ozarka, ending a sentence with a &#8220;with&#8221; or any such word (if I only remembered what they were called <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ).</u></p>
<p>Preposition. <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>most likely.</p>
<p>Auris-: maybe we can use ASM for this :p</p>
<p>&#8220;you kids have learned skills that even i&#8217;m impressed with!&#8221;
&#8220;did.. did you just end a sentence with a preposition?&#8221;
&#8220;hey, kids&#8230; everyone makes mistakes&#8230;&#8221;</p>
<p>hehe</p>
<p>that was excellent.</p>
<p>i compiled th same programm without the algorithm and it works</p>
<p>tux, did you ask a debugger?</p>
<p>wich one should i use ihave never used one</p>
<p>if you are on linux, use gdb. you can also google for gdb tutorials.</p>
<p>ok i will search my debian cds
thanks will be back soon</p>
<p>hello everybody</p>
<p>hi</p>
<p>why is no activity on the channel?</p>
<p>Ask for help with your homework. Then we&#8217;ll see some action.</p>
<p>feeling lonely?</p>
<p>well, I got no homework</p>
<p>I&#8217;ve tried to write a C program which iterates through a byte array, <a href="http://pastebin.ca/705013">http://pastebin.ca/705013</a>. Starting at [0] and and search forward until &#8216;\n&#8217; is found. Then print [0]..[i]. Next time it should continue from where it stoped, until next \n is found.
Could anyone please give me hints about what I&#8217;m doing wrong in my code?</p>
<p>C is that easy that there are no questions left</p>
<p><u>I haven&#8217;t found any example code with google that shows that kind of iteration.</u></p>
<p>I am still confused with malloc
Why do I neede it, IDK
why do I need malloc</p>
<p>You don&#8217;t need malloc.</p>
<p>I&#8217;ve done programs so far without that function</p>
<p>It&#8217;s just a trap for suckers.</p>
<p>or pointers</p>
<p>you can&#8217;t code anything nontrivial without pointers.</p>
<p>or malloc</p>
<p><u>My grandmother lived until almost 100, and she never used pointers or malloc.</u></p>
<p>U just suck</p>
<p>i used pointers with your grandmother</p>
<p>You&#8217;ll have to troll better than that.</p>
<p>well, until now my programs allocated memory for themselves, why do I need to do it:</p>
<p>We have bots that troll better than that. <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>i had a three way with your mam and a troll</p>
<p>ok, wtf, can anybody get to my question now pls?</p>
<p>who won?</p>
<p>and the troll regenerated quickly after a little death.</p>
<p>I have a byte[] and simply want to cut it in pieces everytime that &#8216;\n&#8217; is found. Are there example around that shows how to do such stuff? :/</p>
<p>Have you used arrays?</p>
<p>pragma_, the cookie crumbled and i we all felt the auris</p>
<p>only strings</p>
<p>what happened next is any man&#8217;s guess</p>
<p>you&#8217;ll find out when you need it when you need it.
s/when/why/</p>
<p>only character arrays</p>
<p>focus on C please.</p>
<p>^_^ me?</p>
<p>I&#8217;ll never look at you the same way now.</p>
<p>Cin_derella! I love it.</p>
<p>only until midnight</p>
<p>i left my piece of pizza on the stair</p>
<p><b>can somebody tell me why do I need malloc if the program allocates memmory by himself?</b></p>
<p>how sexist!</p>
<p>cookie, you can only allocate memory with malloc.</p>
<p>well, I did not use it yet
and the programs work</p>
<p>when you need to use it, you&#8217;ll know why.</p>
<p>cookie, it&#8217;ll glow blue</p>
<p>yeah, I hope it will!
thanks anyways</p>
<p><u>why jump ahead a few chapters? continue reading and the truth will smack you.</u>
!truthsmack</p>
<p><b>you never need to call malloc, you can write any application and do pretty much anything without ever using it</b>
byou never need to call malloc, you can write any application and do pretty much anything without ever using it/b
lol</p>
<p><b>bkw, it would be nicer if you indentation didn&#8217;t suck and you told us what is actually wrong. no one can know what the output should be.</b></p>
<p>Auris-, do you have an afro?</p>
<p>sheeeeeyit</p>
<p>Cin, do you think it would suit me?</p>
<p>And you won&#8217;t need pointers. char arrays work fine without them.</p>
<p>Auris-, i think i&#8217;d respect you more</p>
<p>Get an afro and dye it red, green and yellow.</p>
<p>Cin, I&#8217;ll put it under consideration.</p>
<p>Don&#8217;t forget the obligatory curly hair comb.</p>
<p>and sole glow
where the men are men and grease is king</p>
<p>Oh, Sandy!</p>
<p>smoooth.</p>
<p>and then you go on to make a much better movie directed by quinten tarrantino, and then you get fatter and fatter as your movies get worse and worse
ultimately falling into madness and joining a cult</p>
<p><b>Auris-: Ok. I&#8217;m receiving data from a pipe. a chuck of many bytes. I want to cut/seperate it so that after every new a printk is made. For example, if the byte array is &#8220;ABDLDL\nWOWOEOR\nASD\n&#8221; (but with ascii code) I would like it to |ABDLDL\n| |WOWOEOR\n| |ASD\n| split it upp in
pieces</b></p>
<p>pragma_, how much does it cost to be a scientologist?</p>
<p>a sex cult?</p>
<p>Auris-, in scientology, people have sex with YOU</p>
<p>Too much. It&#8217;s like $6000 to gain a level or something.</p>
<p>pragma_, i wonder what the big boss is like</p>
<p>I for one welcome our new Tom Hanks overlords.
er.
Tom Cruise.</p>
<p>tom hanks!!</p>
<p><u>bkw, that does not answer my implicit question. I know what you are trying to do.</u></p>
<p>I love it when Windows users try to talk about imaginary data.</p>
<p>pragma has secret knowledge about new members.</p>
<p>&#8220;blabla&#8221; &#8220;abdldl&#8221;
Although, &#8220;wowoeor&#8221; just got added to my list of &#8220;foo&#8221; words.</p>
<p>Maybe it&#8217;s not imaginary data.</p>
<p>i usually use bill, bob, dave, foo, mu, kung fu, cheese</p>
<p><b>Maybe he has to deal with that kind of stuff In Real Life.</b>
<b>bMaybe he has to deal with that kind of stuff In Real Life./b</b>
kungfucheese is the secret backdoor word for all my programs.</p>
<p>; _ ; i wanted all the mu</p>
<p><u>I bet someone, somewhere is getting rich off of your gay threesome porn script with kung fu and cheese.</u></p>
<p><u>pragma_, i made a mu&#8217;ing noise while bill, bob, dave foo&#8217;d me with their &#8220;kung fu cheese&#8221;</u></p>
<p>Aw, that&#8217;s soooo CUTE!</p>
<p>fukkake</p>
<p><b>Auris-: The output doesn&#8217;t look as want. Which means that there&#8217;s something wrong in code. But I can&#8217;t find it.</b></p>
<p>hire a programmer</p>
<p>that&#8217;s one option</p>
<p>bkw, well, if you don&#8217;t want to tell us anything useful, let&#8217;s just stop this here and now.</p>
<p>Exactlly what do you want to know?
hm, maybe the input values..
I never mentioned them, sorry.
Auris-: Anyhow.. what is it called, to slice an array?</p>
<p><a href="http://pastebin.com/m2ae36041">http://pastebin.com/m2ae36041</a>
<u>It was fine untill i put in the for loop for the arguments</u></p>
<p>bkw, dunno.</p>
<p>hi</p>
<p>I have a problem with binary file</p>
<p><b>static char phone_state[] = { [&#8217;2&#8242;] = &#8216;a&#8217;, [&#8217;a'] = &#8216;b&#8217; }; // what does this syntax mean?</b></p>
<p>HeatHawk[LI], why don&#8217;t you try to locate the segfault?</p>
<p><u>i want to copy some data from a file, in an other but the data can be the character EOF</u></p>
<p><b>At a guess, it does the equivalent of phone_stat[&#8217;2&#8242;]=&#8217;a'; and so forth, but I&#8217;m not at all sure it&#8217;s valid C</b></p>
<p>and then, he stops the copy</p>
<p>Auris-, i tried with gdb and placed prift statements, but it just segfaults on load</p>
<p>&#8216;2&#8242; is, of course, just another integer syntax</p>
<p>yes
okay, it&#8217;s weird
the C++ compiler doesn&#8217;t compile it for sure</p>
<p>HeatHawk[LI], &#8220;on load&#8221; of what?</p>
<p>it might be C99</p>
<p>HeatHawk[LI]: Shouldn&#8217;t that loop start at 0?</p>
<p>ozarka, first argument is the program execution</p>
<p>it&#8217;s called a designated initializer, and it&#8217;s C99</p>
<p>ah..</p>
<p>&nbsp;</p>
<p><a href="http://www.cheaphosting.net.nz" title="Cheap tomcat 6"><b>Cheap tomcat 6.</b></a></p>
<p>&nbsp;</p>
<p>argv[0] is not an argument</p>
<p>Auris-, when you run it</p>
<p>HeatHawk[LI], I find that hard to believe.</p>
<p><b>Auris-, i put a printf right after int main, and it didnt even do that</b>
<b>the code after the loop for arguments is all tested and functioning so i know its not it</b></p>
<p>maybe it failed to <a href="http://www.cheaphosting.net.nz"><b>compile</b></a> and you are running the old exe.
also you really should add a \n to the printf since buffering tends to make things disappear.</p>
<p>Auris-, didnt fail, but do you think this is the problem: warning: ISO C90 forbids mixed declarations and code</p>
<p><u>that won&#8217;t cause a crash. but if you are not writing C99, move the declarations to the beginning of the block.</u></p>
<p>HeatHawk[LI]: also note that the ints created inside those conditional blocks for argument parsing go out of scope immediately without doing anything</p>
<p><b>pizza_, i moved them there for testing thinkg it was crashing on the creation of them</b></p>
<p>ok, just so you know
as for crashing, run it with a debugger and find out
the argument loop looks ok to me</p>
<p>well, i fixed the c90 warning and the strcmp warning (needed string.h)
but still segs
arg</p>
<p>HeatHawk[LI]: use a debugger, if you don&#8217;t know what that is or how to use it, learn</p>
<p>hi</p>
<p><b>i do, but thanks, and i still cant figure it out, hence the reason im here</b>
<b>71 block = fread(sText, sizeof *sText, 16, fstr);</b>
(gdb) next
Program received signal SIGSEGV, Segmentation fault.
0xb7e744cc in memcpy () from /lib/libc.so.6
(gdb)</p>
<p>HeatHawk[LI]: what type is sText? a char[]?</p>
<p>somehow that does not look like it crashes &#8220;on load&#8221;.</p>
<p>pizza_, char *</p>
<p><u>im still debugging my programm. i did create a FILE variable opend it using fopen the filepointer isnt empty and there are no errors</u>
i debugd it using gdb</p>
<p><b>Now can someone explain this to me, in some of my earlier code I used dbs2[DBSCONN] but no I wrote it out of my code completely but if I remove struct db_s dbs2[DBSCONN]; from the header file it locks up when running.</b></p>
<p>pizza_, but that code is tested, and working, it broke after i started the argument work</p>
<p>HeatHawk[LI]: how can you not know where the crash is? it&#8217;s listed on line 71</p>
<p>0xb7e1ffb6 in _IO_vfscanf () from /lib/tls/i686/cmov/libc.so.6</p>
<p><u>pizza_, but that is tested and working code, and if it crashes there, it should have outputed a printf i put in before hand</u>
upizza_, but that is tested and working code, and if it crashes there, it should have outputed a printf i put in before hand/u</p>
<p>HeatHawk[LI], then you are a bad tester.</p>
<p>Auris-, thanks, real encouraging</p>
<p>HeatHawk[LI]: denial can be an ugly thing.</p>
<p>pizza_, what do you want me to say? that code is unchanged, and works</p>
<p>HeatHawk[LI], what is the first parameter to fread?
HeatHawk[LI], what is it used for?</p>
<p>Auris-, its the storange variable
what does that have to do with anything</p>
<p><b>HeatHawk[LI]: you shouldn&#8217;t say anything, you should see that the debugger crashes and fix your code ffs</b></p>
<p>HeatHawk[LI], where do you have storage set up?</p>
<p>Auris-, in main? memory?</p>
<p>HeatHawk[LI], ah, you expect C to do things magically for you.</p>
<p>Auris-, what are you talking about, its declared</p>
<p>HeatHawk[LI]: a char * does not store data</p>
<p><u>HeatHawk[LI], where do you set this storage up? a pointer is not storage.</u>
do you think your home address is your home?</p>
<p>omg
sorry
im stupid</p>
<p>q</p>
<p>guys if i have a leak of say 11k once my executable is done the OS should reclaim it right?
or am i wrong?</p>
<p>nyc-h0st, depends on the OS.</p>
<p><b>can someone recommend a decent C tutorial? I find the K&amp;R book to be a tad trivial</b></p>
<p>how does <a href="http://www.cheaphosting.net.nz">linux host</a> usually handle these things?</p>
<p>nyc-h0st: your OS probably cleans up after you, but it isn&#8217;t guarenteed by C
nyc-h0st: linux will clean up after you</p>
<p>well it seems like it doesnt and thats what is scary</p>
<p><u>nyc-h0st, you should not rely on process clean up, you learn bad habits.</u></p>
<p><b>i&#8217;m not i&#8217;ve done as much as i can and i cant find this one leak</b></p>
<p>nyc-h0st: how so?</p>
<p>valgrind tells me i&#8217;m losing it but i cant find it</p>
<p>use valgrind.
valgrind tells you where you allocated it.
bulio, did you do the exercises?</p>
<p><u>i did and i used leak-check and i dont see it telling me where i allocated it</u></p>
<p>Auris-: No, I felt lost right at the start of the book</p>
<p>then learn an easier language</p>
<p>bulio, hmm, do you know what trivial means?
nyc-h0st, use -v too.</p>
<p>aha
ok
let me try that</p>
<p>valgrind actually tells you what you should do to get more information.</p>
<p>just taught myself to use the left shift to make a parenthesis instead of the right</p>
<p>cin, are you left-handed?</p>
<p>no</p>
<p>that&#8217;s a good way to get rsi</p>
<p>what&#8217;s a good way to get rsi?</p>
<p>i&#8217;ll give you 3 guesses</p>
<p>you seem to be confused</p>
<p>I vote for bzek&#8217;s quit message.</p>
<p>hmm it&#8217;s impossible to do it with the right shift <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>trekdanne, not if you have big hands</p>
<p>ah i c</p>
<p>unless your little finger is where your wrist should be, it is not wise</p>
<p>but it&#8217;s actually quite straining after twelve or so hours</p>
<p>must hurt as hell after a while i can imagine</p>
<p>yeah, coding lisp starts to hurt</p>
<p> <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><b>i have my minions to do that &#8220;Johnson I need 1,314 left parentheses by Wednesday&#8221;</b></p>
<p>must you use name calling?</p>
<p>?</p>
<p><u>johnson, tit, and shitface; i need that report on parenthesising vs operator precedence by wednesday</u>
i think i probably used to use the left shift for speech marks, too
but it seems it currently comes natural to use the right one
generally using two hands for combinations seems a good idea</p>
<p>what&#8217;s a speech mark?</p>
<p>&#8220;
you may know it as a quotation mark, an inverted comma, etc.</p>
<p>I call them so-sayeth-sigils.</p>
<p>lol wut</p>
<p>also no, I don&#8217;t.</p>
<p>enjoy your fail</p>
<p>it&#8217;ll be supercool with my afro.</p>
<p><u>it&#8217;s create when people try to make an L sign on their head to call you a loser but use their left hand</u></p>
<p>hey i debuged my programm
ogram received signal SIGSEGV, Segmentation fault.
0xb7e1ffb6 in _IO_vfscanf () from /lib/tls/i686/cmov/libc.so.6</p>
<p>yeah don&#8217;t do that</p>
<p>pizza_ what</p>
<p>tux, did the tutorial tell you about &#8220;backtrace&#8221;?
tux, since the bug is in your code, not in libc.</p>
<p>so how do i find it</p>
<p>bt</p>
<p>tux you are probably using an invalid pointer in your call to fscanf
or something
do the bt</p>
<p>and remember to compile with -g to get any useful information</p>
<p>well yeah thats useful as well</p>
<p>the compiler doesnt output anything
but bt
#0 0xb7e15fb6 in _IO_vfscanf () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7e15a11 in vfscanf () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7e1ff62 in fscanf () from /lib/tls/i686/cmov/libc.so.6
#3 0&#215;080485b5 in main () at /home/tux/c/bwinf26r1_2/src/bwinf26r1_2.c:38</p>
<p>now you get to guess which one of those has the bug.</p>
<p>my programm
#3</p>
<p>&#8230;</p>
<p>indeed. on which line?</p>
<p>38</p>
<p>splendid. also, I hope you compiled with warnings turned on (-W -Wall).</p>
<p>hello all</p>
<p>thats fopen</p>
<p>it&#8217;s not fopen since you are calling fscanf.
well, the problem could be with the use of fopen, yes.</p>
<p>oh i looked on the wrong file
its fopen
fscanf(file,&#8221;%f&#8221;, &amp;preise[n]);
i mean its fscanf
what its wrong on it</p>
<p>what type is preise and what is the value of n?</p>
<p>int n=0</p>
<p>how do you know n was 0 at the time of the crash?</p>
<p>ugh, adjectives for variable names
what has we done ;_;</p>
<p>and answer the question about the type.
Cin, I don&#8217;t know. what did you do? <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>there are no changes done on n between its declaration and fscanf
and its an integer</p>
<p>preise is an integer?</p>
<p>no its float
n is integer</p>
<p><u>int is not the same as integer. and preise probably is not float since you use array indexing on it.</u></p>
<p>float preise[a-1];</p>
<p>is anyone here very familiar with <a href="http://www.cheaphosting.net.nz"><u>unix</u></a> socket programming?</p>
<p>int a=100;</p>
<p>plowdawg, are you taking a poll?</p>
<p>is your &#8216;precise&#8217; name a failed attempt at &#8216;precision&#8217;?</p>
<p>Auris-: no, i have annoying problem</p>
<p>plowdawg, jolly good.</p>
<p>Auris-: but i&#8217;d rather talk about it in a private msg than flood this channel</p>
<p>shoot the question</p>
<p><b>tux, find some way to find out the value of n at the time of the crash.</b></p>
<p>can i use printf one line before</p>
<p>&#8230; and use it.</p>
<p>the debugger can help</p>
<p><u>i have an application where a client streams data over tcp to a server, line-by-line, and the server never writes anything back. now if the server crashes and reboots, the client never knows that the connection is stale, but if it tries to send another line of data there is no error until the
following write</u></p>
<p>&ordm;
^
stargate logo</p>
<p>the <a href="http://www.cheaphosting.net.nz">server</a> will send back a RST</p>
<p><b>it should eventually learn of it, and write/send will communicate that fact to the client.</b>
<u>buffers. better put an ack into your protocol if you must know if a line was received.</u></p>
<p>i guess i could do an application-level ack
i was hoping that it could be done without it</p>
<p>using SO_KEEPALIVE?</p>
<p>no, haven&#8217;t tried it. how often are the keepalive messages sent though?</p>
<p>tcp is just transport, not application.
depends on the rtt. hours probably.</p>
<p>i know
keepalive wouldn&#8217;t help with this then&#8230;
<b>since the server sends back a RST, couldn&#8217;t i catch that with a read after the write?</b>
and see that the socket should be closed/restarted</p>
<p>perhaps. but the write will tell you.</p>
<p>not the first write
only the following one generates a SIGPIPE and EPIPE error</p>
<p>n=0</p>
<p>exactly. STOP THINKING TCP IS APPLICATION.
there is no ack from the far end to tell your end that the write was read. they are completely disconnected. you write into a buffer, if that succeeds write returns. no way the return value can be amended later to show that the remote never got the line.</p>
<p>it works
good night</p>
<p>tux, great.</p>
<p><u>guys if realloc cannot expand the block and it allocates a whole new space would it free the old block?</u></p>
<p>nyc-h0st: You must always assume that realloc returns a different pointer value.</p>
<p>nyc-h0st: it might return NULL</p>
<p><u>yes that is what i am assuming, my question is what does it do with the old memory</u></p>
<p><b>nyc-h0st: You must always assume that the old storage and any pointers into it are invalidated.</b></p>
<p>and is it smart enough to free it</p>
<p>nyc-h0st: realloc() resizes the object.
so, by definition &#8230;</p>
<p>ok i&#8217;ll assume they&#8217;ve coded it right</p>
<p>nyc-h0st: Maybe you&#8217;re using a broken man page &#8212; one which isn&#8217;t clear enough about what realloc does.</p>
<p><u>it says if not enough space it would allocate new space but it doesnt say it frees the old space</u>
so just curious i guess</p>
<p>Mine says &#8220;The realloc() function shall change the size of the <a href="http://www.cheaphosting.net.nz"><b>memory</b></a> object pointed to by &#8216;ptr&#8217; to the size specified by &#8217;size&#8217;.&#8221;
man 3p realloc ## assuming you have the POSIX man pages installed.</p>
<p>nyc-h0st: you could always check what the standard says <img src='http://www.cheaphosting.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 
nyc-h0st: 7.20.3.4 1</p>
<p><b>if you had a large amount of data structures that you wanted to pre-allocate memory for but which didn&#8217;t have any real meaning until they were used, how would you store them?</b>
<u>a linked-list seems a bit inappropriate due to the sheer numbers we&#8217;re talking here (10k +)</u>
normally when linked lists are too slow I use hash tables, but your data has to have meaning to go into a hash table</p>
<p>that&#8217;s what the kernel does too
but how is it all glued together *grumbles*</p>
<p><u>maybe you misunderstood the question of nyc-h0st, he asks, if realloc cannot resize ptr, it tries to allocate space of provided size and copies the data to the new place, and returns the new address, nyc-h0st no aked what happens to the old ptr. is this freed</u></p>
<p>yes, when realloc returns a new PTR the old one is freed</p>
<p>my description of glibc-realloc does not state anything on this either</p>
<p>well, the standard answers that question very well</p>
<p><u>ok when valgrind says still reachable, what in the world does that mean?</u></p>
<p>you didn&#8217;t free it.
ie. there&#8217;s was a pointer pointing to it when the program ended.
-&#8217;s</p>
<p>what&#8217;s the equivalent of bzero(buffer, sizeof(buffer)) using memset? would it be memset (&amp;buffer, 0, sizeof(buffer)) ?</p>
<p>maybe, without the &amp;.</p>
<p><u>I thought it took a void ptr as the param.. wouldn&#8217;t you have to cast buffer if it&#8217;s not a ptr already?</u>
eh bzero takes a void ptr too.. whatever..
That&#8217;s a little confusing..</p>
<p>what do you think buffer is?</p>
<p>from my manpage:
<b>For maximum portability, it is recommended to replace the function call to bzero() as follows:</b>
<b>#define bzero(b,len) (memset((b), ??, (len)), (void) 0)</b>
hrm, those ?&#8217;s should be single quotes</p>
<p>sound funny