[web2py] Re: Bootstrap is really killing web2py

2016-03-22 Thread Pierre
ok. off subject but important : https://en.wikipedia.org/wiki/The_Outdatedness_of_Human_Beings -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

Re: [web2py] many session files

2016-03-22 Thread Alex
Does anyone have more information about sessions stored in cookies? is it really completely safe or is it theoretically possible for an attacker to pretend being logged in as some random user? It is known (or easy to find out) that an app was made with web2py and the session code is open

[web2py] Re: learning curve?

2016-03-22 Thread pbreit
I look at Django and Rails every 6 months or so and still come back to web2py as being the easiest and most logical to get going. Specifying the DB on models works really well. And the convention of laying out files corresponding to URL routes works out really well. On Monday, February 8, 2016

[web2py] Re: Bootstrap is really killing web2py

2016-03-22 Thread Pierre
>Also, note that SQLFORM and the existing grid will likely be deprecated by new functionality that is in development. >Anthony Does this mean we should cancel code based on SQLFORM / SQLFORM.grid and wait for the new functionality ? -- Resources: - http://web2py.com -

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-03-22 Thread pbreit
PythonAnywhere Google App Engine Digital Ocean ($5/month) On Saturday, February 20, 2016 at 10:38:46 PM UTC-8, Rgb Aston wrote: > > Which one's the best to go for? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Bootstrap is really killing web2py

2016-03-22 Thread Leonel Câmara
No Pierre, just use it, those will eventually be deprecated not erased immediately. Anyway, SQLFORM code will be able to use the new Form almost unchanged so it will be easy to change it later. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: learning curve?

2016-03-22 Thread Literate Aspects
Hi Massimo, thank you for your reply. Chapter 3? I printed out the tutorial from killer-web-development which was referred to me by pythonanywhere and am going to complete that tutorial today, Chapter 3 is in the Web2Py main documentation book? Jon On Monday, March 21, 2016 at 5:53:05 PM

[web2py] Re: learning curve?

2016-03-22 Thread Literate Aspects
Hi Massimo, I did not realize that YOU are the author of the Web2PY main book, I really have a high respect for a person like YOU THAT shares there time with people like me, whom are seeking to aspire to a level of literacy of programming that you have achieved. What an incredible donation of

[web2py] Re: learning curve?

2016-03-22 Thread Literate Aspects
Hi Pbreit, thank you for your reply. I tried Django and did not appreciate the developer community over there. I have read that Python is an extremely deep level language and can accomplish anything with it. I am still trying to understand what Web2Py is? Is it a script language? Is it

[web2py] Re: Existing Components for Web2PY ?

2016-03-22 Thread Literate Aspects
Hi Dave S, wow! looks HOT! shall begin that web2PY documentation link you shared today. Jon On Monday, March 21, 2016 at 5:45:05 PM UTC-7, Dave S wrote: > > On Monday, March 21, 2016 at 5:34:19 PM UTC-7, Literate Aspects wrote: >> >> Hi, I am just beginning with Web2Py - as a person coming

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-03-22 Thread Carlos Cesar Caballero
Hi, have you some experience with forpsi.com? I am looking for reliable non USA providers. Greetings. El lunes, 14 de marzo de 2016, 8:28:13 (UTC-4), Mirek Zvolský escribió: > > allwaysdata.com, but has only 10M place (about 6M after you install > web2py-min), good ssh, cron, no problem to

Re: [web2py] learning curve?

2016-03-22 Thread Literate Aspects
Hi Dave S, I can't wait to see this Web2PY UI environment. Thank you for your reply, shall view the other post. Jon On Monday, March 21, 2016 at 5:46:14 PM UTC-7, Dave S wrote: > > > > On Monday, March 21, 2016 at 5:37:52 PM UTC-7, Literate Aspects wrote: >> >> Hi Thomas, >> >> Is there

Re: [web2py] Is web2py the right tool for this kind of project?

2016-03-22 Thread Richard Vézina
You want to create a kind of landscape computer management? Richard On Tue, Mar 22, 2016 at 1:47 PM, Dragan Matic wrote: > I want to create a service where users could remotely manage some services > on their computers which are behind the firewall. > > Users could

[web2py] Re: Is there any way to control the view representation of python types?

2016-03-22 Thread Alfonso Serra
Thanks to point me to filter_in, filter_out functions they are helpful indeed. The problem is that not all the view data comes from a database, form.vars for example or any custom variable from a controller or a model. Wrapping everything in all the views is not mantainable. All this data,

