Tools
Записки программиста, обо всем и ни о чем. Но, наверное, больше профессионального.
2013-02-28
Тыринг
Posted by Valentin at 18:54 0 comments
2013-02-27
Flask and static files
@app.route('/cartobonus/<path:path>') def sendStatic(path): pth = os.path.abspath(os.path.join(app.root_path, "..", path)) return send_from_directory(os.path.dirname(pth), os.path.basename(pth))
if __name__ == '__main__': отправлять статику
Ой, чуть не забыл, фигня эта ваша Editra. Подсветки совпадений нет, автодополнение кривое, фактически не работает. Кодировка вывода в консоль не регулируется.
original post http://vasnake.blogspot.com/2013/02/flask-and-static-files.html
Posted by Valentin at 18:16 0 comments
Labels: python, web-develop
2013-02-26
Простые радости
Posted by Valentin at 15:54 0 comments
Labels: citation
2013-02-25
Кто более цивилизован
original post http://vasnake.blogspot.com/2013/02/blog-post_25.html
Posted by Valentin at 17:02 0 comments
2013-02-22
Synchronizing map and data grid interaction
<esri:FillSymbol x:Name="defaultAreaSymbol"> <esri:FillSymbol.ControlTemplate> <ControlTemplate x:Name="CustomPolygonTemplate"> <Grid> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal"> <Storyboard> <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Fill).(Color)" To="#880000FF" Duration="0:0:0.1" /> </Storyboard> </VisualState> <VisualState x:Name="MouseOver"> <Storyboard> <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Fill).(Color)" To="#88F000FF" Duration="0:0:0.1" /> </Storyboard> </VisualState> <VisualState x:Name="Selected"> <Storyboard> <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Fill).(Color)" To="#8800FFFF" Duration="0:0:0.1" /> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Path x:Name="Element" Stroke="Blue" Fill="#880000FF" StrokeStartLineCap="Round" StrokeThickness="2" StrokeLineJoin="Round" StrokeEndLineCap="Round" /> </Grid> </ControlTemplate> </esri:FillSymbol.ControlTemplate> </esri:FillSymbol> <esri:LineSymbol x:Key="defaultLineSymbol"> <esri:LineSymbol.ControlTemplate> <ControlTemplate xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"> <Grid> <vsm:VisualStateManager.VisualStateGroups> <vsm:VisualStateGroup x:Name="CommonStates"> <vsm:VisualState x:Name="MouseOver"> <Storyboard> <ColorAnimation BeginTime="0" Storyboard.TargetName="Element" Storyboard.TargetProperty="(Line.Stroke).(SolidColorBrush.Color)" To="#88F000FF" Duration="0:0:0.1" /> <DoubleAnimation BeginTime="0" Storyboard.TargetName="Element" Storyboard.TargetProperty="(Shape.StrokeThickness)" To="4" Duration="00:00:0.1" /> </Storyboard> </vsm:VisualState> <vsm:VisualState x:Name="Normal"> <Storyboard> <ColorAnimation BeginTime="0" Storyboard.TargetName="Element" Storyboard.TargetProperty="(Line.Stroke).(SolidColorBrush.Color)" To="#880000FF" Duration="0:0:0.1" /> </Storyboard> </vsm:VisualState> <vsm:VisualState x:Name="Selected"> <Storyboard> <ColorAnimation BeginTime="0" Storyboard.TargetName="Element" Storyboard.TargetProperty="(Line.Stroke).(SolidColorBrush.Color)" To="#88FFFF00" Duration="0:0:0.1" /> <DoubleAnimation BeginTime="0" Storyboard.TargetName="Element" Storyboard.TargetProperty="(Shape.StrokeThickness)" To="3" Duration="00:00:0.1" /> </Storyboard> </vsm:VisualState> </vsm:VisualStateGroup> </vsm:VisualStateManager.VisualStateGroups> <Path x:Name="Element" Stroke="Blue" StrokeThickness="2" /> </Grid> </ControlTemplate> </esri:LineSymbol.ControlTemplate> </esri:LineSymbol> |
Полигон <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Fill).(Color)" To="#8800FFFF" Duration="0:0:0.1" /> ... <Path x:Name="Element" Stroke="Blue" Fill="#880000FF" StrokeStartLineCap="Round" StrokeThickness="2" StrokeLineJoin="Round" StrokeEndLineCap="Round" /> Полилиния <ColorAnimation BeginTime="0" Storyboard.TargetName="Element" Storyboard.TargetProperty="(Line.Stroke).(SolidColorBrush.Color)" To="#88FFFF00" Duration="0:0:0.1" /> ... <Path x:Name="Element" Stroke="Blue" StrokeThickness="2" /> |
original post http://vasnake.blogspot.com/2013/02/synchronizing-map-and-data-grid.html
Posted by Valentin at 16:58 0 comments
Labels: ArcGIS, web-develop
2013-02-21
ArcGIS web maps
original post http://vasnake.blogspot.com/2013/02/arcgis-web-maps.html
Posted by Valentin at 19:18 2 comments
Labels: ArcGIS, web-develop
2013-02-20
FeatureServer Using GeoAlchemy
original post http://vasnake.blogspot.com/2013/02/featureserver-using-geoalchemy.html
Posted by Valentin at 19:08 0 comments
2013-02-19
Лень — двигатель прогресса
original post http://vasnake.blogspot.com/2013/02/blog-post_19.html
Posted by Valentin at 17:00 0 comments
Labels: language
2013-02-18
Итоги
original post http://vasnake.blogspot.com/2013/02/blog-post_18.html
Posted by Valentin at 18:16 2 comments
Labels: windsurfing
2013-02-15
GraphicsLayer attribute table
var gl = new GraphicsLayer() {
ID = layerID,
Renderer = new SimpleRenderer() {
Symbol = new SimpleMarkerSymbol()
},
RendererTakesPrecedence = false
};
MapApplication.Current.Map.Layers.Add(gl);
MapApplication.SetLayerName(gl, layerName);
var lr = new ESRI.ArcGIS.Client.FeatureLayer() { Url = lyrUrl, ProxyUrl = proxy };
MapApplication.Current.Map.Layers.Add(lr);
MapApplication.SetLayerName(lr, layerName);
var symbIFS = new ESRI.ArcGIS.Mapping.Core.Symbols.ImageFillSymbol() {
Source = "/Images/MarkerSymbols/Basic/RedTag.png",
Size = 28,
OriginX = 0.5, OriginY = 1
};
var gl = new GraphicsLayer() {
ID = layerID,
Renderer = new SimpleRenderer() {
Symbol = symbIFS
},
RendererTakesPrecedence = false
};
gl.Graphics = new GraphicCollection(marks);
gl.Initialize();
MapApplication.Current.Map.Layers.Add(gl);
MapApplication.SetLayerName(gl, layerName);
var lr = new ESRI.ArcGIS.Client.FeatureLayer() { Url = lyrUrl, ProxyUrl = proxy };
lr.OutFields.Add("*");
lr.Mode = FeatureLayer.QueryMode.OnDemand;
lr.Initialize();
MapApplication.Current.Map.Layers.Add(lr);
MapApplication.SetLayerName(lr, layerName);
original post http://vasnake.blogspot.com/2013/02/graphicslayer-attribute-table.html
Posted by Valentin at 17:20 2 comments
2013-02-14
Работаем коленями
Posted by Valentin at 18:19 2 comments
Labels: windsurfing
2013-02-13
Movieshell
original post http://vasnake.blogspot.com/2013/02/movieshell.html
Posted by Valentin at 15:31 0 comments
2013-02-12
Text editor vs IDE
Иногда в поле
зрения попадает непостижимое. Например,
некоторые на полном серьезе сравнивают
PyCharm
и Sublime Text. Но ведь
PyCharm это полновесная IDE, тогда как Sublime
Text это скриптованный текстовый редактор.
class VTest:
def callme(self, arg1='nothing'):
print arg1
def testfunc(testobj):
t = testobj # var t type VTest
t.call...?
Posted by Valentin at 16:10 0 comments
2013-02-11
Вернумшись
View Hilton Plaza, Hurghada, Egypt in a larger map
Posted by Valentin at 16:54 5 comments
Labels: windsurfing
2013-02-01
А доска, она как обувь, должна быть по ноге
original post http://vasnake.blogspot.com/2013/01/blog-post_3050.html
Posted by Valentin at 20:52 0 comments
Labels: windsurfing
Архив блога
-
▼
2013
(240)
-
▼
февраля
(15)
- Тыринг
- Flask and static files
- Простые радости
- Кто более цивилизован
- Synchronizing map and data grid interaction
- ArcGIS web maps
- FeatureServer Using GeoAlchemy
- Лень — двигатель прогресса
- Итоги
- GraphicsLayer attribute table
- Работаем коленями
- Movieshell
- Text editor vs IDE
- Вернумшись
- А доска, она как обувь, должна быть по ноге
-
▼
февраля
(15)