Any workarounds for getting swfupload.js working in Linux? - linux

SWFUpload doesn't work on ubuntu, I can see various mentions of it throughout the internets but I'm wondering if anyone here as found any work arounds?
I'm developing on Windows, so the code executes fine. But my colleague is running ubuntu, and SWFUpload crashes instantly. Has anyone encountered that and found a work around? I've tried a couple of things like commenting out things that cause known-issues like progress but to no effect.
Any help appreciated.
Dave.

be sure you are not under proxy that does not support http1.1 as you will receive an error

make sure the folder that will handle the contents will have a chmod 777(read/write/execute) permissions.
if you type: ls -lsa
you can view all your files and folders. you will see the permissions, name, owners and etc.
in my example contents is a folder in which i will upload the files.
4 drwxrwxrwx 2 maryon maryon 4096 2010-10-26 11:21 contents
as you can see the contents folder which i have has rwx(read write execute) for all users. this will allow users to upload files thru SWFUPLOAD.
if you dont have this permission you can try running this:
sudo chmod a=rwx contents
it means the 'a' stands for all users, will have 'rwx'(read/write/execute).
note:
Contents folder where you are saving
your files.
777 is not so secure,
you can change it later and restrict
other users(which you dont want to
give permission to upload) on
uploading files.

I have problems just with large files. With bigger files flash movie freeze after some time and i need to reload page and nothing is uploaded. It is same in firefox and also google chrome. I use kubuntu 9.10. On windows there is no issue at all...
So i think that it is flash problem, because on linux uploadStart and uploadProgress events are not fired...
DO you have any workaround for this ? Flash version is 10.0 r45 (32bit on 64bit system).

I am using Ubuntu 9.04 with swfupload and everything works just fine. Might be an old flash player.

Related

linux live kit not working on ubuntu 20.04 access denied when making new directory

Does anyone know how to get Linux live kit to work on Ubuntu 20.04? I found a website that showed me how, but when I tried to build it, the file would not show up. I tried rebooting but it did nothing. I know that Tmp empties on reboot, but when I try to make a directory like /build it says access denied.
Does anyone know how to get a bootable ISO using Linux live kit on Ubuntu 20.04?
I know how to use systemback and other tools. Also when I asked on askubuntu they did not answer my question. I am trying to make a working linux distro.
I tried to put it in /srv but it did not work. also when i tried to put it in /tmp. It would not show up in /tmp. One issue I had was also making a new directory like /bluespace. Can anyone please help. Maby even go through the steps. Thanks! This distro is for education. It comes with website blocking its own search engine and so much more. P.s I am only in highschool. I am done customizing it but I need the file with linux live kit. I tried every option and it wont work. I tried pinguy, but it only makes a backup. I want linux live kit to work but it wont.

my pyinstaller executable is not opening on other computers besides mine

The last few days, I created a site, using wix, to use as a portfolio. I left all my projects there. My sister, helping me try It, downloaded one of them, but she could not open it
The first problem was solved pretty fast. My computer uses linux, and her's uses Windows, so I just had to use a windows computer to run pyinstaller on my project. It worked
Now, I managed to create the windows executable. I tested on my windows computer, and it worked. However, my computer HAS python, while her's dont. I think the error might be my venv (virtual environment). Maybe the python interpreter she is supposed to use to run the program is in the wrong directory?
Image of what you get, after downloading my project "FastGrid":
https://i.stack.imgur.com/PS77Y.png
(sorry for using external images, It's the only way I can make a good description the situation)
The only difference between her directory and mine is that her python files have a notepad icon. However, the extension is ".py", so I don't see how that is a problem. Unless somehow her pc is opening that with notepad, without using the python interpreter, and not executing the code properly.
Also, when I tried on my computer, my antivirus thought the file was a virus, and said It would take 80 minutos to verify It. I trusted the file and tried to open It, only to get a "You might not have permission to open the file" error. I refreshed the directory and It opened sucessfullt. The same happened to my sister (without the opening part, of course). She had this error, but later, when I tried again, It simply didn't run. No errors.
Again, I think the directory "venv" may be in the wrong spot, and that's why she can't open the executable, since the project may not be able to read the files. But, if that's the case, I don't know how I should modify that.
Also, here is my site, if you think that can be helpful. You can find my projects in the "blog" part
https://lvalencacomputacao.wixsite.com/website
Thanks in advance. If I wasn't clear, please, feel free to ask your doubts on comments. I'll do my best to make the post better
Edit: The image is the project for windows, but opened in ubuntu, that's why there is a ".exe" there.
does all of your computer have python, it could probably beacuse you are using a virtual enviorment, and need to activate it before entering the the exe. the command : .\venv\Scripts\activate to activate te asets in your python project, what was the difrent from your sister computer and all of the computer, i could help you
Everyone, the problem is solved. My sister's pc is probably the one at fault, here, since the program worked in every computer I tried besides her's.
Thanks

Creating a CD auto-start dialog

For me, compact discs and these customized auto-start dialogs are somewhat outdated and waste...
However, I have to create such a dialog as an index for a CD consisting of a few PDF files. Making one to work on Microsoft Windows is quite easy. As there might be users from different platforms (Unix, Apple,...), the question raises how to offer them such a (auto-starting) dialog as well.
Java is of course an option, but I think it's overloaded and naturally too slow for this purpose.
Now, I think of a single webpage that will appear in the local browser. Using all these web standards this could a very creative, light-weight approach working on most systems.
Do you see any problems that might occur here? Probably, there is a different and more elegant solution to this issue?
I can't really recommend something precisely but I've seen lots of CD open a Adobe Flash dialog. It's also been a long time I've played around with flash but I think they're a setting in File > Publish that allows you to export to a dialog.
The CD auto-start is an autorun.ini file added to the root of the CD. You could create a folder on the CD named autorun or something. Insert all your Flash/HTML files then point the open parameter of the autorun.ini file to an HTML/Flash file.
Some documentation below (or Google “autorun.ini”).
http://support.microsoft.com/kb/818804
Notice however not all computer will have Flash installed by default.

Cyberduck uploads break node-dev/up/hotnode

I've been using Cyberduck 4.2.1 to connect to my EC2 instance to edit my Node projects. I've used Node-dev to reload my project/server as files are updated, but if I save the files through Cyberduck's Edit command, the server never really reloads and usually crashes.
I've tested with a few different editors (TextMate, Dashcode) with the same result. Node-dev restarts correctly when I edit files from the terminal. I have tried a few others that do rougly the same thing, hotnode and up. They all work when editing via Terminal, but fail when I edit files through Cyberduck. I think it has something to do with the way Cyberduck replaces the remote files when it is saved.
Does anyone know what might be causing this, and maybe suggest some changes to these github projects? If not, are there better Mac FTP clients that might not have this issue?
I don't know about Node-dev, but my educated guess is that it crashes because it reads a partially uploaded file. I suggest to try the Upload with temporary filename feature available as a hidden option in Cyberduck.
You can try CyberDuck 6.6.2 ....It works for me

Packaging an exe to have one file, similar to on mac with .app

I am trying to create a standalone app with a resources folder that is writable. I would like to include this in the exe, similar as to how it is done on OSX with an .app. Is this possible?
Thanks!
Assuming that you're talking about a modern Windows OS you're probably going to have problems with this even if you could come up with a solution. Most apps gets put under the Program Files directory and by default only Admins have write permissions there so it's generally seen as a bad thing to store anything the app needs to write to next to the executable in Windows.

Resources