Show Posts
|
|
Pages: 1 2 [3] 4 5 ... 115
|
|
31
|
General Discussion / Computer Usage and Setup Help / Re: Hosting server
|
on: 31 January, 2013, 14:34:57
|
I've have been using Ubuntu Server 10.04 LTS for several years now, and I have never had to put the server down because it crashed or something similar. I'd have had an uptime of more than a year and a half if I wouldn't have had to shut it down because of a hardware issue. My server has a static IP, and I use it daily for mail, sharing media, hosting a website and providing several other services. Ubuntu 10.04 has proved to me to be perfect for a server, and I will continue to use it. And I recommend it too. As for server hardware, I recommend you to also use a RAID setup. This doesn't necessarily need to be hardware RAID, but that's always better if you can get it 
|
|
|
|
|
33
|
Omnimaga / News / Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files
|
on: 28 January, 2013, 02:19:45
|
For those of you who are on OS X and are having trouble building Luna, I found out why it won't build. In the Luna's readme, it states you need gcc >=4.5, but apple's gcc is gcc 4.2. Using MacPorts (or Homebrew, Fink), install gcc 4.7 (run "sudo port install gcc47"). Then open up Luna's Makefile with a text editor and change any instances of "gcc" to "/opt/local/bin/gcc-mp-4.7". Cd to the Luna directory in Terminal, and do make "dist luna", and it builds! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| CC:=/opt/local/bin/gcc-mp-4.7 CFLAGS:=-W -Wall -m32 LDFLAGS:= -lssl -lz -m32 VPATH := minizip-1.1
OS ?= `uname -s` ifeq ($(OS),Windows_NT) EXEEXT = .exe else CFLAGS := $(CFLAGS) -DUSE_FILE32API LDFLAGS:= $(LDFLAGS) -lcrypto endif
all: luna$(EXEEXT)
luna$(EXEEXT): luna.o zip.o ioapi.o /opt/local/bin/gcc-mp-4.7 -o $@ $^ $(LDFLAGS)
dist: clean all mkdir -p dist/src rm -f *.o find . -maxdepth 1 ! -name 'luna$(EXEEXT)' -a ! -name dist -a ! -name . -exec cp -r {} dist/src \; cp luna$(EXEEXT) *.dll *.txt dist
clean: rm -rf *.o luna$(EXEEXT) dist
|
Also, link for those who don't want to build themselves: https://dl.dropbox.com/u/4657389/luna-v3.0a-osx-intel.zipThanks for sharing, I'm sure this will help several members
|
|
|
|
|
38
|
Calculator Community / Lua Language / Re: Question on TI-Lua programming
|
on: 31 December, 2012, 14:10:27
|
Yes, indeed. When just loading the script, the height and width of it are still 0, because the window is still loading. On your computer the window is already loaded. The best is to use on.resize to set your width and height, as it will get called as soon as the window has a proper size. Also, don't use image.copy in on.paint. The window doesn't resize every time you redraw it ^^ Rather do something like this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| str = "4\002\000\000t\001\000\000\000\000\000\000h\004\000\000\016\000\001\000\254\251\\159\239\159\239\159\ ... "
function on.construction() monImage = image.new(str) end
function on.resize(width, height) h = heighy w = width px = w/2 py = h/2 wim = w/2 him = h/2 monImage = image.copy(monImage, wim, him) end
function on.arrowKey(key) if key == "up" then wim = 1.1*wim him = 1.1*him elseif key == "down" then wim = 0.9*wim him = 0.9*him end
platform.window:invalidate() end
function on.paint(gc) gc:drawImage(monImage, px - wim/2, py - him/2) end
|
|
|
|
|
|
40
|
Calculator Community / Lua Language / Re: [Lua] math.atan2() problem
|
on: 29 December, 2012, 14:22:04
|
|
Could you test if the parameters you give to atan2 are the same? Maybe some other issue causes certain variables to be different. (such as putting calculation code in your paint function). Also, can you test just a single atan2 statement, no other code? That way we can see if that function really is the issue.
|
|
|
|
|
44
|
Calculator Community / TI-Nspire Projects / Re: Breakout board for the TI nSpire
|
on: 14 December, 2012, 21:38:51
|
Hello,
I'm currently developing a cheap breakout board for the TI nSpire series. I am developping this because I don't like to solder directly to my nSpire. This breakout board will be converting the dock connector to a connector with 0.1 inch pitch (normal header size). All 26 pins will be connected to a main connector, with two seperate pin headers for easy connecting of the UART, 3.3V and ground.
I'm letting you know this because if I get the breakout board prototypes, I get 10 pieces. Is anyone intersted in buying such a breakout connector? The price will be around €7 or €8 + shipping. I'm not at home ATM, so I will be posting some pics of the digital PCB render tomorrow.
DebboR
Hi DebboR, I'm interested in getting one  Something like this is very handy when debugging. Looking forward to the renders!
|
|
|
|
|
45
|
Calculator Community / TI-Nspire Projects / Re: [Lua] CHIP-8 emulator
|
on: 12 December, 2012, 22:11:14
|
If it was on the computer, then how did an emulator of a '80s device manage to be slower on a GHz processor speed machine?  Well, it was made in Javascript. But still, it could have been faster. Or I'm just emulating too fast...
|
|
|
|
|
|