kuwisdelu
Apr 15, 12:58 PM
> if (any(socscore<=3)) q<-0 else q=1
> q
[1] 0
Why am I only getting 1 answer?
Thanks in advance,
Ernie
One of the hardest things to remember when using R compared to other programming languages, is that almost everything you do is a vector operation. When you do q <- 0, R is going to apply the "<- 0" to the entire vector of q. And if you haven't created q before this, q will just be set equal to either 0 or 1. What you're asking R to do is if any value in socscore is less or equal to than 3, assign 0 to q, otherwise assign 1 to q. I'm assuming you want q to be a vector of 0's and 1's corresponding to whether socscore <= 3 or not?
There are a couple ways to do that. You can either use a loop:
q <- rep(NA, length(socscore))
for ( i in 1:length(socscore) {

%IMG_DESC_2%

%IMG_DESC_3%

%IMG_DESC_4%

%IMG_DESC_5%

%IMG_DESC_6%

%IMG_DESC_7%

%IMG_DESC_8%

%IMG_DESC_9%

%IMG_DESC_10%

%IMG_DESC_11%

%IMG_DESC_12%

%IMG_DESC_13%

%IMG_DESC_14%

%IMG_DESC_15%

%IMG_DESC_16%

%IMG_DESC_17%

%IMG_DESC_18%

%IMG_DESC_19%
> q
[1] 0
Why am I only getting 1 answer?
Thanks in advance,
Ernie
One of the hardest things to remember when using R compared to other programming languages, is that almost everything you do is a vector operation. When you do q <- 0, R is going to apply the "<- 0" to the entire vector of q. And if you haven't created q before this, q will just be set equal to either 0 or 1. What you're asking R to do is if any value in socscore is less or equal to than 3, assign 0 to q, otherwise assign 1 to q. I'm assuming you want q to be a vector of 0's and 1's corresponding to whether socscore <= 3 or not?
There are a couple ways to do that. You can either use a loop:
q <- rep(NA, length(socscore))
for ( i in 1:length(socscore) {
tablo13
Dec 24, 11:56 PM
Wirelessly posted (Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B118 Safari/6531.22.7)
Stride Mega Mystery gum, food, water, and my iPod touch 4th gen.
Stride Mega Mystery gum, food, water, and my iPod touch 4th gen.
Porco
Mar 31, 01:43 AM
I am looking forward to this a lot, it looks insanely great.
nanofrog
Apr 24, 09:32 PM
So I'm a freelance Editor/Motion Graphics guy with no real understanding of RAID Controller Cards, or how they work.
As of right now I have three 1TB drives inside my Mac Pro, RAIDed together (stripe 0) using the OS. No Raid card.
The drives are all 7200rpm from varying manufacturers. (not sure if this matters.)
My questions is; is it beneficial for me to get a RAID card to control these drives vs. leaving it to the OS to handle? Any suggestions for me?
Thanks.
2010 8-Core Mac Pro 2.4
14GB RAM
It all depends on the details of how you use the system (RAID is supposed to be configured to the specific usage, so there's no "one size fits all", though for narrowed usage patterns, you will see similarities).
I'd advise you to search out previous RAID threads (there's quite a few), and pay attention to the various questions asked, and get back to us with some answers). I'd also recommend you review Wiki's RAID page (http://en.wikipedia.org/wiki/RAID) (pay particular attention to the different levels).
If you're a paid professional, using a stripe set (RAID 0) is a disaster waiting to happen. Even with a backup, you'll spend a fair bit of time to perform a recovery when a disk dies (matter of when, not if), and this also means re-performing work that was done between the most recent backup and when the array failed (beyond replacing the bad disk and restoring all the backup files, which presumably <worst case>, will be multiples to return all the data you have from your backup media).
Glad to see you at least have some sort of backup with your current configuration. :)
Now if you go with a RAID card, you'll need to use enterprise grade drives for stability reasons (different recovery timings in the firmware than consumer models, which tend to be unstable as a result). Unfortunately, they're not as cheap (in fact, can be 2x as expensive as their consumer counterparts for the latest capacity).
Consumer disks are fine for backup purposes though, and this can save you a considerable amount of funds, particularly if your capacity requirements are high (i.e. eSATA card + Port Multiplier based external enclosure; example kit (http://www.newegg.com/Product/Product.aspx?Item=N82E16816111136&cm_re=tr4mp-_-16-111-136-_-Product)).
There are some inexpensive products that claim RAID 5, but be careful. Some are software based, which should never be used for this level (no solution to the "write hole issue" associated with parity based arrays). Others use very inexpensive hardware RAID controllers (aka RoC = RAID on a Chip). They're slow for primary usage, and is why they're cheap (compromise on performance vs. proper RAID cards).
If on a budget you could go with RAID-Z, it involves switching to the ZFS file system. RAID-Z1 apparently offers similar performance to RAID5. Read this thread (http://forums.macrumors.com/showthread.php?t=1135718) for further insight.
This can get complicated on the software end though, and not recommended for those that aren't comfortable with the additional complexity (patches for OS X or via VM), particularly for a DAS system (has more merit with NAS or SAN IMO).
So I'd stick with a 3rd party hardware RAID card, assuming this is actually needed, enterprise disks and any enclosures/mounting hardware necessary. Much simpler in terms of software (install the drivers, and any interface software that's required to access the card settings), and the hardware aspect isn't that difficult either.
I would get an SSD for the OS and use the 3x 7200rpm Disks in RAID5.
RAID5 is great for storing uncompressed video data and in your case would offer protection against a single drive failure.
Most cards don't deal with consumer grade disks very well (ATTO and Area definitely don't).
But consumer disks are fine for backup purposed (i.e via eSATA and PM enclosures) due to the lower duty cycle (where you can cut costs effectively, and not endanger the data).
or Just RAID5 with 3x HDD's and partition the RAID volume.
I wouldn't do this if both partitions are to be used simultaneously (i.e. primary data one one partition, scratch data on the other).
The most recommend cards right now are the Areca 6g 1880 series or the new ATTO 6G series. For your needs something like the ARC-1880-i SAS 6G RAID Controller would suffice if you don't plan to connect external RAID/Storage solution.
Those are the best recommendations as far as brand and series per. As to a specific model, it will depend on the specifics, particularly for growth (i.e 8 ports may be outgrown in under 3 years, so getting a card with sufficient ports to last that long would be cheaper in the long run - just add disks and enclosures as necessary).
Sorry should have been more clear (like I said I'm dumb) I have a 500GB Boot drive that lives independently from the (3) 1TB drives RAIDED together via the OS.
A separate boot disk is advisable, as you still have a working OS if the array goes down (allows you to access the card, use the browser to search for help, or deal with Support from the card manufacturer if needed).
And ALL data (3.5TB's) is backed up by an external 4TB Time Machine RAID (2 drives @ 2TB each)...which is connected via 2 eSATA cables via the eSATA PCI Card I bought from OWC...which I guess is actually RAIDed by the OS as well.
That backup solution is a RAID 0. The overall backup solution will almost certainly need to change in order to be sufficient for the primary storage pool you'll end up with.
Not sure what you are looking at, since 3 drives is sort of an odd combination. I have a 2009/2010 Mac Pro Nehalem, running the apple sas card for the 4 internal bays (yes I know they make adapters to use 3rd party cards), and the performance is fair, not great but fair. About 300Mb/s read/write with 4 WD Black edition drives (1tb each). Externally, running an Areca 1680x card, with a 8 drive ProAvio chassis, 8 SAS Seagate 15k7 drives (450GB) which gives close to 900MB/s. I have tried multiple cards over the years, nano and I have exchanged lots of posts/messages. Email/PM me with specific questions and I will try and help you. Beware of most of these 3rd party slot adapters/etc. they are more hassle than they are worth.
I've not heard or seen any issues with the MaxUpgrades kit.
As per Apple's card, I'm no fan of it, particularly due to the cost/performance ratio.
BTW, the OP only has 2 posts at the time of writting this, so returning a PM isn't possible yet (needs to have 5 posts IIRC). email would work if you have that enabled.
As of right now I have three 1TB drives inside my Mac Pro, RAIDed together (stripe 0) using the OS. No Raid card.
The drives are all 7200rpm from varying manufacturers. (not sure if this matters.)
My questions is; is it beneficial for me to get a RAID card to control these drives vs. leaving it to the OS to handle? Any suggestions for me?
Thanks.
2010 8-Core Mac Pro 2.4
14GB RAM
It all depends on the details of how you use the system (RAID is supposed to be configured to the specific usage, so there's no "one size fits all", though for narrowed usage patterns, you will see similarities).
I'd advise you to search out previous RAID threads (there's quite a few), and pay attention to the various questions asked, and get back to us with some answers). I'd also recommend you review Wiki's RAID page (http://en.wikipedia.org/wiki/RAID) (pay particular attention to the different levels).
If you're a paid professional, using a stripe set (RAID 0) is a disaster waiting to happen. Even with a backup, you'll spend a fair bit of time to perform a recovery when a disk dies (matter of when, not if), and this also means re-performing work that was done between the most recent backup and when the array failed (beyond replacing the bad disk and restoring all the backup files, which presumably <worst case>, will be multiples to return all the data you have from your backup media).
Glad to see you at least have some sort of backup with your current configuration. :)
Now if you go with a RAID card, you'll need to use enterprise grade drives for stability reasons (different recovery timings in the firmware than consumer models, which tend to be unstable as a result). Unfortunately, they're not as cheap (in fact, can be 2x as expensive as their consumer counterparts for the latest capacity).
Consumer disks are fine for backup purposes though, and this can save you a considerable amount of funds, particularly if your capacity requirements are high (i.e. eSATA card + Port Multiplier based external enclosure; example kit (http://www.newegg.com/Product/Product.aspx?Item=N82E16816111136&cm_re=tr4mp-_-16-111-136-_-Product)).
There are some inexpensive products that claim RAID 5, but be careful. Some are software based, which should never be used for this level (no solution to the "write hole issue" associated with parity based arrays). Others use very inexpensive hardware RAID controllers (aka RoC = RAID on a Chip). They're slow for primary usage, and is why they're cheap (compromise on performance vs. proper RAID cards).
If on a budget you could go with RAID-Z, it involves switching to the ZFS file system. RAID-Z1 apparently offers similar performance to RAID5. Read this thread (http://forums.macrumors.com/showthread.php?t=1135718) for further insight.
This can get complicated on the software end though, and not recommended for those that aren't comfortable with the additional complexity (patches for OS X or via VM), particularly for a DAS system (has more merit with NAS or SAN IMO).
So I'd stick with a 3rd party hardware RAID card, assuming this is actually needed, enterprise disks and any enclosures/mounting hardware necessary. Much simpler in terms of software (install the drivers, and any interface software that's required to access the card settings), and the hardware aspect isn't that difficult either.
I would get an SSD for the OS and use the 3x 7200rpm Disks in RAID5.
RAID5 is great for storing uncompressed video data and in your case would offer protection against a single drive failure.
Most cards don't deal with consumer grade disks very well (ATTO and Area definitely don't).
But consumer disks are fine for backup purposed (i.e via eSATA and PM enclosures) due to the lower duty cycle (where you can cut costs effectively, and not endanger the data).
or Just RAID5 with 3x HDD's and partition the RAID volume.
I wouldn't do this if both partitions are to be used simultaneously (i.e. primary data one one partition, scratch data on the other).
The most recommend cards right now are the Areca 6g 1880 series or the new ATTO 6G series. For your needs something like the ARC-1880-i SAS 6G RAID Controller would suffice if you don't plan to connect external RAID/Storage solution.
Those are the best recommendations as far as brand and series per. As to a specific model, it will depend on the specifics, particularly for growth (i.e 8 ports may be outgrown in under 3 years, so getting a card with sufficient ports to last that long would be cheaper in the long run - just add disks and enclosures as necessary).
Sorry should have been more clear (like I said I'm dumb) I have a 500GB Boot drive that lives independently from the (3) 1TB drives RAIDED together via the OS.
A separate boot disk is advisable, as you still have a working OS if the array goes down (allows you to access the card, use the browser to search for help, or deal with Support from the card manufacturer if needed).
And ALL data (3.5TB's) is backed up by an external 4TB Time Machine RAID (2 drives @ 2TB each)...which is connected via 2 eSATA cables via the eSATA PCI Card I bought from OWC...which I guess is actually RAIDed by the OS as well.
That backup solution is a RAID 0. The overall backup solution will almost certainly need to change in order to be sufficient for the primary storage pool you'll end up with.
Not sure what you are looking at, since 3 drives is sort of an odd combination. I have a 2009/2010 Mac Pro Nehalem, running the apple sas card for the 4 internal bays (yes I know they make adapters to use 3rd party cards), and the performance is fair, not great but fair. About 300Mb/s read/write with 4 WD Black edition drives (1tb each). Externally, running an Areca 1680x card, with a 8 drive ProAvio chassis, 8 SAS Seagate 15k7 drives (450GB) which gives close to 900MB/s. I have tried multiple cards over the years, nano and I have exchanged lots of posts/messages. Email/PM me with specific questions and I will try and help you. Beware of most of these 3rd party slot adapters/etc. they are more hassle than they are worth.
I've not heard or seen any issues with the MaxUpgrades kit.
As per Apple's card, I'm no fan of it, particularly due to the cost/performance ratio.
BTW, the OP only has 2 posts at the time of writting this, so returning a PM isn't possible yet (needs to have 5 posts IIRC). email would work if you have that enabled.
myjay610
Mar 10, 06:43 AM
Gotcha. So I think the best way to handle this would be to use Apache to handle all requests for both servers, and set up a ReverseProxy to handle traffic that should go to the Ruby server.
Check this site out: http://httpd.apache.org/docs/2.0/vhosts/examples.html
And this site for ReverseProxy: http://www.ehow.com/how_6108865_configure-apache-reverse-proxy.html
So, your config file in Apache should similar to this (be sure to enable the proxy module):
Listen 172.20.30.40:80
# This is the "main" server running on 172.20.30.40
ServerName server.domain.com
DocumentRoot /www/mainserver
# This is the other address - the one handling requests for Ruby
NameVirtualHost 172.20.30.50:80
<VirtualHost 172.20.30.50:80>
# Other directives here ...
ProxyRequests off
ProxyPass / http://localhost:8080
ProxyPassReverse / http://localhost:8080
</VirtualHost>
Then obviously you need to ensure your DNS server is set so the domain names are pointing to ther right IP addresses.
You could also filter out on the ServerName in apache to determine which server handles your traffic...or do both to be consistent.
Check this site out: http://httpd.apache.org/docs/2.0/vhosts/examples.html
And this site for ReverseProxy: http://www.ehow.com/how_6108865_configure-apache-reverse-proxy.html
So, your config file in Apache should similar to this (be sure to enable the proxy module):
Listen 172.20.30.40:80
# This is the "main" server running on 172.20.30.40
ServerName server.domain.com
DocumentRoot /www/mainserver
# This is the other address - the one handling requests for Ruby
NameVirtualHost 172.20.30.50:80
<VirtualHost 172.20.30.50:80>
# Other directives here ...
ProxyRequests off
ProxyPass / http://localhost:8080
ProxyPassReverse / http://localhost:8080
</VirtualHost>
Then obviously you need to ensure your DNS server is set so the domain names are pointing to ther right IP addresses.
You could also filter out on the ServerName in apache to determine which server handles your traffic...or do both to be consistent.
roland.g
Aug 8, 11:43 AM
Very nice, and tastefully done. Forget about the naked aspect, the pose, the look on her face, the angle of her head. I feel more compelled to look at the head up more than anything else. And I don't find anything pornograhpic about it. It isn't revealing, less so than a tight low cut top. Good job. Gets my vote. The only thing that is missing is a spot of color. The bed frame doesn't count. Though I don't know what or where to put it. And possibly black and white would be better as the bed frame is out of sorts color wise.
By the way, we may have to change your username to iTease. JK ;)
By the way, we may have to change your username to iTease. JK ;)
max��
May 17, 03:30 AM
I always wanted a netwon
GGJstudios
Mar 12, 06:40 PM
No thanks. This has been discussed before; you can post a link to your Youtube video and people can choose to load it that way.
I agree! No thanks!
How do you embed youtube videos in posts here (http://forums.macrumors.com/showthread.php?t=861736&highlight=youtube)
Embedded YouTube on the forum? (http://forums.macrumors.com/showthread.php?t=670438&highlight=youtube)
[VIDEO] Tags? (http://forums.macrumors.com/showthread.php?t=1061846&highlight=video)
Can I post a video in this forum?? please help. (http://forums.macrumors.com/showthread.php?t=729976&highlight=video)
Embedding video in a post... (http://forums.macrumors.com/showthread.php?t=529396&highlight=video)
How about a video Gallery? (http://forums.macrumors.com/showthread.php?t=220134&highlight=video)
Video Gallery? (http://forums.macrumors.com/showthread.php?t=207968&highlight=video)
I agree! No thanks!
How do you embed youtube videos in posts here (http://forums.macrumors.com/showthread.php?t=861736&highlight=youtube)
Embedded YouTube on the forum? (http://forums.macrumors.com/showthread.php?t=670438&highlight=youtube)
[VIDEO] Tags? (http://forums.macrumors.com/showthread.php?t=1061846&highlight=video)
Can I post a video in this forum?? please help. (http://forums.macrumors.com/showthread.php?t=729976&highlight=video)
Embedding video in a post... (http://forums.macrumors.com/showthread.php?t=529396&highlight=video)
How about a video Gallery? (http://forums.macrumors.com/showthread.php?t=220134&highlight=video)
Video Gallery? (http://forums.macrumors.com/showthread.php?t=207968&highlight=video)
rushad0
May 6, 06:20 AM
instructions in my last post worked perfectly. if anyone needs help, now i can assist!!
robbieduncan
Apr 24, 08:41 AM
yep,it's nil,I haven't call it before.
That would seem to be a problem...
Dejo,I don't see any problem releasing newView(?)
This is also a problem.
That would seem to be a problem...
Dejo,I don't see any problem releasing newView(?)
This is also a problem.
elpmas
Jun 15, 10:53 PM
Dr. Macenstein is full of crap. MacRumor.com's bot has been pwned.
hhahaha :]. Support+1
hhahaha :]. Support+1
Daedalus256
Dec 6, 03:40 PM
Are you sure your computer isn't saying "Could not load MySpace, Reason: It's for 13 year old losers."? ;)
I'm sorry, I can't stand that site.
I'm sorry, I can't stand that site.
SKOTTIEG23
Mar 19, 11:57 AM
The word "New" is all over this ebay listing. I see that in the top area it shows refurb, but this listing seems to be a little misleading. One of your headings even says "Brand New." This combined with using an actual iPhone box that didnt come with this item seems shady to me. I may be the only one, but honestly i guarentee that who ever wins this item thinks they are getting an actual brand new phone, not a refurbished product.
AdeFowler
Oct 20, 06:00 AM
Stunning... no other word for it. But is it the right typeface?
BigBeast
Apr 23, 07:56 PM
Just check Apple's site here: https://selfsolve.apple.com/agreementWarrantyDynamic.do
This will tell you the status of your AC. If it's not correct, call Apple and tell the your sitch.
This will tell you the status of your AC. If it's not correct, call Apple and tell the your sitch.
CaptainCaveMann
Nov 28, 06:02 PM
I used the V400 for a while. We didnt get a long to well. It was fine, the battery life was fine for me. Nothing un reasonable. 3-4 days is what I got. I seemed rather slow n sluggish at times. It also scratches very easier. Then my backlight died on it. ( Just one day went out.) I went into Cingular and they gave me a new one on the spot.
I was done with the phone though, and bought a V600 at the same time. (sold the new V400 on ebay) It much more durable IMO opinion.
I've since bought a V3.
All in all its a good phone. Nothing special IMO. but solid.So you would recomend the v600 over the v400 as far as battery life and quality?
I was done with the phone though, and bought a V600 at the same time. (sold the new V400 on ebay) It much more durable IMO opinion.
I've since bought a V3.
All in all its a good phone. Nothing special IMO. but solid.So you would recomend the v600 over the v400 as far as battery life and quality?
macmikey2
Apr 13, 05:34 AM
I just did this yesterday. Tired of Lion messing up. I get the beta thing, just don't want to deal.
I have a 1TB drive so I just re-partitioned the drive while running and then installed SL into new, clean partition. Did the complete restore/install from the original disks that came with MBP.
Next, I did the Software Update thing then ran migration assistant making sure to NOT move Machine and Applications.
Restarted and then drag copied over the apps I wanted, settings that were missed and did new installs of everything else.
All told about a day (10-12 hours) and I am now SL and Lion on one drive in my MBP.
Worth it to do a clean install and not carry anything back. Move them later.
Mikey
I have a 1TB drive so I just re-partitioned the drive while running and then installed SL into new, clean partition. Did the complete restore/install from the original disks that came with MBP.
Next, I did the Software Update thing then ran migration assistant making sure to NOT move Machine and Applications.
Restarted and then drag copied over the apps I wanted, settings that were missed and did new installs of everything else.
All told about a day (10-12 hours) and I am now SL and Lion on one drive in my MBP.
Worth it to do a clean install and not carry anything back. Move them later.
Mikey
yojitani
Jul 10, 10:46 AM
I'd almost agree with you on this, but plastic MacBooks are incredibly flimsy machines.
My first apple laptop was a first gen macbook (plastic). It was pretty sturdy I thought. It scratched easily, but that's it. It survived a fair share of bumps and lumps. I got rid of it because I needed more screen...
My first apple laptop was a first gen macbook (plastic). It was pretty sturdy I thought. It scratched easily, but that's it. It survived a fair share of bumps and lumps. I got rid of it because I needed more screen...
Dagless
Mar 20, 11:43 AM
Its a great version of lemmings in fairness and works very well. And at �3.50 you cant really complain about faults etc.
Nice way of telling me it's worth avoiding :D
Nice way of telling me it's worth avoiding :D
alansmallen
Oct 19, 08:18 AM
I'll be there! Wanna meet up. How many people do you think are gonna show up?
ShiftClick
Apr 11, 09:20 PM
One thing to be leery of is, yes keep your original ram and if you bring it in for Applecare, make sure to put the original ram back in laptop.
What often happens is the person servicing your laptop will restore it to original specs. So if you machine is a 4GB machine, they might take out your 8GB trash it and put in their 4GB so it matches the computer build. I've read many stories on these forums of people losing their expensive harddrive or ram and got back stock items.
What often happens is the person servicing your laptop will restore it to original specs. So if you machine is a 4GB machine, they might take out your 8GB trash it and put in their 4GB so it matches the computer build. I've read many stories on these forums of people losing their expensive harddrive or ram and got back stock items.
buryyourbrideau
Dec 14, 10:12 PM
Talib Kwali thirded. I don't even know what that means, but it gave spell check a hard time.
It's very cool. :cool:
Haha very clever
BLACKSTAR!!!
It's very cool. :cool:
Haha very clever
BLACKSTAR!!!
Legion93
Apr 23, 09:43 PM
He used a Mac.
Image (http://boskolives.files.wordpress.com/2009/11/powerbook_5300_screen.jpg?w=400&h=263)
Looks like Mac OS X Cheetah or Puma :d
Image (http://boskolives.files.wordpress.com/2009/11/powerbook_5300_screen.jpg?w=400&h=263)
Looks like Mac OS X Cheetah or Puma :d
e�Studios
Dec 5, 04:48 PM
There is no way to change the graphics chip on ANY iMac. They are all soldered to the logic board.
More RAM + faster harddrive is about all you can do.
I specifically remember them saying they replaced the graphics card on my DV SE G3 500 iMac when i had it repaired under warranty years ago, now if that means it can be upgraded i doubt it, but from the way it sounded was like it was a seperate card and not part of the logic board.
Ed
More RAM + faster harddrive is about all you can do.
I specifically remember them saying they replaced the graphics card on my DV SE G3 500 iMac when i had it repaired under warranty years ago, now if that means it can be upgraded i doubt it, but from the way it sounded was like it was a seperate card and not part of the logic board.
Ed
No comments:
Post a Comment