| Computing desk | ||
|---|---|---|
| < May 4 | << Apr | May | Jun >> | May 6 > |
| Welcome to the Wikipedia Computing Reference Desk Archives |
|---|
| The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I suspect that this feature is malfunctioning on my Mom's new TV (JVC JLE47BC3001 47" 120Hz 1080p LED HDTV: ). It sounds like it should take an interlaced (60 Hz) image, split it into two, and fill in the missing lines on each to produce 120 Hz video, which it does correctly. However, the problem is that it sometimes plays the frames in the wrong order, resulting in the image appearing to move backwards.
1) Is this a known problem with this model ?
2) Is there a software fix that can be installed ?
3) If not, can this feature be disabled, showing the interlaced frame twice in a row, instead ?
4) With a 1080i broadcast, is the interlacing always done consistently ? That is, are the even lines the first frame and the odd lines the second, or vice versa ? (If they never envisioned the interlaced frames being pulled apart again, they may not have cared.)
Everyone knows that Wikipedia is one of the world's most popular sites on the web. But what about its sister sites? They don't seems to be as popular or get as much media coverage as Wikipedia. In terms of usage, Alexa rank, media coverage etc. which is the most popular Wikipedia sister project? (as in, Wiktionary, Wikisource, Wikibooks etc.) Don't include Wikia, it's not a sister project. Narutolovehinata5 tccsdnew 04:53, 5 May 2012 (UTC)
Hello, I use BzReader to read Wikipedia offline, the problem is that the size of the English dumps is very big (7.5 GB) and BzReader don't succeed to create the index. On the site we can download the dumps in parts, but as there are many parts (28) the search became very slow. I search the name of the software they use to split the dump, so I will split it just in two parts. Thank you and sorry for my English. Rabah201130 (talk) 09:42, 5 May 2012 (UTC)
The following page: encyclopediadramatica.se/IP (possibly unsafe site) - sets off Avast as an actual "malware attack" and is called a Trojan horse by people discussing it there. Is this some kind of virus checker freakout, or is there actually a way to embed something in a Wiki so that just visiting it your computer could be taken over? For that matter, why would NetscapeFirefox 12.0 still be vulnerable to getting taken over by a web page just by looking at it after all these security upgrades? That should never have been possible at all! Can someone shed some light on this issue? Wnt (talk) 15:19, 5 May 2012 (UTC)
But I only get a window with a button that does nothing. In main.c:
#include <gtk/gtk.h>
/* This is a callback function. The data arguments are ignored
* in this example. More on callbacks below. */
static void on_BT_PRESS_CLICK( GtkWidget *widget,
gpointer data )
{
GtkEntry *entry = GTK_ENTRY((GtkWidget*)data);
gchar *text1 = "Entry says: ";
gchar *text2 = g_strconcat( text1, gtk_entry_get_text(entry), NULL );
gtk_message_dialog_new( (GtkWindow *)widget, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO,
GTK_BUTTONS_OK, text2 );
}
static gboolean delete_event( GtkWidget *widget,
GdkEvent *event,
gpointer data )
{
/* If you return FALSE in the "delete-event" signal handler,
* GTK will emit the "destroy" signal. Returning TRUE means
* you don't want the window to be destroyed.
* This is useful for popping up 'are you sure you want to quit?'
* type dialogs. */
g_print ("delete event occurred\n");
/* Change TRUE to FALSE and the main window will be destroyed with
* a "delete-event". */
return FALSE;
}
/* Another callback */
static void destroy( GtkWidget *widget,
gpointer data )
{
gtk_main_quit ();
}
int main( int argc,
char *argv[] )
{
/* GtkWidget is the storage type for widgets */
GtkWidget *window;
GtkWidget *button;
GtkWidget *entry;
GtkWidget *hbox;
/* This is called in all GTK applications. Arguments are parsed
* from the command line and are returned to the application. */
gtk_init (&argc, &argv);
/* create a new window */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
hbox = gtk_hbox_new(TRUE, 0);
/* When the window is given the "delete-event" signal (this is given
* by the window manager, usually by the "close" option, or on the
* titlebar), we ask it to call the delete_event () function
* as defined above. The data passed to the callback
* function is NULL and is ignored in the callback function. */
g_signal_connect (window, "delete-event",
G_CALLBACK (delete_event), NULL);
/* Here we connect the "destroy" event to a signal handler.
* This event occurs when we call gtk_widget_destroy() on the window,
* or if we return FALSE in the "delete-event" callback. */
g_signal_connect (window, "destroy",
G_CALLBACK (destroy), NULL);
/* Sets the border width of the window. */
gtk_container_set_border_width (GTK_CONTAINER (window), 10);
/* Creates a text entry box */
entry = gtk_entry_new();
gtk_entry_set_visibility( (GtkEntry *)entry, TRUE );
/* pack in hbox */
gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, FALSE, 0);
gtk_widget_show(entry);
/* Creates a new button with the label "Hello World". */
button = gtk_button_new_with_label ("Press");
/* When the button receives the "clicked" signal, it will call the
* function hello() passing it entry as its argument. The
* function is defined above. */
g_signal_connect (button, "clicked",
G_CALLBACK (on_BT_PRESS_CLICK), entry);
/* This packs the button into the window (a gtk container). */
gtk_container_add (GTK_CONTAINER (window), button);
/* This packs the entry into the window */
gtk_container_add (GTK_CONTAINER (window), hbox);
gtk_widget_show(button);
gtk_widget_show(hbox);
/* and the window */
gtk_widget_show(window);
/* All GTK applications must have a gtk_main(). Control ends here
* and waits for an event to occur (like a key press or
* mouse event). */
gtk_main ();
return 0;
}
What I get is just a small window that has my button (no text entry), that does not bring up any dialog box when I press it. So I have no GtkEntry window in which to type anything. What am I doing wrong? Thanks. 69.243.220.115 (talk) 21:11, 5 May 2012 (UTC)
gtk_message_dialog_new() needs a toplevel window (not just any widget) as its first argument. So you need to call get_widget_get_toplevel() to walk up the widget hierarchy to find the enclosing toplevel window.gtk_message_dialog_new() generates a dialog box, but doesn't run it. The easiest way to do that, for a modal dialog, is gtk_dialog_run()static void on_BT_PRESS_CLICK( GtkWidget *widget,
gpointer data )
{
GtkEntry *entry = GTK_ENTRY((GtkWidget*)data);
gchar *text1 = "Entry says: ";
gchar *text2 = g_strconcat( text1, gtk_entry_get_text(entry), NULL );
GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
if (gtk_widget_is_toplevel (toplevel)) {
GtkWidget * dialog = gtk_message_dialog_new((GtkWindow*)toplevel,
GTK_DIALOG_MODAL,
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
text2);
gtk_dialog_run(dialog);
gtk_widget_destroy(dialog);
}
}
gtk_dialog_run(GTK_DIALOG(dialog));
instead of
gtk_dialog_run(dialog);
Maybe I just have a picky compiler. 69.243.220.115 (talk) 14:30, 6 May 2012 (UTC)
gtk_message_dialog_new is a printf-style format string. Try the code above and enter hello %d into the entry - you'll see hello 42332432 (or some other integer). You'd avoid that by passing "%s" as one arg, followed by text2. But you can simplify to get:static void on_BT_PRESS_CLICK (GtkWidget *widget,
gpointer data){
GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
if (gtk_widget_is_toplevel (toplevel)) {
GtkWidget *dialog = gtk_message_dialog_new((GtkWindow*)toplevel,
GTK_DIALOG_MODAL,
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
"Entry says \"%s\"",
gtk_entry_get_text((GtkEntry*)data));
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
}
}
And when will the other ones be introduced? Sagittarian Milky Way (talk) 21:22, 5 May 2012 (UTC)
I uploaded this animated GIF:

