Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Eeems

Pages: 1 ... 26 27 [28] 29 30 ... 370
406
TI Calculators / Re: Can't install Old operating system Ti-nspire CX (Help)
« on: November 23, 2015, 12:46:48 pm »
FYI - we don't delete threads unless they are spam.

Mind letting us know what your solution is though? Other people might run into the same problem as you did.

407
Using ReflectionClass can be fun :)
I use it for argument pass-off in my sql class.
Code: [Select]
<?php
/**
* SQL class. Used for handling SQL connections
*
* @module sql
* @class SQL
* @constructor
*/
class SQL {
/**
* This is the mysqli connection beneath everything

* @property sql
* @type {mysqli}
* @private
* @required
*/
private $sql;
public function __construct($server,$user,$pass,$db){
$this->sql = new mysqli($server,$user,$pass,$db) or die('Unable to connect to mysql');
}
public function __invoke(){
return $this->sql;
}
public function __get($name){
switch($name){
case 'error':
return $this->sql->error;
break;
}
}
/**
* Returns a Query object based on inputs
*
* @method query
* @param {String} sql The sql expression to run
* @param {String=null} [types] A string containing all the types of arguments being passed
* @param {Mixed} [bindings]* The bindings to use in the sql statement
* @return {Query} Returns the query object
*/
public function query(){
$reflect = new ReflectionClass('Query');
$args array_merge(array($this),func_get_args());
return $reflect->newInstanceArgs($args);
}
public function escape($s){
return $this->sql->escape_string($s);
}
public function charset($charset){
return $this->sql->set_charset($charset);
}
}
/**
* Query class. Returned by SQL::query()
*
* @class Query
* @constructor
*/
class Query {
private $query;
private $sql;
public function __construct($sql,$source,$types=null){
$args func_get_args();
$args array_splice($args,2);
$this->sql $sql();
$this->query $sql()->prepare($source);
if(!is_null($types)){
call_user_func_array(array($this->query'bind_param'),make_referenced($args)) or die($sql()->error);
}
}
public function __invoke(){
return $this->query;
}
public function execute(){
if($this->query){
$r $this->query->execute();
$this->sql->commit();
return $r;
}else{
return false;
}
}
public function __get($name){
switch($name){
/**
* Returns the mysqli::results object for the
* query

* @property results
* @type {mysqli::results}
* @public
*/
case 'results':
if($this->query){
$this->execute();
$result $this->query->get_result();
$this->query->close();
return $result;
}else{
return false;
}
break;
/**
* Returns an associative array of the query resulsts

* @property assoc_results
* @type {Array}
* @public
*/
/**
* Returns an associative array of the query resulsts

* @property resulsts_assoc
* @type {Array}
* @public
*/
case 'assoc_results':case 'results_assoc':
if($this->query){
$a = array();
$r $this->results;
while($row $r->fetch_assoc()){
array_push($a,$row);
}
return $a;
}else{
return false;
}
break;
/**
* Returns a numbered array of the query results

* @property num_results
* @type {Array}
* @public
*/
/**
* Returns a numbered array of the query results

* @property resulsts_num
* @type {Array}
* @public
*/
case 'num_results':case 'results_num':
if($this->query){
$a = array();
$r $this->results;
while($row $r->fetch_num()){
array_push($a,$row);
}
return $a;
}else{
return false;
}
break;
case 'assoc_result':case 'result_assoc':
if($this->query){
$r $this->results;
return $r?$r->fetch_assoc():false;
}else{
return false;
}
break;
case 'num_result':case 'result_num':
if($this->query){
$r $this->results;
return $r?$r->fetch_num():false;
}else{
return false;
}
break;
case 'insert_id':
return $this->sql->insert_id;
break;
}
}
}
function make_referenced(&$arr){
$refs = array();
foreach($arr as $key => $value){
$refs[$key] = &$arr[$key];
}
return $refs;
}
?>


408
OmnomIRC Development / Re: OmnomIRC changelog and suggestions
« on: November 01, 2015, 01:25:54 pm »

409
Computer Programming / Re: Weird Select Tag Behavior
« on: October 31, 2015, 04:49:05 pm »
I'm a little confused as to what you mean by the selected option gets echoed back out in front of the object. Could you post a screenshot pointing out exactly is wrong with it?

410
TI Z80 / Re: Spencer Putt's Zelda Binary found
« on: October 27, 2015, 12:06:27 pm »
The project is up and running: http://i.imgur.com/j38uMrj.gif
Is there anywhere we can see active news on the development?

