Welcome Guest, Not a member yet? Register   Sign In
  Recommender System in CI
Posted by: El Forum - 04-01-2008, 09:24 AM - Replies (5)

[eluser]pickledegg2[/eluser]
I wondered if there were any good open source recommender systems, and if anyone had attempted porting any to CI? I'm currently working on a project that will make use of one, and apart from the fact its short-circuiting my brain severely, I don't want to reinvent the wheel. In fact I'd rather re-invent a wheel, as its just a round thing that revolves, and a recommender system is a lot more complex...


  Language helper
Posted by: El Forum - 04-01-2008, 09:22 AM - Replies (3)

[eluser]Référencement Google[/eluser]
If this could make life easier of some of you, here is a language helper:

Code:
function lang($line_key = '', $args = '', $lang = '')
{
    $ci =& get_instance();

    if( ! is_array($args))
    {
        $args = array($args);
    }

    $line_key = $ci->lang->line($line_key, $lang);
    return vsprintf($line_key, $args);
}

You may put it in a helper file in your application/helpers directory.

Then you in a language file you will have something like:
Code:
$lang['test'] = "I am %s and I am %d years old";

The main advantage is that it let you pass arguments as second parameter that can be use in your language strings (like you would make with vsprintf function), here is how:

USAGE:
Code:
$this->lang->load('langagefile');
echo lang('test', array('Christophe', '35'));


  STRANGE database error
Posted by: El Forum - 04-01-2008, 09:15 AM - Replies (3)

[eluser]Justin Patel[/eluser]
Hello Friend,


I got this error

Code:
An Error Was Encountered

Error Number: 1226

User 'abcd' has exceeded the 'max_questions' resource (current value: 50000)

Select * from video where vStatus = '1' and dvds = '0' order by vTime desc



Plz tell me how can i solve it


  what is the name of the mysql administration software.
Posted by: El Forum - 04-01-2008, 08:48 AM - Replies (5)

[eluser]learnq[/eluser]
Hi,
In blog(20 min) video i saw a Mysql administration software whice is used
to create the tables. so far I have used phpmyadmin for mysql administration.
I want to know that software name Smile

Thanks.


  Trouble with image resize library.
Posted by: El Forum - 04-01-2008, 08:20 AM - Replies (2)

[eluser]JasonS[/eluser]

Code:
$config['image_library'] = 'GD';
$config['source_image'] = $upload_dir.'portfolio/'.$this->upload->file_name;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;
$this->load->library('image_lib', $config);
            
$this->image_lib->resize();

I am trying to create a resized image which will be called imagename_thumb.ext

When I run the above code. Nothing happens, there is no error and certainly no image is created.

Am I missing something here?


  How do you edit your URI segments?
Posted by: El Forum - 04-01-2008, 07:55 AM - No Replies

[eluser]KeyStroke[/eluser]
I have an application that utilizes URI's the usual way like this:

Code:
http://example.com/index.php/controller/function/var1/var2/var3

I'm controlling those variables through my view file, as they're basically links to categories in different places (e.g: /usa/texas/computing).

The problem is that now var1 and var2's values should be different for some links.

How do I change them in a simple, re-usable way?



Your help is much appreciated.


  Call function from another function
Posted by: El Forum - 04-01-2008, 07:33 AM - Replies (4)

[eluser]luukskywalker[/eluser]
I have a small question.

I have 2 functions in 1 controller
Say Function A and Function B

Is it possible to call function B at the end of Function A?
If so, how is this done?

I know i can call a view but i don't want a view at the end of function A


  validation problem in server system
Posted by: El Forum - 04-01-2008, 07:18 AM - Replies (2)

[eluser]MASS MASS[/eluser]
I am getting validation problem in server system........ in localhost its working fine .....
Example : login page

in controller i wrote
function login()

{

$rules['email'] = "trim|required|xss_clean";
$rules['password'] = "trim|required|xss_clean";
$this->validation->set_rules($rules);

$fields['email'] = 'E-mail';
$fields['password'] = 'Password';
$this->validation->set_fields($fields);

if ($this->validation->run() == FALSE)
{

$this->load->view('users/login',$arr_data);

}

else
{
echo sucess......;

}

}

from above function its always going to if condition ..... but its working fine in localsystem........

Please help........ its urgent


  image lib confuses me
Posted by: El Forum - 04-01-2008, 06:42 AM - No Replies

[eluser]richthegeek[/eluser]
Does anyone else find the image library confusing?

Why can't we just have stuff like this:

Code:
$this->load->libary("image");

...

$this->image('image.png')->rotate( "+45" )->saveTo( "assets/images/rotated/_SRC_" );

...
$img = $this->image('image.png');

$img->crop( fromX, toX, fromY, toY );
$img->resize( width, height, retainAspect ); // alternatively, if width=false or height=false, retain aspect automatically.

$img->output();

The current use of config etc is less useful to me than the imageGD stuff...


  Regular Expression
Posted by: El Forum - 04-01-2008, 04:22 AM - Replies (3)

[eluser]nirbhab[/eluser]

Quote:&lt;object width="425" height="355"&gt;<param name="movie" value="http://www.youtube.com/v/SZPz8gaFaEE&hl=en"></param><param name="wmode" value="transparent"></param>&lt;embed src="http://www.youtube.com/v/SZPz8gaFaEE&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;

Guys how to find the bold string from the above string

Hope you have got my idea.
I want add the youtube videos in my site, added as user videos..some what like orkut does.
I am going to extract the source of flash file, and save in DB_table with user_id(logged in user).

If my plan is wrong please suggest a better way.


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
Defining extra constants ...
by InsiteFX
1 hour ago
Error / Shield 1.0.3 + Ci...
by kenjis
7 hours ago
Validation | trim causes ...
by Gary
9 hours ago
Modify users data as an a...
by xsPurX
11 hours ago
Bug with sessions CI 4.5....
by ALTITUDE_DEV
Yesterday, 06:26 AM
Integrating Bootstrap 5 i...
by Bosborne
Yesterday, 03:20 AM
Asset Minification Packag...
by tarcisiodev1
04-26-2024, 05:11 PM
Is it possible to go back...
by ejimenezo
04-26-2024, 11:49 AM
SQL server connection not...
by davis.lasis
04-26-2024, 07:11 AM
Problem with session hand...
by Julesb
04-26-2024, 04:13 AM

Forum Statistics
» Members: 85,592
» Latest member: f8betbest
» Forum threads: 77,587
» Forum posts: 376,040

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB