About Us

About the blog
Techgaun means Tech + Gaun and the meaning of Gaun in nepali language is Village. So techgaun is like a village for tech-loving people where you might not find everything but you'll surely find something interesting and useful.

About the authors of this blog

Samar Dhwoj Acharya
I am Samar Dhwoj Acharya, a computer engineering undergraduate and a tech enthusiast. I am highly interested in the technology stuffs esp. in softwares and security aspects. As of now, I am working for a new startup and doing lots of freelancing in the meantime.

Brisha Pote
A computer engineering student interested in photography and other creative stuffs.

We are happy to have three new guys in our team as author. We hope they will actively post on the blog.

Saurya Dhwoj Acharya

Abhiyan Thapa

DaNePaLI


Read more...

Comments (17)

Loading... Logging you in...
  • Logged in as
anonymous's avatar

anonymous · 754 weeks ago

r u guys both from kathmandu university...........
yep we are.
SAi Ho SAI ho DUKKHAI DUKKHAI...
thankx dude
oho bante samar................
So awesome
Good job. Keep it up...
Loved your blog. Keep on writing the good stuffs.
good job with the content.
1 reply · active 675 weeks ago
Kyaa ho blogmaa merai naam ko le comment gare6.. kosle ho?
#include <stdio.h>
#include <regex.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
regex_t re;
FILE *fp;
int r;
short int found = 0;
char *line = NULL;
char inp[1024];
size_t len = 0;
ssize_t read;
if (argc < 2)
{
printf("Usage: %s <filename>nn", argv[0]);
exit(EXIT_FAILURE);
}

if ((fp = fopen(argv[1], "rb")) == NULL)
{
perror("Unable to open the specified file.");
exit(EXIT_FAILURE);
}

printf("Enter the string to test: ");
//scanf("%s", inp);
fgets(inp, sizeof(inp), stdin);

while ((read = getline(&line, &len, fp)) != -1)
{

if ((r = regcomp(&re, line, REG_EXTENDED | REG_NEWLINE)) != 0)
{
printf("Invalid regular expression %sn", line);
regfree(&re);
continue;
}
r = regexec(&re, inp, 0, NULL, 0);

if (r == 0)
{
printf("Given string %s matched regex %snn", inp, line);
found = 1;
}
/*else if (r == REG_NOMATCH)
{
printf("Given string %s did not match regex %snn", inp, line);
}*/
regfree(&re);
}

if (found == 0)
{
printf("No RE is matched with given stringnn");
}

fclose(fp);
return 0;
}

regex file:
1
[[:digit:]]
[a-z]*
[0-9]{1,5}
[[:alpha:]]
Bro There are many thing to know here ....I will now keep an update with techgaun......
I also love Technoloy.....
Dipesh wagle's avatar

Dipesh wagle · 580 weeks ago

why is techgaun wifi near me?
1 reply · active 580 weeks ago
Maybe because my new flat is around yours :D

Post a new comment

Comments by