-
Posts
184 -
Joined
-
Last visited
Everything posted by Maze
-
hello dear Community, having issues in Libreoffice : cannot copy and paste from Kate to LO - guess i need an update of 6.2.0.3 to newest version what does not work: here a short explanation: i cannot copy data from other application like kate or a browser to Libreoffice, This doe not work I also am not able to copy data from a calc sheet to a Writer document nor from a Writer document to another writer document, it is allmost crazy, **btw;:** to copy from firefox to kate - into the texteditor .- this works good, **the System** > operating system Manjaro 18.02 > LO Version: 6.2.0.3 > Build ID: 6.2.0-3 > CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: kde5; > Locale: de-DE (de_DE.UTF-8); UI-Language: en-US > Calc: threade **the question is:** how to upgrade / update Libreoffice to the newest version - i want to make it right - some months ago i installed the wrong packages and the CPU was in trouble - since the whole stuff got hotter and hotter. now i have a fresh installation - but i guess Libreoffice is not up do date how to proceed - what to do !? love to hear from you
-
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
-
what happened:_ every time when tried to update - i got errors. Abhängigkeits-Zyklus recognized : usbmuxd wird vor seiner Abhängigkeit libimobiledevice installiert werden well the update is terribliy big - aprox 1.3 GB complains about the hdd free memory well i run some codes to do some cleaning. [root@akoya martin]# sudo pacman -Scc Puffer-Verzeichnis: /var/cache/pacman/pkg/ :: Möchten Sie ALLE Dateien aus dem Puffer entfernen? [j/N] j Entferne alle Dateien aus dem Puffer... Datenbank-Verzeichnis: /var/lib/pacman/ :: Möchten Sie ungenutzte Repositorien entfernen? [J/n] j Entferne unbenutzte Sync-Repositorien... [root@akoya martin]# sudo pacman -Scc Puffer-Verzeichnis: /var/cache/pacman/pkg/ :: Möchten Sie ALLE Dateien aus dem Puffer entfernen? [j/N] j Entferne alle Dateien aus dem Puffer... Datenbank-Verzeichnis: /var/lib/pacman/ :: Möchten Sie ungenutzte Repositorien entfernen? [J/n] j Entferne unbenutzte Sync-Repositorien... [root@akoya martin]# fdisk -l Festplatte /dev/mmcblk0: 58,3 GiB, 62545461248 Bytes, 122159104 Sektoren Einheiten: Sektoren von 1 * 512 = 512 Bytes Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes Festplattenbezeichnungstyp: gpt Festplattenbezeichner: FF979BFA-3AC5-4088-88C1-A52F7391E202 Gerät *********Anfang *****Ende *Sektoren Größe Typ /dev/mmcblk0p1 **2048 ***411647 ***409600 *200M EFI-System /dev/mmcblk0p2 411648 ***935935 ***524288 *256M Linux-Dateisystem /dev/mmcblk0p3 935936 122157055 121221120 57,8G Linux LVM Festplatte /dev/mapper/AntergosVG-AntergosRoot: 10,8 GiB, 11622416384 Bytes, 22700032 Se ktoren Einheiten: Sektoren von 1 * 512 = 512 Bytes Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes Festplatte /dev/mapper/AntergosVG-AntergosSwap: 3,7 GiB, 3955228672 Bytes, 7725056 Sekto ren Einheiten: Sektoren von 1 * 512 = 512 Bytes Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes Festplatte /dev/mapper/AntergosVG-AntergosHome: 43,3 GiB, 46485471232 Bytes, 90791936 Se ktoren Einheiten: Sektoren von 1 * 512 = 512 Bytes Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes [root@akoya martin]# und jetzt läuft die Aktualisierung auch - mit den 1.3 GB - now it works
-
well i will try to delete the pacman cache of any previously downloaded updates. It’s in /var/cache/pacman/pkg The other thing to keep in mind, and i may already know this - it’s not a good idea to leave updates for long periods of time on a rolling release distribution. The longer you go between updates, the more likely it is that something can get very broken on an update. some friends suggested once a week, once every two weeks at the absolute outside.
-
hello dear experts +after having used the notebook not for quite 3 months i now am facing a too large update: update is 1.3 GB - way too large for the hdd of my notebook - what can i do now !'?
-
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
-
hello dear Jaques many many thanks - You have helped me alot - keep up the great work regareds
-
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
-
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
-
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?
-
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
-
how to change the date formate in excel from 01.01.2017 to 01.01.17
Maze replied to Maze's topic in Miscellaneous
many thanks for the tipp -
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..)
-
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
-
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
-
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
-
truncate a RSS-feed with PHP string functions like substr
Maze replied to Maze's topic in PHP Coding Help
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 -
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
-
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