filetea:filetea.git
6 years agorelease: 0.1.10 0.1.10
Eduardo Lima Mitev [Sun, 30 Oct 2011 23:25:58 +0000 (00:25 +0100)]
release: 0.1.10

6 years agobuild: Raises required version of EventDance to 0.1.16
Eduardo Lima Mitev [Sun, 30 Oct 2011 23:24:17 +0000 (00:24 +0100)]
build: Raises required version of EventDance to 0.1.16

6 years agoRemoves INSTALL file from the repository
Eduardo Lima Mitev [Sun, 30 Oct 2011 23:14:06 +0000 (00:14 +0100)]
Removes INSTALL file from the repository

This file is generated by autoconf.

6 years agoUpdates for API changes in EventDance
Eduardo Lima Mitev [Sun, 30 Oct 2011 21:44:16 +0000 (22:44 +0100)]
Updates for API changes in EventDance

Now throttling API is in EvdIoStream instead of EvdConnection.

6 years agoUpdates for API changes in EventDance
Eduardo Lima Mitev [Sun, 30 Oct 2011 21:31:10 +0000 (22:31 +0100)]
Updates for API changes in EventDance

EvdWebTransport has been renamed to EvdWebTransportServer.

6 years agoMakes jquery-ui an external dependency, taking it out of the repo
Eduardo Lima Mitev [Fri, 28 Oct 2011 14:12:06 +0000 (16:12 +0200)]
Makes jquery-ui an external dependency, taking it out of the repo

As with jquery, almost all distros already ship jquery-ui library so it makes no sense to
distribute it along with FileTea.

A new config option 'jquery-ui-dir' is added to tell FileTea where to find the
directory containing jquery-ui.min.js (the minified form).

6 years agoImplements PID file writing feature and adds 'pid-file' option in config
Eduardo Lima Mitev [Thu, 27 Oct 2011 21:53:01 +0000 (23:53 +0200)]
Implements PID file writing feature and adds 'pid-file' option in config

6 years agobuild: Raises required version of EventDance to 0.1.15
Eduardo Lima Mitev [Thu, 27 Oct 2011 21:52:11 +0000 (23:52 +0200)]
build: Raises required version of EventDance to 0.1.15

due to recent API changes.

6 years agoHandles error condition when running filetea daemon
Eduardo Lima Mitev [Thu, 27 Oct 2011 21:39:59 +0000 (23:39 +0200)]
Handles error condition when running filetea daemon

also synchronizing with API changes in run() of EvdDaemon.

6 years agoFormats config file to 80 columns and fixes a few typos
Alberto Garcia [Thu, 27 Oct 2011 16:01:28 +0000 (18:01 +0200)]
Formats config file to 80 columns and fixes a few typos

6 years agoFixes error in default value of 'http-log-file' option in config
Alberto Garcia [Thu, 27 Oct 2011 15:35:06 +0000 (17:35 +0200)]
Fixes error in default value of 'http-log-file' option in config

Log files go to /var/log, not /usr/log.

6 years agobuild: Installs config file in $(prefix)/etc/filetea/filetea.conf
Alberto Garcia [Wed, 26 Oct 2011 15:10:29 +0000 (17:10 +0200)]
build: Installs config file in $(prefix)/etc/filetea/filetea.conf

automatically upon 'make install'.

6 years agoUpdates default values and comment some options in sample config file
Eduardo Lima Mitev [Tue, 25 Oct 2011 23:11:29 +0000 (01:11 +0200)]
Updates default values and comment some options in sample config file

6 years agohtml: Adds missing comment blocks into javascript files
Eduardo Lima Mitev [Tue, 25 Oct 2011 22:55:12 +0000 (00:55 +0200)]
html: Adds missing comment blocks into javascript files

6 years agohtml: Removes unused file jsonRpc.js
Eduardo Lima Mitev [Tue, 25 Oct 2011 22:52:28 +0000 (00:52 +0200)]
html: Removes unused file jsonRpc.js

Its functionality was moved into fileTea.js long ago.

6 years agodoc: Improves manual page for filetea service daemon
Alberto Garcia [Tue, 25 Oct 2011 18:26:32 +0000 (21:26 +0300)]
doc: Improves manual page for filetea service daemon

