Member of: SUSEUnbound Forum, Lefora Support Forum.
No posts received thumbs up, next time you see a good one, give some respect and thumb it up.
Re: Creating barcodes with PHP
October 6, 2009 by feathermonkey
Thought I would bump this I haven't got a clue what is going on but I've just been bumped to 5.3 its smashing bits for fun the barcode example I used now throws
Fatal error: Call to undefined function imagefontheight() in /usr/share/pear/Image/Barcode/code128.php on line 137
The zencart install I have has just about disappeared and I have no real useful logs, this is mainly a fyi and if you intend to go the upgrade route starting the transition now may make it less painful at a later date.
As for me starting to like django more and more...
Re: Creating barcodes with PHP
September 25, 2009 by feathermonkey
Edit
Hehe now I see what you mean when I first tested it I just used alpha which worked fine for some reason on code128(Teach me for echoing into files(Didn't notice the code obfuscation either before)). I also can make it look more or less the same. Your example seems to have a strange way of doing it using a 1x1 image to build it. If you use the lib I highlighted in /usr/share/pear/Image/Barcode/code files it has vars if I tweak
font = 3
barwidth =2
barcodeheight = 200
We get
Re: Creating barcodes with PHP
September 25, 2009 by feathermonkey
As for ssl I might be able to help but no guarantee, I've set it up for a shop and finally sussed it for the virtual hosts(Got a nice rewrite rule that redirects to ssl) if you get can't find key create a pem with the key and cert together in it. Now if I could only work out why my url confs are random, yet the documentation says it runs in order, not my experience.
As for the string strange, guess its because you're running an outdated php just checked mine it works fine and you can see my source :P.(Reckon you where missing the lib which you've installed why your example works now but guessing) I agree your example is nicer.
But python is the challenge now too many things with php turn up bad for my liking.
Re: Creating barcodes with PHP
September 24, 2009 by feathermonkey
Nope never done it but just done it ![]()
cat public_html/test.php
<?php
require_once 'Image/Barcode.php';
/* Data that will be encoded in the bar code */
$bar_code_data = TRSD5656;
/* The third parameter can accept any from the following,
* jpg, png and gif.
*/
Image_Barcode::draw($bar_code_data, 'code128', 'png');
?>
Did nothing to my php.ini neither did I install php_gd, but what I did do, I discovered php has an interface similar to cspan the things you learn. OK I haven't quite solved the config stuff interactively isn't quite doing it for me.
pear install --alldeps http://download.pear.php.net/package/Image_Barcode-1.1.0.tgz
neat heah
So you can check I'm not doing anything horrible here is the page http://pear.php.net/package/Image_Barcode/
[OT] Now I've helped you, tell me how to configure django with ssl in virtual hosts using apache for static and dynamic
[/OT]
September Shots
September 8, 2009 by feathermonkey
OK might notice the pics but mainly been getting the rest right...
Compiz-Fusion WM, Cairo-Dock panel. Conky bits still need tweaking and may make a theme for the weather(Or maybe conky it..)
Re: What to post when you run out of questions or ideas.
September 3, 2009 by feathermonkey
Me wonders whether this is what they meant
Re: Should this Forum keep going?
September 1, 2009 by feathermonkey
You're preaching to the converted, what about the blogs and the personal websites in links yes I totally agree to truly enforce it goes down a road I'm pretty sure they don't want to go down.
All in all perhaps ymmv and nothing will be said to you.
Re: Should this Forum keep going?
September 1, 2009 by feathermonkey
We'll let Sagemta comment but I believe they got told no and you have 2 staff saying that it is against the rules and Swerdnas' was OK as it was asked. You'll also notice they even removed the Thailand post which strangely enough I didn't think would cause offence.
Just warning you to be prepared,
I thought it was all a rather pointless discussion and should of been followed up by yes certainly, and thankyou for asking. The rules are to stop advertising products and to lessen spam to which this isn't either.
Re: Should this Forum keep going?
September 1, 2009 by feathermonkey
@ microchip yes it has been discussed and it is against there rules afaik, Sagemta asked.
http://forums.opensuse.org/forum-usage-support-information/416734-okay-mention-another-suse-forum-here.html
@MattB think the others have said but its your choice really, more so if you can't find someone to take it on. We have tried to get a higher profile but its never going to be easy with the official forum. Every where you look it is the official forum i.e bookmarks konq, firefox etc...
I always felt that in the grander schemes of things in trying to create a consolidated forum it was going to actually create a more fractured community. A community isn't just about a few users here or there(The waifs and strays are also part of it) but the whole and needed/needs addressing.
Re: Any python wizards? Solved..!
August 27, 2009 by feathermonkey
OK so asked else where and the answer is..
No need for the eval instead I can use getattr(class, str) so it now looks like..
for str in subclass():
getattr(class, str)
Much better...
Re: Any python wizards? Solved..!
August 27, 2009 by feathermonkey
Thanks bdquick
Doesn't matter too much as I did solve my initial problem but eval is not preferred as it can have security implications. Guess I'll have to find out what I need to parse out of the string so nothing it can get to is malicious.Wish there was some kinda of module that did no system calls. i.e something similar to htmlentities.
At the moment I'm not even sure what or how.
As for forgetting was why I finally posted this here
creating the dynamic vars was tricky wasn't till I found self.__dict__ I cracked this one.
Any python wizards? Solved..!
August 26, 2009 by feathermonkey
Oh well seems the way, in writing this out I actually solved it... So as it may help others or I never know when I'll forget this. ;)
OK got playing and I'm creating dynamic variables like..
for each in self.items.keys():
self.__dict__[each] = self.items[each]
Now this works fine in a function I can call function.foo where foo = (The evaluation of)self.__dict__[each] and it will return the value. Now having stepped through it with pdb I'm definitely missing something, as there is no var foo. But as I don't know what foo is (Well I do as I created a global.list) I tried to reiterate over my global.list and want to populate a dictionary, but I'm hitting a brick wall, I've tried eval I've tried doing similar to self.__dict__ nothing is helping.
in Psuedo-code
for i in global.list
x = funtion.(eval(i))
I just keep getting told load instance has no attribute eval with out brackets and with syntax error. So finally getting close.. I can return <__main__.load instance at hex>.foo using str(function)+str(foo) and narrows the problem down to
unsupported operand type(s) for +: 'instance' and 'str'
So how do I get around this eval isn't working for me using str hasn't helped as it returns the instance as a string but I want to create the string to evaluate it.
Solution:--
Create a string then eval the string like so
part ="self.function."
compiled = part+str(each)
print eval(compiled)
Though if anyone can see a way around using eval though I would appreciate it as I'm not sure it is the way to go.
Re: Google and all its new bits...
August 23, 2009 by feathermonkey
As for me different distro but its the Ubuntu build repackaged there is a svn build but not that interested its become my mainstream browser. Be relatively easy for me to get the latest just need to change a version number to one that matches here http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-browser/
At the moment on svn20090818r23670 so 5 days old.
Definitely slightly buggy but all in all impressed.
Wouldn't of thought it would be too difficult to wrap up into a rpm for a local install maybe even alien but not something I've ever played with.
The above link doesn't look like the native build at first glance though and looks old 4.0.203.0 is the version I have.
Re: Google and all its new bits...
August 20, 2009 by feathermonkey
Well not really that would be more the sync side of things, which whilst nice isn't a need. I would of thought that in one aspect it will benefit people with low b/w why well nothing is being uploaded or downloaded(As such just browser pages), its just a browser. Unlike a distro where if it is disrupted its borked, at least that seems to be my latest on m5.
Gwave is another thing looking good.
As for chromium I can't stop just going wow been on it for a couple of hours flash is working fine multimedia with the gecko-mediaplayer is gripey, I found a test page which mostly works but, apple trailers just cache loop and never play.
Even editing here is far less painless. No more added spaces no need for adding spaces to delete.
Google and all its new bits...
August 20, 2009 by feathermonkey
OK I admit I was one of those noo not a cloud type person. I'm not keen on the google tracking stuff, etc...
But...
I have to say now finally there is a chromium native 64bit (yeah..!) I'm impressed. To be honest I started of with a gmail acc as it was the only one I could use when I was playing with mail servers.
All in all I've been impressed with each bit I've stumbled across, I am beginning to see how cloud computing is going to take off.
Gmail heah what's to say an email acc is an email acc but I do like the rewrite or no rewrite method when forwarding through it.
Gdocs well again been pleasently surprised by the formats OK heard of slight problems with importing spreadsheets and haven't touched it but seems to have a multiple of formats and the collaboration side is pretty impressive. I also suspect it will be better when the doc is written using the interface over importing(When Vanish is fully implemented or the version control can be managed it'll become better still in my eyes.)
Chromium I just don't know what to say OK bit annoyed with the lack of adblocking/extensions but as I only really have adblock and firebug(Though play with Vanish), and the source view is pretty damn close to firebug can't say I'm missing much(Though I suspect some aspects of multimedia playback may be problematic).
I'm noticing more and more projects hosting on google code now.
All in all I actually think some people are going to have some major competition in the near future. I know the fors and against for cloud computing but it seems some quite reputable companies are embracing it. I certainly will be testing the distro when it comes out as all in all I'm more impressed than disappointed. I actually find it embarrassing the years spent on various browsers and TBH chromium whips there backsides. Will it become my main browser not sure at the moment but with adblock probably.
So all in all I'm impressed just wondered what others thought. I do actually think if they continue producing code that they seem to be doing, then there is a few linux distro's that are going to lose out and even on the commercial front. I suspect when html 5 begins to take off and I also reckon googles OS will be using a fair few bits of this. I suspect they will be using the offline aspects, then sync you see this already vaguely implemented in chromium with bookmarks. I'm imagining it will get to the point where it wont matter what PC you use you will be back exactly where you left from.
Re: I'm looking forward to Opensuse 11.2
August 19, 2009 by feathermonkey
I've got it in vmware if I'm honest I have more troubles with Suse in vmware, and tbh they really should be able to make this work the hardware is abstracted from the host. So in theory they just have a couple of modules to make it work with, that are consistent and no glitzy effects.
Though not being a KDE4 fan I can say it has improved a fair bit now but they lost me, since taking up LXDE I have to say I have less troubles even on the Suse install. Though iirc the referenced repo on the wiki is the worse one and outdated.
Now my latest is zypper not refreshing, I hope its just a blip, but I've lost a bit of love for Suse to me the last few just have not had the QA that I expected. I now actually find my bleeding edge arch install more stable than Suse. I recently lost my 11.1 due to an upgraded kernel OK I accept I was in the unknown, but I do not expect my /etc/mkinitcpio.conf to be overwritten, I never did find out how to remake my initial image with ext4dev fs.
I was introduced to Suse by 9.1 then I really started using it on 9.3 to me these are what Suse was it was stable it was good, I liked Suse for that. I found arch because I wanted bleeding edge and for that it is good, but in my eyes Suse is no longer stable, and I'm being less and less inclined to recommend it. I also have less and less of a use for it, I have other distro's that offer easier access to prop software, and I have a fairly stable bleeding edge distro, so I'm just not sure any more what Suse is offering. The last couple have felt like sled/sles test distros 9.1 to ~ 10.3 didn't. Ok a few glitches along the way, but it didn't feel like test distros.
Re: You say tomatoe and I say...
August 19, 2009 by feathermonkey
Pfft at least I don't sit on the fense lol
Re: You say tomatoe and I say...
August 18, 2009 by feathermonkey
English is one messed up language, I admire non-native speakers how they even begin to cope baffles me...
I actually have one I've done it for years and my Dads profession was English, he finally conceded the point though ain't wasn't allowed. I've always said almonds [all-monds] now I got corrected and yes I know it should be [ar-monds] now my argument was well I don't say [ar-ways]. So I say if they understand what you mean, correct and queens English and dialect English are 2 different things.
My little gripe is color the amount of times I have to correct that or centre, and who are you calling an ass, I'm not going to take offence or make a defence.
Edit I could keep going..
Re: Is it just me?
August 9, 2009 by feathermonkey
What I'm suggesting is we do it. You're correct there is a few sites but rather than using an external site(Which I don't think you can embed in, though double posting may have benefit) we use something like youtube and then we can embed. We also make them Suse specific, here I would have to use vmware
. There is many options for screencasting, vmware actually makes it easy as it will record.
I would just need some suggestions I wouldn't mind getting the ball rolling, I just can't do anything graphics related unless it is simple as I have no 3d/compositing.
Coding Games!
August 9, 2009 by feathermonkey
Being really bad with coding fu was interested in whether any one knew of some good coding games regardless of language.
For example here is one for java, not got a clue about a package but being java based it runs fine from a user account.
http://robocode.sourceforge.net/
So does any one else have any more.
Re: Is it just me?
August 9, 2009 by feathermonkey
I suspect we're still here Matt certainly I nearly always open up the forum. ;)
Maybe we could exploit the video aspect of the forum and get some tuts done in video format.
Re: Learning CSS
July 31, 2009 by feathermonkey
I found this a great launching place http://www.tizag.com/ once I got beyond those bits I found the manuals the next place. As for CSS I found it relatively quick to pick up, never have looked for any more documentation for it(Find a quick refresher at tizag does it http://www.tizag.com/cssT/reference.php ). http://www.php.net/docs.php
Re: Poll: How often do you backup?
July 22, 2009 by feathermonkey
Whats a backup? I have to admit the data on my PC is very transient, though did I have data that wasn't I would and have done brief bits in the past. Even have a redundant pc here that could be used. Like others even when I did it was just a simple manual rsync of /home.
Though having seen the idea of using svn on the /home I have been tempted to try as I thought it was quite a good idea, but mainly for the play aspect not so much the data loss.
Re: It happened to me !!!
July 16, 2009 by feathermonkey
Hehe I did something similar the other day must of spent half a day wondering why the working sound wasn't working then my brother goes you have to turn the speakers on.
Re: Protect Against Phorm
July 6, 2009 by feathermonkey
http://news.bbc.co.uk/1/hi/technology/8135850.stm sense prevails ... well for the moment
