2004-07-13
Some cool bash/Linux stuff: If you're using bash, put a line TMOUT=600 in /root/.bashrc. The user will . . . /mnt/es-groups/EWII for the project files. To shorten typing, I created the following line in my .bash_profile . . . file: export CDPATH=".:/mnt/es-groups/EWII" When you type cd . . . script and press enter. A new shell will be started. Now do whatever you like. When you're done, press . . .
1K - last updated 2005-03-19 13:41 UTC by 6615
2004-07-31
I'm currently reading The Pragmatic Programmer and although it contains a lot of those things that are . . . true gems in there as well. Especially the part about tracer bullets. The project I'm currently . . . One of the flows I'm working on, has to support different production stages; it goes too far to . . . stage and when the flow ran flawless from start to end, we would build uit each step in the flow . . . to support the next stage. Hunt and Thomas (the Pragmatic Programmers) . . .
2K - last updated 2005-03-19 11:14 UTC by 6615
2004-08-06
''This is for unredeemed hackers who must see the raw bits to be happy.'' -- Solaris truss man page They . . . was in a hurry when I coded this method and I certainly didn't. The error is that the reader needs . . . were the open calls that had no counterpart. Since the arguments to the system calls are also . . .
3K - last updated 2005-03-19 11:14 UTC by 6615
2004-09-02
You'd like a nice way to order the output of (Oracle) SQL in an arbitrary way? For instance, if you query . . . decode(ast.extension, 'pdf', 1, 'raw', 2, 0) sort_order from assets ast order by sort_order The syntax . . .
1K - last updated 2005-03-19 11:13 UTC by 6615
2004-10-15
== How to remotely debug using jdb == First compile your java code with the '-g' option. Deploy the compiled . . . code to your server. Then start the virtual machine on the server with debugging . . . parameters: -Xdebug -Xrunjdwp:transport=dt_socket,address=6000,server=y,suspend=n Then either . . . In the first case, go to Tools, Project Properties, flip open Debugger, click Remote and check Remote . . . at. Compile and deploy your code again and start debugging again. When the JDeveloper debugger acts . . .
3K - last updated 2005-03-19 10:51 UTC by 6615
2004-11-08
I've done a presentation on SSH for a group of Unix beginners. I've put it on-line since it might be . . . customer. http://www.vankuik.nl/bart/docs/ssh_intro.ppt . . .
1K - last updated 2005-03-19 10:50 UTC by 6615
2005-01-18
As an addition to the previous post, I'd like to add that issuetracking is of course just one facet of . . . a whole project. Now, I'm not yet an expert on this, but Asa of Mozilla fame definitely is. . . .
1K - last updated 2005-03-19 09:41 UTC by 6615
2005-01-21
Outside work I received a question: "We need a WebDav implementation which is complete, has admin screens . . . Kit). That API is basically split into two parts: one part for the quick-and-easy tasks of copying, . . . deleting, moving, etc. and a second part which goes deeper and with which you can really . . . while you don't necessarily need the baroque part of the interface, it's there as well as its more . . . simple counterpart. And besides that, the whole product is pretty unique. . . .
2K - last updated 2005-03-20 07:33 UTC by 6615
2005-03-22
When you have the time, look around at [http://www.c2.com/ C2]. It's one of the oldest wikis around. . . . this wiki is Ward Cunningham. At [http://www.artima.com/ Artima], Bill Venners did an [http://www.artima.com/intv/wiki.html . . .
1K - last updated 2005-03-23 08:39 UTC by 6615
2005-04-03
Today I put a small hack in the single script that's called [http://www.oddmuse.org/ Oddmuse], on which . . . runs. It was one of my TODOs for some weeks. [bart@room wiki]$ diff wiki.cgi wiki_old.cgi 454,456d453 . . . =~ s/\-\-/—/g; < $text =~ s/\\\-/-/g; [bart@room wiki]$ A hyphen with a backslash in front of . . . an en-dash. All as per [http://www.alistapart.com/articles/emen/ this article]. And the best thing . . . in under 15 minutes, including skimming the article and adding this weblog entry. There are loads . . .
2K - last updated 2005-04-12 18:14 UTC by 6615
2005-04-04
I did a small presentation on the subject of internationalization [http://www.vankuik.nl/bart/docs/i18n_part1.ppt.zip . . . tell you more. I plan on doing a second part in the future. Stay tuned. After I did the presentation, . . . Unicode support in J2SE 1.5]. Worth a read, whether you're a Java . . .
1K - last updated 2005-04-05 19:45 UTC by 6615
2005-04-09
(Normally entries are in English, but this is applicable to Dutch users only). Om te oefenen voor het . . . de gehele applicatie getoond in een nieuw, apart venster. De applicatie is dan prima te gebruiken. . . . dat andere 16-bit applicaties nu ook in een apart venster verschijnen, maar het is niet erg waarschijnlijk . . .
2K - last updated 2005-04-10 08:00 UTC by 6615
2005-04-14
I regularly buy a new version of Codeweavers' [http://www.codeweavers.com/products/cxoffice/ CrossOver . . . code is open source, you basically pay for support and the fact that Wine is repackaged in a user friendly . . . an excellent UML modelling package. The short story is that EA runs pretty well on Linux. They . . .
2K - last updated 2005-04-14 14:57 UTC by 6615
2005-04-15
I've put an article on [[RFID]] online. I wrote this late last year but it's in the picture again with . . .
1K - last updated 2005-04-15 14:59 UTC by 6615
2005-04-16
At work, we're using [http://www.atlassian.com/ Atlassian's] Jira. One of their [http://www.theserverside.com/symposium/bios.html#mike_cannonbrookes . . . Highly interesting! Of course, the always entertaining BileBlog had [http://www.jroller.com/page/fate/?anchor=tsss_day_2_pluggable_webapps . . .
1K - last updated 2005-04-16 09:36 UTC by 6615
2005-04-24
Today, [http://slashdot.org/ Slashdot] [http://developers.slashdot.org/article.pl?sid=05/04/24/0343224&tid=156 . . . Forrester report on aspect-oriented programming (AOP)]. It was compared . . . then I'm inclined to just salute the effort. True visionaries take a broader view: Jim Coplien . . . wrote an article in 2001 on [http://www1.bell-labs.com/user/cope/Patterns/Symmetry/VSLive2001/FutureOfLanguage.html . . . the [http://java.sun.com/developer/technicalArticles/Interviews/livschitz_qa.html next move in programming] . . .
2K - last updated 2005-04-29 06:32 UTC by 6615
2005-05-26
Adding search engines to Firefox is so easy that it's embarrassing. As noted before, I'm using [http://www.atlassian.com/software/jira/ . . . Search" method="GET" action="http://yourbox:port/secure/QuickSearch.jspa" queryEncoding="utf-8" queryCharset="utf-8" . . . action, i.e. enter the correct hostname and port (if something else than the standard port 80) * . . .
2K - last updated 2005-06-22 17:17 UTC by 6615
2005-06-09
(English readers: this is a comparison between Dutch and US hosting companies offering Virtual Private . . . van goedkope aanbieders van Linux VPSen (Virtual Private Servers). Ideaal voor techneuten die . . .
1K - last updated 2005-06-09 08:17 UTC by 6615
2005-08-06
A personal note: you have all probably heard or seen short newsblurbs on the heavy rain in India on the . . . * [http://timesofindia.indiatimes.com/articleshow/1191909.cms Slideshow], courtesy of the . . . reaches 1,000] Finally, a friend in the area reported that Bangalore and Hyderabad (where the brunt . . . with a tip: if you want to keep track of a certain area, go to [http://timesofindia.indiatimes.com/ . . .
2K - last updated 2005-08-06 08:30 UTC by 6615
2005-08-26
Messing with SOAP? Using Axis? Need to debug it? I assume you have a client and a server and want to . . . standard Unix tools. To view client output: * Start netcat with "nc -l -p 8080". To save the output, . . . "|tee output" * Run your client, pointing to port 8080 To view server output: * Start your server, . . . which listens to, say, port 8080 * Send your saved output to the server, like . . .
1K - last updated 2005-08-26 12:58 UTC by 6615
2005-09-15
I'm currently wrestling with [http://maven.apache.org/ Maven] and I have several gripes. I'm using version . . . inconsistent. Then [http://maven.apache.org/start/ten-minute-test.html ten-minute-test] for Maven . . . this one for example]) specify ''src/java'' . . . war, so you use the [http://maven.apache.org/start/ten-minute-test.html ten-minute-test] directory . . . maven.war.src] setting for your project.properties . . .
6K - last updated 2005-10-26 11:07 UTC by 6615
2005-09-26
Because of my recent wrestle with Maven, a friend pointed me to [http://www.jroller.com/page/fate/20050815 . . . I see maven crud splattered all over. My heart sinks as I see the 3 tongued kisses of death; maven.xml, . . . project.xml, and project.properties. This cannot possibly go well.'' . . .
1K - last updated 2005-09-26 12:45 UTC by 6615
2005-10-06
A colleague offered advice on setting up an Excel spreadsheet which is useful for managing features in . . . Excel tips: * [http://www.joelonsoftware.com/articles/fog0000000245.html Painless Software Schedules] . . . * [http://www.joelonsoftware.com/articles/fog0000000035.html Painless Functional Specifications] . . .
1K - last updated 2005-10-09 10:24 UTC by 6615
2005-10-26
More Maven findings. I've said before that in my humble opinion, Maven is too much in a state of flux . . . to start using it in projects. I think this shows itself . . . to copy your jars, wars and ears (''artifacts'' in Maven-speak) via scp or sftp to some . . . These need to be defined in your project.properties, see the [http://maven.apache.org/reference/internal-repositories.html . . . a file in your home directory called build.properties and add the following line to it: maven.privatekey=/home/user/.ssh/myprivatekey . . .
4K - last updated 2005-11-04 11:47 UTC by 6615
2005-11-04
Maven, oh, Maven. Funny how much bugs this package brings up. And I don't mean its own bugs! In the previous . . . a project which used the exact same properties, but uses sftp. Of course, Maven flunks out with . . . difference of a few files and besides font.properties stuff, they were related to security: $ diff . . . < ./jre/lib/old_security/cacerts < ./jre/lib/old_security/java.policy < ./jre/lib/old_security/java.security . . . < ./jre/lib/old_security/US_export_policy.jar < ./jre/lib/security/jce1_2_2.jar < ./jre/lib/security/sunjce_provider.jar . . .
3K - last updated 2005-11-04 13:29 UTC by 6615
2005-11-23
Today, I'd like to talk to you about Maven and rights. Maven must be able to deploy to a central place, . . . [echo] maven.repo.list is set - using artifact deploy mode Will deploy to 1 repository(ies): . . .
1K - last updated 2005-11-23 15:59 UTC by 6615
2005-11-25
ibiblio.org was offline today. This meant my build didn't work. Of course, no error was given, which . . . the remote repository line in the project.properties. This goes to show how important it is to display . . .
1K - last updated 2005-11-25 14:39 UTC by 6615
2005-12-08
After firewalls are in place, you're not done securing JBoss 3.2.6. At the least, passwords should be . . . and replace the second "admin" by your favorite . . . and replace the second "admin" by your favorite . . . through the above steps and much more. (Re)start JBoss and go get your brownie points from the system . . .
2K - last updated 2005-12-08 12:55 UTC by 6615
2005-12-14
Awwww, Maven, you kill me, you really do!! You maintain your Maven project its documentation in a simple . . . encoding="utf-8"?> <document> <properties> <title>Release notes</title> </properties> <body> . . .
1K - last updated 2005-12-14 09:45 UTC by 6615
2006-02-01
I've been working with Subversion, especially from within Eclipse using the Subclipse plugin. I had earlier . . . was used to the CVS plugin. When I wanted to start working on a project that was kept in CVS, I used . . . Appendix A of the SVN manual for CVS converts] = Conclusion = All in all, I have the feeling . . . However, if you're fed up with CVS then starting small with one project is worth it. Nice link: . . .
5K - last updated 2007-08-19 08:15 UTC by 6615
2006-02-13
''Note: I've expanded this entry in article [[Configuration]].'' In a non-trivial project, several programming . . . group=_GROUP_ bindir=/home/_USER_/bin As part of your Makefile or Ant's build.xml, run ''m4'' . . .
1K - last updated 2006-03-20 20:10 UTC by 6615
2006-02-23 Pictures from TELIS Project
Some pictures from work, all related to the [http://www.sron.nl/index.php?option=com_content&task=view&id=99&Itemid=238&lang=en . . . which contains FPGA and talks through serial port to PC hardware * LSU -- Local Source Unit, board . . .
2K - last updated 2025-01-14 19:33 UTC by bartvk
2006-02-27
Some time ago, I translated an article called [[Evolutionary_Database_Design_Dutch]], originally written . . . by Martin Fowler and Pramod Sadalage. Now it seems that . . . this article has been fleshed out into a book! On O'Reilly's . . .
1K - last updated 2006-02-27 08:30 UTC by 6615
2006-03-01
I've started using [http://check.sourceforge.net/ Check], a unittesting framework for plain old C. The . . . output XML], which is useful for reporting on nightly builds. I've created an XSLT to convert . . . to your needs. You can generate such a report on the commandline with a quick $ xsltproc check_unittest.xslt . . . check_output.xml > report.html . . .
1K - last updated 2006-03-08 11:40 UTC by 6615
2006-04-24 SIRs for dummies
Previously, I showed some [http://www.vankuik.nl/cgi-bin/wiki.cgi/2006-02-23 pictures on the electronics] . . . The FFO generates a clean signal with a certain power, which lifts the grey line up. When combined . . . the control line. So what do we do: we set a certain current on the control line, then for that current, . . .
4K - last updated 2006-05-15 15:14 UTC by 6615
2006-04-25 SIR acronym
In the [[2006-04-24_SIRs_for_dummies|previous entry]], I told that the acronym SIR stands for Superconducting . . . actually ''means''. First the superconducting part: when you want to measure a very weak signal, at . . . need to be supercooled. Now the receiver part: the signal which is measured is between 500 to . . . mixer is located. Finally, the "integrated" part of the acronym. This chip contains a SIS mixer as . . . GHz, the frequency we want to measure on. The fourth and final part on the SIR is the Harmonic Mixer . . .
5K - last updated 2006-05-15 14:04 UTC by 6615
2006-04-27 Perl modules and CGI
Suppose you have a bunch of Perl scripts and modules. Those modules have differing versions and you don't . . . to the directory where you install the particular version of the modules. You could add the . . . separate multiple directories with a colon. export PERLLIB="$HOME/lib/mymodules-rev316" This can be . . . with a colon. SetEnv PERLLIB "/home/bartvk/lib/mymodules-rev316" This variable can be placed . . . cgi-script </Directory> <Directory /home/bartvk/public_html/projectWorldDomination/cgi-bin> SetEnv . . .
2K - last updated 2006-04-27 08:39 UTC by 6615
2006-06-13 Article on SRON
A (Dutch) article on SRON appeared in AD/Utrechts Nieuwsblad: [[sron_ad_jun_2006.pdf]] . . .
1K - last updated 2006-06-13 06:59 UTC by 6615
2006-07-03 PLL locking
If you've seen the previously posted video, you might wonder what happened. What was shown, was a [http://en.wikipedia.org/wiki/Spectrometer . . . is shown which basically highlights the upper part of the complete schema [[hm_ffo_pll_schema.png]]. . . . the LSU power influences the length of particular spikes. [[image:pll_locking2.png]] Another . . . with, is the bias of the HM. The bias is important, because this controls the way how the HM mixes . . . The schematic below highlights the lowerleft part of the schema [[hm_ffo_pll_schema.png]]. We get . . .
3K - last updated 2006-09-19 07:03 UTC by 6615
2006-10-03 Mod perl and Slackware
''Note: these steps are obsolete. In the [[Comments_on_2006-10-03_Mod_perl_and_Slackware|comments]], . . . mod_perl using the patched Apache that's particular to Slackware. First we download Slackware's . . . line that says "<tt># build apache</tt>", insert the following lines: # build mod_perl cd $TMP/mod_perl-1.29 . . .
2K - last updated 2006-10-04 08:43 UTC by 6615
2006-10-04 Mod perl and Slackware part 2
The previous day, I thought I had Apache with mod_perl working on Slackware 10.2, but alas, funny segfaults . . . Add the following line to .bash_profile: export PERLLIB=$PERLLIB:$HOME/lib/perl5/5.8.6:\ $HOME/lib/perl5/site_perl/5.8.6" . . . and: * (if you're resource-bound) change '''StartServers''' to 2, '''MinSpareServers''' to 1, '''MaxSpareServers''' . . . ~/.bash_profile. Add the following line: export PATH=$HOME/apache/bin:$PATH Logout and login. Type: . . . $ apachectl start $ cat apache/logs/error_log It should say something . . .
3K - last updated 2006-10-24 06:56 UTC by bvankuik
2006-10-05 Character set encoding
Today, I received an e-mail from Amazon: From: "Amazon.co.uk" <auto-shipping@amazon.co.uk> Subject: Your . . . been sent to: <<< cut out some uninteresting parts >>> Ordered Title Price Dispatched Subtotal ----- . . .
2K - last updated 2006-10-05 09:12 UTC by bvankuik
2006-10-17 Gigabit network cards
At work, Tiemen Schut tested the performance under Linux for two Gigabit network cards, a D-Link DGE-550SX . . . || 80%|| 23.000|| To recreate the test: * Start ksysguard * Create a new tab * In the left pane, . . . * Drag the 'Total' to the new tab * Start a heavy network session, perhaps FTP'ing a large . . .
1K - last updated 2006-10-17 13:28 UTC by bvankuik
2006-10-20 Measuring FFO offsets
The electronics man of the Telis project came up with a script to measure any offsets in the DAC and . . . for ADC channel II the precision is not as important as ADC channels I and III. We simply assume that . . .
2K - last updated 2006-10-24 12:57 UTC by bvankuik
2006-10-23 Keeping an eye on logs
When developing, you often want to keep an eye on several logs at a time. ''gnome-terminal'' is ideal . . . or ''--tab-with-profile=...'' option to set a particular profile for logging. You could give these . . . a special background color to set them apart from the other terminals. [[image:gnome-term-logging.png]] . . .
2K - last updated 2006-10-23 07:49 UTC by bvankuik
2006-11-16 Checking form fields
When you're creating dynamic web pages with forms on them, you'll probably not forget to validate the . . . all, the user can't edit the values. Novell certainly doesn't. Novell has a piece of software called . . . sudden, we have an extra feature where we can sort out e-mails according to the contents of the CC: . . .
2K - last updated 2006-11-16 15:35 UTC by 6615
2006-12-07 Electronics interface for Telis
When I want to read out the settings from the electronics boards of the Telis project, I have multiple . . . in one big chunk * Third is to query a special virtual setting That last option actually involves querying . . . ID number 0. It's loaded into the server upon startup and actually runs some Perl code that's defined . . .
2K - last updated 2006-12-07 12:50 UTC by bvankuik
2007-01-09 Battery problem
One of the current problems in the current project is the battery pack. According to the electronics . . . with a specification that they deliver up to a certain voltage for a certain temperature. The spec sheet . . . in a control loop, the second pack makes certain that the main battery pack (feeding the electronics) . . .
2K - last updated 2007-01-23 08:39 UTC by 6615
2007-02-02 Branching in SVN with existing work
This week I had the situation where I was asked to come to another office (in Groningen) and do some . . . while I was in the middle of an integration effort, going up to release 605. I couldn't bring the current . . . source with me, I had the situation where you started to hack and decided afterwards that creating a . . . separate branch for work outside integration efforts" Committed revision 606. Go to another directory, . . .
2K - last updated 2007-02-02 13:59 UTC by bvankuik
2007-03-11 Bug in software or hardware
This week was a very rewarding week: we squashed a bug which seemed to elude the very best minds -- these . . . ADC]. When we made sure that no current was running . . . measure an offset and store it in a register. Further reads will then take this offset into account. . . . reproducible. Then it became time to start thinking. We tried to determine the location of . . .
4K - last updated 2007-03-12 08:46 UTC by bvankuik
2007-05-16 Atari assembly
A colleague of mine did the following demo: http://www.youtube.com/watch?v=PbMH5FBVbl4 Here is the original . . . 3D-modelled car is also "real" 3D, with a viewport. . . .
1K - last updated 2007-05-16 07:27 UTC by bvankuik
2007-06-22 Configuring ZABBIX and IPMI
Recently I installed RedHat AS 5 on a PowerEdge 860. For management, we use Zabbix; if you know Nagios . . . sdr | grep "Planar Temp" | awk '{print $4}' Restart the agent: # service zabbix_agentd restart Go to . . . the zabbix server. Restart it (don't know if this is necessary): # service . . . zabbix_server restart Go to the zabbix server web frontend, menu Monitoring . . . line, there's a hyperlink to a pretty stripchart. You can add new lines as you wish; repeating the . . .
2K - last updated 2007-06-22 15:24 UTC by 6615
2007-08-05 Adding salt to Auth class
If you're using PHP, you probably use or at least know of the PEAR classes at http://pear.php.net/. It's . . . is the Auth class, which gives you perfect start if you need username/password screens for your application. . . .
2K - last updated 2007-08-05 08:08 UTC by 6615
2007-08-09 Fiske steps
I've previously [[2006-04-24_SIRs_for_dummies|explained the SIR chip]], so I'll keep it short and say . . . When you combine these two circumstances at a certain FFO bias voltage (and thus a certain frequency), . . . what I've gathered so far, a Fiske step is a certain voltage range that cannot occur when you set . . . a certain current and a certain magnetic flux on a circuit. . . . wanted FFO voltage # If it's too big: quit # Start lower boundary loop (see below) # Decrease FFO current . . .
3K - last updated 2007-08-20 12:31 UTC by 6615
2007-08-20 Configuring SSH daemon
If you want to configure the SSH daemon on a remote machine, you probably don't want to risk the chance . . . Nowadays, properly configured machines can restart the SSH daemon while retaining the running connections. . . . don't want to rely on that, read on. We want start a separate, temporary SSH daemon. [http://matt.ucc.asn.au/dropbear/dropbear.html . . . -t rsa -f key.rsa The server can be started and we'll use some high port so as not to get . . . in the way of other services. Port 31337 is used below: remoteserver$ sudo ./dropbear . . .
2K - last updated 2007-08-20 20:06 UTC by 6615
2007-09-26 Fiske steps testing
We did some testing of the new Fiske step software yesterday. To see how the device (the SIR chip) behaves, . . . Now if we want to have the FFO beam at a certain frequency, we calculate which voltage we need . . . CL must be reset and increased again until a certain point. So there are two loops going on; we loop . . . Fiske step. What you can see is that if you start looking at 32 mA for a good Fiske step, you will . . .
5K - last updated 2007-09-26 14:16 UTC by 6615
2007-10-26 PEARs HTML QuickForm Controller goodness
I'm in the middle of coding up a multi-page wizard-style bunch of PHP pages. The MVC pattern is implicit . . . painful. Because the controller and the view part are so loosely coupled, it can be troublesome when . . .
3K - last updated 2007-10-27 07:39 UTC by 6615
2007-11-15 diff tools
Previously, I've [http://debaday.debian.net/2007/05/02/meld-graphical-tool-to-diff-and-merge-files/ written . . . available and has a diff tool built-in. Just start vim as follows: $ vimdiff file1 file2 Screenshot: . . . Visually it's pretty self-explanatory. Red parts are not in the other file, blue ones are empty . . . parts where the other file has a red part. What you probably . . . This is valid when the cursor is on a red part. || ||do ||'''d'''ifference is '''o'''btained from . . .
1K - last updated 2007-11-15 11:02 UTC by 6615
2007-11-19 Finding an optimum
As mentioned [[2007-09-26_Fiske_steps_testing|before]], we need an algorithm to find the correct setting . . . control line (CL) current. The routine then starts. It's divided in two parts: * Initial setup to . . . limits, let's call these (FFO) Vmin and Vmax * Further fine-tuning that lowers the FFO bias and does . . . to temperature changes. For the first part, it lowers Vmin by ten percent. The FFO bias current . . . has failed. These jumps occur, because above a certain point in the I/V curve for that particular FFO, . . .
5K - last updated 2007-11-22 17:00 UTC by 6615
2007-11-28 Testing optimization
After running the Fiske macro for the setup part, we have a nice value for the FFO Control Line (CL) . . . attempting to run the Fiske macro. This is important because otherwise with a second scan we would . . . culprit. The next problem was that the macro reported not being able to find the FFO voltage start. . . . of the macro, I found this funny: the macro reported that it tried to use the previously found settings. . . . In other words: the previous run found a certain voltage when setting FFO bias and CL. Trying . . .
6K - last updated 2007-12-06 17:45 UTC by 6615
2008-01-02 Fiske results
Finally some visual results from the Fiske step routine. [[image:fiske_results1.png]] This image shows . . . left is completely off :-) To fix this, the starting point (the most left point) of each scan should . . . scan. The first point that's just over Vstart (see previous entries) is probably very nice. What's . . . tries to find a good point in the scan part of the macro -- when actually a good point could . . . reside in the find up part of the macro. So this problem is fixed by searching . . .
2K - last updated 2008-01-02 16:05 UTC by 6615
2008-01-30 Fiske scan analysis
I've written an analysis routine to see how the results of a particular Fiske "scan" hold up. Such a . . . scan means: set a particular FFO current and an FFO countrol line current, . . . meaning a bunch of voltages. In such a scan, certain areas would never contain values -- search this . . . The first couple of lines (starting at the top) show the results of the setup phase . . .
5K - last updated 2008-02-07 15:04 UTC by 6615
2008-02-07 the WTF count
As inspired by the comic [http://www.osnews.com/story/19266/WTFs_m WTFs per minute], we'd thought that . . . WTF at the end of the line. If you're a mere mortal user, copy this file to your .vimrc directory . . .
1K - last updated 2008-02-08 09:29 UTC by 6615
2008-03-31 Filtering on packet size
I was asked recently to check how UDP packets could be filtered which don't have any contents. The reason . . . as follows: $ sudo iptables -A INPUT -p udp --dport 6500 -m length --length 28 -j REJECT Why the length . . . Anyway, I've tested the above using netcat: Start service listening to port 6500 on machine 1: $ nc . . . -p 6500 Open a new terminal on machine 1 and start a traffic dump: $ sudo tcpdump -X -vv "port 6500" . . .
2K - last updated 2008-03-31 14:53 UTC by 6615
2008-04-16 Qt database widgets
I've been playing with a couple of Qt classes to get an easy-to-use SQL user interface. The combo QTableView . . . can be stuck over QSqlTableModel to transform, sort or filter data when it comes in or goes out of the . . .
2K - last updated 2008-04-21 12:43 UTC by 6615
2008-04-16 Qt database widgets part 2
Last time I got away with creating a custom QItemDelegate but not this time. I need a radiobutton for . . .
1K - last updated 2008-04-21 14:53 UTC by 6615
2008-05-06 Recovering from a hacked server
A friend of mine had a problem with a server in which a particular PHP script kept changing, including . . . logs * Checked Apache's access logs for each virtual host, paying attention to POST requests * Checked . . . to see what the vulnerabilities were for this particular server its OS, http://www.securityfocus.com/vulnerabilities . . . at the end: echo '<iframe src="http://apartment-mall.cn/ind.php" width="1" height="1" alt="YTREWQhej2Htyu" . . . this turned out it's a pretty common attack. Articles suggest it might be a compomised FTP account. . . .
2K - last updated 2008-05-08 06:28 UTC by 6615
2008-05-21 Code review
I'm doing a code review for our partner in the current project. In a recent integration test, we found . . . Linux. This PC104 has a bunch of serial ports. They have a custom I/O card, let's call it Raba1. . . . This card has two serial ports. The software reviews the incoming data from port . . . sends the appropriate commands on the TTY1 port. Problem is, sometimes the software just halts for . . . It basically runs in a big loop, at the start of which is a select() statement which monitors . . .
2K - last updated 2008-05-21 18:11 UTC by 6615
2008-05-25 Finding open ports
When tightening up security on a Linux server, one of the first things the system administrator does, . . . is find out which ports are open. In other words, which applications are . . . listening on a port that is reachable from the network and/or internet. . . . ID and name of the application to which the port belongs || Netstat sometimes pauses during output. . . . of a host name, netstat tells us that the port is listened to on ALL interfaces, not only the local . . .
3K - last updated 2008-05-25 20:25 UTC by 6615
2008-05-31 Test for a sysadmin
As part of an interview for a new system administration, we asked the following questions: General: * . . . some control panels? Which one have you supported? Administration: * Which filesystem does Linux . . . up the name servers for a domain? * What are virtual hosts in the HTTP protocol? Network layer 4 and . . . on security news? * How do you check for open ports? * What is jailing? * What is selinux? * When is . . .
2K - last updated 2008-06-01 12:08 UTC by 6615
2008-06-19 Project SHAMROC
For [http://www.sron.nl/index.php?option=com_content&task=view&id=1531&Itemid=1394 project SHAMROC], . . . part of the [http://www.esa.int/esaMI/Aurora/SEM1NVZKQAD_0.html . . . Exomars mission], the testing will start next week. [[image:shamroc_dac_bord.jpg]] This project . . .
2K - last updated 2008-07-01 11:28 UTC by 6615
2008-06-23 Shamroc DAC board
The [http://en.wikipedia.org/wiki/Digital-to-analog_converter DAC] testboard for the Shamroc (part of . . . there? * How is the sensitivity compared to earth models? * Why is the instrument noise dominated . . .
2K - last updated 2008-06-24 09:11 UTC by 6615
2008-06-26 Layout Shamroc board
Below are details of the Shamroc DAC testing board. [[image:IMAGE_496.jpg]] # Daughterboard, for DAC . . . * The clock from the FGPA is slightly set apart from the bigger data connection, because the [http://en.wikipedia.org/wiki/Harmonic . . . This is because our electronics are only part of the whole system and there must be a system-wide . . .
2K - last updated 2008-07-02 07:45 UTC by 6615
2008-07-01 testing temperatures
Today I configured the housekeeping feature of our Generic EGSE software (stands for Electrical Ground . . . Support Equipment) and added a couple of temperature sensors . . . Cold Spray] and watched the strip chart dive: [[image:temp_dac2.png]] Time to show our setup: . . .
1K - last updated 2008-07-01 13:05 UTC by 6615
2008-08-07 Controlling individual DACs
I've written previously about the DAC board, but mainly looking at it as a black box. This time it's . . . measure up to expectations, we need to look further. That's why there's a special override register . . .
2K - last updated 2008-08-11 15:22 UTC by Bart
2008-08-12 Configuring an ADC
On the DAC board, for testing purposes, a Cirrus Logic ADC is present. It's the same ADC as used in another . . . just write the configuration register for a certain voltage range and kick off a macro contained . . . * Wait for results * Read back results and convert Currently, it's a bit simpler: just read out and . . . convert. . . .
1K - last updated 2008-08-12 09:32 UTC by Bart
2008-08-29 Fighting an ADC
We use an [http://en.wikipedia.org/wiki/Analog-to-digital_converter ADC] from Cirrus Logic on the DAC . . . fire off an e-mail to Cirrus Logic support. Another problem is that the ADC now gives off some . . . that powers off the digital and analogue parts of the board do NOT affect the power of the ADC... . . .
2K - last updated 2008-08-29 07:16 UTC by Bart
2008-09-22 Reading out a multimeter
We'd like to test the DAC board by reading it out with an HP 3458A multimeter (now Agilent, but this . . . solution was to set the APER command (aperture), which has a value between 0 and 1 seconds, . . .
3K - last updated 2008-09-25 11:27 UTC by 6615
2008-10-03 Software architecture decisions
Today I bumped into a problem which required some decisions about the software. In short it comes down . . . this be the Friday evening effect?! Update: partly, it was the Friday evening effect. What was happening . . . need to be treated in another way Some important things to remember about this architecture: * . . . There is not one single place which maps a particular request to a particular response -- thus it's . . .
3K - last updated 2008-10-07 09:40 UTC by 6615
2008-10-09 Reading out a multimeter part 2
Again busy with the HP 8345A multimeter. The electronics guy suspected that the default settings were . . . per 0.2 seconds. That's exactly what the APERture setting displays. Then we have the RANGE setting . . . since you have something to turn back to. Unfortunately, the state after power-on isn't predefined. . . . by the SWEEP command. Funny thing is, when an aperture of 0.2 seconds is set, with say 10 points then . . . and no values are actually returned. I reverted the EOI setting back to 0 and now all the requested . . .
5K - last updated 2008-10-17 10:23 UTC by 6615
2008-10-16 analyzing a running process
Today I was notified that our custom-developed lab software suite had crashed. Having a look, it turns . . . Debian Package of the Day highlighted . . . memstat] which is a tool displaying virtual memory usage. Pity I didn't know this earlier, . . .
4K - last updated 2008-10-20 06:32 UTC by 6615
2008-10-17 adding a logfile
My thought was; adding a logfile to our software within half an hour should be doable. So let's give . . . idea, but it turns out someone already made a start using syslog. Before the signal is emitted, I also . . . to syslog. Update: turns out that's a little shortsighted. I'd like to coin a new law that states that . . .
1K - last updated 2008-10-20 15:04 UTC by 6615
2008-11-04 Bitstream mode
The new project its temperature sensor (tsens) ASIC is basically a [http://en.wikipedia.org/wiki/Sigma-delta_modulation . . . Delta Sigma analog-to-digital converter]. What it basically comes down to, is that the . . . stream of bits. The FPGA needs to be set in a particular mode for this: * Set the drdy_select register . . . register to the appropriate socket which starts the measurement When this is done, the register . . . time for measurements after radiation is very short since the samples can't be out of the radiation . . .
3K - last updated 2008-11-07 10:57 UTC by 6615
2008-12-09 Offset dependency
Previous year, I wrote about [[2007-09-26_Fiske_steps_testing|the Fiske steps routine]], a routine which . . . behaves as a resistor, thus when setting a particular FFO bias current, the resulting FFO voltage . . .
2K - last updated 2008-12-09 15:17 UTC by 6615
2008-12-19 Linux USB device handling
For reading/operating lab instruments like multimeters and power supplies, the [http://en.wikipedia.org/wiki/IEEE-488 . . . using a USB-based GPIB adapter. These particular devices are handled on Linux using the default . . . the modules, loading the firmware (with some particular devices), running the gpib_config utility . . . just before the name of the device. The first part is the vendor number, the second part is the product . . . of sysfs attributes in your RUN or PROGRAM part of the udev rule: SUBSYSTEM=="usb", DRIVERS=="usb", . . .
5K - last updated 2009-01-05 13:54 UTC by 6615
2009-03-27 LEON3
At work, we're currently experimenting with the [http://en.wikipedia.org/wiki/LEON LEON3] processor. . . . -- the ARM architecture is much better supported. But there you go. The LEON3 is an alternative . . . for an FPGA that's connected with a serial port or somesuch to a full-blown PC. It also makes it . . .
1K - last updated 2009-03-27 08:34 UTC by 6615
2009-06-06 Getting Chrome running on Fedora
Recently, the [http://dev.chromium.org/getting-involved/dev-channel|alpha builds of Chrome for Linux] . . . became available. Unfortunately, only Debian and Ubuntu packages were released. . . . libnspr4.so libnspr4.so.0d Now chrome can be started: $ /opt/google/chrome/google-chrome Create an . . .
2K - last updated 2009-06-06 08:55 UTC by 6615
2009-06-08 Using D-Bus in your application
We've got a Qt-based application (daemon style) which writes log files. In order to nicely integrate . . . that it needs to close off its log files and start writing a new one. Rotating logs is done by placing . . . to the daemon to receive a signal of some sort. The old school way is using plain old [[Signals]] . . .
1K - last updated 2009-06-08 07:26 UTC by 6615
2009-10-19 Rolling back a change
Suppose you inadvertently made changes in some files some time back. You can examine revisions of files . . .
1K - last updated 2009-10-19 13:41 UTC by 6615
2009-12-02 Who is logging in
Who is logging into my Linux workstation? At my most regular workplace (I have several), I have a Debian . . . in when I'm using the desktop. Thus at startup, I run the following script in the background: . . .
1K - last updated 2009-12-02 08:31 UTC by 6615
2009-12-09 Installing Linux Google Chrome as a regular user
Early december 2009, Google launched the beta version of the [http://www.google.com/chrome?platform=linux . . . Chrome * To easily start up the app, create a launcher icon. Here is a good . . .
1K - last updated 2010-06-18 06:08 UTC by 6615
2010-07-15 Sending email from a Perl script
If you're on Debian or Ubuntu Linux and you want to send a quick e-mail from a Perl script, use the Email::Send . . . my $message = <<'__MESSAGE__'; To: bartvk@example.com From: bartvk@example.com Subject: . . .
1K - last updated 2010-07-15 13:20 UTC by 6615
2010-07-20 Coverity demo
We got a demo from the [http://www.coverity.com/ Coverity] people. We ran their tool on our code base . . . Wikipedia article on Coverity]. They have a 1000+ customers. From . . . Along with the classification, there is a short explanation of this type of issue. Clicking further . . . the defect. Each defect can be assigned to a certain team member. We have already invested in using . . . Coverity can help with this but they support pthread it of the box. Since we use QThreads, we . . .
3K - last updated 2010-07-20 09:40 UTC by 6615
2010-08-17 Thoughts on a SW design
So far, the custom software we built at SRON assumed that users would manually configure the software . . . design on the software changes required to support an array of boards that is placed in a [http://en.wikipedia.org/wiki/Eurocard_%28printed_circuit_board%29 . . . are developing standard electronics boards for certain tasks. For instance, a standard design for an . . . each which consist of a rail that guides an inserted board to the backplane. This backplane provides . . . automatically. The setup thus consists of two parts: * The hardware consisting of: ** A rack with electronics . . .
8K - last updated 2010-08-20 13:44 UTC by 6615
2010-08-24 Thoughts on a software design part 2
When asking for some criticism from a colleague today, I got some additional pointers and ideas on my . . . Controller board telling a board has been inserted in a certain slot; * Can cut the power of a specific . . . slot. He also pointed out it's worth thinking about whether we must model the rack functions . . .
2K - last updated 2010-08-24 14:14 UTC by 6615
2010-08-30 How to recover from unexpected reboots
It's pretty interesting to dive into the situation of recovering from unexpected reboots. Our usual lab . . . setup consists of three parts: * The PC running our Generic EGSE software: a . . . DACs] and/or [http://en.wikipedia.org/wiki/Analog-to-digital_converter . . . the PC. When the EGSE software automatically starts again, should it attempt to initialize the biasing . . . to always be initialized upon normal startup. Now there's complexity: both the EGSE and the . . .
2K - last updated 2010-08-30 15:12 UTC by 6615
2010-09-23 From Perl to Python
At work, we are currently using Perl and IDL, alongside our (in C++ written) EGSE server software. For . . . reasons, we are looking to replace both parts with Python equivalents. This involves both a port . . . are analyzed and then plotted as well as transported back to the controlling Perl script. Besides plots . . . How the Perl control/readout libraries will be ported to Python * Which plots are present in the EGSE, . . .
2K - last updated 2010-09-24 13:59 UTC by 6615
2010-10-05 Ubuntu on an old machine
If you want to use Ubuntu on an older PC, then memory might be tight. I recently got a HP/Compaq 7100dc . . . bluez brltty pcmciautils speech-dispatcher \ apport cups system-config-printer-gnome evolution Explanation: . . . this removes support for braille input devices, BlueTooth, laptop extension . . . cards (PCMCIA), text-to-speech, crash reporting (to Ubuntu), printing and the memory hungry e-mail/calendar . . . find a process: $ ps -e -o rss,vsz,cmd --sort=rss | sort -n -r | head Then find the path to the . . .
2K - last updated 2010-10-05 08:23 UTC by 6615
2010-10-08 SpaceWire at SRON
The purpose of SpaceWire (short: SpWi), is a standard to connect pieces of a satellite for data retrieval . . . [[image:SpaceWire_Lab_Cables.jpg]] (Image courtesy of STAR-Dundee) The signal is sent using [http://en.wikipedia.org/wiki/Low-voltage_differential_signaling . . . for housekeeping purposes. STP (Streaming Transport Protocol) is better for sensor data. In the past, . . . project for which the purpose was: Two SpWi ports, proper Linux driver and 8 MByte/s sustained data . . . IP core] which had to be vendor independent . . .
4K - last updated 2010-10-08 08:54 UTC by 6615
2010-10-12 Supporting Python
At my dayjob, we have created an application for sensor readout and control. We are creating a software . . . design to support Python for scripting, analysis and plotting, besides . . . kicks off a Perl script that retrieves data # Certain data triggers an IDL script in the EGSE server . . .
2K - last updated 2010-10-13 12:28 UTC by 6615
2010-10-14 Some highlights of AHS 2010
A colleague of mine recently went to [http://www.see.ed.ac.uk/ahs2010/ AHS 2010], a series of annual . . . can use optics to form a network that transports data between the multiple cores. * [http://en.wikipedia.org/wiki/Goddard_Space_Flight_Center . . . however also flight ready. Based on the Xilinx Virtex 5. * William Zheng, also from JPL, gave an overview . . .
2K - last updated 2010-10-14 14:32 UTC by 6615
2010-11-26 From which host am I logged in
Sometimes you want to adjust your settings in bashrc, depending from which host you are logging in from. . . . Useful for those shared accounts, who no IT department seems to admit using, but which are mightily . . .
1K - last updated 2010-11-26 15:27 UTC by 6615
2010-12-19 Firefox extensions I can not live without
Everybody has them: Firefox extensions they can't live without. At least, that one percent of the world . . . to care about Firefox extensions. Without further ado, here's my list: * Adblock Plus * Flashblock . . .
1K - last updated 2010-12-19 21:11 UTC by 6615
2010-12-25 Google Chrome extensions I cannot live without
In the vein of the previous post; a list of Google Chrome extensions that are very useful: * [https://chrome.google.com/extensions/detail/dlopnnfglheodcopccdllffcijjeenkj . . . InstaPaper] which can route your articles and notes to the Kindle. . . .
2K - last updated 2011-01-31 21:30 UTC by 6615
2011-03-03 SAFARI software and hardware setup
Below is a basic setup of our software and electronics. [[image:SAFARI setup software and electronics]] . . . just receives data on an optical ethernet port in raw ethernet frames, then concatenates the packages . . . daemon and server on one PC. The demux is short for 'demultiplexer board', an electronics board: . . . However, the demux board firmware doesn't support jumbo frames. So we concatenate the CCSDS packets . . .
2K - last updated 2011-04-21 12:07 UTC by 6615
2011-04-08 Using the decorator pattern in Python
For my current project, we are trying to look into the future, where our Python scripts might be used . . . board will take place over a cable of some sorts. That cable and protocol aspect is abstracted away . . . by a daemon, as part of the Generic EGSE. http://upload.wikimedia.org/wikipedia/commons/f/fa/Altera_StratixIVGX_FPGA.jpg . . . board incorporates an FPGA which takes a certain address (say, address 42) to mean something such . . . The electronics board(s) of our project partner might have entirely different addresses, or might . . .
2K - last updated 2011-04-08 15:05 UTC by 6615
2011-04-20 Telfort ADSL and VoIP Planet
(English readers: this is an explanation on how to configure the modem of a Dutch ISP for VOIP usage). . . . Tegenwoordig wordt Telfort ADSL uitgeleverd met een Zyxel modem, type P-2601HN-F1. . . . op het modem. Waarom niet gewoon via Telfort Vast Bellen? Omdat je misschien reeds klant van . . . vermeldde SIP Account Number en Username verandert in diegene die je van VoIP Planet hebt gekregen: . . .
2K - last updated 2011-04-21 14:23 UTC by 6615
2011-04-21 Not enough CPU time
The datarate of the Demux board of the Safari project is quite high for a desktop PC to work with, even . . . the PC running the Generic EGSE (the central part of the software, which allows the user to control . . . was drawn, but before the second plot was started. A colleague also found and fixed these.) We brainstormed . . .
3K - last updated 2011-04-21 11:47 UTC by 6615
2011-05-19 App Store on OS X a disappointment so far
So far, the OS X AppStore couldn't be called 'wildly popular' since its inception on January this year. . . . * VLC * Skype * Calibre (an eBook converter) * XBench (a benchmark for OS X) * Vuze * KisMAC . . .
2K - last updated 2011-05-20 08:20 UTC by 6615
2011-06-17 Encrypting and decrypting files part 2
Some time ago, I gave a [[Encrypting_and_decrypting_files|duo of one-liners that encrypts/decrypts files]]. . . .
2K - last updated 2011-06-17 08:04 UTC by 6615
2011-06-20 Running yum on low end VPSes
Yum is a dog to run on older systems with small amounts of memory, or when you run a VPS (virtual private . . .
1K - last updated 2011-06-20 14:10 UTC by 6615
2011-08-18 Google Chrome on Debian Lenny
The latest packages of Google Chrome won't install anymore on Debian 5.0, nickname Lenny. This is the . . . still installed on Lenny: [[http://www.dutchvirtual.nl/~bartvk/google-chrome-stable_current_i386.deb . . .
1K - last updated 2011-08-30 16:12 UTC by 6615
2011-08-30 Creating specific password lists with John the Ripper
For security purposes, you sometimes want a dictionary with possible passwords. Perhaps you want to assess . . . from the company website, or the Wikipedia article on them. With standard Unix/Linux tools, you're . . . we're going to expand the wordlist with all sorts of word play that people might think of, like using . . . adding the following line to your ~/.bashrc: export PATH=$HOME/opt/john-1.7.8/run Logout, and login . . . ROTTErDAm ROTTERdAm ROTTERDAm RoTTeRDaM Tpyyrtfs, Eirrwesan words: 4745 time: 0:00:00:00 100% w/s: . . .
5K - last updated 2011-08-31 10:58 UTC by 6615
2011-09-05 From iPhone to Android
Today, my iPhone 3G lost its reception in the middle of the city, and that wasn't the first time. Since . . . my point of view: staunch GMail user, a heavy smartphone user, and one who is used to the Apple way . . . bugs are supposedly fixed. The phone was advertised as having Android version 2.3, but when I asked . . . X and Windows. Except the OS X version only supports four or five of Samsung's phones. Luckily, I have . . . running on my Mac, so I can run Kies on a virtualized Windows. For the sake of Google, I repeat: . . .
3K - last updated 2011-09-08 08:34 UTC by 6615
2011-09-06 From iPhone to Android
''This is part 2 of my series where I document going from an iPhone to Android 2.3, running on the Samsung . . . good, Samsung. The second day, I have to restart the Gio. When I cycle to work, I start the media . . . player and realize that there is no album art when you manually sync music to your phone. Which . . . because the OS X version of Kies doesn't support the Gio. [http://lifehacker.com/5801473/how-to-sync-android-with-your-mac-as-seamlessly-as-an-iphone . . . screen. The home screen contains selected shortcuts to apps, if I can say so, while the application . . .
3K - last updated 2011-09-07 06:35 UTC by 6615
2011-09-08 From iPhone to Android
''This is part 3 of my series where I document going from an iPhone to Android 2.3, running on the Samsung . . . with a reboot. I suspect the chargers and started using only the Samsung-supplied charger and my . . . PC for juice. We'll see. I've also started using [http://www.doubletwist.com/ doubleTwist] . . . iPods with less than 16 Gb is the option "Convert higher bitrate songs to 128 kbps AAC". doubleTwist . . . currently doesn't support downconverting (also called transcoding) music to . . .
3K - last updated 2011-09-13 06:53 UTC by 6615
2011-09-13 From iPhone to Android
''This is part 4 of my series where I document going from an iPhone to Android 2.3, running on the Samsung . . . the specific phone maker and model. My Gio supports it; holding the back button while pressing the . . . there's no such thing. == Captive bugs == A particularly interesting thing about Android is, that . . .
2K - last updated 2011-09-20 13:07 UTC by 6615
2011-09-15 From iPhone to Android
''This is part 5 of my series where I document going from an iPhone to Android 2.3, running on the Samsung . . . in between my music. This makes shuffle play worthless, and clutters the list of albums. Another thing . . . found the equivalent under Android. It's certainly not built in, at least, if you don't count . . .
1K - last updated 2011-09-19 06:47 UTC by 6615
2011-09-19 From iPhone to Android
''This is part 6 of my series where I document going from an iPhone to Android 2.3, running on the Samsung . . . contain a number of items, of which the most important are: widgets and shortcuts. Widgets are little . . . date/time, the weather or what have you. A shortcut is just a way of starting up an app via the home . . . have an empty home screen, if you don't mind starting apps with two taps (first go to the app drawer, . . .
2K - last updated 2011-09-19 07:27 UTC by 6615
2011-09-21 From iPhone to Android
''This is part 7 of my series where I document going from an iPhone to Android 2.3, running on the Samsung . . . via USB. This is called tethering, and OS X supports this out-of-the-box, just follow [http://todayontech.com/tether-connect-samsung-galaxy-s-internet-mac-os/ . . . I bumped into, is the lack of audiobook support. doubleTwist doesn't really sync this properly. . . .
3K - last updated 2011-09-26 21:19 UTC by 6615
2011-10-05 From iPhone to Android
''This is part 8 of my series where I document going from an iPhone to Android 2.3, running on the Samsung . . . are also pictures. Doesn't transfer cover art. Transferring takes a long time, a couple of Gb . . . you use Samsung Kies on OS X, which only supports a limited number of Samsung phones. . . .
2K - last updated 2011-10-25 08:43 UTC by 6615
2011-10-11 OS X and Vim
Vim comes with OS X by default, but it doesn't come with X11 support. You can always install [http://code.google.com/p/macvim/ . . . of us prefer to use vim in the terminal. Unfortunately, because of the lack of X11 support, copying/pasting . . .
1K - last updated 2011-10-11 09:49 UTC by 6615
2011-10-27 Compact Google Calendar header
== UPDATE == I have created an official extension, available in the Chrome Web Store: [[https://chrome.google.com/webstore/detail/fgacjjonbdediegfemghimnjpmejecnd . . . to Google Calendar are looking nice, but unfortunately the header and navigation take up far too . . .
1K - last updated 2011-11-04 08:30 UTC by 6615
2011-12-12 Protocol stuff
We have an interesting situation here at work, concerning our internally developed binary protocol. There . . . a larger packet, where the Data Header/Data part are repeated. [[image:CCSDSpacketconcatenation.png]] . . . field is higher than 8, software must start ignoring the remainder of the Data field. Data field . . .
5K - last updated 2011-12-15 15:40 UTC by 6615
2012-01-23 Logrotate error for MySQL on Debian 6 Squeeze
When installing a new machine with Debian 6 (Squeeze), I also imported a database from a CentOS 5 box. . . . /var/log/mysql/mysql-slow.log ' run-parts: /etc/cron.daily/logrotate exited with return code . . .
2K - last updated 2012-01-23 07:38 UTC by 6615
2012-01-26 TransIP VPS
Since last year, [http://www.transip.nl/ TransIP] offers [https://www.transip.nl/vps/ virtual private . . . with the M version for the past week. This particular VPS has 512 MB of RAM, 10 GB of harddisk space . . .
2K - last updated 2012-03-29 10:09 UTC by 6615
2012-02-09 Writing ethernet packets on OS X and BSD
If you want to write raw ethernet frames, you can use so-called raw sockets. Unfortunately, there's a . . . constants const size_t ETHER_PAYLOAD_START = (2*ETHER_ADDR_LEN) + ETHER_TYPE_LEN; const size_t . . . int run_loop = 1; int i = 0; printf("Start reading frames\n"); while(run_loop) { memset(bpf_buf, . . . char *databuf, size_t datalen) { size_t start = 0; struct frame_t *frame = malloc(ETHER_MAX_LEN); . . . Clear frame bzero((void*)(frame+ETHER_PAYLOAD_START), ETHER_PAYLOAD_LEN); // Calculate remainder if((datalen . . .
8K - last updated 2012-02-09 15:49 UTC by 6615
2012-03-08 Launchctl on OS X
= Comparison of SysV initialization and launchd = If you're an old-school Unix or Linux person, you're . . . Nowadays, it's slowly being replaced by upstart and the likes, but I'm going to skip that for now. . . . take a couple of standard arguments, such as start/stop/restart/reload * There are three or four so-called . . . system is (in other words, more daemons are started up) * The sequence of starting the daemons (i.e. . . . calling the init.d scripts with "start") is determined by specially named symlinks in directories . . .
6K - last updated 2013-11-15 21:13 UTC by 6615
2012-03-20 graphics glitches on OS X Lion
= Graphics glitches = For the past days, I've seen a number of glitches on OS X Lion (update 10.7.3) . . . hook up an external monitor (mini-DisplayPort) and keyboard * Press a key to wake screen, then . . . I start working * At the end of day, I unplug keyboard and . . . then disconnect screen with the mini-DisplayPort * Open laptop lid, stare at black screen Remotely . . .
3K - last updated 2012-06-14 11:44 UTC by 6615
2012-03-29 Extensions to Safari library
I've received the specs for a modification to our software library for the SAFARI project, and after . . . roughly see the demux board as the digital part, and the rest of this picture as the analog part. . . .
2K - last updated 2012-05-05 17:38 UTC by 6615
2012-05-19 Telfort ADSL modem Zyxel P-2812HNU-F1 and VoIP Planet
(English readers: this is an explanation on how to configure the modem of a Dutch ISP for VOIP usage). . . . Onlangs heb ik mijn Telfort ADSL abonnement geupgrade en kreeg een Zyxel modem, . . . jaar heb ik reeds voor type [[2011-04-20_Telfort_ADSL_and_VoIP_Planet|Zyxel 2601HN-F1]] instructies . . . komt een popup-scherm waarin je slechts een viertal dingen hoeft te veranderen. Eerst moet je de "Active . . . vermeldde SIP Account Number en Username verandert in diegene die je van VoIP Planet hebt gekregen: . . .
2K - last updated 2012-05-19 09:50 UTC by 6615
2012-06-01 OS X Security
After the recent FlashBack debacle, it seems prudent to look at the way you work with OS X. A good way . . . to start: http://www.nsa.gov/ia/_files/factsheets/macosx_10_6_hardeningtips.pdf . . .
1K - last updated 2012-06-01 09:46 UTC by 6615
2012-07-02 Minimizing amplifier chain offset
For the [http://en.wikipedia.org/wiki/SAFARI_imaging_spectrometer SAFARI] project, I'm refactoring some . . . code, and one part of that is a routine to minimize the offset of the . . . Wikipedia article on transition edge sensors]. As you can read . . . with in this article, this type of sensor uses a [http://en.wikipedia.org/wiki/SQUID . . . Basically, with the LC filter you pick out a certain frequency. Thus the LC filter controls which . . .
7K - last updated 2012-07-05 14:58 UTC by 6615
2012-07-09 Mac OS X command line utilities
Recently I upgraded my macbook its SSD drive for a bigger version. Since I wanted to start with a fresh . . . that /dev/disk2 is the device we need, and partition 2 contains an HFS-formatted partition (or volume, . . . the command ''diskutil list'' and show all partitions of all disks. Since OS X automatically mounts . . . the volume so we can make a copy of the whole partition (instead of the contents of the volume): $ . . . Now, we can make a literal copy of this partition: $ dd if=/dev/disk2s2 of=MacSSD.hfs bs=1m Over . . .
2K - last updated 2012-07-09 09:45 UTC by 6615
2012-11-09 Full-text searching
In a previous project, I solved the full text search problem as follows. Management overview: it's very . . . to assign a weight to the results. MySQL supports full-text search but only in a degraded type of . . . Indonesia 03618894437 Ubud Cheap and good food Bart I've been there with a 10+ people group and they . . . trigger for a couple of tables, so that each insert or update would concatenate a buch of fields and . . . do an insert into 'fulltexts' (or a replace, if the summary needed . . .
2K - last updated 2012-11-09 06:03 UTC by 6615
2012-11-11 Starting with storyboard
I've never seriously worked with the storyboard before in Xcode, so here's a summary of what I've gathered . . .
2K - last updated 2012-11-14 08:15 UTC by 6615
2012-12-04 Objective-C with a Makefile
Here's a little example on how to compile Objective-C on the commandline, with a makefile. All code can . . . -f test_cars *.o Now create a header file: #import <Cocoa/Cocoa.h> @interface Car : NSObject { float . . . addGas; @end Plus the implementation: #import "Car.h" @implementation Car -(id) init { self = . . . } @end And the file containing main: #import <Foundation/Foundation.h> #import "car.h" int main(int . . . const char * argv[]) { @autoreleasepool { // insert code here... Car *c = [[Car alloc] init]; NSLog(@"Level . . .
2K - last updated 2012-12-04 03:50 UTC by 6615
2012-12-18
Here's a one-liner for you today: $ sudo ngrep tcp and port 80 -W byline This prints HTTP traffic to . . .
1K - last updated 2012-12-18 06:07 UTC by 6615
2013-03-13 Minimize cellular usage on iPhone
There's a number of guides on the internet that talk about minimizing cellular usage. Often, they go . . . to only use WiFi, but [http://tidbits.com/article/13304 seems to have a bug in this feature] * . . . much longer list here: [http://tidbits.com/article/13304 TidBITS: What’s Behind Mysterious Cellular . . . Data Usage in iOS 6?] [http://tidbits.com/article/13354 TidBITS: Mysterious iOS 6 Cellular Data . . .
2K - last updated 2013-04-11 15:02 UTC by 6615
2013-03-27 warning Setting locale failed
I was getting the error from all kinds of Linux programs about "setting locale failed". For example, . . . = "UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling . . . you run some command: Warning: locale not supported by C library, locale unchanged The solution is . . . used when printing characters. No unicode support, I guess? The irritating warning can be removed . . . two lines to .bash_profile: unset LC_CTYPE export LANG="en_US.UTF-8" Instead of unsetting LC_CTYPE, . . .
3K - last updated 2014-03-28 13:06 UTC by 6615
2013-04-09 Characterizing the transfer of a voltage biased SQUID
Currently, I'm finishing a software routine to ''characterize the transfer'' (see below) of a voltage . . . would [http://en.wikipedia.org/wiki/Distortion overdrive] the array-SQUID. Thus, we put it in . . . that this is all DC-biased. The SQUIDs are part of the amplifier chain, and the whole amplifier . . .
3K - last updated 2013-04-11 12:51 UTC by 6615
2013-04-11 measure the AC gain
= A little intro = Another routine in the system is the [http://en.wikipedia.org/wiki/Alternating_current . . . In that routine, we just looked at the DC part of the amplifier chain. In this measurement, we . . . as a whole, instead of characterizing a small part. The sensor: [[image:safari_sensor.jpg]] = The measurement . . . DACs] that can drive the [http://en.wikipedia.org/wiki/SQUID . . . ADC] to measure back the result. The [http://en.wikipedia.org/wiki/RF_front_end . . .
3K - last updated 2013-04-26 06:59 UTC by 6615
2013-04-15 State machine in Objective-C
Here's my version of a state machine in Objective-C, useful for your iOS or Mac OS X projects. There . . . enum WSAlarmAction {WSAlarmActionStart, WSAlarmActionPlay, WSAlarmActionSnooze, WSAlarmActionStop}; . . . WSAlarmStateTransition : NSObject @property enum WSAlarmState srcState; @property enum WSAlarmAction . . . result; @property enum WSAlarmState dstState; @end /* Singleton that . . . */ @interface WSAlarm : WSNotification @property enum WSAlarmState currentState; @end The header . . .
6K - last updated 2013-04-21 11:34 UTC by 6615
2013-04-26 Asynchronous data from the SAFARI Demux board
Previously, I described [[2013-04-11_measure_the_AC_gain|how we measure the transfer of the AC bias]]. . . . this in other words, because it's extremely important to understand the whole setup. ''The SQUID is . . . that allow us to configure the Demux board to start spewing data over the second optical network link. . . . because (1) (see below). The trigger source is worth a different topic, which involves explaining what . . .
4K - last updated 2013-04-29 10:46 UTC by 6615
2013-05-02 Test of current version of SAFARI scripts
Today, we ran a little test of the SAFARI demux/fee-scripts. It's the second time this week, and I'm . . . menu for the testpulse generator. This is an important part, because the testpulse generator can simulate . . . a detector (with a pulse, it's like a particle hit the bolometer). It's fed into the feedback. . . . we continued with the pixel menu. This is a part of the script that allows you to put a carrier wave . . . routed to a certain pixel. You can change characteristics such as . . .
3K - last updated 2013-06-04 14:13 UTC by 6615
2013-06-15 Automatic updating of Google Drive
On my bog standard MacBook Pro, it seems that there's an update problem with Google Drive. It fails to . . . Google Drive" wget --quiet --no-check-certificate -O "$DEST" "$URL" hdiutil mount -quiet "$DEST" . . .
2K - last updated 2013-06-15 06:16 UTC by 6615
2013-08-12 Measure the AC gain part 2
I've worked some more on a Python script that measures the gain (transfer) of the AC bias of the SQUIDs. . . .
1K - last updated 2013-08-12 15:09 UTC by 6615
2013-08-12 Page up and page down with a Logitech Marble on Linux
On Debian 7.x (Wheezy), I'm using the Logitech Trackman Marble. Mine has product number P/N 810-000767, . . . imwheel 2) Edit the file /etc/X11/imwheel/startup.conf to enable imwheel when you log into KDE. . . . Find the line that starts with IMWHEEL_START, and set it to 1. 3) Edit the . . .
1K - last updated 2013-08-13 07:54 UTC by 6615
2013-08-26 Testing real capacity of an USB stick
I've read about fake oversized thumb drives / USB sticks, which report a much bigger size than they actually . . . test and I'm sure it can be done much smarter. I'll give an idea on speeds, and I assume USB . . . of 15 MB/s, and maximum read speed of 30 MB/s. Furthermore, we're working with 1 GB equalling 1 thousand . . . on the packaging. First, we format the disk. Start Disk Utility and erase it. This is to remove any . . .
3K - last updated 2013-11-28 22:35 UTC by 6615
2013-09-28 Criticism of Google Drive
= Update 2013-12-12 = There have been some improvements to [http://googlesystem.blogspot.nl/2013/12/the-new-google-sheets.html . . . Chrome. = Update 2013-11-16 = The [https://support.google.com/drive/answer/3033310?hl=en release notes] . . . as on your iPad, Google Drive can edit all sorts of files in your browser, including MS Office". . . . they're not natively editable anymore after exporting. You could export, then ''import'' them again, . . .
5K - last updated 2013-12-12 11:12 UTC by 6615
2013-10-13 Extend drive space in your MacBook Air 2013
Recently I got a MacBook Air, but it wasn't within my budget to get the bigger SSD. The standard SSD . . . is advertised as 128 GB. In practice, this means 112 GiB, . . . wireless external harddisks. This Lifehacker article lists a few: [http://lifehacker.com/add-wireless-storage-to-phones-tablets-and-laptops-wi-1445131781 . . .
3K - last updated 2013-11-02 10:44 UTC by 6615
2013-10-25 What is new in OS X Mavericks
I'm running a little comparison of the file system of a Mavericks install and a Mountain Lion install, . . . announcement . . . SuperTrak EX] RAID controllers * SoftRAID . . . those used in the browser) * Pass Viewer -- "partial support for Passbook passes, letting you view . . . your Mac" -- source: [http://www.macworld.com/article/2056889/get-to-know-os-x-mavericks-apple-mail-7-0.html . . .
5K - last updated 2013-12-06 10:09 UTC by 6615
2013-12-20 Performance test of USB ethernet adapters on OS X
I've got two USB-based network adapters laying around here: the official [http://store.apple.com/us_smb_78313/product/MC704ZM/A/apple-usb-ethernet-adapter . . . provide a guest network. Oh well. Long story short: better check [http://fortysomethinggeek.blogspot.nl/2013/04/thunderbolt-gigabit-vs-usb-30-gigabit.html . . .
2K - last updated 2013-12-20 08:29 UTC by 6615
2014-01-29 tmux and X11
Recently I've been playing around with [http://tmux.sourceforge.net tmux] . For all you neckbeards, that's . . . forwarding X11. This is useful because vim supports the X11 clipboard. That way, if I copy text from . . . make this work, when ssh opens a session and starts the shell, it sets the environment variable $DISPLAY. . . . Vim then reads it when it starts. However when you detach tmux, log out and log . . . And if that would work, vim has to be restarted again as well. It would be nice if you could simply . . .
2K - last updated 2014-06-11 11:09 UTC by 6615
2014-04-16 Python vi keybindings on OS X
If you're used to vi keybindings, and you use Python interactively, you're going to do a lot of cursing . . . called .pythonrc with the following lines: import rlcompleter import readline Add a line to your .bashrc . . . which makes Python run .pythonrc when it starts interactively: export PYTHONSTARTUP="$HOME/.pythonrc" . . . Start python from the commandline and voilà, enjoy history . . .
1K - last updated 2014-04-16 12:40 UTC by 6615
2014-05-16 VNC on Debian Wheezy
I recently discovered that VNC on Debian Wheezy is a bit of a mess. VNC can be used in two modes: to . . . old version of TightVNC server. It doesn't support the alpha channel, so modern desktops like KDE 4 . . . a window to the left will result in display artifacts. You may also have found [http://sourceforge.net/projects/turbovnc/ . . . provide Debian packages]. Unfortunately, even for the latest version it seems it . . . bug doesn't seem to manifest itself when exporting the currently running display on :0. On our in-house . . .
3K - last updated 2014-08-26 06:08 UTC by 6615
2014-07-10 Unattended upgrades
I'm not normally prone to linking to stuff, but this is just too good: http://www.howtoforge.com/how-to-configure-automatic-updates-on-debian-wheezy . . . machines like your (secondary) DNS, lonely virtual private servers with your home page, etc. . . .
1K - last updated 2014-07-10 06:07 UTC by 6615
2014-07-11 Xauthority doesn't exist
If you're connecting via SSH from OS X to Linux, you might get the following error: /opt/X11/bin/xauth: . . . can fix this by installing (or just running) XQuartz, available [http://xquartz.macosforge.org/ here]. . . .
1K - last updated 2014-07-11 11:48 UTC by 6615
2014-09-26 Tomcat error on Ubuntu 14.04
If you upgraded Ubuntu to 14.04 and you've got Tomcat running, chances are that you get the following . . . [http://csnipp.com/s/268/-Tomcat7-bind-to-port-80-fails-in-Ubuntu-14-04LTS Tomcat7 bind to port . . .
1K - last updated 2014-09-26 09:51 UTC by 6615
2014-10-09
On iOS 8, user permission is required for scheduling local notifications (of class UILocalNotification). . . . | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)) { NSLog(@"Permission . . . settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert . . .
1K - last updated 2014-10-10 10:24 UTC by 6615
2014-11-06 From mov to animated gif
On OS X, the standard QuickTime Player application can record (a part of) your screen, or record the . . . cable. You then get a .mov file. You can convert this into an animated gif of slightly smaller size . . .
1K - last updated 2020-08-27 10:27 UTC by 6615
2014-11-18 Swift optionals
Recently I dived into Swift and in order to grok optionals, first read this article on Medium: [https://medium.com/@rrridges/swift-optionals-a10dcfd8aab5 . . .
1K - last updated 2014-11-18 13:08 UTC by 6615
2014-12-15 Shadows and rounded corners
The app I'm currently working on, requires a textfield with shadow and rounded corners. That doesn't . . . of elements in UIKit. This is the code: import UIKit class ViewController: UIViewController { @IBOutlet . . .
2K - last updated 2014-12-15 08:31 UTC by 6615
2015-01-29 Update interface when app is opened
If you're developing in Swift and want to update your app's interface when it's reopened, put the following . . . notification \(MYFApplicationDidBecomeActiveAfterTimeoutNotification)") NSNotificationCenter.defaultCenter().postNotificationName(MYFApplicationDidBecomeActiveAfterTimeoutNotification, . . . global: let ApplicationDidBecomeActiveAfterTimeoutNotification = "ApplicationDidBecomeActiveAfterTimeoutNotification" . . . name: ApplicationDidBecomeActiveAfterTimeoutNotification, object: nil) And the following . . . name: ApplicationDidBecomeActiveAfterTimeoutNotification, object: nil) Note that this notification . . .
2K - last updated 2015-01-29 11:29 UTC by 6615
2015-02-01 Layout of a tableviewcell depending upon device orientation
Last week, a refresh of the design of my client's app called for a layout that changed depending on the . . . the view controller, detect whether we're in portrait or landscape, then update the constraints of . . . the cells using the IBOutlet properties Thus the UITableViewCell subclass looks as follows: . . . } Problem is: where can you set properties all the currently visible cells? The easiest . . . The view controller class has the following property: var size: CGSize = CGSizeZero The viewWillTransitionToSize() . . .
3K - last updated 2015-02-01 11:25 UTC by 6615
2015-02-05 Swift example of a batch update in Core Data
Here's a Swift example of doing a batch update in Core Data: let updateRequest = NSBatchUpdateRequest("some_entity_name") . . . = predicateIsRead updateRequest.propertiesToUpdate = [ ContentItemAttributes.isRead.rawValue: . . .
1K - last updated 2015-02-05 15:28 UTC by 6615
2015-02-06 Swift enum raw values as an array
Here's a quick example of using Swift's map() function. Here it's used to put the raw values of an enum . . . this into a playground to see the result. import Cocoa enum ContentType : Int { case Unknown = 0 . . . in type.rawValue}) println(intArray) Even shorter: let intArray = contentTypeArray.map({$0.rawValue}) . . .
1K - last updated 2015-02-06 09:10 UTC by 6615
2015-03-13 Connecting to Oodrive via FTPS on OS X
For a client, I have to save files to Oodrive. They offer several methods for uploading, one of them . . . directory, and paste the following lines (courtesy of [http://blogs.reliablepenguin.com/2009/08/11/ftps-with-lftp . . . To test the result, start lftp on the commandline and type "open oodrive", . . . type "ls". If you see the error "Fatal error: Certificate verification: Not trusted", you may want . . . to the .lftp settings file: set ssl:verify-certificate no . . .
2K - last updated 2015-03-13 09:53 UTC by 6615
2015-03-28 SSL security
An excellent article on SSL security, which tells you how to disable the RC4 cipher: https://luxsci.com/blog/256-bit-aes-encryption-for-ssl-and-tls-maximal-security.html . . .
1K - last updated 2015-03-28 19:37 UTC by 6615
2015-04-30 edit in vi from Xcode
Purely looking at the editing part, I find vi much more powerful than Xcode. If you want to do a quick . . .
1K - last updated 2015-04-30 10:45 UTC by 6615
2015-05-09 discovering bitrot with MD5
Except for modern filesystems such as ZFS and btrfs, your files aren't protected against so-called "bitrot". . . . I use the following one-liner on MacOS: $ START=$(pwd);IFS=$'\n'; for i in $(find . -type d); do . . . pwd; par2create par2file *.*; cd "$START"; done The *.* after par2create is there to prevent . . .
3K - last updated 2016-09-11 10:13 UTC by 6615
2015-06-06 Dial down the transmit power of your Airport Express
In my neighborhood, there are about 20 WiFi networks visible when I click the WiFi symbol on my MacBook's . . . so you cover only the exact area for that particular access point. It's thus a damn shame that . . . the latest version of the AirPort Utility (version 6) does not allow you to influence . . . and [http://coreyjmahler.com/2013/10/24/airport-utility-5-6-1-on-os-x-10-9-mavericks/ can be downloaded . . .
1K - last updated 2015-06-06 11:26 UTC by 6615
2015-06-12 Shortcut to lock OS X
There isn't any standard function to have a shortcut key to lock your screen in OS X. The best way to . . . How to Quickly Lock Your Screen in Mac OS . . . X with Keyboard Shortcut] Do take special care: the command being called . . .
1K - last updated 2015-06-12 10:30 UTC by 6615
2015-06-16 AutoLayout in WWDC 2015
Be sure to check out these videos on AutoLayout: * [https://developer.apple.com/videos/wwdc/2015/?id=218 . . . Mysteries of Auto Layout, Part 1] * [https://developer.apple.com/videos/wwdc/2015/?id=219 . . . Mysteries of Auto Layout, Part 2] There's some stuff in there that you may already . . . stuff in your views (like shadows) And in part 2: * Use the .identifier property on views when . . .
2K - last updated 2015-06-16 06:20 UTC by 6615
2015-06-19 QuickLook for mobileprovision files
[http://furbo.org/2013/11/02/a-quick-look-plug-in-for-provisioning/ Craig Hockenberry wrote a Quick Look] . . . following steps: * In the Member Center, go to Certificates, Identifiers & Profiles * Add the device . . . for this particular App ID * Generate either a development or . . .
2K - last updated 2015-06-19 13:09 UTC by 6615
2015-06-21 Swift 2.0 error handling
Here is a [http://ericasadun.com/2015/06/18/swift-asynchronous-error-handling/ nice article by Erica . . . that he hadn't actually ever used that particular keyword in D... I wonder if I'll find much . . .
2K - last updated 2015-06-21 17:51 UTC by 6615
2015-07-05 withUnsafeBufferPointer
Update 2016-10-06; a very nice (and updated for Swift 3) blog about this: http://technology.meronapps.com/2016/09/27/swift-3-0-unsafe-world-2/ . . . - noun: a place where people can play import UIKit var buf = [UInt8](count: 10, repeatedValue: . . .
1K - last updated 2016-10-06 06:15 UTC by 6615
2015-07-09 Short list of VPS providers
Here's my 2015 short list of VPS providers: * [https://www.transip.nl TransIP] Reasonable price, good . . . price, don't like their CPU performance -- starting a Grails instance took 90 seconds, as opposed . . .
1K - last updated 2015-07-09 12:15 UTC by 6615
2015-08-07 Core Data sum example
I had some trouble last week finding a Swift example to sum across order line entities in Core Data. . . . and when they put stuff in their shopping cart, we slowly build an order with order lines. Note . . . the Order class. Adjust as necessary. Without further ado: func orderItemsQuantity(managedObjectContext: . . . managedObjectContext) request.propertiesToGroupBy = ["order"] request.resultType = NSFetchRequestResultType.DictionaryResultType . . . request.propertiesToFetch = [quantityExpression] request.predicate . . .
2K - last updated 2015-08-07 14:39 UTC by 6615
2015-08-07 Swift Reflect example
Halfway last month, Erica Sadun wrote a blog entry where she used the <tt>reflect()</tt> function: [http://ericasadun.com/2015/07/14/swift-just-because/ . . . She just gave the code and didn't comment any further so below, I've liberally sprinkled the code with . . . optional, return its value with the .value property return child.1.value } } return nil } // Try it . . .
2K - last updated 2015-08-07 15:27 UTC by 6615
2015-08-27 Open underlying SQLite database when using Core Data
During development of an app using Core Data, you often want to have a quick peep in the underlying SQLite . . . SQLPro for SQLite]. Start your app, copy the string from the console in Xcode, . . .
1K - last updated 2015-08-27 07:04 UTC by 6615
2015-08-27 Swift Switch must be exhaustive
In Swift, the switch/case statement must contain a default case, otherwise you'll get the following compiler . . . switch (self.type!.integerValue) { case CustomerTypeNormal.integerValue: name = "\(self.lastname?.lowercaseString.capitalizedString), . . . case CustomerTypeCrew.integerValue: name = "Crew" case CustomerTypeAnonymous.integerValue: . . .
1K - last updated 2015-08-27 13:31 UTC by 6615
2015-09-04 View all non-standard kernel extensions on OS X
If you want to list all the drivers (kernel extensions in OS X jargon) that didn't come pre-installed . . . Logitech OS X driver installed, plus I've got VirtualBox and two keyboard remapper tools installed: . . . 132 3 0xffffff7f82acb000 0x58000 0x58000 org.virtualbox.kext.VBoxDrv (4.3.24) <7 5 4 3 1> 133 0 0xffffff7f82b23000 . . . 0x8000 0x8000 org.virtualbox.kext.VBoxUSB (4.3.24) <132 95 37 7 5 4 3 1> . . . 134 0 0xffffff7f82b2b000 0x5000 0x5000 org.virtualbox.kext.VBoxNetFlt (4.3.24) <132 7 5 4 3 1> 135 . . .
2K - last updated 2015-09-08 05:24 UTC by 6615
2015-10-06 Testing NTP server under OS X
When you configure a different time server (NTP server) under OS X, the System Settings panel doesn't . . . a time server running, then ntpq will report: nodename nor servname provided, or not known . . .
1K - last updated 2015-10-06 05:40 UTC by 6615
2015-10-08 start of a day with NSDate
There's a nice new function since iOS 9, <tt>startOfDayForDate</tt>. Some examples: To get the NSDate . . . for this morning: Calendar.current.startOfDay(for: Date()) And to get the end of the previous . . . day: let thisMorning = Calendar.current.startOfDay(for: Date()) let yesterdayEvening = Calendar.current.date(byAdding: . . . if Calendar.current.isDateInToday(flight.departureDate) { .... } . . .
1K - last updated 2016-12-12 14:18 UTC by 6615
2015-10-18 Popular libraries
Here's a couple of pointers to popular libraries: * https://gist.github.com/orta/1c607a2c46545244ab16 . . .
1K - last updated 2015-10-18 08:27 UTC by 6615
2015-10-30 Searching Cocoapods
Today, we were joking around in the team, and we figured it would be cool if you could simply include . . . iOS project to add an [https://github.com/rochefort/cocoapods-search easter egg]. All kidding aside, . . . to search Cocoapods: https://github.com/rochefort/cocoapods-search No results for "easter egg", though . . .
1K - last updated 2015-11-06 08:09 UTC by 6615
2015-11-06 Creating an OS X virtual machine
Automatically creating an OS X virtual machine is getting quite easy and automated nowadays. If you haven't . . . tool for automating the creation of Virtual Machine images]. $ brew install packer And via . . . Cask, install vagrant and VirtualBox. Vagrant is a tool for managing development . . . environments using Virtual Machines, i.e. starting, stopping et cetera. . . . brew cask install vagrant $ brew cask install virtualbox Now continue with [https://gist.github.com/rmoriz/37b671afe53c984b2f85 . . .
2K - last updated 2015-12-08 11:54 UTC by 6615
2015-11-20 Xcode tip
A nice tip for when you're pair programming and you're both sitting somewhat farther from the monitor . . .
1K - last updated 2015-11-20 09:15 UTC by 6615
2015-12-11 Measuring startup time
The startup time of your app is determined by a bunch of things, but one that you can easily and directly . . .
2K - last updated 2015-12-11 09:11 UTC by 6615
2016-01-06 About an old Google Drive document
John Gordon writes about losing images in an old document on Google Drive: [http://tech.kateva.org/2015/12/a-google-doc-i-wrote-in-2010-has-lost.html . . . I had gotten weary. Whenever I'd create an important document, I'd create a folder on Google Drive, . . . was. But only in the sense that they had an export to the Open Office format. Their own format is very . . . works fine, and the format is understood to a certain degree and imported by a number of software packages, . . .
2K - last updated 2016-01-06 08:59 UTC by 6615
2016-01-08 BSD dd progress
The commandline utilities that come installed with OS X originate from the BSD world. This means that . . . option-wise, they're fairly spartan as opposed to GNU userland. Today, I needed to . . . 412 0 11:29AM ttys000 0:16.19 dd if=/Users/bartvk/Desktop/ubuntu-15.10-desktop-amd64.img of=/dev/disk1 . . .
2K - last updated 2016-01-08 11:14 UTC by 6615
2016-01-09 Compress PNG files with pngquant
A little trick if you want to save some space and/or bandwidth; compress your PNG files. Although PNG . . . file sizes looked as follows: -rw-r--r--@ 1 bartvk staff 88K Jan 8 12:11 Image_2016-01-08_dd_progress.png . . . -rw-r--r-- 1 bartvk staff 17K Jan 8 12:13 Image_2016-01-08_dd_progress-fs8.png . . .
1K - last updated 2016-01-09 20:52 UTC by 6615
2016-01-17 The new Mac Pro
As an app developer, I've always been following the new Mac Pro (usually shortened to nMP, as opposed . . . to the cMP, where c stands for classic). For portability reasons, clients usually give me a retina . . . MacRumors Buyer's Guide] maintains a disheartening [http://buyersguide.macrumors.com/#Mac_Pro . . .
2K - last updated 2016-01-25 18:46 UTC by 6615
2016-02-14 Cleaning the Microsoft Sculpt Ergonomic
I've always been a fan of the Microsoft ergonomic keyboards. They offer the best keyboards in the "ergonomic" . . . backspace button. I opened the keyboard but unfortunately it's a [https://en.wikipedia.org/wiki/Keyboard_technology#Scissor-switch_keyboard . . . with a dozen or so clips. You can take it apart with a broad screwdriver and some gentle force in . . . bottom side, see details. But note: in this particular picture, the key cap is rotated 90 degrees. . . .
4K - last updated 2016-02-18 07:52 UTC by 6615
2016-02-19 Swift example of regex
Here's a quick-and-dirty copy-paste example of a regex in Swift 2.0. It pulls the width and height as . . .
1K - last updated 2016-02-19 06:05 UTC by 6615
2016-03-18 Lets Encrypt
Another day, another TLS certificate from the friendly folks at [https://letsencrypt.org Let's Encrypt]! . . . following lines to /etc/apt/sources.list # Backports repository deb http://httpredir.debian.org/debian . . . jessie-backports main contrib non-free Update the lot, then install . . . update $ sudo apt-get install -t jessie-backports letsencrypt I'm running Apache and had SSL configured . . . So I ran the client: $ sudo letsencrypt certonly --webroot -w /var/www/vankuik/www/ -d www.vankuik.nl . . .
2K - last updated 2016-05-16 08:22 UTC by 6615
2016-03-18 Updating Xcode
[http://ericasadun.com/2016/03/22/xcode-upgrades-lessons-learned/ Erica Sadun about updating Xcode]. . . . to update Xcode, and that's what she did. Unfortunately, the download is very big and you don't really . . . were downloading Xcode from a fast 3rd party server, because the usual route wasn't feasible. . . .
2K - last updated 2016-03-23 07:06 UTC by 6615
2016-04-16 Codility supports Swift
If you didn't know [https://codility.com/programmers/ Codility]: it's a company that devises programming . . . in solving programming puzzles. And now it supports Swift! I've been having fun doing some small puzzles . . . - noun: a place where people can play import UIKit enum Bracket: Character { case squareOpen . . .
2K - last updated 2016-04-16 19:34 UTC by 6615
2016-04-24 Swift solution to StoneWall
This is a 100% scoring solution to the Codility StoneWall problem. Note the bunch of print statements . . . import UIKit public func solution1(inout H : [Int]) -> . . .
2K - last updated 2016-04-24 11:29 UTC by 6615
2016-04-28 USB speakers
Since ages, I've had these [http://support.logitech.com/en_us/product/v20-notebook-speakers Logitech . . . For example most Synology disk stations support these speakers. * If you have a PC with a terribly . . . audio without the interference. * They're supported on every OS that I know: Linux, OS X, Windows. . . . people would ask me where to get these. But unfortunately they long since went out of stock everywhere . . .
2K - last updated 2016-12-07 07:57 UTC by 6615
2016-05-16 Renewing letsencrypt certificates via crontab
Last time, I showed how I installed the LetsEncrypt certificates but not how to automatically renew them. . . . your mileage may vary. #!/bin/sh letsencrypt certonly --force-renewal --webroot -w /var/www/example.com . . . is there because we renew monthly, while the certs are valid for three months and the client warns . . . of every month -- we want to call it at some particular randomly chosen moment so the letsencrypt . . . 33 5 21 * * root /opt/letsencrypt.sh This particular example will call the script on the 33rd minute, . . .
2K - last updated 2016-05-16 09:41 UTC by 6615
2016-05-24 home shortcut key for Firefox on OS X
If for some reason you are moving from Safari to Firefox on OS X, you might miss the Cmd-Shift-H shortcut . . . this becomes the Fn-Option-LeftArrow shortcut which I can never remember. An alternative is . . .
1K - last updated 2016-11-22 08:30 UTC by 6615
2016-05-24 Swift example of CoreData max query
Here's a copy/paste example of doing the equivalent of a SQL MAX() function. I know, I know "CoreData . . . inManagedObjectContext: moc) // request.propertiesToGroupBy = ["sequence"] request.resultType = . . . request.propertiesToFetch = [quantityExpression] request.predicate . . . the predicate or uncomment and adjust the propertiesToGroupBy. . . .
2K - last updated 2016-05-24 11:16 UTC by 6615
2016-05-26 Printing on a Kyocera FS2020D from OS X
Here's how you can install a Kyocera FS2020D printer on OS X. First, download and install the driver: . . . an additional icon to appear in the System Properties app. It's labeled "Select PDL". You can ignore . . . It'll mention a couple of things, but most importantly its IP address. On OS X, in System Preferences, . . .
1K - last updated 2017-10-05 06:40 UTC by 6615
2016-06-02 Good error messages in Xcode Run Scripts phase
Xcode has an option to run a script when building. This is necessary for example when using [https://github.com/Carthage/Carthage . . . Carthage]. Reading the instructions, Carthage says: "Create . . . script area below the shell: /usr/local/bin/carthage copy-frameworks" However, to make things easy . . . to stderr combined with an "exit 1". For Carthage you could do the following: CARTHAGE="/usr/local/bin/carthage" . . . if [[ -e "$CARTHAGE" ]]; then /usr/local/bin/carthage copy-frameworks . . .
2K - last updated 2016-06-06 12:43 UTC by 6615
2016-06-12 Veertu the hidden gem
For my last project, I've been using [https://veertu.com/ Veertu]. I consider it the hidden gem of desktop . . . virtualization. The big boys in this space are basically . . . Parallels, VMWare and VirtualBox. They all require loads of kernel drivers, . . . as possible. But since last year, there is Veertu. It uses Apple's own Hypervisor framework and it's . . . distributed [https://itunes.apple.com/us/app/veertu-native-virtualization/id1024069033?mt=12 through . . .
3K - last updated 2016-06-12 13:46 UTC by 6615
2016-08-16 Filter array in Swift
Here's a bit of code that you can throw in a playground. Given an array with a bunch of objects, it'll . . . filter the array based on a property. Then it'll print the result. class MyObj: CustomStringConvertible . . .
1K - last updated 2016-08-16 11:36 UTC by 6615
2016-09-22 Swift 3 naming
Swift 3 is different from version 2 in the naming department. The short version is that the first label . . .
1K - last updated 2016-09-22 08:50 UTC by 6615
2016-10-06 Walking through a String in Swift 3
This is how you walk through a string in Swift 3: let str = "Hello, playground" let stepsize = 3 let . . . len = str.characters.count for start in stride(from: 0, to: len, by: stepsize) { var . . . end = start + stepsize if end > len { end = len } let startIndex . . . = str.index(str.startIndex, offsetBy: start) let endIndex = str.index(str.startIndex, . . . offsetBy: end) print("From \(start) to \(end)") print(str[startIndex..<endIndex]) } . . .
1K - last updated 2016-10-07 07:35 UTC by 6615
2016-11-04 Veertu now open source
My favorite virtualization software [https://veertu.com Veertu] has been open sourced! Check out their . . . blog entry: https://veertu.com/usb-bridged-networking-support/ Version 1.2.90 . . . is now available from [https://veertu.com their website], or via [https://caskroom.github.io . . . Brew Cask]: $ brew cask install veertu-desktop . . .
1K - last updated 2016-11-04 09:19 UTC by 6615
2016-11-08 AutoLayout in a playground
What got me confused today, was how to play with AutoLayout in a Playground. The trick is to first create . . . The following works for Xcode 8.1: import UIKit let view = UIView(frame: CGRect(x: 0, y: 0, . . .
2K - last updated 2016-11-08 13:05 UTC by 6615
2016-11-14 Questions when looking for a coworking space
I've heard the figure that every four hours, a new coworking space is created. Personally, I've got a . . . * Do I get an ethernet cable? This is very important because WiFi can be iffy. * Is there a lock on . . . to write down these answers. I've had the unfortunate situation where an office manager would give . . .
2K - last updated 2016-11-14 11:15 UTC by 6615
2016-11-29 Firefox on macOS
To have Firefox look a little more at home on macOS, check out the following addons: * [https://addons.mozilla.org/en-US/firefox/addon/pinch-to-zoom-firefox-osx/ . . . monitor from my 2016 MacBook Pro. After restarting, it brings up the Restore Session screen with . . .
1K - last updated 2016-12-04 08:57 UTC by 6615
2016-12-25 Firefox crashes on late 2016 MacBook Pro
I've been using Firefox on a late 2016 MacBook Pro, running macOS 10.12.2. Every time the laptop wakes . . . Firefox when the system goes to sleep, and start it upon waking. In Firefox Preferences -> General, . . . can configure a setting called "When Firefox starts". Set this to "Show my windows and tabs from last . . . hs.caffeinate.watcher.new(callback) mywatcher:start() log.i("Started") . . .
2K - last updated 2016-12-25 17:18 UTC by 6615
2017-01-12 Finder shortcuts
I couldn't find a one-page PDF with all macOS Finder shortcut keys. So I made one: [[Finder_shortcuts.pdf]]. . . . so you can adjust to your liking: [[Finder_shortcuts.xlsx]]. Both are licensed under the [https://creativecommons.org/licenses/by/4.0/ . . .
1K - last updated 2017-01-12 21:05 UTC by 6615
2017-02-02 Swift app without Interface Builder
Here's an example of an AppDelegate.swift, for those who don't like Interface Builder: import UIKit @UIApplicationMain . . .
1K - last updated 2017-02-03 09:03 UTC by 6615
2017-02-03 Create your own laptop battery test
Recently I wanted to test how long the battery of my 2013 MacBook Air lasts. The quickest solution I . . . show 100% at this point because we want to start fully charged. * In System Preferences, turn off . . .
2K - last updated 2017-02-03 20:56 UTC by 6615
2017-02-21 Linux VPS with TeamViewer
Here are my short notes on creating a Linux VPS (virtual private service) which can be remotely accessed . . . is often that a Linux VPS doesn't have a virtual graphical card. For remote access to the GUI, . . . need at least 1 GB of memory. After it's started, log in via SSH as root and do the following: . . . Next reboot, make sure the GUI starts: # systemctl set-default graphical.target If your . . . corner, set shell to "Gnome Xorg" (this is important!) and then continue to log into Gnome. [[image:Linode . . .
3K - last updated 2019-12-08 07:25 UTC by 6615
2017-04-04 UITextView with placeholders
For my current project, the user needs to select a template from a list. The template contains a number . . . where text needs to be filled in, and further editing needs to be done. I've created [https://github.com/bvankuik/TextViewWithPlaceholders . . .
1K - last updated 2017-04-04 11:36 UTC by 6615
2017-04-07 Stopping autoplaying videos
There's a larger and larger number of websites that auto-play completely unrelated videos when opening . . . on the Reuters website: http://www.reuters.com/article/us-twitter-lawsuit-idUSKBN1782PH . . .
1K - last updated 2017-04-07 05:49 UTC by 6615
2017-04-11 UIStackView playground
Here's a nice way to play with a UIStackView. Copy and paste the following code into a playground, and . . . of the playground where necessary. import UIKit var view = UIView(frame: CGRect(x: 0, y: 0, . . .
2K - last updated 2017-04-11 09:02 UTC by 6615
2017-05-09 Check PDF file header with Swift
Here's a little Swift playground that shows how you can check whether a Data object (for example from . . . done by checking the first couple of bytes. import UIKit // http://stackoverflow.com/a/26503955/1085556 . . . c: String = hex.substring(to: hex.index(hex.startIndex, offsetBy: 2)) hex = hex.substring(from: hex.index(hex.startIndex, . . .
2K - last updated 2017-05-09 12:14 UTC by 6615
2017-05-29 Creating a Swift module
When creating a custom view, I find it very useful to make it into a framework and include an example . . . Plus, when you're done, it's very easy to import the result into other projects. To set this up, . . . name that reflects a library name such that "import yourlibname" looks logical and good * Create a new . . . * Then edit the new ViewController and type "import yourlibname" * Then instantiate a class from your . . .
1K - last updated 2017-05-29 09:55 UTC by 6615
2017-09-25 Swift example of a factory and a closure typealias
I couldn't find a nice, compact example of a closure typealias in Swift, so here is one you can paste . . . straight into a Playground: import Foundation typealias MakeClosure = (_ a: Int, _ . . .
1K - last updated 2017-09-25 13:22 UTC by 6615
2017-10-06 reset display under macOS
Sometimes, you need to reset the display under macOS, without it being visible. Under Linux, this is . . . preparation. First, you have to make a shortcut key to System Preferences: * Open System Preferences . . . * Open the Keyboard applet * Open the Shortcuts tab * On the left, select App Shortcuts * On . . . the right, below All Applications, add a shortcut key. The text should be exactly "System Preferences..." . . . The shortcut key could be something like Ctrl-Cmd-, In the . . .
2K - last updated 2017-10-06 14:53 UTC by 6615
2017-10-09 using reduce in Swift
Here's a little playground that shows how to use reduce in Swift, specifically use it to report on a . . . Some of them were enabled, some not (i.e. property <tt>isEnabled</tt> set to true or false). Or for . . . instances; are none of them hidden? That sort of stuff. I could've posted this example with just . . .
2K - last updated 2017-10-10 21:55 UTC by 6615
2017-11-06 Xcode 9.1 unknown error
After upgrading to Xcode 9.1 (build 9B55), the following error would be shown in a modal dialog after . . . 'xxxxxx' exists but is not a tree (-3) This particular path is included via a git submodule, but . . .
1K - last updated 2017-11-06 08:40 UTC by 6615
2017-11-07 Close button on popover
On iPhone, you usually add a cancel/close button to a modal popover. On iPad, there's usually no need . . . building an app for the iPad, and you support Split View and Multitasking, you suddenly do need . . .
5K - last updated 2018-01-09 07:28 UTC by 6615
2017-12-23 Showing SVG image without libraries
Recently I had the need to show a logo in SVG format, but the project required that we did not include . . . 3rd party libraries. The following Swift playground shows . . . thus there's no need to do anything special. import UIKit import PlaygroundSupport import WebKit class . . . hidden\"> <head> <meta name="viewport" content="initial-scale=1.0" /> <title>icon_people_search</title> . . . Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" . . .
3K - last updated 2017-12-23 13:47 UTC by 6615
2018-01-11 Navigationbar below statusbar on iOS 10
I had the strangest issue today. When testing my current app on iOS 10, the navigation bar would sit . . . true } } The problem is, that the window property is initialized too early. Moving it to didFinishLaunching . . .
2K - last updated 2018-01-11 09:57 UTC by 6615
2018-03-16 overview of font sizes when using Dynamic Type
If you want to support Dynamic Type in your iOS app, and I think you should, then one possible route . . .
1K - last updated 2018-03-16 08:52 UTC by 6615
2018-05-15 Non-existing dates
One William Woodruff wrote a blog entry in 2015 about non-existing dates: https://blog.yossarian.net/2015/06/09/Dates-That-Dont-Exist . . . these supposedly illegal Gregorian dates :( import Foundation var dateComponents = DateComponents() . . .
1K - last updated 2018-05-15 07:22 UTC by 6615
2018-08-27 Two useful Xcode shortcut keys
I found out about two extremely useful Xcode shortcut keys: Ctrl+Cmd+[ or ] to cycle through the active . . .
1K - last updated 2018-08-27 10:56 UTC by 6615
2019-07-15 Generic parameter subject could not be inferred
In a condensed form, I had the following SwiftUI code: struct Input { var someString = "OH HAI" } struct . . . } } Then I changed someString to a computed property: struct Input { var someString: String { return . . .
1K - last updated 2019-07-15 08:39 UTC by 6615
2019-12-08 Linux VPS with TeamViewer
In 2017, I blogged about [https://www.vankuik.nl/2017-02-21_Linux_VPS_with_TeamViewer setting up a Linux . . . with a Fedora 31 desktop and TeamViewer. Unfortunately, I can no longer get it working; TeamViewer . . . First install the desktop, enable GUI to start after reboot, and download and install TeamViewer: . . . From there you can log into Gnome. It's important that you do this correctly; first click on the . . . you'll see the desktop. From here, you can start and configure TeamViewer. Or at least, you should . . .
3K - last updated 2020-02-07 07:57 UTC by 6615
2020-03-05 Capping an array in Swift
Do you want to cap an array in Swift to a certain size? Here's how: var array = ["a", "b", "c", "d", . . . array.replaceSubrange([0, array.count, 3].sorted()[1]..., with: []) . . .
1K - last updated 2021-06-01 13:12 UTC by 6615
2021-01-22 Error in SwiftUI Previews part deux
Today Xcode refused to show previews for one view, displaying "Cannot preview this file" on top of the . . . a problem elsewhere, because unittests most certainly should not belong to any other target than . . . folder * Start Xcode and simulator * Remove all unittests from . . .
1K - last updated 2021-01-22 10:40 UTC by 6615
2021-10-20 Generic parameter Destination could not be inferred
Xcode 13.0. If you're banging out SwiftUI code, and you got the following error message: Generic parameter . . . tried to navigate to a Text view): Cannot convert value of type 'Text' to expected argument type '() . . .
1K - last updated 2021-10-20 10:53 UTC by 6615
2021-12-02 SwiftUI NavigationLink Extraneous argument label isActive in call
Today, in Xcode 13.1, I got the following error: Extraneous argument label 'isActive:' in call Accompanied . . . 'Destination' could not be inferred Cannot convert value of type 'Text' to expected argument type '() . . .
1K - last updated 2021-12-02 15:26 UTC by bartvk
2022-05-23 Xcode Package.resolved file is corrupted or malformed
Today Xcode gave me the error "Package.resolved file is corrupted or malformed; fix or delete the file . . . then quit Xcode and the simulator. Then started Xcode again and opened the workspace: it built. . . . fix or delete the file to continue: unsupported schema version 2". I'm not yet happy with the . . .
2K - last updated 2022-05-23 09:10 UTC by bartvk
2022-09-15 Xcode linker error ld framework not found
Today I got the following error when trying to build my unittest for my Swift package: ld: framework . . . found CoreAPIKit Note that the name of that particular framework (CoreAPIKit) doesn't matter; it's . . .
1K - last updated 2022-09-15 13:26 UTC by bartvk
2022-11-18 Example of hierarchical list
I actually didn't know that the SwiftUI List element natively supports hierarchical lists, until someone . . .
1K - last updated 2022-11-18 08:31 UTC by bartvk
2022-12-12 When to use StateObject wrappedValue initializer
UPDATE 2023-04-28: Apple updated its documentation: https://developer.apple.com/documentation/swiftui/stateobject#Initialize-state-objects-using-external-data . . . initializer directly. Instead, declare a property with the @StateObject attribute in a View, App, . . . engineer saying that this initializer is supported. Still, using that initializer means that if your . . . can be used at points in your app where you start a completely new flow. For instance in a popup where . . .
2K - last updated 2023-04-28 06:02 UTC by bartvk
2023-03-28 Contacts app macOS sorting
The Contacts app (the app previously known as Address Book) will sort by default on last name. If you . . . prefer sorting on first name, and you're a command-line oriented . . . person like me, you want to set your sorting preference from a script. Here's how: defaults . . . write com.apple.AddressBook ABNameSortingFormat -string "sortingFirstName sortingLastName" . . .
1K - last updated 2023-03-28 11:25 UTC by bartvk
2023-04-12 Natural breaks in Time Out application for macOS
I'm using a break reminder on macOS, it's called Time Out. https://dejal.com/timeout/ It's a very full-featured . . . macOS log viewer. In Console, click the blue Start Streaming button, then in the top right, type: "process: . . .
2K - last updated 2023-04-12 09:15 UTC by bartvk
2023-08-30 Coordinator in preview
When you're using the Coordinator pattern in a SwiftUI project, you'll find yourself sometimes wanting . . . to preview the initial start of a "flow" of screens. But that's quite a bit of . . . configuration.title = "Start" self.view = UIButton(configuration: configuration, . . . animated: true) self.coordinator.start() })) } } struct PreviewCoordinator: UIViewControllerRepresentable . . . typealias UIViewControllerType = NavigationController func makeUIViewController(context: . . .
2K - last updated 2023-08-31 11:26 UTC by bartvk
2023-12-01 Unable to use public key authentication for ssh login on Raspberry Pi
TL;DR: Raspberry Pi OS will reject rsa keys, use another type of key, and copy it to the Pi: % ssh-keygen . . . OS (which is titled "Raspberry Pi OS, a port of Debian Bookworm"). I wanted to use passwordless . . . add the following line: LogLevel DEBUG3 Restart SSH daemon and follow logs: % sudo systemctl restart . . . line from the sshd configuration, and restart the daemon. . . .
2K - last updated 2023-12-01 08:55 UTC by bartvk
2024-05-31 Microsoft Excel shortcut key
When I'm in Microsoft Excel on macOS, I often want to clean up and delete rows. The online documentation . . . is weird, and mentions a non-working shortcut key. To delete a row with the keyboard, navigate . . .
1K - last updated 2024-05-31 12:46 UTC by bartvk
2025-02-11 Garmin Zumo XT error
I updated my Garmin Zumo XT, and it showed me the error "map data not available" when I wanted to search . . . I hope this helps people because the Garmin Support pages are not easy to read. . . .
1K - last updated 2025-02-11 08:52 UTC by bartvk
A Small Oracle 10g
= Checking total memory usage = After the installation, check memory size like this: ps -o rss,vsz,cmd . . . --sort=rss -u oracle The rss column means Resident Set . . . Size i.e. actually occupied virtual memory, the vsz tells us what the total virtual . . . [oracle@bkuik-nl orcl]$ ps -o rss,vsz,cmd --sort=rss -u oracle [oracle@bkuik-nl orcl]$ . . .
1K - last updated 2005-11-03 12:05 UTC by 6615
A Small Oracle 9i
== HOWTO: A Small 9i Database == This thing is HUUUUUGE... Yeah, it's a big beast. But if you need an . . . know your hostname, just use the SID. If you start typing in the first field, the second field is automatically . . . field with the same value. Type a nice, short name and click Next. == Step 4 == This screen displays . . . two tabs. Since I unchecked some options when starting the installation, some features are grey. All . . . Again, for the curious: JVM stands for Java Virtual Machine. The Oracle database can run its own . . .
13K - last updated 2005-03-18 22:41 UTC by 6615
Acrobat Reader crash with search
When you open a document using Adobe Acrobat Reader 5.0.6 (and maybe other versions) and type CTRL-F . . . the search, clicking OK will crash it. If started from the commandline, it will display something . . . crashed, kill it with killall -9 acroread or start xkill and click on the window. . . .
1K - last updated 2005-03-24 07:50 UTC by 6615
Adjusting Starfighter
Reading source code is one of those things that I feel that nobody likes, while the advantages are so . . . the executable as well as the source. Then start playing the game! Note: I'm running Linux. If you're . . . you understand these, you're often a big step further into understanding the whole concept. Of course . . . function called locateDataInPak() but I'm not certain how to unpack and repack it again without some . . . still fires a rocket. Hmm, let's investigate further. I look at the filenames again and see bullet.cpp. . . .
9K - last updated 2007-05-01 13:56 UTC by bvankuik
Airco
* Een inverter zorgt voor stillere werking doordat airco op gedeeltelijk vermogen kan draaien * Een split . . . en is zeer stil te krijgen. Fuji RSW-9L wand inverter 2,6 kW-koelen 3,6 kW ver wandmodel koelen/verwarmen, . . . inverter regeling. Met ioniisatie en filters. 1.029,00 . . .
1K - last updated 2007-05-06 07:56 UTC by 6615
Another viewpoint on open source software
The other day I had an interesting conversation with a girl who works at a large multinational bank for . . . the internal auditing department. She has an economic background and does a parttime . . . but that was a lot of work for him. So they started using a commercial product where you can synchronize . . . organization and one of the people there started disassembling the BitKeeper format in his spare . . . the window if you like. And you can pull it apart to see what's happening inside. But what is your . . .
6K - last updated 2005-04-23 20:21 UTC by 6615
Artificial Intelligence links
* [http://www.alicebot.org/ Alicebot] . . .
1K - last updated 2005-09-02 19:19 UTC by 6615
ASCII art
oo <|> _|_ And DANCE oo <|> _|/ oo \|-- _|/ oo --|/ _|_ . . .
1K - last updated 2007-12-21 16:23 UTC by 6615
Audiobook links
* http://tuxmobil.org/ebook.html * http://librivox.org/ * [http://ask.slashdot.org/article.pl?sid=05/07/07/2131240&tid=192&tid=146&tid=4 . . .
1K - last updated 2006-09-19 11:21 UTC by 6615
bart duitsland small.jpg
image/jpeg
170K - last updated 2007-06-26 13:05 UTC by 6615
Bash
= Online resources = [http://ldp.nl.uu.net/LDP/abs/html/ Advanced Bash-Scripting Guide] = Changing numbering . . . files had to be renamed such that numbering started at zero instead of one. You can do this with the . . . "%04d" $num).png done = Testing for a certain extension = If you want to test whether a file . . . has a certain extension, use the following trick: # Test for . . . method="post" enctype="multipart/form-data"> <input name="file" file"> <input type="submit" . . .
10K - last updated 2012-09-14 07:29 UTC by 6615
Bookmarks
* [[Bookmarks_to_check_out_sometime]] ----- * [[Artificial_Intelligence_links]] * [[Audiobook_links]] . . .
1K - last updated 2006-11-07 19:20 UTC by 6615
Bookmarks to check out sometime
* [http://openejb.codehaus.org/ OpenEJB], with an additional [http://www.onjava.com/pub/a/onjava/2003/02/12/ejb_tomcat.html . . . article] * http://www.softwarereality.com/ * The HURD . . . on Windows] * [http://blogs.msdn.com/ericlippert/archive/2004/08/25/220373.aspx Erik Lippert's Blog] . . . Art: * http://www.soasoas.com/gallery.php * Gifted painter: . . .
1K - last updated 2006-08-03 14:26 UTC by 6615
Booting over the network
= Red Hat Enterprise Linux and PXE = It's possible to install Red Hat Enterprise Linux (RHEL) or any . . . which your to-be-installed server has to support. First, issue on your existing server the following . . . This last IP address is VERY important -- only a client who receives this IP address . . . the following should appear: xinetd[4691]: START: tftp pid=4698 from=127.0.0.1 in.tftpd[4699]: RRQ . . . The installation should now start. However, PXE is ''only'' used to ''boot'' the new . . .
4K - last updated 2007-05-09 09:36 UTC by 6615
carthage build error 2016-06-06.png
image/png
29K - last updated 2016-06-06 12:42 UTC by 6615
CDT
[http://www.eclipse.org/cdt/ CDT homepage] [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/cdt-home/user/faq.html?cvsroot=Tools_Project . . . take on Eclipse/CDT Some warnings: * After starting Eclipse, let the Indexer run out completely. . . . line '''-Xmx256m''' to '''-Xmx512m''' Current shortcomings: * Refactoring is limited, not even 'extract . . . * Hovering over a function will show the start of the function definition, but ''only'' if the . . . will show nothing. Coming from Java and starting CDT: * Turn off 'Build automatically' and get . . .
3K - last updated 2006-02-16 12:38 UTC by 6615
Cheap VPS Hosting
(English readers: this is an overview of cheap Dutch VPS hosters) = Update 23-12-2013 = '''Update:''' . . . veranderd. Momenteel heb ik ervaring met twee partijen: [http://www.transip.nl/ TransIP] en [https://www.digitalocean.com . . . moment van schrijven) vrij gunstig. = Budget Virtual Private Servers (onder €15) = Hieronder een overzicht . . . van hosting bedrijven die Virtual Private Servers aanbieden met Linux of BSD. De . . . zijn 'unmanaged', dat wil zeggen zonder support voor configuratie en beheer van de server. Een redelijke . . .
12K - last updated 2013-12-23 10:48 UTC by 6615
Colocation and ISPs
This page is in Dutch! = Links = Colocatie (price per month) ||Bedrijf ||Prijs ||Bandwidth || ||http://www.technotop.nl/ . . . = Een goed verzoek voor een offerte = Graag een prijsopgave voor 2U colocation: Het . . .
1K - last updated 2007-07-30 07:57 UTC by bvankuik
Comments on 2006-10-03 Mod perl and Slackware
Note that the latest version of Apache that comes with Slackware 10.2 is 1.3.37 (published as a security . . . you can say no. -- [http://www.inlv.demon.nl/martijn/ McDutchie] 2006-10-03 19:37 UTC ---- Thanks . . . AddModule list, add: AddModule mod_perl.c Restart apache: # /etc/rc.d/rc.httpd restart Check Apache . . . [notice] SIGHUP received. Attempting to restart [Tue Oct 3 10:38:54 2006] [notice] Apache/1.3.33 . . .
3K - last updated 2006-10-04 09:19 UTC by bvankuik
Comments on 2007-03-12 Better measurement
Ha Bart! Ik zat wat te koekeloeren op je weblog. Die plot, is die van Python? Je hebt trouwens een hoop . . .
1K - last updated 2007-09-13 13:01 UTC by bvankuik
Comments on 2008-05-31 Test for a sysadmin
As part of an interview for a new system administration, we asked the following questions: General: * . . . up the name servers for a domain? * What are virtual hosts in the HTTP protocol? Network layer 4 and . . . you use? Security: * How do you check for open ports? * What is jailing? * What is selinux? * When is . . .
2K - last updated 2008-05-31 10:40 UTC by 6615
Compaq ProLiant DL360
= Links = A good page on this piece of server by Andew McNabb: http://www.mcnabbs.org/andrew/linux/proliant/ . . . } hdc: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 } ide: failed opcode . . . } hdc: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 } ide: failed opcode . . . CD-ROM drive. The ProLiant DL360 doesn't support IDE drives. = Sensors = [[Compaq_sensors-detect_readout]] . . .
2K - last updated 2007-07-06 16:26 UTC by 6615
Composition in photography
A friend of mine gave me the following tip. When composing a photo, think of a matrix: [[image:matrix1.png]] . . . lower: [[image:matrix2.png]] You can use the vertical lines as well. When clicking a photo of a man . . . and a car, try to get both on the vertical lines. And again, think about the ground, can . . .
1K - last updated 2008-02-25 07:53 UTC by 6615
Configuration
= Generating a config file = In a non-trivial project, several programming languages will often be used. . . . You start with makefiles and a bit of C. Then, a web frontend . . . C is going to have a problem with this without further coding. This is where [http://www.gnu.org/software/m4/ . . . m4 file. The lines will be pasted at the start of the Config.h. define(_USER_,testuser_1)dnl define(_GROUP_,testgroup)dnl . . . # This line will be pasted at the start If you want to add them to the end, use ''divert''. . . .
8K - last updated 2006-10-20 14:09 UTC by bvankuik
Console fonts
To manually change the font of the console, first you have to know where the fonts reside: * For Slackware: . . . $ setfont /path/to/lat9u-12.psfu.gz To set a particular font upon startup, add something like the . . .
1K - last updated 2008-02-01 07:58 UTC by 6615
coreutils
= Counting and averaging = Suppose you have a big log file with lines like: 07-06-2005 13:45:28 - [12013] . . . s/NR}' = Directory listings = Sort on modified time, most recent first: $ ls -lt = . . . bug through a 800Mb logfile? Want to attach a particular piece of the logfile to an e-mail or ticket . . . the occurrence with grep, then chop the exact part out with head and/or tail: $ grep -n NullPointerException . . .
3K - last updated 2008-11-14 12:32 UTC by 6615
Creating a deb package
= Create a Debian package in 8 steps = Create a directory according to your package name, for instance . . . Debian policy]. = Don't start from scratch = If you don't want to start from scratch, . . .
3K - last updated 2009-01-08 08:46 UTC by 6615
css2
/* Placement of the logo */ #logo { position: fixed; top: 600; left: 400; } hr { height: 2px; border: . . . progid:DXImageTransform.Microsoft.gradient(startColorstr='#999999', endColorstr='#666666'); color: . . . 5px; /* border-right: #000000 1px solid; */ vertical-align: top; /* white-space: nowrap; */ } div.rss . . .
3K - last updated 2015-05-13 08:38 UTC by 6615
Database Logging Package
The java.util.logging classes are taking over the homebrewn solutions at the moment. It's a very flexible . . . works best using an editor on the logging.properties file. This works fine on development, however, . . . can be downloaded below. It consists of two parts. The first part is simply a logging handler which . . . the log messages to the database. The second part consists of a thread which will read the logging . . . you would normally put in your logging.properties file) from a database table. This thread has . . .
2K - last updated 2005-03-19 09:48 UTC by 6615
Debian
= Package tools = == dpkg-query == This command is meant to query the package database. Some examples: . . . searching. To search for all packages that start with 'apache' in the name: $ apt-cache search --names-only . . . Search for a package which provides a certain file: $ apt-file search mysql.h Or use the web . . . Search for installed package name which owns a certain file: $ dpkg --search "/usr/games/fortune" Nice . . . -Wf '${Installed-Size} ${Package}\n' | sort -n -r | head To see which packages depend on a specific . . .
6K - last updated 2014-01-10 12:17 UTC by 6615
Debian guest on CentOS host
The explanation below details the installation of a Debian guest on a Xen host running the CentOS/Red . . . directories from the Xen package to the virtual machine: $ sudo cp -r /opt/xen-3.0.2-2-install/install/lib/modules/2.6.16-xen . . . option and the swapfile (instead of a swap partition) are things that aren't necessary, but just . . . to use: $ sudo lvcreate -L 2G -n debian_lv vg0 Partition the new logical volume: $ sudo fdisk /dev/vg0/debian_lv . . . After adding one or more partitions, write the new table and create new devices . . .
4K - last updated 2007-09-21 07:29 UTC by 6615
Debian Sarge on Xen backup copy
Quick instructions for installing a Debian Sarge VM on Xen http://wiki.xensource.com/xenwiki/DebianSarge . . . PROCEDURE Prepare your storage. You can use partitions, LVM volumes or simple file-based images. . . . a file-based because the IO sucks, use real partitions or LVM volumes. Choosing a suitably large . . . partition (/usr) I linked it into /opt/xen mkdir /usr/xen . . . ] root = "/dev/sda1 ro" Start it xm create vm01.cfg -c > Using config file "/etc/xen/vm01.cfg". . . .
3K - last updated 2006-09-24 13:52 UTC by 6615
Debugging
= GNU debugger = For an introduction into gdb, check out [http://www.unknownroad.com/rtfm/gdbtut/gdbtoc.html . . . source code around current step || ||l ''start,end''||List source code, parameters optional || . . . either on the commandline or in your shell startup file: ulimit -c unlimited This sets no limits . . . 57M 2007-06-05 20:48 /tmp/core_srv_tscu_5266 Particularly pay attention to the 5th column, the file . . . in the directory where the executable was started. To change this behaviour, edit /etc/sysctl.conf . . .
8K - last updated 2012-03-16 14:17 UTC by 6615
dilbert.gif
image/gif
12K - last updated 2006-07-06 10:22 UTC by 6615
DNS links
* http://zor.in/ * http://www.nxs.nl/ * http://www.dnstools.nl/ * http://www.je-eigen-domein.nl/ * http://www.enom.com . . . * [http://www.dnsreport.com/ To test a DNS server] * http://providersoftware.nl/ . . .
1K - last updated 2006-08-10 06:32 UTC by 6615
Downloads
* [[fortune-hitchhiker.deb]] fortune-hitchhiker is a collection of quotes from Douglas Adams' famous . . . Guide to the Galaxy" for use with the fortune program. Author: Andreas Gohr. To use after installation, . . . simply type ''fortune hitchhiker''. Tarball to build deb package: [[fortune-hitchhiker.tar.gz]] . . . * [[fortune-ferengi.deb]] fortune-ferengi is a collection . . . of profit." Tarball to build deb package: [[fortune-ferengi.tar.gz]] * [[cxxtest-3.1.10.deb]] CxxTest . . .
1K - last updated 2009-02-03 11:52 UTC by 6615
DutchVirtual
= dv1 configuration notes = * eth1 has IP address 192.168.0.253 * Disks are in s/w raid, partition 1 . . . * [[dv1_installation]] == www1 == Has swap as partition on lv1. = dv2 configuration notes = * eth1 . . . address 192.168.0.243 * Disks are on h/w raid, partition 1 is the compaq special BIOS partition, partition . . . 2 is boot, partition 3 is a big LVM PV, with the first lv0 the root . . . partition. * [[dv2_installation]] = Todo = * alpha, bravo: . . .
5K - last updated 2008-08-15 10:01 UTC by Bart
dv1 installation
* Installation, see [[Booting_over_the_network]]. Customized package selection, everything deselected . . . 0 0 * Install kernel-xen, install group Virtualization. * Install sudo, xauth. * Turn off selinux . . . through dhcp * Create image for domU's through virt-manager; this hangs after answering two questions; . . . neither does ftp work. New approach is kickstart: system-config-kickstart noarch 2.6.19.1-1.el5 base . . . noarch 1.2.10-1.el5.centos.1 base 246 k pykickstart noarch 0.43-1.el5 base 127 k system-config-language . . .
3K - last updated 2007-06-24 09:37 UTC by 6615
dv2 installation
* Installation using CD. Customized package selection, everything deselected except base utilities. * . . . 0 0 * Install kernel-xen, install group Virtualization. * Install sudo, xauth. * Turn off selinux . . . * Boot with laptop and serial cable * Make SMART disk status readout for Zabbix * Check out logwatch . . . * Set up tripwire * How important is the UUID and the MAC address settings in Xen . . . SVN on www1 * How does VNC function with the virt-manager utility? * Lock down sshd * Remove server . . .
2K - last updated 2007-06-24 09:35 UTC by 6615
Easy logging in
== std_mingetty == To make my Red Hat Linux virtual consoles a little more userfriendly, I adapted the . . .
1K - last updated 2005-03-19 07:17 UTC by 6615
Endianness
= Endianness = Refers to the ordering of bytes in memory. Processor-, not OS-dependent. Big-endian machines . . . 16-bits integers. Note: * The standard serial port is 'little-endian' in that it serializes with the . . .
2K - last updated 2006-05-15 08:17 UTC by 6615
Engineer humor
After every flight, the pilot fills a form to tell the engineer which problems or deviations he encountered . . . the OFF mode. P: Motor no. 3 lost. S: After a short search, motor no. 3 found on right wing. P: Plane . . .
2K - last updated 2007-09-10 08:30 UTC by bvankuik
EPIC
[http://e-p-i-c.sourceforge.net EPIC homepage] Shortcomings: * Right-clicking and choosing 'open sub . . .
2K - last updated 2006-02-07 12:38 UTC by 6615
error reporting.png
image/png
168K - last updated 2006-06-22 07:43 UTC by 6615
Evolutionary Database Design Dutch
== Evolutionair Database Design == Door Martin Fowler en Pramod Sadalage Vertaald naar het Nederlands . . . door Bart van Kuik In de laatste jaren hebben wij een aantal . . . component. Er waren vele mensen die ons zelfs vertelden dat het onmogelijk was -- een verontrustende . . . gemaakt van vele agile en XP technieken. Dit artikel beschrijft de technieken die het ons toestonden . . . vroeg begrijpen van de requirements, deze ondertekenen, de requirements gebruiken voor een ontwerp, . . .
28K - last updated 2006-03-02 07:19 UTC by 6615
Example of building and using an external library with SafeStr
= Installation = Download SafeStr from the homepage http://www.zork.org/safestr/ First compile and install . . . set the LD_LIBRARY_PATH as follows: $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/safestr-1.0.3/lib . . . and run the result: $ make cc -c -g3 -I/home/bartvk/opt/safestr-1.0.3/include testsafestr.c -o testsafestr.o . . . cc -L/home/bartvk/opt/safestr-1.0.3/lib -lsafestr -lpthread testsafestr.o . . .
2K - last updated 2006-05-24 10:43 UTC by 6615
Explanation
I'm glad you enjoy the picture. 1. The woman is my friend and coworker, India Branker. See attached for . . . too damn much noise. :) 3. It was taken as part of the "Silence" Challenge at DPChallenge.com <http://www.dpchallenge.com/challenge_results.php?CHALLENGE_ID=194>. . . .
1K - last updated 2006-09-14 09:36 UTC by 6615
FIFOs
= Using a FIFO file to pipe = How can I communicate using a file? A FIFO file, also known as a named . . . /* the message which is transported */ do { printf("What should I send to the server? . . . /* the message which is transported */ int n_read_retval; /* to test the returnvalue . . .
4K - last updated 2006-03-21 10:45 UTC by 6615
Finder shortcuts.pdf
application/pdf
49K - last updated 2017-01-31 12:35 UTC by 6615
Finder shortcuts.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
15K - last updated 2017-01-31 12:34 UTC by 6615
Firewalling
= WARNING WORK IN PROGRESS = As a developer, you sometimes write software to listen to ports that need . . . the ipchains package. I assume the server part of your application listens to TCP connections on . . . port 9012 and 9014. The server runs on a central box . . . which should be able to connect to ports 9012 and 9014. The first rules will let those two . . . Linux 10.1: # iptables -A INPUT -p tcp --dport 9012,9014 -s 192.168.0.11 -j ACCEPT # iptables -A . . .
2K - last updated 2008-11-28 08:14 UTC by 6615
Fixing bugs
For a given piece of software, it's possible that thousands of bugs are logged. That's good. However, . . . get added. It's understandable, but a shame nevertheless. Behind every product, there's a product team . . .
1K - last updated 2005-10-28 15:54 UTC by 6615
Forking
= Start extra processes = Problem: how can I create multiple processes? The answer in the Unix world . . . into the background"; i.e. the process is started, forks and lets the parent end. This way, the . . . script or separate executable is offered that starts the software and puts it in the background. Also, . . . way to provide a service on an Internet port is to let the daemon program inetd do the listening. . . . select) for messages on a specified set of ports. When it receives a message, it accepts the connection . . .
4K - last updated 2006-10-10 09:54 UTC by bvankuik
fortune-ferengi.deb
application/deb
5K - last updated 2009-02-03 12:02 UTC by 6615
fortune-ferengi.tar.gz
application/x-gzip
5K - last updated 2009-02-03 12:01 UTC by 6615
fortune-hitchhiker.deb
application/x-archive
17K - last updated 2006-05-16 07:06 UTC by 6615
fortune-hitchhiker.tar.gz
application/x-gzip
16K - last updated 2006-05-16 07:08 UTC by 6615
Freelance developer links
Intermediators: * http://www.getacoder.com/ * http://www.rentacoder.com/ * http://www.getafreelancer.com/ . . . Resources: * http://ask.slashdot.org/article.pl?sid=05/07/18/2022226 * http://dmoz.org/Computers/Companies/Software_Development/Freelance/ . . .
1K - last updated 2005-07-21 20:41 UTC by 6615
General programming links
* [http://www.atlassian.com/software/jira/docs/latest/extending.html Extending Jira] -- Jira is an issue . . . over logica, informatietheorie, wiskunde, enzovoort . . .
1K - last updated 2005-09-29 07:37 UTC by 6615
Get QEMU running
To get QEMU running, take the following steps: # Download the [http://cdimage.debian.org/pub/cdimage-testing/sarge_d-i/i386/rc3/sarge-i386-netinst.iso . . . installation is done, close the window and start again: '''qemu -user-net deb.img''' See also here: . . . QEMU homepage] * [http://slashdot.org/article.pl?sid=05/02/19/1538231&tid=190&tid=126&tid=1 . . . ||''Native Linux nbench results'' || ||Numeric sort || 846.24|| ||String sort || 120.44|| ||Bitfield . . . 2000 Pro guest in QEMU 0.7.0'' || ||Numeric sort || 637.920796|| ||String sort || 73.396653|| ||Bitfield . . .
2K - last updated 2005-05-16 06:31 UTC by 6615
git
= Starting on an existing project = When you start on a client project, you usually take the following . . . has a development branch, where you can start fixing issues. So you'll probably want to switch . . . works different, etc. But it ought to get you started, and let you find out the details later. ||svn . . . <URL>; git reset --hard <hash> || ||svn revert <filename> (to throw modifications away) ||git checkout . . . <filename> || ||svn revert <filename> (to undo an svn add) ||git reset <filename> . . .
4K - last updated 2020-02-17 19:00 UTC by 6615
Gnuplot
[http://www.gnuplot.info/ Gnuplot] is present on almost every Unix or Linux system and is thus the choice . . . for instance you used the -X option for SSH) Start gnuplot and plot your file: $ gnuplot gnuplot> plot . . .
1K - last updated 2008-11-14 10:31 UTC by 6615
Hardware links
* http://www.baremetalbits.com/ Batteries: * [http://www.batteryuniversity.com/parttwo-34.htm How to . . .
1K - last updated 2006-09-07 07:01 UTC by 6615
HTML and CSS
= Layout = Sometimes you want to generate a popup that has the same size every time, however, the form . . . overflow] property so the browser creates a scrollbar when the table . . .
1K - last updated 2006-05-30 14:39 UTC by 6615
HTML and CSS links
* Free font every month: http://www.freefont.de/us/index.htm * http://www.markschenk.com/webdesign/index.html . . . * http://www.alistapart.com/ * [http://www.deftone.com/blogzilla/archives/canvas_demos.html . . . DesignBum] with lots of free art * http://www.oswd.org/ Open Source Web Design * . . . to hundreds of templates * http://www.stockxpert.com/ Stock photography with free (gratis) licenses . . . Not really HTML, but related to web nevertheless: * http://www.cmsimple.dk/ A nice CMS, no . . .
2K - last updated 2007-08-13 09:39 UTC by bvankuik
IDL
= Installing GDL = http://gnudatalanguage.sourceforge.net/ GDL is an IDL clone. To install on Fedora . . . add the GDL bin directory to your path: export PATH=$PATH:$HOME/opt/gdl-0.8.11/bin * To test, type: . . . For basic information type HELP,/INFO 'GDL_STARTUP'/'IDL_STARTUP' environment variables both not . . . set. No startup file read. GDL> x=5 GDL> print, x 5 GDL> = Bookmarks . . .
1K - last updated 2006-02-08 15:12 UTC by 6615
ids report quoted.png
image/png
160K - last updated 2005-04-08 12:21 UTC by 6615
ImageMagick
ImageMagick is an extremely useful piece of software. There are several interfaces (graphical, commandline . . . the image in the old-fashioned way: $ convert candelabra.jpg -auto-orient candelabra_rotated.jpg . . . an image. For example, suppose you have a portrait photo of width 500 and height 1000 to create . . . passport photos, you'd do something like below. You'll then . . . rows, with 6 images on each row. $ magick convert -size 3000x2000 tile:portrait.jpg passport_photos.jpg . . .
3K - last updated 2025-04-04 08:51 UTC by bartvk
Internationalization
== WARNING WORK IN PROGRESS == == "Geïrriteerd" == Are you a West-European software developer who: # . . . fluffy bits. == Definitions == ; Character repertoire: Just a bunch of characters that someone decided . . . things, but most of the time, means the repertoire plus an encoding. ; Code page: Kind of old thing. . . . things, but most of the time, means the repertoire plus an 8-bit encoding where the first 127 characters . . . designer of the font didn't include glyphs for certain characters. Hell, some fonts only have glyphs . . .
10K - last updated 2005-12-04 15:35 UTC by 6615
irtecon fiske steps.jpg
image/jpeg
92K - last updated 2007-11-20 12:22 UTC by 6615
Java
= Assorted = Some [[Java_Snippets]] that I want to keep. . . .
1K - last updated 2005-09-05 06:51 UTC by 6615
Java Snippets
= Generate a unique number = import java.math.BigInteger; import java.rmi.server.UID; public class UniqueNumber . . . = It's easy to make a typo in the logging.properties so if you want to make sure that you're actually . . . = FTP a file = You are using the Jakarta Commons Net library to transfer files for the user. . . . not valid"); } catch (NoRouteToHostException nrthe) { System.out.println("The IP address was not . . . ""; } System.out.println(s); = To do quick-'n'-dirty timing = boolean debug = true; long startTime = . . .
5K - last updated 2005-11-10 13:52 UTC by 6615
Javascript
= Timing = To do a rough check on the performance of a piece of JavaScript: var start = new Date().getTime(); . . . your code var end = new Date().getTime(); alert("Time spent: " + ((end - start) / 1000 ) + " seconds"); . . .
1K - last updated 2007-06-05 11:41 UTC by bvankuik
JavaSnippets
To do quick-'n'-dirty timing: boolean debug = true; long startTime = System.currentTimeMillis(); if (debug) . . . " + ( System.currentTimeMillis() - startTime ) + " milliseconds"); } To get the full stacktrace . . . in a String (this should've been part of the API): try { // Do stuff } catch (Exception . . . ); rs.next(); Date d = rs.getDate(1); long startTime = System.currentTimeMillis(); try { Thread.sleep(1000*20); . . . <%@ page language="java" session="true" import="blahblah"%> <html> <head> <title>ThreadTest</title> . . .
3K - last updated 2005-03-14 10:40 UTC by 6615
JDeveloper on Linux
Here I'm listing some news, tips, problems and issues I found while running JDeveloper on Linux. For . . . new features of JDeveloper 10g, see also this article by Brian Duff, of the JDeveloper team: http://www.oracle.com/technology/products/jdev/tips/duff/teamdev_9051.html . . . automatically check out files when you start editing them. This can be enabled and disabled in . . . and you open your old version of the file and start editing. It won't download the newer version and . . . 'List Checkouts' feature didn't work too. In short: nothing worked. Creating a new workarea and doing . . .
15K - last updated 2006-01-30 14:56 UTC by 6615
JFall 2004 proceedings
Na een lange periode van radiostilte is de Nederlandse Java User Group NL-JUG weer tot leven gebracht. . . . (voorzitter van de NL-JUG) het uitdrukte. Hij vertoonde op zijn Apple Powerbook een grappig filmpje . . . Hierdoor zijn een aantal zaken verandert. Phipps zag bijvoorbeeld een terugkeer naar het . . . geen enkel verschil want er zijn meerdere soorten vrijheden. De GPL en BSD licenties geven de vrijheid . . . en developers zonder ervaring. Zulk soort projecten waren net als de Titanic gedoemd om halverwege . . .
11K - last updated 2005-04-15 06:39 UTC by 6615
klad
Hub 1Gbit 8 poorten, € 65: * [http://tweakers.net/pricewatch/143584/3Com-3CGSU08-Gigabit-Switch-8-(8x1Gbps-RJ-45)-prijzen.html . . .
1K - last updated 2007-03-17 19:21 UTC by 6615
LaTeX
= Resources = The indispensible [http://ctan.tug.org/tex-archive/info/lshort/english/lshort.pdf Not So . . . Short Introduction To LaTeX2e] = Links = * [http://jedidiah.stuff.gen.nz/lpd.html . . . presentations] = Skeleton = When I write an article in LaTeX, I always use the same skeleton. It's . . . of bibliography, PDFs and a tarball: [[latex_article_skel.tar.gz]]. = Include and scale graphics . . .
1K - last updated 2006-04-09 12:54 UTC by 6615
latex article skel.tar.gz
application/x-gzip
8K - last updated 2006-03-02 20:31 UTC by 6615
Law related to IT links
* [http://www.ictrecht.nl/ ICTRecht] Law firm specialized in IT. * [http://www.domjur.nl/ DomJur] Jurisprudence . . . Protect your intellectual property] . . .
1K - last updated 2005-11-16 08:21 UTC by 6615
Linux
= System Administration = [[Remote_dump]] [[MD5sum]] [[Debian]] -- About apt-get, dpkg and other stuff . . . [[NAT]] [[Traffic_accounting]] [[Virtual_interfaces]] = Shells = [[Shells_for_a_particular_purpose]] . . .
2K - last updated 2012-09-14 07:24 UTC by 6615
Linux links
* http://www.packetfu.org/hpl.html * http://edseek.com/~jasonb/articles/traffic_shaping/ * [http://fas.sfu.ca/dataface . . .
1K - last updated 2007-01-23 12:06 UTC by 6615
Linux on a Dell D600
My employer issued a shiny brand-new Dell Latitude D600. Here, I'm listing any issues I had with this . . . on, this makes working in my opinion very uncomfortable. Here and here are threads on the Dell Community . . . to add a modem, typing /dev/modem as the modem port. . . .
3K - last updated 2005-03-19 07:00 UTC by 6615
Linux on the Desktop
== Linux on the desktop for an Oracle consultant == Larry painted a powerful present and future for Linux, . . . (not an addition) to Windows difficult. This article tries to point out some difficulties, and where . . . available which provides faultless in- and export of MS Office files. But it's not like they're not . . . which provides an alternative for all parts of the MS Office suite, except Access. The latest . . . --- sometimes even better. The in- and export of MS Office documents is very good, but once in . . .
6K - last updated 2005-04-19 13:33 UTC by 6615
Long-running queries
To put a long-running query in the background, and keep refreshing your JSP until it's done, see below. . . . ); rs.next(); Date d = rs.getDate(1); long startTime = System.currentTimeMillis(); try { Thread.sleep(1000*20); . . . <%@ page language="java" session="true" import="blahblah"%> <html> <head> <title>ThreadTest</title> . . . null ) { // Thread hasn't been fired before. Start it. runtime = new StringBuffer(""); session.setAttribute("TestThreadRuntime0", . . . tt = new TestThread( conn, runtime ); tt.start(); } else { // Thread has fired before. See whether . . .
2K - last updated 2005-11-10 09:11 UTC by 6615
lsusbvv revealed more
The output of lsusb -vv: Bus 002 Device 002: ID 0979:0224 Jeilin Technology Corp., Ltd Device Descriptor: . . . bLength 18 bDescriptorType 1 bcdUSB 1.00 bDeviceClass 0 (Defined at Interface . . . 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 229 bNumInterfaces 1 bConfigurationValue . . . 300mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints . . . 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes . . .
7K - last updated 2005-03-11 23:23 UTC by 6615
M4
Everyone seems to have forgotten about M4, an extremely handy standard Unix tool when you need a text . . . file with some parts changed on a regular basis. In a build process . . . mapping tool. These probably won't support some kind of variable input and this is where M4 . . .
2K - last updated 2007-03-13 07:38 UTC by bvankuik
macOS
= The Library folder = Since uninstalling Mac apps consists of dragging the .app folder to the trash, . . . can read/write plist files, where plist is short for properties list. There is a [http://en.wikipedia.org/wiki/Defaults_%28software%29 . . . Wikipedia article about Defaults]. What's very confusing to me, . . . to give a process a lower priority. To give a certain process a lower priority, first find the process . . . its priority: $ top (In top, type 'ocpu' to sort on CPU usage. The first column gives you the process . . .
7K - last updated 2017-06-22 06:24 UTC by 6615
Makefiles
= General programming information = In this section, we are going to look at the things which make up . . . And an executable is the result. = The parts of a program = Suppose you write a program main.c . . . a look at their layout (contents are not important at this point): /* main.c */ #include <stdio.h> . . . The precompiler directives (the commands starting with a #) make sure the header file is only included . . . is to make compiling and linking easier and smarter. Suppose a large program consisting of several . . .
8K - last updated 2006-01-26 08:56 UTC by 6615
Managing releases
= WORK IN PROGRESS = It's pretty tricky to manage software releases. Fresh graduates often don't encounter . . . Versioning of subprojects = Power of Three = effort to develop software 1 unit = code for yourself 3 . . .
1K - last updated 2006-02-23 09:28 UTC by 6615
Mount and Do
In pharmacology, most drugs have two names,a trade name and a generic name.For example, the trade name . . . consideration by a team of government experts, it recently announced that it has settled on the . . .
1K - last updated 2006-02-01 12:35 UTC by 6615
Multiple regression
* A good statistical model is [http://en.wikipedia.org/wiki/Parsimony parsimonious] * We assume that . . . equation * The ''squared R'' represents the portion of variance predictable in the dependent variable . . .
2K - last updated 2009-02-08 14:25 UTC by 6615
Multithreaded programming
= What is a thread? = A process in Unix is actually a running program with an address space. This space . . . thread, pthread_attr_t* attr, void* (*start_routine)(void*), void* arg); This function creates . . . function pointed to by the third parameter start_routine. Arguments for the function can be passed . . . through the fourth parameter void* arg. That leaves the second parameter, . . . you don't need parameters, pass NULL as the fourth parameter of <tt>pthread_create()</tt>. If you . . .
9K - last updated 2007-07-11 12:20 UTC by bvankuik
MySQL
= Installation = Install as usual for your distribution. For Debian, this means: $ sudo apt-get install . . . MySQL server: $ sudo /etc/init.d/mysql stop Start the server manually, then wait a couple of seconds. . . . input and redirecting stderr to stdout Starting mysqld daemon with databases from /var/lib/mysql . . . mysqld_safe[25272]: started ^C STOPPING server from pid file /var/run/mysqld/mysqld.pid . . . mysqld_safe[25290]: ended Start the server once more, now in the normal way once . . .
8K - last updated 2023-01-30 09:45 UTC by bartvk
newsreportfromIraq.wmv
application/octet-stream
1780K - last updated 2005-10-26 06:01 UTC by 6615
NewWorkplace
Some shocking pictures: [MyDesk The desk I work at] [WorkRoom The part of the office where software development . . .
1K - last updated 2005-03-11 22:19 UTC by 6615
Objective-C
= Timing = To roughly measure the time necessary to do a certain action: CFTimeInterval startTime = CFAbsoluteTimeGetCurrent(); . . . duration = CFAbsoluteTimeGetCurrent() - startTime; NSLog(@"Parse time: %f seconds", duration); . . . that function its return value has to be converted (to seconds or what have you). Edit: for more . . .
2K - last updated 2024-05-07 14:51 UTC by bartvk
Open Universiteit links
* [http://www.ou.nl/ Open University] * [http://icommas.ou.nl:8080/uPortal/ IComMas portal] * [http://www.extranet.ou.nl/ . . .
1K - last updated 2006-03-02 19:54 UTC by 6615
OpenOffice
= Converting numbers = When importing my bank accounts, I get one column with the amount before the comma . . .
1K - last updated 2008-11-11 19:39 UTC by 6615
Optimizing CentOS as a virtual machine
= Removing packages = The following line removes a packages that virtual machines don't need (which are . . . be removed: # rpm -e --allmatches nfs-utils portmap ypbind yp-tools \ NetworkManager nscd nss_ldap . . . off Edit <tt>/etc/inittab</tt> and remove all virtual console entries (each of which have <tt>mgetty</tt> . . . First edit /etc/fstab so the mounted partitions look as follows: LABEL=/ / ext3 defaults,noatime,nodiratime . . . uses logical volumes (with labels) instead of partitions. If that's not used then instead of <tt>LABEL=/</tt>, . . .
2K - last updated 2007-08-08 07:00 UTC by bvankuik
OSX Virtual Machine.png
image/png
535K - last updated 2015-11-06 12:32 UTC by 6615
Other links
* Bikes: ** http://www.nieuwendijktweewielers.nl/default.asp?pid=127 ** http://www.harrygeurtstweewielers.nl/docs/aanbiedingen.php . . . [http://www.vistaprint.nl/ Print werk in alle soorten en formaten] ** [http://www.digitransfer.info/ . . . Afdrukken op caps en T-shirts] ** http://www.sml-x.com/ * [http://www.oscommerce.com/ . . .
2K - last updated 2006-08-02 06:47 UTC by 6615
Parsing and transforming RDF files in PLSQL
When you say 'XML', you'd probably also say 'Java' -- until now, because a stock Oracle database installation . . . of the possibilities, I developed a PL/SQL portlet which parses XML files and walks through the . . . interesting pieces and displays those to the Portal user. While I can't give you the source code, . . . give more than enough clues to build your own portlet. For this article, it would be useful to have . . . web. The link is then displayed along with a short description and users of the website can then discuss . . .
15K - last updated 2005-03-19 06:57 UTC by 6615
Performance
The subject is: performance measurement of a Linux server. = Measuring bandwidth = First, create a file . . . on a server, type: # ps -e -o rss,vsz,cmd --sort=rss | sort -n -r | head = Scaling down MySQL = On . . . = 128k key_buffer_size = 128k myisam_sort_buffer_size = 128k query_cache_size = 1M The result: . . . this time isn't very high for Apache to start with, but there's room for improvements: # ps -e . . . section. Then reset the following values: StartServers 1 MinSpareServers 1 MaxSpareServers 3 It's . . .
6K - last updated 2013-12-20 08:02 UTC by 6615
Perl
= Help = Help isn't far away: $ perldoc -f keyword = Parameters = Parameters (other word: arguments) . . . estate, use \r. This '''r'''eturns to the start of the line instead of a \n '''n'''ew line. for($i=0; . . . for a regexp = To see whether a string starts with "foo": $input = "foo-a-licious"; if ($input . . . a string $y which you want to search for a particular pattern. The result must be stored in variable . . . => 'no' ) or die ("Worker script hasn't been started: $!"); if(scalar(@ARGV == 0)) { printf("Current . . .
17K - last updated 2015-06-18 09:03 UTC by 6615
PHP
= Standard Packages = Use the PEAR classes, http://pear.php.net/ = Secure programming = Check out the . . . using a regex. Below removes a comment (starting with a hash mark) from a line. $line = preg_replace('/#.*/', . . .
2K - last updated 2009-02-13 20:15 UTC by 6615
PHPEclipse
Homepage: [http://www.phpeclipse.de/tiki-view_articles.php PHPEclipse] Some shortcomings: * Matching . . .
1K - last updated 2006-02-01 07:29 UTC by 6615
Piping
= Low-level piping with pipe() = = How can I create a pipe between two processes? = A pipe can be created . . . child process */ { close(fd[0]); /* Close read part of the pipe */ sillychild(fd[1]); exit(0); } else . . . process */ { close(fd[1]); /* close write part of the pipe */ printf("I try to read from %d...\n",fd[0]); . . .
3K - last updated 2006-01-30 08:40 UTC by 6615
Piping with popen
= Easy piping with popen() = Problem: I want to execute a command and write to its standard input. Or: . . . current directory into your process */ popen("sort > ./output","w"); /* sort some output generated . . .
2K - last updated 2006-05-18 08:25 UTC by 6615
Printing to a Océ 8445
When working at client X, we have a big Océ 8445. If you're using RedHat Linux, just look up its hostname . . . or IP address. Then start the printer configuration (RedHat menu → System . . . at Postscript Level 3. This Océ does not support that and will print an error sheet with some technical . . . garbage. If you use RedHat or Fedora, just start up the printer configuration tool, edit the printer, . . . unpacked the archive from the Océ website. Start the Printer Administration either via the menu or . . .
2K - last updated 2005-03-22 16:05 UTC by 6615
Programmable logic
= Basic steps = * VHDL or Verilog code, i.e. a "core" * Test using simulation * Set up input signal and . . . or Flash. = Links = * [http://www.netrino.com/Articles/ProgrammableLogic/ Intro into programmable . . . * [http://www.netrino.com/Publications/ Other articles by Michael Barr and friends] * http://www.opencores.org/ . . .
1K - last updated 2006-07-30 07:57 UTC by 6615
Python
= Debugging trick = To make the debugger prompt pop up at a specific place, paste the following line . . . in a script or module: import pdb; pdb.set_trace() = Log a maximum of once every . . . second = Quick and dirty way of limiting the rate of logging: from datetime . . . import datetime class x(object): def __init__(self): self.prevsec . . . argument, or of a (direct, indirect or virtual) subclass thereof Basically, I use type() to . . .
2K - last updated 2013-02-28 08:44 UTC by 6615
Python presentation
What is Python? * Scripting language, invented in 1991 at CWI (Amsterdam) as a scientific programming . . . language * Large community * Supports multiple paradigms; OO as well as procedural programming . . . one obvious way to do something * Python has shorter development cycles (think Perl 6) * More focus . . . servlets Interesting developments * Paid support available from ActiveState * SciPy/NumPy, a combination . . .
2K - last updated 2008-12-12 09:35 UTC by 6615
qmake
= Generating makefiles = Another approach to building software is ''generating'' make files. This is . . . what ''qmake'' does. qmake is part of Qt, the portable widget library of [http://www.trolltech.com . . . the syntax of .pro files is much simpler. = Starting = Suppose we have a minimalist test class, something . . . we'll do regularly, but it's easy to start off with. $ qmake -project A new .pro file appears, . . .
2K - last updated 2007-10-11 14:48 UTC by 6615
Queuing Mechanisms
= Queuing Mechanisms = Even though I read it cover to cover, I regularly reread chapters of [http://www.pragmaticprogrammer.com/ . . . was done using a built-in feature of the particular database that we used. The principle is really . . . to be running, so it's possible to upgrade parts of the installation or the application itself. . . . can go on and add tasks to the queue (up to a certain point, of course). ; Priority: it's possible . . . to give certain urgent messages a higher priority by putting . . .
6K - last updated 2014-02-07 13:28 UTC by 6615
Quotes
"Early to bed, early to rise, work like hell and advertise" Company motto Kirk & Bloom Manufacturing . . . "Anyway, inside the toilet, under 12 years worth of grime is the stamp I've been looking for: American . . . at work'." -- Tom Paulco = Telis project = Gert: "Chuck Norris united Germany." Leon: "If you put . . . zijn wij de kunstenaars van de 21e eeuw." Bart: "..." Martin: "..." Tiemen: "Nou dan niet! IK WEL!!" . . . changes are, you have some fuzziness." Stuart: "Which is nice when you're stroking a kitten!" . . .
6K - last updated 2025-04-15 08:30 UTC by bartvk
Random C snippets
= Completely read a file = To completely read a file into a string, see below. Warning: uses glibc-specific . . . strings. Note that this is very useful but not portable outside GNU's libc. Example: #define _GNU_SOURCE . . .
3K - last updated 2011-06-17 12:07 UTC by 6615
Random Linux Stuff
= Swap caps lock and Escape on the console = If you run Debian, add the following line to /etc/console-tools/remap: . . . in this example since it automatically sorts the files alphabetically. #!/bin/bash IFS=" " n="1" . . . all files in the current directory. = Converting mp3 to ogg = Generally, it's a bad idea to convert . . . = Export man pages to HTML = $ man -Hcat uubp > uubp.html . . .
4K - last updated 2007-05-03 07:47 UTC by bvankuik
Review Budget Dedicated
= Trial server = BudgetDedicated (hierna: BD) heeft een zogenaamde trial service. Zeer handig om kennis . . . te maken met de server! Men adverteert dat de trial service binnen vijf minuten up-and-running . . . * Persoonlijke informatie (adresgegevens enzovoort) * Server informatie (RAM, IP, type) * Facturen . . . overzicht * Starten/soft-reset/hard-reset server * Traffic overzicht . . . die via ssh connect De Java-applet startte wel en probeert te connecten, maar desondanks . . .
3K - last updated 2006-03-09 16:26 UTC by 6615
RFID
= Spatial data = Voor een breed begrip van RFID kijken we eerst naar spatial data -- locatie-gebonden . . . Draadloze netwerken zijn onder andere WiFi (korte afstand), GSM, GPRS en UMTS. De devices die hiervan . . . maken, zijn natuurlijk laptops, maar ook smart phones, PDAs en zogenaamde tablets. [[image:adam_model_www.jpg]] . . . als hij niet ontsloten wordt. De fabrikant levert dan een application server met portaal op waarin . . . applicaties in kunnen ondergebracht. Oracle levert zo'n ''stack'' met een kant-en-klare applicatie . . .
6K - last updated 2005-09-05 11:07 UTC by 6615
RPM
= RPM = Finding to which package a file belongs: $ rpm -qif <filename> Seeing if a package is installed: . . . packages: $ rpm -qa --qf "%{SIZE} %{NAME}\n" | sort -nr | head = Yum = == Searching for packages == . . . If you know a particular string in a package name, try this faster . . . To narrow the results, you can search for a particular file. For instance if you want to install . . . a particular daemon, you probably know the file that's . . .
4K - last updated 2008-11-14 09:16 UTC by 6615
RT
= Installation on Debian = Install apache, fastcgi, mysql ... from woody. libcgi-fast-perl libfcgi-perl . . . libmysqlclitn10-dev deb http://www.backports.org/debian stable mysql-dfsg http://www.bestpractical.com/rt/draftmanual.pdf . . . Adduser rt su - rt Get perl 5.8.x as a tarball wget -N http://perl.com/CPAN/src/stable.tar.gz . . . untar build and install in /home/rt/perl rm -f config.sh Policy.sh \ && sh Configure . . . make test \ && make install make sure PATH for rt is /home/rt/perl/bin:$PATH wget -N http://download.bestpractical.com/pub/rt/release/rt.tar.gz . . .
3K - last updated 2006-03-01 09:27 UTC by 6615
Samba
Creating a Samba share that's writeable by everyone: # groupadd smbguest # useradd -g smbguest -d /dev/null . . . with the following contents and restart Samba: [global] security = share guest account = . . . in the hostname and share name 'public'. A shortcut appears on your desktop. The other way is to . . . the commandline: $ sudo mount -t cifs -o uid=bartvk,gid=bartvk //servername/sharename /mnt/myshares . . .
1K - last updated 2008-06-02 18:31 UTC by 6615
Scratch CentOS 5
* Installation. Customized package selection, everything deselected except base utilities. * Log in for . . . 0 0 * Install kernel-xen, install group Virtualization. * Install sudo, xauth. * Turn off selinux . . . through dhcp * Create image for domU's through virt-manager; this hangs after answering two questions; . . . neither does ftp work. New approach is kickstart: system-config-kickstart noarch 2.6.19.1-1.el5 base . . . noarch 1.2.10-1.el5.centos.1 base 246 k pykickstart noarch 0.43-1.el5 base 127 k system-config-language . . .
7K - last updated 2007-08-10 12:43 UTC by 6615
Screen
When you're ssh'ing to a specific remote server regularly, [http://www.gnu.org/software/screen/screen.html . . . read [http://jmcpherson.org/screen.html this article] and be enlightened. Note that I'm using 'GNU . . . do the following: * user1 logs in and starts GNU Screen * user1 types CTRL-A :multiuser on * . . . CTRL-A :acladd user2 * user2 logs in and starts GNU Screen with option -r test1/ For this to work, . . . # chmod 755 /var/run/screen Notice the fourth character on the last line is an '''s'''? This . . .
7K - last updated 2009-05-26 14:24 UTC by 6615
Second opinion
The doctor said, "Joe, the good news is I can cure your headaches. The bad news is that it will require . . . 20 years, but he felt like he was missing an important part of himself. As he walked down the street, . . . mirror, the salesman asked, "How about a new shirt?" Joe thought for a moment and then said, "Sure". . . . in the business 60 years. Joe tried on the shirt and it fit perfectly. Joe walked comfortably around . . .
2K - last updated 2005-07-13 13:04 UTC by 6615
Shared directories
Sometimes you need a couple of users to share a directory, for example a number of developers who test . . . original name. ''There is no way to set a property on the directory forcing newly created files to . . .
2K - last updated 2009-10-28 10:47 UTC by 6615
Shared libraries
Until now, we have linked statically. This means that when linking was done, every time we used one of . . . = When your operating system is running, certain functions could be called thousands of times . . . So when every function is statically linked, certain functions would be present many times. Much more . . .
3K - last updated 2006-02-22 09:55 UTC by 6615
Shell tricks
= Shared accounts = Sometimes, you have to use shell accounts which are shared with other people. Of . . . you use bash as your shell, this can be a lot shorter. The following example assumes that you usually . . . export PS1 . . .
2K - last updated 2014-02-12 13:23 UTC by 6615
Shells for a particular purpose
When you're developing, it's sometimes really useful to peek into the logs on a (*nix) server. However, . . .
2K - last updated 2005-05-04 14:53 UTC by 6615
Signals
= What good is it using signals? = With signals we mean the "software interrupts" that you also send . . . *act Used to tell which function should be started, with which flags, if the signal signum comes . . . oldact, so you can test whether the system supports the signal. struct sigaction *oldact You can leave . . . /* function my_handler should be started when MYSIG is received */ new_action.sa_handler . . . } The above example can be adapted, shortened and now with a handler which gets more information. . . .
7K - last updated 2007-04-02 12:46 UTC by 6615
Sockets
= Introduction in sockets = For communication over a network, almost every OS provides an API called . . . the equivalent of installing a telephone wallport. # Define which port to use with bind(). This function . . . plug in your telephone equipment in the wallport - ready to receive any calls. # Finally, call accept(), . . . start your answering machine which picks up the horn when . . . following information tells you how to set up certain structs. These structs are specially designed . . .
11K - last updated 2007-08-13 14:58 UTC by bvankuik
Sockets NL
= Network IPC = Dit stukje probeert duidelijk te maken hoe je programma's over het netwerk kunnen communiceren . . . kan een stroom van informatie transporteren. Er wordt een verbinding opgezet en die wordt . . . zeker of hij aankomt. En als je er meer verstuurt, weet je niet zeker of ze in dezelfde volgorde aankomen . . . een telefoon-aansluiting. # Definieer welke poort je wilt gebruiken door middel van de bind() functie. . . . telefoontoestel werkelijk aansluit in de wallport, met de hoorn op de haak - klaar om over te gaan. . . .
9K - last updated 2006-03-03 21:32 UTC by 6615
Sockets NL NL
Network IPC [ HOME ] Dit stukje probeert duidelijk te maken hoe je programma's over het netwerk kunnen . . . functies. Het diagrammetje hier beneden probeert de relatie duidelijk te maken tussen het proces, . . . kan een stroom van informatie transporteren. Er wordt een verbinding opgezet en die wordt . . . zeker of hij aankomt. En als je er meer verstuurt, weet je niet zeker of ze in dezelfde volgorde aankomen . . . een telefoon-aansluiting. 2. Definieer welke poort je wilt gebruiken door middel van de bind() functie. . . .
12K - last updated 2006-02-22 09:42 UTC by 6615
Software RAID
= Testing and setting up RAID-1 = Install a minimal and configure with RAID-1, with a small RAID-1 partition . . . for the basic system and a large RAID-1 partition for the LVM stuff. If you're installing on . . . fresh disks, partition the disks as Linux Raid (code FD in fdisk). . . . shut down, remove second drive and start up * Shut down again and test rebuilding: <tt>mdadm . . . with the first drive removed. The large RAID-1 partition isn't started and it can't be done on a running . . .
6K - last updated 2007-08-10 14:43 UTC by 6615
Source code version management
= How do I control my source code? = In the past, you may have had the problem that while working on . . . when and why changes occurred. The concurrent part in the name mean, that it is possible for two or . . . file. Add these lines (bash shells): * export CVSROOT=/home/cvsroot * export EDITOR=/bin/vi and . . . is now ready to rock. Now suppose the company starts some project. The sysop can then add a new group, . . . and do the permission thing again. # cvs import -m "Main website" website CompanyName start # cd . . .
5K - last updated 2006-03-03 21:10 UTC by 6615
SSH
= Create a VNC tunnel to work = Suppose your home and organization's network looks like this: +-----Organization-Network-----+ . . . enough. You probably also want to connect to a port on your workstation for example to use VNC. The . . . and tunnels all FTP traffic from localhost port 8021 to your workstation port 21: $ ssh username@gateway . . . You can now test this by FTP'ing to localhost, port 8021 $ ftp localhost 8021 Note that it's possible . . . to start several tunnels at once with multiple -L options. . . .
7K - last updated 2008-11-14 09:17 UTC by 6615
Start of a project
Checklist for a professional software engineering environment: * Coding standards * Logging framework . . . which platforms will be tested? * Is portability an issue? * Decide on one platform and stick . . .
1K - last updated 2007-03-07 12:19 UTC by bvankuik
SVN
I've written about the differences between SVN and CVS and the usage of the plugins in Eclipse, see also . . . [[2006-02-01]]. = Importing your project = I found the ''svn import'' syntax . . . funny, but that might just be me. If you're importing from the commandline, do it like this: $ cd myproject . . . $ svn import http://machinename/subversion/myproject I'm assuming . . . If the admin likes that better, then import as follows. (I'm assuming here the admin has given . . .
17K - last updated 2014-04-11 10:18 UTC by 6615
Swift
== Performance == Quick and dirty snippet to measure time. Here's an example to measure 1 second of sleeping. . . . import Foundation let startTime = CFAbsoluteTimeGetCurrent() . . . let duration = CFAbsoluteTimeGetCurrent() - startTime NSLog("Parse time: %f seconds", duration) . . .
1K - last updated 2017-04-11 10:39 UTC by 6615
System V Semaphores
= Controlling resources with semaphores = == Problem: how can I control access to resources? == Imagine . . . undesirable, because this could result in all sorts of unpredictable behaviour. Here too, semaphores . . . the ''number of concurrent accesses'' to a certain place in your code. That's it -- it's a really . . . the ''value'' of the semaphore is not really important for the piece of code that's trying to get access. . . . it as a way of prioritizing or place in some sort of queue. Mostly, you'll use a semaphore as a binary . . .
18K - last updated 2007-08-07 09:20 UTC by bvankuik
System V shared memory
= Problem: how can I share memory between processes? = The fastest way of getting data from process A . . . parameter int semflg, so only the permission part is left. || ||int size ||The size (in chars) which . . . ||int shmflag ||This parameter is divided in parts, which must be glued together with the bitwise . . . OR operator ( | ). One part can be IPC_CREATE. Or IPC_CREATE|IPC_EXCL. The other . . . part is the permission part. It consists of nine bits . . .
8K - last updated 2009-03-13 12:36 UTC by 6615
Telis
Current shortcomings of the software: * Only 16-bits values supported * Some settings can only be retrieved . . . out these readings, you can't automatically convert them * The database contains reverse polynomes but . . . the screens don't support these * The tables are quite complicated and could . . . comes back as eight bytes, which are picked apart everywhere in the code. It would be better to have . . .
2K - last updated 2007-02-15 15:57 UTC by bvankuik
The technology behind Jini
= The technology behind Jini = What is Jini its trick? What are the principles behind the interface? . . . The following subjects will be treated: * The parts which make up Jini; * How Jini devices can find . . . use each other; * How Jini devices can find particular other devices; * Conclusion. = What has Jini . . . service. With Lookup, clients can search for a certain service. = The discovery mechanism = Let us look . . . a presence announcement targeted to a certain well-known port number. This special packet contains . . .
8K - last updated 2005-10-16 19:05 UTC by 6615
They will find us
Rajiv and Mona are flying to Australia for a two-week vacation to celebrate their 40th anniversary. Suddenly, . . . an emergency landing. Luckily, I see an uncharted island below us and we should be able to land . . . deposit cheque yet to Citibank?" "No, sweetheart," she responds. Rajiv, still shaken from the crash . . .
2K - last updated 2006-09-14 06:13 UTC by 6615
Ticket systems
[[RT]] http://otrs.org/screenshot/ http://roundup.sourceforge.net/ http://www.oneorzero.com/ . . .
1K - last updated 2006-03-01 09:28 UTC by 6615
Tracking Issues
Have you ever logged a bug against an (open source) piece of software? Were you happy with the results? . . . the index of a document wasn't correctly exported to MS Word 97 or 2000. I logged a beautiful bug. . . . as OpenSymbol) font. When the document is exported to MS Word format and opened on another machine . . . standard characters; they're placed in a part of the font that's "free for all", i.e. any font . . . smaller scale because the issue wasn't fixed for RTF (Rich Text Format). As a side-note: the power of . . .
5K - last updated 2005-10-11 10:18 UTC by 6615
Traffic accounting
Make a new accounting chain, affectionally known as ACCT: # iptables -N ACCT This chain counts incoming . . . characteristics defined (like target, source, port, etc), so every packet matches this rule: # iptables . . .
1K - last updated 2007-06-29 13:50 UTC by 6615
Trash
* [[fun.jpg]] * [[naughty-bob1.jpg]] * [[naughty-bob2.jpg]] * [[naughty-bob3.jpg]] * [[naughty-bob4.jpg]] . . . Is sex necessary?] * [[newsreportfromIraq.wmv]] * [[dungeons_n_dragons.wmv]] * [[mini1.jpg]] . . . * [[proof_of_life_on_mars.png]] * [[dilbert.gif|Dilbert: Condescending UNIX computer users]] . . . * [[Mental_hospital]] * [[ASCII_art]] . . .
2K - last updated 2007-12-21 16:22 UTC by 6615
Trust Mobile Spycam 100
I got hold of a Trust Mobile Spycam 100, see also http://www.trust.com/12541. Of course, a driver for . . . be found. lsusb gives the following output: [bart@room ~]$ lsusb Bus 004 Device 001: ID 0000:0000 . . . Gphoto] doesn't tell me anything: [bart@room ~]$ gphoto2 --list-ports Devices found: 1 Path . . . Description ----- usb: Universal Serial Bus [bart@room ~]$ gphoto2 --auto-detect Model Port ----- . . . [bart@room ~]$ I've opened the cam and tried to read the . . .
3K - last updated 2005-03-16 12:07 UTC by 6615
Turn off beep
To turn off the beep in several applications: For bash and other readline applications, create a new . . . the following line in your $HOME/.bashrc: export LESS="-Q" For vi, put the following line in your . . .
1K - last updated 2009-02-09 14:47 UTC by 6615
UML and JDeveloper
''Jethro Wallenburg en Bart van Kuik'' 3 februari 2003 == Introductie == Al een aantal jaren is het ontwikkelen . . . te modelleren, dient ook een modelleertaal gebruikt te worden die dit ondersteund. Wat dat . . . betreft is UML de lingua franca geworden. Dit artikel probeert duidelijk te maken wat UML is, wat . . . de marktsituatie voor modelleertools is, wat de combinatie JDeveloper/UML mag betekenen . . . Unified Modeling Language. Het is een modelleertaal (dus geen methode) met de nadruk op OO. Centraal . . .
8K - last updated 2005-03-18 21:13 UTC by 6615
UMTS links
* [http://slashdot.org/comments.pl?sid=50773&cid=5086905 Slashdot Insightful comment about WiFi not squashing . . . * [http://www.radio-electronics.com/info/cellulartelecomms/umts/umts_wcdma_tutorial.php UMTS tutorial] . . . [http://en.wikipedia.org/wiki/W-CDMA Wikipedia article on W-CDMA] * [http://en.wikipedia.org/wiki/UMTS . . . Wikipedia article on UMTS] * [http://www.w3.org/1998/11/05/WC-workshop/Papers/wierlemann.html . . . of TCP/IP on mobile networks] * [http://portal.acm.org/citation.cfm?id=570655 TCP/IP performance . . .
1K - last updated 2005-10-16 16:13 UTC by 6615
UnexpectedStartTag.png
image/png
17K - last updated 2005-03-19 06:26 UTC by 6615
Unintelligible Requirements
; Mark: "When you have a requirement with which you don't yet know what the resulting changes are, you . . . have some fuzziness." ; Stuart: "Which is nice when you're stroking a kitten!" . . . your management that the IT of your department should buy licenses and consulting for database . . . documents in PowerPoint. Make high-level, short and non-descriptive requirements. It's quite easy . . . documents in Word. Word offers fantastic opportunities! Use track changes, nested tables, extremely . . .
4K - last updated 2006-03-02 19:19 UTC by 6615
unix bench xen budgetdedicated
BYTE UNIX Benchmarks (Version 4.0.1) System -- vankuik Start Benchmark Run: Wed Mar 8 11:44:14 CET 2006 . . . (60 secs, 3 samples) Arithmetic Test (type = short) 649090.2 lps (10 secs, 3 samples) Arithmetic Test . . . Throughput 1066.8 lpm (60 secs, 3 samples) Dc: sqrt(2) to 99 decimal places 69174.3 lpm (30 secs, 3 . . .
3K - last updated 2006-03-15 11:47 UTC by 6615
User Mode Linux and Fedora Core 3
User Mode Linux (UML) is pretty amazing: you run a complete Linux installation ''inside'' your normal . . . system. This is what's called a virtual machine. If you've seen [http://www.vmware.com/ . . . information floating around on UML. The most important thing to know is: from kernel 2.6.9, UML is standard . . . will probably be fine as well. In virtual machine terms, the ''host'' is your normal, real . . . system. The ''guest'' is the virtual machine. = Setting up Fedora Core 3 with a stock . . .
5K - last updated 2006-02-02 09:20 UTC by 6615
Using AI for categorization
= AI systems for categorisation = The freeware [[FuzzyCOPE]] application is used to learn how fuzzy rules . . . information on [http://en.wikipedia.org/wiki/Artificial_neural_network neural networks], however, . . . will list a number of rules like: "if property11 is small and property 2 is large, then the sample . . . in a set or it isn't. A fuzzy variable can partly be in a set, we indicate this with a number between . . . trying to categorize here are flowers, and in particular three species of [http://en.wikipedia.org/wiki/Iris_%28plant%29 . . .
5K - last updated 2006-01-20 11:16 UTC by 6615
Using dig
To do a lookup using a specific DNS server, use: $ dig @1.2.3.4 example.com This will request the most . . . important records of domain example.com from DNS server . . . 86400 IN TXT "v=spf1 a:charlie.dutchvirtual.nl a:delta.dutchvirtual.nl a:smtp.dutchvirtual.nl . . .
1K - last updated 2009-03-04 09:21 UTC by 6615
Using Screen
= THIS IS AN OLD VERSION = PLEASE CHECK THE MORE RECENT PAGE: [[Screen]]. When you're ssh'ing to a specific . . . read [http://jmcpherson.org/screen.html this article] and be enlightened. = Real-time sharing of . . . do the following: * user1 logs in and starts screen * user1 types CTRL-A :multiuser on * user1 . . . CTRL-A :acladd user2 * user2 logs in and starts screen with option -r test1/ For this to work, . . . # chmod 755 /var/run/screen Notice the fourth character on the last line is an '''s'''? This . . .
6K - last updated 2009-05-20 09:04 UTC by 6615
vankuik.nl
= Latest weblog entries = <journal 5> = Weblog Archive = [[Weblog_entries_2024]] [[Weblog_entries_2023]] . . . [[All_weblog_entries]] = Articles = Articles, chronologically (latest first). . . . tussen verschillende aanbieders van Virtual Private Servers * [http://www.vankuik.nl/bart/docs/i18n_part1.ppt.zip . . . i18n_part1.ppt.zip] Presentation on the basics of internationalization . . . for details. And why not check a half-finished article as well? [[Internationalization]]. * [[Another_viewpoint_on_open_source_software]] . . .
4K - last updated 2024-04-16 10:29 UTC by bartvk
veertu5 shows IP-fs8 2016-06-12.png
image/png
7K - last updated 2016-06-12 13:34 UTC by 6615
veertu ubuntu 2016-06-12.png
image/png
105K - last updated 2016-06-12 13:43 UTC by 6615
Vim
[http://www.moolenaar.net/habits.html Tips from Bram], be sure to read them. = Interaction with X = Vim . . . version (gvim), it's also possible to start vim in a terminal like xterm, konsole, gnome-terminal . . . and selected 'copy', or pressed a shortcut like CTRL-C or similar: <esc>"+p If this doesn't . . . as a different user, which happens when you start vim with for instance 'sudo'. Solution: don't do . . . cookies in your ~/.Xauthority file. * Vim is started in compatibility mode. Solution: don't use 'vi' . . .
9K - last updated 2014-12-12 08:11 UTC by 6615
Virtual interfaces
= WORK IN PROGRESS = == Client request == I want to test a very bad TCP/IP connection, how can I simulate . . . this. == Needed == Setting up two virtual interfaces with a bridge between them. Packets . . . badly mangled in transition. == Solution for virtual network interfaces == http://en.wikipedia.org/wiki/TUN/TAP . . .
2K - last updated 2008-12-15 08:33 UTC by 6615
VirtualBox.png
image/png
265K - last updated 2015-11-06 12:33 UTC by 6615
Wasting time
* http://www.kazmier.com/~kaz/alerts/alert.cgi * [http://mathforum.org/dr.math/faq/faq.birthdayprob.html . . .
1K - last updated 2006-09-29 05:53 UTC by 6615
Watchdog script
Recently I received some beta software that I had to integration-test with our own software. However . . . The following shell script is a quick and dirty way to try and keep up a process. #!/bin/sh # This . . . # not, will run a predefined action (such as starting it again). # Name of process that must be watched . . . that the process prints on stdout # when it's started again. logfile="$0.log" ########################################################################### . . . this script, though. If you kill it, then the started process will also die. There might be many more . . .
2K - last updated 2007-08-08 15:29 UTC by bvankuik
Wet Vorderen Gegevens
= Intro = Op 1 januari 2006 treden de nieuwe "Bevoegdheden vorderen gegevens" in werking. Een goed tijdstip . . . Identificatie van politiemensen? = Wat verandert er per 2006 = Met andere woorden, wat voegt de nieuwe . . .
2K - last updated 2005-12-16 09:02 UTC by 6615
Why men are happier
Why ARE Men Happier? Makes sense to me. Men Are Just Happier People-- What do you expect from such simple . . . can never be pregnant. You can wear a whiteT-shirt to a water park. You can wear NO shirt to a water . . . shoes one color for all seasons. You can wear shorts no matter how your legs look. You can "do" your . . .
2K - last updated 2005-05-19 12:35 UTC by 6615
Windows
= Essential software = [[winscp2.exe]] [[putty.exe]] [[pscp.exe]] [http://sourceforge.net/projects/eraser/ . . . will by default only see "Mem Usage" which reports the physical memory (i.e., the "working set") consumed . . . Columns"). "VM Size" tallies private virtual bytes consumed by the process. Private means . . . to those who don't understand what is being reported, because they expect physical memory usage to . . . MMC snap-in). From this tool, you can view "Virtual Bytes" of each process, which is the amount of . . .
3K - last updated 2010-02-17 21:00 UTC by 6615
Work pictures
Shamroc project: * [[shamroc_dac_bord.jpg]] The Lab in Groningen: * [[lab1.jpg]] * [[lab2.jpg]] * [[lab3.jpg]] . . . * [[working_together_2.jpg]] * [[irtecon_fiske_steps.jpg]] Electronics: * [[batteries_and_charger_1.jpg]] . . . * [[all_curves_small.png]] * [[error_reporting.png]] * [[sis_iv_curve_large.png]] * [[siscl_curve_large.png]] . . . Noordwijk: * [[radtest1.jpg]] Temporary: * [[bart_duitsland_small.jpg]] . . .
1K - last updated 2009-03-30 07:22 UTC by 6615
X11
= Running an X11 program on your display under another user = Suppose you're logged in as '''user1''' . . . ''magic cookie'' with which anyone can start programs on the display of '''user1''': [user1@localhost] . . . Caps_Lock" -e "keysym Caps_Lock = Escape" To start this automatically with your environment: * For . . . create a shellscript in $HOME/.config/Autostart (or for versions <= 4.2, use $HOME/Desktop/Autostart) . . . KDE, create a shellscript in $HOME/.kde/Autostart * For Gnome, start gnome-control-center -> Advanced . . .
3K - last updated 2014-04-30 13:40 UTC by 6615
Xcode
= Xcode in general = If you get a weird error, first always try to restart Xcode. = Debugging = Some . . . (8C148) /Symbols/usr/lib/info/dns.so (file . . . = Error 0xE8000022: service is invalid = Restart device. It simply means that the gdb session can't . . . Running Your Application . . . to retain it explicitly (or make it into a property, so it automatically gets retained) = Put version . . .
3K - last updated 2012-10-02 00:05 UTC by 6615
Xen
= Tips = == Mounting == If you do a straight install of CentOS to an image with <tt>virt-manager</tt>, . . . you'll get partitions in there. To mount the first partition: # . . . lomount -t ext3 -partition 1 -diskimage /var/lib/xen/images/testimage . . . work well for logical volumes (LVM), use <tt>kpartx</tt> for that: # kpartx -a /dev/vg0/lv0 # ls -l . . . [http://fedoraproject.org/wiki/FedoraXenQuickstartFC6 Fedora Wiki] == Making remote images == First, . . .
3K - last updated 2011-09-29 09:58 UTC by 6615
Yum
I've seen my share of Yum problems, because I run yum on low memory systems (256-512 MB) and yum needs . . . at least a gig or so to run comfortably. Never mind that Debian has this problem solved . . . running a large number of transactions. When certain cronjobs kick off around midnight, they may run . . .
2K - last updated 2011-09-07 07:07 UTC by 6615
426 pages found.