Re: [E-devel] E SVN: barbieri IN trunk/ecore: . src/lib/ecore_evas

2011-05-30 Thread Thomas Gstädtner
On Fri, May 27, 2011 at 21:31, Enlightenment SVN
 wrote:
> Log:
> Ecore_Evas: introduce ecore_evas_screen_geometry_get()
>
>  This common interface allows engines to provide whole screen
>  information to users.
>
>  Right now just X is implemented and it queries the size of the default
>  screen. I hope this is fine.
>
>
>
> Author:       barbieri
> Date:         2011-05-27 12:31:11 -0700 (Fri, 27 May 2011)
> New Revision: 59761
> Trac:         http://trac.enlightenment.org/e/changeset/59761
>
> Modified:
>  trunk/ecore/ChangeLog trunk/ecore/src/lib/ecore_evas/Ecore_Evas.h 
> trunk/ecore/src/lib/ecore_evas/ecore_evas.c 
> trunk/ecore/src/lib/ecore_evas/ecore_evas_buffer.c 
> trunk/ecore/src/lib/ecore_evas/ecore_evas_directfb.c 
> trunk/ecore/src/lib/ecore_evas/ecore_evas_fb.c 
> trunk/ecore/src/lib/ecore_evas/ecore_evas_private.h 
> trunk/ecore/src/lib/ecore_evas/ecore_evas_sdl.c 
> trunk/ecore/src/lib/ecore_evas/ecore_evas_win32.c 
> trunk/ecore/src/lib/ecore_evas/ecore_evas_wince.c 
> trunk/ecore/src/lib/ecore_evas/ecore_evas_x.c
>
> Modified: trunk/ecore/ChangeLog
> ===
> --- trunk/ecore/ChangeLog       2011-05-27 19:17:04 UTC (rev 59760)
> +++ trunk/ecore/ChangeLog       2011-05-27 19:31:11 UTC (rev 59761)
> @@ -198,3 +198,7 @@
>         (_ecore_main_loop_iterate_internal). This fixes fd handler pending
>         issue when ecore_idler callback adds ecore_job/event.
>         * Ecore ecore_main.c: Refactoring _ecore_main_loop_iterate_internal().
> +
> +2011-05-27 Gustavo Sverzut Barbieri (k-s)
> +
> +       * Ecore_Evas: introduce ecore_evas_screen_geometry_get()
>
> Modified: trunk/ecore/src/lib/ecore_evas/Ecore_Evas.h
> ===
> --- trunk/ecore/src/lib/ecore_evas/Ecore_Evas.h 2011-05-27 19:17:04 UTC (rev 
> 59760)
> +++ trunk/ecore/src/lib/ecore_evas/Ecore_Evas.h 2011-05-27 19:31:11 UTC (rev 
> 59761)
> @@ -350,6 +350,8 @@
>
>  EAPI Ecore_Window ecore_evas_window_get(const Ecore_Evas *ee);
>
> +EAPI void        ecore_evas_screen_geometry_get(const Ecore_Evas *ee, int 
> *x, int *y, int *w, int *h);
> +
>  EAPI Eina_Bool    ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object 
> *obj, Ecore_Evas_Object_Associate_Flags flags);
>  EAPI Eina_Bool    ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object 
> *obj);
>  EAPI Evas_Object *ecore_evas_object_associate_get(const Ecore_Evas *ee);
>
> Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas.c
> ===
> --- trunk/ecore/src/lib/ecore_evas/ecore_evas.c 2011-05-27 19:17:04 UTC (rev 
> 59760)
> +++ trunk/ecore/src/lib/ecore_evas/ecore_evas.c 2011-05-27 19:31:11 UTC (rev 
> 59761)
> @@ -2675,6 +2675,35 @@
>    return ee->prop.window;
>  }
>
> +/**
> + * Get whole screen geometry associated with this Ecore_Evas.
> + *
> + * @param ee The Ecore_Evas whose window's to query container screen 
> geometry.
> + * @param x where to return the horizontal offset value. May be NULL.
> + * @param y where to return the vertical offset value. May be NULL.
> + * @param w where to return the width value. May be NULL.
> + * @param h where to return the height value. May be NULL.
> + *
> + * @since 1.1
> + */
> +EAPI void
> +ecore_evas_screen_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w, 
> int *h)
> +{
> +   if (x) *x = 0;
> +   if (y) *y = 0;
> +   if (w) *w = 0;
> +   if (h) *h = 0;
> +   if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
> +     {
> +        ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
> +                         "ecore_evas_screen_geometry_get");
> +        return;
> +     }
> +
> +   IFC(ee, fn_screen_geometry_get) (ee, x, y, w, h);
> +   IFE;
> +}
> +
>  /* fps debug calls - for debugging how much time your app actually spends */
>  /* rendering graphics... :) */
>
>
> Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_buffer.c
> ===
> --- trunk/ecore/src/lib/ecore_evas/ecore_evas_buffer.c  2011-05-27 19:17:04 
> UTC (rev 59760)
> +++ trunk/ecore/src/lib/ecore_evas/ecore_evas_buffer.c  2011-05-27 19:31:11 
> UTC (rev 59761)
> @@ -491,7 +491,8 @@
>      NULL,
>      NULL, //transparent
>
> -     NULL // render
> +     NULL, // render
> +     NULL  // screen_geometry_get
>  };
>  #endif
>
>
> Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_directfb.c
> ===
> --- trunk/ecore/src/lib/ecore_evas/ecore_evas_directfb.c        2011-05-27 
> 19:17:04 UTC (rev 59760)
> +++ trunk/ecore/src/lib/ecore_evas/ecore_evas_directfb.c        2011-05-27 
> 19:31:11 UTC (rev 59761)
> @@ -486,7 +486,8 @@
>      NULL,                              /* alpha */
>      NULL, //transparent
>
> -     NULL // render
> +     NULL, // render
> +     NULL  // screen_geometry_get
>  };
>  #endif
>
>
> Modified: trunk/ecore/src/lib/ecore_evas/ecore_evas_fb.c
> =

Re: [E-devel] [BUG REPORT] elm_diskselector : Bad text cutting with non-ASCII characters

2011-05-30 Thread The Rasterman
On Wed, 18 May 2011 09:05:50 +0800 Brian Wang  said:

fixed in svn! i added test cases for chopping up chinese, japanese, korean,
arabic and hebrew as well as basic ascii english and german (utf8 umlauts and
special chars).