[web2py] Is web2py the right tool for this kind of project?

2016-03-22 Thread Dragan Matic
I want to create a service where users could remotely manage some services on their computers which are behind the firewall. Users could register their account, under their account they could register one or more (let's say up to 20) client computers, for each of these they could download a

Re: [web2py] Is web2py the right tool for this kind of project?

2016-03-22 Thread Jason (spot) Brower
Sure. Does just fine. Did similar my self this last year. All in web2py. On Tue, Mar 22, 2016, 20:40 Richard Vézina wrote: > You want to create a kind of landscape computer management? > > Richard > > On Tue, Mar 22, 2016 at 1:47 PM, Dragan Matic

Re: [web2py] many session files

2016-03-22 Thread Anthony
On Tuesday, March 22, 2016 at 7:44:06 AM UTC-4, Alex wrote: > > Does anyone have more information about sessions stored in cookies? is it > really completely safe or is it theoretically possible for an attacker to > pretend being logged in as some random user? > > It is known (or easy to find

[web2py] Re: Why I can send mail use python but can't send by web2py mail object

2016-03-22 Thread killzane
Hello, I can send mail from my controller. but I face another problem. When I use python example send mail to Gmail, It works. but when I use my web2py controller send it, Gmail let it bounced. This is in mail.log to=, relay=gmail-smtp-in.l.google.com[2404:6800:4003:c02::1b]: 25, delay=2.1,

Re: [web2py] web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
I will launch my app automated tests, but so far it looks very good! Seems fast... On Tue, Mar 22, 2016 at 11:31 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Here : > https://github.com/web2py/web2py/blob/41fd02fa2c03bacafd67faad56861e7d14e9b361/CHANGELOG > > Ok figure it out...

[web2py] Re: Is there any way to control the view representation of python types?

2016-03-22 Thread Anthony
If the data are from the database, in your model definitions, you can specify the "represent" attribute, which is a function that takes the value (as well as the entire row) and can output whatever you like. It is automatically used in the grid, SQLTABLE, and in read-only forms, and you can

[web2py] Is there any way to control the view representation of python types?

2016-03-22 Thread Alfonso Serra
Yes, is there a way to control how to render builtin python types (int, float, NoneType, ...)? Instead of: None: a = None renders as "None", render as " " Integer: b = 1234 render as "1.234" Float: c = 1234.265 render as "1.234,27" Boolean d = True render as "ok" And so on... We cant change

Re: [web2py] Re: learning curve?

2016-03-22 Thread Literate Aspects
ok, thank you Rimantas Nedzinskas, shall view the web2py video series. Is there a tutorial on Lynda.com as well ? Jon On 3/22/16, Rimantas Nedzinskas wrote: > >> >> For me personally, one of the best learning sources are videos. Take a >> look at the web2py series:

[web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Jack Kuan
I assume these print statements(in *gluon/sqlhtml.py*), probably added while debugging, will be removed in the 2.14.1? print dbset.query print tablenames print tables Thanks On Monday, March 21, 2016 at 6:38:16 PM UTC-4, Massimo Di Pierro wrote: > > Please help

[web2py] JQuery Help with book example of .slideToggle

2016-03-22 Thread billmackalister
In the book example page 501 Hello World jQuery(document).ready(function(){ jQuery('.one').click(function(){jQuery('.two').slideToggle()}); }); When the page loads up it shows both hello and world. How to show just hello keeping the world hidden and when clicked then only the world to

Re: [web2py] many session files

2016-03-22 Thread Massimo Di Pierro
Let's be clear. By default no data is stored in the session cookie. the session cookie is only a uuid. The data is only stored server side in a file. Unless you explicitly change this to store sessions data in a cookie. Is that what you are doing? On Tuesday, 22 March 2016 06:44:06 UTC-5,

[web2py] Re: learning curve?

2016-03-22 Thread Massimo Di Pierro
It is a framework like Django but it is easy to use, packs more feature, and has a more friendly community. ;-) On Tuesday, 22 March 2016 08:09:15 UTC-5, Literate Aspects wrote: > > Hi Pbreit, thank you for your reply. I tried Django and did not > appreciate the developer community over there.

[web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Dave S
On Tuesday, March 22, 2016 at 3:57:26 PM UTC-7, Massimo Di Pierro wrote: > > very confused by this traceback. This line: > > from upwatcher import uploadwatch > > is not in the scheduler code. where is it? In your code? Do you have this > library installed somewhere? Did it work before? > >

[web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Dave S
Never mind, this one is fixed by restarting the web2py instance. /dps On Tuesday, March 22, 2016 at 4:16:11 PM UTC-7, Dave S wrote: > > > > On Monday, March 21, 2016 at 3:38:16 PM UTC-7, Massimo Di Pierro wrote: >> >> Please help us check it (for testers version) >> >>

Re: [web2py] many session files

2016-03-22 Thread Alex
yes, I'm talking about session data in a cookie. as mentioned in the book with session.connect(request, response, cookie_key='secret') As mentioned by Anthony there are no known vulnerabilities - unless proven otherwise. So I assume it is safe to use this method. Further the session data in a

[web2py] Re: Why I can send mail use python but can't send by web2py mail object

2016-03-22 Thread Dave S
On Tuesday, March 22, 2016 at 8:51:36 AM UTC-7, killzane wrote: > > Hello, > > I can send mail from my controller. > > but I face another problem. > When I use python example send mail to Gmail, It works. > but when I use my web2py controller send it, Gmail let it bounced. > > > This is in

Re: [web2py] Re: Progress bars and session

2016-03-22 Thread chenlevy
Alfonso, so if you have a working progress bar, can you please post your complete solution (with a view and java-script) here? TIA, On Thursday, February 18, 2016 at 2:21:01 AM UTC+2, Alfonso Serra wrote: > > Omg it did work!. Thanks you very much Anthony, i owe you one. > > Console log: >

[web2py] Function can't update DB when called from scheduler, but can when called from a controller/function

2016-03-22 Thread M Mihai
So I want to update the database while a scheduler task is running but the function won't update it. If I try to run the same function from a controller it will update the database. Here is the function: def Test(): row = db(db.posts.Posted==False).select().first()

[web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Massimo Di Pierro
very confused by this traceback. This line: from upwatcher import uploadwatch is not in the scheduler code. where is it? In your code? Do you have this library installed somewhere? Did it work before? Massimo On Tuesday, 22 March 2016 16:39:06 UTC-5, Dave S wrote: > > > > On Monday, March 21,

[web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Dave S
On Monday, March 21, 2016 at 3:38:16 PM UTC-7, Massimo Di Pierro wrote: > > Please help us check it (for testers version) > > http://web2py.com/init/default/download > > and let us know if it does not work with your code. I will be released as > stable in 2 days. So better check it sooner

[web2py] Re: Function can't update DB when called from scheduler, but can when called from a controller/function

2016-03-22 Thread Dave S
On Tuesday, March 22, 2016 at 3:45:25 PM UTC-7, M Mihai wrote: > > So I want to update the database while a scheduler task is running but the > function won't update it. If I try to run the same function from a > controller it will update the database. > > Here is the function: > > def Test():

[web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Dave S
On Monday, March 21, 2016 at 3:38:16 PM UTC-7, Massimo Di Pierro wrote: > > Please help us check it (for testers version) > > http://web2py.com/init/default/download > > and let us know if it does not work with your code. I will be released as > stable in 2 days. So better check it sooner

[web2py] Re: Why I can send mail use python but can't send by web2py mail object

2016-03-22 Thread Massimo Di Pierro
Tell you the truth I have given up using gmail for sending emails. Authentication is a nightmare and they seem to change the rules often. I would recommend SparkPost instead. On Tuesday, 22 March 2016 10:51:36 UTC-5, killzane wrote: > > Hello, > > I can send mail from my controller. > > but

Re: [web2py] many session files

2016-03-22 Thread Anthony
On Tuesday, March 22, 2016 at 6:50:30 PM UTC-4, Massimo Di Pierro wrote: > > Let's be clear. By default no data is stored in the session cookie. the > session cookie is only a uuid. The data is only stored server side in a > file. Unless you explicitly change this to store sessions data in a

Re: [web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread Richard Vézina
How do you manage your web2py update? Could it happen that you get it from github and upgrade pydal package with a version different from the one used by web2py 2.13.4? Can you check you version of pyDAL? On Tue, Mar 22, 2016 at 8:12 PM, wrote: > You think this is a game?

[web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread webmaster
You think this is a game? So... I just ran into another UNFATHOMABLY, INCONCEIVABLY MASSIVE BUG in the newer PyDAL (i.e. 2.13.4 AND 2.14.1b vs my trusted 2.12.2 version). It doesn't remember how to write unicode to the DB now: ERROR2016-03-22 23:04:47,468 restricted.py:174] Traceback

Re: [web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread webmaster
My steps: 1. Notice bug. 2. Put the /pydal folder from my 2.12.2 version of web2py into my current project. Restart server. It works. 3. Download a .zip of the gluon/packages/DAL directory from github. Replace my 2.12.2 pydal with the new version. Restart server. It fails. Not a lot

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread webmaster
Are you using GAE? On Tuesday, March 22, 2016 at 5:42:33 PM UTC-7, Richard wrote: > > I use to store fr uft8 and didn't have any issue with 2.13.4 > > Richard > > On Tue, Mar 22, 2016 at 8:33 PM, wrote: > >> It could possibly be something specific to GAE. As I said, I don't

Re: [web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread Dave S
On Tuesday, March 22, 2016 at 6:12:00 PM UTC-7, webm...@trytha.com wrote: > > My steps: > > 1. Notice bug. > > 2. Put the /pydal folder from my 2.12.2 version of web2py into my current > project. Restart server. It works. > > 3. Download a .zip of the gluon/packages/DAL directory from

Re: [web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread webmaster
This wasn't an update, it was a fresh install. Here's what I was originally using: __version__ = '16.03-dev' [FAIL] Then used my old /pydal from 2.12.2 (which doesn't list a version number in init). [PASS] Then tried whatever was latest on the git site within the last 30 minutes. [FAIL] On

[web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread webmaster
Guess I could have posted here first, but it's not an error in the new version, it's in multiple versions: Unicode is not working in "string" DB entries. WTF mate? https://groups.google.com/forum/#!topic/web2py/T5eQExgTP1w On Tuesday, March 22, 2016 at 4:19:15 PM UTC-7, Dave S wrote: > >

[web2py] Re: Why I can send mail use python but can't send by web2py mail object

2016-03-22 Thread Dave S
On Tuesday, March 22, 2016 at 4:02:42 PM UTC-7, Massimo Di Pierro wrote: > > Tell you the truth I have given up using gmail for sending emails. > Authentication is a nightmare and they seem to change the rules often. I > would recommend SparkPost instead. > this looks to me like sending mail*

Re: [web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread Richard Vézina
pyDAL should be R-2.13.3 : https://github.com/web2py/web2py/tree/R-2.13.4/gluon/packages On Tue, Mar 22, 2016 at 9:05 PM, Richard Vézina wrote: > How do you manage your web2py update? Could it happen that you get it from > github and upgrade pydal package with a

[web2py] Re: learning curve?

2016-03-22 Thread Literate Aspects
Sorry, found it: http://www.web2py.com/init/default/documentation THANK you for all your responsiveness. Jon On Tuesday, March 22, 2016 at 5:56:05 PM UTC-7, Literate Aspects wrote: > > Hi Rimantas, I viewed the vimeo video of Massimo and really liked it, but > where is the "series" you

Re: [web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread Dave S
On Tuesday, March 22, 2016 at 6:56:22 PM UTC-7, webm...@trytha.com wrote: > > This wasn't an update, it was a fresh install. Here's what I was > originally using: __version__ = '16.03-dev' [FAIL] > > Then used my old /pydal from 2.12.2 (which doesn't list a version number > in init). [PASS]

[web2py] new Starter app (alternative to Welcome app)

2016-03-22 Thread Michael Beller
I created a new 'starter' app for the types of data and process management apps I tend to build. I used https://almsaeedstudio.com/preview as the template and I'm hosting a preview at https://mjbeller.pythonanywhere.com/starter. I'd welcome any feedback but also wanted to share the code at

[web2py] Re: learning curve?

2016-03-22 Thread Rimantas Nedzinskas
> > For me personally, one of the best learning sources are videos. Take a > look at the web2py series: https://vimeo.com/104800778 > Rimas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-22 Thread Michael Beller
Thank you! All due credit to almsaeedstudio.com for the HTML/CSS/JS template. I modified the template to match the web2py standards and the starter app now includes all the capabilities. I've created a menu item helper to create menu items and also

[web2py] Re: new Starter app (alternative to Welcome app)

2016-03-22 Thread Massimo Di Pierro
this is really nice. We should make a list of welcome apps so people can pick and choose. P.S. Have you seen this? (similar but CSS only) . On Tuesday, 22 March 2016 21:17:41 UTC-5, Michael Beller wrote: > > I created a new 'starter' app for the types of data and process management > apps I

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-22 Thread Richard Vézina
Michael, The preview is really "fucking" nice!! It that what your starter app is capable really? Richard On Tue, Mar 22, 2016 at 10:17 PM, Michael Beller wrote: > I created a new 'starter' app for the types of data and process management > apps I tend to build. > > I used

[web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Massimo Di Pierro
Can you help us with a test? In pydal/adapters/google_adapter.py lines 51/21 # if not 'charset' in driver_args: # driver_args['charset'] = 'utf8' Can you uncomment and check if this fixed the problem? On Tuesday, 22 March 2016 19:15:28 UTC-5, webmas...@trytha.com wrote: > > Guess I

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
All my functional tests had passed just fine... Richard On Tue, Mar 22, 2016 at 8:15 PM, wrote: > Guess I could have posted here first, but it's not an error in the new > version, it's in multiple versions: > > Unicode is not working in "string" DB entries. WTF mate? >

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread webmaster
It could possibly be something specific to GAE. As I said, I don't have time for a lot of tests right now. Try uploading this in a database somewhere: テスト On Tuesday, March 22, 2016 at 5:29:02 PM UTC-7, Richard wrote: > > All my functional tests had passed just fine... > > Richard > > On

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
I use to store fr uft8 and didn't have any issue with 2.13.4 Richard On Tue, Mar 22, 2016 at 8:33 PM, wrote: > It could possibly be something specific to GAE. As I said, I don't have > time for a lot of tests right now. Try uploading this in a database > somewhere: テスト

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
Nop! On Tue, Mar 22, 2016 at 8:53 PM, wrote: > Are you using GAE? > > On Tuesday, March 22, 2016 at 5:42:33 PM UTC-7, Richard wrote: >> >> I use to store fr uft8 and didn't have any issue with 2.13.4 >> >> Richard >> >> On Tue, Mar 22, 2016 at 8:33 PM,

[web2py] Re: learning curve?

2016-03-22 Thread Literate Aspects
Hi Rimantas, I viewed the vimeo video of Massimo and really liked it, but where is the "series" you mentioned, the video only played ONE video. Jon On Tuesday, March 22, 2016 at 7:07:06 AM UTC-7, Rimantas Nedzinskas wrote: > > For me personally, one of the best learning sources are videos. Take

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread webmaster
Then, as the Japanese say: ピンポン! This is disturbing. Massimo thinks he *fixed* GAE database stuff in the change from 2.12.2 to 2.12.3, but this is the second thing I've found that went the exact opposite direction. I wonder if he fixed a bunch of code, then saved over 2.12.2 with the

[web2py] Re: Why I can send mail use python but can't send by web2py mail object

2016-03-22 Thread killzane
Here is my stand alone code named "testMail.py" # Import smtplib for the actual sending function import smtplib # Import the email modules we'll need from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart me = 'no-reply@mydomain' you = 'reciver mail address' msg =

Re: [web2py] many session files

2016-03-22 Thread Massimo Di Pierro
It is but make sure you do not expose the welcome app. That app exposes (as an example) the state of the system, which includes your secret key. The next we2py version (this week, I promise) will prevent that. On Tuesday, 22 March 2016 18:55:25 UTC-5, Alex wrote: > > yes, I'm talking about

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Massimo Di Pierro
Can you provide a simple two lines of code to reproduce the problem with dev_appserver? On Tuesday, 22 March 2016 20:03:52 UTC-5, webmas...@trytha.com wrote: > > Then, as the Japanese say: ピンポン! > > This is disturbing. Massimo thinks he *fixed* GAE database stuff in the > change from 2.12.2

Re: [web2py] Re: new Starter app (alternative to Welcome app)

2016-03-22 Thread Jason Brower
I agree Massimo. We should have a small wizard to help select what kind of layout we would want. Blank Stupid CSS This one Bookstrap 3 Angular example etc... On Wed, Mar 23, 2016 at 7:43 AM, Massimo Di Pierro wrote: this is really nice. We should make a list of

Re: [web2py] web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
I can't figure out how to establish Redis cache connection... I was doing like that before... from gluon.contrib.redis_cache import RedisCache cache.redis = RedisCache('localhost:6379', db=None, debug=True, with_lock=False, password=None) Try that : from gluon.contrib.redis_utils import RConn

Re: [web2py] web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
Here : https://github.com/web2py/web2py/blob/41fd02fa2c03bacafd67faad56861e7d14e9b361/CHANGELOG Ok figure it out... There were more then one web2py instance running what causing issue I think, I kill them and now it seems to work. Testing beta now... On Tue, Mar 22, 2016 at 10:59 AM, Richard