Strange Log.i() behavior Android Studio

I’m seeing something really weird. Im making a http post request

        HttpClient httpClient = new DefaultHttpClient();
        HttpResponse response = null;
        try {
            response = httpClient.execute(httpPost);
            HttpEntity entity = response.getEntity();
            String strResponse = null;
            if (entity != null) {
                strResponse = EntityUtils.toString(entity);
                Log.i("SetupAutoCardResponse",String.valueOf(strResponse));
                Log.i("otherTest","test");
                Log.i("otherTest",strResponse);
                return true;
            }
        } catch (IOException e) {
            e.printStackTrace();
            return false;
        }

The only output I see in the log is otherTest : Test.
The logs with strResponse dont show up at all, and by that I mean, nothing shows. It does not look like this SetupAutoCardResponse : null or otherTest: null. Absolutly nothing shows up. But I know I am getting a response.

Using temp table/database in getting value SQL Server in android studio

I’m trying to get the #tempTable to be created, so that it can be used in gettingcost method to return back the variable needed.

So right now I get SQL Exception whichs says my #tempTable is not found, might means my #tempTable is not created when running the gettingcost method, therefore may I know a way to confirm my #tempTable is created before I can use it in gettingcost method?

I tried executebatch() before the gettingcost method, but it doesn’t seem to create the #temptable first before running the gettingcost method.

Here’s the code :