> Hello all,
> 
> elm_diskselector seems to support only ASCII characters when cutting
> the text strings at the sides.
> _check_string/_check_letter() may be examined.
> 
> Does evas has some handy exported functions to cut the text at proper
> UTF-8 character boundaries?
> 
> Thanks in advance.
> 
> 
> brian
> 
> -- 
> brian
> --
> 
> Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
> http://cool-idea.com.tw/
> 
> iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe
> 
> --
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its 
> next-generation tools to help Windows* and Linux* C/C++ and Fortran 
> developers boost performance applications - including clusters. 
> http://p.sf.net/sfu/intel-dev2devmay
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: cedric IN trunk/ecore: . src/lib/ecore

2011-05-30 Thread Vincent Torri


On Mon, 30 May 2011, Enlightenment SVN wrote:

> Log:
> ecore: add ecore_pipe_freeze/thraw.

don't you mean 'thaw' instead of 'thraw' ?

Also, the doc must mention 'since 1.1'

Vincent

>
>
> Author:   cedric
> Date: 2011-05-30 09:52:19 -0700 (Mon, 30 May 2011)
> New Revision: 59823
> Trac: http://trac.enlightenment.org/e/changeset/59823
>
> Modified:
>  trunk/ecore/ChangeLog trunk/ecore/src/lib/ecore/Ecore.h 
> trunk/ecore/src/lib/ecore/ecore_pipe.c
>
> Modified: trunk/ecore/ChangeLog
> ===
> --- trunk/ecore/ChangeLog 2011-05-30 16:45:08 UTC (rev 59822)
> +++ trunk/ecore/ChangeLog 2011-05-30 16:52:19 UTC (rev 59823)
> @@ -192,16 +192,21 @@
> * Fix Ecore_X shadow tree search handling to respect shape and
> shape input of windows.
>
> -2011-05-20 Daniel Juyung Seo (SeoZ)
> +2011-05-20  Daniel Juyung Seo (SeoZ)
>
> * Ecore ecore_main.c: Fixed ecore_main_loop
> (_ecore_main_loop_iterate_internal). This fixes fd handler pending
> issue when ecore_idler callback adds ecore_job/event.
> * Ecore ecore_main.c: Refactoring _ecore_main_loop_iterate_internal().
>
> -2011-05-27 Gustavo Sverzut Barbieri (k-s)
> +2011-05-27  Gustavo Sverzut Barbieri (k-s)
>
>   * Ecore_X: introduce ecore_x_screen_size_get()
>   * Ecore_Evas: be safer when returning Ecore_Evas* from
> ecore_evas_ecore_evas_get()
>   * Ecore_Evas: introduce ecore_evas_screen_geometry_get()
> +
> +2011-05-30  Cedric Bail
> +
> + * Add ecore_pipe_freeze/thraw to suspend and restart watching the pipe
> + inside the main loop.
>
> Modified: trunk/ecore/src/lib/ecore/Ecore.h
> ===
> --- trunk/ecore/src/lib/ecore/Ecore.h 2011-05-30 16:45:08 UTC (rev 59822)
> +++ trunk/ecore/src/lib/ecore/Ecore.h 2011-05-30 16:52:19 UTC (rev 59823)
> @@ -786,6 +786,8 @@
>EAPI Eina_Boolecore_pipe_write(Ecore_Pipe *p, const void *buffer, 
> unsigned int nbytes);
>EAPI void ecore_pipe_write_close(Ecore_Pipe *p);
>EAPI void ecore_pipe_read_close(Ecore_Pipe *p);
> +   EAPI void ecore_pipe_thraw(Ecore_Pipe *p);
> +   EAPI void ecore_pipe_freeze(Ecore_Pipe *p);
>
>   /**
>* @}
>
> Modified: trunk/ecore/src/lib/ecore/ecore_pipe.c
> ===
> --- trunk/ecore/src/lib/ecore/ecore_pipe.c2011-05-30 16:45:08 UTC (rev 
> 59822)
> +++ trunk/ecore/src/lib/ecore/ecore_pipe.c2011-05-30 16:52:19 UTC (rev 
> 59823)
> @@ -368,6 +368,52 @@
> }
>
> /**
> + * Stop monitoring if necessary the pipe for reading. See ecore_pipe_thraw()
> + * for monitoring it again.
> + *
> + * @param p The Ecore_Pipe object.
> + */
> +EAPI void
> +ecore_pipe_freeze(Ecore_Pipe *p)
> +{
> +   if (!ECORE_MAGIC_CHECK(p, ECORE_MAGIC_PIPE))
> + {
> +ECORE_MAGIC_FAIL(p, ECORE_MAGIC_PIPE, "ecore_pipe_read_close");
> +return;
> + }
> +   if (p->fd_handler)
> + {
> +ecore_main_fd_handler_del(p->fd_handler);
> +p->fd_handler = NULL;
> + }
> +}
> +
> +/**
> + * Start monitoring again the pipe for reading. See ecore_pipe_freeze() for
> + * stopping the monitoring activity. This will not work if
> + * ecore_pipe_read_close() was previously called on the same pipe.
> + *
> + * @param p The Ecore_Pipe object.
> + */
> +EAPI void
> +ecore_pipe_thraw(Ecore_Pipe *p)
> +{
> +   if (!ECORE_MAGIC_CHECK(p, ECORE_MAGIC_PIPE))
> + {
> +ECORE_MAGIC_FAIL(p, ECORE_MAGIC_PIPE, "ecore_pipe_read_close");
> +return;
> + }
> +   if (!p->fd_handler && p->fd_read != PIPE_FD_INVALID)
> + {
> +p->fd_handler = ecore_main_fd_handler_add(p->fd_read,
> +  ECORE_FD_READ,
> +  _ecore_pipe_read,
> +  p,
> +  NULL, NULL);
> + }
> +}
> +
> +/**
>  * Close the write end of an Ecore_Pipe object created with ecore_pipe_add().
>  *
>  * @param p The Ecore_Pipe object.
>
>
> --
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> ___
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable

Re: [E-devel] E SVN: cedric IN trunk/eina: . src/include

2011-05-30 Thread Vincent Torri


On Mon, 30 May 2011, Enlightenment SVN wrote:

> Log:
> eina: add eina_condition_timedwait.
>
>
> Author:   cedric
> Date: 2011-05-30 08:24:06 -0700 (Mon, 30 May 2011)
> New Revision: 59819
> Trac: http://trac.enlightenment.org/e/changeset/59819
>
> Modified:
>  trunk/eina/ChangeLog trunk/eina/src/include/eina_inline_lock_posix.x 
> trunk/eina/src/include/eina_inline_lock_void.x 
> trunk/eina/src/include/eina_inline_lock_win32.x 
> trunk/eina/src/include/eina_inline_lock_wince.x 
> trunk/eina/src/include/eina_lock.h
>
> Modified: trunk/eina/ChangeLog
> ===
> --- trunk/eina/ChangeLog  2011-05-30 15:18:53 UTC (rev 59818)
> +++ trunk/eina/ChangeLog  2011-05-30 15:24:06 UTC (rev 59819)
> @@ -93,3 +93,7 @@
> 2011-05-24  Cedric Bail
>
>   * Add eina_inlist_sorted_insert.
> +
> +2011-05-30  Cedric Bail
> +
> + * Add eina_condition_timedwait.
>
> Modified: trunk/eina/src/include/eina_inline_lock_posix.x
> ===
> --- trunk/eina/src/include/eina_inline_lock_posix.x   2011-05-30 15:18:53 UTC 
> (rev 59818)
> +++ trunk/eina/src/include/eina_inline_lock_posix.x   2011-05-30 15:24:06 UTC 
> (rev 59819)
> @@ -310,10 +310,30 @@
>assert(cond->lock != NULL);
> #endif
>
> -   return pthread_cond_wait(&(cond->condition), &(cond->lock->mutex)) == 0 ? 
> EINA_TRUE : EINA_FALSE;
> +   return pthread_cond_wait(&(cond->condition),
> +&(cond->lock->mutex)) == 0 ? EINA_TRUE : 
> EINA_FALSE;
> }
>
> static inline Eina_Bool
> +eina_condition_timedwait(Eina_Condition *cond, double t)
> +{
> +   struct timespec tv;
> +
> +#ifdef EINA_HAVE_DEBUG_THREADS
> +   assert(_eina_threads_activated);
> +   assert(cond->lock != NULL);
> +#endif
> +
> +   tv.tv_sec = t;
> +   tv.tv_nsec = (t - (double) tv.tv_sec) * 10;
> +
> +   return pthread_cond_timedwait(&(cond->condition),
> + &(cond->lock->mutex),
> + &tv) == 0 ?
> + EINA_TRUE : EINA_FALSE;
> +}
> +
> +static inline Eina_Bool
> eina_condition_broadcast(Eina_Condition *cond)
> {
> #ifdef EINA_HAVE_DEBUG_THREADS
>
> Modified: trunk/eina/src/include/eina_inline_lock_void.x
> ===
> --- trunk/eina/src/include/eina_inline_lock_void.x2011-05-30 15:18:53 UTC 
> (rev 59818)
> +++ trunk/eina/src/include/eina_inline_lock_void.x2011-05-30 15:24:06 UTC 
> (rev 59819)
> @@ -156,6 +156,12 @@
> }
>
> static inline Eina_Bool
> +eina_condition_timedwait(Eina_Condition *cond EINA_UNUSED, double val)
> +{
> +   return EINA_FALSE;
> +}
> +
> +static inline Eina_Bool
> eina_condition_broadcast(Eina_Condition *cond EINA_UNUSED)
> {
>return EINA_FALSE;
>
> Modified: trunk/eina/src/include/eina_inline_lock_win32.x
> ===
> --- trunk/eina/src/include/eina_inline_lock_win32.x   2011-05-30 15:18:53 UTC 
> (rev 59818)
> +++ trunk/eina/src/include/eina_inline_lock_win32.x   2011-05-30 15:24:06 UTC 
> (rev 59819)
> @@ -144,7 +144,7 @@
> }
>
> static inline Eina_Bool
> -eina_condition_wait(Eina_Condition *cond)
> +_eina_condition_internal_timedwait(Eina_Condition *cond, DWORD t)
> {
> #if _WIN32_WINNT >= 0x0600
>SleepConditionVariableCS(&cond->condition, cond->mutex, INFINITE);

you forgot that case

Vincent

> @@ -162,7 +162,7 @@
> * semaphore until  or 
> * are called by another thread.
> */
> -   ret = SignalObjectAndWait(cond->mutex, cond->semaphore, INFINITE, FALSE);
> +   ret = SignalObjectAndWait(cond->mutex, cond->semaphore, t, FALSE);
>if (ret == WAIT_FAILED)
>  return EINA_FALSE;
>
> @@ -187,7 +187,7 @@
> * This call atomically signals the  event and waits 
> until
> * it can acquire the .  This is required to ensure 
> fairness.
> */
> -   ret = SignalObjectAndWait(cond->waiters_done, cond->mutex, INFINITE, 
> FALSE);
> +   ret = SignalObjectAndWait(cond->waiters_done, cond->mutex, t, FALSE);
>if (ret == WAIT_FAILED)
>  return EINA_FALSE;
> }
> @@ -197,7 +197,7 @@
> * Always regain the external mutex since that's the guarantee we
> * give to our callers.
> */
> -   ret = WaitForSingleObject(cond->mutex, INFINITE);
> +   ret = WaitForSingleObject(cond->mutex, t);
>if (ret == WAIT_FAILED)
>  return EINA_FALSE;
> }
> @@ -207,6 +207,18 @@
> }
>
> static inline Eina_Bool
> +eina_condition_timedwait(Eina_Condition *cond, double val)
> +{
> +   _eina_condition_internal_timedwait(cond, val * 1000);
> +}
> +
> +static inline Eina_Bool
> +eina_condition_wait(Eina_Condition *cond)
> +{
> +   _eina_condition_internal_timedwait(cond, INFINITE);
> +}
> +
> +static inline Eina_Bool
> eina_condition_broadcast(Eina_Condition *cond)
> {
> #if _WIN32_WINNT >= 0x0600
>
> Modified: trunk/eina/src/include

Re: [E-devel] Eina Coverage tests

2011-05-30 Thread The Rasterman
On Mon, 30 May 2011 11:54:22 -0300 Gustavo Sverzut Barbieri
 said:

> On Mon, May 30, 2011 at 5:59 AM, Carsten Haitzler 
> wrote:
> > On Tue, 17 May 2011 17:56:16 +0300 Tom Hacohen
> >  said:
> >
> > eina_prefix actually is hard to test given the test harness as it relies on
> > an installation following a certain standard :( can't really do it given
> > the test setup.
> 
> hard but not impossible. You can just create some directory with the
> expected setup and in the test you putenv() before entering it. Then
> you know what you got and what you'll have.
> 
> but it's boring... and bit time consuming :-)

well i also have to move the binary to be in a specific directory then
re-execute it from there... and then a data file is expected in another
specific dir and so on... it's not just another simple test. its a whole new
style of test all on its own that requires a specialised tree. just to test the
normal path :)


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Eina Coverage tests

2011-05-30 Thread Gustavo Sverzut Barbieri
On Mon, May 30, 2011 at 5:59 AM, Carsten Haitzler  wrote:
> On Tue, 17 May 2011 17:56:16 +0300 Tom Hacohen
>  said:
>
> eina_prefix actually is hard to test given the test harness as it relies on an
> installation following a certain standard :( can't really do it given the test
> setup.

hard but not impossible. You can just create some directory with the
expected setup and in the test you putenv() before entering it. Then
you know what you got and what you'll have.

but it's boring... and bit time consuming :-)


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] e17 todo

2011-05-30 Thread Gustavo Sverzut Barbieri
On Mon, May 30, 2011 at 5:55 AM, Carsten Haitzler  wrote:
> On Mon, 16 May 2011 23:57:13 -0300 Gustavo Sverzut Barbieri
>
>> > well right now i don't see any logic in the sorting as it doesn't display
>> > signal strength of each ap etc. :)
>>
>> use efenniht theme :-) or wait someone to fix b&w
>
> well thats part of shipping e17. the default needs to work properly :)
>
>> > so connman can't disable a specific device? thats rather poopie. eg have 2
>> > ethernet cards and i want just 1 controlled by connman, other left to "i'm
>> > doing work on that one and configure that one by hand".
>>
>> no, it can't. He says if you're doing development or other corner-case
>> task (I do have to agree here, it's not a regular use case) you can
>> start "connmand -I eth1" to ignore eth1.
>>
>> He said if this is about host x gadget mode on USB, then he said it
>> already detects USB gadget side, this is used to enable USB tethering.
>
> well i swear theres some connman-gnome util GUI that lets me select specific
> devices to ignore. so it's somehow possible...

it was never per-device, but per network type. You have switches to
turn off bluetooth, 3g, ethernet and wifi. But nothing to change just
the first ethernet.


>> >> I did not look into connman's latest proxy stuff, but should be
>> >> doable. however they were working on PAC (Proxy Auto Configuration)
>> >> and this should reduce the need for auto-configuration.
>> >
>> > that's good - but it's still a need :)
>>
>> Talked to him, he is pushing for PACrunner and its
>> org.pacrunner.Client.FindProxyForURL(your_url) that will calculate the
>> proxy for the given URL. They are providing a wrapper around libproxy
>> for that, but anyone can (should) talk to DBus directly as it's
>> asynchronous (while libproxy is synchronous).
>>
>> The proxy configuration is based on the manual list of URL and
>> excludes you provide manually or automatically with PAC/WPAD. He said
>> his test case is within Intel's infrastructure with a quite complex
>> PAC file of 24kb.
>
> only 24kb? bah! 80kb pac sitting here... UGH!
>
> well i was hoping for just the simple thing of "for network X, set up proxy 
> for
> http and https, or set no proxy". and presto. sure. full on PAC stuff and
> per-url proxy stuff is nice. i was hoping for simpler yet useful. :)
>
>> >> I'm not aware on how they implemented it, but if I was the one to
>> >> implement, I'd do HTTP proxy transparently in the system by using
>> >> iptables to redirect outgoing stream on port 80 to proxy.
>> >
>> > don't tell me. you would then be sensible and know what you are doing.
>> > unfortunately there are massive IT departments around with significantly
>> > less clue than you. and you are just a mere "programmer". :)
>>
>> ehehe... when I mentioned the "locally transparent proxy" using
>> iptables he almost spanked me. Although I never saw that in practice,
>> he said proxy configuration is a dynamic matter and you can't provide
>> it with fixed iptables rules :-)  Ok, he knows more than me there,
>> let's agree with him.
>
> but my point is that when you have a network that doesnt even tell you what
> proxy to use and you need to look up manual ip addresses for the PAC url
> location .. .for your browser, and then for simpler things like wget, apt have
> to set http and https proxy env vars etc... it's be nice just to have 1 stop 
> to
> manually set it up.. much like manual ip address setup. :)