6 years agoMakes jquery an external dependency, taking it out of the repo
Eduardo Lima Mitev [Tue, 25 Oct 2011 17:21:42 +0000 (19:21 +0200)]
Makes jquery an external dependency, taking it out of the repo

Almost all distros already ship jquery library so it makes no sense to
distribute it along with FileTea.

A new config option 'jquery-dir' is added to tell FileTea where to find the
directory containing jquery.min.js (the minified form).

6 years agoAdds manpage for filetea service daemon
Eduardo Lima Mitev [Sat, 22 Oct 2011 16:30:08 +0000 (18:30 +0200)]
Adds manpage for filetea service daemon

6 years agoDisables 'peer' sections in the config file
Alberto Garcia [Tue, 25 Oct 2011 11:31:32 +0000 (14:31 +0300)]
Disables 'peer' sections in the config file

6 years agoMoves call to daemonize() before setting up nodes
Eduardo Lima Mitev [Tue, 25 Oct 2011 15:18:25 +0000 (17:18 +0200)]
Moves call to daemonize() before setting up nodes

Currently EventDance's epoll functionality breaks if the process is daemonized
after sockets have already been added to the epoll set.

6 years agohtml: Removes unused file jquery-ui-1.8.9.custom.css-backup from repo
Eduardo Lima Mitev [Tue, 25 Oct 2011 15:17:35 +0000 (17:17 +0200)]
html: Removes unused file jquery-ui-1.8.9.custom.css-backup from repo

6 years agobuild: Installs the filetea binary in the sbin directory
Berto [Mon, 24 Oct 2011 13:45:46 +0000 (16:45 +0300)]
build: Installs the filetea binary in the sbin directory

6 years agobuild: Prepares for 0.1.9 development cycle
Eduardo Lima Mitev [Sat, 22 Oct 2011 19:08:53 +0000 (21:08 +0200)]
build: Prepares for 0.1.9 development cycle

6 years agorelease: 0.1.8 0.1.8
Eduardo Lima Mitev [Sat, 22 Oct 2011 18:46:08 +0000 (20:46 +0200)]
release: 0.1.8

6 years agobuild: Raises required version of EventDance to 0.1.14
Eduardo Lima Mitev [Sat, 22 Oct 2011 18:38:21 +0000 (20:38 +0200)]
build: Raises required version of EventDance to 0.1.14

due to new used API from EvdJsonrpc.

6 years agohtml: Makes DownloadView use new method getRemotePeerId() of Ft
Eduardo Lima Mitev [Sat, 22 Oct 2011 16:38:29 +0000 (18:38 +0200)]
html: Makes DownloadView use new method getRemotePeerId() of Ft

6 years agohtml: Adds new method getRemotePeerId() to Ft object
Eduardo Lima Mitev [Sat, 22 Oct 2011 16:37:29 +0000 (18:37 +0200)]
html: Adds new method getRemotePeerId() to Ft object

6 years agohtml: Adds a 'Transfers' section into main manu
Eduardo Lima Mitev [Sat, 22 Oct 2011 16:26:59 +0000 (18:26 +0200)]
html: Adds a 'Transfers' section into main manu

together with a TransfersView widget.

6 years agohtml: Implements API for tab highlighting (blinking) in UxManager
Eduardo Lima Mitev [Sat, 22 Oct 2011 14:54:08 +0000 (16:54 +0200)]
html: Implements API for tab highlighting (blinking) in UxManager

A setHightlight() public method is added to UxManager.

6 years agohtml: Adds a DownloadView widget and integrates it in Ux
Eduardo Lima Mitev [Sat, 22 Oct 2011 14:48:18 +0000 (16:48 +0200)]
html: Adds a DownloadView widget and integrates it in Ux

This will also remove the temporary code in ContentManager previously providing
download view functionality.

6 years agohtml: Adds new method getCurrent() to ContentManaget
Eduardo Lima Mitev [Sat, 22 Oct 2011 14:44:10 +0000 (16:44 +0200)]
html: Adds new method getCurrent() to ContentManaget

It returns the id of the current content being shown.

6 years agohtml: Adds a second argument 'callback' to open() method of ContentManager
Eduardo Lima Mitev [Sat, 22 Oct 2011 14:41:34 +0000 (16:41 +0200)]
html: Adds a second argument 'callback' to open() method of ContentManager

