Pesquisar

Results for: dev

Andy H3
9 horas atrás
A request for screenshots is running now at Friendica Support and Developers

Friendica Screenshot 'Competition'

Andy H3
1 dia atrás
Very nice! In the spirit of this, I'd like to edit the "mission statement" blob for plain and concise language. https://github.com/friendica/friendica/blob/develop/README.md

Here my attempt:

'Welcome to the free social web.

Friendica is a decentralised communications platform that integrates social communication. Our platform links to several independent social projects and corporate services.

Our mission is to free our friends and families from data-harvesting corporations; we aim for social communication to be free and open, while flowing between any provider as easily as email does today.'

Any comments or suggestions before I open a PR.
Fabio
2 semanas atrás
@Friendica Developers

I'm quite out of the loop. Is there a reason for the atom feed of forums to be empty?
Fabio
2 meses atrás
#fosdem2018


FOSDEM 2018 - Decentralised Internet and Privacy devroom

Rooms: No room assigned yet Calendar: iCal, xCal...
Fabio
2 meses atrás
Poi c'è chi si lamenta di make...

Webpack from Nothing - What Problem Are We Solving?

This site explains Webpack, but it also explains so much more. It's a journey from nothing to developing, testing, and deploying a basic website, all designed around minimal use of the tools in the challenging JavaScript ecosystem. I am not someone that accepts blobs of JSON as explanations for how things work. I need to really understand how the t...
Michael Vogel
2 meses atrás
What to do with outdated addons?
@Friendica Developers I really would like to archive them in a way so that their code isn't visible anymore when I grep for function names and so on.

I wouldn't want to delete the code, but want to have it archived to be able to access it again. How could we do this?
Michael Vogel
2 meses atrás
Remove "service class"?
@Friendica Developers In the core there is the "service class" functionality that was once planned for having additional features where users could pay for (like defining the maximum numbers of allowed contacts).

This is not used at all and cannot be configured, so it really doesn't make no sense to keep the code.

Does anyone disagree to remove it?
Fabio
2 meses atrás
@Friendica Developers

I leave this here because I don't have time to check if exists in issue tracker.

Mail and RSS import should ignore message with "message date" < ( today - "item expiration days").

Some not-so-updated rss feeds keeps showing up again after they have been deleted from db by the expiration tool, and I get the "show by commented order" network view flooded by old messages...
Rabuzarus
2 meses atrás
@Michael Vogel
Which means that we have to store the data elsewhere. But: I would like to do this only on the transport, not the storing and processing.
.
Can you describe this point a bit more, so I understand how this would look like (transport, storing, processing).

Some side notes:
For the would I would really love to see that friendica get rid of having objects as bbcode in the item['body']. In some way we have talked about this at the last hackathon. Objects (events, share, attachments) belong to the item but are very different form some formatted text. So we should store them not in $item['body'].

To the actual problem:
I won't touch the protocol part because because I'm afraid to break something. Nor will I write very, very complex sql queries. For such a case I would wisch a function which give me the results.

So I would stop at this point and would leave it up to you to provide the basics so I could step up to do the gui part.