I know, that was my idea as well, but it was rejected. Thus either we
do this hack in e17 and talk to iptables, or we rely on tools being
patched to talk to this proxy configuration daemon using dbus
(wget/curl comes to mind).

OTOH we can have ecore-con to talk to proxy daemon itself, so at least
our code is safe. Problem here is the reorganization, we need e_dbus
to talk to dbus daemon, but we're inside ecore-con. Likely we can
solve this by delegating using callbacks in ecore-con, create a e_dbus
module that talks to the daemon and hooking them in some higher level
library or the application itself.
(ecore_con_proxy_for_url_resolver_set(ctxt, cb, del_cb))


>> > well it's currently not in the daemon, so it needs to exist somewhere. :)
>> > the gui can implement it - we can have a nice ecore_con_url baby do the
>> > job :) thay or ping (which means pprobably just ecore_exe_run'ing ping
>> > +options and parsing its stdout)
>>
>> he said connmand does HTTP request to validate connectivity. You need
>> to enable the "portal" plugin and it will ping
>> http://www.connman.net/online/status.html
>
> hmm all fine and great to do http req... if your proxy setup is right :) does
> it manage to just detect lan connectivity? eg if it can ping the router etc.? 
> i
> mulled this too but it all assumes that the user just wants connectivity to 
> the
> "big bad internet" and not "just the local network". does it have "levels of
> success" eg. succeeded in getting address, succeeded in getting address AND 
> can
> ping/contact LAN hosts 