6 years agohtml: Implements new method 'cancel()' in TransfersManager
Eduardo Lima Mitev [Fri, 21 Oct 2011 15:33:44 +0000 (17:33 +0200)]
html: Implements new method 'cancel()' in TransfersManager

6 years agohtml: Prevents FileSources to accept a file with invalid size (<= 0)
Eduardo Lima Mitev [Fri, 21 Oct 2011 15:32:04 +0000 (17:32 +0200)]
html: Prevents FileSources to accept a file with invalid size (<= 0)

6 years agohtml: Implements transfer status reporting in TransferManager
Eduardo Lima Mitev [Fri, 21 Oct 2011 15:30:22 +0000 (17:30 +0200)]
html: Implements transfer status reporting in TransferManager

6 years agohtml: Removes RPC object caching in FileTransfer manager
Eduardo Lima Mitev [Fri, 21 Oct 2011 15:28:17 +0000 (17:28 +0200)]
html: Removes RPC object caching in FileTransfer manager

RPC object should be obtained using 'rpcFunc' argument, anytime it is needed.

6 years agohtml: Sets the id attr of the tabs 'ul' and its 'li' items
Eduardo Lima Mitev [Fri, 21 Oct 2011 15:09:39 +0000 (17:09 +0200)]
html: Sets the id attr of the tabs 'ul' and its 'li' items

This is to be able to reference them to implement tab highlight (blinking).

6 years agoImplements new RPC method 'cancelTransfer' in FileteaNode
Eduardo Lima Mitev [Fri, 21 Oct 2011 15:06:58 +0000 (17:06 +0200)]
Implements new RPC method 'cancelTransfer' in FileteaNode

6 years agoImplements transfer status reporting to remote peer at regular intervals
Eduardo Lima Mitev [Fri, 21 Oct 2011 15:04:22 +0000 (17:04 +0200)]
Implements transfer status reporting to remote peer at regular intervals

6 years agoAdds data structure to track transfers grouped by peers in FileteaNode
Eduardo Lima Mitev [Fri, 21 Oct 2011 15:00:44 +0000 (17:00 +0200)]
Adds data structure to track transfers grouped by peers in FileteaNode

This is a convenient way of grouping transfers to allow status reporting ot all
transfers of a peer at once.

7 years agoAssociates a target peer to a transfer
Eduardo Lima Mitev [Thu, 20 Oct 2011 23:31:32 +0000 (01:31 +0200)]
Associates a target peer to a transfer

by looking at peer id in url query of the download request. This will allow
to report transfer status to the target peer (leecher) as well.

7 years agoFixes code indentation in FileTransfer header file
Eduardo Lima Mitev [Thu, 20 Oct 2011 23:23:02 +0000 (01:23 +0200)]
Fixes code indentation in FileTransfer header file

7 years agoAdds new public method cancel() to FileTransfer
Eduardo Lima Mitev [Thu, 20 Oct 2011 23:16:52 +0000 (01:16 +0200)]
Adds new public method cancel() to FileTransfer

7 years agoMakes the async result call in an idle when a transfer finishes
Eduardo Lima Mitev [Thu, 20 Oct 2011 23:10:28 +0000 (01:10 +0200)]
Makes the async result call in an idle when a transfer finishes

instead of inmediately. This will prevent any already queued status report event
to be triggered before the transfer notifies its termination.

7 years agoAdds new public method set_target_peer() to FileTransfer
Eduardo Lima Mitev [Thu, 20 Oct 2011 23:09:12 +0000 (01:09 +0200)]
Adds new public method set_target_peer() to FileTransfer

7 years agoAdds new public method get_status() to FileTransfer
Eduardo Lima Mitev [Thu, 20 Oct 2011 23:07:16 +0000 (01:07 +0200)]
Adds new public method get_status() to FileTransfer

This will output the status code, transferred size and bandwidth of the
transfer.

7 years agoRemoves obsolete status reporting logic from FileTransfer
Eduardo Lima Mitev [Thu, 20 Oct 2011 23:02:49 +0000 (01:02 +0200)]
Removes obsolete status reporting logic from FileTransfer

It will be consistently replaced in FileteaNode to ensure that all reports for
a peer are sent at once avoiding transport waste.

