'lang'에 해당되는 글 3건

  1. 2015.08.10 java app proxy port 설정
  2. 2015.01.20 한글 검색 script
  3. 2013.04.17 RhythmBox python console
lang2015. 8. 10. 09:09

fiddle로 jvm의 packet정보를 보고 싶다면..

 

System.setProperty("http.proxyHost","localhost");

System.setProperty("http.proxyPort","9999");

 

위의 코드를 필요한 곳에 적용시키고

 

fiddle option에서 scan port를 9999로 설정 끝..

'lang' 카테고리의 다른 글

한글 검색 script  (0) 2015.01.20
Posted by wooix
lang2015. 1. 20. 17:57

# 디렉토리 및 파일이름에 space있을 경우 비정상 인식하므로 \n을 Field separator로 잡는다.

IFS=$'n'


# 검색된 file들중에서 

for i in `find ./ -type f`

do

#utf-8 한글 코드범위만 검색

result = `grep -n -p "[\x{AC00}-\x{D7A3}]" $i`

if [ `echo $result | wc -l` -get 1 ] 

then 

echo "==========================================="

echo "$i"

echo "==========================================="

echo $result 

echo $i >> filelist.txt

echo

fi

done

'lang' 카테고리의 다른 글

java app proxy port 설정  (0) 2015.08.10
Posted by wooix
lang/lang. phython2013. 4. 17. 10:50

https://live.gnome.org/RhythmboxPlugins/WritingGuide#Controlling_Playback


  • Play/Pause

    shell.props.shell_player.playpause()
  • Stop

    shell.props.shell_player.stop()
  • Next track

    shell.props.shell_player.do_next()
  • Add a song to the Play Queue

    shell.add_to_queue("file://awsome_song.ogg")
  • Display a visualization

    import gst
    goom = gst.element_factory_make ("goom")
    sink = gst.element_factory_make ("ximagesink")
    colour = gst.element_factory_make ("ffmpegcolorspace")
    b = gst.Bin()
    b.add (goom, colour, sink)
    b.add_pad(gst.GhostPad("sink", goom.get_pad("sink")))
    goom.link(colour)
    colour.link(sink)
    shell.get_player().props.player.add_tee(b)


Posted by wooix