Back to the code in my repository:
What about the handling of nested arrays in function xml::from_array() and the extension of function xml::to_array()?
I would like to have such a functionality in the code to replace written xml elements (like we do it now for e.g. objekcts - e.g. https://github.com/friendica/friendica/blob/develop/include/event.php#L280 and many other places) to arrays.
This arrays should be easily converted to xml (with an easy possibility to convert it back). At the moment (develop branch) it is the situation that if you have a string with xml with values and attributes (or the extended case if it does have more of the same element - e.g. <link>) you won't be able to convert it to an array and back to xml.
Rabuzarus
2 meses atrás
events in network stream
@Friendica Developers @Friendica Theme Developers

One of the many things which are not that good solved in friendica is from my point of view that fact that all objects which belong to a post are saved as bbcode in the item body. With objects I mean something like shares, attachments, events and so on. Since the beginning of using friendica I very unsatisfied that there are only limited possibilities to theme such objects because they are hard-coded. While I tried to fix https://github.com/friendica/friendica/issues/2646 some time ago I started to do some experiments how to extend the possibilities for displaying events.

Before I continue polishing and finishing the could I would like to have some feedback. There are some questions in my head and some (lets call it) designing decision to do (or which I have done and needs to discussed).

You will find the present code at https://github.com/rabuzarus/friendica/tree/20170904_-_extend_event_html and an example frio event at https://test.kommune4.de/display/9fd9b54c1359dcc60b622dd589375790

To explain what the code does:
In a short, the activity stream object (the one which is saved in the item table in the object column) will be extended with information which are needed for the event (e.g. start time, end time, author, location and so on). (I saw this in the hubzilla project and I like the idea to make more use of the object field if there are embedded object in the posts - events, share, attachments and so on).
While frindica does the preparing of the item for displaying its content, it verifies if the event item is an event and if the event object does contain additional data (for compatibility reasons with older objects). If it is an an event object it will extract the event data from the event object and will format this data in a special event template. The template formatted output will replace the existing $item['body'].
So every theme can decide how an event should be presented in the network stream.

To improve the speed, friendica does cache the html of an item. This would mean that we would need to parse the event everytime when a user would change the theme (and the event template would be a different one). To solve this only the event description (the part which should not change when selecting a different theme) is saved in the event cache.

There are some parts I want to talk about with you.
1.) I'm not sure if you like this approach (it was inspired by the hubzilla project)

2.) The created event object looks like:
[code=xml]
<object>
<type>http://activitystrea.ms/schema/1.0/event</type>
<id>urn:X-dfrn:test.kommune4.de:2:9fd9b54c3759dcc60b584d0456260405</id>
<title>Friendica Hackathon</title>
<startTime>2017-11-24 15:00:00</startTime>
<endTime>2017-11-26 19:00:00</endTime>
<description>Hackathon in Berlin to prepare the 3.6 release of Friendica.[url=https://friendica.kommune4.de/search?tag=xD]xD[/url];
&#[url=https://friendica.kommune4.de/search?tag=xD]xD[/url];
Room is limited, so please let us know if you plan to join us in Berlin.</description>
<location>
<name>Jugendclub [url=http://zope2.in-berlin.de:8100/wsb/elok]E-LOK[/url]</name>
<address>Laskerstra&#[url=https://friendica.kommune4.de/search?tag=xDF]xDF[/url];e 4-6, Berlin</address>
</location>
<content>[event-summary]Friendica Hackathon[/event-summary][event-description]Hackathon in Berlin to prepare the 3.6 release of Friendica.&#[url=https://friendica.kommune4.de/search?tag=xD]xD[/url];
&#[url=https://friendica.kommune4.de/search?tag=xD]xD[/url];
Room is limited, so please let us know if you plan to join us in Berlin.[/event-description][event-start]2017-11-24 15:00:00[/event-start][event-finish]2017-11-26 19:00:00[/event-finish][event-location]Jugendclub [url=http://zope2.in-berlin.de:8100/wsb/elok]E-LOK[/url]&#[url=https://friendica.kommune4.de/search?tag=xD]xD[/url];
&#[url=https://friendica.kommune4.de/search?tag=xD]xD[/url];
[map]Laskerstra&#[url=https://friendica.kommune4.de/search?tag=xDF]xDF[/url];e 4-6, Berlin[/map][/event-location]</content>
<link rel="alternate" type="text/html" href="https://test.kommune4.de/display/9fd9b54c8359dcc61152d76696294856"/>
<author>
<name>Ronny Rabuzarus</name>
<address>rabuzarus@test.kommune4.de</address>
<link rel="alternate" type="text/html" href="https://test.kommune4.de/profile/rabuzarus"/>
<link rel="photo" type="image/jpeg" href="https://test.kommune4.de/photo/58c7a30eeacc6492c43daf582cfb3cba-5.jpg"/>
</author>
</object>
[/code]

I'm unsure about the used tag names startTime and endTime. The naming was taken from https://github.com/activitystreams/activity-schema/blob/master/activity-schema.md#event . (should we use it or should we rather use the friendica names start and finish or should we use rather other tag names - e.g. hubzilla usesdtstart and dtend).

3.) Because I'm not familiar with xml handling in php I extended xml::from_array( ) to handle nested arrays. In addition I extended xml::to_array( ) to have a 'mixed' (Please: If some one does have a better name for this mode, please let me know) priority mode. It does convert xml in the following way: http://www.lalit.org/lab/convert-xml-to-array-in-php-xml2array/ .
In addition I changed the behavior of xml::to_array( ) in 'attribute' priority mode a little bit. Formerly the

[link]=> array(
[value]= http://irgendwas.de
)


Now it @value represents the content of a xml element:

[link]=> array(
[@value] = http://irgendwas.de
)


I did some tests to convert a xml with xml::to_array( ) and back with xml::from_array( ). The results look very good (Note this only works if the the array is created in 'attribute' or the new 'mixed' mode). I did several tests but I couldn't be sure if it doesn't break something (@Michael Vogel can you have a look - sry for disturbing your holiday).

4.) For frio I create short naming versions for the month and the day (eg. Mon, Tue and so on or Jan, Feb, Mar) in format_event_object( ). This code for this is inspired by other places in friendica where dates are created. I'm not familiar with date/time formats of other countries so this was the best way of preventing doing some mistakes. If anybody does have better solutions of solving this he/she is welcome to tell me.

5.) I have thought about creating a template for the content of function format_event_html() . But since this function is also used in function bbcode( ) I can not estimate the effects of having the possibility of different templates. Any thoughts about this?