7 years agoAdds tracking of bandwidth usage in FileTransfer
Eduardo Lima Mitev [Thu, 20 Oct 2011 23:01:24 +0000 (01:01 +0200)]
Adds tracking of bandwidth usage in FileTransfer

7 years agoReorganizes code a bit in transfer completed logic of FileTransfer
Eduardo Lima Mitev [Thu, 20 Oct 2011 22:55:36 +0000 (00:55 +0200)]
Reorganizes code a bit in transfer completed logic of FileTransfer

7 years agoAdds FileTransferStatus enum to FileTransfer and tracks transfer state
Eduardo Lima Mitev [Thu, 20 Oct 2011 22:53:03 +0000 (00:53 +0200)]
Adds FileTransferStatus enum to FileTransfer and tracks transfer state

7 years agoRenames 'transfers' member of FileteaNode to 'transfers_by_id'
Eduardo Lima Mitev [Wed, 19 Oct 2011 22:38:13 +0000 (00:38 +0200)]
Renames 'transfers' member of FileteaNode to 'transfers_by_id'

for consistency.

7 years agohtml: Adds new function humanizeTime to Utils
Eduardo Lima Mitev [Wed, 19 Oct 2011 22:03:51 +0000 (00:03 +0200)]
html: Adds new function humanizeTime to Utils

This will output a formatted string with the days, hours, minutes and seconds
represented by the 'seconds' input argument.

7 years agohtml: Improves code in humanizeTime() function of Utils
Eduardo Lima Mitev [Wed, 19 Oct 2011 22:03:10 +0000 (00:03 +0200)]
html: Improves code in humanizeTime() function of Utils

7 years agohtml: Makes the remove icon be background image instead of a real img
Eduardo Lima Mitev [Wed, 19 Oct 2011 21:55:19 +0000 (23:55 +0200)]
html: Makes the remove icon be background image instead of a real img

in SharedFilesView items.

7 years agohtml: Reorganizes code a bit in _init() of SharedFilesView
Eduardo Lima Mitev [Wed, 19 Oct 2011 21:53:05 +0000 (23:53 +0200)]
html: Reorganizes code a bit in _init() of SharedFilesView

7 years agoAdds TransferManager into fileTea.js and removes transfers.js
Eduardo Lima Mitev [Sun, 9 Oct 2011 00:12:04 +0000 (02:12 +0200)]
Adds TransferManager into fileTea.js and removes transfers.js

7 years agoTakes ContentManager out of FileTea JS to remove conflation
Eduardo Lima Mitev [Sat, 8 Oct 2011 23:25:57 +0000 (01:25 +0200)]
Takes ContentManager out of FileTea JS to remove conflation

7 years agoFixes _getRpc() of FileTea JS object to work well with concurrent calls
Eduardo Lima Mitev [Sat, 8 Oct 2011 22:56:39 +0000 (00:56 +0200)]
Fixes _getRpc() of FileTea JS object to work well with concurrent calls

7 years agoEscapes file name before registering it to prevent encoding issues
Eduardo Lima Mitev [Sat, 8 Oct 2011 22:41:35 +0000 (00:41 +0200)]
Escapes file name before registering it to prevent encoding issues

7 years agoAdds check for null id when removing file source in FileteaNode
Eduardo Lima Mitev [Sat, 8 Oct 2011 21:27:05 +0000 (23:27 +0200)]
Adds check for null id when removing file source in FileteaNode

7 years agoChanges default user and group to 'nobody' and 'nogroup'
Alberto Garcia [Thu, 20 Oct 2011 20:07:48 +0000 (23:07 +0300)]
Changes default user and group to 'nobody' and 'nogroup'

7 years agoReplaces deprecated g_atomic_int_exchange_and_add() by g_atomic_int_add()
Eduardo Lima Mitev [Thu, 20 Oct 2011 19:40:17 +0000 (21:40 +0200)]
Replaces deprecated g_atomic_int_exchange_and_add() by g_atomic_int_add()

in file_transfer_ref() and file_source_ref().

7 years agoFixes error in FileteaNode when 'http-log-file' conf is left blank
Eduardo Lima Mitev [Thu, 20 Oct 2011 19:37:31 +0000 (21:37 +0200)]
Fixes error in FileteaNode when 'http-log-file' conf is left blank

It was still enabling the HTTP logs when the HTTP log filename was an empty
string.