String tempQuery = "IF OBJECT_ID('tempdb..#tempTable') IS NULL " +"CREATE TABLE (tempdb).(dbo). 
(#tempTable) (vch_stockCode VARCHAR(MAX), i_qtyIn INTEGER, vch_IssRef VARCHAR(MAX))";
Statement tempTable = con.createStatement();
tempTable.addBatch(tempQuery);


       //basically list.get(a) is to get input data

  for(i=0 ; i < list ; i++) {
      String tempInsert = "BEGIN TRANSACTION" +
      " INSERT INTO (tempdb).(dbo).(#tempTable) (vch_stockCode , i_qtyIn, vch_IssRef) VALUES (" +
      "'" + list.get(i).getPStockCode() + "'," + list.get(i).getPQty() 
      + ",'" + list.get(i).getPIssRef() + "');";

      tempTable.addBatch(tempInsert);
      tempTable.executeBatch();                  //I want the table to exist
    
      Double cost = gettingcost(list.(a).getPStockCode(), list(a).getPParentID()) //#temptable will need to exist to be able to work in here

 }

gettingcost method

public Double gettingcost (String stockcode, int parentID) throws SQLException {
Double costprice = 0.00;
Statement pstmGetCost = null;
pstmGetCost = con.createStatement();
Integer costFactorId = 0;

String queryCostFactorId = "  SELECT i_costFactor AS costFactorId FROM dbo.btb_items WHERE vch_stockcode='" + stockcode + "'";
ResultSet rbFactor = pstmGetCost.executeQuery(queryCostFactorId);
while (rbFactor.next()) {
   costFactorId = rbFactor.getInt("costFactorId");
}

switch (costFactorId) {
    case 0:
        String queryZero =  "SELECT a.* , si.item_price AS CostPrice " +
                " INTO #tempStockItemsStageA" +
                " FROM #tempTable a " +
                " LEFT JOIN btb_stockitems si ON a.vch_stockCode = si.vch_stockCode";

        ResultSet rb0 = pstmGetCost.executeQuery(queryZero);
        while (rb0.next()) {
            costprice = rb0.getDouble("CostPrice");
        }
        break;
    return costprice; 

    //case 1,2,3 etc....
 }

OBS Studio crash when start recording after install avatarify

I have installed the avatarify, before of that my OBS studio was working fine.

but after that it shows this error by this king of setting:

Video Encoder:NVENC

enter image description here

failed to open nvenc codec: Generic error in an external library

enter image describepotion here

and when i change it to this setting it crash by pressing the record button, which its crash log file could be seen here:

Video Encoder:h264_v4l2m2m(libx264)

enter image description here

Asked also here:

https://obsproject.com/forum/threads/osb-studio-crash-when-start-recording-after-install-avataritya.130542/

Upgrading SharePoint 2010 solution to SharePoint 2013 in Visual Studio 2019 – Deployment Issue

I have a SharePoint 2010 solution I need to upgrade to 2013 and deploy to a 2013 server. I’ve opened with Visual Studio 2019 and followed the prompts to upgrade the SharePoint projects. I’ve updated other references, and made sure the solution builds without errors.

However, when I try to deploy, I get this error:

Error occurred in deployment step ‘Retract Solution’: This required project property is not found or has a value of null or empty string: BasePackagePath

I created a test SharePoint 2013 solution and it deploys as expected. I also tried just publishing one of the upgraded SharePoint projects (this solution is not sandboxed), and publishing fails with a similar error:

Publish package failed due to the following error(s): This required project property is not found or has a value of null or empty string: BasePackagePath

It appears that when I publish or deploy, the .wsp files are not being created for the projects.

How can I figure out why the .wsp is not being created? Or why the solution won’t deploy?

visual studio – How to reuse production code – for writing supporting tools?

A little history – skip to the TL;DR if you so wish to.

So I have an UWP application written in C++ that utilizes V8 and have synthetic module which allows calling native methods from the embedded JS code.

Now until recently I was writing Node.JS tool that parses C header files and creates JS modules which can be used by my production JS code to ease calling COM methods (i.e. instead of raw_call(object, 5, ...) you can do something like raw_call(object, Interface.Method_Name, ...) or even in the future just object.Method_Name(...). Anyway that is not important. The important part is that for creating this modules I use regular expressions – it turned out that however JS Regular Expressions doesn’t support recursion – so I sneaked some php executer solely for the purpose of executing PHP regular expressions inside my tool (so I can utilize recursion). Then later on I realized that PHP regex doesn’t support capturing groups inside recursion and that is a feature only present in pcre2.

Pcre2 is C only which is fine for my production code – I can just use my already created infrastructure to invoke those directly from JS – problem is that this is a feature for my tool not production code.

I’m using MSVC 2019 Preview and I can probably do some shenanigans with multiple projects but like I would have to support two identical code bases – one for production and one for a tool. Hmm maybe I can include the same source files?

TL;DR – How to most efficiently reuse production code in writing supporting tools for your application?

Executing Visual Studio 2019, stored in a remote server

I have a personal computer, and a server. On both systems, Windows 10 Pro is already installed.

TL;DR

I want to execute Visual Studio 2019 Enterprise on my personal computer, but place the application’s installation locations on the server.

Full explanation

On my personal computer, I have a total of 32Gb of disk space. It goes without saying that the OS takes most of it, leaving behind at most 500Mb of free space. On the server, there’s more than 500Gb of disk space. It’s more than enough to install virtually any software that’s currently publicly available.

My problem is that I can only execute Visual Studio 2019 (either community, pro, or enterprise) on my personal computer. I want to develop Android applications with Visual Studio, but the server doesn’t have a recent enough processor to allow hardware acceleration, and in order to run an android emulator, I need this feature.

So, I’d like to know if it’s possible to store the application on the server, but still be able to run it on my personal computer.

What I tried so far

Attempt #1

I tried to create a shared folder on the server and replaced C:Program Files and C:Program Files (x86) with directory symbolic links (see this post for how the idea came to me):

mklink /D "C:Program Files" "\serverwindowsProgram Files"
mklink /D "C:Program Files (x86)" "\serverwindowsProgram Files (x86)"

The problem is that permissions don’t translate well over network directories. In other words, my personal computer can’t execute anything that’s stored through the symbolic link (at least, when I boot the OS and log into my account, a bunch of application-specific error messages are displayed (like “Microsoft Xbox Bar” not found, and many more)).

Attempt #1.1

I then tried to symlink Visual Studio’s installation directories, as they are actually what I want to put remotely. The problem I encountered here is that I actually don’t know where all of the Visual Studio “workloads” get installed. Apparently, it is not possible to customize many of Visual Studio’s installation locations (see this). Every software of a workload can have it’s own installation location, and nothing seems customizable by the user.

I’m getting out of ideas. Perhaps would you know a way to do this?

Android studio “view mode” bar, how to remove?

Theres this bar called “view mode” according to androids documentation, the one marked 6 on this picture:

enter image description here

Src: https://developer.android.com/studio/write/layout-editor

Now I really really reeeeaaaally want to get rid of that bar, it wastes a ton of space, and has keymappings anyway.
I literally cant find anywhere in the ide or on the web on how to remove it…
Please anyone HELP!

Looking To Hire Writers With Music Production Skills In FL Studio And Other DAWs

Hey there, as the title suggests, I’m looking to hire writers who know how to 1] write quality content, and 2] use popular digital audio workstations such as FL Studio, Logic Pro X, Garageband, and more.

I’ll pay you well, probably around 3 cents to 4 cents per word which works out to be between $60US to $80US for a 2000-word article.
SEMrush

Depending on how well you write, and how well you follow instructions, I’ll up the rates accordingly. Rates may go up over time with consistent content created as well.

I’m also looking for long-term writers, at least 3-5 years of work.

I’m looking for one article per week minimum, but if you think you can write more than that, I’ll take it.

Send me an email at if you’re interested.

 

Como alterar a versão do aplicativo android usando Visual Studio Code?

Criei um aplicativo no visual studio code, porem não consigo alterar o numero de versão dele para poder postar na play store, quando entro no app.json e altero a versão fala que já existe um apk com o código de versão 1, porém eu mudei para 2.

Como posso resolver isso?

android studio – ERROR no se actualiza este listView

me gustaría contar con su ayuda…

cuando agendo una cita utilizando un slide desde el ultimo ítem de la lista se borra normal de la misma, pero cuando hago indistintamente o simplemente por comenzar desde el primero solo me funciona una vez y luego no me permite seguir agendando mas citas.

por ejemplo:

10:00:00 AM —-> Luego elimino esta
10:40:00 AM —-> elimino esta primero

cuando hago es ese orden no me da ningún error,

pero cuando lo hago desde el primero hasta el ultimo

por ejemplo:

10:00:00 AM —-> Elimino esta primero
10:40:00 AM —-> Ya no me permite eliminar esta

Como puedo hacer para que no me de ese problema?

recién estoy entrando en el mundo del backend con Firebase y demonios, si que me está costando.

muchas Gracias de ante mano por su tiempo.

Citas

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:cliniccorpore/UI/config/size_config.dart';
import 'package:cliniccorpore/UI/patient/login.dart';
import 'package:cliniccorpore/UI/patient/sch_widget.dart';
import 'package:flutter_slidable/flutter_slidable.dart';
import 'package:table_calendar/table_calendar.dart';
import 'package:intl/intl.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
class ScheduleP extends StatefulWidget {
  String dayc;
  @override
  _SchedulePState createState() => _SchedulePState();
}
class _SchedulePState extends State<ScheduleP> {
  CalendarController _controller;
  var now = new DateTime.now();
  var formatter = new DateFormat('dd-MM-yyyy');
  var day= new DateFormat('EEEE');
  List documents;

  fetchData(String doc, String date){
    Firestore.instance.collection('schedules')
        .where("date", isEqualTo: date)
        .where("state", isEqualTo: "free")
        .where("dnidoc",isEqualTo: doc)
        .snapshots()
        .listen((snapshot)
    {
      setState(() {
        documents = snapshot.documents;
        _list();
      });
    });
  }

  updateData(int index) async{
    CollectionReference collectionReference= Firestore.instance.collection('schedules');
    QuerySnapshot querySnapshot = await collectionReference.getDocuments();
    querySnapshot.documents(index).reference.updateData({"state":"busy"});
  }

  @override
  void initState() {
    super.initState();
    _controller=CalendarController();
    String date = formatter.format(now);
    widget.dayc=day.format(now);
    fetchData("0105591713",formatter.format(now));
  }
  Future getDocuments() async{
    var firestore= Firestore.instance;
    QuerySnapshot qn= await firestore.collection("schedules").getDocuments();
    return qn.documents;
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        width: double.infinity,
        decoration: BoxDecoration(
          gradient: LinearGradient(
              begin: Alignment.topCenter,
              colors: (
                //Color(0xFFdc3b37),
                //Color(0xFF575757),
                Color(0xFFFFFFFF),
                Color(0xFFFFFFFF),
              )),
        ),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>(
            Padding(
              padding: EdgeInsets.only(right: (70.00 * size_config.widthMultiplier),top: (6.00 * size_config.heightMultiplier),bottom: (0.70 * size_config.heightMultiplier)),
              child: GestureDetector(
                  onTap: (){
                    Navigator.pop(
                      context,
                      MaterialPageRoute(builder: (context) => LoginP()),
                    );
                  },
                  child: Row(
                    children: (
                      Icon(Icons.arrow_back_ios, size: (7.79 * size_config.imageSizeMultiplier), color: Color(0xFF575757)),
                      Text(
                        'Volver',
                        textAlign: TextAlign.center,
                        style: TextStyle(
                          color: Color(0xFF575757),
                          fontFamily: 'BalooMedium',
                          fontSize: (4.50 * size_config.imageSizeMultiplier),
                        ),
                      ),
                    ),
                  )),
            ),
            Padding(
              padding: const EdgeInsets.all(0.5),
              child: Column(
                mainAxisAlignment: MainAxisAlignment.start,
                children: (
                  Text(
                    'Dr.Jaime Guaman',
                    textAlign: TextAlign.center,
                    style: TextStyle(
                      color: Colors.indigo,
                      fontFamily: 'BalooMedium',
                      fontSize: (8.50 * size_config.imageSizeMultiplier),
                    ),
                  ),
                  TableCalendar(
                    locale: 'es_ES',
                    startingDayOfWeek: StartingDayOfWeek.monday,
                    onDaySelected: (date1,events){
                      //print(now=formatter.format(date1));
                      print(widget.dayc=day.format(date1));
                      print(formatter.format(date1));
                      setState(() {
                        fetchData("0105591713",formatter.format(date1));
                        _list();
                      });
                    },
                    initialCalendarFormat: CalendarFormat.week,
                    weekendDays: <int>(DateTime.saturday, DateTime.sunday),
                    calendarStyle: CalendarStyle(
                      todayColor: Color(0xFF979797),
                      selectedColor: Colors.orangeAccent,
                      selectedStyle: TextStyle(
                        fontFamily: 'BalooMedium',
                        fontSize: (5.80 * size_config.imageSizeMultiplier),
                        color: Colors.white,
                      ),
                    ),
                    headerStyle: HeaderStyle(
                      centerHeaderTitle: true,
                      formatButtonVisible: false,
                    ),
                    calendarController: _controller,
                  ),
                ),
              ),
            ),
            Container(
            //color: Colors.grey(300),
            height: 10.25 * size_config.heightMultiplier,
              width: double.infinity,
              child: Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: (
                  Text('Desliza hacia la Izquierda en la Hora',
                    style: TextStyle(
                      fontFamily: 'BalooMedium',
                      fontSize: (5.50 * size_config.imageSizeMultiplier),
                      color: Colors.indigo),
                  ),
                  Text('para Agendar Cita',
                    style: TextStyle(
                        fontFamily: 'BalooMedium',
                        fontSize: (5.80 * size_config.imageSizeMultiplier),
                        color: Colors.indigo),
                  ),
                ),
              ),
    ),
            //Schwidget(),
            StreamBuilder<QuerySnapshot>(
              stream: Firestore.instance.collection('schedules')
                  .where("date", isEqualTo: formatter.format(now))
                  .where("dnidoc",isEqualTo: "0105591713")
                  .where("state", isEqualTo: "free")
                  .snapshots(),
              builder: (BuildContext context, AsyncSnapshot<QuerySnapshot> data){
                if(data.hasData && documents.length!=0){
                  return Expanded(
                    child: Column(
                      children: <Widget>(
                        _list(),
                      ),
                    ),
                  );
                }
                return Center(
                  child: Padding(
                    padding: EdgeInsets.only(top:5 * size_config.heightMultiplier),
                    child: Container(
                      width: 85* size_config.widthMultiplier,
                      height: 25 * size_config.heightMultiplier,
                      decoration: BoxDecoration(
                        gradient: LinearGradient(
                            begin: Alignment.topCenter,
                            colors: (
                              //Color(0xFFdc3b37),
                              //Color(0xFF575757),
                              Colors.indigoAccent,
                              Colors.indigo,
                            )),
                          borderRadius: BorderRadius.circular(25.0),
                          boxShadow: (
                            BoxShadow(
                              color: Colors.indigoAccent.withOpacity(0.5),
                              offset: Offset(0,15),
                              blurRadius: 9,
                              spreadRadius: 5
                            )
                          ),
                      ),
                      child: Column(
                        mainAxisSize: MainAxisSize.max,
                        mainAxisAlignment: MainAxisAlignment.center,
                        children: (
                          Row(
                            mainAxisAlignment: MainAxisAlignment.center,
                            children: (
                              Text('Citas de Hoy Agotadas',
                                style: TextStyle(
                                    fontFamily: 'BalooMedium',
                                    fontSize: (6.50 * size_config.imageSizeMultiplier),
                                    color: Colors.white),
                              ),
                            ),
                          ),
                          Row(
                            mainAxisAlignment: MainAxisAlignment.center,
                            children: (
                              Text('Revisa otra fecha Porfavor',
                                style: TextStyle(
                                    fontFamily: 'BalooMedium',
                                    fontSize: (4.50 * size_config.imageSizeMultiplier),
                                    color: Colors.white),
                              ),
                            ),
                          )
                        ),
                      ),
                    ),
                  ),
                );
              },
            )
          ),
        ),
      ),
    );
  }
  Widget _dates(IconData icon,String hora, String state, int index){
    return Slidable(
      actionPane: SlidableDrawerActionPane(),
      actionExtentRatio: 0.50,
      child: ListTile(
        leading: Icon(icon,size: (7.79 * size_config.imageSizeMultiplier),color: (Colors.grey),),
        title: Text(
          hora,
          style: TextStyle(
            color: Colors.green,
            fontFamily: 'BalooMedium',
            fontSize: (3.00 * size_config.textMultiplier),
          ),
        ),
        trailing:
        Text(
          state,
          style: TextStyle(
            color: Colors.green,
            fontFamily: 'BalooMedium',
            fontSize: (2.70 * size_config.textMultiplier),
          ),
        ),
      ),
      secondaryActions: <Widget>(
        IconSlideAction(
          caption: 'Agendar Cita',
          color: Colors.green,
          icon: Icons.check_circle,
          onTap: () {
            print('Cita Aceptada');
            updateData(index);
          },
        ),
      ),
    );
  }
  Widget _list(){
    return Expanded(
      child: ListView.separated(
        itemCount: documents.length,
        itemBuilder: (BuildContext context,int index){
          return _dates((Icons.access_time), (documents(index))('time').toString(), (documents(index))('state').toString(),index);
        },
        separatorBuilder: (BuildContext context, int index){
          return Container(
            color: Colors.grey(300),
            height: 0.25 * size_config.heightMultiplier,
          );
        },
      ),
    );
  }
}