maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   daperl's PoRN (https://talk.maemo.org/showthread.php?t=50515)

daperl 2010-04-20 20:40

Re: daperl's PoRN
 
1 Attachment(s)
Nope, Portrait Mode is the Devil, and GtkViewport is his spawn

After implementing the style and container changes, Portrait Mode was hosed. I had been there before, but I never properly tracked down the culprit. Well, I might have figured something out. At the moment, here's my general rule:

"If you're gonna use a GtkViewport and Portrait Mode, resize the GtkViewport's child's width when going to Portrait Mode."

An "if" statement, a global variable, a sloppy magic number, and two lines of code solve the problem for this case, but if this is truly a general solution, I won't tell you how many days this ate my lunch about a month ago. Regardless, for a while now, I've felt there might be a Portrait Mode bug, but I'm moving on. Again!

daperl 2010-04-20 21:14

Re: daperl's PoRN
 
Quote:

Originally Posted by Venemo (Post 618704)
This is quite nice.

Can it be done with Qt?

I think so, if you don't do it my current way. Right now, I'm flying at a high level by using Nokia's closed-source GTK widgets and objects, which do most of the talking to the Telepathy, AddressBook, ..., etc. services. My attempts at plugging-in at the highest level of the open source AddressBook stuff have failed. And this is where I eventually want to be. I think I'm having OSSO context init problems, and my goal is to solve them over the next few days (fingers crossed). [daperl cues up qwerty12 music]* I could fly a little lower at EBook/EVCard levels, but the documentation discourages this.

So, I'm sure Nokia will have, if they don't already, the same high level solutions for Qt, but if they don't and I understand things correctly, that shouldn't stop anyone from doing Conversations in Qt today.

friendstatus might be the gold mine I've been digging for

daperl 2010-04-21 18:01

Re: daperl's PoRN
 
Bad fisherman cast their nets in NULL infested waters

or

Give a man a segmentation fault, and he'll be happy for the rest of the day. But give a man a NULL pointer, and he'll curse you for the rest of his life.

Okay, I'm an idiot. But if I wanted to play the victim card I might say, "C has once again made me feel like an idiot." I'm not gonna play that card; I'm an idiot.

A GList has the following structure:

Code:

typedef struct {
  gpointer data;
  GList *next;
  GList *prev;
} GList;

And what have I been doing for almost the last week while iterating over these lists? You guessed it, rookie move #2: I've been casting the GList * instead of the data. Please don't do that.

The bright side? My previous post is no longer true. yahoo.

I want my mommy.

smoku 2010-04-21 20:46

Re: daperl's PoRN
 
It's been a pleasure subscribing this thread. :D
Keep up. :D

daperl 2010-04-25 01:02

Re: daperl's PoRN
 
If you get hit by a tidal wave, it's an understatement if your epitaph says you were in over your head

I successfully sent and asynchronously received IM messages today! I was going nowhere fast until I looked inside the Empathy code (Hello!). I mean, look at this snippet from empathy-tp-contact-list.c:

Code:

GValueArray  *chan_struct;
const gchar  *object_path;
const gchar  *channel_type;
TpHandleType  handle_type;
guint        handle;
               
chan_struct = g_ptr_array_index (channels, i);
object_path = g_value_get_boxed (g_value_array_get_nth (chan_struct, 0));
channel_type = g_value_get_string (g_value_array_get_nth (chan_struct, 1));
handle_type = g_value_get_uint (g_value_array_get_nth (chan_struct, 2));
handle = g_value_get_uint (g_value_array_get_nth (chan_struct, 3));

I had no idea where this particular GValueArray's structure was documented, or even that the GPtrArray values are GValueArrays! All I knew was that they weren't GObjects, but that didn't help me much (crash!). Since I'm starting to plug in to a low-level, general purpose API like Telepathy, I expect to see plenty more of this kind of data packing. But no worries, right? I have Empathy as my new Rosetta Stone, so things could start to pick up from here.

daperl 2010-04-27 03:43

Re: daperl's PoRN
 
2 Attachment(s)
As usual, I've decided to take a sharp turn. I took a crack at getting Dia to compile and run. It's a beast of a program, and I'm not sure I need all its parts. It's more handheld friendly than The Gimp, but that's like sayin' Musollini was friendlier than Hitler. Yeah baby! Godwin Tech!

It built by some miracle. I set it to --disable-gnome, and it failed the first time. But then I

Code:

rm app/main.o
and ran

Code:

fakeroot -b -d -nc -rfakeroot
again, and it built the packages. Serious Voodoo.

Attachment 9342
Attachment 9343

daperl 2010-06-29 22:14

Re: daperl's PoRN
 
4 Attachment(s)
I have matplotlib running on my n900. I didn't have to compile anything, but I did have to install (dpkg -x <deb file> <location>) and optify (ln -s ... and cp -a ...) the lenny packages by hand. I also had to soft link the libraries that end in .3gf to the same name without the .3gf. You'll need to install python-numpy and get the following debian lenny packages:

python-dateutil_1.4.1-2_all.deb
python-matplotlib_0.98.1-1+lenny4_armel.deb
python-matplotlib-data_0.98.1-1+lenny4_all.deb
python-tz_2008c-2_all.deb

Here are some screenshots:

Attachment 11627
Attachment 11628
Attachment 11632
Attachment 11630

PradaBrada 2010-06-29 22:18

Re: daperl's PoRN
 
thread doesn't deliver

LeHomer 2015-07-10 19:05

Re: daperl's PoRN
 
Quote:

Originally Posted by PradaBrada (Post 734686)
thread doesn't deliver

I think it's actually pretty neat, but ok, the thread title is a bit misleading. I thought we were gonna share our favorite porn site like xhamster, ThePornDude or pornhub :D

endsormeans 2015-07-10 23:01

Re: daperl's PoRN
 
Very cool...
but Jeez ..daperl ...
.downer central....
here I thought the "Find Sex" app or an offshoot ...
was finally created.
:D


All times are GMT. The time now is 15:49.

vBulletin® Version 3.8.8