profile
viewpoint
Ashish ashjas Cadence New Delhi, India

ashjas/adam-kernel 1

Version 2.6.32

ashjas/android-native-egl-example 0

Sample that shows how to combine native rendering with Java UI on Android

ashjas/BlockchainCapstone 0

This project is the Final Capstone project for Udacity Blockchain Nanodegree. It features minting/listing/buy/sell/ Non Fungible Tokens on Opensea.io Marketplace

ashjas/Conversations 0

Conversations is an open source XMPP/Jabber client for Android

ashjas/encdroid 0

Encdroid is an Android application for accessing EncFS volumes on cloud storage

ashjas/opengles3-book 0

OpenGL ES 3.0 Programming Guide Sample Code

ashjas/Signal-Android 0

A private messenger for Android.

ashjas/UdacityBlockchainSupplyChainSolution 0

Blockchain Supply Chain Solution

issue openedtermux/termux-api

cant add multiple jobs through termux-job-scheduler?

<!-- IMPORTANT:

  1. Support of Android 5.x - 6.x is finished.
  2. Fill the template AFTER comments. -->

Problem description <!-- A clear and concise description of what the problem is. You may post screenshots in addition to description. --> scheduling multiple jobs through termux-job-scheduler with persisted option does not add jobs to the queue, instead it just overwrites the previous one. Steps to reproduce <!-- Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue. --> termux-job-scheduler -s /data/data/com.termux/files/home/script2.sh --persisted true --period-ms 300000 --job-id 1 termux-job-scheduler -s /data/data/com.termux/files/home/script2.sh --persisted true --period-ms 300000 --job-id 2 these commands only lead to the last job scheduled at job-id 2. Pending Job 2: /data/data/com.termux/files/home/script2.sh (periodic: 900000ms) (persisted) (battery not low) (network: NetworkRequest [ NONE id=0, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&VALIDATED Uid: 10288] ])

Expected behavior <!-- A clear and concise description of what you expected to happen. --> there should be two jobs scheduled with job-id 1 and job-id 2 for each scripts. Additional information

  • Termux application version: 0.99
  • Android OS version: 10
  • Device model: MiA1

created time in a month

issue openedboostorg/beast

AddressSanitizer shows heap-buffer-overflow on geting reason().data() from the http response object.

Beast version 1.71

We are using beast in our application for REST communication. When we run our application with AddressSanitizer integrated, we get a heap-buffer-overflow at the 2nd line shown below.

We are using the following http response object boost::optional<http::response_parser<http::string_body>> m_res; After we get the data back, we return the data back to the caller, one of which is where we copy the status message from the response object like this: respPtr->setStatusMessage(m_res.get().get().reason().data());

any idea why could this could end up in heap-buffer-overflow error?

created time in a month

startedboostorg/beast

started time in a month

issue commentrfjakob/gocryptfs

Question- is there a way to restore data if the gocryptfs.diriv is lost?

So how do I restore if I can't do ls with the file missing?

ashjas

comment created time in 2 months

issue openedrfjakob/gocryptfs

Question- is there a way to restore data if the gocryptfs.diriv is lost?

Hello,

I upload the encrypted files from a reverse gocrypt volume.

If for any reason the gocryptfs.diriv gets corrupted or goes missing, is there any way to resotre the data ? e.g: plain.text -> plain.crypt i upload "plain.crypt" folder to cloud which contains the gocryptfs.diriv file.

Later, if i download the plain.crypt folder from the cloud, and for some reason, i am not able to restore few files, which could include the gocryptfs.diriv file(maybe it got corrupted or some other issue).

Under this state, if i mount the plain.crypt folder to get back the plain.text folder, i generally get the "can not open directory" on accessing it. Is there still any way to get back my data?

Thanks.

created time in 2 months

issue commentnextcloud/docker

crontab question

No, i dont see any output at all.

hm400

comment created time in 2 months

issue commentnextcloud/docker

crontab question

