Skip to main content

how to view large file or csv in Mac

% head file


head – display first lines of a file

Comments

Popular posts from this blog

xsl-fo๋ฅผ ์ด์šฉํ•œ pdf ์ƒ์„ฑ๊ธฐ์ˆ 

1. PDF ์ƒ์„ฑ ๊ธฐ์ˆ  ๊ฐœ๋ฐœ์„ ์œ„ํ•ด ์ ์šฉ๊ฐ€๋Šฅํ•œ ์˜คํ”ˆ์†Œ์Šค 1)  pdfbox - http://pdfbox.apache.org/ - License : Apache License Version 2.0 2)  iText - http://itextpdf.com/ - License : APGL License 3)  Apache FOP - http://xmlgraphics.apache.org/fop/ -> ์œ ์ง€๋ณด์ˆ˜ ๋น„์šฉ์€ ๋†’์ง€๋งŒ, ๋ฌด๋ฃŒ์ด๋ฉฐ ํ•œ๊ธ€์ด ์ถœ๋ ฅ ๊ฐ€๋Šฅํ•œ Apache FOP๋ฅผ ์ ์šฉ 2. XSL-FO๋ฅผ ์ด์šฉํ•˜์—ฌ PDF๋ฅผ ์–ด๋–ป๊ฒŒ ์ƒ์„ฑ ํ•˜๋Š”์ง€ ์„ค๋ช… * XSL-FO์˜ ๊ธฐ๋ณธ ํ”„๋กœ์„ธ์Šค ์šฉ์–ด ์„ค๋ช… 1) XSLT - XML ๋ฌธ์„œ๋ฅผ ๋‹ค๋ฅธ XML ๋ฌธ์„œ๋กœ ๋ณ€ํ™˜ํ•˜๋Š”๋ฐ ์‚ฌ์šฉํ•˜๋Š” XML ๊ธฐ๋ฐ˜์˜ ์–ธ์–ด - ์›๋ณธ ๋ฌธ์„œ๋Š” ๋ณ€๊ฒฝ๋˜์ง€ ์•Š์œผ๋ฉฐ, ์›๋ณธ ๋ฌธ์„œ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ์ƒˆ๋กœ์šด ๋ฌธ์„œ๋ฅผ ์ƒ์„ฑ 2) XSL-FO - XSL-FO๋Š” ์ข…์ด, ํ™”๋ฉด ๋“ฑ ๋‹ค์–‘ํ•œ ๋งค์ฒด์— ์ถœ๋ ฅ ํ•˜๊ธฐ ์œ„ํ•œ XML ๊ธฐ๋ฐ˜์˜ ๋งˆํฌ์—… ์–ธ์–ด - ์‚ฌ์šฉ์ž๋Š” XSL-FO๋ฅผ ํ†ตํ•ด ์–ด๋–ป๊ฒŒ ์ •๋ณด๊ฐ€ PDF์— ์ถœ๋ ฅ๋˜๋Š”์ง€ ํ™•์ธ ๊ฐ€๋Šฅ 3) XSL-FO Formatter - XSL-FO ๋ฌธ์„œ๋ฅผ ์ตœ์ข… ๊ฒฐ๊ณผ๋ฌผ์ธ PDF(๋‹ค๋ฅธ ๋งค์ฒด๋„ ๊ฐ€๋Šฅ)๋ฌธ์„œ๋กœ ๋ณ€ํ™˜ํ•  ์ˆ˜ ์žˆ๋Š” Formatter ๊ฐ„๋žตํ•˜๊ฒŒ ์• ๊ธฐํ•˜๋ฉด,  XSL-FO๋ฅผ Formatter๋กœ ๋ณ€ํ™˜ํ•˜๊ฒŒ ๋˜๋ฉด PDF๊ฐ€ ์ƒ์„ฑ๋˜๋ฉฐ,  XSL-FO๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์ง์ ‘ ์ž‘์„ฑํ•  ์ˆ˜๋„ ์žˆ๊ณ  XML source์™€ XSLT stylesheet๋ฅผ ์ด์šฉํ•˜์—ฌ ๋™์ ์œผ๋กœ ์ƒ์„ฑ ๊ฐ€๋Šฅํ•˜๋‹ค. 3. ๊ฐ„๋‹จํ•œ ์˜ˆ์ œ๋กœ ์ •๋ฆฌ 1) ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ XML์— ๊ธฐ์ˆ ํ•œ๋‹ค. XML file  <?xml version="1.0" encoding="UTF-8"?> <root>   <name>ํ™๊ธธ๋™</name> </root>  ...

RedisCluster Configuration