[E-devel] [PATCH] Add some APIs for supporting virtual keyboard in Ecore_IMF

2011-05-30 Thread Jihoon Kim
Hi, EFL developers.

For supporting virtual keyboard, I'd like to add some APIs.
The detail description of each API is included in the patch file as doxygen
format.

In the attached patch, the reason why we add the subprefix 'input_panel_'
related to virtual keyboard is 
that input method can be soft keyboard or voice input or image captured by
camera.

Would you please review this patch?

Index: ecore_imf_private.h
===
--- ecore_imf_private.h (revision 59796)
+++ ecore_imf_private.h (working copy)
@@ -48,6 +48,8 @@ struct _Ecore_IMF_Context
Eina_Bool(*retrieve_surrounding_func)(void *data, 
Ecore_IMF_Context *ctx, char **text, int *cursor_pos);
void  *retrieve_surrounding_data;
Ecore_IMF_Autocapital_Type autocapital_type;
+   Ecore_IMF_Input_Panel_Layout   input_panel_layout;
+   Ecore_IMF_Input_Panel_Lang input_panel_lang;
Eina_Bool  allow_prediction : 1;
 };
 
Index: ecore_imf_context.c
===
--- ecore_imf_context.c (revision 59796)
+++ ecore_imf_context.c (working copy)
@@ -986,3 +986,90 @@ ecore_imf_context_delete_surrounding_event_add(Eco
ecore_event_add(ECORE_IMF_EVENT_DELETE_SURROUNDING,
ev, _ecore_imf_event_free_delete_surrounding, NULL);
 }
