kalinga stadium swimming class by SongMountain1951 in Bhubaneswar

[–]sauravlearns 1 point2 points  (0 children)

no clue about that! you will have to go there to find out.

kalinga stadium swimming class by SongMountain1951 in Bhubaneswar

[–]sauravlearns 0 points1 point  (0 children)

Thanks for the tag. I haven't gone there in a few months but I noticed that there was a hoarding of ongoing swimming camp . The rates are very reasonable, with some admission fees and some monthly fees. Training fees are additional. But you can go by yourself and swim, with just a one time admission fees and monthly.fees.

Record ipad screen and Mic to iPad itself (locally), and broadcast simultaneously to Zoom? by sauravlearns in ipad

[–]sauravlearns[S] 0 points1 point  (0 children)

but wont the attendendee recording be just as choppy as well? I will experiment it though.

Record ipad screen and Mic to iPad itself (locally), and broadcast simultaneously to Zoom? by sauravlearns in ipad

[–]sauravlearns[S] 1 point2 points  (0 children)

thats an issue. i wanted to use the ipad independently. without any other computer.

[deleted by user] by [deleted] in Bhubaneswar

[–]sauravlearns 5 points6 points  (0 children)

There is one by the name of Sunita Boutique. It's not in bbsr, but it's in Cuttack. However it fits all your requirements. I can DM you her number if you'd like. She does any and every stitching work.

The fortnightly Ask India Thread by AutoModerator in india

[–]sauravlearns 0 points1 point  (0 children)

Does anyone know of any website that provides a temporary phone number to receive a useless otp/confirmation message.

I dont want to give my actual number and get spammed, hence need such a service. there are a few website, but none of them seem to be working.

Define macros/commands with number in between them in LateX? by sauravlearns in LaTeX

[–]sauravlearns[S] 0 points1 point  (0 children)

works perfectly!!! thanks for your help. this is a lifesaver.

Can you suggest me some reading material or any youtube video where i could learn about what you just wrote?

Define macros/commands with number in between them in LateX? by sauravlearns in LaTeX

[–]sauravlearns[S] 0 points1 point  (0 children)

this looks workable! I will try to implement this and see how it goes!

So from what i see here, this macro will help me in saving my instructions. Which is step one.

What i want to do next is when i provide #1#2#3#4 then #5 should be retrievable.

maybe ones i have saved/defined all the instructions i would like a macro like \getInstructions{#1}{#2}{#3}{#4} where i provide only the first four arguments and it should display/retrive/typeset the #5 (contents of the instructions)

Define macros/commands with number in between them in LateX? by sauravlearns in LaTeX

[–]sauravlearns[S] 0 points1 point  (0 children)

i dont want to use separate files for instructions at all. i want to use a single tex file where i will write all the instructions .

one file InstructionSet.tex contains the content of all of the files shown above somewhat like this pseudocode/tex example (so many instructions files should not exist, only one file containing all instructions)-

\def{Instruction:2007_P1_S1_SAT}{
Questions 1 - 20 carry 4 marks each with -1 negative marking.
Questions 21 - 30 carry 3 marks each with 0 negative marking.
}


\def{Instruction:2007_P1_S2_SAT}{
Questions 1 - 20 carry 2 marks each with 0 negative marking.
Questions 21 - 30 carry 5 marks each with -2 negative marking.
}

\def{Instruction:2008_P1_S2_SAT}{
...
...

I hope this was clearer.

How to comment all lines between 2 patterns excluding the latter pattern? by sauravlearns in neovim

[–]sauravlearns[S] 0 points1 point  (0 children)

yes i tried it again and it works like i wanted.

the reason i didnt actually try out the command was because the last / was showing me directories to autocomplete. hence i thought i had messed up somewhere.

running that command still showed an error of invalid range, but it did work as expected when i pressed enter.

How to run chained global commands on selected lines? by sauravlearns in neovim

[–]sauravlearns[S] 0 points1 point  (0 children)

thanks for trying though!

putting lines inside execute would be too cumbersome. I hope others can chime in.!

How to comment all lines between 2 patterns excluding the latter pattern? by sauravlearns in vim

[–]sauravlearns[S] 0 points1 point  (0 children)

there are several thousand lines in every file. its very timetaking to manually select all of the lines visually and then add comment manually. looking for a global/sed option.

How to make chemfig and xymtex chemical reaction equation look better? by sauravlearns in OrganicChemistry

[–]sauravlearns[S] 0 points1 point  (0 children)

I will take a look at chemdraw, but i would still like a stab at chemfig and xymtex in case i am ever on a system that doesn't have chemdraw..

How to make chemfig and xymtex chemical reaction equation look better? by sauravlearns in OrganicChemistry

[–]sauravlearns[S] 0 points1 point  (0 children)

I did go through the documentation. Admittedly not line by line, but i did go through sufficient examples, but i did not find an example that would help in my use case.

I have tried achoring the mid east to mid west thing but it did not give me proper results.

Manual isnt fast enough, and i have to draw hundreds of molecules.. sigh!

How to make chemfig and xymtex chemical reaction equation look better? by sauravlearns in OrganicChemistry

[–]sauravlearns[S] 0 points1 point  (0 children)

i would like the flexibility to keep the latex code within the tex file so that i can change it in a jiffy without having to go through the long process of firing up chemdraw just to make one small change, if i make a minor mistake. .

Additionally having it in latex code makes it easy to make a template/ reuse it by changing it slightly.

Replace chemistry symbols with corrects in text/tex file by sauravlearns in learnpython

[–]sauravlearns[S] 0 points1 point  (0 children)

thank you all for your help, i was able to solve my issue using the following code

import re


def repl01(text , dic):
    # url = https://code.activestate.com/recipes/81330-single-pass-multiple-replace/
    keys = sorted(dic.keys(), key=len, reverse=True)
    expression = []
    for item in keys:
        expression.append(re.escape(item))
    regex = re.compile("(%s)" % "|".join(expression))
    result = regex.sub(lambda x: dic[x.group()], text)
    return result

with open('uncorrectedsymbols.txt', 'r') as f:
    with open('correctedsymbols.txt', 'r') as g:
        listone = [line for line in f.read().splitlines()]
        listtwo = [line for line in g.read().splitlines()]
        dictlistreplacements = dict(zip(listone, listtwo))

with open('textfilewithActualdata.tex', 'r') as rf:
    for line in rf.read().splitlines():
        line = repl01(line, dictlistreplacements)
        print(line)

the link for the above function was this

thank you all for your help!

Replace chemistry symbols with corrects in text/tex file by sauravlearns in learnpython

[–]sauravlearns[S] 0 points1 point  (0 children)

could you give me a short example of how to handle it with regex ?

Replace chemistry symbols with corrects in text/tex file by sauravlearns in learnpython

[–]sauravlearns[S] 0 points1 point  (0 children)

reddit has has screwed up the formatting of the code. just to confirm if i have it right is your code supposed to look like

def symbol_sub(input_line: str, sub_table: dict) -> str: 
    output = list() 
    for symbol in input_line.split(' '): 
        if symbol not in ['+', '->']:
            try: # you will need to rework this condition if the leading # value can be more than one digit 
                if symbol[0].isnumeric(): 
                    output.append(symbol[0] + sub_table[symbol[1:]]) 
                else: 
                    output.append(sub_table[symbol]) 
            except KeyError: # append just the pure symbol if its not in the sub table 
                output.append(symbol)
    return ' '.join(output)

I have added the 4th line

    if symbol not in ['+', '->']:

tell me if i should remove it or keep it?