Maybe I have other questions but I can't remember it at the moment. So I will end at this point and hope about some feedback :-)
Tobias
2 meses atrás
I reverted the changes, so develop is fine again.
Berlin
Tobias
2 meses atrás
Friendica 3.5.3 released
I hope I've not forgotten anything ;-) Anyhow - we have just gotten Friendica 3.5.3 :-)

@Friendica Support

https://friendi.ca/2017/10/05/friendica-3-5-3-released/
Elena ``of Valhalla''
3 meses atrás
You would have removed it only once, however, and then just cursed the uno developers every time you run pyflakes3 on the file :)

BTW, I'm not against automatic checks, I'm against automatic edits (and stuff like git hooks that blindly disallow committing stuff that doesn't pass flake/pep8 checks).

OTOH, if the number of imports to remove is big and all of the code involved has been written by sane people, I understand that autoremoval starts to sound like a good idea.
Fabio
3 meses atrás
SoftwareJokes wrote the following post:
"What is your idea of a perfect date?"
.
.
Developer: "YYYY-MM-DD"
Fabio
3 meses atrás
Tobias wrote the following post:

Save code share!

The proposed Copyright Directive restricts the rights of developers and internet users, creating barriers for the development of source code. Read our white paper to get the full view of the matter at stake from a software developer point of view! Very soon, we'll be launching an open letter to the EU legislators. You can help us by: Copyright (c) ...
Berlin
Tobias
3 meses atrás

Save code share!

The proposed Copyright Directive restricts the rights of developers and internet users, creating barriers for the development of source code. Read our white paper to get the full view of the matter at stake from a software developer point of view! Very soon, we'll be launching an open letter to the EU legislators. You can help us by: Copyright (c) ...
Berlin
Tobias
3 meses atrás

Debian Astro Pure Blend

Debian Pure Blends / Debian Astro Debian Astro is a "Debian Pure Blend" with the aim to develop a Debian based operating system that fits the requirements of both professional and hobby astronomers. It integrates a large number of software packages covering telescope control, data reduction, presentation and other fields. Stellarium: ...
Fabio
3 meses atrás

Python FAQ: Why should I use Python 3?

Part of my Python FAQ, which is doomed to never be finished. The short answer is: because it’s the actively-developed version of the language, and you should use it for the same reason you’d use 2.7 instead of 2.6. If you’re here, I’m guessing that’s not enough. You need something to sweeten the deal. Well, friend, I have got a whole mess of sugar cubes just for you. And once you’re convinced, you may enjoy the companion article, how to port to Python 3! It also has some more details on the diffences between Python 2 and 3, whereas this article doesn’t focus too much on the features removed in Python 3.
Berlin
Tobias
5 meses atrás

International Day Against DRM 2017 - Sunday, July 9th | Defective by Design

Submitted by Zak Rogoff on July 7, 2017 - 11:49am YOU DESERVE DIGITAL RIGHTS #DayAgainstDRM July 9, 2017 Digital Restrictions Management. DRM. The software that comes bolted to your digital media and devices and tries to police your behavior. The major media companies are its masters, and they justify it as a necessary evil to prevent filesharing, ca...
Fabio
6 meses atrás
#django

Django project optimization guide (part 1)

Django is a powerful framework used in many great projects. It provides many batteries, that speed up development and therefore reduces the price of it. When a project becomes large and is used by many users you inevitably will run into performance problems. In this guide, I will try define potential problems and how to fix them. This is the first ...
Fabio
7 meses atrás
-Buonasera! Pizzeria da Ciccio?
-No è Google pizza
-Ho sbagliato numero?
-No, Google ci ha comprati
-OK. Posso ordinare una pizza a domicilio?
-Certo, vuoi il solito?
-Il solito? Come fai a sapere cosa prendevo?
-Dal numero da cui chiami, le ultime 9 volte hai ordinato pizza con salamino piccante e patatine fritte, bella croccante
-OK! È proprio lei
-Posso suggerirti stavolta una pizza con la rucola e i pomodorini?
-Che cosa? Odio le verdure!
-Il tuo colesterolo è troppo alto
-Tu come lo sai?
-Hai richiesto di poter visualizzare i risultati dei tuoi esami del sangue online
-Non voglio quella pizza. Sto già prendendo le medicine
-Non le stai prendendo regolarmente, 4 mesi fa hai preso una scatola da 30 pastiglie nella farmacia sotto casa e poi non le hai più comprate
-Le ho comprate in un'altra farmacia
-Non risulta dalla tua carta di credito
-Ho pagato in contanti
-Non risultano prelievi di contanti dal tuo conto corrente
-Ho altre fonti di contanti
-Non risulta dalla tua dichiarazione dei redditi, a meno che non siano in nero
-Cosa vuoi da me? Basta con tutta questa tecnologia. Vado in un'isola deserta senza internet e senza telefono, così nessuno potrà più spiarmi
- Capisco. Rinnova il passaporto, ti è scaduto da 5 giorni
Fabio
7 meses atrás
GDR! wrote the following post:
Imagem/foto

The Internet of Farts!

IOF - Internet of farts

All mammals on this planet fart. As mammals, humans fart too. Especially when alone, in their cars when they commute to work.
So why not create a device to geolocalize those farts and log a few more things like the FartHeading, FartSpeed, etc?
Would it be interesting when selling the car, hand to the new owner a report of the number of farts released in the car and a map of those farts? Well not really but it was a fun project to build!
Berlin
Tobias
7 meses atrás
I've installated The Void (Linux) distribution on my good old eeePC with the XFCE flavour (they have several flavours using Gnome, Enlightenment, Cinnamon, LXDE, MATE and XFCE).

Imagem/foto

Works quite well and is nice fast on the old device. All the needed packages were easily found in the package manager, networking (wired and unwired) works, as do the function keys :-)
James Lamentus
8 meses atrás
Maybe not everyone knows that:
Mike doesn't use hubzilla but RED, https://macgirvin.com/siteinfo https://macgirvin.com/help/about/about

