Questions tagged [fat]

1

votes
1

answer
309

Views

how to redirect index.php in fat-free framework

I re-wrote my old app in fat-free framework. Everybody who used this app have bookmark http://www.domain/app/index.php This url now does not work in F3. Can I redirect index.php to http://www.domain/app/ ? Thanks.
Durip
1

votes
1

answer
158

Views

Flushing response headers and body in Fat Free Framework

In Fat Free Framework, is it possible to return HTTP headers and body (generated via template) to the browser before the end of a controller method? Looking for something akin to PHP's builtin flush() function. I want to return the response to the browser such that it doesn't expect any more data, a...
Alan Szlosek
1

votes
0

answer
57

Views

White page when trying to render content

I'm attempting to render a template with dynamic content using this code: function render($content, $template = 'main') { $base = Base::instance(); $base->set('content', 'ex1/views/$content.htm'); return \Template::instance()->render('../templates/$template.htm'); } Route: / = thisfolder\ex1\control...
GrumpyCrouton
1

votes
1

answer
3k

Views

Does the FAT filesystem have a signature?

Given the following BPB: FAT32 BPB http://img121.imageshack.us/img121/1131/fat32bpb.png The 'MSWIN4.1' string is just the 'OEM ID' field, and by Microsoft documentation it should not be used to identify FAT volumes. The 'FAT32 ' string is the BS_FilSysType field, and by Microsoft documentation it...
DxCK
1

votes
1

answer
271

Views

Under iOS, is there a quick way to see what symbols I have for specific UUID's?

Under iOS, unique identifiers, known as UUID's, are assigned at compile time. Over time, a developer may accumulate many builds with different identifiers. Sometimes it may be useful to quickly identify what UUID's have preserved symbol files associated with them. Is there a quick way to identify wh...
xyzzycoder
1

votes
1

answer
636

Views

Fat Free Framework getting started error

I've create a first .php file with fat free framework but it is not working Contents of file: I'm getting a 404 error
Noor
1

votes
1

answer
688

Views

Fat Free Framework URL Error

I'm getting a problem. I'm using Ubuntu and all my files are located in /var/www. It contains the following folder: fatfree:contains the fat free framwork F3Apps: contains index.php, .htaccess(contents shown below) The content of the index.php is When I'm setting the URL as http://127.0.0.1/F3Apps/,...
Noor
1

votes
2

answer
307

Views

FILESTREAM in SQL Server 2008 cannot be used on FAT systems?

According to this article: http://technet.microsoft.com/en-us/library/bb933993.aspx the FILESTREAM type is used for NTFS systems. Does that mean it can't be used on FAT systems?
CJ7
1

votes
1

answer
148

Views

Moving my site from my own computer to my online server I get an undefined class error? [Fat Free Framework]

Internal Server Error Undefined class DB #0 /home/static2/public_html/casualtee/Casualtee12/lib/base.php:1684 F3::error(500,'Undefined class DB') I set permissions to 777 to make sure that wasn't an issue. The base.php, db.php and index.php files are included where they should be on the server... It...
Jason D
1

votes
1

answer
1.3k

Views

F3 caching issue

