Skip to content

Instantly share code, notes, and snippets.

<dimart> https://developer.gnome.org/gtk3/stable/ch24s02.html#id-1.6.3.4.13
<dimart> did you get my last msg with a link?
<knocte> "In places where you don't want this to happen, setting the container explicity as not expanding will stop the expand flag of the child from being inherited" -> that's probably what we want to do
<knocte> if that works, then please remember to put a link to this URL in your commit message
<knocte> IRC message?
<knocte> this is what I got: https://gist.github.com/knocte/1657353f4c81a065e1c3
<knocte> why?
<dimart> yeah, I wanted to be sure that you got this URL to developer gnome. never mind, I had Internet connection problems
<knocte> yes, the text I pasted comes from that URL :)
@dimart
dimart / gist1
Last active August 29, 2015 14:01
--------GIT-MASTER--------------------------------------
...
ScrolledWindow window = new ScrolledWindow ();
public SearchView (SortableMemoryListModel<T> model)
{
list_view = new ResultListView ();
var controller = new PersistentColumnController ("SongKick");
list_view.ColumnController = controller;
AddColumns ();
@dimart
dimart / crash_log
Created July 24, 2014 04:19
[GSoC14] FanArt extension crash log
GSlice: MemChecker: attempt to release block with invalid size: 0x27b4260 size=24 invalid-size=16
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) GLib.ToggleRef.g_object_remove_toggle_ref (intptr,GLib.ToggleRef/ToggleNotifyHandler,intptr) <IL 0x00019, 0xffffffff>
at GLib.ToggleRef.Free () <IL 0x00032, 0x00067>
at GLib.ToggleRef.PerformQueuedUnrefs () <IL 0x00061, 0x0010b>
at GLib.Timeout/TimeoutProxy.Handler () <IL 0x0000f, 0x0005b>
at (wrapper native-to-managed) GLib.Timeout/TimeoutProxy.Handler () <IL 0x0002d, 0xffffffff>
at <unknown> <0xffffffff>
@dimart
dimart / ListView-1
Last active August 29, 2015 14:04
ListView-1
________________________________________________
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| |
| |
________________________________________________
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
@dimart
dimart / ListView-2
Created July 30, 2014 00:52
ListView-2
________________________________________________
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
________________________________________________
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
[4 Debug 18:16:42.788] Looking for /home/dmitrii/Music/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not (WIGCD162J HSE-10001)/13. A Certain Romance.mp3 fingerprint
[4 Debug 18:16:42.911] Looking for /home/dmitrii/Music/Arctic Monkeys/Live In Texas (7 June 2006)/10. A Certain Romance.mp3 fingerprint
[4 Debug 18:16:42.991] Looking for /home/dmitrii/Music/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not (WIGCD162J HSE-10001)/13. A Certain Romance.mp3 fingerprint
[4 Debug 18:16:43.079] Looking for /home/dmitrii/Music/Atmosphere/Sad Clown Bad Dub 7/10. (Doesn't Work No More).mp3 fingerprint
[4 Debug 18:16:43.170] Looking for /home/dmitrii/Music/Arctic Monkeys/Live In Texas (7 June 2006)/10. A Certain Romance.mp3 fingerprint
[4 Debug 18:16:43.760] Looking for /home/dmitrii/Music/Coldplay/Fix You (CD Single Promo) Europe/01. Fix You.mp3 fingerprint
[4 Debug 18:16:44.061] Looking for /home/dmitrii/Music/Daft Punk/Random Access Memories/08. Get Lucky (feat. Pharrell Williams).mp3 fingerprint
[4
@dimart
dimart / 5696
Created December 18, 2014 18:36
patch from CodePlex
<?xml version="1.0"?>
<patch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.codeplex.com/schema/PatchSchema-1.0.xsd">
<update path="$/quickgraph/3.0/sources/QuickGraph.Graphviz/Dot/GraphvizVertex.cs" csid="36284" compression="deflate">7b0HYBxJliUmL23Ke39K9UrX4HShCIBgEyTYkEAQ7MGIzeaS7B1pRyMpqyqBymVWZV1mFkDM7Z28995777333nvvvfe6O51OJ/ff/z9cZmQBbPbOStrJniGAqsgfP358Hz8iltkib1bZNE9/Yl1M335eZ6v5mP+9LH4wflq1v3Hyi3/jJKVn3RTLi/T1ddPmi8P+R+OTqizzaVtUyyb29dM6u6I/Y1+dfXkDvPHn+TKviyk1k4ar9aQspum0zJomNdj+ZF63+TtpoDhz27q4zNo8bdoa0CdV21aL59kkL9PP0uW6LLXzSNtptVjky3a43awiROhH0bRV3RCq1HQn0o7GUtXpeVGW8ttn8sn4u/OizSPtJ1VVUvN3+ex18YOcmp9nZRNrGBJ3/KwibM+rTSgrKtQmROVJmU3fDpPioq7WqxsJVm4mq5mp59l1XlNj/HsTbau6oCnI2mHiFjTcFbHHak7/5A212t7d0PmrfFrVs7SWH9R9ftX5buvO0JTU+cW6zID00ISEzPh6nq2IOPzvZ7Hvxl8tm1U+Lc6LfDYwtKaY8aD2Y9NP3PGMWjCPYCD8wdbO+SjdOY+NQonavKW2m1iV5rN6m9+OQzrDaq/RAf/bGzI+vWHIykktkftNcTPHtdXqdrK8rje0UbL8YIh3OmL2sqKJ+T3SVdUU4MvhTpv15AIUsIoLD72b18usNI1YudFLpGy3n
@dimart
dimart / 6490
Created December 18, 2014 18:39
patch from CodePlex
243d242
< public readonly TEdge SourceEdge;
248d246
< TEdge sourceEdge,
257d254
< this.SourceEdge = sourceEdge;
269c266,267
<
---
> var visitedEdges = new Dictionary<TEdge, int>(this.VisitedGraph.EdgeCount);
@dimart
dimart / 12017
Created December 18, 2014 18:43
patch from CodePlex
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using QuickGraph;
using QuickGraph.Algorithms.Services;
namespace QuickGraph.Algorithms.Cliques
{
public static class Extension
@dimart
dimart / a.py
Created December 31, 2014 10:17
from cv2 import *
import numpy as np
def trackPoints(vid, name, detector):
optflowParams = dict(
nextPts = None,
winSize = (15, 15),
maxLevel = 2,
criteria = (TERM_CRITERIA_EPS | TERM_CRITERIA_COUNT, 10, 0.03)