Spring boot RedisCluster Configuration @Configuration public class RedisConfiguration { @Value("${spring.redis.host}") private String redisHost; @Value("${spring.redis.port}") private int redisPort; @Bean(destroyMethod = "shutdown") public ClientResources clientResources() { return DefaultClientResources.create(); } @Bean(destroyMethod = "shutdown") public RedisClusterClient redisClient(ClientResources clientResources) { return RedisClusterClient.create(clientResources, RedisURI.create(redisHost, redisPort)); } @Bean(destroyMethod = "close") public StatefulRedisClusterConnection connection(RedisClusterClient redisClient) { return redisClient.connect(); } @Bean public RedisAdvancedClusterCommands redisCommands(StatefulRedisClusterConnection connection) { return connection.sync(); } }

[PS4 ๊ฒŒ์ž„] ํฌํƒˆ ๋‚˜์ด์ธ 

ํ”Œ์Šค4์—์„œ๋Š” ์Šคํฌ์ธ  ๊ฒŒ์ž„์„ ์ œ์™ธํ•˜๊ณ  2์ธ์šฉ์„ ๊ฐ™์ด ํ• ์ˆ˜ ์žˆ๋Š” ๊ฒŒ์ž„์ด ๋งŽ์ง€ ์•Š๋‹ค. ์•„๋‚ด์™€ ๊ฐ™์ด ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒŒ์ž„์„ ๊ณจ๋ผ์„œ ๊ณจ๋ผ์„œ ์ฐพ์€ ๊ฒŒ์ž„์€ ๋ฐ”๋กœ ํฌํƒˆ๋‚˜์ด์ธ  ์•„๋‚ด๋Š” ๊ฒŒ์ž„์„ ๊ฑฐ์˜ ํ•ด๋ณธ์ ์ด ์—†์–ด ์‹ซ์–ดํ•  ์ˆ˜ ๋„ ์žˆ์–ด ์„ฃ๋ถˆ๋ฆฌ ๋ ˆ๊ณ  ๋งˆ๋ธ” ํžˆ์–ด๋กœ์ฆˆ๋Š” ์‚ฌ๊ธฐ์—๋Š” ๊ฐ€๊ฒฉ์ด ๋„ˆ๋ฌด ๋น„์Œ‹์ง€๋งŒ ํฌํƒˆ๋‚˜์ด์ธ ๋Š” 2๋งŒ์›์— ๋‹ค์šด๋กœ๋“œ ๋ฐ›์„ ์ˆ˜ ์žˆ์—ˆ๋‹ค. ์˜จ๋ผ์ธ์œผ๋กœ ๊ฒŒ์ž„์„ ํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋กœ์ปฌ 2์ธ์„ ์„ ํƒํ•˜์—ฌ ํ™”๋ฉด ๋ถ„ํ• ํ•˜์—ฌ ๊ฒŒ์ž„์„ ํ• ์ˆ˜ ๋„ ์žˆ๋‹ค. ๊ฒŒ์ž„ ์บ๋ฆญํ„ฐ๋“ฑ์€ ์•„๊ธฐ์ž๊ธฐ ํ•˜์ง€๋งŒ ์ƒ๊ฐ๋ณด๋‹ค ์ด๊ฒƒ์ €๊ฒƒ ํ• ๊ฒŒ ๋งŽ์•„ ์‹œ๊ฐ„์ด ๊ธˆ๋ฐฉ๊ฐ„๋‹ค๋Š”... ๋‹คํ–‰์ด ์•„๋‚ด๋„ ๊ฒŒ์ž„์„ ์ข‹์•„ํ•ด์„œ ์žฌ๋ฐŒ๊ฒŒ ํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค. ๋‚˜๋Š” ์ „์‚ฌ ์•„๋‚ด๋Š” ๋งˆ๋ฒ•์‚ฌ. ๊ฐ™์ด ๋ชฌ์Šคํ„ฐ๋ฅผ ๋•Œ๋ ค์žก๊ณ ... ์ฃผ์˜์‚ฌํ•ญ์€ ์ฒ˜์Œ์— ํ• ๋•Œ ์•„๋‚ด๋Š” ๊ฒŒ์ŠคํŠธ๋กœ ๋กœ๊ทธ์ธํ•˜์—ฌ ํ–ˆ์—ˆ๋Š”๋ฐ ๋‹ค์Œ์— ๋‹ค์‹œ ํ•˜๋‹ˆ ๊ฒŒ์ŠคํŠธ๋กœ ํ–ˆ๋˜ ์ •๋ณด๊ฐ€ ๋ชจ๋‘ ๋‚ ๋ผ๊ฐ€๋ฒ„๋ฆฐ... ๊ผญ PSN์— ๊ณ„์ • ๋“ฑ๋กํ•ด์•ผ ๋œ๋‹ค. ๊ณต์‹ PS4์˜ ํฌํƒˆ ๋‚˜์ด์ธ  https://store.playstation.com/ko-kr/product/EP4040-CUSA06287_00-ASIAALKNIGHTS000?emcid=kr-ko_fb_171121_BlackFriday Youtube https://www.youtube.com/results?search_query=ํฌํƒˆ+๋‚˜์ด์ธ