+
+/**
+ * Ask the Input Method Context to show the control panel of using Input 
Method.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @ingroup Ecore_IMF_Context_IMControl_Group
+ * @since 1.1.0
+ */
+EAPI void
+ecore_imf_context_control_panel_show (Ecore_IMF_Context *ctx)
+{
+   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_control_panel_show");
+return;
+ }
+
+   if (ctx->klass->control_panel_show) ctx->klass->control_panel_show(ctx);
+}
+
+/**
+ * Ask the Input Method Context to hide the control panel of using Input 
Method.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @ingroup Ecore_IMF_Context_IMControl_Group
+ * @since 1.1.0
+ */
+EAPI void
+ecore_imf_context_control_panel_hide (Ecore_IMF_Context *ctx)
+{
+   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_control_panel_hide");
+return;
+ }
+
+   if (ctx->klass->control_panel_hide) ctx->klass->control_panel_hide(ctx);
+}
+
+/**
+ * Set the language of the input panel.
+ * This API can be used when you want to show the English keyboard.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @param lang the language to be set to the input panel.
+ * @ingroup Ecore_IMF_Context_IMControl_Group
+ * @since 1.1.0
+ */
+EAPI void
+ecore_imf_context_input_panel_language_set (Ecore_IMF_Context *ctx, 
Ecore_IMF_Input_Panel_Lang lang)
+{
+   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_input_panel_language_set");
+return;
+ }
+
+   if (ctx->klass->input_panel_language_set) 
ctx->klass->input_panel_language_set(ctx, lang);
+   ctx->input_panel_lang = lang;
+}
+
+/**
+ * Get the language of the input panel.
+ *
+ * See @ref ecore_imf_context_input_panel_language_set for more details.
+ *
+ * @param ctx An #Ecore_IMF_Context.
+ * @return Ecore_IMF_Input_Panel_Lang
+ * @ingroup Ecore_IMF_Context_IMControl_Group
+ * @since 1.1.0
+ */
+EAPI Ecore_IMF_Input_Panel_Lang
+ecore_imf_context_input_panel_language_get (Ecore_IMF_Context *ctx)
+{
+   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_input_panel_language_get");
+return ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC;
+ }
+
+   return ctx->input_panel_lang;
+}
+
Index: Ecore_IMF.h
===
--- Ecore_IMF.h (revision 59796)
+++ Ecore_IMF.h (working copy)
@@ -128,6 +128,25 @@ typedef enum
ECORE_IMF_AUTOCAPITAL_TYPE_ALLCHARACTER
 } Ecore_IMF_Autocapital_Type;
 
+typedef enum
+{
+   ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL,  /**< Default layout */
+   ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER,  /**< Number layout */
+   ECORE_IMF_INPUT_PANEL_LAYOUT_EMAIL,   /**< Email layout */
+   ECORE_IMF_INPUT_PANEL_LAYOUT_URL, /**< URL layout */
+   ECORE_IMF_INPUT_PANEL_LAYOUT_PHONENUMBER, /**< Phone Number layout */
+   ECORE_IMF_INPUT_PANEL_LAYOUT_IP,  /**< IP layout */
+   ECORE_IMF_INPUT_PANEL_LAYOUT_MONTH,   /**< Month layout */
+   ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY,  /**< Number Only layout */
+   ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID
+} Ecore_IMF_Input_Panel_Layout;
+
+typedef enum
+{
+   ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC,/**< Automatic */
+   ECORE_IMF_INPUT_PANE

Re: [E-devel] Question about eina_inline_lock_posix.x error.

2011-05-30 Thread Cedric BAIL
hello,

On Mon, May 30, 2011 at 2:31 PM, WooHyun Jung  wrote:
> If I include "pthread.h" first and then "Elementary.h", following error
> message is shown. (__USE_UNIX98 = 0)
>
> /usr/include/eina-1/eina/eina_inline_lock_posix.x:101:41: error:
> 'PTHREAD_MUTEX_ERRORCHECK' undeclared (first use in this function)
>
> Should eina_inline_lock_posix.x file be modified as below ?
>
> #ifdef __USE_UNIX98
>
>      if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK) != 0)
>
>        return EINA_FALSE;
>
> #else
>
>      if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK_NP) !=
> 0)
>
>        return EINA_FALSE;
>
> #endif

The issue is in fact more related with double inclusion of pthread.h.
And we don't have a real proper work around. I move that piece of code
to be used only in debug mode. We could as suggested on irc add
-D__USE_UNIX98 in the CFLAGS of eina pkgconfig file.

In general, eina should provide all the portable layer for mutex and
ecore the layer to sanely manipulate threads. So at the ends, we
should not use pthread.h directly in an EFL apps. Right now, I know
that it's not completly the case as some feature are still needed. But
if you can identify what are the feature that would be usefull first,
I am interested to know.
-- 
Cedric BAIL

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] shot module in e17.

2011-05-30 Thread Nicolas Aguirre
2011/5/30 Andreas Volz 

> Am Sat, 28 May 2011 18:11:24 +0900 schrieb Carsten Haitzler (The
> Rasterman):
>
> > ok. after last night we had a "n00b" on irc asking "why doesnt
> > printscreen work?" - i've heard this several times before actually...
> > i added a shot module to e17 proper. how is this different to the
> > screenshot module in e-modules-extra?
> >
> > 1. doesnt run any external processes. e screenshots itself directly.
> > ecore_x has all the goodies needed.
> > 2. it offers an actual file selector dialog to select the destination
> > of the screnshot if saved to disk
> > 3. it offers you a preview of the whole screenshot (scaled down)
> > 4. it offers you a choice of which screen (if you have
> > xinerama/multiple screens) you wish to save (or all of them together)
> > with a preview highlight of which one is to be saved
> > 5. offers a simple quality choice radio list at time of screenshot
> > 6. this is the important bit... it offers a SHARE button... yes..
> > social network buzzword compliance here. share...
> >
> > what does this do? it takes your screenshot and UPLOADS it to
> > enlightenment.org... and gives you a URL once uploaded to share with
> > your friends and whoever... of your wonderful sexy screeniepoos. much
> > like imageshack or imgur or pastebin and so on... finally people can
> > stop asking "how do i upload this screenshot?". it's built in.
> >
> > cool bit is... ALL the screenshots people upload are nicely public
> > here:
> >
> > http://www.enlightenment.org/ss/
>
> Nice!
>
> Could one tell me what is this and how to configure it?
>
> http://www.enlightenment.org/ss/e-4de20b85c0e9b8.76161978.jpg
>
> Is this some E netbook edition with a special theme?
>
> regards
>Andreas
>
> --
> Technical Blog 
>
>
> --
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

