tls_config_set_ca_path(cfg, "/usr/local/etc/mycerts/CA-certificates")
int tcscp = tls_config_set_ca_path(cfg, "/usr/local/etc/mycerts/CA-certificates")
MessageBox.Show(item2);
JET_INSTANCE instance; JetCreateInstance(&instance, "instance")); JetSetSystemParameter (&instance, JET_sesidNil, JET_paramRecovery, NULL, (JET_PCWSTR)"Off”);
err = ::JetInit(0);
err = ::JetInit(&instance);
``` filter = new string[] { "email", "SERGIOBERTOG@GMAIL.COM" }; var result = ObjMag.call(IdSesion, "customer.list", filer);```
update locationmasterhistory set export = "yes" where ID in [list]
si.WorkingDirectory = @"D:\appFolder";
si.WindowStyle = ProcessWindowStyle.Normal;si.WorkingDirectory = @"D:\appFolder"; si.Verb = "runas"; // UAC elevation required.
SELECT [ID] ,@path + CONVERT(varchar(100),[BLOBS]) AS Path FROM [cell].[dbo].[blobs]
Dim tw As IO.TextWriter = New IO.StreamWriter("C:\Test1.CSV")
Dim tw As IO.TextWriter = New IO.StreamWriter("C:\Test1.CSV", True )
public static GV() { connectionstrings = new List<connectionstringinfo>(); }
DECLARE @Text VARCHAR(65535);
DataTable dtt = new DataTable(); dtt.Columns.Add("Col1"); dtt.Columns.Add("Col2"); // ... and so on foreach (DataGridViewRow item in dgv.Rows) { if ((bool)item.Cells[0].Value == true) { bool isSelected = Convert.ToBoolean(row.Cells["Col1"].Value); if (isSelected) { dtt.Rows.Add(row.Cells[1].Value, row.Cells[2].Value, ... ); } } } dgv2.DataSource = dtt;
char ch; cin>>ch; ch=ch-32;
byte[] userInfoBytes = webClient.DownloadData(userInfoUri);
byte[] userInfoBytes = client.DownloadData(userInfoUri);
blobJson = parsed[0]["blobJson"] blobJson = blobJson.replace("'", '"') parsedbj = json.loads(blobJson) print("[0].x = ", parsedbj[0]["x"]) print("[0].y = ", parsedbj[0]["y"]) print("[0].z = ", parsedbj[0]["z"]) print("[1].x = ", parsedbj[1]["x"]) print("[1].y = ", parsedbj[1]["y"]) print("[1].z = ", parsedbj[1]["z"])
X509Store store = new X509Store(StoreName.My);
X509Store store = new X509Store(StoreName.Root);
'https://api.themoviedb.org/3/movie/550?api_key=xxxxxxxxxxxxxxxxx' &language=es-MX&page=1
'https://api.themoviedb.org/3/movie/550?api_key=xxxxxxxxxxxxxxxxx&language=es-MX&page=1'
foreach (string strFile in strFiles) { ClsExcelUpload objExcelUpload = new ClsExcelUpload(); string szConnectionString1 = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source='" + strFile + "';Extended Properties=\"Excel 12.0;HDR=YES;\""; objExcelUpload.ReadExcel(szConnectionString1, strFile); }
foreach (string strFile in strFiles) { ClsExcelUpload objExcelUpload = new ClsExcelUpload(); string szConnectionString1 = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source='" + strFile + "';Extended Properties=\"Excel 12.0;HDR=YES;\""; objExcelUpload.ReadExcel(szConnectionString1, strFile); // Presumably something else happens here objExcelUpload = null; GC.Collect(); }
void setup() { Serial.begin(115200); mlx.begin(); while (! Serial) { delay(1); } if (!lox.begin()) { Serial.println(F("Failed to boot VL53L0X")); while(1); } }
void setup() { Serial.begin(115200); while (! Serial) { delay(1); } mlx.begin(); if (!lox.begin()) { Serial.println(F("Failed to boot VL53L0X")); while(1); } }
if (Serial.available()) { }
deg.ToString().PadLeft(3, "0"c)
with con: //cursor = con.cursor(prepared=True) sql_insert_query = """ INSERT INTO TempDB (temperature, humidity) VALUES (%s,%s)""" insert_tuple = (temperature, humidity) cursor.execute(sql_insert_query, insert_tuple) con.commit()
with con: cursor = con.cursor(prepared=True) sql_insert_query = """ INSERT INTO TempDB (temperature, humidity) VALUES (?,?)""" insert_tuple = (temperature, humidity) cursor.execute(sql_insert_query, insert_tuple) con.commit()
info = API.infoB(2018, 'FALL')
def infoB(year, sem): return cursor.execute("SELECT * FROM COURSES WHERE sem_year = ? AND semester = ?", (year, sem))
info = API.infoB(2018, 'Fall')
private PLAYERCONTROLLER playerControllerScript;
playerControllerScript = GameObject.Find("Player").GetComponent<PLAYERCONTROLLER>();
int main() {}
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream())) { string json = "{...your event data here...}"; streamWriter.Write(json); }
SELECT to From Flights WHERE fino = 1
{ "tunnels": [ { "name": "command_line", "uri": "/api/tunnels/command_line", "public_url": "https://d95211d2.ngrok.io", "proto": "https", "config": { "addr": "localhost:80", "inspect": true, }, "metrics": { "conns": { "count": 0, "gauge": 0, "rate1": 0, "rate5": 0, "rate15": 0, "p50": 0, "p90": 0, "p95": 0, "p99": 0 }, "http": { "count": 0, "rate1": 0, "rate5": 0, "rate15": 0, "p50": 0, "p90": 0, "p95": 0, "p99": 0 } } }, ... ], "uri": "/api/tunnels"}
public async Task<IActionResult> Create(int id, int type) { InsuranceViewModel model; ViewBag.Type = type; var companies = await _context.InsuranceCompany .Where(e => e.IsActive) .ToListAsync(); ViewData["CompanyList"] = new SelectList(companies, "Id", "CompanyName"); switch ((InsuranceType)type) { case InsuranceType.Body: model = await insuranceTypeBodyCreate(id, type); break; case InsuranceType.ThirdPart: model = await insuranceTypeThirdPartCreate(id, type); break; default: // Throw An Exception ? break; } return View(model); }
return View(model);
if ((InsuranceType)type == InsuranceType.Body) { var bodyInsurance = await _context.BodyInsurance .Include(e => e.InsuranceCompany) .FirstOrDefaultAsync(e => e.Id == id); if (bodyInsurance == null) { … } else { … } return View(model); // Missing return !!!! } else
using SqlCommand cmd = new SqlCommand("select field from table where value = @Value", maConn); { SqlParameter param = new SqlParameter(); param.ParameterName = "@Value"; param.Value = aplSymbol; // your actual value here cmd.Parameters.Add(param); using SqlDataReader reader = cmd.ExecuteReader(); { StringBuilder colStr = new StringBuilder(""); while (reader.Read()) { string colValue = reader["Column/Field Name"].ToString(); colStr.Append(colValue); colStr.Append(","); } return colStr.ToString(); } }
return colValue;
private static void ExportPDF<TSource>(IList<TSource> customerList,string[] columns, string filePath) { Font headerFont = FontFactory.GetFont("Verdana", 10, Color.WHITE); Font rowfont = FontFactory.GetFont("Verdana", 10, Color.BLUE); Document document = new Document(PageSize.A4); PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(filePath, FileMode.OpenOrCreate)); document.Open(); PdfPTable table = new PdfPTable(columns.Length); foreach (var column in columns) { PdfPCell cell = new PdfPCell(new Phrase(column, headerFont)); cell.BackgroundColor = Color.BLACK; table.AddCell(cell); } foreach (var item in customerList) { foreach (var column in columns) { string value = item.GetType().GetProperty(column).GetValue(item).ToString(); PdfPCell cell5 = new PdfPCell(new Phrase(value, rowfont)); table.AddCell(cell5); } } document.Add(table); document.Close(); }
lastReqName = ApiAppGp.AsEnumerable().FirstOrDefault().LastReqStatusNavigation.Name,
[{regionobject},{…}…] regionobject structure: {region_id : value, region_name : value, region_fullname : value, region_type : valuee region_misc : value, projects: [{projectobject},{…}…]}