prog


 

Shiichan Installation

1 2019-11-16 17:29

Does anybody have any idea on how to install shiichan on a free hosting service e.g. 000webhost?

I get this error when I'm trying to run `admin.php` on my website:

Fatal error: Cannot re-assign $this in /storage/ssd3/865/11605865/public_html/admin.php on line 557

Explain and please give a solution to it. I am totally a newfag.

2 2019-11-16 21:31

shiichan

http://wakaba.c3.cx/shii/shiichan
"""Shiichan was a 2ch-type board in PHP. It was written in late 2004 by a guy named Shii. Currently, it is in a buggy beta stage, and no development is planned.
[...]
An actually working alternative: Kareha"""

admin.php
Cannot re-assign $this
line 557

The problem is:

else foreach ($board as $this) {

$this is special in PooHeaP and cannot be assigned to.
https://www.php.net/manual/en/language.oop5.basic.php
https://stackoverflow.com/questions/4035355/php-assign-value-to-this
https://stackoverflow.com/questions/19242647/cannot-re-assign-this
Compare with:
https://github.com/Capaverde/shiichan3960/blob/master/admin.php#L557

else foreach ($board as $thus) {

which uses $thus instead.

3


VIP:

do not edit these



 

'Democratic' software

1 2019-08-27 07:29

If some software is democratic, then all users of that software would have a say in everybody's instance of that software. (Yikes! not a good situation, for the most part.) (Un)fortunately, that's not what is usually meant. It seems that "democratic", regarding technology, is often used to refer to facility and (potential) popularity. But that's not democratic at all! If we're going to make it political (let's not), it's, at best, libertarian.
Anyone else irked by this misnomer? (I don't mean glib usage of political terms referring to software.)

2 2019-08-28 03:51

lol

3 2019-11-06 15:02

Democracy is for plebs, it's even a tautology.

4 2019-11-11 16:59

h

5 2019-11-12 01:28

hh

6 2019-11-14 16:11

http://www.winestockwebdesign.com/Essays/Eternal_Mainframe.html

7


VIP:

do not edit these



 

Guix

1 2019-05-02 17:37

Rejoice, Guix v1.0.0 has finally been officially released!
https://www.gnu.org/software/guix/blog/2019/gnu-guix-1.0.0-released/

I've been using this as my primary OS for 2-3 years now and cannot recommend it highly enough - Best thing that's ever happened to my computing life.

Now we're just waiting on GNUnet and Hurd ( ._.)

223

24 2019-10-17 11:47

https://tech-insider.org/free-software/emacs.html

25 2019-10-17 21:36

>>23
i was going to call you out on "being there", but it's the ship of theseus reference that convinced me you're indeed an old timer. apparently in america they used to study the classics, but no anymore.
it's a very recent video that this quote is taken from,
and i get the impression, that some kids were intentionally trying
to get some dirt from him, particularly since it's know that he's bitter about the whole emacs/gosmacs thing.

26 2019-10-20 09:32

Guix cucks their moms all gay.

27 2019-11-11 00:28

seems to be one of these "libre" distro without wifi drivers
TempleOS is a better alternative if you don't plan to actually use your computer

28 2019-11-11 15:17

>>27 templeos vs guix article when?

29


VIP:

do not edit these



 

itt: we talk about random java stuff

1 2019-06-28 22:01

I use actual primitives like bool instead of classes like Boolean

28

9 2019-10-06 15:50

While I want to use other languages for programming web applications, I tend to use either java or c# using either hibernate or entity framework.

10 2019-10-06 17:08

Test to see

11 2019-11-03 03:38

BARF!

12 2019-11-03 17:28

AbstractFactoryBeanBean

13 2019-11-05 21:30

Why does Scala for Android suck?

14


VIP:

do not edit these



 

Browser Standards The New Oppression

1 2019-11-03 10:05

https://m.youtube.com/watch?v=kV_vYkSmkxk

2:38

2


VIP:

do not edit these



 

worst programming languages?

1 2019-10-09 19:22

hello fellow anons, textboard newbie here. i'm here to ask a very important question: what do you all consider to be the worst programming languages?

28

9 2019-10-10 19:35

Depends on the use case. Javascript is one of the worst programming languages for big safety-critical real-time systems. It is one of the best for web frontends. Ada would the opposite.

10 2019-10-10 19:58

You can't. For most situations, it would have to be assemblers, because they lack any quality you would want to see in clean and well written programs. But if you have to work on that level, you don't get the choice.

11 2019-10-22 01:27 *

COBOL

12 2019-10-29 22:05

>>1
Just don't ask, OK? Just ignore the bad languages. That's it. And asking for best languages is not any better. It doesn't really matter which you use. So long as it doesn't suck, which can often be precisely approximated by finding out what iss well-regarded in the industry, and has worked well for the past few decades.
If you're a neophyte, you don't need to be immediately up-to-date with new research. Stick with what works.
If you're already an expert, you know how to find out on your own, or with the help of a few colleages.

Specifically for software producers (intentionally using the generic term), it's important to understand the mathematics, i.e. the systems (turing machines and lambda calculus, data structures and algorithms, computational complexity,,), and basic style that doesn't suck.
That's all you have to do if you're a neophyte: make sure that you don't suck, and that what you make doesn't suck. Once you understand the basic stuff, you'll know how to get to the excellent stuff.
Of course, for "extra credit", you can study the mathematics intensively. i.e. from one of the foundations (e.g. Category theory or Class theory), building up rigoursouly, by exercising utmost skepticism at each step of each proof, thus ensuring each that theorem is proven; and creatively, by going through a series of poof-sketches, and filling it the details, guided rediscoveries where the course lays hints that imperceptibly get sparser, until the student is rediscovering the proofs of various known theorems, until the student is rediscovering known theorems (and their proofs) with no guidance, whence he can start (graduate school, after which he can start) to do original research.
The intensive mathematical approach is better, because it ensures that, at all times, if you are doing something, you know exactly what you are doing. And if you don't know what you're doing, You first figure everything out, before doing anything.
Take the top 1% of anything. All of it is going to be so good, that the difference between the one at the very top, and the one at the bottom of the 1%, is small enough that the difference may as well be noise: as meaningless as the shush of the transceiver at vacant radio frequencies.

Of course, you might nbe interested in such a question if you're an expert, or a mathematician. If you're mathematician, you'd just read the relevant research paper, or do the research yourself, or with "a few" colleagues. If you're an expert, you'd just read the relevatn research paper, or figure it out yourself, somehow, or ask other experts. Any good expert knows how to identify experts in the same, or similar field.
You certainly woudn't ask the way you asked. you would describe the state of your knowledge, and questions whose answers you may be seeking.
Even if you were a neophyte, you'd better first ask your superiors (e.g. bosses, professors), or your peers, or, rather, persons whose level is a bit above your level (e.g. colleages that understant the way things are done, who can give suggessions based on that; colleages whose skills is slightly better than your skills, whose suggestions might go against the usual way things are done, but are better suggestions; students of higher grades)
The only remaining possibility is tht you are free. (i.e. No work, no boss, no school, no professor,,) If that's the case, do a basic web-search before you ask someone. If you've done the web-search, and you didn't find exactly what you need, then you can probably compile everything that is almost what you need, and sift through it, puzzling it out. Of course, at that point, you are either asking a question that has yet to be answered, in which case, your becocming an expert would get you an immense benefit, or you are asking a question that is answered, but you didn't recognize the answer in your web-search, because it was formulated in such a way that only persons familiar with the topics would be able to recognize it as an answer to that question.

13 2019-10-29 22:06

>>12
If still you want my opinion, the worst programming language is idiomatic english.

14


VIP:

do not edit these



 

nEXT browser

1 2019-01-02 17:05

Is anyone here using it? I've only recently heard about this.

https://github.com/atlas-engineer/next

Reminds of luakit, but with Lisp.

210

11 2019-10-12 16:07

I'm running stumpwm and next browser on debian.

next browser provides the keybinding C-w for COPY-URL

but after issuing this command I can't find the url using xclip, nor can I paste it into emacs (or "yank" if you want to be more correct) -- am I pointed to the wrong X selection or something?

This is a boneheaded question I know, but emacs has been so good at handling X copy paste behavior that I haven't needed to address an issue like this in some years.

I would also be happy to hear about addressing this minor chore with a giant hammer such as org-capture, slime, etc.

(cross posted at http://textboard.org/prog/54, after feedback from some user I now realize this is a better place for the question)

12 2019-10-13 10:20

I'm very interested in next and plan to use it as my primary browser once it gets a bit more mature.

13 2019-10-26 05:15

Well, I tried it out after reading this thread and some docs on their site. Really interesting browser, I'm posting from it right now. I would definitely consider contributing to it in the future once I am more knowledgeable.

Right now I'm running Emacs with EXWM, and Next is a perfect fit for it.
My main concerns are security related, I'm not sure if any sophisticated script blockers have been developed for it, and it seems unlikely that support for webextensions will come any time soon (if ever), as the standard itself seems at least partially antithetical to the design of the browser.
As is made obvious by panopticlick.eff.org, by default the browser has poor tracking protection, and so in the meantime I generally won't be using it to post on sites that use JS. That limits me to messageboards such as this one (which might not be too bad, all things considered).

14 2019-10-26 05:31

>>11
Sorry, I doubt that I can be of much real help here.
I would suggest going into the code of copy-url and seeing what mechanism is used to get the text, then writing your own function that gets the text using that method and piping it to xclip or something.
I've done something quite similar to that with xsel recently, and it worked pretty well as a means to get text from a mix of both emacs buffers and exwm buffers. From what I saw in the Next documentation it should be possible to do the same.
I just used an async-shell-command elisp function, and I'm sure Common Lisp would have an equivalent that probably works better, too.

15 2019-10-28 23:32

>>13 here
I've been using the browser some more. It's actually quite nice. The vi-keybindings work really well, and it's easy to integrate with other programs and change the keybinds to prevent conflicts.
You can disable JS entirely using M-x noscript-mode.
I've also found that the browser works just fine over Tor, and can even be launched through torify.

16


VIP:

do not edit these



 

Programming Games

1 2018-10-28 20:41

Like Core War or Robosport

http://programminggames.org/MainPage.ashx

2 2018-10-29 14:29 *

>>1
I've tried to install Gnu Robots but it needs an old version of Vte and Guile and even when you provide them there's errors during the compilation.

The project looks abandoned, it's sad.

3 2018-11-05 23:01

There's an implementation of Core War in Scheme->C here: https://www.cs.cmu.edu/Groups/AI/lang/scheme/code/fun/

It could be a fun project to port it.

4 2018-11-06 03:16 *

>>3
https://crypto.stanford.edu/~blynn/play/redcode.html

5 2019-10-25 20:03

Any more?

6 2019-10-27 16:44

>>4
Nice one.

7


VIP:

do not edit these



 

VIP checkbox

1 2019-10-08 19:35

Anyone knows what does the VIP checkbox do besides adding a "*" next to the post?

28

9 2019-10-14 10:30 *

Testing sage

10 2019-10-14 10:31

Ah, makes sense. Why not sticking to the traditional word though?

11 2019-10-21 02:43 *

>>10
VIP quality.
In the old /prog/ quality posts were always saged. It wasn't used for posts deemed not worthy of a bump, quite the contrary.

12 2019-10-24 00:38

There ought to be a term, for posting without bumping the thread, which is as elegant to the versed as "sage", but as obvious to the neophytes as "don't bump".
>>11 What was the reasoning for saging good posts? Wouldn't that raise bad threads, and bury good threads?

13 2019-10-24 21:51 *

>>12

What was the reasoning for saging good posts? Wouldn't that raise bad threads, and bury good threads?

Then you prevented newbies from polluting your interesting. That wasn't really working on w4ch but they were emulating 2channel, where the posters would get mad if someone accidentally bumped a good, buried, live thread.

14


VIP:

do not edit these



 

Who should own an interface?

1 2019-10-18 21:37

Assume an interface X which is used between two components A and B. Who should be the owner of X? I see three fundamental possibilities:

1. One of the components A or B, so one depends on the other.
2. A parent component, so A and B depend on the parent.
3. The user, so there must be an adapter to map between A and B.

Of course, the answer depends on the circumstances and tradeoffs but are there insights to help with it?

I would expect that it was already discussed heavily in the seventies between Fred Brooks, Alan Perlis, and Dijkstra. However, I don't know any such publication.

2 2019-10-19 04:22

It depends on which is most natural. Without further context, I would expect neither of A or B to own interface X, as this is the nicest to me in general.

How are you defining what an interface is here? If you send TCP traffic, TCP is the interface, but neither side owns it.

3 2019-10-19 07:29

Does one of the components provide a service to the other?

4 2019-10-19 09:33 *

Interface X should be owned by The Professor.

5 2019-10-20 12:36

>>2 TCP would be an example, where a parent (the standard) owns the interface.

A more interesting example would be the Protobuf schema which is used between A and B.

In a client-server relationship the server "provides a service", usually the server owns the interface.

6 2019-10-24 00:24

Trick question! Each has it's own. This means sometimes work needs to be done to make interfaces compatible, e.g. making wrappers.

You probably didn't mean the intellectual property of the interface, which, by default, is owned by the maker. There may be agreements that alter who owns the interface.

7


VIP:

do not edit these



New Thread





do not edit these