Evan Prodromou [Tue, 5 Jan 2010 08:49:09 +0000 (22:49 -1000)]
free some memory in createsim.php
Evan Prodromou [Tue, 5 Jan 2010 01:14:54 +0000 (15:14 -1000)]
Merge branch 'master' into 0.9.x
Conflicts:
actions/publictagcloud.php
classes/Memcached_DataObject.php
Evan Prodromou [Tue, 5 Jan 2010 01:11:04 +0000 (15:11 -1000)]
Merge branch 'master' of git@gitorious.org:statusnet/mainline
Evan Prodromou [Tue, 5 Jan 2010 01:10:43 +0000 (15:10 -1000)]
Merge branch 'batchlocation'
Brion Vibber [Mon, 4 Jan 2010 22:38:56 +0000 (14:38 -0800)]
Exclude process-specific link & result cache references from serialized Memcached_Data_Object instances.
Should fix seemingly-random bugs due to destructor free()ing local resources by mistake.
cherry-pick from 0.9.x
Brion Vibber [Mon, 4 Jan 2010 22:37:39 +0000 (14:37 -0800)]
Revert "Take Memcached_DataObject destructor back out to check whether it might be causing some under-the-hood problems."
This reverts commit
89cca01259d71f3da961ef64def3647f86a01567.
Evan Prodromou [Mon, 4 Jan 2010 21:59:56 +0000 (11:59 -1000)]
Merge branch 'locshunt2' into 0.9.x
Evan Prodromou [Mon, 4 Jan 2010 18:53:28 +0000 (08:53 -1000)]
user_id is a non-autoincrement pkey for user_location_prefs
Brion Vibber [Mon, 4 Jan 2010 21:01:17 +0000 (13:01 -0800)]
Ticket 2141: bugs with weighted popularity lists across year boundary.
Consolidated several separate implementations of the same weighting algorithm into common_sql_weight() and fixed some bugs...
For MySQL, now using timestampdiff() instead of subtraction for the comparison, so we get sane results when the year doesn't match, and utc_timestamp() rather than now() so we don't get negative ages for recent items with local server timezone.
Unknown whether the same problems affect PostgreSQL, but note that it lacks the timestampdiff() SQL function.
Evan Prodromou [Mon, 4 Jan 2010 20:55:21 +0000 (10:55 -1000)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Mon, 4 Jan 2010 20:12:19 +0000 (10:12 -1000)]
XCachePlugin returns false value for cache miss
Evan Prodromou [Mon, 4 Jan 2010 20:03:57 +0000 (10:03 -1000)]
cached id streams can be empty, compare against false
Evan Prodromou [Mon, 4 Jan 2010 20:02:59 +0000 (10:02 -1000)]
carefully compare cached settings against false for Config
Brion Vibber [Mon, 4 Jan 2010 20:02:45 +0000 (12:02 -0800)]
Merge branch '2141' into 0.9.x
Evan Prodromou [Mon, 4 Jan 2010 20:00:17 +0000 (10:00 -1000)]
Memcached_DataObject stores empty values in the cache
There's great value in knowing that something doesn't exist. We
now cache this information, and carefully compare the results from
cache as $results !== false instead of !empty($results), since some
empty values (null, 0, empty array, empty string) are stored in the
cache.
Caching staticGet() and pkeyGet() now store DB misses in the cache,
and cachedQuery() checks for empty results from the cache.
Evan Prodromou [Mon, 4 Jan 2010 19:59:47 +0000 (09:59 -1000)]
default value for cache::get() changed from null to false
Evan Prodromou [Mon, 4 Jan 2010 19:57:48 +0000 (09:57 -1000)]
Differentiate between empty values and cache misses in CacheLogPlugin
Brion Vibber [Mon, 4 Jan 2010 19:55:27 +0000 (11:55 -0800)]
Ticket 2141: bugs with weighted popularity lists across year boundary.
Consolidated several separate implementations of the same weighting algorithm into common_sql_weight() and fixed some bugs...
For MySQL, now using timestampdiff() instead of subtraction for the comparison, so we get sane results when the year doesn't match, and utc_timestamp() rather than now() so we don't get negative ages for recent items with local server timezone.
Unknown whether the same problems affect PostgreSQL, but note that it lacks the timestampdiff() SQL function.
Craig Andrews [Mon, 4 Jan 2010 19:43:05 +0000 (14:43 -0500)]
Add 'takeOverLogin' parameter for a real SSO feel
Evan Prodromou [Mon, 4 Jan 2010 19:09:59 +0000 (09:09 -1000)]
make compression threshold and min savings config attrs for MemcachePlugin
Evan Prodromou [Mon, 4 Jan 2010 19:01:23 +0000 (09:01 -1000)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Mon, 4 Jan 2010 18:59:19 +0000 (08:59 -1000)]
Stop caching unfindable keys
There were some problems with the automated cache/uncache system
for data objects that made us cache unfindable keys (with null
attributes and sometimes null names). Fixed those problems and
refactored the encache() and decache() methods so they use a helper
to find the cache keys to use.
Evan Prodromou [Mon, 4 Jan 2010 18:53:28 +0000 (08:53 -1000)]
user_id is a non-autoincrement pkey for user_location_prefs
Brion Vibber [Mon, 4 Jan 2010 18:43:45 +0000 (10:43 -0800)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Mon, 4 Jan 2010 18:41:52 +0000 (10:41 -0800)]
Drop the overly-prominent link to checklibs display; it's unnecessary and just confuses people.
The ability's still there to aid in debugging, but it won't be tempting people to click on it.
Brion Vibber [Mon, 4 Jan 2010 18:39:11 +0000 (10:39 -0800)]
Don't spew notices when building tag cloud if there is no popularity sum to divide by.
Craig Andrews [Mon, 4 Jan 2010 18:33:52 +0000 (13:33 -0500)]
Allow an authentication plugin with the same provider_name other than the one that actually checked the password to autoregister a user
Allows for SSO-type plugins that don't have any information about the user other than their username to do autoregistration
Brion Vibber [Mon, 4 Jan 2010 18:30:19 +0000 (10:30 -0800)]
Fix for auto_increment parameter in auto-created tables via checkschema.
Update FeedSub plugin for non-Plugin_DataObject setup and working checkschema updates.
Craig Andrews [Mon, 4 Jan 2010 17:49:25 +0000 (12:49 -0500)]
Enable memcache automatic compression, starting at 20k and only if compression gain is greater than 20%.
Allows storage of larger objects (over 1mb in size uncompressed), such as huge LDAP schemas.
Should also improve cache efficiency (allows more stuff to be stored in same memory) and reduce network latency (less data transfer)
(redo commit
1e9c03e1993b5d2978ac4c5213a8a64e0150b4a2 which was apparently lost during pluginization)
Sarven Capadisli [Mon, 4 Jan 2010 13:44:32 +0000 (13:44 +0000)]
Ran NoticeLocationAttach() through jslint
Sarven Capadisli [Mon, 4 Jan 2010 13:30:07 +0000 (13:30 +0000)]
Removed unneeded line-height
Sarven Capadisli [Mon, 4 Jan 2010 13:28:42 +0000 (13:28 +0000)]
Removed comma
Sarven Capadisli [Mon, 4 Jan 2010 12:44:48 +0000 (12:44 +0000)]
Relocated @title removal
Sarven Capadisli [Mon, 4 Jan 2010 12:43:56 +0000 (12:43 +0000)]
Updated element id for notice_data-geo
Sarven Capadisli [Mon, 4 Jan 2010 10:07:32 +0000 (10:07 +0000)]
Refactored geo location removal to removeNoticeDataGeo()
Sarven Capadisli [Mon, 4 Jan 2010 09:52:35 +0000 (09:52 +0000)]
Added errorCallback() to geoCurrentPosition() i.e., if user doesn't
grant permission, removes the Geo processing and (if any) existing geo
location data from notice form.
Sarven Capadisli [Mon, 4 Jan 2010 09:29:41 +0000 (09:29 +0000)]
Trim whitespace from label's textContent
Sarven Capadisli [Mon, 4 Jan 2010 09:14:14 +0000 (09:14 +0000)]
Using object value instead of inline string
Sarven Capadisli [Mon, 4 Jan 2010 09:10:21 +0000 (09:10 +0000)]
Open geoname URL in a new window
Evan Prodromou [Sun, 3 Jan 2010 21:28:15 +0000 (11:28 -1000)]
Remove logging from default cache
Evan Prodromou [Sun, 3 Jan 2010 21:28:00 +0000 (11:28 -1000)]
Debug utility to log cache access
Evan Prodromou [Sun, 3 Jan 2010 21:27:36 +0000 (11:27 -1000)]
don't try to set an expiry for XCache
Evan Prodromou [Sun, 3 Jan 2010 21:27:09 +0000 (11:27 -1000)]
add keyTypes() for User_greeting_count
Evan Prodromou [Sun, 3 Jan 2010 21:24:05 +0000 (11:24 -1000)]
Revert "use keys() instead of keyTypes() so plugin data object work"
This reverts commit
ec380887f71a1eadc75bad0289f9a0dbee7f2913.
Evan Prodromou [Sun, 3 Jan 2010 21:18:26 +0000 (11:18 -1000)]
update SamplePlugin.php also
Evan Prodromou [Sun, 3 Jan 2010 21:02:36 +0000 (11:02 -1000)]
Expand SamplePlugin to show other best practices
I modified the SamplePlugin to show how to do some real processing,
adding a data class and an action class and modifying the main
menu to link to the new action. I added documentation comments to
all the methods and made sure the modules were PHPCS-clean.
Evan Prodromou [Sun, 3 Jan 2010 20:52:24 +0000 (10:52 -1000)]
use keys() instead of keyTypes() so plugin data object work
Evan Prodromou [Sun, 3 Jan 2010 16:38:55 +0000 (06:38 -1000)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Sun, 3 Jan 2010 16:38:15 +0000 (06:38 -1000)]
First version of cache plugin for XCache variable cache
Siebrand Mazeland [Sun, 3 Jan 2010 10:48:21 +0000 (11:48 +0100)]
Localisation updates for !StatusNet from !translatewiki.net !sntrans
Evan Prodromou [Sun, 3 Jan 2010 08:46:50 +0000 (22:46 -1000)]
add LGPL
Evan Prodromou [Sun, 3 Jan 2010 07:35:46 +0000 (21:35 -1000)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Sun, 3 Jan 2010 07:34:15 +0000 (21:34 -1000)]
Add a caching plugin for APC variable cache
Evan Prodromou [Sun, 3 Jan 2010 07:16:59 +0000 (21:16 -1000)]
First version of Memcache plugin
Evan Prodromou [Sun, 3 Jan 2010 07:00:42 +0000 (21:00 -1000)]
Make cache.php PHPCS-clean
Evan Prodromou [Sun, 3 Jan 2010 06:37:30 +0000 (20:37 -1000)]
invert if for cache handling
Evan Prodromou [Sun, 3 Jan 2010 06:32:56 +0000 (20:32 -1000)]
fix default array implementation checks
Evan Prodromou [Sun, 3 Jan 2010 06:26:33 +0000 (20:26 -1000)]
Make caching a plugin system
Evan Prodromou [Sun, 3 Jan 2010 05:47:56 +0000 (19:47 -1000)]
Merge branch '0.9.x' into cacheplugin
Evan Prodromou [Sun, 3 Jan 2010 05:47:34 +0000 (19:47 -1000)]
Merge branch 'master' into 0.9.x
Conflicts:
classes/Memcached_DataObject.php
Evan Prodromou [Sun, 3 Jan 2010 02:28:46 +0000 (16:28 -1000)]
return false from Memcached_DataObject::staticGet() on not found, like DB_DataObject
Evan Prodromou [Sun, 3 Jan 2010 02:27:04 +0000 (16:27 -1000)]
fixup memcache functions
Evan Prodromou [Sun, 3 Jan 2010 02:21:19 +0000 (16:21 -1000)]
change harmless check of to check of in Memcached_DataObject
Sarven Capadisli [Sun, 3 Jan 2010 02:07:55 +0000 (02:07 +0000)]
Fix end tag
Sarven Capadisli [Sun, 3 Jan 2010 02:00:12 +0000 (02:00 +0000)]
Button should return false
Sarven Capadisli [Sun, 3 Jan 2010 01:48:41 +0000 (01:48 +0000)]
Moved location container's buttons inside enabled state
Sarven Capadisli [Sun, 3 Jan 2010 01:17:51 +0000 (01:17 +0000)]
Reset location icon when container button.close is clicked
Sarven Capadisli [Sun, 3 Jan 2010 01:13:42 +0000 (01:13 +0000)]
Updated pin icon
Sarven Capadisli [Sun, 3 Jan 2010 01:02:32 +0000 (01:02 +0000)]
Added minimize functionality to selected location container
Sarven Capadisli [Sun, 3 Jan 2010 00:33:41 +0000 (00:33 +0000)]
Changed location share representation to be more like the file
attachment. Init UI. Probably a little buggy.
Evan Prodromou [Sat, 2 Jan 2010 18:36:47 +0000 (08:36 -1000)]
incorrectly used empty() instead of isset() for a variable that could be 0
Sarven Capadisli [Fri, 1 Jan 2010 22:49:42 +0000 (22:49 +0000)]
Don't need margin-bottom for share location option
Evan Prodromou [Fri, 1 Jan 2010 21:30:44 +0000 (11:30 -1000)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Fri, 1 Jan 2010 21:27:28 +0000 (11:27 -1000)]
Merge branch 'master' of git@gitorious.org:statusnet/mainline
Evan Prodromou [Fri, 1 Jan 2010 21:27:13 +0000 (11:27 -1000)]
Revert "add cleanup method to cleanup a single row"
This reverts commit
b0527801d9c2b84408bbfdf82bbdc5b778f72cfc.
Evan Prodromou [Fri, 1 Jan 2010 21:26:50 +0000 (11:26 -1000)]
Merge branch 'master' into batchlocation
Evan Prodromou [Fri, 1 Jan 2010 21:20:25 +0000 (11:20 -1000)]
Merge branch 'master' into 0.9.x
Conflicts:
classes/Memcached_DataObject.php
Sarven Capadisli [Fri, 1 Jan 2010 21:12:49 +0000 (21:12 +0000)]
Included geotag icon file separately
Sarven Capadisli [Fri, 1 Jan 2010 21:12:22 +0000 (21:12 +0000)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Sarven Capadisli [Fri, 1 Jan 2010 21:11:32 +0000 (21:11 +0000)]
Added geotag icon from http://www.geotagicons.com/
Evan Prodromou [Fri, 1 Jan 2010 21:02:56 +0000 (11:02 -1000)]
add cleanup method to cleanup a single row
Evan Prodromou [Fri, 1 Jan 2010 20:57:22 +0000 (10:57 -1000)]
stop using DB_DataObject's staticGet() which caches
Siebrand Mazeland [Fri, 1 Jan 2010 18:20:12 +0000 (19:20 +0100)]
Localisation updates for !StatusNet from !translatewiki.net !sntrans
Zach Copley [Thu, 31 Dec 2009 22:53:46 +0000 (22:53 +0000)]
Removed crazy redundant broadcasting of notices by the FB app
Zach Copley [Thu, 31 Dec 2009 22:32:10 +0000 (22:32 +0000)]
- Use a stripped down new notice form for FB app because FB canvas apps
can't support image upload via multipart/form-data (and location sharing
is iffy).
- Deal with new error code 100 from Facebook, which seem to be for
inactive accounts.
Zach Copley [Wed, 30 Dec 2009 23:09:12 +0000 (23:09 +0000)]
Change inline CSS stylesheet to be on a single line so it doens't blow out syntax highlighting in my editor
Zach Copley [Wed, 30 Dec 2009 20:33:10 +0000 (20:33 +0000)]
Update to external Facebook libs
Evan Prodromou [Thu, 31 Dec 2009 22:38:58 +0000 (12:38 -1000)]
Script to update the location ID for users
Since we added locations to the database, some users may have
location strings in their profiles but not structured locations. This
script updates the locations for single users or for all users.
Evan Prodromou [Thu, 31 Dec 2009 19:14:55 +0000 (09:14 -1000)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Sarven Capadisli [Thu, 31 Dec 2009 18:41:10 +0000 (18:41 +0000)]
Initial UI for geo location share option in notice form
Sarven Capadisli [Thu, 31 Dec 2009 18:27:05 +0000 (18:27 +0000)]
Moving notice_data-location_wrap after notice form fieldset
Sarven Capadisli [Thu, 31 Dec 2009 18:08:21 +0000 (18:08 +0000)]
Moved JavaScript dependant stuff out of noticeform.
Sarven Capadisli [Thu, 31 Dec 2009 17:02:02 +0000 (17:02 +0000)]
jQuery select SN.C.S.NoticeLocationName once.
Sarven Capadisli [Thu, 31 Dec 2009 16:44:24 +0000 (16:44 +0000)]
Removed style information out of HTML
Sarven Capadisli [Thu, 31 Dec 2009 16:37:46 +0000 (16:37 +0000)]
Using semicolon to seperate lat and long; RFC2426
Sarven Capadisli [Thu, 31 Dec 2009 16:34:07 +0000 (16:34 +0000)]
NoticeLocationAttach() slightly more readable
Sarven Capadisli [Thu, 31 Dec 2009 16:25:51 +0000 (16:25 +0000)]
Compare by type
Sarven Capadisli [Thu, 31 Dec 2009 16:19:49 +0000 (16:19 +0000)]
If UA doens't support navigation.geolocation or have JavaScript
enabled, the user should still be able to enable/disable their share
location setting per notice.
Sarven Capadisli [Thu, 31 Dec 2009 16:15:24 +0000 (16:15 +0000)]
length is faster than size()
Sarven Capadisli [Thu, 31 Dec 2009 15:46:43 +0000 (15:46 +0000)]
Use the location setting profile as secondary