7 years agoAdds missing files for 'make dist'
Alberto García [Fri, 14 Oct 2011 16:50:44 +0000 (18:50 +0200)]
Adds missing files for 'make dist'

7 years agoGenerates a ChangeLog file from git when running make dist
Alberto García [Fri, 14 Oct 2011 16:49:23 +0000 (18:49 +0200)]
Generates a ChangeLog file from git when running make dist

7 years agoAdds support for running autogen.sh with NOCONFIGURE
Alberto García [Fri, 14 Oct 2011 16:48:24 +0000 (18:48 +0200)]
Adds support for running autogen.sh with NOCONFIGURE

7 years agoAdds missing files for 'make dist'
Alberto García [Fri, 14 Oct 2011 16:47:18 +0000 (18:47 +0200)]
Adds missing files for 'make dist'

7 years agobuild: Updates for 0.1.7 development cycle
Eduardo Lima Mitev [Fri, 23 Sep 2011 18:27:16 +0000 (20:27 +0200)]
build: Updates for 0.1.7 development cycle

7 years agorelease: 0.1.6 0.1.6
Eduardo Lima Mitev [Fri, 23 Sep 2011 18:25:17 +0000 (20:25 +0200)]
release: 0.1.6

7 years agobuild: Raises required version of EventDance to 0.1.12
Eduardo Lima Mitev [Fri, 23 Sep 2011 18:11:53 +0000 (20:11 +0200)]
build: Raises required version of EventDance to 0.1.12

7 years agoImplements HTTP access logging using Apache-like format
Eduardo Lima Mitev [Fri, 23 Sep 2011 18:04:17 +0000 (20:04 +0200)]
Implements HTTP access logging using Apache-like format

A 'log' group with 'http-log-file' option has been added to configuration file.

7 years agoFixes erroneous unref of node's TLS credentials after loading certificate
Eduardo Lima Mitev [Thu, 22 Sep 2011 14:40:13 +0000 (16:40 +0200)]
Fixes erroneous unref of node's TLS credentials after loading certificate

7 years agoAdds check for pending ops before reading from source in FileteaTransfer
Eduardo Lima Mitev [Tue, 20 Sep 2011 21:03:19 +0000 (23:03 +0200)]
Adds check for pending ops before reading from source in FileteaTransfer

7 years agoAdds missing sample configuration option for 'dh-depth'
Eduardo Lima Mitev [Mon, 19 Sep 2011 23:46:40 +0000 (01:46 +0200)]
Adds missing sample configuration option for 'dh-depth'

7 years agobuild: Updates for 0.1.5 development cycle
Eduardo Lima Mitev [Mon, 19 Sep 2011 23:24:08 +0000 (01:24 +0200)]
build: Updates for 0.1.5 development cycle

7 years agorelease: 0.1.4
Eduardo Lima Mitev [Mon, 19 Sep 2011 23:22:07 +0000 (01:22 +0200)]
release: 0.1.4

7 years agobuild: Raises required version of EventDance to 0.1.11
Eduardo Lima Mitev [Mon, 19 Sep 2011 23:20:36 +0000 (01:20 +0200)]
build: Raises required version of EventDance to 0.1.11

7 years agoAdds TLS support with its corresponding configuration options
Eduardo Lima Mitev [Mon, 19 Sep 2011 23:17:17 +0000 (01:17 +0200)]
Adds TLS support with its corresponding configuration options

7 years agohtml: Adds function to humanize file sizes included in a utils JS library
Eduardo Lima Mitev [Mon, 12 Sep 2011 10:59:23 +0000 (12:59 +0200)]
html: Adds function to humanize file sizes included in a utils JS library

7 years agohtml: Reuduces download icon to 100x100 pixels
Eduardo Lima Mitev [Sun, 11 Sep 2011 17:38:58 +0000 (19:38 +0200)]
html: Reuduces download icon to 100x100 pixels

7 years agohtml: Adds download-view page
Eduardo Lima Mitev [Sun, 11 Sep 2011 17:15:37 +0000 (19:15 +0200)]
html: Adds download-view page

7 years agohtml: Minor fixes in css for the main content section
Eduardo Lima Mitev [Sun, 11 Sep 2011 17:03:30 +0000 (19:03 +0200)]
html: Minor fixes in css for the main content section