It's illume-home profile with elfe as home replacement instead of default
illume-home. You can find it in E-MODULES-EXTRA/elfe
And i'm using detourious theme.

-- 
Nicolas Aguirre
Mail: aguirre.nico...@gmail.com
Web: http://enna.geexbox.org
Blog: http://dev.enlightenment.fr/~captainigloo/
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Question about eina_inline_lock_posix.x error.

2011-05-30 Thread WooHyun Jung
Hello~ All. 

 

If I include "pthread.h" first and then "Elementary.h", following error
message is shown. (__USE_UNIX98 = 0)

 

/usr/include/eina-1/eina/eina_inline_lock_posix.x:101:41: error:
'PTHREAD_MUTEX_ERRORCHECK' undeclared (first use in this function)

 

Should eina_inline_lock_posix.x file be modified as below ? 

 

#ifdef __USE_UNIX98

  if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK) != 0)

return EINA_FALSE;

#else

  if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK_NP) !=
0)

return EINA_FALSE;

#endif

 

 

 

 


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Deprecating Illume1

2011-05-30 Thread Vincent Torri


On Mon, 30 May 2011, Tom Hacohen wrote:

> Hey guys,
>
> We should deprecate Illume1, it's use is deprecated, and it has been ~2
> years since Illume2 was introduced. It's time to remove it completely as
> it only brings confusion.

+1, especially as there are some efforts to release e17.

Vincent

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Deprecating Illume1

2011-05-30 Thread Tom Hacohen
Hey guys,

We should deprecate Illume1, it's use is deprecated, and it has been ~2
years since Illume2 was introduced. It's time to remove it completely as
it only brings confusion.

What do you think?

--
Tom.


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] shot module in e17.

2011-05-30 Thread Tom Hacohen
On Mon, 2011-05-30 at 12:54 +0200, Andreas Volz wrote:
> Nice!
> 
> Could one tell me what is this and how to configure it?
> 
> http://www.enlightenment.org/ss/e-4de20b85c0e9b8.76161978.jpg
> 
> Is this some E netbook edition with a special theme?
> 

This is illume. It's for tablets/phones. It maximizes all the windows,
and it also doesn't decorate.

If you want to activate it, you can either load the illume modules (all
the illume modules except for "Illume" because you want Illume2, not 1),
or you can remove your ~/.e directory, and on the first time wizard,
choose the Illume-Home configuration.

Cheers,
Tom.


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] shot module in e17.

2011-05-30 Thread Andreas Volz
Am Sat, 28 May 2011 18:11:24 +0900 schrieb Carsten Haitzler (The
Rasterman):

> ok. after last night we had a "n00b" on irc asking "why doesnt
> printscreen work?" - i've heard this several times before actually...
> i added a shot module to e17 proper. how is this different to the
> screenshot module in e-modules-extra?
> 
> 1. doesnt run any external processes. e screenshots itself directly.
> ecore_x has all the goodies needed.
> 2. it offers an actual file selector dialog to select the destination
> of the screnshot if saved to disk
> 3. it offers you a preview of the whole screenshot (scaled down)
> 4. it offers you a choice of which screen (if you have
> xinerama/multiple screens) you wish to save (or all of them together)
> with a preview highlight of which one is to be saved
> 5. offers a simple quality choice radio list at time of screenshot
> 6. this is the important bit... it offers a SHARE button... yes..
> social network buzzword compliance here. share...
> 
> what does this do? it takes your screenshot and UPLOADS it to
> enlightenment.org... and gives you a URL once uploaded to share with
> your friends and whoever... of your wonderful sexy screeniepoos. much
> like imageshack or imgur or pastebin and so on... finally people can
> stop asking "how do i upload this screenshot?". it's built in.
> 
> cool bit is... ALL the screenshots people upload are nicely public
> here:
> 
> http://www.enlightenment.org/ss/

Nice!

Could one tell me what is this and how to configure it?

http://www.enlightenment.org/ss/e-4de20b85c0e9b8.76161978.jpg

Is this some E netbook edition with a special theme?

regards
Andreas

-- 
Technical Blog 

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [Patch] elm_gengrid - added new feature : gengrid reorder mode

2011-05-30 Thread Jeonghyun Yun
Dear All.

I added a new feature "reorder mode" of gengrid refer to genlist reorder
mode.

After set this reorder API, if user press an item (long press), the item can
be moved another position.
Then if the user releases the item, the item will be reordered in gengrid.

Please review this patch.

Thanks.

[API]
==
/**
 * Set the reorder mode
 *
 * @param obj The Gengrid object
 * @param reorder_mode The reorder mode
 * (EINA_TRUE = on, EINA_FALSE = off)
 *
 * @ingroup Gengrid
 */
EAPI void
elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode)

/**
 * Get the reorder mode
 *
 * @param obj The Gengrid object
 * @return The reorder mode
 * (EINA_TRUE = on, EINA_FALSE = off)
 *
 * @ingroup Gengrid
 */
EAPI Eina_Bool
elm_gengrid_reorder_mode_get(const Evas_Object *obj)
==


elm_gengrid.patch
Description: Binary data
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Eina Coverage tests