411
Computer Programming / Re: Google translate in java.
« on: October 19, 2015, 03:29:38 pm »
I'd like to point you to ourl.ca/rules on this matter. We do not endorse breaking googles TOS.

412
TI Z80 / Re: [Axe] Lazer II
« on: October 18, 2015, 07:22:14 pm »
You could always attach it to your post for now.

413
TI-Nspire / Re: SDL ports for Nspire
« on: October 13, 2015, 04:26:48 pm »
Quote
I fail to see how this is relevant to this thread. If this is how dead a ghost town is then I'd have to say that ghost towns are pretty lively.
That's because you are new to this thread, my friend.
I could too not let you know about this too (like this thread was days ago) and then you will all suddently wonder what the hell happened to me and my ports.
I've actually been reading this thread from the beginning. I see you've updated the text of your post to clarify more to make it pertain to this topic.

Quote
That said, we don't have that many nspire users around anymore. You will find more of them on TI-Planet, but if you don't speak french it can be a little difficult to use that site.
I'm on tiplanet too and when i used to frequenly post my ti nspire ports here and everywhere else, critor often newsed them.
But when i stopped for a while however... critor covered TI-83 CE programs instead.
That pretty much means that i'm alone making ti nspire games/ports... Really sad
It is a little sad that most of our nspire developers have moved on. I hope you find porting/developing for it fun for a little while longer at least. I've been meaning to get an nspire at some point and mess around with it. I've picked up a CE though since it's less of a stretch from the 83+/84+ platform that I'm use to.


I've been quite interested in the projects people have been working on for the nspire.
Just because nobody commented on another one of your updates doesn't mean that this site is inactive. As I'm writing this I see 3 members and 3 guests reading it as well.

414
TI-Nspire / Re: SDL ports for Nspire
« on: October 13, 2015, 04:06:19 pm »
Warning:
This will probably be my last post here on Omnimaga.
I got no feedback on Hugo and Omnimaga is as dead as a ghost town.
Sadly, more and more people are getting Ti nspires with OS 4.0...
Due to this, i will continue updating my thread at cw.

I enjoyed this little adventure with you guys but
now i think is the time to move on.

I fail to see how this is relevant to this thread. If this is how dead a ghost town is then I'd have to say that ghost towns are pretty lively.

That said, we don't have that many nspire users around anymore. You will find more of them on TI-Planet, but if you don't speak french it can be a little difficult to use that site.

415
It would require calc84maniac or whoever else has the source getting a CE and taking the time to port it. I'd love to take a stab at it, but I've got another project I'm porting atm.

416
Other / Re: Icarus, a knex ball machine
« on: October 06, 2015, 01:57:51 pm »
That's looking awesome! (Sorry for the late reply). How did you manage to build it up that high? Did you build it on the ground and then lift it up into place? Or did you build it up manually?

417
TI-BASIC / Re: insreting pdf and alike to ti nspire cx cas
« on: October 06, 2015, 01:44:21 pm »
Here is some information on a pdf solution for the nspire: http://www.omnimaga.org/news/1st-pdf-reader-for-ti-nspire-cxcm/
The nspire doesn't support documents other then those created by the nspire's software by default.

The linked solution probably wont work for you since it's for ndless which I don't believe supports the latest version of the nspire's OS.

418
TI Z80 / Re: TI-84 Plus CE (Non-SE) Gameboy Emulator?
« on: October 05, 2015, 03:36:45 pm »
The current difficulty with the CE platform is that TI hasn't given us the signing key for apps. Because of this developing large applications like TI-Boy is difficult to implement properly. Straight up porting TI-Boy will be difficult because it will also have to be modified to run as a program and pull the rest of the data from somewhere, instead of just running from one large application. You'd also want to make it take advantage of the extra features that the eZ80 gives you.
It would be nice to have, but nobody has taken the time to tackle porting it yet.

419
The Axe Parser Project / Re: Axe Library, Axiom, and Tool Collection
« on: September 04, 2015, 12:25:44 pm »
I think my L1 stacklib function has a place here, as it can be useful for declaring local variables :)
Mind giving some information on it's usage or a link to another place where you do?

420
Computer Projects and Ideas / Re: [HTML5/javascript] Platformer game
« on: September 04, 2015, 12:20:49 pm »
You could probably modify the SMF source to make it protocol agnostic.

Pages: 1 ... 26 27 [28] 29 30 ... 370