Recently, I got error Warning: require_once(account_header.php): failed to open stream: No such file or directory in /home/contestium/dev/temp/dev.contestium.com.tpl.0oyr4na on line 1 Fatal error: require_once(): Failed opening required 'account_header.php' (include_path='.:/usr/share/pear:/usr/sha...
Eduard
1

votes
1

answer
189

Views

F3 Framework Replace String in an array

I'm using the F3 Framwork and need a possibility to replace a value in an array. $car=new Axon('cars'); $list=$car->afind(); So I define my array named 'list' which has a field 'producer_id'. But how can I change the value for the field in this array? Idea: This array gives me a list of all cars in...
Paul Mueller
1

votes
3

answer
39

Views

Does FAT disallow undirected cycles?

For educational purposes, I'm rolling my own FAT reader (allows you to browse a drive, etc). My current issue is determining the current working directory (such as for the prompt in a typical command prompt). As far as I can tell, the directory table gives no info on the path you would have taken to...
akroy
1

votes
1

answer
124

Views

How to build an Android NDK app on FAT

I'm using the FAT32 file system in Linux (as I need to also access it on Windows and OSX), but when I compile with ndk-build I get the error install: setting permissions for `./libs/armeabi/libfoo.so': Operation not permitted I gather it's trying to set more restrictive permissions for the newly-cre...
Warpspace
1

votes
1

answer
163

Views

Should I call the Fat Free object using $ notation or using the Scope Resolution Operator :: [duplicate]

Possible Duplicate: What’s the difference between :: (double colon) and -> (arrow) in PHP? I have seen in examples across the web people using the Fat Free Framework both ways, ie: echo $f3->get('varname'); vs. echo F3::get('varname'); Obviously, both work. Which is better and why?
ethanpil
1

votes
1

answer
1.5k

Views

Editing FatFS generic example for dsPIC

I'm attempting to use FatFS (http://elm-chan.org/fsw/ff/00index_e.html) as a means to communicate with an SD card, using SPI. The FatFS website has a number of examples, however I'm not finding them easy to understand or follow. Two examples apply to me in the downloadable zip, one for 'generic' mi...
ritchie888
1

votes
1

answer
491

Views

PHP F3 find escaping limit and offset conditions

I was introduced to the PHP Fat Free Framework yesterday and I am now exploring its possibilities for my REST api. I am now trying to do a select query with limit and offset parameters. Following its documentation, I came up with the following: $query = array('userid=?', F3::get('userid')); $extra =...
Bjorn
1

votes
1

answer
930

Views

FatFree how to route restfull calls?

I am trying to set up a restful api application based on fatfree Directory tree: ├── config.ini ├── index.php ├── lib ├── operator │   ├── logs │   ├── models │   └── resources │   └── Employee.php └── ui c...
ZAky
1

votes
1

answer
486

Views

Understanding FAT16

I'm developing a flash based USB mass storage device with FAT16 file system. It's working properly, however I have difficulties understanding what's happening on the FAT segments. When I begin, I have a single file, 56 bytes long on the root directory, it's 32bits long and the data is stored on the...
stdcall
1

votes
1

answer
126

Views

Cannot print bigint with Fat Free Framework

Hello I try to retrieve a value with fat free framework from mysql . Value is stored as bigint in db but when I retrieve it prints 2147483647 . Any suggestions?
delmoras
1

votes
1

answer
388

Views

fatfree framework: set variables on ONERROR

How i can set variables in error function? $f3->set('ONERROR',function($f3){ echo \Template::instance()->render('layout.htm'); }); This is my code, and i need to add a similar thing $f3->set('ONERROR',function($f3){ $f3->set('page_title','Error on page'); $f3->set('page_description','No description'...
sineverba
1

votes
1

answer
582

Views

Fat Free Framework: how create dynamic menu with submenu

I have this table id children voce alias pubblicato 11 NULL Chi Siamo chi-siamo 1 12 11 Chi Siamo - Sub chi-siamo-sub 1 So the id 12 is children (submenu) of 11. With this block i can print the first level of a menu {{ trim(@voce.voce) }} (result is result of query SQL). Of cour...
sineverba
1

votes
2

answer
611

Views

Getting next cluster number in FAT12

I am using BrokenThorn's tutorial for OS develpoment. My confusion is in this piece of code, which is responsible for reading the next cluster number of the file: mov ax, WORD [cluster] ; identify current cluster from FAT ; is the cluster odd or even? Just divide it by 2 and test! mov cx, a...
Cygnus
1

votes
3

answer
570

Views

Routing in fat free framework

I have started learning fat free framework, after installing it, when I wrote require __DIR__.'/lib/base.php'; F3::set('DEBUG',3); F3::set('UI','ui/'); F3::route('GET /',function () {echo 'hello';}); F3::run(); in index.php it displayed hello on screen, but when I add this to above F3::route('GET /...
Pratibha Sharma
1

votes
1

answer
315

Views

OS development: Implementing FAT12 Write Function

So im pretty new at OS development, right now im writing my FAT12 filesystem code. I got all the writing to floppy disk using the FDC code working but I cant seem to wrap my head around how I should proceed when writing a file to disk. I know where my root directory is and all its related info, but...
Andres Bejarano
1

votes
1

answer
372

Views

In Fat Free Framework, how can I differentiate Cached Value vs. Array in config.ini?

I have seen the example posted by the author of FatFree Framework on setting cache values in routes and framework variables: [globals] foo=bar,86400 // variable cached for 24 hours [routes] GET /foo=Bar->baz,3600 // route cached for 1 hour But in the Fat Free Framework documentation, we have this ex...
ethanpil
1

votes
1

answer
1.7k

Views

Using MCU's internal flash memory as FatFs drive

I'm trying to make internal flash on STM32F051xx to be seen as a drive. This is the code on the top level: char USER_Path[4]; /* USER logical drive path */ FATFS USER_FatFs; /* File system object for User logical drive */ FIL USER_File; /* File object */ uint32_t bytesWritten; uint8_t text[]...
andrey g
1

votes
1

answer
1.2k

Views

Creating a fat jar for Dropwizard application

I am trying to create a fat jar for a multi module java project following the dropwizard documentation that makes use of the maven shade plugin. https://dropwizard.github.io/dropwizard/getting-started.html#building-fat-jars In order to do this I created another aggregator project which is just anot...
user_mda
1

votes
1

answer
147

Views

How are floppy disk sectors numbered

I was wondering how are floppy disk sectors ordered, I am currently writing a program to access the root directory of a floppy disk (fat12 formated High Density), I can load it with debug at sector 13h but in assembly it is at head 1 track 0 sector 2 why is sector 13h, not at head 0 track 1 sector 1...
1

votes
1

answer
678

Views

Fat Free Framework routing not working

I developed a website using Fat-Free Framework. Everything worked fine locally (on MaMP). I was able to acces the right routes ... But now that I've moved it to a server, in a subfolder (something like: domaine/site) the routing stopped working. I've checked for mode_rewrite and it is enabled. Here...
Moucheg
1

votes
2

answer
645

Views

Fat-Free Framework, Wix, and X-Frame-Options

I have built a widget using the Fat-Free Framework for a client that should make their life easier, but they also requested that their website is created using Wix. I thought it would be easy to embed this F3 site within the Wix site using their embedding plugins (there are built-in and plug-in ver...
David Rhoderick
1

votes
2

answer
863

Views

How to create server side validation in fat free framework?

how to check validate format for email and password and confirm password? how to return errors for required field. here is my fat free function- $f3->route('GET|POST /addstep', function($f3) use ($db){ $idss = $f3->get('SESSION.id'); //print_r($_SESSION);die; $data = json_decode($f3['BODY']); $titl...
Lokendra Panwar
1

votes
1

answer
163

Views

Is it possible to use php's fat-free routing implementation ontop of subdomains?

Let's say we have the url: example.com and we have a sub-domain such as; link1.example.com > example.com/link1 Adding the route 'GET /link1' won't work, it tries forwarding to example.com//link1 (yes, it tries double forward slashes) and it says too many redirects. Anyone found a way around this? E...
Cory Nelson
1

votes
3

answer
268

Views

F3: Is there a way to convert an array into an object with additional fields?

I am using Fat Free PHP to return a query using a join. Because of this the results have extra fields from another table. I want to be able to convert the array to objects (ie arrayToObjects) but I want the additional fields to persist. I would also like this to return an instance of my class, not a...
jrquick
1

votes
1

answer
372

Views

Writing to php://output fails when moved to F3 class?

I have the following lines of code: $objPHPExcel = new PHPExcel(); ..ADDITIONAL CODE.. // Redirect output to a client.s web browser (Excel5) header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: attachment;filename='powers-id_report.xls''); header('Cache-Control: max-age=0')...
jrquick
1

votes
1

answer
104

Views

f3/Fatfree framework - Error on route second param

$f3->route('GET /index.php/@ctrl', function($f3){ session_start(); if (!isset($_SESSION['user'])) { echo $f3->get('REDIR_LINK')['LOGIN']; } switch ($f3->get('PARAMS.ctrl')) { case 'admin': $f3->set('info', array( 'title' => 'Administrator Page' ) ); echo View::instance()->render('admin.php'); break;...
1

votes
1

answer
309

Views

Calculation of exFAT checksum

I'm currently trying to format a disk to exFAT using a micro controller. My issue is that I need to calculate a checksum that uses the bytes from sector 1 to 11 of the VBR (Volume Boot Region) to store it into sector 12 but my result is incorrect. When the checksum isn't correct, the disk cannot be...
Arthur Penguin
1

votes
1

answer
685

Views

Format specifiers for data type BYTE, WORD and DWORD in c-language?

In C-language, what are the most appropriate format specifiers for data type BYTE, WORD and DWORD to be used with printf and scanf functions? I am having a hard time displaying BPB field's values over console. For example, if I am trying to display BPB_BytsPerSec using '%lu', I am getting unusual fi...
Amit Kumar
1

votes
3

answer
310

Views

Netbeans 8.2 PHP autocomplete for objects stored in variables inherited from parent class does not work

Good day! I have question about code auto completion in Netbeans PHP 8.2 X64, running on Windows 10. I have a class which is to be extended: class Controller { protected $obj; public function __construct() { /* @var obj DataValidator */ $this->obj = DataValidator::instance(); } } If I extend the cla...
phil
1

votes
3

answer
479

Views

How do I check the result of a Fat Free Mapper call to save a DB record?

I'm using the SQL Mapper to update records in my MYSQL DB which is working ok - but I can't see how to check what the outcome of the update was from the call to save() or update(). Update seems to return the entire mapper object which doesn't offer an obvious way of checking if the update failed. Sh...
Mattd
1

votes
1

answer
154

Views

fatfreeframework using order by and the $option argument

I have looked high and low for an example of doing this and can't figure it out. The API reference page shows this array( 'order' => string $orderClause, 'group' => string $groupClause, 'limit' => integer $limit, 'offset' => integer $offset ) but how on earth do I implement this in code. I have trie...
Joseph Crawley

View additional questions