7 years agoAdds user confirmation page before downloading a file
Eduardo Lima Mitev [Sun, 11 Sep 2011 17:02:11 +0000 (19:02 +0200)]
Adds user confirmation page before downloading a file

This feature required several changes in the way content was managed.

7 years agohtml: Adds a 'not found' page to repository
Eduardo Lima Mitev [Sun, 11 Sep 2011 16:29:22 +0000 (18:29 +0200)]
html: Adds a 'not found' page to repository

to be shown to user when requesting a file that is no longer shared.

7 years agoImproves method-call error reporting in FileteaNode
Eduardo Lima Mitev [Sun, 11 Sep 2011 08:56:22 +0000 (10:56 +0200)]
Improves method-call error reporting in FileteaNode

7 years agohtml: Adds content 'loading' animated gif
Eduardo Lima Mitev [Fri, 9 Sep 2011 14:51:37 +0000 (16:51 +0200)]
html: Adds content 'loading' animated gif

Forgot to add it in previous commit :).

7 years agohtml: Adds inmediate feedback about content loading
Eduardo Lima Mitev [Fri, 9 Sep 2011 14:19:07 +0000 (16:19 +0200)]
html: Adds inmediate feedback about content loading

7 years agoResets http port to default value (8080) in sample config file
Eduardo Lima Mitev [Sun, 4 Sep 2011 23:16:47 +0000 (01:16 +0200)]
Resets http port to default value (8080) in sample config file

7 years agohtml: Adds a warning dialog with confirmation before navigating away
Eduardo Lima Mitev [Sun, 4 Sep 2011 23:06:24 +0000 (01:06 +0200)]
html: Adds a warning dialog with confirmation before navigating away

if there are shared files.

7 years agohtml: Adds new method isEmpty() to SharedFilesView widget
Eduardo Lima Mitev [Sun, 4 Sep 2011 23:00:44 +0000 (01:00 +0200)]
html: Adds new method isEmpty() to SharedFilesView widget

7 years agohtml: Encapsulates the 'sharedFilesView' instance within the Ux object
Eduardo Lima Mitev [Sun, 4 Sep 2011 22:54:40 +0000 (00:54 +0200)]
html: Encapsulates the 'sharedFilesView' instance within the Ux object

7 years agobuild: Adds 'gcrypt' to filetea LDADD libraries
Eduardo Lima Mitev [Tue, 30 Aug 2011 16:45:49 +0000 (18:45 +0200)]
build: Adds 'gcrypt' to filetea LDADD libraries

7 years agohtml: Fixes error in content box css width introduced by mistake
Eduardo Lima Mitev [Fri, 26 Aug 2011 15:22:23 +0000 (17:22 +0200)]
html: Fixes error in content box css width introduced by mistake

in previous patch.

7 years agohtml: Adds minor layout improvements in css
Eduardo Lima Mitev [Fri, 26 Aug 2011 15:05:53 +0000 (17:05 +0200)]
html: Adds minor layout improvements in css

7 years agohtml: Improves html and css code for the logo
Eduardo Lima Mitev [Fri, 26 Aug 2011 15:01:35 +0000 (17:01 +0200)]
html: Improves html and css code for the logo

7 years agohtml: Adds corner banner to index.html showing version maturity (alpha)
Eduardo Lima Mitev [Fri, 26 Aug 2011 14:57:18 +0000 (16:57 +0200)]
html: Adds corner banner to index.html showing version maturity (alpha)

7 years agohtml: Minor text update to privacy policy statement
Eduardo Lima Mitev [Fri, 26 Aug 2011 08:33:16 +0000 (10:33 +0200)]
html: Minor text update to privacy policy statement

7 years agohtml: Updates FileTea version notice in footer of main HTML page
Eduardo Lima Mitev [Wed, 24 Aug 2011 15:54:38 +0000 (17:54 +0200)]
html: Updates FileTea version notice in footer of main HTML page

7 years agobuild: Updates for 0.1.3 development cycle
Eduardo Lima Mitev [Wed, 24 Aug 2011 15:51:22 +0000 (17:51 +0200)]
build: Updates for 0.1.3 development cycle

7 years agobuild: Cleans up improves code in configure.ac 0.1.2
Eduardo Lima Mitev [Wed, 24 Aug 2011 15:46:21 +0000 (17:46 +0200)]
build: Cleans up improves code in configure.ac