2011-05-30 Thread Tom Hacohen
:( 

On Mon, 2011-05-30 at 17:59 +0900, Carsten Haitzler wrote:
> On Tue, 17 May 2011 17:56:16 +0300 Tom Hacohen
>  said:
> 
> eina_prefix actually is hard to test given the test harness as it relies on an
> installation following a certain standard :( can't really do it given the test
> setup.
> 
> > Hey,
> > 
> > I just ran eina coverage and a lot of the code is not tested :(
> > 
> > Mainly:
> > eina_file, eina_log, eina_module, eina_object, eina_prefix,
> > eina_simple_xml_parser, and eina_str.
> > 
> > Whoever is responsible for each part, please fix.
> > 
> > Thanks,
> > Tom.
> > 
> > 
> > --
> > Achieve unprecedented app performance and reliability
> > What every C/C++ and Fortran developer should know.
> > Learn how Intel has extended the reach of its next-generation tools
> > to help boost performance applications - inlcuding clusters.
> > http://p.sf.net/sfu/intel-dev2devmay
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > 
> 
> 



--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Eina Coverage tests

2011-05-30 Thread The Rasterman
On Tue, 17 May 2011 17:56:16 +0300 Tom Hacohen
 said:

eina_prefix actually is hard to test given the test harness as it relies on an
installation following a certain standard :( can't really do it given the test
setup.

> Hey,
> 
> I just ran eina coverage and a lot of the code is not tested :(
> 
> Mainly:
> eina_file, eina_log, eina_module, eina_object, eina_prefix,
> eina_simple_xml_parser, and eina_str.
> 
> Whoever is responsible for each part, please fix.
> 
> Thanks,
> Tom.
> 
> 
> --
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] evas/e17 crash on MacOS

2011-05-30 Thread The Rasterman
On Tue, 17 May 2011 14:19:58 -0700 Dave Ray  said:

could you compile with -O1 or -O0 optimizations? aqs such looking here:
#8  _op_copy_c_dp_mmx (s=0x0, m=0x0, c=4294967295, d=0x6cf, l=436) at
#op_copy_color_i386.c:12

or here:
#8  0x0001005ac150 in _op_copy_c_dp (s=0x0, m=, c=4294967295, d=0x6cf, l=436) at
#op_copy_color_.c:7

tell me that d (pointer for destination) is suspicious. but it depends. missing
values for eng_rectangle_draw().

i wonder if the problem is deeper like mit-shm not working when osx starts its
xserver and then it begins to work after a bit or something? like dest buffer
isnt being allocated. the best thing to do here is some interactive debugging
nd poking around to see what the destination output looks like. but my bet is
that d pointer (0x6cf) looks suspicious as if it was a NULL ptr
and 0x6cf is just a calculated offset from NULL. why it's nul.. that's the
question. is that the mit-shm buffer that failed to alloc? as such i think evas
checks for nulls.. i wonder where it fails to check and lets it pass thru... if
this is the case?

> I'm trying to fix a crash in e17 that seems to always happen the first time I
> run it after bootup. This problem has existed for at least 2 years, but I'm
> only looking at it now, as most other bugs have now been fixed. 
> 
> I followed instructions on the e17 debugging page, and rebuilt all the libs
> with -g for debugging symbols. I ran e17 and captured some good info in gdb.
> 
> The problem only happens the first time e17 is run after bootup. It cycles
> through 3 successive "white rectangles of death" before disabling modules and
> finishing startup. After this, if I quit X11 and restart it, no more crash.
> If I reboot, it crashes again.
> 
> I captured the gdb backtrace, the pastebin is here:
> http://pastebin.com/xskYpRxt
> 
> The code that crashed looks like it is related to the mmx module of evas. So
> I recompiled evas without mmx, and recompiled ecore and e. I tried it again.
> e17 crashed in the same place, but with a non-mmx equivalent of the same
> operation. The pastebin is here: http://pastebin.com/YDteFFzG
> 
> It's strange that it only happens the first time I run it after reboot. 
> 
> Any help very much appreciated!
> 
> -Dave
> 
> PS Please don't be scared off by this being on MacOS - it is Darwin/BSD under
> the hood!
> 
> --
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its 
> next-generation tools to help Windows* and Linux* C/C++ and Fortran 
> developers boost performance applications - including clusters. 
> http://p.sf.net/sfu/intel-dev2devmay
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] e17 todo

2011-05-30 Thread The Rasterman
On Mon, 16 May 2011 23:57:13 -0300 Gustavo Sverzut Barbieri

> > well right now i don't see any logic in the sorting as it doesn't display
> > signal strength of each ap etc. :)
> 
> use efenniht theme :-) or wait someone to fix b&w

well thats part of shipping e17. the default needs to work properly :)

> > so connman can't disable a specific device? thats rather poopie. eg have 2
> > ethernet cards and i want just 1 controlled by connman, other left to "i'm
> > doing work on that one and configure that one by hand".
> 
> no, it can't. He says if you're doing development or other corner-case
> task (I do have to agree here, it's not a regular use case) you can
> start "connmand -I eth1" to ignore eth1.
> 
> He said if this is about host x gadget mode on USB, then he said it
> already detects USB gadget side, this is used to enable USB tethering.

well i swear theres some connman-gnome util GUI that lets me select specific
devices to ignore. so it's somehow possible...

> >> I did not look into connman's latest proxy stuff, but should be
> >> doable. however they were working on PAC (Proxy Auto Configuration)
> >> and this should reduce the need for auto-configuration.
> >
> > that's good - but it's still a need :)
> 
> Talked to him, he is pushing for PACrunner and its
> org.pacrunner.Client.FindProxyForURL(your_url) that will calculate the
> proxy for the given URL. They are providing a wrapper around libproxy
> for that, but anyone can (should) talk to DBus directly as it's
> asynchronous (while libproxy is synchronous).
> 
> The proxy configuration is based on the manual list of URL and
> excludes you provide manually or automatically with PAC/WPAD. He said
> his test case is within Intel's infrastructure with a quite complex
> PAC file of 24kb.

only 24kb? bah! 80kb pac sitting here... UGH!

well i was hoping for just the simple thing of "for network X, set up proxy for
http and https, or set no proxy". and presto. sure. full on PAC stuff and
per-url proxy stuff is nice. i was hoping for simpler yet useful. :)

> >> I'm not aware on how they implemented it, but if I was the one to
> >> implement, I'd do HTTP proxy transparently in the system by using
> >> iptables to redirect outgoing stream on port 80 to proxy.
> >
> > don't tell me. you would then be sensible and know what you are doing.
> > unfortunately there are massive IT departments around with significantly
> > less clue than you. and you are just a mere "programmer". :)
> 
> ehehe... when I mentioned the "locally transparent proxy" using
> iptables he almost spanked me. Although I never saw that in practice,
> he said proxy configuration is a dynamic matter and you can't provide
> it with fixed iptables rules :-)  Ok, he knows more than me there,
> let's agree with him.

but my point is that when you have a network that doesnt even tell you what
proxy to use and you need to look up manual ip addresses for the PAC url
location .. .for your browser, and then for simpler things like wget, apt have
to set http and https proxy env vars etc... it's be nice just to have 1 stop to
manually set it up.. much like manual ip address setup. :)

> > well it's currently not in the daemon, so it needs to exist somewhere. :)
> > the gui can implement it - we can have a nice ecore_con_url baby do the
> > job :) thay or ping (which means pprobably just ecore_exe_run'ing ping
> > +options and parsing its stdout)
> 
> he said connmand does HTTP request to validate connectivity. You need
> to enable the "portal" plugin and it will ping
> http://www.connman.net/online/status.html