Please have a look at the previous comments. There are three ways to run cron in Docker:

  1. Use a second container that runs the cron command. You can find an example here: https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/insecure/mariadb-cron-redis
  2. Build an derived image that uses supervisord or another process manager to run both processes (webserver / cron) in one container. We also have an example for that: https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron
  3. Use a local cronjob/timer and docker exec -u www-data my-nextcloud php cron.php

Please use https://help.nextcloud.com/ for further questions.

when i try to execute docker exec -u www-data my-nextcloud php cron.php on my local system that hosts the docker containers, it does not exit.. do i have to launch the command in the background? but if the command does not exit, what would the incremental commands from the cron scheduler do? keep on launching the script command that never exit?

hm400

comment created time in 2 months

issue openedenricocid/Music-Player-GO

any chance i can add a folder over network loke sba etc?

Is network folders playback supported like samba etc?

created time in 2 months

issue openedmicrosoft/vscode

Files marked read-only on windows no longer can be saved on vscode 1.48.0

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ --> <!-- Please search existing issues to avoid creating duplicates. --> <!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->

  • VSCode Version:1.48.0
  • OS Version:win10

Steps to Reproduce:

  1. open a file marked as read-only in properties.
  2. try to change it and save
  3. vscode prompts to retry as adimn,saveAs,discard.
  4. before vscode 1.48.0 upgrade, on 1.47.3 it used to prompt for overwrite. image

<!-- Launch with code --disable-extensions to check. --> Does this issue occur when all extensions are disabled?: Yes

created time in 2 months

issue openedCatfriend1/syncthing-android

the gui shows different device id from the one restored from the backup

Description of the issue

The syncghing-fork generates keys when first initialized. When i restore the backup, the restore is successfull, and devices and shares are restored, but the device id in the app ui still shows the device id generated when the app got initialized, and not the one which was restored.

Reproducer

Install the app, and let the app generate the keys. Now restore some previous backup. The ids on which syncthing core works is from the backup, but the syncthing-fork gui shows the one it generated during initialization.

Version Information

App Version: 1.8.0.1
Syncthing Version: 1.8.0-preview.3
Android Version: Android 10
Device manufacturer: Xiaomi Mi A1
Device model: A1

created time in 3 months

issue commentTencent/rapidjson

can i convert a json string to escaped string using rapidjson?

@miloyip Thank you.

And i suppose, the opposite i.e unstringify is done automatically by rapidjson, if it gets it as input?

ashjas

comment created time in 3 months

issue commentTencent/rapidjson

can i convert a json string to escaped string using rapidjson?

what is the type of string_to_be_escaped? I tried this:

std::string ss = R"({"delta":"bac"})";
writer.String(ss.c_str(),ss.size());// i get a crash here.
std::string escaped = sb.GetString();
ashjas

comment created time in 3 months

issue openedTencent/rapidjson

can i convert a json string to escaped string using rapidjson?

Hello,

i have a json string: {"key1":"val1"}

I need this string: "{\"key1\":\"val1\"}"

Which is basically equivalent of what JSON.stringify() of javascript does. Can i do this with rapidjson?

created time in 3 months

issue openedboostorg/beast

handling end_of_stream errors

Beast version 1.71

Hello,

we are using the async version of client for REST communication. The server keeps on closing the alive connections, at specific intervals, which isint in our control. This results in end_of_stream error at on_write().

We have encapsulated the connect sessions say class beastsession; which includes:

    io_strand& m_strand;
    tcp::resolver m_resolver;
    beast::tcp_stream m_stream;
    beast::flat_buffer m_buffer;

There is another class which manages these sessions, and their cleanups. say class Manager;

The issue we need to avoid is that in async flow, the end_of_stream should be handled gracefully within a single async initiate operation, so that , the user does not have to deal with retries in its code.

We are checking the socket state in class Manager using stream.socket().is_open(), and if it returns true, we assume that the connection would be valid, and we reuse this connect session, but which ultimately ends up in end_of_stream error.

How can i check something else along with stream.socket().is_open() so that we can get to know if the write call would end up in end_of_stream error or in other words, that the server has already closed on this alive connection, so as to discard the session and create a new session for this request before attempting anything with the old session?

created time in 3 months

more