I need to be able to detect if my webpage is running on a blackberry before OS 7.
I need to be able to tell a user that certain elements will no function correctly.
Is this possible?
From the useragent, you can detect what device the user is using.
You can use this great link http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-detect-the-BlackBerry-Browser/ta-p/559862
A sample user agent for the BlackBerry Bold 9900 smartphone:
Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0 Mobile Safari/534.11+
Related
in my product.py, I changed DEBUG=True. but in my browser, I still don't see error logs.
error screenshot
I'm able to login. but the site throws a 500 internal error when I create a test plan. Errors also got thrown when I open test plans - logs are linked below
500 11938 "https://kiwi.dev.identos.ca/plan/search/?author__username__startswith=admin" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
I realized the log is not very useful.
Can you please give me instructions on how to properly turn on debug mode. I'm new to this product. All docs I'm reading just said "change DEBUG to True", without any instruction of where and how to change it.
fyi, I'm using kiwitcms/kiwi:latest. The way I tried to turn on debug mode is - deploy and exec to docker image. and use vi to change DEBUG=True in product.py, but it didn't work.
Much Appreciated.
Can you please give me instructions on how to properly turn on debug
mode.
The official documentation should help:
https://kiwitcms.readthedocs.io/en/latest/installing_docker.html#customization
The way I tried to turn on debug mode is - deploy and exec to docker
image. and use vi to change DEBUG=True in product.py, but it didn't
work
If you insist on editing the file in-place then you must know that the changes are:
Reflected in the top-most container layer, which is a copy-on-write layer. That gets discarded when you turn-off the container and
Kiwi TCMS needs to be restarted in order to reflect the new settings, see 1).
This can be overcome by committing the changes from the COW layer into same/new container image, see
https://docs.docker.com/engine/reference/commandline/commit/
Ok, so I know how to write code for multiple screen sizes. But, I have no idea how to view my code on a mobile device before making my site go live. Please help!
You can play around with emulators which can simulate a variety of cellular devices. These can be downloaded using a program called Bluestacks for example.
If you have Google Chrome you can open a website and press F12 (on windows) to enter Developer Mode.
On the top left you can see a little smartphone icon.
Click it and choose a device. Then refresh the page.
Chrome will emulate the experience of a smartphone user straight from your computer, sou you can test it from there.
This is a view of this question on the emulator:
Here is the solution if you are using safari.
Enable the "develop" menu bar using Safari > Preferences > Advanced. Your menu bar should look like this:
Go to your website
Go to Develop > User Agent and choose the device/browser you wish to emulate.
You have two options.
Use of Emulators.
What you need - is any modern browser. Nearly every modern browser will offer you roughly similar emulator capabilities where you can select a target device/resolution. #intboolstring & #Pither has already mentioned safari & chrome options for you. IE & Edge have similar features (which you can probably explore yourself or see this link IE Emulator feature).
Using actual devices.
What you need - 1) wireless router 2) your dev machine/laptop which has a web server (like IIS on windows) & 3) some mobile devices (I would assume you would have atleast one smartphone which has a mobile browser on it).
You will need to connect your dev machine/laotop & your device(s) to the wireless and setup firewall on your dev machine to allow access to your website on your local wireless network. Check out this answer.
Once this is done, you should be able to load your site on any device connected on your wireless by tying http://your.dev.machine.ipv4:port-if-applicable/landingpage.html in the mobile browser.
(to find your machine's ipv4 address, goto command prompt and type ipconfig and press enter - I am assuming you are using windows)
You may be limiting your testing to a much smaller set of devices (ones you have access to). But this will give you a real-world idea (if not a much better one) of how you site renders & behaves on devices.
I want to share(and give control of) my Ubuntu 12.04 desktop to my brother(using Windows 7).
We are not on the same network. (We're in different cities).
What would be the easiest way to accomplish this (without compromising security)?
I read that VNC isn't very secure.
Thanks.
I would try Teamviewer. Nice tool, i've often used it private and at work to remote access PCs. With Teamviewer it's also possible to access clients via Android/IPhone.
You can also user UltraVNC. It works good with Windows-Linux remote desktop. UltraVNC
I just installed an Ubuntu 10.10 desktop on a system to do some development work. I would like to run the X server environment on my MacBook instead of keyboard hopping (the graphics system on the Ubuntu box is not so great).
Poking around on the web I uncovered the following command that I can run from a terminal in Mac OS X:
/usr/X11/bin/Xnest -geometry 1280x900 :1 & DISPLAY=:1 ssh -X -Y grog#ubuntusys gnome-session
Note I have ssh set up so authentication happens automatically.
This seems to work great -- the Ubuntu desktop appears on my Mac OS X screen! (It seems to be smart enough to start X11 if it isn't running already). However if I try to open any program, it dies out. So close.
Any suggestions appreciated.
Update: Thanks to the answer below that provides a tutorial link I learned how to do basic X forwarding. You can do this from an X terminal window on the Mac simply like this:
ssh -X -Y username#targetsystem
then you can start X applications that run on the remote system but their windows are on the Mac X server. The issue that I now have is I want to start the gnome desktop session:
gnome-session
but the problem there is that the session takes over the whole Mac desktop. You cannot resize it or move it. Worse, the top part of the windows managed by the window manager end up underneath the menu bar that Mac OS puts up there so you cannot access those controls. I think this is a problem that Xnest was intended to solve, or am I misunderstanding what it is all about?
Use Xnest or Xephyr this way on your Mac OS X:
Xnest :1 -geometry 1280x800 -query 10.0.1.x
Xephyr :1 -screen 1280x1024 -query 192.168.1.x
The only thing you have to do is to enable remote login in your Linux by manually editing /etc/gdm/custom.cfg or using the gdmsetup GUI program. Here CentOS 5 is taken as an example. In Ubuntu things will be a little differrent.
This approach is very different to VNC which is like Microsoft's RDP (screen capture) while XDMCP utilizes the graphic power of your Mac to assist Linux system.
Remember that X11 was specifically designed to be used over network connections rather than on an integral or attached display device. X features network transparency: the machine where an application (the client application, for instance Firefox on Linux) runs can differ from the user's local machine (the display server, that is the X11 on your Mac). This approach allows both 2D and 3D operations to be fully accelerated on the user's local X server.
Depending on which version of OSX you're running, the best bet is probably the native Mac X11 Distribution. It's on the install CD (or if you're like me you got Lion through the App Store, it is available in the Utilities folder by default).
Launching it (Applications > Utilities > X11) brings up a specific X11 x-terminal, which you can use to ssh forward over to your Ubuntu system. That link in Answer 1 is pretty old, I found this one to be more helpful: http://www.craigryder.com/linux-ubuntudebetc/x11-forwarding-and-ssh-for-remote-linux-ubuntu-desktop/
The only extra option I use is the -C flag to enable compression when I run my ssh command. Please note that you do NOT have to run a full gnome-session to use the X features - you can simply run the program you want (ie, $ gedit&). This gets you out of using the whole desktop, but it is kind of weird since your Mac desktop still gets blacked out. You can find more on this technique # http://ubuntuforums.org/showthread.php?t=1373823&page=2
I also noticed that on 10.10 Ubuntu, my system showed the same odd UI control behaviors you mention, but those disappeared when I upgraded my distribution to Ubuntu 11. I didn't really go to deep to see if simply upgrading X to the latest version on the 10.10 Ubuntu system would have fixed that issue, but I can confirm that it does not appear in 11.
One final note, this still seems to force the Mac X11 server into Full-Screen mode, but if you press COMMAND-ALT-A it immediately takes you out of the X desktop and back into your Lion desktop, which allows me to have both running and still be productive when I need to jump out of my Ubuntu system. I seem to be able to always access all the title and menu bars for all of my X apps just as though I was sitting at the Ubuntu desktop.
One caveat - I'm running the above to connect to a VMWare Workstation VM running Ubuntu (with 3D acceleration enabled) on my workstation - connecting to actual hardware may (though I can't fathom how) result in slightly different behavior.
Hope this helped!
Is VNC not working for you?
Or regular X forwarding over SSH.
I have used software named my mobiler which displays the screen of any Windows Mobile connected to a desktop PC and allows the user to control the mobile from the desktop.
Are there other similar software available in the market for S60 or Series 40 Nokia mobiles.
My Mobiler is very cool - like Remote Desktop but for a phone.
The Nokia PC Connectivity API doesn't quite do the same thing, as it provides a set of APIs to let you control the phone and get data from it. Neither do the Series 40 or Series 60 emulators, as the phone is emulated rather than real.
Given the significant technology differences between S60, S40 and Windows, I'd be surprised to see this change any time soon.
Now, Maemo (as running on the N900) is a different kettle of fish altogether. Quite remarkably someone has ported VNC there which should do the job just nicely.