It has 256 frames and should give the illusion of moving down the hallway. The uploaded file appears to be of the proper size (a bit over 60MB, which is less than the stated limit of 100MB for uploads). However, when I view it at full resolution I only see the first few frames, then a portion of a frame, then it repeats. How many frames it shows seems to vary a bit each time I reload it. So:
1) Does everyone else see this truncated version ?
2) What causes this ?
3) How do I fix it (obviously I could use much smaller animated GIFs).
StuRat (talk) 22:11, 5 May 2012 (UTC)
Dear Wikipedians:
I have a Seagate GoFlex USB to SATA adapter that I've recycled from a GoFlex drive that I disassembled. When I hook up the adapter to a desktop form factor (3.5 inch) SATA hard drive, nothing happens, my computer did not pick up the hard drive. When I hook up the adapter to a notebook form factor (2.5 inch) SATA hard drive, my computer picks up all the partitions on that hard drive. I am just wondering what is going on here.
Thanks,
70.31.158.164 (talk) 23:18, 5 May 2012 (UTC)
I understand now. Thank you for your contributions. BTW, now I am putting in a new 2.5 inch SSD into my desktop computer. I am worried: could the 12 volt power connection that desktop uses damage ("zap") my 2.5 inch SSD in anyway? Thanks. 70.31.158.164 (talk) 15:20, 6 May 2012 (UTC)