hmm all fine and great to do http req... if your proxy setup is right :) does
it manage to just detect lan connectivity? eg if it can ping the router etc.? i
mulled this too but it all assumes that the user just wants connectivity to the
"big bad internet" and not "just the local network". does it have "levels of
success" eg. succeeded in getting address, succeeded in getting address AND can
ping/contact LAN hosts (gateway, dns server), got address, can access LAN hosts
ANd can get to the big bad interweebs? thats what the ready and online states
are? ready being step #2 above, online is #3?

> >> That's the reason connman now have a "ready" state as well as
> >> "online". There are also some properties like LoginRequired and
> >> SetupRequired to see if additional work must be done.
> >
> > sure... but... not done yet :)
> 
> seems it is done, check this "portal" plugin. We could just show a
> "limited connectivity" icon/status.

cool. i guess we msotly need to have handling for all the statuses (ready and
online, loginrequired etc.) and display appropriate icons/status. for
loginrequired state in theory we should launch a browser when u click on it or
offer a menu with "login now?" or something. it'd be nice to use eve at some
point... maybe e18. worry about that then.

> > oh yes. definitely. i forgot about this. sometimes connman gadget can sit
> > there and try and "connect" forever,

Re: [E-devel] E SVN: raster trunk/web/www

2011-05-30 Thread Daniel Juyung Seo
Yeah this looks awesome!!!
And I missed mailing list thread on this issue because I was reading
mailng list by time order.
And I still didn't reach it yet.

http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg32803.html

Anyhow, very good to share.
Daniel Juyung Seo (SeoZ)

On Mon, May 30, 2011 at 4:34 PM, Tom Hacohen
 wrote:
> On Mon, 2011-05-30 at 09:34 +0200, Nicolas Aguirre wrote:
>> You need to activate the shot module and bind a key to this action if you
>> already have a profile.
>>
>
> Or just use the button from the main menu.
>
> --
> Tom.
>
>
>
> --
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: raster trunk/web/www

2011-05-30 Thread Nicolas Aguirre
2011/5/30 Tom Hacohen 

> On Mon, 2011-05-30 at 09:34 +0200, Nicolas Aguirre wrote:
> > You need to activate the shot module and bind a key to this action if you
> > already have a profile.
> >
>
> Or just use the button from the main menu.
>
> --
> Tom.
>
>
>
I missed it :P

-- 
Nicolas Aguirre
Mail: aguirre.nico...@gmail.com
Web: http://enna.geexbox.org
Blog: http://dev.enlightenment.fr/~captainigloo/
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: raster trunk/web/www

2011-05-30 Thread Tom Hacohen
On Mon, 2011-05-30 at 09:34 +0200, Nicolas Aguirre wrote:
> You need to activate the shot module and bind a key to this action if you
> already have a profile.
> 

Or just use the button from the main menu.

--
Tom.



--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: raster trunk/web/www

2011-05-30 Thread Nicolas Aguirre
2011/5/30 Carsten Haitzler 

> On Mon, 30 May 2011 14:20:53 +0900 Daniel Juyung Seo  >
> said:
>
> use shot module :)
>
> > How can I use this shot.php page?
> >
> > Daniel Juyung Seo (SeoZ)
> >
> > On Sat, May 28, 2011 at 5:15 PM, Enlightenment SVN
> >  wrote:
> > > Log:
> > > hmm fix up shot.php to work on e.org
> > >
> > >
> > >
> > > Author:   raster
> > > Date: 2011-05-28 01:15:06 -0700 (Sat, 28 May 2011)
> > > New Revision: 59769
> > > Trac: http://trac.enlightenment.org/e/changeset/59769
> > >
> > > Modified:
> > >  trunk/web/www/shot.php
> > >
> > > Modified: trunk/web/www/shot.php
> > > ===
> > > --- trunk/web/www/shot.php  2011-05-28 07:40:15 UTC (rev 59768)
> > > +++ trunk/web/www/shot.php  2011-05-28 08:15:06 UTC (rev 59769)
> > > @@ -1,19 +1,38 @@
> > >   > > -$data = file_get_contents('php://input');
> > > -#ff d8 ff e0
> > > +ob_start();
> > > + limit - 6 mb.
> > > +$data = file_get_contents('php://input', NULL, NULL, 0, 6 * 1024 *
> 1024);
> > > + magic jpeg signature
> > >  $jpeg_match = "\xff\xd8\xff\xe0";
> > >  $jpeg_magic = substr($data, 0, 4);
> > > -#89 50 4e 47
> > > + magic png signature
> > >  $png_match = "\x89\x50\x4e\x47";
> > >  $png_magic = substr($data, 0, 4);
> > > +
> > > + base on signaure, add file extension
> > >  $ext = ".unknown";
> > >  if ($jpeg_match == $jpeg_magic) $ext = ".jpg";
> > >  else if ($png_match == $png_magic) $ext = ".png";
> > > + not a correct matching file - abort
> > > +else {
> > > +echo "bzzt";
> > > +ob_end_flush();
> > > +die();
> > > +}
> > > +
> > > + get a unique name
> > >  $dest = uniqid("e-", true) . $ext;
> > > + store the file
> > >  $fh = fopen("/var/www/download/shots/".$dest, 'wb');
> > >  fwrite($fh, $data);
> > >  fclose($fh);
> > > + prepare url to get file from
> > > +$loc = "http://www.enlightenment.org/ss/"; . $dest;
> > > +
> > > + respond!
> > > +header("HTTP/1.1 200 OK");
> > > +header("Content-Type: text/plain");
> > > +header("X-Enlightenment-Service: Pants On");
> > > +print $loc;
> > > +ob_end_flush();
> > >  ?>
> > > - > > -  echo "http://www.enlightenment.org/ss/"; . $dest;
> > > -?>
> > >
> > >
> > >
> --
> > > vRanger cuts backup time in half-while increasing security.
> > > With the market-leading solution for virtual backup and recovery,
> > > you get blazing-fast, flexible, and affordable data protection.
> > > Download your free trial now.
> > > http://p.sf.net/sfu/quest-d2dcopy1
> > > ___
> > > enlightenment-svn mailing list
> > > enlightenment-...@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
> > >
> >
> >
> --
> > vRanger cuts backup time in half-while increasing security.
> > With the market-leading solution for virtual backup and recovery,
> > you get blazing-fast, flexible, and affordable data protection.
> > Download your free trial now.
> > http://p.sf.net/sfu/quest-d2dcopy1
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
>
> --
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com
>
>
>
> --
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

You need to activate the shot module and bind a key to this action if you
already have a profile.

-- 
Nicolas Aguirre
Mail: aguirre.nico...@gmail.com
Web: http://enna.geexbox.org
Blog: http://dev.enlightenment.fr/~captainigloo/
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel