search for: add_item

Displaying 20 results from an estimated 35 matches for "add_item".

2006 Nov 22
2
Problem with "additional" submenus
...Win 98 Startup Disk Linux Kickstart Options --> (goes to boot: prompt instead of first-level submenu) In addition to the code you'll find below, I have also tried to use the add_menu funtion rather than add_named_menu to add the menus and have used those return values in the calls to "add_item(.., OPT_SUBMENU,..)" for the 5th parameters and I get the exact same results. Here is my code, hopefully someone can spot what I am doing wrong: #ifndef NULL #define NULL ((void *) 0) #endif #include "menu.h" #include "com32io.h" #include <string.h> TIMEOUTCODE o...
2006 Nov 27
8
Chaining from PXELinux to some other boot loader
Hi I am using PXELinux to boot BartPE and some other application and it works fine. There are some other Boot application which I am using 3COM MBAUTIL PXE.mnu and floppy images. I have problem chaining from pxelinux.0 to 3com pxe.0 (pxe.mnu). Consider: BIOS->(DHCP-TFTP)->pxelinux.0 works fine. BIOS->(DHCP-TFTP)->3COM pxe.mnu works fine, the menu appears and I can choose a floppy
2004 Feb 03
2
SYSLINUX 2.09-pre5 - Menu Depth "Feature"
...aldisk.com/menutest.com It's easiest explained if you just compile the .c and experience it for yourself, anyways. If you have two submenus nested within each other and then call a third menu it will bring up the second menu instead of the third. MAIN = add_menu(" Main Menu "); add_item("Begin Menu Depth Test","Only Allows Depth Of Two",OPT_SUBMENU,NULL,ONE); add_item("Exit to prompt", "Exit the menu system", OPT_EXITMENU, "exit", 0); ONE = add_menu(" LEVEL 1 "); add_item("GOTO LEVEL 2","Go one level...
2004 Oct 07
1
Menu examples?
...the intention of creating this: label ks.menu kernel vmlinuz.ks.$DIST append ksdevice=eth0 ks=http://kickstartserver/$DIST/Custom/ks.cfg.$DIST initrd=initrd.ks.$DIST lang= devfs=nomount ramdisk_size=8192 Hmm...looking at it, that's not much more than a single OPT_RADIOMENU. valhalla = add_item("Custom <V>alhalla","WC Customised RedHat 7.3",OPT_RADIOITEM,"valhalla",0); add_sep(); startks = add_item("Start <K>ickstart","Start RedHat Kickstart install",OPT_RUN,"ks.menu",0); But then I'll need to a handler to append...
2006 Mar 10
1
Add_Item Help
...talation Server kernel memdisk/memdisk append initrd=RisMenus/RisDisk.IMg Now I'm trying to implement the complex menu system, which I can't. I figure out how it works, but I don't now where I'm wrong. I think that the problem is in this sentence, in the Kernel parameter: add_item("<I>magenes","Option para la descarga de Imagenes",OPT_RUN,"*memdisk/memdisk initrd=RisMenus/RisDisk.IMg*",0); I can load the GUI and change/add items, but when I try to load an Image just like in the simple menu, I can't figure it out. How can I do to load...
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
...to Sizer#add following the thread below : http://rubyforge.org/pipermail/wxruby-development/2008-March/001244.html After a deeper look at lib/wx/keyword_ctors.rb and lib/wx/keyword_defs.rb, I understood the whole thing :-). I just reused and modified slightly the method args_as_list. The new Sizer#add_item combines the features of add and insert in addition to the support of keyword arguments. Let me know what do you think about this proposal as this can be applicable to ToolBar#add_tool as well. So here is the proposal with a simple test application : require ''wx'' module Wx...
2007 May 10
2
Problem with translator
...attr_accessor collection def initialize @collection = [] end def add_new(item) @collection << item end end specify "should include string with ''?''" do school = OldSchool.new school.add_item ''like ?'' school.collection.should_include ''like ?'' end end The resulting translation is: it "should include string with ''?''" do school = OldSchool.new school.add_item ''like ?'' scho...
2006 Jul 02
6
remote form w/ evalScripts:true
...result in an ajax call that updates two sections on the page. Here is the code in the controller def create ... render :update do |page| page.replace_html ''list_items'', :partial => ''lists/list_items'' page.replace_html ''add_item'', :partial => ''lists/add_item'' end end Here is the version of code in the template that I WANT to use to POST to this action: <%= form_remote_tag :html => { :action => url_for(:controller => "list_item_links", :action => "cre...
2005 Sep 29
1
Ajax in the Aguile Web Development... book
...." is coming up, and the item is being written in the top of the page, but then it freezes here. I uses the newest rails, installed with Gem, and WEBrick 1.3.1 server. When i push the action I get the following output from WEBrick: 127.0.0.1 - - [25/Sep/2005:20:28:33 CEST] "POST /list/add_item HTTP/1.1" 200 247 - -> /list/add_item Anybody knows if this is a bug in the code in the book, or have any suggestions on solutions? The code can be downloaded from: http://pragmaticprogrammer.com/titles/rails/code.html I''ve tried both Firefox, Opera and Galeon for linux (Ubuntu)...
2006 Apr 12
1
Dynamically updating list
hi every body. i am try to do example of agil books.dynamically updating list of chapter 18. 1)this is my code for controller---- class ListnoajaxController < ApplicationController def index @items = Item.find_recent end def add_item item = Item.new(params[:item_body]) render(:partial => "item", :object => item) end def item end end 2)the code for item class in app/model class Item < ActiveRecord::Base attr_reader :body attr_reader :posted_on FAKE_DATABASE = [] def initialize(body) @body = body @posted_on =...
2006 Apr 07
3
RJS removing content of div, but not div itself
...this. I''ve included some code below. Best regards, Bill --------------------- controller ---------------------- class ListdemoController < ApplicationController def index session[:toggle_color] = 1 # used to create a ''green-bar paper'' effect end def add_item @ingredient = Ingredient.new @ingredient.name = params[:name] @ingredient.qty = params[:qty] @ingredient.save render(:partial => ''line_form'') end def delete Ingredient.find(params[:id]).destroy render(:partial => ''remove_line_form...
2007 Sep 07
12
Preconditions
Sorry, lots of questions these days. Is there a normal approach for preconditions? In JUnit, I might put a few assertions in the setUp() just to make sure that the test ''data'' I''ve created meets expectations before going to test it. So, for instance, I''ve got an object that is audited using acts_as_audited and I''d like to test the XML that results
2006 Aug 18
0
AJAX question
...et a simple AJAX behavior right. I know zero AJAX, thus please advice. Below is a simplification of the real code and I hope I can describe my intention clearly. class StoreController < ApplicationController def show_cart @cart = Cart.new @new_item = CartItem.new end def add_item @new_item = CartItem.new(params[:new_item]) if @new_item.valid? @cart.items << @new_item # execute add_item.rjs else breakpoint render :partial => ''new_item'' end end end app/views/store/show_cart.rhtml <h1>Cart co...
2006 Aug 18
0
Simple AJAX question
...Help me get a simple AJAX behavior right. I know zero AJAX, thus please advice. Below is a simplification of the real code and I hope I can describe my intention clearly. class StoreController < ApplicationController def show_cart @cart = Cart.new @new_item = CartItem.new end def add_item @new_item = CartItem.new(params[:new_item]) if @new_item.valid? @cart.items << @new_item # execute add_item.rjs else breakpoint render :partial => ''new_item'' end end end app/views/store/show_cart.rhtml <h1>Cart contents&lt...
2009 Apr 12
0
[PATCH] hdt: only display MAC address for network cards
...id compute_pci_device(struct s_ menu->items_count++; if (hardware->is_pxe_valid == true) { - snprintf(buffer,sizeof buffer,"MAC Addr. : %s",hardware->pxe.mac_addr); - snprintf(statbuffer,sizeof statbuffer,"MAC Address : %s",hardware->pxe.mac_addr); - add_item(buffer,statbuffer,OPT_INACTIVE,NULL,0); - menu->items_count++; - if ((hardware->pxe.pci_device != NULL) && (hardware->pxe.pci_device == pci_device)) { + snprintf(buffer,sizeof buffer,"MAC Addr. : %s",hardware->pxe.mac_addr); + snprintf(statb...
2004 Jul 21
1
using menu's to boot kernels
...rations on it and users are prompted as to what type of server they want to build based upon the isolinux.cfg selections. My goal is to use Murlai's menuing system instead because the large number of configs is taking too much screen real estate. Looking at simple.c I see entries like: add_item("Linux Rescue","linresc",OPT_RUN,"linresc",0); So I suppose I need to add an item to the menu that specifies a kernel and it's appendeable options (like isolinux.cfg).. How do I accomplish this? I know it's probably a simple answer as but... James S. Marti...
2009 Jan 05
8
How to use evt_update_ui wrt RichTextCtrl ?
Hi, I''m trying to create a very simple RichTextCtrl sample based on the C++ version. This works pretty well now with the fixes for missing RichTextCtrl.selection_bold? ... methods. See the attached script. Given the formatting buttons (bold, italics, underlined), I can type text with the proper formatting, select some text and apply a formatting later ... The problem I have is I
2009 Jan 05
8
How to use evt_update_ui wrt RichTextCtrl ?
Hi, I''m trying to create a very simple RichTextCtrl sample based on the C++ version. This works pretty well now with the fixes for missing RichTextCtrl.selection_bold? ... methods. See the attached script. Given the formatting buttons (bold, italics, underlined), I can type text with the proper formatting, select some text and apply a formatting later ... The problem I have is I
2004 Jan 16
6
Comboot Menu
Since lot of people want this thing, I will try to take a stab at it. For now, I will hard code the menu in the code, and then somebody else can remove that restriction. May be we can add some kind of keyword to the config file which syslinux ignores and the comboot menu does something with it. I have one question about comboot: If I write a DOS program using C (compiled using watcom -3 -mt -osx
2006 Jul 28
1
question regarding memdisk, and menu/complex.c or simple.c
has anyone got memdisk to work directly? i mean such as: add_item("W98 Boot","Windows 98 Boot",OPT_RUN, "memdisk initrd=98se.ima",0); I have tried various methods, and I get the same results: Loading memdisk....Ready. MEMDISK 3.11 2005-09-02 Copyright 2001-2005 H. Peter Anvin MEMDISK: No ramdisk image specified! I know...