class Object

Constants

EURO_IMAGE
GREEN_SQUARE
MARGIN_RIGHT
S_CHAOS
S_DARKGOLDENROD

Public Instance Methods

discarded_on_this_day(i = nil) click to toggle source
#

discarded_on_this_day

#
# File lib/hardware_information/www/my_hardware.rb, line 111
def discarded_on_this_day(i = nil)
  if i
    s2 sg(:rip,'marr8px').dup+
       '<span class="cyan">Entsorgt am: </span>','padl2_5em'
    s2 i.to_s, 'BO green'
  end
end
display_the_total_costs( i = HardwareInformation::PurchasedHardware.total_cost? ) click to toggle source
#

display_the_total_costs

This method will show the sum of the total purchase cost; the module PurchasedHardware will keep track of this, so here we only display that value.

#
# File lib/hardware_information/www/my_hardware.rb, line 225
def display_the_total_costs(
    i = HardwareInformation::PurchasedHardware.total_cost?
  )
  # ========================================================================= #
  # === REGISTRIERTE GESAMTKOSTEN
  # ========================================================================= #
  div('mart1em s1em') {
    e sg(:dot102, 'marr8px')+
      '<b class="marl0_3em bigger"> Registrierte Gesamtkosten:</b>'
    br
    s2 i.to_f.round(3).to_s,'yel marl2em BOLD bigger'
    s2 EURO_IMAGE+
       ' <b>Euro</b> <span class="smaller">(seit 27.05.2004)</span>'
    br
    br
  }
end
show_interesting_hardware_that_could_be_purchased() click to toggle source
#

show_interesting_hardware_that_could_be_purchased

#
# File lib/hardware_information/www/my_hardware.rb, line 138
def show_interesting_hardware_that_could_be_purchased
  # ========================================================================= #
  # === Hardware die ich kaufen könnte
  # ========================================================================= #
  h3 'Interessante Hardware die ich kaufen könnte:'
  div {
    # Tablets gibt es bereits ab €282,92 Euro.
    #
    #
    # === https://www.notebookcheck.net/Trekstor-Primetab-T13B-N4200-HD505-Convertible-Review.324136.0.html
    # === https://geizhals.at/trekstor-primetab-t13b-64gb-grau-99403-a1827199.html
    # https://geizhals.at/trekstor-primetab-s11b-64gb-grau-99003-a2169278.html?hloc=at
    # ^^^  Gewicht 780g (mit Dock: 1.06kg)
    e 'TrekStor Primetab T13B 64GB grey (99403): ab 368 euro'
    e 'Stand: ^^^ 13.11.2018'
    br
    e 'Realtek USB: RTL8188CUS chip'
    e 'The kernel driver is called: rtl8192cu'
    e 'USB: 0846:9041 NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS]'
    br
    a 'https://geizhals.at/lenovo-ideapad-miix-320-10icr-80xf002hge-a1616381.html?hloc=at'
    a 'https://geizhals.at/trekstor-primetab-t13b-64gb-grau-99403-a1827199.html'
  }
end
show_local_sitemap() click to toggle source
#

show_local_sitemap

#
# File lib/hardware_information/www/my_hardware.rb, line 80
def show_local_sitemap
  h2 'Sitemap','yel martb1px'
  p('marr1em FS1em mart0_1em'){
    sitemap_link '#Laptop1_Fujitsu_Siemens_Computers',
                 'Laptop FSC Amilo Pro V2030'
    sitemap_link '#USB_Netgear_108_WG111T',
                 'USB Netgear 108 WG111T Sticks '
    sitemap_link '#Maxtor_OneTouch_III_750',
                 'Maxtor External USB HDD 750 GIG'
    sitemap_link '#Imation_clip_Flash_Drive',
                 'Imitation 4 GIG USB Stick'
    sitemap_link '#Buffalo_Wireless_G_125',
                 'Buffalo Wireless Router'
    sitemap_link '#computer3',
                 'Rechner Computer3' # Mit K8M890
    sitemap_link '#Rechner_Miraculix_mit_xxxxx',
                 'Rechner Miraculix'
    sitemap_link '#Benq_G2000WA_LCD_Monitor',
                 'Benq LCD Monitor'
    sitemap_link '#Pinnacle_PCTV_Hybrid_Pro',
                 'Pinnacle PCTV Hybrid Pro Stick 330E'
    sitemap_link '#LCD_TV_19LG3000',
                 'LCD TV 19LG3000'
    sitemap_link '#FREECOM_EXTERNAL_HARD_DRIVE_3TB',
                 'FREECOM_EXTERNAL_HARD_DRIVE_3TB'
  }
end