Jump to content

Maze

Members
  • Posts

    184
  • Joined

  • Last visited

Everything posted by Maze

  1. want to import data into a Calc-based Calendartemplate you can see it here: http://www.calendarpedia.com/weekly-calendar-2019-excel-templates.html The task; i want to import the data into column B i have a dataset of 365 lines of Text that needs to go into the calendartemplate. i have tried alot to accomplish the task - bit i was not successful what can i do!? look forward to hear from you greetings
  2. hello dear php experts, opensuse tumbleweed snapshot 20170209 .... contains which kernel? the latest!? regarding the installation: i can install this like the opensuse-leap 42.2 - guess so?!
  3. hello dear experts how to test linux with the newest kernel - the 4.8 or 4.9 one is there a distribution that contains all the things already!? love to hear from you
  4. hello dear Jaques many many thanks - You have helped me alot - keep up the great work regareds
  5. hello dear Experts i am workin on a webserver - with webmin - i cannot see the vhosts (that exists allready) how to get a full view on the existing vhosts that exist!? - with and - without console -(terminal) - since i cannot accss the server with console - i have no access with the terminal love to hear from you
  6. good day dear php-freaks i need to rename files in _ one _ directory - more than 50 files are in this..folder: the files are named like so: 01 02 03 04 ... 49 50 each file has got a number as a file name. each file should get a character - like so: r01, r02, r03, r04 and so on . .... r50 how can we do this on commandline
  7. hello dear community whlle trying to create a new vhost with webmin - i get errors over errors but - i f i look at the _server_list: i cannot see the new server - why is this so!?
  8. hello dear experts run a webpage that is centered on newspapers & books and all that stuff therefore i want to fetch news from twitter ... from different channels of different newspapers is it possible to do ilt like so Twitterfeed from different publishers note: i run wordpress - and there are many plugins can i do this like described above?
  9. hello dear php-experts i want to grab the data from the New York Times Developer Network - i need to fetch data that i build to a tag cloud. the source: https://developer.nytimes.com/ The New York Times Developer Network All the APIs Fit to POST you already know that NYTimes.com is an unparalleled source of news and information. But now it's a premier source of data, too — why just read the news when you can hack it? does any body know how to get Started The Times Developer Network is our API clearinghouse and community. love to hear from you
  10. how to change the date formate in excel from 01.01.2017 02.01.2017 to 01.01.17 ..e t c
  11. hello dear community, want to install a base-db therefore in need to take care for the prerequistes - eg th HSQL-driver - that comes bundled with the zipped arcive. i have to do / take care for some "Installation" - things: well - can you help he how to do that!? - eg on a windoes machine - (eg on a lin machine..)
  12. good day dear opensuse-experts, i have some issues with the usage /work with a base (libreoffice) database. note: i run opensuse 13.2 i get the error message: Multiple Java Applications accessing one HSQLDB causes app to ... missing .... Class.forName("org.hsqldb.jdbcDriver") well - i think that i need to run base HyperSQL - hsqldb i think that i have to take care for the prerequisites: HyperSQL can provide database access within the user's application .... the database path is a Java questions: what do i need to do to get able to work with the LibreOffice .odb file note: i run opensuse 13.2 do i have to do some further installations - eg some things HSQL database or the Java class path in Tools->Options->Java to the new hsqldb.jar. love to hear from you
  13. hello dear php-experts, how to fetch the google-alerts can i use a rss-feed-plugin note. i want to fetch google alerts https://www.google.de/alerts btw - i run wordpress can i use a wordpress plugin like that imports rss… love to hear from you
  14. hello dear phpfreaks i want to apply a mouse -over effect in the theme - at http://www.literaturen.org i mean this effect: http://imgur.com/a/VpNuj the amazon-review plugin called scrapeazon – in the posting “slider revisited” – see the widget that is located in the first colum of the posting: below the again – see this effect: http://imgur.com/a/VpNuj - i want to have this effect on a nother part of the site:i have installed a i-frame with a book cataloge see the page http://www.literaturen.org see the kvk-katalog auf in a advanced-i-Frame the effects that are aimed: http://imgur.com/a/VpNuj i will try out this - by using this code: .su-column-inner #scrapeazon-iframe:hover { height: 400px; position: absolute; width: 800px; background: #fff; z-index: 9999; padding: 25px; border: 1px solid #cdcdcd !important; } well we can limit it to this column only using the su-column-inner class. we animate this effect to some degree by adding this too: .su-column-inner #advanded-iframe-iframe { -webkit-transition: .2s ease-out; -moz-transition: .2s ease-out; transition: .2s ease-out; } so the question is – can we do some mouse-over effects for the i-frame – resp the site of the kvk-catalogue…. love to hear from you regards
  15. hello dear Psycho, many many thanks for the quick reply. great to hear form you! fantastic to read your ideas - that sound great. i will add your lines accordingly ... .to the part that fetches the RSS <?php // Get RSS Feed(s) include_once(ABSPATH . WPINC . '/feed.php'); $rss = fetch_feed('http://examplesite.com/rss'); if (!is_wp_error( $rss ) ) : $maxitems = $rss->get_item_quantity(5); $rss_items = $rss->get_items(0, $maxitems); endif; ?> <ul> <?php if ($maxitems == 0) echo '<li>No items.</li>'; else and then your lines come....: . //Return a string up to a certain number of characters //but will break on a space function truncateString($string, $length, $ellipse='…') { //Return truncated string w/ ellipse (if >$length) return substr($string, 0, stripos($string, ' ', $length)) . $ellipse; } $string = "This is a string with a lot of words that may need to be limited in some places in the output"; echo "<b>Output the full string:</b><br>\n"; echo $string . "<br><br>\n"; echo "<b>Output the limited string:</b><br>"; echo truncateString($string, 25); Output: many many thanks for the hints. regards maze
  16. this is a RSS-question: Im pulling an RSS feed from a site to display on my homepage. It displays the titles correctly, but I want to truncate the number of characters per post so it doenst take up a long section if the title is long. How do I do that? here is the code Im using <?php // Get RSS Feed(s) include_once(ABSPATH . WPINC . '/feed.php'); $rss = fetch_feed('http://examplesite.com/rss'); if (!is_wp_error( $rss ) ) : $maxitems = $rss->get_item_quantity(5); $rss_items = $rss->get_items(0, $maxitems); endif; ?> <ul> <?php if ($maxitems == 0) echo '<li>No items.</li>'; else foreach ( $rss_items as $item ) : ?> <li> <a href='<?php echo $item->get_permalink(); ?>' title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'> <?php echo $item->get_title(); ?></a> </li> <?php endforeach; ?> </ul> well I am trying to limit the number of words displayed in the excerpt Basicly, the problem is that I want to use the same excerpt in two different loops. The first one will display the whole excerpt, the second loop will only display a smaller part of it. Therefore I cannot limit the words number of ALL the excerpts, but I would need to do that locally. Ideally, if there is a solution to this I can use the same excerpts in many different places on the blog, using the same excerpt but in its longer/shorter version depending on the situation. <?php $little_excerpt = substr(the_excerpt(),0,XY); ?> doesn’t work because the_excerpt() is not at string. well we can Use get_the_excerpt() instead, that will do the trick. However, this is still limiting characters, not words. I just found a solution to limiting the number of words in the excerpt without plugins. Put the following piece of code in your templates functions.php file: <?php function string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(' ', $words); } ?> Next, put the following piece of code in your template where you want to display the excerpt: <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,25); ?> Where 25 is the number of words to display. php we can use PHP string functions like substr to return a number of characters rather than word count. The post content aaaaaaaaaaaaaaa aaaaaaaaaaaaa will be much longer than a a. $max_length = 150; echo substr( $string, 0, $max_length ); As a function it might look like: function string_limit_words( $string = '', $count = 25, $after = '...' ) { if ( strlen( $string ) <= $count ) { return $string; } return substr( $string, 0, $count ) . $after; } echo string_limit_words( "This is a lot of words", 10 ); // This is a ... the_excerpt() prints the output while get_the_excerpt() will return the string to allow manipulation before output. what do you say? look forward to hear from you
  17. good day dear linux experts want to install openssuse leap 42.2 on a notebook-paralell to opensuse 13.2 what do i have to take care off? btw: the GRUB does take care for the installation - is this true. so i do not need to do many many configuring things... is this true!?
  18. many thank by the way - since pgp is no systempart - we cannot read anything accordingly in the logs
  19. tried to insert a pgp- public key to a opensuse 13.2 system - into the kgpg-tray. it failed all the time see the logfiles :54:48 linux-7w0a.site su[4359]: pam_unix(su:session): session opened for user root by (uid=1000) Nov 06 12:27:31 linux-7w0a.site systemd[2046]: Time has been changed Nov 06 12:27:40 linux-7w0a.site systemd[2046]: Time has been changed Nov 06 14:40:21 linux-7w0a.site systemd[2046]: Time has been Nov 06 18:23:27 linux-7w0a.site systemd[2046]: Time has been changed Nov 06 19:40:57 linux-7w0a.site systemd[2046]: Time has been changed Nov 06 19:43:17 linux-7w0a.site kcheckpass[8593]: pam_unix(xdm:auth): authentication failure; logname=martin uid=1000 euid=0 t Nov 07 10:42:05 linux-7w0a.site systemd[2046]: Time has been changed Nov 07 20:10:48 linux-7w0a.site systemd[2046]: Time has been changed Nov 08 03:36:49 linux-7w0a.site systemd[2046]: Time has been changed Nov 08 13:15:50 linux-7w0a.site systemd[2046]: Time has been changed Nov 08 18:27:34 linux-7w0a.site systemd[2046]: Time has been changed Nov 08 20:17:37 linux-7w0a.site systemd[2046]: Time has been changed Nov 08 21:37:46 linux-7w0a.site systemd[2046]: Time has been changed Nov 08 23:29:29 linux-7w0a.site su[4155]: pam_unix(su:session): session closed for user root lines 2767-2794/27 i have tried to get it done while i start kgpg - the graphical interface. after doing so i have done several trials: a. gettiing the pub-key intergrated into kgpg while uploading from the fiile b. getting the pub-key intergrated into kgpg while i use the tray - and insert it into tray from the memory. well i have found another solution: here gnupg - How do I import a public key? - Ask Ubuntu Public Key Server -- Get ``0x51716619e084dab9 '' I) Copy this to a txt file: gedit ~/Michael.txt II) Run this sudo apt-key add ~/Michael.txt && rm ~/Michel.txt well - i am on opensuse - and not on ubuntu. So the question is: how to run this ubuntu-command in opensus sudo apt-key add ~/Michael.txt && rm ~/Michel.txt
  20. hello dear all - good day dear linux experts. i am running openSuse with kgpg: and i am very happy with this. today i want to create some keys... well i c an - afaik - do this with the kgpg but if i do so .suddenly the terminal opens. okay - so far so good; i have the following options: to create a key: gpg --gen-key generally you can select the defaults. to export a public key into file public.key: gpg --export -a "User Name" > public.key This will create a file called public.key with the ascii representation of the public key for User Name. This is a variation on: gpg --export which by itself is basically going to print out a bunch of crap to your screen. I recommend against doing this. gpg --export -a "User Name" prints out the public key for User Name to the command line, which is only semi-useful to export a private key: gpg --export-secret-key -a "User Name" > private.key This will create a file called private.key with the ascii representation of the private key for User Name. It's pretty much like exporting a public key, but you have to override some default protections. There's a note (*) at the bottom explaining why you may want to do this. to import a public key: gpg --import public.key This adds the public key in the file "public.key" to your public key ring. that said - what happens if i create a key - then it exists somewhere on the machine - or not!? what do i need to do to add it to the kgpg system? I need to have a tipp - do you have an idea!?
  21. hello dear php-experts, i am genrating new gnupg - keys; question after generating the new key i need to send parts of a new gnupg keys to a friend - which one!?
  22. hello dear community i have to rework a cal-sheet gear calculation from mp/h to km/h - note all data were in miles per /hour - what is needed is to rework it into kilometers per hour... are there some automated steps to do so..??
  23. hello dear php-experts, i have some issues with my linux-machine... how to start linux Grub under advanced Opttion Kernel 3.12 failsafe? background: my machine wont boot correct - allways it ends up in terminal? Note: i run openSuse 13.1 love to hear from you!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.