Data Science Can Only Help So Much
Data science is now a lot more mature than it was back in 2003 (the year when the SARS epidemic struck).
Data science is now a lot more mature than it was back in 2003 (the year when the SARS epidemic struck).
Coal, petroleum, natural gas… You probably guessed it: I am naming common examples of finite energy resources — finite being the operative word.
Just how long is 50 meters?
I am not a historian, but I read every now and then.
Today’s late-night ramblings are in regard to something that one cannot see, but undoubtedly exists nonetheless.
I could tell something must have gone wrong. The last stretches of the highway leading up to Tai Lam Tunnel — including the 3.8-kilometer tunnel itself — wer...
In the tail end of 2018, I built a prototype for a robot photographer. The goal was for it to one day serve as a photographer’s stunt double, so that photojo...
Late-night ramblings:
I have updated the About section of my website a little bit. It now includes some of the questions that I constantly ask myself and reflect upon:
In the past 3 years or so, I have been fortunate enough to garner a humble readership on Medium, publishing both technical and non-technical posts alike.


How did the 'process over product' concept affect the way you tackled the site redesigmn and rebuild?
I tried my best to stick to it, but I still found myself getting carried away with the aesthetics of my website from time to time. I realised that I was spending too much time worrying about what images to have on my index page, so focused on the 'process over product' concept and left them as simple placeholders.
What did you think about meditation before reading chapter 2?
I really liked the idea of meditation. I've tried to meditate a few times myself, but always find it difficult to not get distracted.
What new things have you learnt about meditation
I learnt that it's okay to get distracted! You just have to acknowledge the distraction, and draw your attention back to your breathing. The more you manage to focus your attention (even for a few seconds) the easier it will get in the future.
Did any of the suggested meditation techniques stand out to you?
If you have to react (for example, if you have an itch that needs scratching), then you should take five breaths before reacting. This is to "pracice creating space between stimulus and reaction." When you go to physically react, maintain mindfulness by bringing attention to the stimulus, create the intention of reacting, and finally the phyical reaction.


I hope the skills learned at the fellowship will help me create projects that will benefit MUA; whether it is creating a website or an app to keep track of the organization services or just an easier way for members to sign in during meetings. I also hope to grow personally and become more tech-savvy.


Hi I am Pri and I am 20 years old! One thing people know best about me is my love for food. I love eating and I especially love trying out different restaurants. Being an athlete, I had the advantage of eating a lot and not gaining that much weight too! Because I study in UP and live nearby, UP Town or Maginhawa is my place to go whenever I am hungry. Whenever I am with my friends or family we would always try out different types of food! I created this blog to show you a guide of restaurants I highly recommend!


|
librdpmux
0.2.0
Library to provide low-level hypervisor guest interaction capabilties outside the hypervisor.
|
#include <pixman.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "common.h"
#include "msgpack.h"
#include "nanomsg.h"
#include "queue.h"
Functions | |
| __PUBLIC void | mux_display_update (int x, int y, int w, int h) |
| __PUBLIC void | mux_display_switch (pixman_image_t *surface) |
| __PUBLIC void | mux_display_refresh () |
| __PUBLIC void | mux_out_loop () |
| __PUBLIC void * | mux_display_buffer_update_loop (void *arg) |
| __PUBLIC void * | mux_mainloop (void *arg) |
| __PUBLIC MuxDisplay * | mux_init_display_struct () |
| __PUBLIC void | mux_register_event_callbacks (InputEventCallbacks cb) |
Variables | |
| InputEventCallbacks | callbacks |
| global variable of the registered EventCallbacks. | |
| MuxDisplay * | display |
| Global display struct. | |
| __PUBLIC void* mux_display_buffer_update_loop | ( | void * | arg | ) |
This function manages display buffer updates. It is designed to be a thread runloop, and should be dispatched as a runnable inside a separate thread during library initialization. Its function prototype matches what pthreads et al. expect.
| arg | Not at all used, just there to satisfy pthreads. |
| __PUBLIC void mux_display_refresh | ( | ) |
Public API function, to be called when the framebuffer display refreshes.
| __PUBLIC void mux_display_switch | ( | pixman_image_t * | surface | ) |
Public API function, to be called if the framebuffer surface changes in a user-facing way. For example, when the display buffer resolution changes.
| surface | The new framebuffer display surface. |
| __PUBLIC void mux_display_update | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
Public API function designed to be called when a region of the framebuffer changes. For example, when a window moves or an animation updates on screen.
The function accepts four parameters [(x, y) w x h] that together define the rectangular bounding box of the changed region in pixels.
| x | X coordinate of the top-left corner of the changed region. |
| y | Y-coordinate of the top-left corner of the changed region. |
| w | Width of the changed region, in px. |
| h | Height of the changed region, in px. |
| __PUBLIC MuxDisplay* mux_init_display_struct | ( | ) |
This function initializes the data structures used by the library. It also returns a pointer to the ShimDisplay struct initialized, which is defined as an opaque type in the public header so that client code can't mess with it.
| __PUBLIC void* mux_mainloop | ( | void * | arg | ) |
This function manages inbound communication to the library. It is designed to be a thread runloop, and should be dispatched as a runnable inside a separate thread during library initialization. Its function prototype matches what pthreads et al. expect.
| arg | void pointer to anything. Not used by the function in any way, just there to satisfy pthreads. |
| __PUBLIC void mux_out_loop | ( | ) |
This function manages outbound communication. It is designed to be a thread runloop, and should be dispatched as a runnable inside a separate thread during library initialization. Its function prototype matches what pthreads et al. expect.
| __PUBLIC void mux_register_event_callbacks | ( | InputEventCallbacks | cb | ) |
Register mouse and keyboard event callbacks using this function. The function pointers you register will be called when mouse and keyboard events are received for you to handle and process.


Math Finder
Print for your kids. Get a pen[cil]. Step away from the computer. Circle the problems. Share with your friends.
?
addition problems. Can you find them all?
Loading...
Rows:
Columns:
Puzzle #
Generate/Reset
Next
Random
Show Hints
Show Matches
Problems to find


Angle(inside joke, don't worry if you don't get it)
Some stuff about me
My blog
My github
Technological Educational Institute of Thessaloniki, Department of Information Technology
Email


--- title: Title keywords: fastai sidebar: home_sidebar summary: "summary" description: "summary" ---
nb2script
nb2script(nb_name, export_name)
nb_name
export_name
Finds cells starting with #export and puts them into a new module
#export
from nbdev.export import * notebook2script()
Converted 00_core.ipynb. Converted index.ipynb.


