exxon
-
Posts
22 -
Joined
-
Last visited
Posts posted by exxon
-
-
-
I've actually been looking for some kind of low power http server. I know someone already did it for the old zipit but I havent had time to install the necessary things to compile it for this zipit.
-
are you still using the code posted on the previous page? your for loops are wrong.
for(int b = 0; b == 99; b++)
That doesnt do anything. You initialize b to 0 and check if b is equal to 99. since its not equal your loop never starts. and one of those loops controls the switch statement which controls the output. what you want is
for( int i = 0; i < 100; i++ )
of course this is assuming that you're still using the code you posted before.
-
ssh works great for this device... easier to use than my phone since the keyboard is decent... and my phone is only a touchscreen.
True. but you have to admit sometimes sshing late at night is not the best idea just because of how loud the zipit's keyboard is. I still rather enjoy that sound.
-
ok something weird is happening now.
A couple of weeks ago I was able to install ssh with no problem on rootNexus. Now I try and it doesnt find the packages. I dont know if its just me but could somebody try running
apt-get install ssh
and see if they get the not found message.
EDIT: NEVERMIND! if anyone has this problem just apt-get update and it should be good
-
I still believe you might need that file.open("filename") part.
-
dont you have to open the file? Try doing it like this:
ifstream input; input.open("input.txt", ifstream::in); or just input.open("input.txt");
and that should work
-
if the input file is "44459103123" where each digit is its own separate number then the initial code i posted should be all you need for this.
-
the input file looks like, for example:
4445
where 4445 is one number or 4 separate numbers?
by the way with the code I posted you should be able to get it to work. All you have to do is change the char part.
-
The thing about atoi is that its a C function so you would have to include a C library. Cant remember which.
anyways just did this really fast so sorry if its messy and not that optimal
#include <iostream> #include <cstring> using namespace std; int main(){ char array[] = "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"; int n[15]; int x = 0; int j = 0; for( int i = 0; i<=strlen(array); i++ ) { if( array[i] == ' ' || array[i] == '\0') { n[j] = x; j++; x=0; } else { x *= 10; x += (int)array[i]-48; } } for( int i = 0; i < 15; i++ ) { cout << n[i] << endl; } return 0; }
-
You could use atoi which converts strings into an int. If you would like to write your own function for that then something like this would work:
char array[50]; int n[50]; ... for( int i = 0; i < 50; i++ ) n[i] = (int)array[i] - 48;
That would just convert to single digits. But you get the idea.
EDIT:
instead of that whole switch statement and stuff you can do what I posted. Although depends on how your input file is setup. Assuming in your input it says something like:
1 2 3 4 5 6 7 8
you would have to include something like:
if( array[i] != ' ' ) ...
-
Just saw this and I had to post it here to see what we could do.
http://www.linuxfordevices.com/c/a/News/Qi...e-Ben-NanoNote/
Kinda replaces the zipit in every way.
-
I'm wondering how serious he is. I mean the hacking with the zipit sounds pretty interesting to me..
-
Wait so you never got the weird penguin open zipit logo? or is it just when you put the card in?
Even if it is bricked you can still fix that but you would have to open it and solder some cables and stuff.
Here's a video with the whole process of doing that.
-
I want stickers!
-
this one is supported with DD-WRT from the links i posted before
http://www.newegg.com/Product/Product.aspx...N82E16833320026
-
These are the ones that I was actually thinking about. are they good?
http://www.newegg.com/Product/Product.aspx...N82E16833320026
http://www.newegg.com/Product/Product.aspx...N82E16833124284
http://www.newegg.com/Product/Product.aspx...N82E16833314039
http://www.newegg.com/Product/Product.aspx...N82E16833156242
I also liked the open mesh one but didnt know if I should go for that one. and by the way, can the open mesh be turned into the pineapple? I read somewhere that they are both very similar.
-
First of all Hi. I'm new here.
I was just wondering if anyone could give me some input on buying a wireless router, preferably from newegg. I dont really know much about the difference in quality from the different brands and everything so hopefully someone could help me out.
Also it would be best if it was cheapish. somewhere <$50.
Thanks.
-
For rootnexus' image this is what I did on a 4GB card and it worked fine.
- First format your card to fat32
- extract autoflasher to the root of the card
- extract wireless+x+audio.tar.gz and copy /boot/linux-2.6.29 to the root of the card
- rename linux-2.6.29 to kernel.bin
- insert the card in the zipit, turn on and wait.
- once it shuts down take the microsd out and back to the computer
- there are two files which you might want to keep just for the future:
gspsi.bin and gpspsi_helper.bin
- now you need to format and partition the sd.
you're going to want to have somewhere around 300MB for swap and the rest in ext3
you can do all that from gparted in ubuntu
- once thats done you just need to copy the image to the card. I followed this exactly
from rootnexus' site and it worked ok
Mounting Image:
Mounting using the offset method
offset should be 1536 on the original image for scratch
# mount -o loop,ro,offset=1536 image.img /path/to/mount/to
EDIT:
make sure you mount your device (mount /dev/sd# /media/sd#)
Copying files:
You want to make sure you preserve the file permissions and links: '
**cp -RvPp' will do just that.
# cp -RvPp /path/to/mounted/image/. /path/to/mounted/sd/card/partition/1.ext3
/path/to/mount/to is just somewhere to copy all the contents of the image into.
then once you have that somewhere you copy all of it with the second command to your device (/media/sd#)
That should be it.
enjoy
-
I use a 4GB card and i've tried both aliosa27's and rootnexus' images and they all work fine. but in all cases i wrote the images to the card through linux so not so sure how it would work in windows.
-
New here. I've had a zipit for some time now and this seems interesting.
I'll download it and test it out tomorrow.
Web Hosting
in Questions
Posted
Hello
I've been away for a while and come back to you looking for help. The company I work for decided that they wanted a website which I'm building (in flash). The problem is when looking for hosting for this site. I have never actually had to get hosting other than random free stuff like blogger. My question is which hosting companies are good? I know domain.com has a pretty nice hosting service for a decent price, I believe its the deluxe package. But I also saw that dreamhost has good options as well. As well as countless others.
If anyone could help out with input or personal experience I would really appreciate it.
Thanks