He is clearly helping the hubzilla project but has come back to develop and use RED .
Berlin
Tobias
8 meses atrás

Announcing RedMatrix 3.0

RedMatrix 3.0 signals a complete change in direction from RedMatrix over the last few years (it's being maintained by one of the original developers again fo...
Fabio
8 meses atrás
Francesco Salvi - Wikipedia
Si laurea in architettura, ma decide di intraprendere la strada dello spettacolo[...]


Luca Mangoni - Wikipedia
Luca Mangoni noto semplicemente come Mangoni è un architetto e politico italiano e collaboratore del gruppo musicale italiano degli Elio e le Storie Tese.[...]


Qualcuno devrebbe farsi delle domande sui corsi di laurea in architettura...
Berlin
Tobias
8 meses atrás

Hello Tatooine! An unpowered device can harvest water vapor in a desert

Take an unusual material, add sunshine, collect water.
Elena ``of Valhalla''
8 meses atrás
Fabio
9 meses atrás

Developers Italia

La comunità italiana degli sviluppatori di servizi pubblici
Fabio
9 meses atrás
Mmmh looks like libgit2 has git_commit_create_with_signature() but libgit2-glib doesn't :-(
Fabio
9 meses atrás de Friendly
E' qualche giorno che prendo il treno a tornare e lo trovo relativamente vuoto. Oggi è strapieno. Mentre mi faccio largo per trovare un buon posto im piedi, sento stralci di una conversazione "eh, io di solito prendo il diretto, è più tranquillo" "già.." "no, non lo prendo mai questo treno. La prossima volta prendiamo il diretto!".

Il tizio e la sua cumpa sono belli seduti.

Fatto sta che se prendevano il ca#@ di diretto, io mi potevo sedere. Su! Invece di star qui a creare casino!

E scenderanno a capolinea, si accettano scommesse.
Felix Tiede
9 meses atrás
He made that joke about self-driving cars before - with a heavy stone and a target somewhere in Alaska.

Albeit this one is admittedly way more practical. (And still pretty useless, considering there probably are very silent listening devices in everyone's pockets.)
Fabio
9 meses atrás
non credo che le mettano quelle sulla pedemontata. hanno tutti gli spazi occuparti per farti sapere che devi pagare.
Berlin
Tobias
9 meses atrás
I've tagged version 0.5c of my Clean theme. Mostly because of the Friendica color preset.




@Friendica Theme Developers
Bordesholm
Tim Schlotfeldt
10 meses atrás
„The new mandate buys us some time. And we will keep going.“
Well done. #LiMux #fsfe

What happened in Munich

On 15 February 2017, the city council of Munich, Germany convened to discuss the future of their LiMux project. In its public session, the plenary voted to have the city administration develop a strat...
Fabio
10 meses atrás
:facepalm


ModMyMods Raspberry Pi Mini Water Cooling Kit (MOD-0171)

The Raspberry Pi water cooling kit is now here. Watercool any embedded device with a 15mm by 15mm surface. By Liquid cooling your Raspberry Pi you can hack away with no trouble. This kit even supports raspberry pi clusters!
Berlin
Tobias
10 meses atrás
I love FreeSoftware
I spend some time yesterday thinking about what was your most favourite FreeSoftware project of the last year? And I could not really find an answer to the question. Not because I don't know any projects I care about, but the most favourite is hard to grasp when one can use GNU/Linux for the last two decades almost exclusively ;-)

So instead I'd like to send some <3 to David Revoy who is the author of Pepper and Carrot a lovely free, libre and open-source webcomic which entertained me quite some times over the last year, reading and re-reading the episodes. The comic is drawn using Krita and Inkscape and the stack around them, so Kudos to these projects for making Pepper and Carrot possible :-)

Also I want to thank the people involved in all the cool projects that make the deventralised social network so wonderful diverse as it is. Thanks to all of you who contribute in so many ways to Diaspora, Friendica, GNU social, Hubzilla, Mastodon, postActive, pump.io and all those I've forgotten ;-)

Image/photo


#ilovefs
Rabuzarus
10 meses atrás
OK I have to change to the developer branch. So this tech preview will be no longer available.
Fabio
10 meses atrás
jasongorman wrote the following post:
Soon it will be easy to spot a software developer. They'll be the ones in the self-driving cars looking utterly terrified.
Fabio
10 meses atrás de Friendly
Got into Distributed Web dev room. Missed first two talks because wake up late and room was full... #fosdem2017
Rabuzarus
10 meses atrás
Tech Preview - Frio Album Gallery
@Friendica Support @Friendica Developers @UX Watchdogs @Friendica Theme Developers

LIke I mentioned already in other threads the last really "big" missing thing in the Frio theme is the template for the photo view (and related templates like for uploading and editing photos). I was very unsatisfied how the other themes do handle the photo view. Though I'm not active at the commercial social networks I like how fb and g+ does presenting the images in the album.

Last year, I often sat in front of my computer for a long time and tried several approaches to have a modern photo view in Frio but I always had to give up because it didn't work.

It seems that I have made some progress now.

Imagem/foto

Imagem/foto

What you see are the first steps (early alpha). There are still many things which need to be implemented. And many things to polish. This will last some time. So don't expect a pull request in the near future. Help is always welcome (especially for polishing the js part). Anyone who is interested can find the code at https://github.com/rabuzarus/friendica/tree/20170121_-_lightGalary_for_photo_view

If you want to see it in action you can visit my profile page (photo section). Select an album in the left side albums widget (you need to be in a album - it won't work for the "recent photos" page at the moment). Try to open a picture in a album.
If it doesn't work you maybe have to refresh your browser cache.

Note: This branch (and with this the photo gallery) will not be forever on my server. After some time I will switch back to the original developer branch to have the latest fixes/features.

#Frio #development #TechPreview #testing
Rabuzarus
11 meses atrás
@Friendica Developers @Friendica Support @Friendica Theme Developers

There seems to be an issue with the frio theme and code blocks.

https://soc.beardyunixer.com/display/0c5b5b9042588fabdfa997d874862272 seems to break frio on mobile view (width of the nav, nav isn't sticky anymore).

I did some test and I identified the <code> element of my second comment as the root of the problems.

If I delete it from the DOM and toggle between normal and mobile view erverything is OK.
If I disable the css setting white-space: pre-wrap for the code element everything is also OK.

So the last hour I tried to find other posts with code blocks to reproduce the behavior but other code blocks doesn't seem to produce this behavior.

If someone does have any ideas why this happen and how to fix it he/she is very welcome to help me
Fabio
11 meses atrás

FOSDEM 2017

FOSDEM 2017 - Home




FOSDEM is a free event for software developers to meet, share ideas and collaborate.

Every year, thousands of developers of free and open source software from all over the world gather at the event in Brussels.

No registration necessary.

Início: Sexta Fevereiro 03, 2017 @ 19:00

Término: Domingo Fevereiro 05, 2017 @ 19:00

Localização:

50.81427 4.38212

ULB Campus Solbosch, Bruxelles, Belgium

Fred
11 meses atrás de Hubzilla
Ah essas aranhas e suas genialidades... ;-)
Spiders ‘Tune’ Their Webs Like Guitar Strings...



Researchers from the UK and Spain have shown that spiders are capable of tuning their webs, allowing these eight-legged critters to receive specific information about their environment, including the presence of prey, potential mates, and the structural condition of the web.

Similar to the strings of a finely tuned instrument, each strand of spider silk transmits vibrations across a wide range of frequencies, which propagates throughout the web. This allows spiders, who don't see very well, to sense the integrity of their webs, and to detect the presence of prey and mates.

Scientist have known about this for years, but they weren't entirely sure about the precise characteristics of these vibrations, or if spiders had any control over this cool architectural feature. To learn more, researchers from Oxford University and Universidad Carlos III de Madrid explored the links between the material properties of spider webs and how vibrations propagate through the silken strands. Their study, which now appears in the Journal of the Royal Society Interface, demonstrates that spiders can in fact tune their webs to transmit specific messages.

Imagem/foto

Using high-powered lasers to measure the ultra-small vibrations, the researchers isolated three particular web features that allow spiders to turn their traps into data transmitters: web tension, silk stiffness, and overall web architecture. Importantly, spiders are able to manipulate all three of these characteristics.

For example, both transverse waves, i.e. waves that vibrate at right angles to the direction of its spread, and longitudinal waves, i.e. waves that vibrate in the direction of propagation, can be adjusted, or tuned, by the spider when it adjusts the web's tension and the stiffness of the web's outer rim and spokes, known as the dragline. In fact, spider webs are so customizable, the researchers hypothesize that specific features of silk evolved for this very purpose.

" [We]propose that dragline silk [features]may have evolved as a control mechanism for these multifunctional fibres," write the authors in their study. "The various degrees of active influence on web engineering reveals the extraordinary ability of spiders to shape the physical properties of their self-made materials and architectures to affect biological [i.e. data transmission] functionality."

Imagem/foto

So when a spider builds its web, it's not just constructing a trap and blindly hoping its design will lend itself well to the propagation of specific vibrations. Rather, the spider is working like a diligent engineer, building a stable web that performs its primary trapping function, while also optimizing the web's ability to relay critical information. It's essentially constructing—and then fine-tuning—its web to be a multi-function device.

At the same time, the spider has to constantly balance trade-offs between the structural integrity of the web and the web's ability to transmit signals at specific frequencies.

Wow. Spiders are truly amazing.

[+]

#spiders #tuning #web
Tim Schlotfeldt
11 meses atrás
Mmh, meinst du bei mir ist was kaputt? Oder sollte ich auf den develop branch wechseln?
Michael Vogel
2 anos atrás
Ideas for refactoring
@Friendica Developers @Friendica Support @Friendica Hackathon I just rewrote the part that is responsible for creating Friendica messages.

A last minute change was that this is now a class and the class functions are called statically. I'm using the class here mainly as some kind of namespace and to hide private functions that needn't to be exposed.

I'm planning to do the same for OStatus and Diaspora.

I like the idea of using classes as namespaces. I think we should have a look at the whole structure of the system.

We could do like this:


  • Files under /mod should never be included from other files
  • Most code should be removed from files under /mod and should be transferred to /include
  • There should be a class per file under /mod (if there are more than the default functions)
  • Functions in that class should be defined as "private" per standard. (With exeception of the ones, that are called from /mod)
  • Functions of general use have to be moved to other files
  • Functions should be separated between "frontend" and "backend" if possible. This would reduce the memory load.
  • In these files we are using classes as well (for example: we could create a class named "network", so that we had the functions "network::get" and "network::post" instead of "z_fetch_url" and "post_url")
  • Our existing "App" class should be modified so that it can handle with static calls. This is better than having to transmit the variable $a at every place or to fetch it via "get_app()".



What do you think?
Chris Case
2 anos atrás
Moved OpenMindSpace
Hey Guys,

I completely moved OpenMindSpace, which houses the Friendica Developers profile. My VPS had just gone to shit and I figured the best thing to do would be to rebuild from scratch.

For some reason, without any changes on my part that I'm aware of, NGINX/PHP5-FPM was running very sluggish and often timing out. Something was clearly not right, probably in the configurations.

With a fresh start I'm already seeing better results and now I'm on the next version of Debian.
Tobias
11 meses atrás
Somebody should be elected to ensure that the local repository all the devs just had pushed towards, is synced with an remote repository as well.
mais recente antigo