投稿時間:2023-02-14 19:28:27 RSSフィード2023-02-14 19:00 分まとめ(35件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
ROBOT ロボスタ JINS MEMEとaiboが異色のコラボ、悪い姿勢が続くとaiboが「ワンッ!」と教えてくれる!ココロとカラダのケアを楽しくサポート https://robotstart.info/2023/02/14/jins-meme-aibo.html 2023-02-14 09:30:20
IT ITmedia 総合記事一覧 [ITmedia Mobile] 「ソースネクスト」Webサイトで個人情報とクレジットカード情報の漏えいが発生 最大で約12万件が流出のおそれ https://www.itmedia.co.jp/mobile/articles/2302/14/news172.html itmediamobile 2023-02-14 18:30:00
IT ITmedia 総合記事一覧 [ITmedia News] 「AIと人間の恋」がテーマの小説コンテスト開催 人工知能搭載なら相手が炊飯器でもOK https://www.itmedia.co.jp/news/articles/2302/14/news170.html itmedia 2023-02-14 18:30:00
TECH Techable(テッカブル) 小学館、ドラえもんと遊びながら思考力を鍛えられる知育ゲームを発売! https://techable.jp/archives/195814 知的好奇心 2023-02-14 09:00:34
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders Windows操作映像記録ツール新版「ESS REC 6」、カメラで操作者を常時判別可能に | IT Leaders https://it.impress.co.jp/articles/-/24451 Windows操作映像記録ツール新版「ESSREC」、カメラで操作者を常時判別可能にITLeadersエンカレッジ・テクノロジは年月日、Windows操作映像記録ソフトウェア新版「ESSREC」と、特権ID管理ソフトウェア新版「ESSAdminONEV」を発表した。 2023-02-14 18:58:00
python Pythonタグが付けられた新着投稿 - Qiita 2次元配列の列ごとの和の配列 https://qiita.com/yrinsaka/items/2f545b38308589ccd5d9 配列 2023-02-14 18:16:04
技術ブログ Developers.IO IAM ポリシーで他人の S3 バケット・EC2 キーペアを削除できなくさせる方法 https://dev.classmethod.jp/articles/iam-policy-delete-own-resources/ poweruseraccess 2023-02-14 09:51:39
技術ブログ Developers.IO テクニカルサポートに寄せられる AWS WAF に関するよくある質問 https://dev.classmethod.jp/articles/aws-ts-faq-waf/ awswaf 2023-02-14 09:21:27
海外TECH MakeUseOf 5 Ways to Learn How to Write Effective ChatGPT Prompts for Best AI Answers https://www.makeuseof.com/write-effective-chatgpt-prompts-for-ai-answers/ Ways to Learn How to Write Effective ChatGPT Prompts for Best AI AnswersThese online guides user submitted examples and free YouTube video courses will teach you prompt engineering for ChatGPT to get AI answers 2023-02-14 09:30:16
海外TECH DEV Community Dimensionality Reduction: An Introduction to Methods and Applications https://dev.to/anurag629/dimensionality-reduction-an-introduction-to-methods-and-applications-i51 Dimensionality Reduction An Introduction to Methods and Applications IntroductionData is everywhere and with the increasing number of sensors devices and the Internet of Things IoT the volume of data is growing exponentially This has led to a situation where we have more data than we know what to do with However the amount of data that we have comes with a price as it can be challenging to process and analyze it especially when it comes to high dimensional data The curse of dimensionality is a well known problem in machine learning which refers to the phenomenon of increased computational complexity and sparsity of data as the number of dimensions increases In such cases the performance of traditional machine learning models can be adversely affected and they may become prone to overfitting Dimensionality reduction is a technique that can help overcome this issue What is Dimensionality Reduction Dimensionality reduction is a technique that reduces the number of features or variables in a dataset while retaining most of the information The primary objective of dimensionality reduction is to transform the high dimensional data into a lower dimensional space such that the essential characteristics of the data are preserved By reducing the dimensionality of the data we can make it easier to analyze visualize and model and in some cases it can lead to better performance and faster training times Applications of Dimensionality ReductionDimensionality reduction has several applications in data science machine learning and artificial intelligence Some of the key applications of dimensionality reduction are as follows Data Visualization One of the most common applications of dimensionality reduction is data visualization High dimensional data is difficult to visualize and by reducing the dimensionality of the data we can project it onto a lower dimensional space and create visualizations that are easier to interpret Feature Extraction Another application of dimensionality reduction is feature extraction where we transform the high dimensional data into a lower dimensional space and retain only the most important features This can be useful in cases where the number of features is high and we want to reduce the computational complexity of the machine learning model Clustering Dimensionality reduction can also be used to improve the performance of clustering algorithms By reducing the dimensionality of the data we can improve the clustering quality and reduce the computational complexity of the clustering algorithm Anomaly Detection Dimensionality reduction can also be used for anomaly detection where we identify unusual patterns in the data that do not conform to the norm By reducing the dimensionality of the data we can make it easier to identify anomalies in the data Types of Dimensionality ReductionDimensionality reduction techniques can be broadly classified into two categories linear and nonlinear Linear Dimensionality Reduction Linear dimensionality reduction techniques transform the data into a lower dimensional space by projecting it onto a linear subspace Principal Component Analysis PCA and Linear Discriminant Analysis LDA are examples of linear dimensionality reduction techniques Nonlinear Dimensionality Reduction Nonlinear dimensionality reduction techniques transform the data into a lower dimensional space by creating a nonlinear mapping t SNE and Isomap are examples of nonlinear dimensionality reduction techniques Principal Component Analysis PCA PCA is one of the most widely used linear dimensionality reduction techniques It is a method for transforming the data into a lower dimensional space by projecting it onto a set of orthogonal axes known as principal components The principal components are calculated such that they capture the maximum amount of variance in the data PCA can be used for data visualization feature extraction and anomaly detection In data visualization PCA can be used to create a scatter plot of the data in a lower dimensional space In feature extraction PCA can be used to reduce 2023-02-14 09:53:06
海外TECH DEV Community How to build a Barcode Widget in React Native (part II: iOS) https://dev.to/deversity/how-to-build-a-barcode-widget-in-react-native-part-ii-ios-5d28 How to build a Barcode Widget in React Native part II iOS In this tutorial we are going to learn how to build a barcode widget for an iOS device In the previous part we focused on Android and Java while in this part we re going to be using Swift The process will be similar in many ways except for the bridging method which is going to slightly differ In part I of this series we will show how to create Android widget using Java IntroIn order to build the widget we will be creating a simple extension in xCode as well as a bridge that will allow our app to communicate with the widget Let s begin Creating the widgetWe can start by opening our project in xCode Now right click on the project folder and navigate to file gt new gt target This will open a new window with different extensions Let s search for the Widget Extension Next we can select the product name of our widget I am going to name it BarcodeWidget Make sure to uncheck “Include Configuration Intent and Include live activity If we click the finish button xCode is going to ask us if we want to create an active scheme Select activate Now we can select our widget extension in the targets section and run it Be sure to run it for iOS and up as the previous versions of iOS aren t compatible with the extension At this point we should be able to see our widget on the home screen For now it is only displaying a simple date Let s take a look at the files created in our project We can see that xCode created a new folder with the same name we set for the widget at the beginning To modify our widget we can open the BarcodeWidget swift file There are different functions and structures inside the file Let s take a look at a few of them BarcodeWidget struct deals with the main configuration of our widget Here we can set the display name as well as the widget s description If we d like our widget to be non resizable and of a specific size the default preview offers three options small medium and large we can set it here by calling the supportedFamilies function and passing it an argument an array that contains our preferred widget sizes supportedFamilies systemSmall systemMedium systemLarge Next there is the BarcodeWidgetEntryView struct where we can modify the widget s layout struct BarcodeWidgetEntryView View var entry Provider Entry var body some View Text entry date style time You may also find the getTimeline method It provides an array of timeline entries for the current time and optionally any future times to update a widget func getTimeline in context Context completion escaping Timeline lt Entry gt gt var entries SimpleEntry Generate a timeline consisting of five entries an hour apart starting from the current date let currentDate Date for hourOffset in lt let entryDate Calendar current date byAdding hour value hourOffset to currentDate let entry SimpleEntry date entryDate entries append entry let timeline Timeline entries entries policy atEnd completion timeline If you want a better understanding of the TimelineProvider and its functions you can always check Apple s official documentation in here BridgingTo display data from our React Native app we are going to need some additional settings First let s add the App Group capability to our project in order to let the widget communicate with the app Find your main app target in the Xcode project settings switch to the Signing amp Capabilities tab and click on Capability Then search for App Groups and double click on it Click the button in the new App Groups capability created and choose your team The final step is to add an app group identifier After you finish you should see your App Group id appear If it comes up red make sure to try the refresh button Now we can do the same thing for our widget s target We can open the widget s Signing amp Capabilities tab and add a new App Groups capability If we select the same team as before we should be able to see the identifier we already created in our main project s target Make sure the same id is selected on both targets We have to set one more thing before we start writing our code in React Native This includes installing the SharedGroupPreferences package From the terminal run npm i react native shared group preferencesOpen your App file and import import SharedGroupPreferences from react native shared group preferences Now let s add this to our code Let s display a random digit number const barcode Math floor Math random toString const appGroupIdentifier group widget barcode jp useEffect gt if Platform OS ios const setWidgetData async gt await SharedGroupPreferences setItem widgetKey text barcode undefined barcode appGroupIdentifier setWidgetData catch error gt log info gt error setting widget data err error barcode The appGroupIdentifier should be the same as the one we just set in our App Groups Great We are done with the React Native part Now let s go back to our widget s code To add new text to our widget first we have to add the following code above our Provider struct WidgetData Decodable var text String Next update the SimpleEntry struct struct SimpleEntry TimelineEntry let date Date let myString String Variable myString is going to be our barcode string that we set in the React Native app When we add this an error is going to come up telling you to update the number of arguments of certain methods After fixing this error our code should look something like this Now let s update our getTimeline method with the following code func getTimeline in context Context completion escaping Timeline lt Entry gt gt var entries SimpleEntry let userDefaults UserDefaults init suiteName group widget barcode jp if userDefaults nil if let savedData userDefaults value forKey widgetKey as String let decoder JSONDecoder let data savedData data using utf if let parsedData try decoder decode WidgetData self from data let currentDate Date let entryDate Calendar current date byAdding second value to currentDate let entry SimpleEntry date entryDate myString parsedData text entries append entry let timeline Timeline entries entries policy atEnd completion timeline else print Could not parse data else let currentDate Date for hourOffset in lt let entryDate Calendar current date byAdding second value hourOffset to currentDate let entry SimpleEntry date entryDate myString No data entries append entry let timeline Timeline entries entries policy atEnd completion timeline Replace the suiteName value with your own App Group ID in the following line UserDefaults init suiteName group widget barcode jp The last thing to set before running our widget again is the BarcodeWidgetEntryView struct In order to display the barcode text from the React Native app let s add this struct BarcodeWidgetEntryView View var entry Provider Entryvar body some View Text entry myString font system size tracking Remember to run pod install in your iOS folder Now let s start the app If everything works well the barcode number we previously set in our app will be displayed on the widget Generating the barcode image from a string valueThe only thing that s left to do includes generating a barcode image from our barcode number as well as displaying it To do this we are going to add a few functions to our BarcodeWidget swift file The first function we are going to add is generateBarcode func generateBarcode from string String gt UIImage let data string data using String Encoding ascii if let filter CIFilter name CICodeBarcodeGenerator filter setDefaults Margin filter setValue forKey inputQuietSpace filter setValue data forKey inputMessage Scaling let transform CGAffineTransform scaleX y if let output filter outputImage transformed by transform let context CIContext CIContext init options nil let cgImage CGImage context createCGImage output from output extent let rawImage UIImage UIImage init cgImage cgImage Refinement code to allow conversion to NSData or share UIImage Code here let cgimage CGImage rawImage cgImage let cropZone CGRect x y width Int rawImage size width height Int rawImage size height let cWidth size t size t cropZone size width let cHeight size t size t cropZone size height let bitsPerComponent size t cgimage bitsPerComponent THE OPERATIONS ORDER COULD BE FLIPPED ALTHOUGH IT DOESN T AFFECT THE RESULT let bytesPerRow cgimage bytesPerRow cgimage width cWidth let context CGContext CGContext data nil width cWidth height cHeight bitsPerComponent bitsPerComponent bytesPerRow bytesPerRow space CGColorSpaceCreateDeviceRGB bitmapInfo cgimage bitmapInfo rawValue context draw cgimage in cropZone let result CGImage context makeImage let finalImage UIImage cgImage result return finalImage This function will create an UIImage from the string Finally let s update BarcodeWidgetEntryView by adding the following struct BarcodeWidgetEntryView View var entry Provider Entry var body some View if let image generateBarcode from entry myString Image uiImage image resizable imageScale small frame width CGFloat height CGFloat padding bottom Text entry myString font system size tracking When we run the application again the widget should be displaying both the text and the image as shown below Updating the widget contentNow let s focus on keeping our widget up to date First let s change our update policy to never since we are going to instruct the app on when to update its content let timeline Timeline entries entries policy never Let s create a reloadWidget function in the Swift code that we are later going to call in our React Native app This can be done by adding two files to our project Select new file and choose Swift File in the next window Next let s name the file WidgetModule and select your app as the target of this file Update the WidgetModule swift file as shown below import Foundationimport AVFoundationimport WidgetKit objc WidgetModule class WidgetModule NSObject objc public func reloadWidget kind String gt Void if available iOS if arch arm arch i arch x WidgetCenter shared reloadAllTimelines endif objc static func requiresMainQueueSetup gt Bool return true Our reloadWidget is using WidgetCenter shared reloadAllTimelines method to reload the widget s timeline For more details about reloading the widget check this link Now we need to add the other file Choose Objective C Let s name it the same as the file before WidgetModule and select the same file target as of the previously created file Update the file like this import lt Foundation Foundation h gt import React RCTBridgeModule h interfaceRCT EXTERN MODULE WidgetModule NSObject RCT EXTERN METHOD reloadWidget NSString kind endThis file will be used to export our newly created module that we are going to use later in the React Native app The last file that we are going to add is a Bridging Header Again add a new file and choose Header Paste the following code Use this file to import your target s public headers that you would like to expose to Swift import React RCTBridgeModule h Finally let s call our updateWidget function from the React Native code First import NativeModules in the App file import NativeModules from react native export const App gt const WidgetModule NativeModules Then let s update our useEffect hook by adding then gt WidgetModule reloadWidget appGroupIdentifier to setWidgetData method The final result should look like this if Platform OS ios const setWidgetData async gt await SharedGroupPreferences setItem widgetKey text barcode undefined barcode appGroupIdentifier setWidgetData then gt WidgetModule reloadWidget appGroupIdentifier catch error gt log info gt error setting widget data err error The endAlright it looks like we are done Don t forget to run npm install amp amp cd iOS amp amp pod install before running your project again The widget layout should now be updating every time we call the updateWidget function Feel free to play around with different widget options and try to add some style to it Good luck with your project I hope this tutorial helped you 2023-02-14 09:39:20
海外TECH DEV Community How to build a Barcode Widget in React Native (part I: Android) https://dev.to/deversity/how-to-build-a-barcode-widget-in-react-native-part-i-android-487j How to build a Barcode Widget in React Native part I Android A widget or a gadget is a tiny application or extension which enables additional features and improves the user s general experience They can help us facilitate access to the most used functions of a device and offer us visual information without the need to run anything else Unfortunately widget development is not feasible using React Native alone An alternative is to create a native widget and a bridge that will allow communication between the widget and the React Native application In this part we are focusing on building barcode widget for Android platform using Java In part II of this series we will show how to create iOS widget using Swift IntroFirst we are going to create a simple widget that will only display the barcode number string value pulled from our React Native app that we re making the widget for Later we will generate a barcode image from our barcode string and display it on our widget layout Creating the widgetWe can start by opening our React Native project in Android Studio Be sure to select the android folder when opening your project Navigate to res gt New gt Widget gt App Widget This will let us create the widget extension for Android Here we are able to configure some default options for our widget This includes the class name minimum width and height in cells resizability horizontally vertically none the source language Java Kotlin etc This time I am going to create a x widget that isn t resizable If we click finish Android studio is going to display a preview of all the files that are going to be created Here we can also note that setting our class name to BarcodeWidget will create a java file with the same name BridgingIn order to let our app communicate with the widget control what s displayed and share data we have to make the previously mentioned bridge Bridging is simply building your own custom modules that aren t provided by the default Components given by React Now you may find the folder where your MainActivity java file is located In this folder we are going to add two files SharedStorage java and SharedStoragePackager java In the first file we are going to add the code written below This code includes a set method that we re going to use later to set some data in the shared storage So let s add the following code to out SharedStorage java file PUT YOUR PACKAGE NAME HERE IT S THE SAME AS IN MainApplication javapackage com yourpackage import com facebook react bridge NativeModule import com facebook react bridge ReactApplicationContext import com facebook react bridge ReactContext import com facebook react bridge ReactContextBaseJavaModule import com facebook react bridge ReactMethod import android app Activity import android appwidget AppWidgetManager import android content ComponentName import android content Context import android content Intent import android content SharedPreferences import android util Log public class SharedStorage extends ReactContextBaseJavaModule ReactApplicationContext context public SharedStorage ReactApplicationContext reactContext super reactContext context reactContext Override public String getName return SharedStorage ReactMethod public void set String message SharedPreferences Editor editor context getSharedPreferences DATA Context MODE PRIVATE edit editor putString appData message editor commit CHANGE TO THE NAME OF YOUR WIDGET Intent intent new Intent getCurrentActivity getApplicationContext Widget class intent setAction AppWidgetManager ACTION APPWIDGET UPDATE CHANGE TO THE NAME OF YOUR WIDGET int ids AppWidgetManager getInstance getCurrentActivity getApplicationContext getAppWidgetIds new ComponentName getCurrentActivity getApplicationContext Widget class intent putExtra AppWidgetManager EXTRA APPWIDGET IDS ids getCurrentActivity getApplicationContext sendBroadcast intent Be sure to replace com yourpackage with your own package name and Widget class with the class you created As you can see in the method set we can now use SharedPreferences object This object points to a file containing key value pairs and provides simple methods to read and write them The second file is the one that will allow us to use SharedStorage as a native module So update your SharedStoragePackager java file like this PUT YOUR PACKAGE NAME HERE IT S THE SAME AS IN MainApplication javapackage com yourpackage import com facebook react ReactPackage import com facebook react bridge JavaScriptModule import com facebook react bridge NativeModule import com facebook react bridge ReactApplicationContext import com facebook react uimanager ViewManager import java util ArrayList import java util Collections import java util List public class SharedStoragePackager implements ReactPackage Override public List lt ViewManager gt createViewManagers ReactApplicationContext reactContext return Collections emptyList Override public List lt NativeModule gt createNativeModules ReactApplicationContext reactContext List lt NativeModule gt modules new ArrayList lt gt modules add new SharedStorage reactContext return modules Again make sure your package name is written correctly at the beginning of the code Now that we added the files we have to import our SharedStoragePackager in the MainApplication java file Add the following line to your getPackages method packages add new SharedStoragePackager It should look something like this LayoutTo start editing the layout let s check which other files Android Studio created in our project Navigate to res gt layout Here we can update the interface of our widget We can add different view elements and styles to the XML file in order to change the widget s appearance We can style our Android widget in two ways Drag and drop options directly from Android StudioAdding layout elements to our XML file manually Drag and drop methodLet s take a look at the first method By accessing our XML file res gt layout gt XML code from the Android Studio we are able to browse through a Palette menu and simply drag and drop any element we need Underneath the Palette menu you may also find a Component Tree This window shows us exactly how our elements are being nested in the widget layout Manual methodAnother way to customize the look of our widget includes opening the XML file through the editor and put in our own elements manually Take a note of the android id attribute since you are going to use it later to access these View components from Java code For additional information on these attributes and descriptions and how to configure your widget click here In the values folder you can set up additional information such as strings styles colours themes If for any reason you want to edit the configuration properties eg minimum height width that you set at the very beginning you can do so by opening barcode widget info xml located in the res gt xml folder Here you can also set the preview image that will be displayed in the widget gallery This is done by editing the android previewImage attribute and importing a new PNG image in drawable nodpi folder Take note of the text that follows after layout In our example this is barcode widget layout barcode widget This information serves as a unique identification and will be crucial later on when we edit data from the java code Notice that here we are using targetCellWidth and targetCellHeight displayed in cells for Android and more For lower versions of Android make sure that you have set minWidth and minHeight since the previous two attributes would be ignored Here you can find more information about these attributes Setting the data from the React Native appIf we run our code now we will be able to see our widget in the widget library but still no data from our app will be shown To display our own data we have to open our App js file and try setting the barcode string value in our newly created SharedStorage module First import the native module import NativeModules from react native const SharedStorage NativeModules SharedStorage Then add this anywhere to your code let barcode useEffect gt if Platform OS android SharedStorage set JSON stringify barcode barcode barcode As shown above we are using the set method from SharedStorage class to set the barcode value to a key barcode This is pretty much it for the React Native part now let s go to our BarcodeWidget java file that was created in the same folder as MainApplication java Updating the widget contentCheck out the updateAppWidget method since this is where we are going to do all the logics This method is responsible for updating the widget content We also need to modify our BarcodeWidget class by adding the SharedPreferences object This object helps us get the data we set earlier in our App js file import org json JSONException import org json JSONObject import android content SharedPreferences static void updateAppWidget Context context AppWidgetManager appWidgetManager int appWidgetId try SharedPreferences sharedPref context getSharedPreferences DATA Context MODE PRIVATE String appString sharedPref getString appData text no data JSONObject appData new JSONObject appString Construct the RemoteViews object RemoteViews views new RemoteViews context getPackageName R layout barcode widget views setTextViewText R id appwidget text appData getString barcode Instruct the widget manager to update the widget appWidgetManager updateAppWidget appWidgetId views catch JSONException e e printStackTrace To access specific value from the storage we will use appData getString barcode The argument of the getString method is the key that we set in React Native app with SharedStorage set method Also don t forget to change barcode widget in R layout barcode widget to your own widget id located in barcode widget info xml file that we talked about earlier If we run the app again the text displayed on your widget will finally be the same as the one we set in the React Native app Let s quickly go back to our updateAppWidget method To access any element in the widget layout XML file we are going to use RemoteView In our example we used the setTextViewText method to set content description to our TextView component The first argument is the id of the view component and the second is the value For more details about this class and other methods you can use check this link Generating the barcode image from a string valueFinally we are going to modify our BarcodeWidget java class so it can generate a barcode image from the barcode string we sent before Add following functions and imports to the BarcodeWidget class import com google zxing BarcodeFormat import com google zxing MultiFormatWriter import com google zxing WriterException import com google zxing common BitMatrix import android graphics Bitmap public class BarcodeWidget extends AppWidgetProvider private static int size width private static int size height public static Bitmap createBarcode String barcodeText Bitmap bitmap null try bitmap CreateImage barcodeText catch WriterException we we printStackTrace return bitmap public static Bitmap CreateImage String message throws WriterException BitMatrix bitMatrix new MultiFormatWriter encode message BarcodeFormat CODE size width size height int width bitMatrix getWidth int height bitMatrix getHeight int pixels new int width height for int i i lt height i for int j j lt width j if bitMatrix get j i pixels i width j xff else pixels i width j xffffffff Bitmap bitmap Bitmap createBitmap width height Bitmap Config ARGB bitmap setPixels pixels width width height return bitmap As shown above we are using the zxing library here so we should update the build gradle file with the following code implementation com google zxing core The CreateImage method is going to generate a bitmap from the string that we sent as an argument It works by setting the value of a pixel to either black or white There are also many different format options when creating a bit matrix We are going to use CODE For other options check this link Now let s call this function in the updateAppWidget method static void updateAppWidget Context context AppWidgetManager appWidgetManager int appWidgetId try SharedPreferences sharedPref context getSharedPreferences DATA Context MODE PRIVATE String appString sharedPref getString appData text no data JSONObject appData new JSONObject appString Construct the RemoteViews object RemoteViews views new RemoteViews context getPackageName R layout barcode widget views setTextViewText R id appwidget text appData getString barcode Bitmap myBitmap createBarcode appData getString barcode Instruct the widget manager to update the widget appWidgetManager updateAppWidget appWidgetId views catch JSONException e e printStackTrace To display our image we need to add the ImageView component to our barcode widget xml file located in layout folder lt RelativeLayout android layout width wrap content android layout height wrap content gt lt ImageView android id id imageView id android layout width wrap content android layout height wrap content gt lt RelativeLayout gt Again pay attention to the id attribute imageView id that we are going to use to get the current ImageView component static void updateAppWidget Context context AppWidgetManager appWidgetManager int appWidgetId try SharedPreferences sharedPref context getSharedPreferences DATA Context MODE PRIVATE String appString sharedPref getString appData text no data JSONObject appData new JSONObject appString Construct the RemoteViews object RemoteViews views new RemoteViews context getPackageName R layout barcode widget views setTextViewText R id appwidget text appData getString barcode setting up Bitmap image we created from barcode string to ImageView Bitmap myBitmap createBarcode appData getString barcode views setImageViewBitmap R id imageView id myBitmap Instruct the widget manager to update the widget appWidgetManager updateAppWidget appWidgetId views catch JSONException e e printStackTrace The endNow the only thing that s left is to run the application again Your widget should now display both the text and the generated image If this is the case then we are done You can now play around with the design and customize your widget further by adding more attributes and styles to your barcode layout xml file Hope this tutorial helped you and good luck with your project 2023-02-14 09:38:54
海外TECH Engadget Elon Musk says Twitter is fixing its Elon Musk tweet problem https://www.engadget.com/elon-musk-says-twitter-is-fixing-its-elon-musk-tweet-problem-091137262.html?src=rss Elon Musk says Twitter is fixing its Elon Musk tweet problemIf you ve been using Twitter s quot For You quot instead of the chronological quot Following quot tab you may have noticed a problem A number of users have remarked that the algorithmic feed has been showing a lot of Elon Musk s tweets and replies whether they follow him or not Twitter s CEO effectively confirmed the matter tweeting quot please stay tuned while we make adjustments to the uh algorithm quot I d assume that by putting quot algorithm quot in quotes Musk is joking that a person possibly himself may actually be responsible for the change That s not too far fetched considering that the Elon forward feed arrived shortly after Musk complained about a drop in his own engagement and even reportedly fired an engineer over the issue nbsp Please stay tuned while we make adjustments to the uh …“algorithm ーElon Musk elonmusk February Following that episode Musk tweeted that a fix was coming after a quot long day at Twitter HQ with eng team quot He said that percent of his tweets weren t getting delivered to the Following feed due to an issue with something called quot Fanout quot so that s now been shunted to another service He also noted that the Recommendation algorithm wasn t working correctly quot causing accounts with many followers to be dumped quot nbsp There s no word yet on why Twitter went from quot Musk lite quot to quot all Elon all the time quot but it appears that issue is being addressed In the meantime you could either mute Musk at least temporarily or simply use the Following feed to see only the tweets you want to see precisely when they happen nbsp 2023-02-14 09:11:37
医療系 医療介護 CBnews 周囲に人がいない場合はマスク着用求めない判断も-厚労省が医療機関での取り扱いを事務連絡 https://www.cbnews.jp/news/entry/20230214183458 取り扱い 2023-02-14 18:50:00
医療系 医療介護 CBnews 確保病床持つ病院以外にも設備整備支援を拡大-東京都がコロナ5類移行の主な施策を提示 https://www.cbnews.jp/news/entry/20230214175403 新型コロナウイルス 2023-02-14 18:30:00
金融 金融庁ホームページ 入札公告等を更新しました。 https://www.fsa.go.jp/choutatu/choutatu_j/nyusatu_menu.html 公告 2023-02-14 11:00:00
金融 金融庁ホームページ 株式会社足利銀行の産業競争力強化法に基づく 事業適応計画の認定について公表しました。 https://www.fsa.go.jp/news/r4/ginkou/20230214/20230214.html 株式会社足利銀行 2023-02-14 11:00:00
海外ニュース Japan Times latest articles What to expect from the first academic economist to be BOJ governor https://www.japantimes.co.jp/news/2023/02/14/business/kazuo-ueda-first-academic-governor/ What to expect from the first academic economist to be BOJ governorKazuo Ueda s distance from the BOJ is seen as a plus when it comes to unraveling the central bank s ultraeasy policy but that process will 2023-02-14 18:20:44
ニュース BBC News - Home BBC India offices searched by income tax officials https://www.bbc.co.uk/news/world-asia-india-64634711?at_medium=RSS&at_campaign=KARANGA income 2023-02-14 09:55:29
ニュース BBC News - Home UK must wake up to China threat, says ex-MI6 chief Sir Alex Younger https://www.bbc.co.uk/news/uk-politics-64635179?at_medium=RSS&at_campaign=KARANGA china 2023-02-14 09:22:25
ニュース BBC News - Home Could new Brit School balance the UK music scene? https://www.bbc.co.uk/news/newsbeat-64625149?at_medium=RSS&at_campaign=KARANGA famous 2023-02-14 09:50:16
ニュース BBC News - Home Champions League final: Liverpool call on Uefa to 'fully and transparently' implement report recommendations https://www.bbc.co.uk/sport/football/64634493?at_medium=RSS&at_campaign=KARANGA Champions League final Liverpool call on Uefa to x fully and transparently x implement report recommendationsLiverpool call on Uefa to fully and transparently implement the recommendations made in an independent report on the events before last season s Champions League final 2023-02-14 09:51:49
ビジネス 不景気.com リミックスポイントが自動車事業を廃止、選択と集中で - 不景気com https://www.fukeiki.com/2023/02/remix-point-pullout-car.html 選択と集中 2023-02-14 09:12:47
ニュース Newsweek 地球の深度150キロに新たな層が検出される プレートテクトニクスの考え方に影響 https://www.newsweekjapan.jp/stories/world/2023/02/150-6.php フア博士はヴァイスに対し、溶融部分は「アセノスフェアの大域的な粘性に実質的な影響を与えていない」との見解を述べている。 2023-02-14 18:30:55
ニュース Newsweek 中国、南シナ海でフィリピン沿岸警備隊艦船にレーザー照射 EEZ内に侵入して妨害行為 https://www.newsweekjapan.jp/stories/world/2023/02/eez-6.php 中国、南シナ海でフィリピン沿岸警備隊艦船にレーザー照射EEZ内に侵入して妨害行為南シナ海に広がるフィリピンの排他的経済水域EEZ内で、中国の海警局船舶がフィリピン沿岸警備隊の艦船に対して進路妨害やレーザーを照射していたことが明らかになり、フィリピン側は「武力行為」に相当する行為だとして中国を厳しく非難する事態になっている。 2023-02-14 18:15:36
ニュース Newsweek 「ゾッとした」との声多数...スーパーボウルのプレパーティでダンス披露する犬型ロボットが「不気味すぎる」と話題 https://www.newsweekjapan.jp/stories/culture/2023/02/post-100866.php 例えば、サウスダコタ州を拠点に活動するテレビリポーターのローレン・セレクは「他に誰がジェイソン・デルーロのパフォーマンスを観ているか知らないけれど、あの小さな犬型ロボットのダンスにはゾッとした」とつぶやいた。 2023-02-14 18:10:00
マーケティング MarkeZine unerry、小売店舗のショッパー・商圏分析ツール「ショッパーみえーる」をフルリニューアル http://markezine.jp/article/detail/41347 unerry 2023-02-14 18:15:00
IT 週刊アスキー PC『ガンダムトライヴ』でスコアバトル「乙女の戦場~バレンタイン大作戦~」が開催! https://weekly.ascii.jp/elem/000/004/124/4124812/ 開催 2023-02-14 18:45:00
IT 週刊アスキー アップル新型「Studio Display」開発に遅れ? https://weekly.ascii.jp/elem/000/004/124/4124781/ studiodisplay 2023-02-14 18:30:00
IT 週刊アスキー アップル「iPhone 15」のUSB-CポートにはMFi認証がある可能性 https://weekly.ascii.jp/elem/000/004/124/4124783/ weibo 2023-02-14 18:30:00
IT 週刊アスキー メガソフト、最新テキストエディター「MIFES 11」 64bit化・4Kディスプレー対応 https://weekly.ascii.jp/elem/000/004/124/4124800/ mifes 2023-02-14 18:30:00
IT 週刊アスキー 「戦乱プリンセス」、 最大15回分のガチャを無料で引ける「バレンタインキャンペーン」を開催 https://weekly.ascii.jp/elem/000/004/124/4124798/ exnoa 2023-02-14 18:20:00
IT 週刊アスキー マップル、日本全国の登記所備付地図をシームレスで閲覧できる「MAPPLE法務局地図ビューア」公開 https://weekly.ascii.jp/elem/000/004/124/4124799/ mapple 2023-02-14 18:10:00
IT 週刊アスキー ANA、国内線旅客サービスシステムと国際線旅客サービスシステムを統合 https://weekly.ascii.jp/elem/000/004/124/4124801/ 旅客 2023-02-14 18:10:00
IT 週刊アスキー グーグル、AI生成コンテンツの使用は検索結果に影響なしと明言 https://weekly.ascii.jp/elem/000/004/124/4124688/ 適切 2023-02-14 18:05:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)