ballen|away: yeah, i get the idea (what a pun!) ;) sroute: yup, that would explain it BeBoo_: your screenshot looks cool what screen shots? teknicaL: http://www.beboobailey.info/getegg.png oh guess I'll be needed an upgrade soon. haha Would help if I can type. Should get some sleep hehe 6am and still haven't slept. Bad habit of a sleep schedule. lol heh, speaking of suck such. i just realised ive been installing a spoitable eggdrop through my commands for quite a while jeev, up_the_irons: re: kern.hz -- part of the problem is with context switchinh, which Parallels and VMware (desktop) are notoriously bad at. KVM has some optimizations which make this not so bad. I'm going through withdrawl I had fun setting up the new VM, and now that it's done it just sits there working and I just have to stare at it :) up_the_irons: thanks @ the screenshot baklava: i know how that fels feels* makes you wantto buy another one just to set it up again, right? or rm-Rf * :x not that bad :) heh i just hope if i get another one, i'll know what i did to this one lol :P I made sure to document when I set this one up I don't setup systems regularly so I usually have to go back and look a bunch of stuff up that I've forgotten thats what i end up doing... scp'ing configs and reinstalling stuff i think i need but we set this one up with mls which was confusing as hell so i'm probably gona try to document what we did hehe i can use the .bash_history file to give me a good idea of what i did on this one anyone php it up here? yea mind helping my sexy ass what's up? im sending $1 through $4 through a php with POST to another php the other php which im posting to is taking $1 through $4 it works OK but the problem is that i want to accept more than one check get what im saying somewhat, can I see it? array, jeev ? you can serialize an array and send it to the second php script http://www.pastebin.ca/1590821 so the second script just decrypts the array i read the array's for checkbox making them the same name and adding a [] but i couldn't read it alll i could do is dump it i still dont understand how i could make it add the selected product names and descriptions and price together you want to add the total or what was selected? add the total + name and description this looks like a job for OOPHP i would do a multi-dem array using [] yea tried that last night you should have an array of check s check objects $products['name'][] $products['desc'][] $products['price'][] something like that that have all this stuff, so you don't have to fool around with it the name and description are actually set inside the php that's posted TO ah ok the set up is if $1 is enabled, set this.. http://www.pastebin.ca/1590821 would still be the same im a pretty big noob, just starting to learn the basics of coding. i can help you with it, it's not too hard i did something similar when i created my dns panel ok do you want me to set up the array again did $dns['A'][] etc ok, i did: through option 4 is that right then it gets posted to the php that i showed you to be posted to the script you pastebined? no how come no i put that in the previous file which posts to what i pastebined you just need to call that something. you handle that in the resulting script this is right i set it in the right script can you maybe send me the entire two scripts so i can understand what you are trying to do? i'm still a little lost at what this does well give me a second first let me explain this k right now it's spitting out the array whatever i check. cause i tried it last night the php i pastebinned is what is spitting it out, the entire thing it's some nasty code, i really can't sift through it lol Array ( [0] => 1 [1] => 2 ) if i check box 2 and 3 that's what shows up, whcih is right i named them 0,1,2,3,4 k what do i now? how can i accept this $_POST['option'][] ? is that the array? yes see the name is wrong... on the input type i feel you can't have a postvar with that name it would be $_POST[ err that's what im telling you, is i was stuck here $_POST['option[]'][0] oops.. replace the } with ] oh, why then is the [] necessary it isn't -_- thats why i said the name is wrong i read that that's how you start an array in PHP, yes but not in html that is just a name of that field that has nothing to do with starting an array so the []'s are useless? yes sec in those tags so just name option. that's it ? yes and a value done then, in the resulting script, use $_POST['option'][0] or $_POST['option'][1] ok might need to put those in single quotes tho $_POST['option']['1] gah but where should i put it i am still waking up, sorry what should i surround it with should i like $0 = $_POST['option']['0'] ? where ever you are testing the first checkbox which i'm guessing is $porduct1 ? ok $product_1 = $_POST['option']['1'] oooo wait a sec You just trying to allow them to submit one from a list? yea i am totally confused :< If they can only choose one, use radio buttons if you only want one, you need to use a radio button not a checkbox no not submit one from a list and you would do a case statement on $_POST['option'] sorry i read that wrong i have 5 checkboxes any 5 combination could be selected actually, i have one select all which sends all. the other combination of 4 could be selected i want it to add it together. ok it's a service with options. forget what i said earlier. -_- those checkboxes need different names like prod1, prod2, prod3 sono array ? Then use your etc eh hmm that's what i read last night THen you have an array named product, that you can iterate over yea but it would be within $_POST[] i get that it sends over the array yea BeBoo_ Yes but i dont know what to do after that i mean i can get it with _POST if ($_POST['product'][1]) { box 1 was checked) etc but do i have to have that for each product and possible product to match it up? if product 1 and 3 are selected.. Just run it through a while or foreach loop hmm foreach ($_POST['product'] as $index) { $price = $items[$index]['price'] } or some such lol Sorry ;) sec, jeev, working on it i sort of understand the foreach but i'm just lost lost where? how do you set the prices of ecah product then the descriptions and add them together Set up an array of hashes and store that info in it Then you can just reference those values by the boxes the user checked Iterate over their choices picking out the checked products and sum em up hm why do i even need an array, the previous way iw as doing it it was just sending which ever name was enabled, the value i mean it was just fine You don't i just needed a way to add up the fields But if the number of products increases, your code to process it will have to keep increasing yea it really wont it's not a shopping cart for items, just a service with options a couple options By iterating over an array, the code never changes regardless of whether you offer 5 or 1000 options jeev: then then do $sum = 0; then in the if statements just to $sum .= $price; i understand err not .= lol += yeah that sorry bah i need some tea or coffee or something i need a miracle http://www.pastebin.ca/1590821 can i set product_1's product_name to product_name1 and ... for the rest then try to add them up $product_name1 + $product_name2 + .. http://www.pastebin.ca/1590873 oh depends on how you want to output it and the same with text, right that code will just add the prices except, how would i put ,'s to separate $products .= ", ".$product_name in each if cept the first one drop the comma lol But then how does he know which is the first value they actually checked I would do something like $product_desc[] = 'THe Description'; in each if nice, it adds it And then just do a $prod_descriptions = implode(',', $product_desc); i wish i could code man http://pastebin.ca/1590877 right true scratch taht post thats a good trick, Thorgrimr rfmfhrmrhrmfm i have no motivation to do anything today =\ who does blah blahj -j no well Thorgrimr helped me im almost done, just have to work out some minor things with his code and i'll be done ;) BeBoo_, ther e? yup Thorgrimr helped me out but he's not here i have a question $price += $values['price']; that's set up under _POST['all'] i want to reduce it by 10% if all is checked which lets just say is 55 right now how can i subtract it at the end $price = ($price * .9); $price += $values['price'] - 55; subtracts that 55 from every thing need to seperate it out heh you are telling it to add $values['price']-55 to $price so just $price += $values['price']; $price -= 55; ahh or use the * .9 which will give you 90% gotta think backwards sometimes it's weird wait, borked coming up with a weird price yea .9 works too the $price -= 55; doesn't work does 55 from everything $pricetotal += $values['price']; $price = $pricetotal - 55; worked well the thing he did for me was good, i kind of learned from it i just need to now have the output of the page read the code cause it doesn't output the way i need it to if ($count > 0 || $count == 'all') what does that mean / if there is more than 0 selected? $count > 0 means more than 0 are selected || mean or soo _if_ there are more than 0 items selected or $count == 'all' ok figured he has it printing under that to the screen, what's selected and how much but i need it to go to the bottom part of the page maybe i'll try to figure it out myself bottom part? oh he's probably using var_dump ? theres another one... i can't remember the name na yea, got it yay nice HELL YES! just one problem since there are so many products and descriptions when multiple are selected it changes the format but it's ok i think problemski i need to make one option required. echo "
" . implode(', ', $descriptions) . "\n";
if i set $descriptions manually
wee, got it
up_the_irons: in the colo biz, whats more expensive power or rack space. In other words, would a high end power hungry server that takes 1U be better, or 4 1U servers that take hardly any power
power i think
depends where you are
you gotta remember, you're probably paying extra for UPS
some people want 20 bux an amp
but if you get a good deal, you may get the rackspace for like 10 bux per U and 10 bux an AMP
yea
ideally multiple boxes would be better
as they're cheaper to buy, cheaper to replace, and offer more redudancy
such as one of these bad boys: http://apcmag.com/dell-uses-via-nano-netbook-chip-to-create-modular-mini-servers.htm
damn
how mush
checking...
the power stats on that box are amazing
25watts fully loaded
jeebus
thats 12 units
perfect for scalling horizontally
give each node a 32G SSD
as much memory as it support
and you officially have one hell of a distributed hash db
how mush monies
not a fan of SSD
still looking
BeBoo_ they're lower power yes?
of course at the cost of speed
tbh, i'd rather a few 15,000 RPM drives myself
whaaa. they are wicked fast
BeBoo_
can i
$products2[] = $items[$key]['name'];
ballen: might want ot research that a bit
$products[] = $products2[] + fart;
or something ?
ssd speed is equiv to like a 4200 rpm drive
jeev: what is "fart" ?
a product
since
#
$items = array( '1' => array( 'price' => 100, 'name' => 'Product 1', 'desc' => 'Product 1'),
#
'2' => array( 'price' => 0, 'name' => 'Product 2', 'desc' => 'Product 2'),
period combines if that is what you are looking for
you just want to add to the product array?
says cannot use [] for reading
yea
i have a required product
no you can't
which i want to add
i want it tobe added in everything but ALL
which i can do
jeev: try $products = array_merge($products, $products2);
hm
is products2 an array?
$products[] = array_merge($productrequired, $products2[]);
can i do that
yea
you can't use [] to read
-_-
it knows that $products2 is an array if you are using that dunction
function
it returns an array
ah
what should i dooo
;/
http://www.php.net/array_merge
what i said before...
$products = array_merge($productrequired, $products2);
?
don't use {}
[]*
it combines
ahh
jeev: that dell server isn't generally available
ah
BeBoo_
what if $productrequired isn't an array
$productrequired = fart;
$products[] = array_merge($productrequired, $products2);
appears to be only for dell's customers that have some special relation
no error is produced
but it doesn't add the text fart
$products2 = an aray
$products2[]
i have to turn productsrequired into an array i guess
yes
you can't slap just a string into an array
well, you can
if you wanted to
but it won't match up and will likely break your script
BeBoo_: http://it.anandtech.com/IT/showdoc.aspx?i=3532&p=13
"ntel X25-E is nothing short of amazing: it offers at least 3 to 13 times better OLTP performance at less than a tenth of the power consumption of the classical SAS drives. "
thats news to be because i just did a bit of research on that about a week ago
damn
SSD drives have always been faster
i got an ssd in my laptop
especially the Intel's
really the ideal setup would be two SSDs and a set of slower SATA drives in ZFS
ZFS is smart enough to do writes to the SSDs and move it around later
basically big cache drives
i haven't played with zfs yet
its an amazing piece of software
and if by chance you have an application that does a lot of sequential reads/writes SSD owns all
BeBoo_, no go with arraymerge
also since there is not moving parts, reliability goes up a bit
BeBoo_, the thing im tryign to add is in the array as '1'
its just disabled in the post script
cant i just
yea man i should be able to emulate it's checked
ohh
you want to add 1 to which array?
hold up
i'm still kinda lost on how this script is working
hard to help without seeing it
lol
sec, i think i got it
or i got the idea
hello ppl
hi
lalala
la la
good tune
it goes well with mine
hiii
slow here tonight
hi
up_the_irons you around
lalala
Its posible pay a VPS with Paypal?
i dont know about that, do you have a paypal debit card?
i dont have a credit card, only paypal account
paypal should give you a debit card, no ?
I;m sure you have a credit card or bank account to have a pay pal account. In which cause, if you have a bank account, they give you a debit card. =b
The answer to that, for the record, is I do not accept payments directly from Paypal accounts, it must be a major credit card (Visa/MC/AMEX/Discover)
is anyone around
probably
... depending on your definition of "anyone"
oh i just checked out the faq
hey coil
it pretty much answered my question
it was about rdns
what was the question, i'm interested
ah
that's a common one
to survive the rest of the night, I must .. cd $starbucks
$git tag rough_draft_v1
fecking thesis
i have a ? about rdns when your back up_the_irons
up_the_irons i was wondering if i could run my own rdns server if that is allowed
what's some good blogging software
i want to create some sexy political shit
so i could light the ass up of the morons in this country
scanty-redis
huh
if you want some seriously lightweight
software
i want to use my domain
ahmadinejad.org
http://github.com/adamwiggins/scanty-redis
as a blog
thats nice
i love that guy
he's funny and a truth speaker in my opinion
i will be the left wing poster
theres also a couchdb version
and i'll get a few right wing posters on the site too
that version uses redis
and there is also one that uses ActiveRecord
its running: http://sysadminschronicles.com/
but pretty heavily modified
hmm
dbgi: http://support.arpnetworks.com/faqs/main/reverse-dns
dbgi: you can run your own DNS server, sure
up_the_irons, first draft of thesis is done
ballen: :D
v.2 will be done, with new and improved grammar and spelling
by tomorrow
i could read your v1, but i'd make you cry if your spelling and gramar wasn't already fixed
yep
channel poll --
haven't even read through it
a second time
I was thinking... Look at this: http://support.arpnetworks.com/faqs/main/reverse-dns
then imagine the same question, answer with this layout: http://arpnetworks.com/about
(obviously imagine the "about" stuff is gone)
what is easier to read / understand?
yep
I kinda feel the KB on the support site has "a lot going on"...
agreed very busy
like it belongs on Sun or Dell's site ;)
re-jigger it
plus it would look like it was yours and not hosted somewhere else
I use that support app b/c it was geared toward support, and has stuff like search, ticketing, etc... all built in. but i'm wondering if I should just make my own, simpler, KB on my own site w/ Sinatra, and just make it searchable
up_the_irons could u delegate rdns to my ip 206.125.172.78?
if that makes any sence
ballen: yeah i hear ya on that... there's some way to change the CSS on that though
sense
dbgi: your whole /28 ?
ballen: i you know of any Sinatra plugin that makes pages "searchable" (for lack of a better word)
up_the_irons: maybe try to fix the CSS, is that a hosted solution or a app you're running?
uhh
searching...
is just a pain in the balls
in general
up_the_irons yea if thats ok
ballen: it's hosted, but there's a way to upload your own CSS, or something
dbgi: sure, what rdns software are you running?
ballen: I will make note of it, "pain in the balls"
with Sinatra
up_the_irons gonna be bind9
dbgi: ok, i'll work on it, gimme a few mins
there is Ferret, http://www.davebalmain.com/
coool thanks
with is a ruby search index
which*
which just halls ass in perf
yeah i've used ferret
i've used sphinx more
which one is better
sphinx
thinking sphinx is quite a nice lib: http://freelancing-god.github.com/ts/en/
but i'm purposely avoiding any ActiveRecord within my site (the Sinatra portion, at least)
this is very integrated: http://www.rootbsd.net/faq/
i want my faq to be like that...
not a bunch of different "articles" you have to search for or find in a directory
there ya go, one big ass page
plus if i host my own faq, i can see statistics on it, i can even host mini howto's
let the user search
with their browser
wicked simple app
nah
*senses
seriously
by far the most simple solution
why do anything more difficult
i mean, personally, i hate f*cking click around everywhere to find what i need; i'd rather have it all in one page and hit "/