configuration

How to get MediaWiki running?

I configured the „LocalSettings.php“ file of an MediaWiki instance and got an confusing php error message on entering the landing page of the wiki. The solution of the problem was the line ending of my windows operating system. I pasted the config file with copy paste to the Linux terminal which included the carriage return and line feed ("\r\n"). The php parser was not able to resolve the carriage return and threw an random error. After cleaning the line endings everything worked.

Two options for fetching data are possible: FetchType.EAGER and FetchType.LAZY. Collections are loaded EAGER when they are fetched fully at the time their parent is fetched. That is, with nested classes the whole class hierarchy is fetched, even if all the subentities (children) are not needed.

With the LAZY option, data is loaded on-demand, e.g. when a certain entity is requested explicitly. Thus, when the parent entity is loaded with the lazy option, the children entities are not loaded per default. Only in case they are really needed (e.g. a certain method was called via GUI).
Here is an example how entities are marked to be loaded lazily:

@Entity
public class Parent {

@Id
private String id;

private String name;

@OneToMany(fetch = FetchType.LAZY)
private List children;

// etc.
}

Technology:

Configuration of a database connection in a JEE application

I intend to create a JEE application with tomcat as the webcontainer. I will use postgresql as a database, and will use Eclipse as IDE. Where can I configure how to access the database?

One solution to this problem is:

-Open Chrome on your computer.
-At the top right, click More and then click configuration.
-At the bottom, click Advanced settings.
-In the "Passwords and forms" section, click Manage passwords.
-In the "Saved passwords" section, on the right side of the website, click More and then click on Delete

E-Mail Filters

Many people get huge amounts of mail every day. It can be painful to sort, categorize and handle all those mails manually. Furthermore, it costs a lot of valuable time that you could spend elsewhere. However, there is an automatic approach that can save you a lot of this time: E-Mail Filtering <strong>Challenge:</strong> <ul><li>Choose an E-Mail client (either desktop client or web mail)</li> <li><strong>Create the following filters:</strong></li><li>a filter that automatically labels mails from tuwien.ac.at with "TU" or moves them to a folder called "TU"</li><li>a filter that sends unwanted mails (containing words of your choice) to the spam folder</li><li>a filter that marks e-mails containing the words "Knowledge Management" as important (e.g. by flagging or starring)</li></ul>

Reload Properties File (via ResourceBundle)

The Problem can be reproduced by doing following steps: 1. Step.: Loading a Properties File via ResourceBundle rb = ResourceBundle.getBundle("file.properties"); 2. Step.: Changing/Adding values to the properties file and saving it. 3. Step.: Accessing/Reading the properties file again. Step 3 is not trivial as ResourceBundle keeps the properties file cached. Therefore you can't access the new values of the properties file. Though there is a function "rb.clearCache()" which should do excatly what I want it does not! work. Therefore a workaround is needed.

distribute firewall settings

<p>In networks of Windows workstations whether at home or at work you might want to use same settings and exceptions of the windows firewall on different workstations and not enter same settings on each pc over and over again. Some application or services need several ports to be opened to function correct. What are possibilities to distribute these carefully defined settings on several workstations?</p>

How to change the MAC address

<p><p>Once I tried to change my PC<span style="mso-bidi-language: AR-SY;">`s </span>Mac address (I had internet access account according to a specific IP address and the MAC address)&nbsp;I tried to use another PC with the same account information but I couldn&rsquo;t because of the Mac address, I had all the account information except the Mac address...</p></p>

Easy access to MySQL data on shared hosting service

<p>MySQL databases are often the main data-source of web applications when it comes to shared hosting services with very limited possibilites (no system service support, no scheduling, no in-memory database, ...). Often, management or visualization of such databases is not easily done, since no admin utility is installed, no remote connections to the database are allowed, and access by the sql binary (via SSH) is not user-friendly. A better way to manage databases visually in such cases is the challenge.</p>

configure an access point

<p>Last time I wanted to install / configure my wlan router at home. Because I have never done it, it was a really challenge for me. However I did it.</p>

Pages

Subscribe to configuration