|
Solar
|
Loads 2D squared marker based on a black and white grid. UUID: 12d592ff-aa46-40a6-8d65-7fbfb382d60b
More...
#include <IMarker2DSquaredBinary.h>
Public Member Functions | |
| virtual const datastructure::SquaredBinaryPattern & | getPattern () const =0 |
| Return the pattern of the 2D squared marker. More... | |
| Public Member Functions inherited from SolAR::api::input::files::IMarker2DSquared | |
| virtual void | setSize (const float &width, const float &height)=0 |
| define the size of the 2D Marker according to the user-defined unit (the same used for the camera calibration) More... | |
| virtual float | getWidth () const =0 |
| Return the width of the 2D Marker. More... | |
| virtual float | getHeight () const =0 |
| Return the height of the 2D Marker. More... | |
| virtual const datastructure::Sizef & | getSize () const =0 |
| Return the width and height of the 2D Marker. More... | |
| virtual FrameworkReturnCode | getImageCorners (std::vector< datastructure::Point2Df > &imageCorners) const =0 |
| Provide the position of 2D corners in image coordinate system. More... | |
| virtual FrameworkReturnCode | getWorldCorners (std::vector< datastructure::Point3Df > &worldCorners) const =0 |
| Provide the position of 3D corners in world coordinate system. More... | |
| Public Member Functions inherited from SolAR::api::input::files::IMarker | |
| virtual FrameworkReturnCode | loadMarker ()=0 |
| Load a specific marker and its features (size, descriptors..). More... | |
Loads 2D squared marker based on a black and white grid. UUID: 12d592ff-aa46-40a6-8d65-7fbfb382d60b
|
pure virtual |
Return the pattern of the 2D squared marker.


Type your flashcards in this way: "mothers die M\utter". After each flashcard, make the end of line and separate the phrase from the word by two spaces. The generated flashdards are compatible with this app.


