はてなキーワード:openとは
javascript:(()=>{const%20loc=document.querySelector('link[rel="canonical"]')||location;const%20urlStr=(loc.href.startsWith('about:reader'))?decodeURIComponent(loc.href.slice(17)):loc.href;const%20url=new%20URL(urlStr);let%20s=url.search;s=(s.startsWith('?page=')||s.startsWith('?P='))?"":s;const%20w=window.open('https://b.hatena.ne.jp/entry?url='+encodeURIComponent(url.origin+url.pathname+s));w.document.close();})();
(function(){ if(!window.getSelection || !window.getSelection().containsNode) return; Array.from(document.links).forEach(link => { if(window.getSelection().containsNode(link,true) ===false) return; if(link.href.startsWith('mailto:')) return; if(link.href.startsWith('javascript:')) return; window.open(link.href); });})();
まあタイトルの通りなんだけど、TOEIC800を三年かけて大体1日1~3時間勉強しながら取ったわけ。
でもまったく、ネイティブが何言ってるか聞き取れないし、ろくに話せもしない。
パート2の内容とか最初の2語さえ聞き取れれば、全問正解できるけど、そんなこと現実ではありえないじゃん
Whereis~ と聞いてその後が聞き取れるかって話してんのに、根本的におかしいと思う。
これから第四四半期の売上についての会議をします、みたいな英文は読めるけど、ネイティブにCan Iopen this fridge? とか 聞かれたら、もう答えられない。フリッジって何ですか、みたいな。
赤ちゃんと同レベルだよな 冷蔵庫って単語わかりませんとか 製造メーカーとか自販機って英語はわかるけど、洗濯機にキャップの半分洗剤入れてくださいって言われたら呆然とする、みたいなさ(笑)
ほんと、日本の英語教育っておかしいと思うわ 使いもしない挨拶が書いてる教科書やら、スコア800を自慢するようなシステムとか
はっきり言って実務のレベルでいったら1か月で取った簿記3級の方が1000倍使える
Fラン卒の子がオレTOEIC300なんですよ、とか苦笑しながら言ってきて、内心俺と何も変わんねーわ、と思ってた
ショボいカメラではOnePlusOpen 2にリネームして出すのはしないってことらしい(OnePlusは元々カメラじゃなくコスパブランドだったはずなのでわりと違和感しかない説明だが)。折り畳みでもカメラは使うにしても最高画質までは別に求めてないので今使ってるVivo X…— すまほん!! (@sm_hn)February 14, 2025
>アプリ内のデータかバックアップしたのを自分でダウンロードしてテキスト化する方法ないかなあ/できたわ。設定→位置→タイムライン→タイムラインのエクスポートでjson化可能。あとは誰かが処理系を作るだけだ!
https://b.hatena.ne.jp/entry/4766225990155446401/comment/punychan
これを使えばXXXX-XX-XX.kml形式で日付別のタイムラインデータを出力できる(ChatGPT製)。
KMLファイルはGoogle Earth Proなどで開くことが可能で、ビジュアルとして行動履歴を見ることができる。
ただ、以前GoogleMapsタイムラインが吐いていたKMLではPlacemarkという項目に直接建物名などが書かれていたが、現在出力されているjsonではplaceIdというものに変更されていて具体的な名前がわからない。
placeIdを実際の建物名などに変換するにはGoogle Maps API の Place DetailsAPIを使うしかないようだが、膨大なリクエスト(有料)をしなければならず非現実的。
もともと欧州のプライバシー関係の規制のせいでGoogleのサーバ上でのタイムライン履歴が行われなくなったのが今回の問題の起点。
ユーザーの自由を尊重するなら、個人が行動履歴を自己管理する自由ももっと尊重してもらいたいものだな、と思った。
importjson
importos
fromxml.etree.ElementTree import Element, SubElement, tostring
fromxml.dom.minidom import parseString
withopen("タイムライン.json", "r", encoding="utf-8")as f:
data =json.load(f)
output_folder = "kml_output"
os.makedirs(output_folder, exist_ok=True)
# `semanticSegments` に移動データが含まれている
if "semanticSegments" in data:
date_segments = {} # 日付ごとにデータをまとめる辞書
for segment in data["semanticSegments"]:
# `startTime`から日付部分(YYYY-MM-DD)を抽出
if "startTime" in segment:
date = segment["startTime"].split("T")[0]
date_segments[date].append(segment)
fordate, segments indate_segments.items():
kml = Element("kml",xmlns="http://www.opengis.net/kml/2.2")
document = SubElement(kml, "Document")
for segment in segments:
forpoint in segment["timelinePath"]:
coords =point["point"].replace("°", "") # 度記号を削除
time =point.get("time", "UnknownTime")
# Placemarkを作成
placemark = SubElement(document, "Placemark")
timestamp = SubElement(placemark, "TimeStamp")
when = SubElement(timestamp, "when")
# 座標
point_element = SubElement(placemark, "Point")
coordinates = SubElement(point_element, "coordinates")
lat, lon = coords.split(", ")
coordinates.text = f"{lon},{lat},0" #KML形式: lon,lat,alt
kml_str = tostring(kml, encoding="utf-8")
formatted_kml = parseString(kml_str).toprettyxml(indent=" ")
kml_filename =os.path.join(output_folder, f"{date}.kml")
withopen(kml_filename, "w", encoding="utf-8")as f:
Let’s faceit: starting a conversationon a dating app canfeel terrifying.You seesomeoneyou’re interested in,you typeout amessage, and then…youdeleteit. “Is this too boring?” “Will they even respond?” “What if I sound awkward?”
We’veall been there. That firstmessage canmake orbreakyour chances ofconnecting withsomeone amazing. Buthere’s thegood news:youdon’t have tooverthink it.With the rightopeningline,you canspark a conversation thatfeelsnatural,fun, and meaningful.
AtMixerDates, webelieve that every greatconnection starts with a great conversation. That’swhy we’ve puttogether this guide to helpyoucraft the best dating appopeninglines—ones that standout, showyour personality, andlead to realconnections. Ready to ditch the “hey” and start making animpact?Let’sdive in!
[:contents]
Before weget into the bestopeninglines,let’stalk aboutwhyyour firstmessageis so important.
Youropeninglineisyour chance tomake a greatfirst impression.It’s thegateway to a conversation that couldlead tosomething special. A thoughtful,creativemessage shows thatyou’re genuinely interested—not just swiping mindlessly.
Your firstmessage sets thetone for the entire conversation. A boring orgenericopener mightlead to a dull chat, while afun or intriguingone canspark excitement andcuriosity.
Let’s be real: everyonelovesfeeling special. Whenyou put effort intoyouropeningline,it shows thatyou care enough to standout. AndonMixerDates, where wevalue authenticity and positivity, that effortgoes a long way.
Now,let’sget to thegood stuff—the best dating appopeninglines that actually work. These are divided intocategories to suit different personalities and situations.
Whilethe examples above are great starting points, the bestopeninglines are theones thatfeel authentic toyou.Here are sometips to helpyoucraftyour own:
Referencesomething from theirprofile—aphoto, a hobby, or ashared interest.It showsyou’re payingattention and not just copying and pasting.
Avoid heavy oroverly serious topics right off the bat. Keep thetonelight and playful tomake the conversation enjoyable.
Don’ttry to besomeoneyou’re not. Ifyou’renaturallyfunny, lean into that. Ifyou’remore thoughtful,go for asincere compliment or question.
“Hey” or “What’s up?” might be easy, but they’re also forgettable. Put in alittle effort to standout.
This gives the other person an easy way to respond and keeps the conversation flowing.
AtMixerDates, we’reall about creating a positive,inclusive space whereyou canfeel comfortablebeingyourself.Here’swhy our platformis the best place to put theseopeninglines into practice:
We welcome everyone, no matterwhoyou are orwhoyoulove. Our platformis designed to be a safe space whereyou canconnect withlike-minded people.
Our users create detailedprofiles thatmakeit easy to findshared interests andcraft personalizedopeninglines.
We encourage our community to be genuine and kind, soyou canfeel confident starting conversations withoutfear of judgment or rejection.
Don’t justtake ourword forit—here’s whatone of our users had to say:
“I met my partneronMixerDates, anditallstarted with asimplemessage about oursharedlove for travel. The conversation flowednaturally, and therestishistory. I’m so grateful for this platform!”
While a greatopeningline canspark a conversation,building a realconnectiontakesmore than just a clevermessage.Here are thekeyelements tolook for when seeking a meaningfulconnection:
A strongconnection starts with alignmenton the things that mattermost. Doyoushare similarvalues,lifegoals, or visions forthe future?
Look forsomeonewhoiswilling toshare their thoughts,feelings, and vulnerabilities—andwho encouragesyou to do the same.
Healthy relationships are atwo-way street. Both people should be putting in effort to communicate, plan dates, and support each other.
Atrueconnectionallows both people to be themselves without judgment.Look forsomeonewho celebratesyour uniqueness and encouragesyou to pursueyour passions.
Communicationis the foundation ofany strong relationship. A mutualconnection thrivesonhonesty, transparency, and the ability to resolve conflicts in ahealthy way.
AtMixerDates, we’rehere to helpyou find thesekeyelements in a partner. Our platformis designed toconnectyou with peoplewhoshareyourvaluesand arelooking for the same thingsyou are. Starting a conversationon a dating app doesn’t have to be stressful.With the rightopeningline,you canspark aconnection thatfeelsnatural,fun, and meaningful.And atMixerDates, we’rehere to helpyou everystep of the way.
So, what areyou waiting for?Craft that perfectopeningline,joinMixerDates, and startconnecting with peoplewhovalue authenticity and positivity.Your perfectmatchisout there—and they’re justonemessageaway.
Firstdates can be exciting and nerve-wrackingallatonce.You’re meetingsomeone new, learning about their interests, and trying to figureout if there’schemistrybetweenyou. And then there’s flirting, that delicate dance of showingsomeoneyou’re interested withoutbeing too forward or awkward.
Flirtingdoesn’t have to be a high-pressuresituation. Infact,it can bethe mostfun part ofgetting to knowsomeone. Whetheryou're meetingsomeoneonMixerDates orany other platform,the most important thingis to be genuine,staycalm, and let theconnection developnaturally.
Ifyou’ve everfoundyourself wondering how to flirton a firstdate withoutfeeling uncomfortable,you’re notalone. Everyonehas their awkwardmoments, but themoreyou understand theart of flirting, the easierit becomes. In thisarticle, we’llbreak down how to flirt in a way thatfeelsnatural, exciting,and authentic towhoyou are. So, let'sdive in and learn how tomakethe most ofyour firstdate experience—withoutoverthinkingit.
Whenit comes to flirting, confidenceiskey. But whatdoesit really mean to be confidenton a firstdate? Confidencedoesn’t meanyouneed to be perfect, or evenoutgoing—it simply meansbeing comfortable inyour ownskin and showing upasyour authentic self.
Haveyou ever noticed how people are drawn to thosewho radiate self-assurance?It’s not aboutbragging or dominating the conversation—it’s about presentingyourself with ease. Ifyoufeelgood aboutyourself,itwillnaturally show. A greatsmile,good posture, and eye contact cango a long way in making agoodfirst impression.
For instance, think about thelasttimesomeone walked into a room and immediately caughtyourattention—not because they werethe mostattractive person in the room, but because of their energy. They were confident, they were present, and theymadeyoufeelat ease. That’s the kind of confidenceyou want to projectonyourdate.
Whenyou're confident,you're not worried about saying the perfect thing. Instead,youfocuson enjoying themoment, making the other personfeel comfortable, and letting theconnection happennaturally. That’s themagic of confidence—itallowsyou to be present,fun, and,most importantly,yourself.
Let’s faceit—noonewants tofeellike they’rebeing “worked” or put through a game. That’swhy subtletyis such a powerfultool whenit comes to flirting.It'sall about showing interest withoutbeingover-the-top or too obvious.
Flirtingdoesn’talways mean complimentingsomeone non-stop or using cheesy pickup lines. Infact,the most successful flirtingis the kind that happens behind the scenes—subtle, playful, andlighthearted. Think about thelittlemoments,like a teasing comment about how theyalways order the same thingat a restaurant or the wayyou laughat a silly joke theymake.
Thekeyis to find a balance. Asimplesmile or a playful comment can convey interest withoutbeing too much. For example, ifyourdate tellsyou theylove hiking but theytend togetlost easily,you could saysomethinglike, “So,you’re telling meyouneed a personal guide? I couldget behind that!”It’slighthearted, humorous, andmost importantly,it keeps the conversationfun without putting too much pressureon thesituation.
By keepingit subtle,youallowyourdate tofeelat ease.Ittakes the pressure off them to be perfectand allows both ofyou to enjoy the interactionmorenaturally. Flirtingdoesn’tneed to be a performance—it’s about creating an environment where both ofyou canfeel comfortableand authentic.
Now,let’stalk aboutsomething incredibly important in the flirting game:active listening. When we’reon adate, we oftenget caught up in thinking about what to saynext, how we’re coming across, or if we’rebeing interesting enough. But the best way tomake animpression? Truly listening toyourdate.
Active listening meansyou’re fullyengaged in the conversation, givingyourdateyour fullattention and responding thoughtfully.It’s about showing thatyou care about what they’re saying and thatyou’re genuinely interested ingetting to know them better. Whenyou listenactively,you’re also giving them space toopen up, and that can create an immediateconnection.
For example, ifyourdate mentions they recently traveled toJapan, instead of simply saying, “That’scool!”you could follow up withsomethinglike, “Whatwasthe most memorable experienceyou had there?” This shows thatyou’re not just hearing their words but are genuinely curious and invested in their experiences.It’s a great way to build rapport and let them knowyou’re not just there toimpress them—you’re there toconnect.
Whileyour words are important,body language often speaks louder thananythingyou can say. Whetheryourealizeit or not,yourbodyis constantly communicating howyoufeel. Howyousit, stand, andmove tellsyourdate whetheryou’rerelaxed,engaged, or distracted.
Small gestures cango a long way in flirting. Alight touchon thearm, a subtle lean in when they’re speaking, or maintaininggood eye contact—all thesebody language cues helpsignalyour interest. Andthe great thingis, whendonenaturally, these cues can be justas effectiveas words.
For example, ifyou’resittingat a caféonyourdate andyou lean in slightly when they’re sharing afunnystory,you’re not just showing thatyou’re interested—you’re inviting them intoyour space.It’s aninvitation toconnect further. And when they respondby leaning in too, that’s when themagic happens—the unspokenconnection that tellsyou both that there’s potential formore.
Flirting throughbody languagedoesn’t mean making grand gestures orbeingoverly touchy.It’s aboutbeing present and showing thatyou’reengagedwith yourdate in a subtle, but meaningful way.
It’s easy toget caught up inoverthinking how to flirt or trying to figureout ifyourdateis intoyou. Buthere’s asecret—whenyou letgo of the pressureand allowyourself to havefun,everything flows muchmorenaturally. Flirtingon a firstdatedoesn’tneed tofeellike atest or anassignment.It’s supposed to be afun,lighthearted experience that sets the stage formore greatdates ahead.
Whenwas thelasttimeyou had a genuinelyfundate?Wasit whenyou were trying too hard toimpress, or whenyou were both laughing, chatting, and enjoying each other's company? Flirting becomes effortless whenyou're present, enjoying themoment, and letting theconnection grownaturally.
Sometimes,it's the smallmoments—like sharing a laugh or swapping embarrassing stories—thatmake a firstdate truly special. Whenyoufocuson havingfun,you create an environment where both ofyou canrelax, flirt, and let thechemistry grow. That’s thesecret to a greatdate.
One of the best things about using a platformlikeMixerDatesis thatittakes the guessworkout of the equation.Byconnecting withsomeonewho already sharesyour interests and values,you’vegot a head starton making a realconnection.No more swiping through countless profiles hoping for aspark—onMixerDates,you already know there’ssomething incommon.
Whenyou’re alreadyon the same pagewith yourdate, flirting comesmore easily. There’s less of that awkward, “Are we evenon the same wavelength?”feeling, andmore of thefun, “Wow, we reallyclick!” vibe. Whetheryou’retalking aboutfavorite hobbies, movies, orlifegoals, the conversation flowsnaturally, making the flirtingfeel effortless.
Ifyou're looking for a place to meetlike-minded people and build genuineconnections,MixerDatesis the perfect platform.It's a great place to findsomeonewho appreciatesyou forwhoyou are andwhoyou cannaturally flirt with, without the stress.
Flirtingon a firstdateisall about confidence,connection, andfun. Whenyou letgo of the pressure andfocuson enjoyingthe experience, thechemistrywillnaturally follow. Remember, the best way to flirtisbybeingyourself—letyour personalityshine through, listen with intention, and embrace themoment.
And ifyou’re ready to meetsomeone new,who’s justas interested in making aconnectionasyou are,MixerDatesis the perfect place to start. Sogo ahead,take theleap, and see whereit leads.Who knows?Yournext greatconnection might be just aclickaway.
Sign up forMixerDatestoday and startyourjourney to exciting firstdates and meaningfulconnections!
AI業界では、「クリスマス休暇前に、各社がとっておきのAIを棚卸する」という伝統がある。
openAIが12日連続で12月に発表を行ったのは記憶に新しいかもしれない。
クリスマス休暇前に、openAIの発表もあるし、google もそれに合わせてどういうAIを出すかをまるでポーカーのように読み合って放出する。
逆に、クリスマス休暇前の大型発表に乗り遅れると、「出してもインパクトない」ものになってしまいがち。
当然、12月にアメリカ勢が放出したAIを超えるAIを出さないとインパクトがない。
後出しジャンケンが圧倒的に有利で、1ヶ月以上あればAIは進化するので、当然、中国は、「アメリカを超えるAI」を発表できてしまう。
この流れは、今後も一生繰り返される。
つまり、
Please consider the histroy ofhumanity from biologicalperpsecitve and currentknown fact in nearbyuniverse, whichexpo-planet (from theSol systemperspective)ismostlikely to have civlizaedsociety? Pleaseaddpercentagenext toit in the chart
ChatGPT
Reasoned about exoplanetcivilizationlikelihoodを28 秒行う
OK, I’mlookingatthe likelihood of a civilizedsocietyon an exoplanet within ourSolar System.I’ll consider biologicalhistory and current space knowledge,aiming to identifythe most promising candidate.
Identifying potential candidates
I'm considering exoplanetslike Proxima Centauri b and TRAPPIST-1e, which might suggest they are within or observed from ourSolar System.
Assessing potential candidates
I’m evaluating Proxima Centauri b, Barnard'sStar, LHS 1140, and TRAPPIST-1,focusingon their habitablezonesand available data. The Drake equation might help estimate their civilizedsocietylikelihoods.
Identifying promising exoplanets
I’m notingkey exoplanetslike Proxima Centauri b and TRAPPIST-1, which haveEarth-like characteristicsand are in habitablezones. This narrows down the potential candidates for advancedcivilizations.
I'm gathering infoonplanetslike Proxima Centauri b and TRAPPIST-1, consideringfactorslikemagneticfields,atmospheres, and proximity to G-typestars for their potential to support advancedcivilizations.
Evaluating exoplanet prospects
I'm noting that Proxima Centauri b, despitebeing closeand around ared dwarfstar, might supportlife ifithas amagneticfieldand atmosphere. This makes me think aboutits potential.
Charting probabilities
I'm estimatingcivilization probabilities for exoplanetslike Proxima Centauri b and TRAPPIST-1 e, using speculativepercentagesbasedon the Drake equation and the lack ofevidence for intelligentlife.
I'm crafting a chart with exoplanet names andcivilizationlikelihoodpercentages, grounded in the longtimeline oflife'sevolution, despite the speculativenature of these figures.
Identifying exoplanet contenders
I’m evaluating exoplanetslike Proxima Centauri b, TRAPPIST-1 e, and Kepler-186f, considering theirstar types and distances, to gauge their potential for supporting advancedcivilizations from oursolar system'sviewpoint.
Weighing proximity and observation
I'm leaning towards Proxima Centauri b due toits closeness and observational potential, despite concerns aboutitsflarestar dynamics. TRAPPIST-1 e, f, or g are also worth considering.
I'mfocusingon exoplanetslike Proxima Centauri b, Ross 128 b, LHS 1140 b, TRAPPIST-1 e/f/g, andK2-18b,aiming to chart theirlikelihood of hosting a civilizedsocietybasedon current knowledge.
Assessing exoplanet potentials
I'm gathering speculative probabilities for exoplanetslike Proxima Centauri b and TRAPPIST-1 e/f/g, using the Drake equation and current understanding, to better estimate their chances of hosting a civilizedsociety.
Refining speculative probabilities
I’m refining speculative probabilities for exoplanets, including Proxima Centauri b and TRAPPIST-1 e/f/g, to estimate their chances of hosting a civilizedsociety, consideringEarth's long biologicalhistory.
Refining odds
I'm considering theastronomicaltimeline for intelligentlifeonEarth,leading me toassign evenlower speculative odds for exoplanetslike Proxima Centauri b and TRAPPIST-1 e.
I’m crafting a simplified chart with arbitrarypercentages, clearly noting the speculativenature and lack of scientific data, while considering the target audience'sbasic understanding of the topic.
I’m charting arbitrarypercentages for exoplanets, clarifying their speculativenature, and ensuring the datais accessible foryoung audiences with minimal scientific detail.
Crafting a chart
I’m creating amarkdowntable with speculativepercentages forthe likelihood of civilizedlifeon exoplanets, emphasizing their purely theoreticalnature and considering the understandinglevel of an 8-year-old.
Integrating speculative analysis
I’m mappingout amarkdown chart with speculativepercentages forthe likelihood of a civilizedsocietyon exoplanets, mindful of thecomplexity and simplifying for an 8-year-old's understanding.
I’m piecingtogethermarkdown for exoplanets, noting Proxima Centauri b'sreduced civilizedlife chance due to thered dwarf's activity. This inclusionhighlights the speculativenature of the analysis.
Piecingtogether speculative odds
I’m detailing amarkdown chart for audience-friendly exoplanetlikelihoods, considering environmental challengesand adding a disclaimer about the speculativenature and lack ofevidence.
Piecingtogether
I’m leaning towards Proxima Centauri b forits proximity and silentstar, butI’lladd a speculative chart ranking nearby exoplanets, noting their advancedcivilizations' hypotheticallikelihood.
Assessingcivilization probabilities
I'm emphasizing the slow emergence of intelligentlifeonEarth, which suggests that the odds ofany habitableplanet developing acomplexcivilization might beaslowas a fewpercent.
Belowis a very speculative chart that—basedon what we know aboutEarth’s long, windingpath fromsimplelife to a “civilizedsociety” and our limited observations of nearby exoplanets—gives somefun,made‑uppercentage chances for a few of our best candidate exoplanets. Remember: Scientists havenot yetfoundany proof oflife (let alone advancedcivilizations)onany exoplanet. Thesenumbers are just playful estimates to helpyou think about theideas!
Speculative Chances of Finding an AdvancedCivilizationon Nearby Exoplanets
Exoplanet EstimatedLikelihood of a CivilizedSociety
Proxima Centauri b ~2%
LHS 1140 b ~0.5%
HowDid We (Very Roughly) Guess TheseNumbers?
Earth’s Example:
OnEarth,life beganassimple single‑celled organisms and took billions of years to evolve into a species that builtcomplex societies. This longjourney suggests that—even if aplanetis in the “habitablezone” (where liquid water could exist)—developing an advanced, civilizedsociety might be rare.
Proxima Centauri b:
Thisis the closest exoplanet to us. Even thoughitsstar (Proxima Centauri)is ared dwarf that sometimes sendsout strongflares (which might harmlife),its closeness makesitone of ourmost interesting candidates. That’swhy we giveit a slightly higher guess (~2%).
Theseplanets are part of agroup orbiting a verycoolstar. Their environments might be challenging (for example, they could be tidally locked, meaningone sidealwaysfaces thestar), so the chance of acomplex, advancedcivilization might be abitlower.
LHS 1140 b:
Thisplanetis promising in some ways butis alittle fartherawayand around a dimmerstar, so our playful estimateis evenlower.
All of thesepercentages are extremely rough guessesbasedon whatlittle we understand about the conditions forlife andintelligence. Scientists useideaslike the Drake Equation to think about these chances—but until we have concreteevidence, thesenumbers remain just forfun and imagination.
Enjoy exploring theseideas—and remember, spaceis full of mysteries waiting to be discovered!
あなた:
Please examine the Drake Equationitself and see if this euqationis acculate ormore opition in the equationyouwill use
ChatGPT
Reasoned about the Drake Equationを6 秒行う
re-examining the Drake Equation
evaluating the Drake Equation'svalue
OK, let me see. The Drake Equationisn't a precise formula;it'smore of a guiding heuristic that tackles numerous uncertainties regarding extraterrestrialcivilizations.
Thinking through the Drake Equation, I’m evaluatingits conceptualnature,its uncertain parameters, andits criticism to concludeonits reliabilityas an accurate predictivemodel.
Understanding the Drake Equation
I’m mappingout the Drake Equationas a conceptual guide, detailingits parameters, which are oftenbasedon estimates or opinions, to evaluateits reliability for predicting extraterrestrialcivilizations.
The Drake Equationis a famous formula thatwas created to help scientists think about the manyfactors involved in estimating thenumber of detectable extraterrestrialcivilizations in ourgalaxy. However, when welookat the equation closely, we see thatitismore of a conceptualframework or heuristictool than a precise, predictive formula.Let’sbreak downwhy:
The equationis usually writtenas:
𝑁
=
𝑅
∗
×
𝑓
𝑝
×
𝑛
𝑒
×
𝑓
𝑙
×
𝑓
𝑖
×
𝑓
𝑐
×
𝐿
N=R
∗
×f
p
×n
e
×f
l
×f
i
×f
c
×L
Where:
𝑅
∗
R
∗
: The averagerate ofstar formationper year in ourgalaxy.
𝑓
𝑝
f
p
: The fraction of thosestars that haveplanetary systems.
𝑛
𝑒
n
e
: The averagenumber ofplanets that could potentially supportlifeperstar withplanets.
𝑓
𝑙
f
l
: The fraction of thoseplanets wherelife actually develops.
𝑓
𝑖
f
i
: The fraction ofplanets withlife where intelligentlife evolves.
𝑓
𝑐
f
c
: The fraction ofcivilizations that develop technology that releases detectablesignals into space.
𝐿
L: The length oftime suchcivilizations release detectablesignals.
Why the Drake EquationIsMore of a Guideline Than a Precise Formula
Uncertain Inputs:
𝑅
∗
R
∗
𝑓
𝑝
f
p
(fraction ofstars withplanets), have become better known through modernastronomy.
The parameters related to the development oflife andintelligence—
𝑓
𝑙
f
l
,
𝑓
𝑖
f
i
,
𝑓
𝑐
f
c
, and
𝐿
L—arebasedon very limited data. For example,Earthis theonlyplanet we know wherelifehas developed, so we have no way to compare or derive a statistically robust estimate for thesefactors. This means that thevalues chosen for these parameters are largely subjective estimates or educated guesses.
Wide Ranges of PossibleValues:
Because many of thesefactors are not well-constrained, ifyouchangeone of themore uncertain parameters even slightly, thefinal estimate for
𝑁
N (thenumber ofcivilizations) can varyby many orders ofmagnitude. This wide range shows that the equation canlead to very differentoutcomesbasedonpersonal or theoreticalassumptions.
The Drake Equationwas never meant to provide a preciseanswer. Instead,it servesas a way to organize our thinking about what conditions might be necessary for the development of extraterrestrialcivilizations.It encourages discussion about the relative importance of differentfactors andhighlights where our scientific knowledgeis limited.
Is the Drake Equation Accurate orMore Opinion-Based?
Accurate?
In thesense ofbeing a strict mathematicalmodel with well-defined inputs and predictableoutputs, the Drake Equationis not accurate.Its accuracyis limitedbythe extreme uncertainties in several ofitskey parameters.
Many of the terms in the equation, especially those concerning theevolution oflife andintelligence, arebasedon opinion, interpretation, and the single example ofEarth. Therefore, while thestructure of the equationis logical, thenumbersyou put intoit (and hence thefinal result) are oftenmore reflective of our current opinionsand assumptions than of robust empirical data.
The Drake Equationis a valuabletool for framing the question of extraterrestriallife.It helps scientists and enthusiastsbreak down acomplex problem into smaller,more manageable questions. However, because several ofitsfactors are highly uncertain and subject topersonal interpretation,itismore of a conceptual guide—or even a way to stimulate discussion—than a formula that provides a definitive, accurate prediction of thenumber of extraterrestrialcivilizations.
Insummary, while the Drake Equationis useful for thinking about the variousfactors that mightlead to the emergence of acivilization,itsoutputs should betakenas highly speculative estimates rather than precise measurements.
あなた:
Please also consider the possiblities of non-human intelligent emrgencing from the longhistory ofSol system and nearbyplanets and see if thereisany possiblites that inonetime intelligentlife emerged in nearbyplanets and see this to the equation
ChatGPT
Reasoned about non-humanintelligence and the Drake Equationを19 秒行う
Evaluating non-humanintelligence
I'm thinking about the potential for non-human intelligentlife forms in theSol system and neighboringplanets, and how this mightfactor into the equation.
I'm thinking about how to integrate the emergence of non-human intelligentlife, possiblyonMars orEuropa, into the Drake Equation for theSol system and neighboringplanets.
It's interesting to think about the hypothesis of intelligentlife emergingonMars orVenus, thoughEarth remains theonly knownlife-supportingplanet in thesolar system.
Considering other realms
I'm examining if intelligentlife could have emergedonplanetslikeMars,Venus, orEuropa, and how thispossibility alignswith the predictions of the Drake Equation.
Hmm, I’m thinking about how non-human intelligentlifeonMars orVenus could intersectwith theassumptions of the Drake Equation, which seems tofocussolelyonEarth-basedevolution.
I’m piecingtogether the hypothesis of non-human, advanced, intelligentlife in thesolar system.Mars,Venus, and Titan present challenges, butEuropa and Enceladus might harbor microbiallife.
Please consider the histroy ofhumanity from biologicalperpsecitve and currentknown fact in nearbyuniverse, whichexpo-planet (from theSol systemperspective)ismostlikely to have civlizaedsociety? Pleaseaddpercentagenext toit in the chart
ChatGPT
Reasoned about exoplanetcivilizationlikelihoodを28 秒行う
OK, I’mlookingatthe likelihood of a civilizedsocietyon an exoplanet within ourSolar System.I’ll consider biologicalhistory and current space knowledge,aiming to identifythe most promising candidate.
Identifying potential candidates
I'm considering exoplanetslike Proxima Centauri b and TRAPPIST-1e, which might suggest they are within or observed from ourSolar System.
Assessing potential candidates
I’m evaluating Proxima Centauri b, Barnard'sStar, LHS 1140, and TRAPPIST-1,focusingon their habitablezonesand available data. The Drake equation might help estimate their civilizedsocietylikelihoods.
Identifying promising exoplanets
I’m notingkey exoplanetslike Proxima Centauri b and TRAPPIST-1, which haveEarth-like characteristicsand are in habitablezones. This narrows down the potential candidates for advancedcivilizations.
I'm gathering infoonplanetslike Proxima Centauri b and TRAPPIST-1, consideringfactorslikemagneticfields,atmospheres, and proximity to G-typestars for their potential to support advancedcivilizations.
Evaluating exoplanet prospects
I'm noting that Proxima Centauri b, despitebeing closeand around ared dwarfstar, might supportlife ifithas amagneticfieldand atmosphere. This makes me think aboutits potential.
Charting probabilities
I'm estimatingcivilization probabilities for exoplanetslike Proxima Centauri b and TRAPPIST-1 e, using speculativepercentagesbasedon the Drake equation and the lack ofevidence for intelligentlife.
I'm crafting a chart with exoplanet names andcivilizationlikelihoodpercentages, grounded in the longtimeline oflife'sevolution, despite the speculativenature of these figures.
Identifying exoplanet contenders
I’m evaluating exoplanetslike Proxima Centauri b, TRAPPIST-1 e, and Kepler-186f, considering theirstar types and distances, to gauge their potential for supporting advancedcivilizations from oursolar system'sviewpoint.
Weighing proximity and observation
I'm leaning towards Proxima Centauri b due toits closeness and observational potential, despite concerns aboutitsflarestar dynamics. TRAPPIST-1 e, f, or g are also worth considering.
I'mfocusingon exoplanetslike Proxima Centauri b, Ross 128 b, LHS 1140 b, TRAPPIST-1 e/f/g, andK2-18b,aiming to chart theirlikelihood of hosting a civilizedsocietybasedon current knowledge.
Assessing exoplanet potentials
I'm gathering speculative probabilities for exoplanetslike Proxima Centauri b and TRAPPIST-1 e/f/g, using the Drake equation and current understanding, to better estimate their chances of hosting a civilizedsociety.
Refining speculative probabilities
I’m refining speculative probabilities for exoplanets, including Proxima Centauri b and TRAPPIST-1 e/f/g, to estimate their chances of hosting a civilizedsociety, consideringEarth's long biologicalhistory.
Refining odds
I'm considering theastronomicaltimeline for intelligentlifeonEarth,leading me toassign evenlower speculative odds for exoplanetslike Proxima Centauri b and TRAPPIST-1 e.
I’m crafting a simplified chart with arbitrarypercentages, clearly noting the speculativenature and lack of scientific data, while considering the target audience'sbasic understanding of the topic.
I’m charting arbitrarypercentages for exoplanets, clarifying their speculativenature, and ensuring the datais accessible foryoung audiences with minimal scientific detail.
Crafting a chart
I’m creating amarkdowntable with speculativepercentages forthe likelihood of civilizedlifeon exoplanets, emphasizing their purely theoreticalnature and considering the understandinglevel of an 8-year-old.
Integrating speculative analysis
I’m mappingout amarkdown chart with speculativepercentages forthe likelihood of a civilizedsocietyon exoplanets, mindful of thecomplexity and simplifying for an 8-year-old's understanding.
I’m piecingtogethermarkdown for exoplanets, noting Proxima Centauri b'sreduced civilizedlife chance due to thered dwarf's activity. This inclusionhighlights the speculativenature of the analysis.
Piecingtogether speculative odds
I’m detailing amarkdown chart for audience-friendly exoplanetlikelihoods, considering environmental challengesand adding a disclaimer about the speculativenature and lack ofevidence.
Piecingtogether
I’m leaning towards Proxima Centauri b forits proximity and silentstar, butI’lladd a speculative chart ranking nearby exoplanets, noting their advancedcivilizations' hypotheticallikelihood.
Assessingcivilization probabilities
I'm emphasizing the slow emergence of intelligentlifeonEarth, which suggests that the odds ofany habitableplanet developing acomplexcivilization might beaslowas a fewpercent.
Belowis a very speculative chart that—basedon what we know aboutEarth’s long, windingpath fromsimplelife to a “civilizedsociety” and our limited observations of nearby exoplanets—gives somefun,made‑uppercentage chances for a few of our best candidate exoplanets. Remember: Scientists havenot yetfoundany proof oflife (let alone advancedcivilizations)onany exoplanet. Thesenumbers are just playful estimates to helpyou think about theideas!
Speculative Chances of Finding an AdvancedCivilizationon Nearby Exoplanets
Exoplanet EstimatedLikelihood of a CivilizedSociety
Proxima Centauri b ~2%
LHS 1140 b ~0.5%
HowDid We (Very Roughly) Guess TheseNumbers?
Earth’s Example:
OnEarth,life beganassimple single‑celled organisms and took billions of years to evolve into a species that builtcomplex societies. This longjourney suggests that—even if aplanetis in the “habitablezone” (where liquid water could exist)—developing an advanced, civilizedsociety might be rare.
Proxima Centauri b:
Thisis the closest exoplanet to us. Even thoughitsstar (Proxima Centauri)is ared dwarf that sometimes sendsout strongflares (which might harmlife),its closeness makesitone of ourmost interesting candidates. That’swhy we giveit a slightly higher guess (~2%).
Theseplanets are part of agroup orbiting a verycoolstar. Their environments might be challenging (for example, they could be tidally locked, meaningone sidealwaysfaces thestar), so the chance of acomplex, advancedcivilization might be abitlower.
LHS 1140 b:
Thisplanetis promising in some ways butis alittle fartherawayand around a dimmerstar, so our playful estimateis evenlower.
All of thesepercentages are extremely rough guessesbasedon whatlittle we understand about the conditions forlife andintelligence. Scientists useideaslike the Drake Equation to think about these chances—but until we have concreteevidence, thesenumbers remain just forfun and imagination.
Enjoy exploring theseideas—and remember, spaceis full of mysteries waiting to be discovered!
あなた:
Please examine the Drake Equationitself and see if this euqationis acculate ormore opition in the equationyouwill use
ChatGPT
Reasoned about the Drake Equationを6 秒行う
re-examining the Drake Equation
evaluating the Drake Equation'svalue
OK, let me see. The Drake Equationisn't a precise formula;it'smore of a guiding heuristic that tackles numerous uncertainties regarding extraterrestrialcivilizations.
Thinking through the Drake Equation, I’m evaluatingits conceptualnature,its uncertain parameters, andits criticism to concludeonits reliabilityas an accurate predictivemodel.
Understanding the Drake Equation
I’m mappingout the Drake Equationas a conceptual guide, detailingits parameters, which are oftenbasedon estimates or opinions, to evaluateits reliability for predicting extraterrestrialcivilizations.
The Drake Equationis a famous formula thatwas created to help scientists think about the manyfactors involved in estimating thenumber of detectable extraterrestrialcivilizations in ourgalaxy. However, when welookat the equation closely, we see thatitismore of a conceptualframework or heuristictool than a precise, predictive formula.Let’sbreak downwhy:
The equationis usually writtenas:
𝑁
=
𝑅
∗
×
𝑓
𝑝
×
𝑛
𝑒
×
𝑓
𝑙
×
𝑓
𝑖
×
𝑓
𝑐
×
𝐿
N=R
∗
×f
p
×n
e
×f
l
×f
i
×f
c
×L
Where:
𝑅
∗
R
∗
: The averagerate ofstar formationper year in ourgalaxy.
𝑓
𝑝
f
p
: The fraction of thosestars that haveplanetary systems.
𝑛
𝑒
n
e
: The averagenumber ofplanets that could potentially supportlifeperstar withplanets.
𝑓
𝑙
f
l
: The fraction of thoseplanets wherelife actually develops.
𝑓
𝑖
f
i
: The fraction ofplanets withlife where intelligentlife evolves.
𝑓
𝑐
f
c
: The fraction ofcivilizations that develop technology that releases detectablesignals into space.
𝐿
L: The length oftime suchcivilizations release detectablesignals.
Why the Drake EquationIsMore of a Guideline Than a Precise Formula
Uncertain Inputs:
𝑅
∗
R
∗
𝑓
𝑝
f
p
(fraction ofstars withplanets), have become better known through modernastronomy.
The parameters related to the development oflife andintelligence—
𝑓
𝑙
f
l
,
𝑓
𝑖
f
i
,
𝑓
𝑐
f
c
, and
𝐿
L—arebasedon very limited data. For example,Earthis theonlyplanet we know wherelifehas developed, so we have no way to compare or derive a statistically robust estimate for thesefactors. This means that thevalues chosen for these parameters are largely subjective estimates or educated guesses.
Wide Ranges of PossibleValues:
Because many of thesefactors are not well-constrained, ifyouchangeone of themore uncertain parameters even slightly, thefinal estimate for
𝑁
N (thenumber ofcivilizations) can varyby many orders ofmagnitude. This wide range shows that the equation canlead to very differentoutcomesbasedonpersonal or theoreticalassumptions.
The Drake Equationwas never meant to provide a preciseanswer. Instead,it servesas a way to organize our thinking about what conditions might be necessary for the development of extraterrestrialcivilizations.It encourages discussion about the relative importance of differentfactors andhighlights where our scientific knowledgeis limited.
Is the Drake Equation Accurate orMore Opinion-Based?
Accurate?
In thesense ofbeing a strict mathematicalmodel with well-defined inputs and predictableoutputs, the Drake Equationis not accurate.Its accuracyis limitedbythe extreme uncertainties in several ofitskey parameters.
Many of the terms in the equation, especially those concerning theevolution oflife andintelligence, arebasedon opinion, interpretation, and the single example ofEarth. Therefore, while thestructure of the equationis logical, thenumbersyou put intoit (and hence thefinal result) are oftenmore reflective of our current opinionsand assumptions than of robust empirical data.
The Drake Equationis a valuabletool for framing the question of extraterrestriallife.It helps scientists and enthusiastsbreak down acomplex problem into smaller,more manageable questions. However, because several ofitsfactors are highly uncertain and subject topersonal interpretation,itismore of a conceptual guide—or even a way to stimulate discussion—than a formula that provides a definitive, accurate prediction of thenumber of extraterrestrialcivilizations.
Insummary, while the Drake Equationis useful for thinking about the variousfactors that mightlead to the emergence of acivilization,itsoutputs should betakenas highly speculative estimates rather than precise measurements.
あなた:
Please also consider the possiblities of non-human intelligent emrgencing from the longhistory ofSol system and nearbyplanets and see if thereisany possiblites that inonetime intelligentlife emerged in nearbyplanets and see this to the equation
ChatGPT
Reasoned about non-humanintelligence and the Drake Equationを19 秒行う
Evaluating non-humanintelligence
I'm thinking about the potential for non-human intelligentlife forms in theSol system and neighboringplanets, and how this mightfactor into the equation.
I'm thinking about how to integrate the emergence of non-human intelligentlife, possiblyonMars orEuropa, into the Drake Equation for theSol system and neighboringplanets.
It's interesting to think about the hypothesis of intelligentlife emergingonMars orVenus, thoughEarth remains theonly knownlife-supportingplanet in thesolar system.
Considering other realms
I'm examining if intelligentlife could have emergedonplanetslikeMars,Venus, orEuropa, and how thispossibility alignswith the predictions of the Drake Equation.
Hmm, I’m thinking about how non-human intelligentlifeonMars orVenus could intersectwith theassumptions of the Drake Equation, which seems tofocussolelyonEarth-basedevolution.
I’m piecingtogether the hypothesis of non-human, advanced, intelligentlife in thesolar system.Mars,Venus, and Titan present challenges, butEuropa and Enceladus might harbor microbiallife.
午前7時。起床。ルーティン通り、室温22℃、湿度50%に調整されていることを確認。朝食はオートミール37g、無脂肪牛乳240ml、ブルーベリー7粒。完璧だ。
午前8時。World of Warcraftログイン。今日はレイド「アンダーロット」の日だ。僕のソーサラーはギルド内でもトップクラスのDPSを誇る。無論、最適化されたスキル回し、完璧な装備、そして何よりも僕の卓越した知能の賜物であることは言うまでもない。
午後1時。休憩。昼食はチキンサラダサンドイッチ、全粒粉パン使用。マヨネーズの量は厳密に12g。
午後2時。超弦理論の研究。今日は特にtopologicalstringに焦点を当てる。nLabの記事(https://ncatlab.org/nlab/show/topological+string )は非常に有用だが、いくつかの記述には些か曖昧な点が見受けられる。例えば、Gromov-Witten不変量とChern-Simons理論の間の関係についての記述は、もう少し厳密に定式化されるべきだろう。特に、open topologicalstringにおける境界条件の選択が、導かれる物理理論にどのような影響を与えるのか、という点は未だ完全には解明されていない。
午後4時。再びWorld of Warcraft。今日はPvPアリーナに挑戦。無論、僕のチームは圧倒的な勝利を収めた。相手チームの戦略は稚拙としか言いようがなく、僕の高度な戦術眼の前には為す術がなかったようだ。
もう一度topologicalstringに関する論文に目を通す。Calabi-Yau多様体上のtopologicalstringの分配関数が、ある種のモジュラー形式と関連しているという事実は興味深いが、その背後にある幾何学的意味は未だ完全には理解されていない。この問題は、僕の今後の研究テーマの一つとなるだろう。
午後6時。夕食。ベイクドサーモン、アスパラガス添え。付け合わせのマッシュポテトはジャガイモの種類まで指定して調理してもらった。
ゴミ。論外。オープンソースなら何でもすばらしいと主張する奴以外には受け入れがたいofficeソフト未満の何か。
Microsoft Officeと互換性を謳っておきながらレイアウト崩れまくるのはOpenOfficeの頃から変わってない
しかしマトモな企業は使ってない。使ってるのはヤクザな商売してる企業ばっかり。
これ使うならGoogleドキュメントか、オープンソースのoffice使ってた方がまだ高潔さを出せる。
そもそも今のご時世あの国製のofficeソフト使うってどうなん?セキュリティー的にさ
もうこれで良くない?無料でブラウザ上で使えるオフィス。しかもマイクロソフト純正品だけあって互換性100%。他の互換性を謳うオープンソースofficeをオワコンにしてしまった元凶。
でも機能制限あり。Microsoft365が値上げしたこと考えると今後が不安。
他なんか有る?
こういうの信じられないんだよな
2011年からTwitter使ってミュートもブロックも使ってないけど
俺のおすすめはちゃんとやってるゲーム関連の声優の反応やらミームイラスト・写真・動画やら二次創作やら海外でそれやってる人やらを拾ってきてくれる
2割くらいは興味ないIP、似たようなオタクが好きそうなやつが出てくるけど
まあ十数アカくらいしかフォローしてないしフォローもされてない、フォローやいいねするポストもほぼ企業オンリーなアカウントだけどね
ゲーム以外の趣味はリストを色々つくって(ガジェットとか)フォローせずに見てるけど
昔はTweetDeckでリスト見てたけど潰されたから今は一応Open-Deckとか使う手もあるけど
そこまで漏れなくチェックしたいわけでもないからおすすめに出てきてほしいのはそうリスト設定すればたまーに出てくるくらいでちょうどよくなる
数%くらい時事ネタやテレビ番組切り抜きみたいな下衆いの出てくるけど「興味ない」系のチューニングもそれほど熱心にやらなくても秩序保たれてる
TwitterはTwitter以外での活動も見てるからもしかしたら広告ブロックを常用してるおかげとかもあるかもしれないな
というかおすすめタブ自体月に1度も見ないくらいだけどたまに見る程度の外部への興味度合いなら汚染されにくいとかあるかもしれん
ダブルクリックしてね→した瞬間消えて、裏の窓をクリックさせる攻撃
https://forbesjapan.com/articles/detail/76261
https://chromewebstore.google.com/detail/crosswindow-doubleclick-t/hepebfjikkpfhkbfkiklccecbodcbdke
テストするのも案外むずい
↓
https://archivefile.zip/test___/window2.html
これの「OpenTop Window」を押して出てきた小窓を、
別の窓に重ねてダブルクリック(もっとも実態はシングル)すると分かるよ\(^o^)/
だが、「OpenTop Window」がもう怪しい\(^o^)/
まれにトラップ失敗するよ(ノ∀`) audioコントロールとか、タイミングとか
まぁお守りみたいなもんですね
FXやら株のデイトレってのは金脈ほってるようなもんだから「つるはしを売る(MQL5でアルゴリズムを売るhttps://www.mql5.com/ja )」のが一番儲かるだろ
バックテストから逆算してオーバーフィットしちゃったアルゴ作って売る。あるいはX日使用済み(中古)とかいう概念をわざわざ導入してそれっぽい雰囲気と価値を出してもいい
cTrader Storeでもいいhttps://store.ctrader.com/start-selling
dochttps://www.mql5.com/ja/docs
Financial InformationExchangeのAPIがあるhttps://ctrader.co.jp/ctrader-fix-api/
cTIDがあれば使えるAPIJSONかProtobufs(なんだこれ)投げるhttps://ctrader.co.jp/open-api/
日本語docはクソなのでhttps://github.com/spotware/OpenApiPy か ttps://help.ctrader.com/open-api/
https://qiita.com/yugui/items/160737021d25d761b353
https://zenn.dev/nozomi_iida/articles/1022_proto_learning
人間は 「問題を指摘する人」に問題があると思い込む心理バイアス「自発的特性転移」を持っています
例えば、ある人が「日本には問題がある」と言ったとします。自発的特性転移が起こると、聞き手は無意識のうちに「問題」という特性を話し手に結びつけてしまい、「話し手が問題だ」と思ってしまいます。
Many adults in East and SoutheastAsia supportfree speech, areopen to societalchange
たとえ他人を怒らせたとしても自分の意見を公に発言することが許されるべきだ
タイ 59%
韓国 53%
ベトナム 52%
台湾 48%
香港 48%
マレーシア 45%
スリランカ 37%
日本 34%
シンガポール 34%
カンボジア 30%
気が付くと朝4時になっていた。
なんか動くところまで出来たので貼っておく。
importpdfplumberimport re#クリーンアップdef cleanuptext(text): #決算書の合計値を太字にしたことでpdfplumberが暴走するケースへの対処 #例流動資産 -> 流流流流流動動動動動資資資資資産産産産産 #誤爆が怖いので、これが起きている時だけ補正します if "流流流流流動動動動動資資資資資産産産産産" intext:text = re.sub(r'(.)92;1{4,}', r'92;1',text) #△をマイナスに。数字中のカンマを消して結合するtext = re.sub(r'△([0-9])', r'-92;1',text)text = re.sub(r'▲([0-9])', r'-92;1',text)text = re.sub(r'([0-9]),([0-9])', r'92;192;2',text) #たまに、煽り屋みたいに文字の後にスペースが入る嫌がらせを修正する #例: 投 資 有 価 証 券 ->投資有価証券text = re.sub(r'(?<=[92;u4E00-92;u9FFF92;u3040-92;u30FF])92;s(?=[92;u4E00-92;u9FFF92;u3040-92;u30FF])', '',text) returntext#今期の勘定科目の数字を取得def get_AccountName(text,need): pattern =rf'^{need} -?[0-9]+ (-?[0-9]+)' r = re.search(pattern,text, re.MULTILINE) if ris not None: return float(r[1]) return 0#清原ネットキャッシュを計算する。def calc_KiyoharaNetCash(text): total_current_assets = get_AccountName(text,'流動資産合計') if total_current_assets == 0: #要約財政状態計算書しか公開していない、楽天のような素敵な会社様への対処 total_assets = get_AccountName(text,'資産合計') if total_assets != 0: #とりあえず、資産の部の6割を流動資産とみなす total_current_assets = total_assets * 0.6 else: #流動資産合計ではなく、流動資産という単語を使っている我が道を行く東北電力への対処 total_current_assets = get_AccountName(text,'流動資産') if total_current_assets == 0: raise Exception("流動資産合計の勘定科目が見つかりませんでした。"+text) total_liabilities = get_AccountName(text,'負債合計') if total_liabilities == 0: #負債合計ではなく、負債の部合計に拘るオムロンの嬉しい決算書への対策。なんでや・・・ total_liabilities = get_AccountName(text,'負債の部合計') if total_liabilities == 0: raise Exception("負債合計の勘定科目が見つかりませんでした。"+text) #負債をご丁寧にマイナス表記で書いてくれる中外製薬の親切な決算書への対策。いい加減にしろよ・・・ if total_liabilities < 0: total_liabilities = total_liabilities * -1 #投資有価証券はないこともあるので、0を容認する marketable_securities = get_AccountName(text,'投資有価証券') #print(total_current_assets,marketable_securities,total_liabilities) netcash = total_current_assets + (marketable_securities*0.7) - total_liabilities #たまに単位を1000円にしている銘柄があるので補正する ifis_tanni_senyen(text): netcash = netcash / 1000 return netcash# "流動資産合計" と "負債合計" の間に "単位:千円" があるかをチェックdefis_tanni_senyen(text): if "単位:千円" intext: returnTrue if "単位: 千円" intext: returnTrue if "単位 : 千円" intext: returnTrue if "単位 :千円" intext: returnTrue returnFalsedefpdf_to_kiyohara_netcash(pdfpath): withpdfplumber.open(pdfpath)aspdf:text = ''.join(page.extract_text() for page inpdf.pages)text = cleanuptext(text) #print(text) kiyohara_netcash = calc_KiyoharaNetCash(text) #print(kiyohara_netcash) return kiyohara_netcashdef mymain(): import sys args = sys.argv argc =len(args) if argc <= 1:print('''これは、清原達郎氏のネットキャッシュ比率(以下、清原ネットキャッシュ比率)を決算短信のpdfから求めるソフトです。清原ネットキャッシュ=流動資産合計+(投資有価証券*0.7)-負債合計清原ネットキャッシュ比率=清原ネットキャッシュ/時価総額*100遊び方1.決算短信pdfから清原ネットキャッシュを求めるpython calc_kiyohara_netcash.py 140120240514594985.pdf結果: 30757.0決算書には、100万円単位で数字が書かれているはずなので、この数字の単位は100万円です。つまり、3075700万円。2.時価総額を億円単位で追加することで、清原ネットキャッシュ比率を求める時価総額が146億円なら146と書いてください。python calc_kiyohara_netcash.py 140120240514594985.pdf 146結果: 210.66%このコードはNYSLライセンスです。無保証、自己責任ですが、ご自由に。かぶ探とかとつなげるといいかもね。 ''') return if argc <= 2: kiyohara_netcash =pdf_to_kiyohara_netcash(args[1])print(kiyohara_netcash) return if argc <= 3: market_cap=float(args[2])*100 #億円から百万円表記に kiyohara_netcash =pdf_to_kiyohara_netcash(args[1]) ratio = round(kiyohara_netcash/market_cap*100,2)print(f"{ratio}%") returnif __name__ == '__main__': mymain()
https://www.geonames.orgから取れる、人口500人以上の都市の名前に限定すると、
import loggingimport tempfileimportzipfilefrom collectionsimport Counterimport httpxFILE_NAME_BASE ='cities500'GEONAME_FIELDS = ('geoname_id','name','ascii_name','alternate_names','latitude','longitude','feature_class','feature_code','country_code','cc2','admin1_code','admin2_code','admin3_code','admin4_code','population','elevation','dem','timezone','modification_date',)defretrieve_cities():"""Retrievecitynames from a remote server."""response = httpx.get(f'https://download.geonames.org/export/dump/{FILE_NAME_BASE}.zip')response.raise_for_status() tmpdir = tempfile.TemporaryDirectory()withopen(tmpdir.name + f'/{FILE_NAME_BASE}.zip','wb')as f: f.write(response.content)withzipfile.ZipFile(tmpdir.name + f'/{FILE_NAME_BASE}.zip','r')as z: z.extractall(tmpdir.name)withopen(tmpdir.name + f'/{FILE_NAME_BASE}.txt','r')as f:forlinein f:yieldline.split('\t')defcount_characters(to_check='ascii_name', filter_func=lambda _:True):"""Countcharacters incitynames.""" cities = {}forcity_fieldsin retrieve_cities():city =dict(zip(GEONAME_FIELDS,city_fields))ifnot filter_func(city):continue counter = Counter()for cincity[to_check]: counter[c] +=1 cities[city['geoname_id']] = {'characters': counter,'city':city}return citiesdefcount_chars_of_city_names(cities,char=None):"""Findthe citywith themost occurrences of a givencharacter.""" cities_by_char_count = {} max_count =0 max_count_char =Noneforcity_id, datain cities.items():if'characters'notin dataornot data['characters']: logging.debug(f'Nocharactersfound forcity {city_id}', data)continue count =0ifcharandcharin data['characters']: count = data['characters'][char] cities_by_char_count.setdefault(count, []).append(data)elifcharisNone:most_common = data['characters'].most_common(1)[0]char, count =most_common cities_by_char_count.setdefault(count, []).append(data)if count> max_count: max_count = count max_count_char =char cities_by_char_count.setdefault(count, []).append(data)return cities_by_char_count.get(max_count, []), max_count_chardefnot_contain_invalid_chars(city):return ('('notincity.get('ascii_name','')and'/'notincity.get('ascii_name','') )defmain(): cities = count_characters(filter_func=not_contain_invalid_chars)forcharin'abcdefghijklmnopqrstuvwxyz': cities_counted,char = count_chars_of_city_names(cities,char) max_count = cities_counted[0]['characters'][char]print(f'Thecharacter "{char}" appearsthe most ({max_count} times) in the following cities:')forcityin cities_counted:print("\t",city['city']['ascii_name'])if __name__ =="__main__":main()
特徴
・繁華街の中にある
・独特な文化も育っている
・警察や行政の人もたくさんいるが次から次への来るので対応しきれていない
ChatGPT
あなたが説明している場所は、しばしば「オープンエアドラッグシーン(Open-Air Drug Scene)」や「ストリートカルチャーエリア」と呼ばれることがあります。これらの場所は、主に以下の特徴を持つエリアを指します:
•若者やホームレス、家出した子供などの社会的に脆弱な人々が多く集まる。
•犯罪者やピンプなど、脆弱な人々を利用しようとする大人が集まることも多い。
•そのような状況下で独自のサブカルチャーやコミュニティが形成されることがある。
•警察や行政が頻繁に介入するが、状況を完全に管理するのは難しい。
このような場所の例として、アメリカの「Skid Row(ロサンゼルス)」や、カナダの「Downtown Eastside(バンクーバー)」、またはオランダの「De Wallen(アムステルダム)」などがあります。これらのエリアは、ホームレス、薬物使用者、不良の若者などが集まり、関連する社会問題が集中する場所として知られています。
いや、ガチすぎるだろ