The International Image Interoperability Format is described formally here http://library.stanford.edu/iiif/image-api/.
The IIIF API specifies a web service that returns an image in response to a standard http or https request. The URL can specify the region, size, rotation, quality characteristics and format of the requested image. A URL can also be constructed to request basic technical information about the image to support client applications. The IIIF API was conceived of to facilitate systematic reuse of image resources in digital image repositories maintained by cultural heritage organizations. The API could be adopted by any image repository or service, and can be used to retrieve static images in response to a properly constructed URL.
OpenSeadragon has added support for IIIF thanks to several of its specifications authors as well as the gist provided by Jon Stroop at this gist.
Inline configuration is very straight forward. The tile source type is identified by it's profile attribute an must specify the url of the tile service with the tilesUrl attribute.
In this example we also specified the 'preserveViewport' option to retain the viewport zoom and position when changing pages.
In order to make this feel just a little more like a basic book turner, we are adding a useful combination of other options that help to constrain the viewport.
OpenSeadragon({ ... preserveViewport: true, visibilityRatio: 1, minZoomLevel: 1, defaultZoomLevel: 1, tileSources: [{ "identifier": "pudl0001/4609321/s42/00000001", "width": 2617, "height": 3600, "scale_factors": [1, 2, 3, 4, 5], "tile_width": 256, "tile_height": 256, "formats": [ "jpg", "png" ], "qualities": ["native", "bitonal", "grey", "color"], "profile": "http://library.stanford.edu/iiif/image-api/compliance.html#level1", "image_host": "http://img.princeton.edu/loris" }...,{ ...//more tile sources }] ... });
The following example info.json and info.xml documents are non-normative and include a property image_host which allows the info.json and info.xml to be hosted from a different server than the images are served from.
Below is a sample IIIF info file formatted as XML.
<?xml version="1.0" encoding="UTF-8"?> <info xmlns="http://library.stanford.edu/iiif/image-api/ns/"> <identifier>pudl0001/4609321/s42/00000004</identifier> <width>2717</width> <height>3600</height> <scale_factors> <scale_factor>1</scale_factor> <scale_factor>2</scale_factor> <scale_factor>3</scale_factor> <scale_factor>4</scale_factor> <scale_factor>5</scale_factor> </scale_factors> <tile_width>256</tile_width> <tile_height>256</tile_height> <formats> <format>jpg</format> <format>png</format> </formats> <qualities> <quality>native</quality> <quality>bitonal</quality> <quality>grey</quality> <quality>color</quality> </qualities> <profile>http://library.stanford.edu/iiif/image-api/compliance.html#level1</profile> <image_host>http://img.princeton.edu/loris</image_host> </info>
And the equivalent sample IIIF info file formatted as JSON.
{ "identifier" : "pudl0001/4609321/s42/00000003", "width": 2694, "height": 3600, "scale_factors" : [1, 2, 3, 4, 5], "tile_width" : 256, "tile_height" : 256, "formats" : [ "jpg", "png" ], "qualities" : ["native", "bitonal", "grey", "color"], "profile" : "http://library.stanford.edu/iiif/image-api/compliance.html#level1", "image_host": "http://img.princeton.edu/loris" }
OpenSeadragon({ ... tileSources: [ "/openseadragon/examples/images/loris/pudl0001/4609321/s42/00000003/info.json", "/openseadragon/examples/images/loris/pudl0001/4609321/s42/00000004/info.xml" ], ... });


else: return pull(df, cw, left_on, right_on, how)
# 2iiii. Filter between matched records and not.
def filterEmpties(df, cw, left_on, right_on, how, interactive):
if how in ['left', 'right', 'outer', 'inner']: how = right_on
nomatch = df.loc[df[how] == 'empty']
nomatch = nomatch.sort_values(by=left_on, ascending=True)
if nomatch.shape[0] > 0:
# Do the same thing with our foreign tracts
if(interactive):
print('\n Local Column Values Not Matched ')
print(nomatch[left_on].unique() )
print(len(nomatch[left_on]))
print('\n Crosswalk Unique Column Values')
print(cw[right_on].unique() )
# Create a new column with the tracts value mapped to its corresponding value from the crossswalk
df[how].replace('empty', np.nan, inplace=True)
df.dropna(subset=[how], inplace=True)
# cw = cw.sort_values(by=how, ascending=True)
return df
# 0. Retrieve the left and right dataset.
if (interactive): print('---Handling Left Dataset Options---');
left_ds, left_col = Intake.getAndCheck(left_ds, left_col, interactive)
if (interactive): print('Left column:', left_col)
if (interactive): print('\n---Handling Right Dataset Options---');
right_ds, right_col = Intake.getAndCheck(right_ds, right_col, interactive)
if (interactive): print('Right column:', left_col)
if (interactive): print(f"\n---Ensuring Compatability Between merge_how (val: '{merge_how}') and the Right Dataset---");
merge_how = checkMergeHow(right_ds, merge_how, interactive)
if (interactive): print("Column or ['inner','left','right','outer'] value: ", merge_how)
# 1. Retrieve the crosswalk dataset: check left-cw, right-cw. try coercing.
if (interactive): print(f'\n---Checking Crosswalk Dataset Options---')
# if its a df
if (not Intake.isPandas(crosswalk_ds)):
default = str(crosswalk_ds).lower() == 'false'
# If the user used the the default crosswalk value 'False' as them if they want to use one.
if (default and interactive ): crosswalk_ds = input("\nProvide a Crosswalk? ( URL/ PATH or 'NO'/ / 'FALSE' ) ") or False
# Check if user opted to not use a crosswalk
use_crosswalk = not ((str(crosswalk_ds).lower() in ["no", '', 'none', 'false']))
if (use_crosswalk):
crosswalk_ds, crosswalk_left_col = Intake.getAndCheck(crosswalk_ds, crosswalk_left_col, interactive)
crosswalk_ds, crosswalk_right_col = Intake.getAndCheck(crosswalk_ds, crosswalk_right_col, interactive)
# 3. Coerce all datasets for Merge.
if ( Intake.isPandas(crosswalk_ds) ):
print('crosswalk_left_col',crosswalk_left_col)
left_ds, crosswalk_ds, crosswalk_left_col, status = coerceForMerge( 'Left->Crosswalk', left_ds, crosswalk_ds, left_col, crosswalk_left_col, interactive )
right_ds, crosswalk_ds, crosswalk_right_col, status = coerceForMerge( 'Right->Crosswalk',right_ds, crosswalk_ds, right_col, crosswalk_right_col, interactive )
else:
left_ds, right_ds, right_col, status = coerceForMerge('Left->Right', left_ds, right_ds, left_col, right_col, interactive )
if (interactive): print('\n---All checks complete. Status: ', status, '---\n');
if ( not status ):
if (interactive):print('Merge Incomplete. Thank you!');
return False;
else:
if (Intake.isPandas(crosswalk_ds)):
left_ds = mergeAndFilter('LEFT->CROSSWALK', left_ds, crosswalk_ds, left_col, crosswalk_left_col, crosswalk_right_col, interactive)
left_col = crosswalk_right_col
left_ds = mergeAndFilter('LEFT->RIGHT', left_ds, right_ds, left_col, right_col, merge_how, interactive)
return left_dsFunction Explanation
Input(s):
- Dataset url
- Crosswalk Url
- Right On
- Left On
- How
- New Filename
Output: File
How it works:
-
Read in datasets
-
Perform Merge
-
If the 'how' parameter is equal to ['left', 'right', 'outer', 'inner']
-
- then a merge will be performed.
-
If a column name is provided in the 'how' parameter
-
- then that single column will be pulled from the right dataset as a new column in the left_ds.
Function Diagrams
Diagram the mergeDatasets()
mergeDatasets Flow Chart
Gannt Chart mergeDatasets()
Sequence Diagram mergeDatasets()
Function Examples
# from VitalSigns.acsDownload import retrieve_acs_data
# from dataplay.geoms import readInGeometryData Interactive Example 1. Merge Esri Data
# Table: Household Childhood Poverty
# Hhchpov = Intake.getData("https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson", interactive=True)
# Hhchpov = Hhchpov[['CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17', 'hhchpov18']]
left_ds = "https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson"
left_col = 'CSA2010'
# Table: Household Poverty
# Hhpov = Intake.getData("https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson", interactive=True)
# Hhpov = Hhpov[['CSA2010', 'hhpov15', 'hhpov16', 'hhpov17', 'hhpov18']]
right_ds = "https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson"
right_col='CSA2010'
merge_how = 'outer'
interactive = False
merged_df = mergeDatasets(left_ds=left_ds, right_ds=right_ds, crosswalk_ds='no',
left_col=left_col, right_col=right_col,
crosswalk_left_col = False, crosswalk_right_col = False,
merge_how=merge_how, # left right or columnname to retrieve
interactive=interactive)
merged_df.head()
|
OBJECTID_x |
CSA2010 |
hhchpov15 |
hhchpov16 |
hhchpov17 |
hhchpov18 |
hhchpov19 |
Shape__Area_x |
Shape__Length_x |
geometry_x |
OBJECTID_y |
hhpov15 |
hhpov16 |
hhpov17 |
hhpov18 |
hhpov19 |
Shape__Area_y |
Shape__Length_y |
geometry_y |
| 0 |
1 |
Allendale/Irving... |
38.93 |
34.73 |
32.77 |
35.27 |
32.60 |
6.38e+07 |
38770.17 |
POLYGON ((-76.65... |
1 |
24.15 |
21.28 |
20.70 |
23.00 |
19.18 |
6.38e+07 |
38770.17 |
POLYGON ((-76.65... |
| 1 |
2 |
Beechfield/Ten H... |
19.42 |
21.22 |
23.92 |
21.90 |
15.38 |
4.79e+07 |
37524.95 |
POLYGON ((-76.69... |
2 |
11.17 |
11.59 |
10.47 |
10.90 |
8.82 |
4.79e+07 |
37524.95 |
POLYGON ((-76.69... |
| 2 |
3 |
Belair-Edison |
36.88 |
36.13 |
34.56 |
39.74 |
41.04 |
4.50e+07 |
31307.31 |
POLYGON ((-76.56... |
3 |
18.61 |
19.59 |
20.27 |
22.83 |
22.53 |
4.50e+07 |
31307.31 |
POLYGON ((-76.56... |
| 3 |
4 |
Brooklyn/Curtis ... |
45.01 |
46.45 |
46.41 |
39.89 |
41.39 |
1.76e+08 |
150987.70 |
MULTIPOLYGON (((... |
4 |
28.36 |
26.33 |
24.21 |
21.54 |
24.60 |
1.76e+08 |
150987.70 |
MULTIPOLYGON (((... |
| 4 |
5 |
Canton |
5.49 |
2.99 |
4.02 |
4.61 |
4.83 |
1.54e+07 |
23338.61 |
POLYGON ((-76.57... |
5 |
3.00 |
2.26 |
3.66 |
2.05 |
2.22 |
1.54e+07 |
23338.61 |
POLYGON ((-76.57... |
Example 2 ) Get CSA and Geometry with a Crosswalk using 3 links
# Our download function will use Baltimore City's tract, county and state as internal paramters
# Change these values in the cell below using different geographic reference codes will change those parameters
tract = '*'
county = '510' # '059' # 153 '510'
state = '24' #51
# Specify the download parameters the function will receieve here
tableId = 'B19049' # 'B19001'
year = '17'
saveAcs = False import pandas as pd
import IPython
# from IPython.core.display import HTML
IPython.core.display.HTML("")
# state, county, tract, tableId, year, saveOriginal, save
left_df = retrieve_acs_data(state, county, tract, tableId, year, saveAcs)
left_df.head(1) Number of Columns 5
|
B19049_001E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Total |
B19049_002E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Householder_under_25_years |
B19049_003E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Householder_25_to_44_years |
B19049_004E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Householder_45_to_64_years |
B19049_005E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Householder_65_years_and_over |
state |
county |
tract |
| NAME |
|
|
|
|
|
|
|
|
| Census Tract 2710.02 |
38358 |
-666666666 |
34219 |
40972 |
37143 |
24 |
510 |
271002 |
# Table: FDIC Baltimore Banks
# Columns: Bank Name, Address(es), Census Tract
left_ds = left_df
left_col = 'tract'
# Table: Crosswalk Census Communities
# 'TRACT2010', 'GEOID2010', 'CSA2010'
crosswalk_ds = 'https://raw.githubusercontent.com/bniajfi/bniajfi/main/CSA-to-Tract-2010.csv'
crosswalk_left_col = 'TRACTCE10'
crosswalk_right_col = 'CSA2010'
# Table:
right_ds = 'https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson'
right_col = 'CSA2010'
interactive = False
merge_how = 'outer'
merged_df_geom = mergeDatasets(left_ds=left_ds, right_ds=right_ds, crosswalk_ds=crosswalk_ds,
left_col=left_col, right_col=right_col,
crosswalk_left_col = crosswalk_left_col, crosswalk_right_col = crosswalk_right_col,
merge_how=merge_how, # left right or columnname to retrieve
interactive=interactive)
merged_df_geom.head()crosswalk_left_col TRACTCE10
|
B19049_001E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Total |
B19049_002E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Householder_under_25_years |
B19049_003E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Householder_25_to_44_years |
B19049_004E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Householder_45_to_64_years |
B19049_005E_Median_household_income_in_the_past_12_months_(in_2017_inflation-adjusted_dollars)_--_Householder_65_years_and_over |
state |
county |
tract |
CSA2010 |
OBJECTID |
hhpov15 |
hhpov16 |
hhpov17 |
hhpov18 |
hhpov19 |
Shape__Area |
Shape__Length |
geometry |
| 0 |
38358 |
-666666666 |
34219 |
40972 |
37143 |
24 |
510 |
271002 |
Greater Govans |
20.0 |
21.32 |
19.27 |
19.53 |
17.99 |
20.50 |
2.27e+07 |
22982.13 |
POLYGON ((-76.59... |
| 1 |
44904 |
-666666666 |
51324 |
42083 |
37269 |
24 |
510 |
90100 |
Greater Govans |
20.0 |
21.32 |
19.27 |
19.53 |
17.99 |
20.50 |
2.27e+07 |
22982.13 |
POLYGON ((-76.59... |
| 2 |
35707 |
2499 |
42292 |
37361 |
29191 |
24 |
510 |
271001 |
Greater Govans |
20.0 |
21.32 |
19.27 |
19.53 |
17.99 |
20.50 |
2.27e+07 |
22982.13 |
POLYGON ((-76.59... |
| 3 |
42231 |
-666666666 |
46467 |
45484 |
18750 |
24 |
510 |
260402 |
Claremont/Armistead |
9.0 |
21.27 |
23.59 |
24.00 |
24.64 |
23.88 |
6.12e+07 |
40104.42 |
POLYGON ((-76.52... |
| 4 |
31657 |
20800 |
26074 |
60959 |
37396 |
24 |
510 |
260403 |
Claremont/Armistead |
9.0 |
21.27 |
23.59 |
24.00 |
24.64 |
23.88 |
6.12e+07 |
40104.42 |
POLYGON ((-76.52... |
Here we can save the data so that it may be used in later tutorials.
# string = 'test_save_data_with_geom_and_csa'
# merged_df.to_csv(string+'.csv', encoding="utf-8", index=False, quoting=csv.QUOTE_ALL)Example 3: Ran Alone
mergeDatasets( ).head(1)---Handling Left Dataset Options---
Getting Data From: False
Error: Try Again? ( URL/ PATH or 'NO'/ ) https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Getting Data From: https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Invalid column given: False
Index(['OBJECTID', 'CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17',
'hhchpov18', 'hhchpov19', 'Shape__Area', 'Shape__Length', 'geometry'],
dtype='object')
Please enter a new column fom the list above.
Column Name: CSA2010
Left column: CSA2010
---Handling Right Dataset Options---
Getting Data From: False
Error: Try Again? ( URL/ PATH or 'NO'/ ) https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Getting Data From: https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Invalid column given: False
Index(['OBJECTID', 'CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17',
'hhchpov18', 'hhchpov19', 'Shape__Area', 'Shape__Length', 'geometry'],
dtype='object')
Please enter a new column fom the list above.
Column Name: CSA2010
Right column: CSA2010
---Ensuring Compatability Between merge_how (val: 'False') and the Right Dataset---
Invalid merge column given.
Please select a value from either list
1) Pull A single column from the right dataset: Index(['OBJECTID', 'CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17',
'hhchpov18', 'hhchpov19', 'Shape__Area', 'Shape__Length', 'geometry'],
dtype='object')
OR
2) Specify a type of join operation: (‘left’, ‘right’, ‘outer’, ‘inner’, columnName)
Column Name: inner
Column or ['inner','left','right','outer'] value: inner
---Checking Crosswalk Dataset Options---
Provide a Crosswalk? ( URL/ PATH or 'NO'/ / 'FALSE' )
---Casting Datatypes from-to: Left->Right Datasets---
Before Casting:
-> Column One: CSA2010 object
-> Column Two: CSA2010 object
After Casting:
-> Column One: CSA2010 object
-> Column Two: CSA2010 object
---All checks complete. Status: True ---
---PERFORMING MERGE : LEFT->RIGHT---
Column One : CSA2010 object
How: inner
Column Two : CSA2010 object
|
OBJECTID_x |
CSA2010 |
hhchpov15_x |
hhchpov16_x |
hhchpov17_x |
hhchpov18_x |
hhchpov19_x |
Shape__Area_x |
Shape__Length_x |
geometry_x |
OBJECTID_y |
hhchpov15_y |
hhchpov16_y |
hhchpov17_y |
hhchpov18_y |
hhchpov19_y |
Shape__Area_y |
Shape__Length_y |
geometry_y |
| 0 |
1 |
Allendale/Irving... |
38.93 |
34.73 |
32.77 |
35.27 |
32.6 |
6.38e+07 |
38770.17 |
POLYGON ((-76.65... |
1 |
38.93 |
34.73 |
32.77 |
35.27 |
32.6 |
6.38e+07 |
38770.17 |
POLYGON ((-76.65... |
mergeDatasets().head(1)---Handling Left Dataset Options---
Getting Data From: False
Error: Try Again? ( URL/ PATH or 'NO'/ ) https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Getting Data From: https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Invalid column given: False
Index(['OBJECTID', 'CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17',
'hhchpov18', 'hhchpov19', 'Shape__Area', 'Shape__Length', 'geometry'],
dtype='object')
Please enter a new column fom the list above.
Column Name: CSA2010
Left column: CSA2010
---Handling Right Dataset Options---
Getting Data From: False
Error: Try Again? ( URL/ PATH or 'NO'/ ) https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Getting Data From: https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Invalid column given: False
Index(['OBJECTID', 'CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17',
'hhchpov18', 'hhchpov19', 'Shape__Area', 'Shape__Length', 'geometry'],
dtype='object')
Please enter a new column fom the list above.
Column Name: CSA2010
Right column: CSA2010
---Ensuring Compatability Between merge_how (val: 'False') and the Right Dataset---
Invalid merge column given.
Please select a value from either list
1) Pull A single column from the right dataset: Index(['OBJECTID', 'CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17',
'hhchpov18', 'hhchpov19', 'Shape__Area', 'Shape__Length', 'geometry'],
dtype='object')
OR
2) Specify a type of join operation: (‘left’, ‘right’, ‘outer’, ‘inner’, columnName)
Column Name: inner
Column or ['inner','left','right','outer'] value: inner
---Checking Crosswalk Dataset Options---
Provide a Crosswalk? ( URL/ PATH or 'NO'/ / 'FALSE' ) https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Getting Data From: https://services1.arcgis.com/mVFRs7NF4iFitgbY/ArcGIS/rest/services/Hhchpov/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=pgeojson
Invalid column given: False
Index(['OBJECTID', 'CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17',
'hhchpov18', 'hhchpov19', 'Shape__Area', 'Shape__Length', 'geometry'],
dtype='object')
Please enter a new column fom the list above.
Column Name: CSA2010
Invalid column given: False
Index(['OBJECTID', 'CSA2010', 'hhchpov15', 'hhchpov16', 'hhchpov17',
'hhchpov18', 'hhchpov19', 'Shape__Area', 'Shape__Length', 'geometry'],
dtype='object')
Please enter a new column fom the list above.
Column Name: CSA2010
crosswalk_left_col CSA2010
---Casting Datatypes from-to: Left->Crosswalk Datasets---
Before Casting:
-> Column One: CSA2010 object
-> Column Two: CSA2010 object
After Casting:
-> Column One: CSA2010 object
-> Column Two: CSA2010 object
---Casting Datatypes from-to: Right->Crosswalk Datasets---
Before Casting:
-> Column One: CSA2010 object
-> Column Two: CSA2010 object
After Casting:
-> Column One: CSA2010 object
-> Column Two: CSA2010 object
---All checks complete. Status: True ---
---PERFORMING MERGE : LEFT->CROSSWALK---
Column One : CSA2010 object
How: CSA2010
Column Two : CSA2010 object
---PERFORMING MERGE : LEFT->RIGHT---
Column One : CSA2010 object
How: inner
Column Two : CSA2010 object
|
OBJECTID_x |
CSA2010 |
hhchpov15_x |
hhchpov16_x |
hhchpov17_x |
hhchpov18_x |
hhchpov19_x |
Shape__Area_x |
Shape__Length_x |
geometry_x |
OBJECTID_y |
hhchpov15_y |
hhchpov16_y |
hhchpov17_y |
hhchpov18_y |
hhchpov19_y |
Shape__Area_y |
Shape__Length_y |
geometry_y |
| 0 |
1 |
Allendale/Irving... |
38.93 |
34.73 |
32.77 |
35.27 |
32.6 |
6.38e+07 |
38770.17 |
POLYGON ((-76.65... |
1 |
38.93 |
34.73 |
32.77 |
35.27 |
32.6 |
6.38e+07 |
38770.17 |
POLYGON ((-76.65... |


Adds a legend to or removes a legend from a chart. This is also equivalent to clicking the Legend button on the Chart toolbar when a chart is active.
Syntax
LEGEND(logical)
Logical is a logical value specifying which command LEGEND is equivalent to.
If logical is TRUE or omitted, LEGEND is equivalent to the Legend command on the Insert menu.
If logical is FALSE, LEGEND is equivalent to the Delete command on the Edit menu.
If logical is FALSE and the active chart has no legend, LEGEND takes no action.
Related Function
FORMAT.LEGEND Determines the position and orientation of the legend on a chart
Return to index


One of the most stressful questions a new mother confronts is, "Who's going to take care of my baby when I go back to work?" Helping hands provides help to mothers to find the most suitable child care service for their children in terms of both price and location, so that mothers can return to workforce with less worries
Find Out MoreScroll on the map to get information about the child care services in that location
Darker colour areas are having higher childcare cost
Data sourced from Department of Education and Training (Child Care Administrative Data),Australian Bureau of Statistics (SA3 Regions and Census 2016 Data)
Scroll the pointer to see the average daily fee for childcare around all the suburbs in greater Melbourne White colour suburbs are having no information at this moment
Darker colour areas are having higher childcare cost
Having any suggestion or idea? Give us a call or send us an email and we will get back to you as soon as possible!
0469-859-511
ymao50@student.monash.edu


--- layout: newsstory title: CAN WE START AGAIN PLEASE? match: Yeltz 1 Newport 3 ---
I know my results in Anorak Corner only go back 6 years or so, but I really can't remember such a bad start to the season.
The latest disappointment was a 3-1 loss at The Grove to Newport. They took the lead just before half-time, and then got a second with 20 minutes to go. A goal from Woody promised a tree-men-dous comeback, but a late Newport third clinched all three points for the visitors, and left us in a very worrying 20th place . Not surprisingly, we've got the honour of being the league's lowest goal scorers with a mighty two. :-(
Saturday brings a long trip down to Weymouth , who've also had a pretty poor start. It's going to be a thriller.
Halesowen Town: Quy; Wood, Hines, Comyn, Ford, Cartwright, Crisp, Mansell (Collins 65), Griffiths, Payne, Dodd (Piggott 65). Subs: Owen
Newport County: Mountain; Robison, Benton, Davies, Kemp, Thorne, Rose, Donovan, Hunt, Sheppard, Flynn (Bale 82). Subs: Beckett, James
Booked: Collins Referee: M. Forder (Hereford) Attendance: 532
Halesowen's dismal start to the season continued as they were well beaten by a lively Welsh outfit. Newport were quick off the mark with Garry Sheppard stabbing the ball just wide in the 5th minute before seeing his shot hit the post three minutes later when Andy Quy in the Halesowen goal failed to gather his shot cleanly. Halesowen were lacking penetration up front but Michael Griffiths did turn to fire a 15 yard shot at Pat Mountain in the 11th minute.
Quy made two excellent blocking saves from Hunt and Sheppard as Newport continued to dominate the start of the second half and saved Halesowen's blushes again in the 63rd minute when Sheppard broke free of the home defence with Jason Donovan and Mike Flynn unable to turn the follow up home. Newport went two goals ahead in the 65th minute when Donovan broke through the heart of the Halesowen defence again but this time made no mistake when clear on goal.
Halesowen eventually pulled a goal back in the 82nd minute when a free kick from Les Hines was met by the head of Phil Wood at the far post. However, Newport made the points safe three minutes from time when Sheppard turned to drill the ball past Quy from 20 yards.


With webnote, you can annotate anything you want: from research papers, news articles, PDFs, textbooks, and anything on the web!
Ever wanted to share your notes and annotations with your research or study group? Now you can with webnote, which can seamlessly sync selected notes across multiple users.
With webnote, now you can find news articles and research papers related to what you're annotating. Highlighting a phrase or a concept will display recent papers and articles related to your topic!
Stanford '22
FemGen Major
Stanford '21
SymSys Major
Stanford '22
CS Major
Stanford '22
MCS Major


CDT Publications
Index
Policy Posts
Position Papers & Testimony
Working Group Reports
Annual Reports
CDT Policy Posts
CDT Policy Posts are the regular news publication of the Center for Democracy and
Technology. They are designed to deliver accurate, up-to-date information on public policy
issues affecting civil liberties online. CDT's Policy Posts a leading resource for policy makers, press, industry representatives, students, and others who are interested in legal and policy issues affecting the Internet and other interactive media.
| Volume 3: 1997 | Volume 2: 1996 | Volume 1: 1995 |
Volume 3: 1997
- Policy Post 3.01 -- January 17, 1997
FBI Issues Scaled Back Surveillance Capacity Notice -- Cost and Capability Issues Remain
On Tuesday, January 14, 1997, the FBI issued a revised notice of proposed
surveillance capacity as required by the 1994 Communications Assistance for
Law Enforcement Act (CALEA - a.k.a. Digital Telephony). The notice details
projected increases in law enforcement wiretapping and other electronic
surveillance activity in the coming years.
Volume 2: 1996
- Policy Post 2.38 -- November 18, 1996
President Takes First Steps Towards Clipper 3.1.1
- Policy Post 2.36 -- October 22, 1996
Congress Promises Action on Encryption Next Year
- Policy Post 2.35 -- October 4, 1996
Latest Admin Crypto Policy Pushes to Key Escrow
- Policy Post 2.34 -- September 26, 1996
House Judiciary Comm. Holds Hearing on Crypto Bill
- Policy Post 2.33 -- September 25, 1996
FTC Recommends Changes to Protect Personal Info
- Policy Post 2.32 -- September 20, 1996
FBI Surveillance Demands Rejected on Privacy Grounds
- Policy Post 2.31 -- September 16, 1996
Join Rep. Eshoo Online, Tues. 9/16 at 8:00 EDT
- Policy Post 2.30 -- August 16, 1996
New Electronic Health Information Provisions Pose Privacy Risks
- Policy Post 2.29 -- August 1, 1996
Clinton Administration, Congress Propose Sweeping Anti-Terrorism Initiatives
- Policy Post 2.28 -- July 21, 1996
FBI Director to Testify at Senate Crypto Hearing; Netizens Can Participate in Hearing Live Online
- Policy Post 2.26 -- June 28, 1996
Senate Encryption Hearing - Sea Change in Policy Debate
- Policy Post 2.25 -- June 21, 1996
June 26 Senate Encryption Hearing to be "Cybercast" Live
- Policy Post 2.24 -- June 11, 1996
Join Sen. Burns online TONIGHT (6/11), 10pm EDT
- Policy Post 2.22 -- May 30, 1996
NRC Report Calls Admin Crypto Policy Into Question
- Policy Post 2.21 -- May 30, 1996
Your Privacy Online: CDT Unveils Demo & Clearinghouse
- Policy Post 2.20 -- May 22, 1996
Clinton Administration Floats Clipper III Draft
- Policy Post 2.19 -- May 17, 1996
27 Representatives Urge President Clinton to Abandon Key-Escrow Encryption Policy
- Policy Post 2.18 -- May 13, 1996
Join Sen. Burns online TONIGHT (5/13) at 9:00 ET
- Policy Post 2.17 -- May 9, 1996
CDT Urges FCC to Avoid Regulating "Internet Telephony"
- Policy Post 2.16 -- May 7, 1996
Senator Burns Goes Online to Discuss Crypto Bill
- Policy Post 2.15 -- May 2, 1996
Legislation Challenges Clinton's Grip on US Crypto Policy
- Policy Post 2.13 -- March 29, 1996
Net-Friendly Legislators Announce Internet Caucus Controls
- Policy Post 2.12 -- March 28, 1996
Sen. Burns Announces New Bill To Lift Crypto Export Controls
- Policy Post 2.11 -- March 19, 1996
CDT Proposes Changes to Improve Med-Privacy Bill
- Policy Post 2.10 -- March 14, 1996
DEADLINE EXTENDED to join CDA legal challenge
- Policy Post 2.08 -- March 1, 1996
Citizens Internet Empowerment Coalition Files Motion to Overturn CDA
- Policy Post 2.07 -- February 26, 1996
Broad Coalition Launches Court Challenge to CDA, Individual Internet Users Invited to Join
- Policy Post 2.05 -- February 1, 1996
Congress Passes CDA, CDT, Others, Plan Court Challenge
- Policy Post 2.04 -- February 1, 1996
Congress About to Vote on Final Telecomm Bill & CDA
- Policy Post 2.03 -- January 17, 1996
FBI Fails To Meet Public Accountability Requirements of DigTel Law
- Policy Post 2.02 -- January 12, 1996
A Victory for PGP Author Phil Zimmermann, Fundamental Privacy Issues Remain
- Policy Post 2.01 -- January 4, 1996
Text and CDT Analysis of Latest Communications Decency Act
Volume 1: 1995
- Policy Post Number 29 -- November 9, 1995
Public Interest/Industry Coalition Says Administration's Crypto Policy Flawed, Pledges to Develop Alternative
- Policy Post Number 18 -- June 14, 1995
Senate Passes Unconstitutional Communications Decency Act -- Battle Moves to House
- Policy Post Number 17 -- June 14, 1995
Senator Harkin Amendment Would Remove Privacy Protection for Telephone Consumer Records
- Policy Post Number 16 -- June 6, 1995
Senator Dole To Introduce Sweeping Anti-Indecency Internet Censorship Bill
- Policy Post Number 14 -- May 26, 1995
New Draft of Exon Comm. Decency Act Proposed -- Still Unconstitutional
- Policy Post Number 13 -- May 12, 1995
CDT Testifies before Sen. Judiciary Subcommittee on the Availability of Bomb Making Material on the internet
- Policy Post Number 11 -- May 5, 1995
- Justice Department Says CDA Threatens First Amendment And Privacy Rights, Calls for Comprehensive Review
- Pro-Family Groups Express Concern over CDA
- Policy Post Number 8 -- April 7, 1995
Subject: Senator Leahy Introduces Alternative to Communications Decency Act
- Policy Post Number 7 -- March 30, 1995
Subject: Senator Leahy States Strong Opposition to Exon Legislation
- Policy Post Number 5 -- March 22, 1995
Subject: Senate Commerce Committee Adopts S. 314 as amendment to Senate Telecommunications reform Legislation
- Policy Post Number 4 -- March 16, 1995
Subject: Senator Leahy Expresses Serious Concern about S. 314 -- asks CDT led Coalition to explore alternatives
- Policy Post Number 3 -- March 3, 1995
Subject: Public Interest/Industry Coalition, led by CDT, sends letter to Senators Exon and Pressler. Message: Keep S. 314 off Fast Track.
- Policy Post Number 2 -- February 13, 1995
Subject: X9 Committee Agrees to Adopt 3xDES Based Security Standards
- Policy Post Number 1 -- February 9, 1995
Senator Exon Introduces Online Indecency Legislation (S. 314)
CDT Position Papers
Working Group Reports
- Interactive Working Group Report To Senator Leahy
The Interactive Working Group is a coalition of public interest and industry representatives concerned with government content regulations in interactive media. This report was completed at the request of Senator Leahy and describes currently available parental control technologies, the state of current law, and the constitutional issues raised by content regulations in new media.
CDT Annual Reports
CDT Home Page
Last Updated 01/23/97 || For More Information Write webmaster@cdt.org


Barra de herramientas del Nivel Superior
Esta barra de herramientas proporciona un conjunto de controles para la funcionalidad comúnmente utilizada.
Mode pulldown
This allows you to change the current mode.
Nueva Sesión
Este botón es el mismo que el elemento del Menú de archivos 'Nueva Sesión'.
Abrir Sesión
Este botón es el mismo que el elemento del Menú de archivos 'Abrir sesión'.
Sesión Persist
Este botón es el mismo que el File menu 'Persist Session...' menu item.
Sesión Snapshot
Este botón es el mismo que el File menu 'Snapshot Session' menu item.
Propiedades de Sesión
Este botón es el mismo que el File menu 'Properties...' menu item.
Opciones
Este botón es el mismo que el Tools menu 'Options...' menu item.
Dynamically switch the Look and Feel
This allows you to dynamically switch the Look and Feel which defines the appearance of the ZAP Desktop UI and includes support for 'Dark Modes'.
Show all tabs
This button reveals all of the hidden tabs.
Hide unpinned tabs
This button hides all of the tabs that are 'unpinned'. Tabs can be pinned and unpinned via the small 'pin' icon that is shown when the tab is selected.
Show Tab Names and Icons
This button toggles the displaying of the tab names.
Expand Sites Tab
This changes the display so that the 'tree' window containing the Sites tab extends for the full length of the
left hand side.
This will reduce the amount of space available to the 'information' window.
Expand Information Tabs
This changes the display so that the 'information' window extends for the full length of the bottom.
This will reduce the amount of space available to the 'tree' window.
Full Layout
This changes the display so that the selected tab takes up the full screen.
This is useful when using ZAP on small screens.
Request and Response Tabs Side by Side
This changes the display so that the request and response tabs are side by side.
This increases the information that can be displayed but means you cannot see both the request and response at the same time.
Request and Response Panels Side by Side in the Same Tab
This changes the display so that the request and response panels are shown side by side in the same tab.
This decreases the information that can be displayed but means you can see both the request and response at the same time.
Request Shown above Response
This changes the display so that the request panel is shown above the response panel.
This decreases the information that can be displayed but means you can see both the request and response at the same time.
Request and Response Panels Side by Side
This changes the display so that the request panel is shown to the left of the response panel.
This decreases the information that can be displayed but means you can see both the request and response at the same time.
/
Set / Unset Break on All Requests and Responses
This sets and unsets a 'global' breakpoint that will
trap and display the next request or response in the Break tab.
You can then change any part of the request or response that you want to and send it to the target
application by pressing either of the 'Step' or 'Continue' buttons.
Alternatively you can press the 'Drop' button to dispose of the request or response.
You can switch between a single 'combined' break button and separates ones for requests and responses via the
Options breakpoints screen
/
Set / Unset Break on All Requests
This sets and unsets a 'global' breakpoint that will
trap and display the next request in the Break tab.
You can then change any part of the request that you want to and send it to the target
application by pressing either of the 'Step' or 'Continue' buttons.
Alternatively you can press the 'Drop' button to dispose of the request.
You can switch between a single 'combined' break button and separates ones for requests and responses via the
Options breakpoints screen
/
Set / Unset break on all responses
This sets and unsets a 'global' breakpoint that will
trap and display the next response in the Break tab.
You can then change any part of the response that you want to and send it to your browser
by pressing either of the 'Step' or 'Continue' buttons.
Alternatively you can press the 'Drop' button to dispose of the request.
You can switch between a single 'combined' break button and separates ones for requests and responses via the
Options breakpoints screen
Step
This allows the trapped request or response to continue to the application or your browser
with any changes that you have made to it.
The 'global' breakpoint will remain set so that
the next request or response will also be caught.
This button is only enabled when a request or response is trapped.
Continue
The 'global' breakpoint will be unset so that
subsequent requests and responses will no longer be caught by ZAP unless you have set breakpoints on specific URLs.
This button is only enabled when a request or response is trapped.
Drop
This drops the trapped request or response so that it is not passed on to the application
or your browser.
This button is only enabled when a request or response is trapped.
Add a custom HTTP breakpoint
This displays the Add breakpoint dialog which allows you to specify the criteria for a
breakpoint.
Scan Policy Manager...
Shows the Scan Policy Manager dialog which allows configuration of scan policies.
Manage Add-ons
This shows the Manage Add-ons dialog which allows you to
discover, install and update add-ons from the online marketplace.
It also allows you to uninstall add-ons.
/
Forced User Mode On / Off
This switches forced user mode on and off.
The button is only enabled when you have defined a forced user for at least one
context, which can be done via the
Session Contexts dialog.
Note that add-ons can add additional buttons.
Vease también
IU


First pane
This script should allow only one pane to be visible at a time.
Second pane
This script should allow only one pane to be visible at a time.
Third pane
This script should allow only one pane to be visible at a time.


ok so I have three numbers in a file called input.dat and im able to call them but I want to know how to get those three numbers in that function and able to use them in other functions.
#include <stdio.h>
#include <iostream>
int main(int argc, char * argv[]){
int x = 0;
FILE * pFile;
pFile = fopen("numbers.txt", "r");
if (pFile){
fscanf(pFile, "%d+", &x);
fclose(pFile);
std::cout << x << std::endl;//yes I could have used printf, but again, yolo
//printf("%d", x);
}
}
output
>> 1
You could use what your os provided(like windows (win32) filesysteming thingy magigy)


WAH
No Active Job
Settings
Edit
Add Category
Clear all data
Done
Add Category
Name:
Add
Cancel
Edit Category
Name:
Commit
Cancel
Delete
Add Job
Name:
Job Number:
Category:
Notes:
Add
Cancel


If x = 7 then y = x++ means y = 7 then x increments to 8
If x = 7 then y = ++x means x increments to 8, then y = 8


{{header}}
Print Print summary (1 page)
Print full report Print full report (37 Pages)
Download PDF Download PDF (95.6kb)
Consumer Price Inflation, August 2014
The Consumer Price Inflation is a monthly release that contains percentage changes and weights for the CPI, CPIH, RPI and RPIJ.
Retail Sales, August 2014
A first estimate of retail sales in volume and value terms, seasonally and non seasonally adjusted.
See lorem ipsum dolor sit amet sadipscing consectrue
See lorem ipsum dolor sit amet sadipscing consectrue


Styles
12 Apr 2015While working with android you must have felt the importance as well as difficulties while styling your app.This article will help you understand the basics and utility of Styles in android.
Style in android are the properties pertaining to look and format of a view or a window.
A theme is a style applied to an entire Activity or application.
Resources
All the app resources such as static content like layouts, strings etc are placed in res/ directory. res/values/ has XML files that contain simple values, such as strings, styles, colors etc.
XML resource files in other res/ subdirectories define a single resource based on the XML filename whereas files in the values/ directory describe multiple resources. For a file in this directory, each child of the <resources>
element defines a single resource. For example, a <string>
element creates a R.string resource and a <color>
element creates a R.color resource.
All these resources are compiled and assigned an interger value in R.java file located at project/build/generated/source/r/debug/package/R.java or simply use ctrl+ N and type R.
Alternative Resources
You app runs on devices with different configuration.For example, to optimize the app for different screen sizes and densities you must provide alternative resources.Here is the way to do that:
Create a new directory in res/ named in the form
<resources_name>-<config_qualifier>
-
<resources_name>
is the directory name of the corresponding default resources. -
<qualifier>
is a name that specifies an individual configuration for which these resources are to be used.
For example: drawable/ and drawable-hdpi/ .The resource files must be named exactly the same as the default resource files.
Accessing Resources
So how to access these resources in your project? Let’s have a look at this.
When the application is compiled, aapt(Android Asset Packaging Tool) generates the R class, which contains resource IDs for all the resources in project’s res/ directory.
For each type of resource, there is an R subclass (for example, R.drawable for all drawable resources), and for each resource of that type, there is a static integer (for example, R.drawable.icon). This integer is the resource ID.
A resource ID is always composed of:
- The resource type
- The resource name
There are two ways to access a resource:
-
Reference a resource in code:
<package_name>.R.<resource_type>.<resource_name>
For example:
// Load a background for the current screen from a drawable resource
getWindow().setBackgroundDrawableResource(R.drawable.background_image) ;
drawable is the resource type and background_image is the resource name
-
In xml
@<package_name>:<resource_type>/<resource_name>
For example:
<Button
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”@string/submit” />
<package_name>
is the name of the package in which the resource is located (not required when referencing resources from your own package). <resource_type>
is the R subclass for the resource type. <resource_name>
is either the resource filename without the extension or the android:name attribute value in the XML element (for simple values). To reference a system resource, one would need to include the package name. For example:
android:textColor=”@android:color/secondary_text_dark”
Referencing style attributes
A style attribute resource allows you to reference the value of an attribute in the currently-applied theme.
Syntax:
?[<package_name>:][<resource_type>/]<resource_name>
For Example:
<EditText id="text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="?android:textColorSecondary"
android:text="@string/hello_world" />
Because the system resource tool knows that an attribute resource is expected in this context, we do not need to explicitly state the type (which would be ?android:attr/textColorSecondary) — we can exclude the attr type.
Accessing Platform Resources
Android contains a number of standard resources, such as styles, themes, and layouts.You need to add android package name to access these resources. For example:
setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myarray));
simple_list_item_1 is a layout resource defined by the platform for items in a ListView.
Styles
Now we are all set to define styles.Here we go.
To create a set of styles, save an XML file in the res/values/ directory of your project. The name of the XML file is arbitrary, but it must use the .xml extension and be saved in the res/values/ folder.
The root node of the XML file must be <resources>
.
For each style you want to create, add a <style>
element to the file with a name that uniquely identifies the style (this attribute is required). Then add an <item>
element for each property of that style, with a name that declares the style property and a value to go with it (this attribute is required). The value for the <item>
can be a keyword string, a hex color, a reference to another resource type, or other value depending on the style property. For example:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyFontStyle" parent="@android:style/TextAppearance.Medium">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#00FF00</item>
<item name="android:typeface">monospace</item>
</style>
</resources>
Each child of the <resources>
element is converted into an application resource object at compile-time, which can be referenced by the value in the <style>
element’s name attribute. This example style can be referenced from an XML layout as @style/MyFontStyle.
The parent attribute in the <style>
element is optional and specifies the resource ID of another style from which this style should inherit properties.
Inheritance
The parent attribute in the <style>
element lets you specify a style from which your style should inherit properties.
1 .Inherit properties from an existing style
<style name="GreenText" parent="@android:style/TextAppearance">
<item name="android:textColor">#00FF00</item>
</style>
-
inherit from styles that you’ve created yourself
You can continue inheriting like this as many times as you’d like, by chaining names with periods.This technique for inheritance by chaining together names only works for styles defined by your own resources.
Style Properties
For a reference of all available style properties, see the R.attr reference. Keep in mind that all View objects don’t accept all the same style attributes, so you should normally refer to the specific View class for supported style properties.
Apply a theme
You can find this attribute in your AndroidManifest.xml file
<application android:theme="@style/CustomTheme">
If you want a theme applied to just one Activity in your application, then add the android:theme attribute to the<activity>
tag instead.
As of Android 5.0 (API 21) you can also assign the android:theme for a view. This allows to change the theme for this element and its child elements.
Select a theme based on platform version
To have a theme when the application is running on Android 3.0 (API Level 11) or higher, you can place an alternative declaration for the theme in an XML file in res/values-v11.Similarly for API Level 21 and above use res/values-v21.We’ll shortly see its great utility in maintaining compatibility.
A list of the standard attributes that you can use in themes can be found at R.styleable.Theme.
Using Platform Styles and Themes
The Android platform provides a large collection of styles and themes that you can use in your applications. You can find a reference of all available styles in the R.style class.
For a better reference to the Android styles and themes, see the following source code:
- Android Styles (styles.xml)
- Android Themes (themes.xml)
For a reference of available style attributes that you can use to define a style or theme (e.g., “windowBackground” or “textAppearance”), see R.attr or the respective View class for which you are creating a style.
Styling Button
You can style your button such that it will change appearance depending on its current state.
Custom background To achieve this your background should be a state list resource.
You can define the state list in an XML file that defines three different images or colors to use for the different button states.
Create a new XML file in the res/drawable/ directory (name it something like button_custom.xml). Insert the following XML:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/button_pressed"
android:state_pressed="true" />
<item android:drawable="@drawable/button_focused"
android:state_focused="true" />
<item android:drawable="@drawable/button_default" />
</selector>
The order of the <item>
elements is important.
Now simply apply the drawable XML file as the button background:
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/bSend"
android:onClick="sendMessage"
android:background="@drawable/button_custom" />
Maintaining Compatibility
New themes are introduced which provides new features for apps running on higher API levels.So that means while making use of those features your app won’t run on older versions.Well that is not the case and android provides a nice workaround.
- For example: You want to use material theme for API level 21 and above.Create a file themes.xml and put it under values folder.This will be used as default theme for lower API levels.
res/values/themes.xml:
<resources>
<style name="MyTheme" parent="@android:style/Theme">
<!-- Any customizations for your app running on pre-5.0 devices here -->
</style>
</resources>
And make another file with similar name and put it under values-v21 folder.
res/values-v21/themes.xml:
<resources>
<style name="MyTheme" parent="@android:style/Theme.Material">
<!-- Any customizations for your app running on devices with Theme.Material here -->
</style>
</resources>
Finally, in AndroidManifest.xml:
<application android:name="MyApplication"
android:label="@string/application_label"
android:icon="@drawable/app_icon"
android:hardwareAccelerated="true"
android:theme="@style/MyTheme">
- Use Support Library
The Android Support Library package is a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs. Each Support Library is backward-compatible to a specific Android API level.